]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
ebl fix compilation problem
[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 scriptdir
990 bsrdir
991 logdir
992 plugindir
993 dump_email
994 job_email
995 smtp_host
996 piddir
997 subsysdir
998 baseport
999 dir_port
1000 fd_port
1001 sd_port
1002 dir_password
1003 fd_password
1004 sd_password
1005 mon_dir_password
1006 mon_fd_password
1007 mon_sd_password
1008 db_name
1009 db_user
1010 db_password
1011 db_port
1012 dir_user
1013 dir_group
1014 sd_user
1015 sd_group
1016 fd_user
1017 fd_group
1018 SBINPERM
1019 SQL_LFLAGS
1020 SQL_INCLUDE
1021 SQL_BINDIR
1022 DBI_DBD_DRIVERDIR
1023 uncomment_dbi
1024 DB_PROG
1025 DB_PROG_LIB
1026 cats
1027 DB_TYPE
1028 GETCONF
1029 XMKMF
1030 X_CFLAGS
1031 X_PRE_LIBS
1032 X_LIBS
1033 X_EXTRA_LIBS
1034 LIBOBJS
1035 FDLIBS
1036 DEBUG
1037 DINCLUDE
1038 DLIB
1039 DB_LIBS
1040 WCFLAGS
1041 WLDFLAGS
1042 WRAPLIBS
1043 OBJLIST
1044 hostname
1045 TAPEDRIVE
1046 PSCMD
1047 WIN32
1048 MACOSX
1049 DISTNAME
1050 DISTVER
1051 LTLIBOBJS'
1052 ac_subst_files='MCOMMON'
1053       ac_precious_vars='build_alias
1054 host_alias
1055 target_alias
1056 CC
1057 CFLAGS
1058 LDFLAGS
1059 LIBS
1060 CPPFLAGS
1061 CXX
1062 CXXFLAGS
1063 CCC
1064 CPP
1065 WXCONFIG
1066 WXFLAGS
1067 CXXCPP
1068 XMKMF'
1069
1070
1071 # Initialize some variables set by options.
1072 ac_init_help=
1073 ac_init_version=false
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1077 exec_prefix=NONE
1078 no_create=
1079 no_recursion=
1080 prefix=NONE
1081 program_prefix=NONE
1082 program_suffix=NONE
1083 program_transform_name=s,x,x,
1084 silent=
1085 site=
1086 srcdir=
1087 verbose=
1088 x_includes=NONE
1089 x_libraries=NONE
1090
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE}'
1108 infodir='${datarootdir}/info'
1109 htmldir='${docdir}'
1110 dvidir='${docdir}'
1111 pdfdir='${docdir}'
1112 psdir='${docdir}'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1116
1117 ac_prev=
1118 ac_dashdash=
1119 for ac_option
1120 do
1121   # If the previous option needs an argument, assign it.
1122   if test -n "$ac_prev"; then
1123     eval $ac_prev=\$ac_option
1124     ac_prev=
1125     continue
1126   fi
1127
1128   case $ac_option in
1129   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130   *)    ac_optarg=yes ;;
1131   esac
1132
1133   # Accept the important Cygnus configure options, so we can diagnose typos.
1134
1135   case $ac_dashdash$ac_option in
1136   --)
1137     ac_dashdash=yes ;;
1138
1139   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1140     ac_prev=bindir ;;
1141   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142     bindir=$ac_optarg ;;
1143
1144   -build | --build | --buil | --bui | --bu)
1145     ac_prev=build_alias ;;
1146   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147     build_alias=$ac_optarg ;;
1148
1149   -cache-file | --cache-file | --cache-fil | --cache-fi \
1150   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151     ac_prev=cache_file ;;
1152   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154     cache_file=$ac_optarg ;;
1155
1156   --config-cache | -C)
1157     cache_file=config.cache ;;
1158
1159   -datadir | --datadir | --datadi | --datad)
1160     ac_prev=datadir ;;
1161   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162     datadir=$ac_optarg ;;
1163
1164   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165   | --dataroo | --dataro | --datar)
1166     ac_prev=datarootdir ;;
1167   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169     datarootdir=$ac_optarg ;;
1170
1171   -disable-* | --disable-*)
1172     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1176    { (exit 1); exit 1; }; }
1177     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1178     eval enable_$ac_feature=no ;;
1179
1180   -docdir | --docdir | --docdi | --doc | --do)
1181     ac_prev=docdir ;;
1182   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183     docdir=$ac_optarg ;;
1184
1185   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1186     ac_prev=dvidir ;;
1187   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188     dvidir=$ac_optarg ;;
1189
1190   -enable-* | --enable-*)
1191     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1195    { (exit 1); exit 1; }; }
1196     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1197     eval enable_$ac_feature=\$ac_optarg ;;
1198
1199   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1200   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1201   | --exec | --exe | --ex)
1202     ac_prev=exec_prefix ;;
1203   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1204   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1205   | --exec=* | --exe=* | --ex=*)
1206     exec_prefix=$ac_optarg ;;
1207
1208   -gas | --gas | --ga | --g)
1209     # Obsolete; use --with-gas.
1210     with_gas=yes ;;
1211
1212   -help | --help | --hel | --he | -h)
1213     ac_init_help=long ;;
1214   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1215     ac_init_help=recursive ;;
1216   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1217     ac_init_help=short ;;
1218
1219   -host | --host | --hos | --ho)
1220     ac_prev=host_alias ;;
1221   -host=* | --host=* | --hos=* | --ho=*)
1222     host_alias=$ac_optarg ;;
1223
1224   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1225     ac_prev=htmldir ;;
1226   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1227   | --ht=*)
1228     htmldir=$ac_optarg ;;
1229
1230   -includedir | --includedir | --includedi | --included | --include \
1231   | --includ | --inclu | --incl | --inc)
1232     ac_prev=includedir ;;
1233   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1234   | --includ=* | --inclu=* | --incl=* | --inc=*)
1235     includedir=$ac_optarg ;;
1236
1237   -infodir | --infodir | --infodi | --infod | --info | --inf)
1238     ac_prev=infodir ;;
1239   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1240     infodir=$ac_optarg ;;
1241
1242   -libdir | --libdir | --libdi | --libd)
1243     ac_prev=libdir ;;
1244   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1245     libdir=$ac_optarg ;;
1246
1247   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1248   | --libexe | --libex | --libe)
1249     ac_prev=libexecdir ;;
1250   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1251   | --libexe=* | --libex=* | --libe=*)
1252     libexecdir=$ac_optarg ;;
1253
1254   -localedir | --localedir | --localedi | --localed | --locale)
1255     ac_prev=localedir ;;
1256   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1257     localedir=$ac_optarg ;;
1258
1259   -localstatedir | --localstatedir | --localstatedi | --localstated \
1260   | --localstate | --localstat | --localsta | --localst | --locals)
1261     ac_prev=localstatedir ;;
1262   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1263   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1264     localstatedir=$ac_optarg ;;
1265
1266   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1267     ac_prev=mandir ;;
1268   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1269     mandir=$ac_optarg ;;
1270
1271   -nfp | --nfp | --nf)
1272     # Obsolete; use --without-fp.
1273     with_fp=no ;;
1274
1275   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1276   | --no-cr | --no-c | -n)
1277     no_create=yes ;;
1278
1279   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1280   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1281     no_recursion=yes ;;
1282
1283   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1284   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1285   | --oldin | --oldi | --old | --ol | --o)
1286     ac_prev=oldincludedir ;;
1287   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1288   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1289   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1290     oldincludedir=$ac_optarg ;;
1291
1292   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1293     ac_prev=prefix ;;
1294   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1295     prefix=$ac_optarg ;;
1296
1297   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1298   | --program-pre | --program-pr | --program-p)
1299     ac_prev=program_prefix ;;
1300   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1301   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1302     program_prefix=$ac_optarg ;;
1303
1304   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1305   | --program-suf | --program-su | --program-s)
1306     ac_prev=program_suffix ;;
1307   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1308   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1309     program_suffix=$ac_optarg ;;
1310
1311   -program-transform-name | --program-transform-name \
1312   | --program-transform-nam | --program-transform-na \
1313   | --program-transform-n | --program-transform- \
1314   | --program-transform | --program-transfor \
1315   | --program-transfo | --program-transf \
1316   | --program-trans | --program-tran \
1317   | --progr-tra | --program-tr | --program-t)
1318     ac_prev=program_transform_name ;;
1319   -program-transform-name=* | --program-transform-name=* \
1320   | --program-transform-nam=* | --program-transform-na=* \
1321   | --program-transform-n=* | --program-transform-=* \
1322   | --program-transform=* | --program-transfor=* \
1323   | --program-transfo=* | --program-transf=* \
1324   | --program-trans=* | --program-tran=* \
1325   | --progr-tra=* | --program-tr=* | --program-t=*)
1326     program_transform_name=$ac_optarg ;;
1327
1328   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1329     ac_prev=pdfdir ;;
1330   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1331     pdfdir=$ac_optarg ;;
1332
1333   -psdir | --psdir | --psdi | --psd | --ps)
1334     ac_prev=psdir ;;
1335   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1336     psdir=$ac_optarg ;;
1337
1338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339   | -silent | --silent | --silen | --sile | --sil)
1340     silent=yes ;;
1341
1342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1343     ac_prev=sbindir ;;
1344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1345   | --sbi=* | --sb=*)
1346     sbindir=$ac_optarg ;;
1347
1348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1350   | --sharedst | --shareds | --shared | --share | --shar \
1351   | --sha | --sh)
1352     ac_prev=sharedstatedir ;;
1353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1356   | --sha=* | --sh=*)
1357     sharedstatedir=$ac_optarg ;;
1358
1359   -site | --site | --sit)
1360     ac_prev=site ;;
1361   -site=* | --site=* | --sit=*)
1362     site=$ac_optarg ;;
1363
1364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1365     ac_prev=srcdir ;;
1366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1367     srcdir=$ac_optarg ;;
1368
1369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1370   | --syscon | --sysco | --sysc | --sys | --sy)
1371     ac_prev=sysconfdir ;;
1372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1374     sysconfdir=$ac_optarg ;;
1375
1376   -target | --target | --targe | --targ | --tar | --ta | --t)
1377     ac_prev=target_alias ;;
1378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1379     target_alias=$ac_optarg ;;
1380
1381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1382     verbose=yes ;;
1383
1384   -version | --version | --versio | --versi | --vers | -V)
1385     ac_init_version=: ;;
1386
1387   -with-* | --with-*)
1388     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1389     # Reject names that are not valid shell variable names.
1390     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391       { echo "$as_me: error: invalid package name: $ac_package" >&2
1392    { (exit 1); exit 1; }; }
1393     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394     eval with_$ac_package=\$ac_optarg ;;
1395
1396   -without-* | --without-*)
1397     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=no ;;
1404
1405   --x)
1406     # Obsolete; use --with-x.
1407     with_x=yes ;;
1408
1409   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410   | --x-incl | --x-inc | --x-in | --x-i)
1411     ac_prev=x_includes ;;
1412   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414     x_includes=$ac_optarg ;;
1415
1416   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418     ac_prev=x_libraries ;;
1419   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421     x_libraries=$ac_optarg ;;
1422
1423   -*) { echo "$as_me: error: unrecognized option: $ac_option
1424 Try \`$0 --help' for more information." >&2
1425    { (exit 1); exit 1; }; }
1426     ;;
1427
1428   *=*)
1429     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430     # Reject names that are not valid shell variable names.
1431     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1432       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1433    { (exit 1); exit 1; }; }
1434     eval $ac_envvar=\$ac_optarg
1435     export $ac_envvar ;;
1436
1437   *)
1438     # FIXME: should be removed in autoconf 3.0.
1439     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1443     ;;
1444
1445   esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450   { echo "$as_me: error: missing argument to $ac_option" >&2
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 # Be sure to have absolute directory names.
1455 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456                 datadir sysconfdir sharedstatedir localstatedir includedir \
1457                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458                 libdir localedir mandir
1459 do
1460   eval ac_val=\$$ac_var
1461   case $ac_val in
1462     [\\/$]* | ?:[\\/]* )  continue;;
1463     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1464   esac
1465   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1466    { (exit 1); exit 1; }; }
1467 done
1468
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1472 build=$build_alias
1473 host=$host_alias
1474 target=$target_alias
1475
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478   if test "x$build_alias" = x; then
1479     cross_compiling=maybe
1480     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1481     If a cross compiler is detected then cross compile mode will be used." >&2
1482   elif test "x$build_alias" != "x$host_alias"; then
1483     cross_compiling=yes
1484   fi
1485 fi
1486
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490 test "$silent" = yes && exec 6>/dev/null
1491
1492
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496   { echo "$as_me: error: Working directory cannot be determined" >&2
1497    { (exit 1); exit 1; }; }
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499   { echo "$as_me: error: pwd does not report name of working directory" >&2
1500    { (exit 1); exit 1; }; }
1501
1502
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505   ac_srcdir_defaulted=yes
1506   # Try the directory containing this script, then the parent directory.
1507   ac_confdir=`$as_dirname -- "$0" ||
1508 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509          X"$0" : 'X\(//\)[^/]' \| \
1510          X"$0" : 'X\(//\)$' \| \
1511          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1512 echo X"$0" |
1513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)[^/].*/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\/\)$/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\).*/{
1526             s//\1/
1527             q
1528           }
1529           s/.*/./; q'`
1530   srcdir=$ac_confdir
1531   if test ! -r "$srcdir/$ac_unique_file"; then
1532     srcdir=..
1533   fi
1534 else
1535   ac_srcdir_defaulted=no
1536 fi
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1540    { (exit 1); exit 1; }; }
1541 fi
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1543 ac_abs_confdir=`(
1544         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1545    { (exit 1); exit 1; }; }
1546         pwd)`
1547 # When building in place, set srcdir=.
1548 if test "$ac_abs_confdir" = "$ac_pwd"; then
1549   srcdir=.
1550 fi
1551 # Remove unnecessary trailing slashes from srcdir.
1552 # Double slashes in file names in object file debugging info
1553 # mess up M-x gdb in Emacs.
1554 case $srcdir in
1555 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1556 esac
1557 for ac_var in $ac_precious_vars; do
1558   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1559   eval ac_env_${ac_var}_value=\$${ac_var}
1560   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1561   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 done
1563
1564 #
1565 # Report the --help message.
1566 #
1567 if test "$ac_init_help" = "long"; then
1568   # Omit some internal or obsolete options to make the list less imposing.
1569   # This message is too long to be a string in the A/UX 3.1 sh.
1570   cat <<_ACEOF
1571 \`configure' configures this package to adapt to many kinds of systems.
1572
1573 Usage: $0 [OPTION]... [VAR=VALUE]...
1574
1575 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1576 VAR=VALUE.  See below for descriptions of some of the useful variables.
1577
1578 Defaults for the options are specified in brackets.
1579
1580 Configuration:
1581   -h, --help              display this help and exit
1582       --help=short        display options specific to this package
1583       --help=recursive    display the short help of all the included packages
1584   -V, --version           display version information and exit
1585   -q, --quiet, --silent   do not print \`checking...' messages
1586       --cache-file=FILE   cache test results in FILE [disabled]
1587   -C, --config-cache      alias for \`--cache-file=config.cache'
1588   -n, --no-create         do not create output files
1589       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1590
1591 Installation directories:
1592   --prefix=PREFIX         install architecture-independent files in PREFIX
1593                           [$ac_default_prefix]
1594   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1595                           [PREFIX]
1596
1597 By default, \`make install' will install all the files in
1598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1600 for instance \`--prefix=\$HOME'.
1601
1602 For better control, use the options below.
1603
1604 Fine tuning of the installation directories:
1605   --bindir=DIR           user executables [EPREFIX/bin]
1606   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1607   --libexecdir=DIR       program executables [EPREFIX/libexec]
1608   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1609   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1610   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1611   --libdir=DIR           object code libraries [EPREFIX/lib]
1612   --includedir=DIR       C header files [PREFIX/include]
1613   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1614   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1615   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1616   --infodir=DIR          info documentation [DATAROOTDIR/info]
1617   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1618   --mandir=DIR           man documentation [DATAROOTDIR/man]
1619   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1620   --htmldir=DIR          html documentation [DOCDIR]
1621   --dvidir=DIR           dvi documentation [DOCDIR]
1622   --pdfdir=DIR           pdf documentation [DOCDIR]
1623   --psdir=DIR            ps documentation [DOCDIR]
1624 _ACEOF
1625
1626   cat <<\_ACEOF
1627
1628 X features:
1629   --x-includes=DIR    X include files are in DIR
1630   --x-libraries=DIR   X library files are in DIR
1631
1632 System types:
1633   --build=BUILD     configure for building on BUILD [guessed]
1634   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1635 _ACEOF
1636 fi
1637
1638 if test -n "$ac_init_help"; then
1639
1640   cat <<\_ACEOF
1641
1642 Optional Features:
1643   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1644   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1645   --enable-libtool        enable building using GNU libtool [default=yes]
1646   --enable-shared[=PKGS]  build shared libraries [default=yes]
1647   --enable-static[=PKGS]  build static libraries [default=no]
1648   --enable-fast-install[=PKGS]
1649                           optimize for fast installation [default=yes]
1650   --disable-libtool-lock  avoid locking (might break parallel builds)
1651   --enable-includes       enable installing of include files [default=no]
1652   --disable-nls           do not use Native Language Support
1653   --disable-rpath         do not hardcode runtime library paths
1654   --enable-gnome          enable build of bgnome-console GUI [default=no]
1655   --enable-bat            enable build of bat Qt4 GUI [default=no]
1656   --enable-bwx-console    enable build of wxWidgets console [default=no]
1657   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1658                           KDE [default=no]
1659   --enable-smartalloc     enable smartalloc debugging support [default=no]
1660   --enable-lockmgr        enable lock manager support [default=no]
1661   --enable-static-tools   enable static tape tools [default=no]
1662   --enable-static-fd      enable static File daemon [default=no]
1663   --enable-static-sd      enable static Storage daemon [default=no]
1664   --enable-static-dir     enable static Director [default=no]
1665   --enable-static-cons    enable static Console [default=no]
1666   --enable-client-only    build client (File daemon) only [default=no]
1667   --enable-build-dird     enable building of dird (Director) [default=yes]
1668   --enable-build-stored   enable building of stored (Storage daemon)
1669                           [default=yes]
1670   --disable-conio         disable conio support [default=no]
1671   --enable-ipv6           enable ipv6 support [default=yes]
1672   --disable-readline      disable readline support [default=yes]
1673   --enable-batch-insert   enable the DB batch insert code [default=no]
1674   --disable-largefile     omit support for large files
1675   --disable-acl           disable acl support [default=auto]
1676   --disable-xattr         disable xattr support [default=auto]
1677
1678 Optional Packages:
1679   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1681   --with-pic              try to use only PIC/non-PIC objects [default=use
1682                           both]
1683   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1684   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1685   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1686   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1687   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1688   --without-libintl-prefix     don't search for libintl in includedir and libdir
1689   --with-included-gettext use the GNU gettext library included here
1690   --with-qwt[=DIR]        specify qwt library directory
1691   --with-readline[=DIR]   specify readline library directory
1692   --with-python[=DIR]     Include Python support. DIR is the Python base
1693                           install directory, default is to search through a
1694                           number of common places for the Python files.
1695   --with-tcp-wrappers[=DIR]
1696                           enable tcpwrappers support
1697   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1698   --with-working-dir=PATH specify path of Bacula working directory
1699   --with-archivedir=PATH  specify path of SD archive directory
1700   --with-basename=RESNAME specify base resource name for daemons
1701   --with-scriptdir=PATH   specify path of Bacula scripts directory
1702   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1703   --with-logdir=PATH      specify path of Bacula logs directory
1704   --with-plugindir=PATH   specify path of Bacula plugins directory
1705   --with-dump-email=EMAIL dump email address
1706   --with-job-email=EMAIL  job output email address
1707   --with-smtp-host=HOST   SMTP mail host address
1708   --with-pid-dir=PATH     specify location of Bacula pid files
1709   --with-subsys-dir=PATH  specify location of Bacula subsys file
1710   --with-baseport=PORT    specify base port address for daemons
1711   --with-dir-password=PASSWORD
1712                           specify Director's password
1713   --with-fd-password=PASSWORD
1714                           specify Client's password
1715   --with-sd-password=PASSWORD
1716                           specify Storage daemon's password
1717   --with-mon-dir-password=PASSWORD
1718                           specify Director's password used by the monitor
1719   --with-mon-fd-password=PASSWORD
1720                           specify Client's password used by the monitor
1721   --with-mon-sd-password=PASSWORD
1722                           specify Storage daemon's password used by the
1723                           monitor
1724   --with-db-name=DBNAME   specify database name [default=bacula]
1725   --with-db-user=UNAME    specify database user [default=bacula]
1726   --with-db-password=PWD  specify database password [default=*none*]
1727   --with-db-port=DBPORT   specify a database port [default=null]
1728   --with-dir-user=USER    specify user for Director daemon
1729   --with-dir-group=GROUP  specify group for Director daemon
1730   --with-sd-user=USER     specify user for Storage daemon
1731   --with-sd-group=GROUP   specify group for Storage daemon
1732   --with-fd-user=USER     specify user for File daemon
1733   --with-fd-group=GROUP   specify group for File daemon
1734   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1735   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1736                           base install directory, [default=/usr/local/pgsql]
1737   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1738                           directory, default is to search through a number of
1739                           common places for the MySQL files.
1740   --with-embedded-mysql[=DIR]
1741                           Include MySQL support. DIR is the MySQL base install
1742                           directory, default is to search through a number of
1743                           common places for the MySQL files.
1744   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1745                           install directory, default is to search through a
1746                           number of common places for the SQLite3 files.
1747   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1748                           install directory, default is to search through a
1749                           number of common places for the SQLite files.
1750   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1751                           directory, default is to search through a number of
1752                           common places for the DBI files.
1753   --with-dbi-driver[=DRIVER]
1754                           Suport for DBI driver. DRIVER is the one DBI driver
1755                           like Mysql, Postgresql, others. Default is to not
1756                           configure any driver.
1757   --with-x                use the X Window System
1758
1759 Some influential environment variables:
1760   CC          C compiler command
1761   CFLAGS      C compiler flags
1762   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1763               nonstandard directory <lib dir>
1764   LIBS        libraries to pass to the linker, e.g. -l<library>
1765   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1766               you have headers in a nonstandard directory <include dir>
1767   CXX         C++ compiler command
1768   CXXFLAGS    C++ compiler flags
1769   CPP         C preprocessor
1770   WXCONFIG    wx-config command. On some systems, you must set it to
1771               wx-config-2.6 to use wxWidgets 2.6.
1772   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1773   CXXCPP      C++ preprocessor
1774   XMKMF       Path to xmkmf, Makefile generator for X Window System
1775
1776 Use these variables to override the choices made by `configure' or to help
1777 it to find libraries and programs with nonstandard names/locations.
1778
1779 _ACEOF
1780 ac_status=$?
1781 fi
1782
1783 if test "$ac_init_help" = "recursive"; then
1784   # If there are subdirs, report their specific --help.
1785   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1786     test -d "$ac_dir" || continue
1787     ac_builddir=.
1788
1789 case "$ac_dir" in
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *)
1792   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1793   # A ".." for each directory in $ac_dir_suffix.
1794   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1795   case $ac_top_builddir_sub in
1796   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1798   esac ;;
1799 esac
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1804
1805 case $srcdir in
1806   .)  # We are building in place.
1807     ac_srcdir=.
1808     ac_top_srcdir=$ac_top_builddir_sub
1809     ac_abs_top_srcdir=$ac_pwd ;;
1810   [\\/]* | ?:[\\/]* )  # Absolute name.
1811     ac_srcdir=$srcdir$ac_dir_suffix;
1812     ac_top_srcdir=$srcdir
1813     ac_abs_top_srcdir=$srcdir ;;
1814   *) # Relative name.
1815     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816     ac_top_srcdir=$ac_top_build_prefix$srcdir
1817     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1818 esac
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1820
1821     cd "$ac_dir" || { ac_status=$?; continue; }
1822     # Check for guested configure.
1823     if test -f "$ac_srcdir/configure.gnu"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826     elif test -f "$ac_srcdir/configure"; then
1827       echo &&
1828       $SHELL "$ac_srcdir/configure" --help=recursive
1829     else
1830       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1831     fi || ac_status=$?
1832     cd "$ac_pwd" || { ac_status=$?; break; }
1833   done
1834 fi
1835
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1838   cat <<\_ACEOF
1839 configure
1840 generated by GNU Autoconf 2.61
1841
1842 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1843 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1844 This configure script is free software; the Free Software Foundation
1845 gives unlimited permission to copy, distribute and modify it.
1846 _ACEOF
1847   exit
1848 fi
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1852
1853 It was created by $as_me, which was
1854 generated by GNU Autoconf 2.61.  Invocation command line was
1855
1856   $ $0 $@
1857
1858 _ACEOF
1859 exec 5>>config.log
1860 {
1861 cat <<_ASUNAME
1862 ## --------- ##
1863 ## Platform. ##
1864 ## --------- ##
1865
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1874
1875 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1876 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1879 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1880 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1881 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1882
1883 _ASUNAME
1884
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888   IFS=$as_save_IFS
1889   test -z "$as_dir" && as_dir=.
1890   echo "PATH: $as_dir"
1891 done
1892 IFS=$as_save_IFS
1893
1894 } >&5
1895
1896 cat >&5 <<_ACEOF
1897
1898
1899 ## ----------- ##
1900 ## Core tests. ##
1901 ## ----------- ##
1902
1903 _ACEOF
1904
1905
1906 # Keep a trace of the command line.
1907 # Strip out --no-create and --no-recursion so they do not pile up.
1908 # Strip out --silent because we don't want to record it for future runs.
1909 # Also quote any args containing shell meta-characters.
1910 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_configure_args=
1912 ac_configure_args0=
1913 ac_configure_args1=
1914 ac_must_keep_next=false
1915 for ac_pass in 1 2
1916 do
1917   for ac_arg
1918   do
1919     case $ac_arg in
1920     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922     | -silent | --silent | --silen | --sile | --sil)
1923       continue ;;
1924     *\'*)
1925       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926     esac
1927     case $ac_pass in
1928     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1929     2)
1930       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1931       if test $ac_must_keep_next = true; then
1932         ac_must_keep_next=false # Got value, back to normal.
1933       else
1934         case $ac_arg in
1935           *=* | --config-cache | -C | -disable-* | --disable-* \
1936           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938           | -with-* | --with-* | -without-* | --without-* | --x)
1939             case "$ac_configure_args0 " in
1940               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941             esac
1942             ;;
1943           -* ) ac_must_keep_next=true ;;
1944         esac
1945       fi
1946       ac_configure_args="$ac_configure_args '$ac_arg'"
1947       ;;
1948     esac
1949   done
1950 done
1951 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1952 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1953
1954 # When interrupted or exit'd, cleanup temporary files, and complete
1955 # config.log.  We remove comments because anyway the quotes in there
1956 # would cause problems or look ugly.
1957 # WARNING: Use '\'' to represent an apostrophe within the trap.
1958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959 trap 'exit_status=$?
1960   # Save into config.log some information that might help in debugging.
1961   {
1962     echo
1963
1964     cat <<\_ASBOX
1965 ## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##
1968 _ASBOX
1969     echo
1970     # The following way of writing the cache mishandles newlines in values,
1971 (
1972   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973     eval ac_val=\$$ac_var
1974     case $ac_val in #(
1975     *${as_nl}*)
1976       case $ac_var in #(
1977       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1978 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1979       esac
1980       case $ac_var in #(
1981       _ | IFS | as_nl) ;; #(
1982       *) $as_unset $ac_var ;;
1983       esac ;;
1984     esac
1985   done
1986   (set) 2>&1 |
1987     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988     *${as_nl}ac_space=\ *)
1989       sed -n \
1990         "s/'\''/'\''\\\\'\'''\''/g;
1991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992       ;; #(
1993     *)
1994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995       ;;
1996     esac |
1997     sort
1998 )
1999     echo
2000
2001     cat <<\_ASBOX
2002 ## ----------------- ##
2003 ## Output variables. ##
2004 ## ----------------- ##
2005 _ASBOX
2006     echo
2007     for ac_var in $ac_subst_vars
2008     do
2009       eval ac_val=\$$ac_var
2010       case $ac_val in
2011       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012       esac
2013       echo "$ac_var='\''$ac_val'\''"
2014     done | sort
2015     echo
2016
2017     if test -n "$ac_subst_files"; then
2018       cat <<\_ASBOX
2019 ## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##
2022 _ASBOX
2023       echo
2024       for ac_var in $ac_subst_files
2025       do
2026         eval ac_val=\$$ac_var
2027         case $ac_val in
2028         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029         esac
2030         echo "$ac_var='\''$ac_val'\''"
2031       done | sort
2032       echo
2033     fi
2034
2035     if test -s confdefs.h; then
2036       cat <<\_ASBOX
2037 ## ----------- ##
2038 ## confdefs.h. ##
2039 ## ----------- ##
2040 _ASBOX
2041       echo
2042       cat confdefs.h
2043       echo
2044     fi
2045     test "$ac_signal" != 0 &&
2046       echo "$as_me: caught signal $ac_signal"
2047     echo "$as_me: exit $exit_status"
2048   } >&5
2049   rm -f core *.core core.conftest.* &&
2050     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2051     exit $exit_status
2052 ' 0
2053 for ac_signal in 1 2 13 15; do
2054   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2055 done
2056 ac_signal=0
2057
2058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2059 rm -f -r conftest* confdefs.h
2060
2061 # Predefined preprocessor variables.
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_NAME "$PACKAGE_NAME"
2065 _ACEOF
2066
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 _ACEOF
2071
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2075 _ACEOF
2076
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 _ACEOF
2081
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 _ACEOF
2086
2087
2088 # Let the site file select an alternate cache file if it wants to.
2089 # Prefer explicitly selected file to automatically selected ones.
2090 if test -n "$CONFIG_SITE"; then
2091   set x "$CONFIG_SITE"
2092 elif test "x$prefix" != xNONE; then
2093   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2094 else
2095   set x "$ac_default_prefix/share/config.site" \
2096         "$ac_default_prefix/etc/config.site"
2097 fi
2098 shift
2099 for ac_site_file
2100 do
2101   if test -r "$ac_site_file"; then
2102     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2103 echo "$as_me: loading site script $ac_site_file" >&6;}
2104     sed 's/^/| /' "$ac_site_file" >&5
2105     . "$ac_site_file"
2106   fi
2107 done
2108
2109 if test -r "$cache_file"; then
2110   # Some versions of bash will fail to source /dev/null (special
2111   # files actually), so we avoid doing that.
2112   if test -f "$cache_file"; then
2113     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2114 echo "$as_me: loading cache $cache_file" >&6;}
2115     case $cache_file in
2116       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117       *)                      . "./$cache_file";;
2118     esac
2119   fi
2120 else
2121   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2122 echo "$as_me: creating cache $cache_file" >&6;}
2123   >$cache_file
2124 fi
2125
2126 # Check that the precious variables saved in the cache have kept the same
2127 # value.
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131   eval ac_new_set=\$ac_env_${ac_var}_set
2132   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133   eval ac_new_val=\$ac_env_${ac_var}_value
2134   case $ac_old_set,$ac_new_set in
2135     set,)
2136       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138       ac_cache_corrupted=: ;;
2139     ,set)
2140       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2141 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142       ac_cache_corrupted=: ;;
2143     ,);;
2144     *)
2145       if test "x$ac_old_val" != "x$ac_new_val"; then
2146         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2147 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2149 echo "$as_me:   former value:  $ac_old_val" >&2;}
2150         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2151 echo "$as_me:   current value: $ac_new_val" >&2;}
2152         ac_cache_corrupted=:
2153       fi;;
2154   esac
2155   # Pass precious variables to config.status.
2156   if test "$ac_new_set" = set; then
2157     case $ac_new_val in
2158     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2159     *) ac_arg=$ac_var=$ac_new_val ;;
2160     esac
2161     case " $ac_configure_args " in
2162       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2163       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2164     esac
2165   fi
2166 done
2167 if $ac_cache_corrupted; then
2168   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2169 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2171 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196
2197
2198 BUILD_DIR=`pwd`
2199 cd ..
2200 TOP_DIR=`pwd`
2201 cd ${BUILD_DIR}
2202
2203
2204 ac_aux_dir=
2205 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2206   if test -f "$ac_dir/install-sh"; then
2207     ac_aux_dir=$ac_dir
2208     ac_install_sh="$ac_aux_dir/install-sh -c"
2209     break
2210   elif test -f "$ac_dir/install.sh"; then
2211     ac_aux_dir=$ac_dir
2212     ac_install_sh="$ac_aux_dir/install.sh -c"
2213     break
2214   elif test -f "$ac_dir/shtool"; then
2215     ac_aux_dir=$ac_dir
2216     ac_install_sh="$ac_aux_dir/shtool install -c"
2217     break
2218   fi
2219 done
2220 if test -z "$ac_aux_dir"; then
2221   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2222 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2223    { (exit 1); exit 1; }; }
2224 fi
2225
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2233
2234
2235 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2236
2237
2238 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2239 WIN32MAINDIR=${BUILD_DIR}
2240 WIN32TOPDIR=${TOP_DIR}
2241
2242
2243
2244
2245
2246
2247
2248 for ac_prog in true
2249 do
2250   # Extract the first word of "$ac_prog", so it can be a program name with args.
2251 set dummy $ac_prog; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   case $TRUEPRG in
2258   [\\/]* | ?:[\\/]*)
2259   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2260   ;;
2261   *)
2262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271     break 2
2272   fi
2273 done
2274 done
2275 IFS=$as_save_IFS
2276
2277   ;;
2278 esac
2279 fi
2280 TRUEPRG=$ac_cv_path_TRUEPRG
2281 if test -n "$TRUEPRG"; then
2282   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2283 echo "${ECHO_T}$TRUEPRG" >&6; }
2284 else
2285   { echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6; }
2287 fi
2288
2289
2290   test -n "$TRUEPRG" && break
2291 done
2292 test -n "$TRUEPRG" || TRUEPRG=":"
2293
2294 for ac_prog in false
2295 do
2296   # Extract the first word of "$ac_prog", so it can be a program name with args.
2297 set dummy $ac_prog; ac_word=$2
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   case $FALSEPRG in
2304   [\\/]* | ?:[\\/]*)
2305   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2306   ;;
2307   *)
2308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321 IFS=$as_save_IFS
2322
2323   ;;
2324 esac
2325 fi
2326 FALSEPRG=$ac_cv_path_FALSEPRG
2327 if test -n "$FALSEPRG"; then
2328   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2329 echo "${ECHO_T}$FALSEPRG" >&6; }
2330 else
2331   { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2333 fi
2334
2335
2336   test -n "$FALSEPRG" && break
2337 done
2338 test -n "$FALSEPRG" || FALSEPRG=":"
2339
2340
2341
2342 post_host=
2343 if test "x$BACULA" != x; then
2344    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2345 fi
2346 BACULA=${BACULA:-Bacula}
2347 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2348 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2349 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 echo "configuring for ${BACULA} $VERSION ($DATE)"
2351
2352
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   if test -n "$CC"; then
2367   ac_cv_prog_CC="$CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378     break 2
2379   fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 CC=$ac_cv_prog_CC
2387 if test -n "$CC"; then
2388   { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2390 else
2391   { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$ac_cv_prog_CC"; then
2398   ac_ct_CC=$CC
2399   # Extract the first word of "gcc", so it can be a program name with args.
2400 set dummy gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$ac_ct_CC"; then
2407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416     ac_cv_prog_ac_ct_CC="gcc"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6; }
2430 else
2431   { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2433 fi
2434
2435   if test "x$ac_ct_CC" = x; then
2436     CC=""
2437   else
2438     case $cross_compiling:$ac_tool_warned in
2439 yes:)
2440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet.  If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&5
2443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet.  If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446 ac_tool_warned=yes ;;
2447 esac
2448     CC=$ac_ct_CC
2449   fi
2450 else
2451   CC="$ac_cv_prog_CC"
2452 fi
2453
2454 if test -z "$CC"; then
2455           if test -n "$ac_tool_prefix"; then
2456     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}cc; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if test -n "$CC"; then
2464   ac_cv_prog_CC="$CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_exec_ext in '' $ac_executable_extensions; do
2472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473     ac_cv_prog_CC="${ac_tool_prefix}cc"
2474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 CC=$ac_cv_prog_CC
2484 if test -n "$CC"; then
2485   { echo "$as_me:$LINENO: result: $CC" >&5
2486 echo "${ECHO_T}$CC" >&6; }
2487 else
2488   { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2490 fi
2491
2492
2493   fi
2494 fi
2495 if test -z "$CC"; then
2496   # Extract the first word of "cc", so it can be a program name with args.
2497 set dummy cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   if test -n "$CC"; then
2504   ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506   ac_prog_rejected=no
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512   for ac_exec_ext in '' $ac_executable_extensions; do
2513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2515        ac_prog_rejected=yes
2516        continue
2517      fi
2518     ac_cv_prog_CC="cc"
2519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 if test $ac_prog_rejected = yes; then
2527   # We found a bogon in the path, so make sure we never use it.
2528   set dummy $ac_cv_prog_CC
2529   shift
2530   if test $# != 0; then
2531     # We chose a different compiler from the bogus one.
2532     # However, it has the same basename, so the bogon will be chosen
2533     # first if we set CC to just the basename; use the full file name.
2534     shift
2535     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2536   fi
2537 fi
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542   { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2544 else
2545   { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 fi
2548
2549
2550 fi
2551 if test -z "$CC"; then
2552   if test -n "$ac_tool_prefix"; then
2553   for ac_prog in cl.exe
2554   do
2555     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   if test -n "$CC"; then
2563   ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584   { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2586 else
2587   { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2589 fi
2590
2591
2592     test -n "$CC" && break
2593   done
2594 fi
2595 if test -z "$CC"; then
2596   ac_ct_CC=$CC
2597   for ac_prog in cl.exe
2598 do
2599   # Extract the first word of "$ac_prog", so it can be a program name with args.
2600 set dummy $ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   if test -n "$ac_ct_CC"; then
2607   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     ac_cv_prog_ac_ct_CC="$ac_prog"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629 echo "${ECHO_T}$ac_ct_CC" >&6; }
2630 else
2631   { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2633 fi
2634
2635
2636   test -n "$ac_ct_CC" && break
2637 done
2638
2639   if test "x$ac_ct_CC" = x; then
2640     CC=""
2641   else
2642     case $cross_compiling:$ac_tool_warned in
2643 yes:)
2644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet.  If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&5
2647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet.  If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652     CC=$ac_ct_CC
2653   fi
2654 fi
2655
2656 fi
2657
2658
2659 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&2;}
2663    { (exit 1); exit 1; }; }
2664
2665 # Provide some information about the compiler.
2666 echo "$as_me:$LINENO: checking for C compiler version" >&5
2667 ac_compiler=`set X $ac_compile; echo $2`
2668 { (ac_try="$ac_compiler --version >&5"
2669 case "(($ac_try" in
2670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671   *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674   (eval "$ac_compiler --version >&5") 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }
2678 { (ac_try="$ac_compiler -v >&5"
2679 case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684   (eval "$ac_compiler -v >&5") 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }
2688 { (ac_try="$ac_compiler -V >&5"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694   (eval "$ac_compiler -V >&5") 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }
2698
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 ac_clean_files_save=$ac_clean_files
2715 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2716 # Try to create an executable without -o first, disregard a.out.
2717 # It will help us diagnose broken compilers, and finding out an intuition
2718 # of exeext.
2719 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2720 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2721 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2722 #
2723 # List of possible output files, starting from the most likely.
2724 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2725 # only as a last resort.  b.out is created by i960 compilers.
2726 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2727 #
2728 # The IRIX 6 linker writes into existing files which may not be
2729 # executable, retaining their permissions.  Remove them first so a
2730 # subsequent execution test works.
2731 ac_rmfiles=
2732 for ac_file in $ac_files
2733 do
2734   case $ac_file in
2735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2737   esac
2738 done
2739 rm -f $ac_rmfiles
2740
2741 if { (ac_try="$ac_link_default"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_link_default") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; then
2751   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2754 # so that the user can short-circuit this test for compilers unknown to
2755 # Autoconf.
2756 for ac_file in $ac_files ''
2757 do
2758   test -f "$ac_file" || continue
2759   case $ac_file in
2760     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2761         ;;
2762     [ab].out )
2763         # We found the default executable, but exeext='' is most
2764         # certainly right.
2765         break;;
2766     *.* )
2767         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2768         then :; else
2769            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2770         fi
2771         # We set ac_cv_exeext here because the later test for it is not
2772         # safe: cross compilers may not add the suffix if given an `-o'
2773         # argument, so we may need to know it at that point already.
2774         # Even if this section looks crufty: it has the advantage of
2775         # actually working.
2776         break;;
2777     * )
2778         break;;
2779   esac
2780 done
2781 test "$ac_cv_exeext" = no && ac_cv_exeext=
2782
2783 else
2784   ac_file=''
2785 fi
2786
2787 { echo "$as_me:$LINENO: result: $ac_file" >&5
2788 echo "${ECHO_T}$ac_file" >&6; }
2789 if test -z "$ac_file"; then
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&2;}
2797    { (exit 77); exit 77; }; }
2798 fi
2799
2800 ac_exeext=$ac_cv_exeext
2801
2802 # Check that the compiler produces executables we can run.  If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2807 # If not cross compiling, check that we can run a simple program.
2808 if test "$cross_compiling" != yes; then
2809   if { ac_try='./$ac_file'
2810   { (case "(($ac_try" in
2811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812   *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815   (eval "$ac_try") 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819     cross_compiling=no
2820   else
2821     if test "$cross_compiling" = maybe; then
2822         cross_compiling=yes
2823     else
2824         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&2;}
2830    { (exit 1); exit 1; }; }
2831     fi
2832   fi
2833 fi
2834 { echo "$as_me:$LINENO: result: yes" >&5
2835 echo "${ECHO_T}yes" >&6; }
2836
2837 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2838 ac_clean_files=$ac_clean_files_save
2839 # Check that the compiler produces executables we can run.  If not, either
2840 # the compiler is broken, or we cross compile.
2841 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2842 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2843 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2844 echo "${ECHO_T}$cross_compiling" >&6; }
2845
2846 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2847 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2848 if { (ac_try="$ac_link"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854   (eval "$ac_link") 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; then
2858   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2861 # `rm'.
2862 for ac_file in conftest.exe conftest conftest.*; do
2863   test -f "$ac_file" || continue
2864   case $ac_file in
2865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2866     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867           break;;
2868     * ) break;;
2869   esac
2870 done
2871 else
2872   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&2;}
2876    { (exit 1); exit 1; }; }
2877 fi
2878
2879 rm -f conftest$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2882
2883 rm -f conftest.$ac_ext
2884 EXEEXT=$ac_cv_exeext
2885 ac_exeext=$EXEEXT
2886 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2888 if test "${ac_cv_objext+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897
2898 int
2899 main ()
2900 {
2901
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.o conftest.obj
2907 if { (ac_try="$ac_compile"
2908 case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_compile") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; then
2917   for ac_file in conftest.o conftest.obj conftest.*; do
2918   test -f "$ac_file" || continue;
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2921     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2922        break;;
2923   esac
2924 done
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&2;}
2933    { (exit 1); exit 1; }; }
2934 fi
2935
2936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2937 fi
2938 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2939 echo "${ECHO_T}$ac_cv_objext" >&6; }
2940 OBJEXT=$ac_cv_objext
2941 ac_objext=$OBJEXT
2942 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2943 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2944 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953
2954 int
2955 main ()
2956 {
2957 #ifndef __GNUC__
2958        choke me
2959 #endif
2960
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (ac_try="$ac_compile"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_compile") 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } && {
2979          test -z "$ac_c_werror_flag" ||
2980          test ! -s conftest.err
2981        } && test -s conftest.$ac_objext; then
2982   ac_compiler_gnu=yes
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987         ac_compiler_gnu=no
2988 fi
2989
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2992
2993 fi
2994 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2996 GCC=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CFLAGS=${CFLAGS+set}
2998 ac_save_CFLAGS=$CFLAGS
2999 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3000 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_cc_g+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004   ac_save_c_werror_flag=$ac_c_werror_flag
3005    ac_c_werror_flag=yes
3006    ac_cv_prog_cc_g=no
3007    CFLAGS="-g"
3008    cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h.  */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h.  */
3014
3015 int
3016 main ()
3017 {
3018
3019   ;
3020   return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_compile") 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } && {
3037          test -z "$ac_c_werror_flag" ||
3038          test ! -s conftest.err
3039        } && test -s conftest.$ac_objext; then
3040   ac_cv_prog_cc_g=yes
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045         CFLAGS=""
3046       cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052
3053 int
3054 main ()
3055 {
3056
3057   ;
3058   return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_compile") 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } && {
3075          test -z "$ac_c_werror_flag" ||
3076          test ! -s conftest.err
3077        } && test -s conftest.$ac_objext; then
3078   :
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         ac_c_werror_flag=$ac_save_c_werror_flag
3084          CFLAGS="-g"
3085          cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_compile") 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } && {
3114          test -z "$ac_c_werror_flag" ||
3115          test ! -s conftest.err
3116        } && test -s conftest.$ac_objext; then
3117   ac_cv_prog_cc_g=yes
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 fi
3127
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 fi
3130
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132    ac_c_werror_flag=$ac_save_c_werror_flag
3133 fi
3134 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3135 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3136 if test "$ac_test_CFLAGS" = set; then
3137   CFLAGS=$ac_save_CFLAGS
3138 elif test $ac_cv_prog_cc_g = yes; then
3139   if test "$GCC" = yes; then
3140     CFLAGS="-g -O2"
3141   else
3142     CFLAGS="-g"
3143   fi
3144 else
3145   if test "$GCC" = yes; then
3146     CFLAGS="-O2"
3147   else
3148     CFLAGS=
3149   fi
3150 fi
3151 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3152 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_cc_c89+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   ac_cv_prog_cc_c89=no
3157 ac_save_CC=$CC
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164 #include <stdarg.h>
3165 #include <stdio.h>
3166 #include <sys/types.h>
3167 #include <sys/stat.h>
3168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3169 struct buf { int x; };
3170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171 static char *e (p, i)
3172      char **p;
3173      int i;
3174 {
3175   return p[i];
3176 }
3177 static char *f (char * (*g) (char **, int), char **p, ...)
3178 {
3179   char *s;
3180   va_list v;
3181   va_start (v,p);
3182   s = g (p, va_arg (v,int));
3183   va_end (v);
3184   return s;
3185 }
3186
3187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3188    function prototypes and stuff, but not '\xHH' hex character constants.
3189    These don't provoke an error unfortunately, instead are silently treated
3190    as 'x'.  The following induces an error, until -std is added to get
3191    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3192    array size at least.  It's necessary to write '\x00'==0 to get something
3193    that's true only with -std.  */
3194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3195
3196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3197    inside strings and character constants.  */
3198 #define FOO(x) 'x'
3199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3200
3201 int test (int i, double x);
3202 struct s1 {int (*f) (int a);};
3203 struct s2 {int (*f) (double a);};
3204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3205 int argc;
3206 char **argv;
3207 int
3208 main ()
3209 {
3210 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3216         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3217 do
3218   CC="$ac_save_CC $ac_arg"
3219   rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3221 case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226   (eval "$ac_compile") 2>conftest.er1
3227   ac_status=$?
3228   grep -v '^ *+' conftest.er1 >conftest.err
3229   rm -f conftest.er1
3230   cat conftest.err >&5
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } && {
3233          test -z "$ac_c_werror_flag" ||
3234          test ! -s conftest.err
3235        } && test -s conftest.$ac_objext; then
3236   ac_cv_prog_cc_c89=$ac_arg
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext
3245   test "x$ac_cv_prog_cc_c89" != "xno" && break
3246 done
3247 rm -f conftest.$ac_ext
3248 CC=$ac_save_CC
3249
3250 fi
3251 # AC_CACHE_VAL
3252 case "x$ac_cv_prog_cc_c89" in
3253   x)
3254     { echo "$as_me:$LINENO: result: none needed" >&5
3255 echo "${ECHO_T}none needed" >&6; } ;;
3256   xno)
3257     { echo "$as_me:$LINENO: result: unsupported" >&5
3258 echo "${ECHO_T}unsupported" >&6; } ;;
3259   *)
3260     CC="$CC $ac_cv_prog_cc_c89"
3261     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3263 esac
3264
3265
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271
3272 ac_ext=cpp
3273 ac_cpp='$CXXCPP $CPPFLAGS'
3274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3277 if test -z "$CXX"; then
3278   if test -n "$CCC"; then
3279     CXX=$CCC
3280   else
3281     if test -n "$ac_tool_prefix"; then
3282   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3283   do
3284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_CXX+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$CXX"; then
3292   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 CXX=$ac_cv_prog_CXX
3312 if test -n "$CXX"; then
3313   { echo "$as_me:$LINENO: result: $CXX" >&5
3314 echo "${ECHO_T}$CXX" >&6; }
3315 else
3316   { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3318 fi
3319
3320
3321     test -n "$CXX" && break
3322   done
3323 fi
3324 if test -z "$CXX"; then
3325   ac_ct_CXX=$CXX
3326   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3327 do
3328   # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy $ac_prog; ac_word=$2
3330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -n "$ac_ct_CXX"; then
3336   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343   for ac_exec_ext in '' $ac_executable_extensions; do
3344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345     ac_cv_prog_ac_ct_CXX="$ac_prog"
3346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3356 if test -n "$ac_ct_CXX"; then
3357   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3358 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3359 else
3360   { echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6; }
3362 fi
3363
3364
3365   test -n "$ac_ct_CXX" && break
3366 done
3367
3368   if test "x$ac_ct_CXX" = x; then
3369     CXX="g++"
3370   else
3371     case $cross_compiling:$ac_tool_warned in
3372 yes:)
3373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet.  If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&5
3376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3377 whose name does not start with the host triplet.  If you think this
3378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3379 ac_tool_warned=yes ;;
3380 esac
3381     CXX=$ac_ct_CXX
3382   fi
3383 fi
3384
3385   fi
3386 fi
3387 # Provide some information about the compiler.
3388 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3389 ac_compiler=`set X $ac_compile; echo $2`
3390 { (ac_try="$ac_compiler --version >&5"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compiler --version >&5") 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }
3400 { (ac_try="$ac_compiler -v >&5"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406   (eval "$ac_compiler -v >&5") 2>&5
3407   ac_status=$?
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); }
3410 { (ac_try="$ac_compiler -V >&5"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_compiler -V >&5") 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }
3420
3421 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3422 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436 #ifndef __GNUC__
3437        choke me
3438 #endif
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_compile") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } && {
3458          test -z "$ac_cxx_werror_flag" ||
3459          test ! -s conftest.err
3460        } && test -s conftest.$ac_objext; then
3461   ac_compiler_gnu=yes
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466         ac_compiler_gnu=no
3467 fi
3468
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3471
3472 fi
3473 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3474 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3475 GXX=`test $ac_compiler_gnu = yes && echo yes`
3476 ac_test_CXXFLAGS=${CXXFLAGS+set}
3477 ac_save_CXXFLAGS=$CXXFLAGS
3478 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3479 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_cxx_g+set}" = set; then
3481   echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3484    ac_cxx_werror_flag=yes
3485    ac_cv_prog_cxx_g=no
3486    CXXFLAGS="-g"
3487    cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h.  */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h.  */
3493
3494 int
3495 main ()
3496 {
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509   (eval "$ac_compile") 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } && {
3516          test -z "$ac_cxx_werror_flag" ||
3517          test ! -s conftest.err
3518        } && test -s conftest.$ac_objext; then
3519   ac_cv_prog_cxx_g=yes
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524         CXXFLAGS=""
3525       cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h.  */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_compile") 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } && {
3554          test -z "$ac_cxx_werror_flag" ||
3555          test ! -s conftest.err
3556        } && test -s conftest.$ac_objext; then
3557   :
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3563          CXXFLAGS="-g"
3564          cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570
3571 int
3572 main ()
3573 {
3574
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586   (eval "$ac_compile") 2>conftest.er1
3587   ac_status=$?
3588   grep -v '^ *+' conftest.er1 >conftest.err
3589   rm -f conftest.er1
3590   cat conftest.err >&5
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } && {
3593          test -z "$ac_cxx_werror_flag" ||
3594          test ! -s conftest.err
3595        } && test -s conftest.$ac_objext; then
3596   ac_cv_prog_cxx_g=yes
3597 else
3598   echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 fi
3609
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3612 fi
3613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3614 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3615 if test "$ac_test_CXXFLAGS" = set; then
3616   CXXFLAGS=$ac_save_CXXFLAGS
3617 elif test $ac_cv_prog_cxx_g = yes; then
3618   if test "$GXX" = yes; then
3619     CXXFLAGS="-g -O2"
3620   else
3621     CXXFLAGS="-g"
3622   fi
3623 else
3624   if test "$GXX" = yes; then
3625     CXXFLAGS="-O2"
3626   else
3627     CXXFLAGS=
3628   fi
3629 fi
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636 if test "x$CC" != xcc; then
3637   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3638 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3639 else
3640   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3641 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3642 fi
3643 set dummy $CC; ac_cc=`echo $2 |
3644                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3645 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 # Make sure it works both with $CC and with simple cc.
3664 # We do the test twice because some compilers refuse to overwrite an
3665 # existing .o file with -o, though they will create one.
3666 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3667 rm -f conftest2.*
3668 if { (case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_try") 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } &&
3677    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682   (eval "$ac_try") 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); };
3686 then
3687   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3688   if test "x$CC" != xcc; then
3689     # Test first that cc exists at all.
3690     if { ac_try='cc -c conftest.$ac_ext >&5'
3691   { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3701       rm -f conftest2.*
3702       if { (case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707   (eval "$ac_try") 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } &&
3711          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716   (eval "$ac_try") 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); };
3720       then
3721         # cc works too.
3722         :
3723       else
3724         # cc exists but doesn't like -o.
3725         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3726       fi
3727     fi
3728   fi
3729 else
3730   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3731 fi
3732 rm -f core conftest*
3733
3734 fi
3735 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3736   { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3738 else
3739   { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3741
3742 cat >>confdefs.h <<\_ACEOF
3743 #define NO_MINUS_C_MINUS_O 1
3744 _ACEOF
3745
3746 fi
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3755 # On Suns, sometimes $CPP names a directory.
3756 if test -n "$CPP" && test -d "$CPP"; then
3757   CPP=
3758 fi
3759 if test -z "$CPP"; then
3760   if test "${ac_cv_prog_CPP+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763       # Double quotes because CPP needs to be expanded
3764     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3765     do
3766       ac_preproc_ok=false
3767 for ac_c_preproc_warn_flag in '' yes
3768 do
3769   # Use a header file that comes with gcc, so configuring glibc
3770   # with a fresh cross-compiler works.
3771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772   # <limits.h> exists even on freestanding compilers.
3773   # On the NeXT, cc -E runs the code through the compiler's parser,
3774   # not just through cpp. "Syntax error" is here to catch this case.
3775   cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781 #ifdef __STDC__
3782 # include <limits.h>
3783 #else
3784 # include <assert.h>
3785 #endif
3786                      Syntax error
3787 _ACEOF
3788 if { (ac_try="$ac_cpp conftest.$ac_ext"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } >/dev/null && {
3801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3802          test ! -s conftest.err
3803        }; then
3804   :
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809   # Broken: fails on valid input.
3810 continue
3811 fi
3812
3813 rm -f conftest.err conftest.$ac_ext
3814
3815   # OK, works on sane cases.  Now check whether nonexistent headers
3816   # can be detected and how.
3817   cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 #include <ac_nonexistent.h>
3824 _ACEOF
3825 if { (ac_try="$ac_cpp conftest.$ac_ext"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } >/dev/null && {
3838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3839          test ! -s conftest.err
3840        }; then
3841   # Broken: success on invalid input.
3842 continue
3843 else
3844   echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847   # Passes both tests.
3848 ac_preproc_ok=:
3849 break
3850 fi
3851
3852 rm -f conftest.err conftest.$ac_ext
3853
3854 done
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then
3858   break
3859 fi
3860
3861     done
3862     ac_cv_prog_CPP=$CPP
3863
3864 fi
3865   CPP=$ac_cv_prog_CPP
3866 else
3867   ac_cv_prog_CPP=$CPP
3868 fi
3869 { echo "$as_me:$LINENO: result: $CPP" >&5
3870 echo "${ECHO_T}$CPP" >&6; }
3871 ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3873 do
3874   # Use a header file that comes with gcc, so configuring glibc
3875   # with a fresh cross-compiler works.
3876   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877   # <limits.h> exists even on freestanding compilers.
3878   # On the NeXT, cc -E runs the code through the compiler's parser,
3879   # not just through cpp. "Syntax error" is here to catch this case.
3880   cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h.  */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h.  */
3886 #ifdef __STDC__
3887 # include <limits.h>
3888 #else
3889 # include <assert.h>
3890 #endif
3891                      Syntax error
3892 _ACEOF
3893 if { (ac_try="$ac_cpp conftest.$ac_ext"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3900   ac_status=$?
3901   grep -v '^ *+' conftest.er1 >conftest.err
3902   rm -f conftest.er1
3903   cat conftest.err >&5
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); } >/dev/null && {
3906          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3907          test ! -s conftest.err
3908        }; then
3909   :
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914   # Broken: fails on valid input.
3915 continue
3916 fi
3917
3918 rm -f conftest.err conftest.$ac_ext
3919
3920   # OK, works on sane cases.  Now check whether nonexistent headers
3921   # can be detected and how.
3922   cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <ac_nonexistent.h>
3929 _ACEOF
3930 if { (ac_try="$ac_cpp conftest.$ac_ext"
3931 case "(($ac_try" in
3932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933   *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3937   ac_status=$?
3938   grep -v '^ *+' conftest.er1 >conftest.err
3939   rm -f conftest.er1
3940   cat conftest.err >&5
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); } >/dev/null && {
3943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3944          test ! -s conftest.err
3945        }; then
3946   # Broken: success on invalid input.
3947 continue
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952   # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3955 fi
3956
3957 rm -f conftest.err conftest.$ac_ext
3958
3959 done
3960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3961 rm -f conftest.err conftest.$ac_ext
3962 if $ac_preproc_ok; then
3963   :
3964 else
3965   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." >&5
3967 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3968 See \`config.log' for more details." >&2;}
3969    { (exit 1); exit 1; }; }
3970 fi
3971
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
3978
3979 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3980 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   # Extract the first word of "grep ggrep" to use in msg output
3985 if test -z "$GREP"; then
3986 set dummy grep ggrep; ac_prog_name=$2
3987 if test "${ac_cv_path_GREP+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   ac_path_GREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_prog in grep ggrep; do
3998   for ac_exec_ext in '' $ac_executable_extensions; do
3999     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001     # Check for GNU ac_path_GREP and select it if it is found.
4002   # Check for GNU $ac_path_GREP
4003 case `"$ac_path_GREP" --version 2>&1` in
4004 *GNU*)
4005   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4006 *)
4007   ac_count=0
4008   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4009   while :
4010   do
4011     cat "conftest.in" "conftest.in" >"conftest.tmp"
4012     mv "conftest.tmp" "conftest.in"
4013     cp "conftest.in" "conftest.nl"
4014     echo 'GREP' >> "conftest.nl"
4015     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017     ac_count=`expr $ac_count + 1`
4018     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019       # Best one so far, save it but keep looking for a better one
4020       ac_cv_path_GREP="$ac_path_GREP"
4021       ac_path_GREP_max=$ac_count
4022     fi
4023     # 10*(2^10) chars as input seems more than enough
4024     test $ac_count -gt 10 && break
4025   done
4026   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 esac
4028
4029
4030     $ac_path_GREP_found && break 3
4031   done
4032 done
4033
4034 done
4035 IFS=$as_save_IFS
4036
4037
4038 fi
4039
4040 GREP="$ac_cv_path_GREP"
4041 if test -z "$GREP"; then
4042   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044    { (exit 1); exit 1; }; }
4045 fi
4046
4047 else
4048   ac_cv_path_GREP=$GREP
4049 fi
4050
4051
4052 fi
4053 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4054 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4055  GREP="$ac_cv_path_GREP"
4056
4057
4058 { echo "$as_me:$LINENO: checking for egrep" >&5
4059 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_EGREP+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064    then ac_cv_path_EGREP="$GREP -E"
4065    else
4066      # Extract the first word of "egrep" to use in msg output
4067 if test -z "$EGREP"; then
4068 set dummy egrep; ac_prog_name=$2
4069 if test "${ac_cv_path_EGREP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   ac_path_EGREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_prog in egrep; do
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083     # Check for GNU ac_path_EGREP and select it if it is found.
4084   # Check for GNU $ac_path_EGREP
4085 case `"$ac_path_EGREP" --version 2>&1` in
4086 *GNU*)
4087   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088 *)
4089   ac_count=0
4090   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4091   while :
4092   do
4093     cat "conftest.in" "conftest.in" >"conftest.tmp"
4094     mv "conftest.tmp" "conftest.in"
4095     cp "conftest.in" "conftest.nl"
4096     echo 'EGREP' >> "conftest.nl"
4097     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099     ac_count=`expr $ac_count + 1`
4100     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101       # Best one so far, save it but keep looking for a better one
4102       ac_cv_path_EGREP="$ac_path_EGREP"
4103       ac_path_EGREP_max=$ac_count
4104     fi
4105     # 10*(2^10) chars as input seems more than enough
4106     test $ac_count -gt 10 && break
4107   done
4108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 esac
4110
4111
4112     $ac_path_EGREP_found && break 3
4113   done
4114 done
4115
4116 done
4117 IFS=$as_save_IFS
4118
4119
4120 fi
4121
4122 EGREP="$ac_cv_path_EGREP"
4123 if test -z "$EGREP"; then
4124   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126    { (exit 1); exit 1; }; }
4127 fi
4128
4129 else
4130   ac_cv_path_EGREP=$EGREP
4131 fi
4132
4133
4134    fi
4135 fi
4136 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4137 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4138  EGREP="$ac_cv_path_EGREP"
4139
4140
4141 if test $ac_cv_c_compiler_gnu = yes; then
4142     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4143 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4144 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147     ac_pattern="Autoconf.*'x'"
4148   cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 #include <sgtty.h>
4155 Autoconf TIOCGETP
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4159   ac_cv_prog_gcc_traditional=yes
4160 else
4161   ac_cv_prog_gcc_traditional=no
4162 fi
4163 rm -f conftest*
4164
4165
4166   if test $ac_cv_prog_gcc_traditional = no; then
4167     cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <termio.h>
4174 Autoconf TCGETA
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4178   ac_cv_prog_gcc_traditional=yes
4179 fi
4180 rm -f conftest*
4181
4182   fi
4183 fi
4184 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4185 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4186   if test $ac_cv_prog_gcc_traditional = yes; then
4187     CC="$CC -traditional"
4188   fi
4189 fi
4190
4191 BASECC=`basename $CC`
4192 have_gcc=no
4193 if test "x$BASECC" = xgcc; then
4194    cat >>confdefs.h <<\_ACEOF
4195 #define HAVE_GCC 1
4196 _ACEOF
4197
4198    have_gcc=yes
4199 fi
4200 # Extract the first word of "$CXX", so it can be a program name with args.
4201 set dummy $CXX; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_path_CXX+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   case $CXX in
4208   [\\/]* | ?:[\\/]*)
4209   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4210   ;;
4211   *)
4212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4228   ;;
4229 esac
4230 fi
4231 CXX=$ac_cv_path_CXX
4232 if test -n "$CXX"; then
4233   { echo "$as_me:$LINENO: result: $CXX" >&5
4234 echo "${ECHO_T}$CXX" >&6; }
4235 else
4236   { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4238 fi
4239
4240
4241 if test ! -e $CXX; then
4242    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4243 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4244    { (exit 1); exit 1; }; }
4245 fi
4246
4247 # Find a good install program.  We prefer a C program (faster),
4248 # so one script is as good as another.  But avoid the broken or
4249 # incompatible versions:
4250 # SysV /etc/install, /usr/sbin/install
4251 # SunOS /usr/etc/install
4252 # IRIX /sbin/install
4253 # AIX /bin/install
4254 # AmigaOS /C/install, which installs bootblocks on floppy discs
4255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4258 # OS/2's system install, which has a completely different semantic
4259 # ./install, which can be erroneously created by make from ./install.sh.
4260 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4262 if test -z "$INSTALL"; then
4263 if test "${ac_cv_path_install+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   # Account for people who put trailing slashes in PATH elements.
4272 case $as_dir/ in
4273   ./ | .// | /cC/* | \
4274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4275   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4276   /usr/ucb/* ) ;;
4277   *)
4278     # OSF1 and SCO ODT 3.0 have their own names for install.
4279     # Don't use installbsd from OSF since it installs stuff as root
4280     # by default.
4281     for ac_prog in ginstall scoinst install; do
4282       for ac_exec_ext in '' $ac_executable_extensions; do
4283         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4284           if test $ac_prog = install &&
4285             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286             # AIX install.  It has an incompatible calling convention.
4287             :
4288           elif test $ac_prog = install &&
4289             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4290             # program-specific install script used by HP pwplus--don't use.
4291             :
4292           else
4293             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4294             break 3
4295           fi
4296         fi
4297       done
4298     done
4299     ;;
4300 esac
4301 done
4302 IFS=$as_save_IFS
4303
4304
4305 fi
4306   if test "${ac_cv_path_install+set}" = set; then
4307     INSTALL=$ac_cv_path_install
4308   else
4309     # As a last resort, use the slow shell script.  Don't cache a
4310     # value for INSTALL within a source directory, because that will
4311     # break other packages using the cache if that directory is
4312     # removed, or if the value is a relative name.
4313     INSTALL=$ac_install_sh
4314   fi
4315 fi
4316 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4317 echo "${ECHO_T}$INSTALL" >&6; }
4318
4319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4320 # It thinks the first close brace ends the variable substitution.
4321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4322
4323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4324
4325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4326
4327 # Extract the first word of "mv", so it can be a program name with args.
4328 set dummy mv; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_MV+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   case $MV in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4355   ;;
4356 esac
4357 fi
4358 MV=$ac_cv_path_MV
4359 if test -n "$MV"; then
4360   { echo "$as_me:$LINENO: result: $MV" >&5
4361 echo "${ECHO_T}$MV" >&6; }
4362 else
4363   { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4365 fi
4366
4367
4368 # Extract the first word of "rm", so it can be a program name with args.
4369 set dummy rm; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_REMOVE+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   case $REMOVE in
4376   [\\/]* | ?:[\\/]*)
4377   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4378   ;;
4379   *)
4380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4396   ;;
4397 esac
4398 fi
4399 REMOVE=$ac_cv_path_REMOVE
4400 if test -n "$REMOVE"; then
4401   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4402 echo "${ECHO_T}$REMOVE" >&6; }
4403 else
4404   { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4406 fi
4407
4408
4409 # Extract the first word of "cp", so it can be a program name with args.
4410 set dummy cp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CP+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   case $CP in
4417   [\\/]* | ?:[\\/]*)
4418   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4419   ;;
4420   *)
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4437   ;;
4438 esac
4439 fi
4440 CP=$ac_cv_path_CP
4441 if test -n "$CP"; then
4442   { echo "$as_me:$LINENO: result: $CP" >&5
4443 echo "${ECHO_T}$CP" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449
4450 # Extract the first word of "sed", so it can be a program name with args.
4451 set dummy sed; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_SED+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   case $SED in
4458   [\\/]* | ?:[\\/]*)
4459   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4460   ;;
4461   *)
4462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4478   ;;
4479 esac
4480 fi
4481 SED=$ac_cv_path_SED
4482 if test -n "$SED"; then
4483   { echo "$as_me:$LINENO: result: $SED" >&5
4484 echo "${ECHO_T}$SED" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4488 fi
4489
4490
4491 # Extract the first word of "echo", so it can be a program name with args.
4492 set dummy echo; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_ECHO+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   case $ECHO in
4499   [\\/]* | ?:[\\/]*)
4500   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4501   ;;
4502   *)
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4519   ;;
4520 esac
4521 fi
4522 ECHO=$ac_cv_path_ECHO
4523 if test -n "$ECHO"; then
4524   { echo "$as_me:$LINENO: result: $ECHO" >&5
4525 echo "${ECHO_T}$ECHO" >&6; }
4526 else
4527   { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4529 fi
4530
4531
4532 # Extract the first word of "cmp", so it can be a program name with args.
4533 set dummy cmp; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_CMP+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   case $CMP in
4540   [\\/]* | ?:[\\/]*)
4541   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4542   ;;
4543   *)
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4560   ;;
4561 esac
4562 fi
4563 CMP=$ac_cv_path_CMP
4564 if test -n "$CMP"; then
4565   { echo "$as_me:$LINENO: result: $CMP" >&5
4566 echo "${ECHO_T}$CMP" >&6; }
4567 else
4568   { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4570 fi
4571
4572
4573 # Extract the first word of "tbl", so it can be a program name with args.
4574 set dummy tbl; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_TBL+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580   case $TBL in
4581   [\\/]* | ?:[\\/]*)
4582   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4583   ;;
4584   *)
4585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4601   ;;
4602 esac
4603 fi
4604 TBL=$ac_cv_path_TBL
4605 if test -n "$TBL"; then
4606   { echo "$as_me:$LINENO: result: $TBL" >&5
4607 echo "${ECHO_T}$TBL" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 fi
4612
4613
4614 # Extract the first word of "ar", so it can be a program name with args.
4615 set dummy ar; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_AR+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   case $AR in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4642   ;;
4643 esac
4644 fi
4645 AR=$ac_cv_path_AR
4646 if test -n "$AR"; then
4647   { echo "$as_me:$LINENO: result: $AR" >&5
4648 echo "${ECHO_T}$AR" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655 # Extract the first word of "openssl", so it can be a program name with args.
4656 set dummy openssl; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_OPENSSL+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   case $OPENSSL in
4663   [\\/]* | ?:[\\/]*)
4664   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4665   ;;
4666   *)
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4683   ;;
4684 esac
4685 fi
4686 OPENSSL=$ac_cv_path_OPENSSL
4687 if test -n "$OPENSSL"; then
4688   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4689 echo "${ECHO_T}$OPENSSL" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696 # Extract the first word of "mtx", so it can be a program name with args.
4697 set dummy mtx; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MTX+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $MTX in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4724   ;;
4725 esac
4726 fi
4727 MTX=$ac_cv_path_MTX
4728 if test -n "$MTX"; then
4729   { echo "$as_me:$LINENO: result: $MTX" >&5
4730 echo "${ECHO_T}$MTX" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737 # Extract the first word of "dd", so it can be a program name with args.
4738 set dummy dd; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_DD+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $DD in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4765   ;;
4766 esac
4767 fi
4768 DD=$ac_cv_path_DD
4769 if test -n "$DD"; then
4770   { echo "$as_me:$LINENO: result: $DD" >&5
4771 echo "${ECHO_T}$DD" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778 # Extract the first word of "mkisofs", so it can be a program name with args.
4779 set dummy mkisofs; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_MKISOFS+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   case $MKISOFS in
4786   [\\/]* | ?:[\\/]*)
4787   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4788   ;;
4789   *)
4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795   for ac_exec_ext in '' $ac_executable_extensions; do
4796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4806   ;;
4807 esac
4808 fi
4809 MKISOFS=$ac_cv_path_MKISOFS
4810 if test -n "$MKISOFS"; then
4811   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4812 echo "${ECHO_T}$MKISOFS" >&6; }
4813 else
4814   { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4816 fi
4817
4818
4819 # Extract the first word of "python", so it can be a program name with args.
4820 set dummy python; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_PYTHON+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   case $PYTHON in
4827   [\\/]* | ?:[\\/]*)
4828   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4829   ;;
4830   *)
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for ac_exec_ext in '' $ac_executable_extensions; do
4837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4847   ;;
4848 esac
4849 fi
4850 PYTHON=$ac_cv_path_PYTHON
4851 if test -n "$PYTHON"; then
4852   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4853 echo "${ECHO_T}$PYTHON" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860 # Extract the first word of "growisofs", so it can be a program name with args.
4861 set dummy growisofs; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   case $GROWISOFS in
4868   [\\/]* | ?:[\\/]*)
4869   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4870   ;;
4871   *)
4872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4888   ;;
4889 esac
4890 fi
4891 GROWISOFS=$ac_cv_path_GROWISOFS
4892 if test -n "$GROWISOFS"; then
4893   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4894 echo "${ECHO_T}$GROWISOFS" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4902 set dummy dvd+rw-mediainfo; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   case $DVDRWMEDIAINFO in
4909   [\\/]* | ?:[\\/]*)
4910   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4911   ;;
4912   *)
4913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_exec_ext in '' $ac_executable_extensions; do
4919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4929   ;;
4930 esac
4931 fi
4932 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4933 if test -n "$DVDRWMEDIAINFO"; then
4934   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4935 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4943 set dummy dvd+rw-format; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   case $DVDRWFORMAT in
4950   [\\/]* | ?:[\\/]*)
4951   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4952   ;;
4953   *)
4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4970   ;;
4971 esac
4972 fi
4973 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4974 if test -n "$DVDRWFORMAT"; then
4975   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4976 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4977 else
4978   { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4980 fi
4981
4982
4983 # Extract the first word of "pkg-config", so it can be a program name with args.
4984 set dummy pkg-config; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   case $PKGCONFIG in
4991   [\\/]* | ?:[\\/]*)
4992   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4993   ;;
4994   *)
4995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007 done
5008 IFS=$as_save_IFS
5009
5010   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5011   ;;
5012 esac
5013 fi
5014 PKGCONFIG=$ac_cv_path_PKGCONFIG
5015 if test -n "$PKGCONFIG"; then
5016   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5017 echo "${ECHO_T}$PKGCONFIG" >&6; }
5018 else
5019   { echo "$as_me:$LINENO: result: no" >&5
5020 echo "${ECHO_T}no" >&6; }
5021 fi
5022
5023
5024 # Extract the first word of "qmake", so it can be a program name with args.
5025 set dummy qmake; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_path_QMAKE+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   case $QMAKE in
5032   [\\/]* | ?:[\\/]*)
5033   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5034   ;;
5035   *)
5036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041   for ac_exec_ext in '' $ac_executable_extensions; do
5042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5052   ;;
5053 esac
5054 fi
5055 QMAKE=$ac_cv_path_QMAKE
5056 if test -n "$QMAKE"; then
5057   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5058 echo "${ECHO_T}$QMAKE" >&6; }
5059 else
5060   { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5062 fi
5063
5064
5065 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5066 set dummy qmake-qt4; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   case $QMAKEQT4 in
5073   [\\/]* | ?:[\\/]*)
5074   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5075   ;;
5076   *)
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082   for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5093   ;;
5094 esac
5095 fi
5096 QMAKEQT4=$ac_cv_path_QMAKEQT4
5097 if test -n "$QMAKEQT4"; then
5098   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5099 echo "${ECHO_T}$QMAKEQT4" >&6; }
5100 else
5101   { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105
5106 # Extract the first word of "gmake", so it can be a program name with args.
5107 set dummy gmake; ac_word=$2
5108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5110 if test "${ac_cv_path_GMAKE+set}" = set; then
5111   echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113   case $GMAKE in
5114   [\\/]* | ?:[\\/]*)
5115   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5116   ;;
5117   *)
5118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123   for ac_exec_ext in '' $ac_executable_extensions; do
5124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5134   ;;
5135 esac
5136 fi
5137 GMAKE=$ac_cv_path_GMAKE
5138 if test -n "$GMAKE"; then
5139   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5140 echo "${ECHO_T}$GMAKE" >&6; }
5141 else
5142   { echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6; }
5144 fi
5145
5146
5147
5148 if test "x$WXCONFIG" = x; then
5149    WXCONFIG=wx-config
5150 fi
5151 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5152 set dummy ${WXCONFIG}; ac_word=$2
5153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5155 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158   case $WXCONFIG in
5159   [\\/]* | ?:[\\/]*)
5160   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5161   ;;
5162   *)
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5179   ;;
5180 esac
5181 fi
5182 WXCONFIG=$ac_cv_path_WXCONFIG
5183 if test -n "$WXCONFIG"; then
5184   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5185 echo "${ECHO_T}$WXCONFIG" >&6; }
5186 else
5187   { echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6; }
5189 fi
5190
5191
5192
5193 # Extract the first word of "cdrecord", so it can be a program name with args.
5194 set dummy cdrecord; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_CDRECORD+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   case $CDRECORD in
5201   [\\/]* | ?:[\\/]*)
5202   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210   for ac_exec_ext in '' $ac_executable_extensions; do
5211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5221   ;;
5222 esac
5223 fi
5224 CDRECORD=$ac_cv_path_CDRECORD
5225 if test -n "$CDRECORD"; then
5226   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5227 echo "${ECHO_T}$CDRECORD" >&6; }
5228 else
5229   { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "pidof", so it can be a program name with args.
5235 set dummy pidof; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_PIDOF+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   case $PIDOF in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251   for ac_exec_ext in '' $ac_executable_extensions; do
5252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5262   ;;
5263 esac
5264 fi
5265 PIDOF=$ac_cv_path_PIDOF
5266 if test -n "$PIDOF"; then
5267   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5268 echo "${ECHO_T}$PIDOF" >&6; }
5269 else
5270   { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273
5274
5275 for ac_prog in gawk mawk nawk awk
5276 do
5277   # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_AWK+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -n "$AWK"; then
5285   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_prog_AWK="$ac_prog"
5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302 fi
5303 fi
5304 AWK=$ac_cv_prog_AWK
5305 if test -n "$AWK"; then
5306   { echo "$as_me:$LINENO: result: $AWK" >&5
5307 echo "${ECHO_T}$AWK" >&6; }
5308 else
5309   { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5311 fi
5312
5313
5314   test -n "$AWK" && break
5315 done
5316
5317 # Some AWK programs fail, so test it and warn the user
5318 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5319       { if ((prog == $2) || (("(" prog ")") == $2) ||
5320       (("" prog "") == $2) ||
5321       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5322 else
5323   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5324    The regex engine of $AWK is too broken to be used you
5325    might want to install GNU AWK.
5326    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5327 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5328    The regex engine of $AWK is too broken to be used you
5329    might want to install GNU AWK.
5330    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5331    { (exit 1); exit 1; }; }
5332 fi
5333 THE_AWK=$AWK
5334 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5335 set dummy $THE_AWK; ac_word=$2
5336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5338 if test "${ac_cv_path_AWK+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   case $AWK in
5342   [\\/]* | ?:[\\/]*)
5343   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5344   ;;
5345   *)
5346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351   for ac_exec_ext in '' $ac_executable_extensions; do
5352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358 done
5359 IFS=$as_save_IFS
5360
5361   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5362   ;;
5363 esac
5364 fi
5365 AWK=$ac_cv_path_AWK
5366 if test -n "$AWK"; then
5367   { echo "$as_me:$LINENO: result: $AWK" >&5
5368 echo "${ECHO_T}$AWK" >&6; }
5369 else
5370   { echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6; }
5372 fi
5373
5374
5375
5376
5377 test -n "$ARFLAG" || ARFLAGS="cr"
5378
5379
5380 MAKE_SHELL=/bin/sh
5381
5382
5383
5384
5385
5386
5387
5388 # Check whether --enable-libtool was given.
5389 if test "${enable_libtool+set}" = set; then
5390   enableval=$enable_libtool;
5391        if test x$enableval = xno; then
5392           use_libtool=no
5393        fi
5394
5395
5396 fi
5397
5398 case `pwd` in
5399   *\ * | *\     *)
5400     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5401 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5402 esac
5403
5404
5405
5406 macro_version='2.2.6'
5407 macro_revision='1.3012'
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 ltmain="$ac_aux_dir/ltmain.sh"
5422
5423 # Make sure we can run config.sub.
5424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5425   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5426 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5427    { (exit 1); exit 1; }; }
5428
5429 { echo "$as_me:$LINENO: checking build system type" >&5
5430 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5431 if test "${ac_cv_build+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   ac_build_alias=$build_alias
5435 test "x$ac_build_alias" = x &&
5436   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5437 test "x$ac_build_alias" = x &&
5438   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5439 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5440    { (exit 1); exit 1; }; }
5441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5442   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5443 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5444    { (exit 1); exit 1; }; }
5445
5446 fi
5447 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5448 echo "${ECHO_T}$ac_cv_build" >&6; }
5449 case $ac_cv_build in
5450 *-*-*) ;;
5451 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5452 echo "$as_me: error: invalid value of canonical build" >&2;}
5453    { (exit 1); exit 1; }; };;
5454 esac
5455 build=$ac_cv_build
5456 ac_save_IFS=$IFS; IFS='-'
5457 set x $ac_cv_build
5458 shift
5459 build_cpu=$1
5460 build_vendor=$2
5461 shift; shift
5462 # Remember, the first character of IFS is used to create $*,
5463 # except with old shells:
5464 build_os=$*
5465 IFS=$ac_save_IFS
5466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5467
5468
5469 { echo "$as_me:$LINENO: checking host system type" >&5
5470 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5471 if test "${ac_cv_host+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   if test "x$host_alias" = x; then
5475   ac_cv_host=$ac_cv_build
5476 else
5477   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5478     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5479 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5480    { (exit 1); exit 1; }; }
5481 fi
5482
5483 fi
5484 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5485 echo "${ECHO_T}$ac_cv_host" >&6; }
5486 case $ac_cv_host in
5487 *-*-*) ;;
5488 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5489 echo "$as_me: error: invalid value of canonical host" >&2;}
5490    { (exit 1); exit 1; }; };;
5491 esac
5492 host=$ac_cv_host
5493 ac_save_IFS=$IFS; IFS='-'
5494 set x $ac_cv_host
5495 shift
5496 host_cpu=$1
5497 host_vendor=$2
5498 shift; shift
5499 # Remember, the first character of IFS is used to create $*,
5500 # except with old shells:
5501 host_os=$*
5502 IFS=$ac_save_IFS
5503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5504
5505
5506 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5507 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5508 if test "${ac_cv_path_SED+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5512      for ac_i in 1 2 3 4 5 6 7; do
5513        ac_script="$ac_script$as_nl$ac_script"
5514      done
5515      echo "$ac_script" | sed 99q >conftest.sed
5516      $as_unset ac_script || ac_script=
5517      # Extract the first word of "sed gsed" to use in msg output
5518 if test -z "$SED"; then
5519 set dummy sed gsed; ac_prog_name=$2
5520 if test "${ac_cv_path_SED+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   ac_path_SED_found=false
5524 # Loop through the user's path and test for each of PROGNAME-LIST
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530   for ac_prog in sed gsed; do
5531   for ac_exec_ext in '' $ac_executable_extensions; do
5532     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5533     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5534     # Check for GNU ac_path_SED and select it if it is found.
5535   # Check for GNU $ac_path_SED
5536 case `"$ac_path_SED" --version 2>&1` in
5537 *GNU*)
5538   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5539 *)
5540   ac_count=0
5541   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5542   while :
5543   do
5544     cat "conftest.in" "conftest.in" >"conftest.tmp"
5545     mv "conftest.tmp" "conftest.in"
5546     cp "conftest.in" "conftest.nl"
5547     echo '' >> "conftest.nl"
5548     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5549     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5550     ac_count=`expr $ac_count + 1`
5551     if test $ac_count -gt ${ac_path_SED_max-0}; then
5552       # Best one so far, save it but keep looking for a better one
5553       ac_cv_path_SED="$ac_path_SED"
5554       ac_path_SED_max=$ac_count
5555     fi
5556     # 10*(2^10) chars as input seems more than enough
5557     test $ac_count -gt 10 && break
5558   done
5559   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5560 esac
5561
5562
5563     $ac_path_SED_found && break 3
5564   done
5565 done
5566
5567 done
5568 IFS=$as_save_IFS
5569
5570
5571 fi
5572
5573 SED="$ac_cv_path_SED"
5574 if test -z "$SED"; then
5575   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5576 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5577    { (exit 1); exit 1; }; }
5578 fi
5579
5580 else
5581   ac_cv_path_SED=$SED
5582 fi
5583
5584 fi
5585 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5586 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5587  SED="$ac_cv_path_SED"
5588   rm -f conftest.sed
5589
5590 test -z "$SED" && SED=sed
5591 Xsed="$SED -e 1s/^X//"
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 { echo "$as_me:$LINENO: checking for fgrep" >&5
5604 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5605 if test "${ac_cv_path_FGREP+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5609    then ac_cv_path_FGREP="$GREP -F"
5610    else
5611      # Extract the first word of "fgrep" to use in msg output
5612 if test -z "$FGREP"; then
5613 set dummy fgrep; ac_prog_name=$2
5614 if test "${ac_cv_path_FGREP+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   ac_path_FGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624   for ac_prog in fgrep; do
5625   for ac_exec_ext in '' $ac_executable_extensions; do
5626     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5627     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5628     # Check for GNU ac_path_FGREP and select it if it is found.
5629   # Check for GNU $ac_path_FGREP
5630 case `"$ac_path_FGREP" --version 2>&1` in
5631 *GNU*)
5632   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5633 *)
5634   ac_count=0
5635   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5636   while :
5637   do
5638     cat "conftest.in" "conftest.in" >"conftest.tmp"
5639     mv "conftest.tmp" "conftest.in"
5640     cp "conftest.in" "conftest.nl"
5641     echo 'FGREP' >> "conftest.nl"
5642     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644     ac_count=`expr $ac_count + 1`
5645     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5646       # Best one so far, save it but keep looking for a better one
5647       ac_cv_path_FGREP="$ac_path_FGREP"
5648       ac_path_FGREP_max=$ac_count
5649     fi
5650     # 10*(2^10) chars as input seems more than enough
5651     test $ac_count -gt 10 && break
5652   done
5653   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 esac
5655
5656
5657     $ac_path_FGREP_found && break 3
5658   done
5659 done
5660
5661 done
5662 IFS=$as_save_IFS
5663
5664
5665 fi
5666
5667 FGREP="$ac_cv_path_FGREP"
5668 if test -z "$FGREP"; then
5669   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5671    { (exit 1); exit 1; }; }
5672 fi
5673
5674 else
5675   ac_cv_path_FGREP=$FGREP
5676 fi
5677
5678
5679    fi
5680 fi
5681 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5682 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5683  FGREP="$ac_cv_path_FGREP"
5684
5685
5686 test -z "$GREP" && GREP=grep
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 # Check whether --with-gnu-ld was given.
5707 if test "${with_gnu_ld+set}" = set; then
5708   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5709 else
5710   with_gnu_ld=no
5711 fi
5712
5713 ac_prog=ld
5714 if test "$GCC" = yes; then
5715   # Check if gcc -print-prog-name=ld gives a path.
5716   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5717 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5718   case $host in
5719   *-*-mingw*)
5720     # gcc leaves a trailing carriage return which upsets mingw
5721     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5722   *)
5723     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724   esac
5725   case $ac_prog in
5726     # Accept absolute paths.
5727     [\\/]* | ?:[\\/]*)
5728       re_direlt='/[^/][^/]*/\.\./'
5729       # Canonicalize the pathname of ld
5730       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5731       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5732         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5733       done
5734       test -z "$LD" && LD="$ac_prog"
5735       ;;
5736   "")
5737     # If it fails, then pretend we aren't using GCC.
5738     ac_prog=ld
5739     ;;
5740   *)
5741     # If it is relative, then search for the first ld in PATH.
5742     with_gnu_ld=unknown
5743     ;;
5744   esac
5745 elif test "$with_gnu_ld" = yes; then
5746   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5747 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5748 else
5749   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5750 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5751 fi
5752 if test "${lt_cv_path_LD+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   if test -z "$LD"; then
5756   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757   for ac_dir in $PATH; do
5758     IFS="$lt_save_ifs"
5759     test -z "$ac_dir" && ac_dir=.
5760     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761       lt_cv_path_LD="$ac_dir/$ac_prog"
5762       # Check to see if the program is GNU ld.  I'd rather use --version,
5763       # but apparently some variants of GNU ld only accept -v.
5764       # Break only if it was the GNU/non-GNU ld that we prefer.
5765       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5766       *GNU* | *'with BFD'*)
5767         test "$with_gnu_ld" != no && break
5768         ;;
5769       *)
5770         test "$with_gnu_ld" != yes && break
5771         ;;
5772       esac
5773     fi
5774   done
5775   IFS="$lt_save_ifs"
5776 else
5777   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5778 fi
5779 fi
5780
5781 LD="$lt_cv_path_LD"
5782 if test -n "$LD"; then
5783   { echo "$as_me:$LINENO: result: $LD" >&5
5784 echo "${ECHO_T}$LD" >&6; }
5785 else
5786   { echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6; }
5788 fi
5789 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5790 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5791    { (exit 1); exit 1; }; }
5792 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5793 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5794 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5798 case `$LD -v 2>&1 </dev/null` in
5799 *GNU* | *'with BFD'*)
5800   lt_cv_prog_gnu_ld=yes
5801   ;;
5802 *)
5803   lt_cv_prog_gnu_ld=no
5804   ;;
5805 esac
5806 fi
5807 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5808 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5809 with_gnu_ld=$lt_cv_prog_gnu_ld
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5820 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5821 if test "${lt_cv_path_NM+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   if test -n "$NM"; then
5825   # Let the user override the test.
5826   lt_cv_path_NM="$NM"
5827 else
5828   lt_nm_to_check="${ac_tool_prefix}nm"
5829   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5830     lt_nm_to_check="$lt_nm_to_check nm"
5831   fi
5832   for lt_tmp_nm in $lt_nm_to_check; do
5833     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5834     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5835       IFS="$lt_save_ifs"
5836       test -z "$ac_dir" && ac_dir=.
5837       tmp_nm="$ac_dir/$lt_tmp_nm"
5838       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5839         # Check to see if the nm accepts a BSD-compat flag.
5840         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5841         #   nm: unknown option "B" ignored
5842         # Tru64's nm complains that /dev/null is an invalid object file
5843         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5844         */dev/null* | *'Invalid file or object type'*)
5845           lt_cv_path_NM="$tmp_nm -B"
5846           break
5847           ;;
5848         *)
5849           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5850           */dev/null*)
5851             lt_cv_path_NM="$tmp_nm -p"
5852             break
5853             ;;
5854           *)
5855             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5856             continue # so that we can try to find one that supports BSD flags
5857             ;;
5858           esac
5859           ;;
5860         esac
5861       fi
5862     done
5863     IFS="$lt_save_ifs"
5864   done
5865   : ${lt_cv_path_NM=no}
5866 fi
5867 fi
5868 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5869 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5870 if test "$lt_cv_path_NM" != "no"; then
5871   NM="$lt_cv_path_NM"
5872 else
5873   # Didn't find any BSD compatible name lister, look for dumpbin.
5874   if test -n "$ac_tool_prefix"; then
5875   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5876   do
5877     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   if test -n "$DUMPBIN"; then
5885   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892   for ac_exec_ext in '' $ac_executable_extensions; do
5893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 DUMPBIN=$ac_cv_prog_DUMPBIN
5905 if test -n "$DUMPBIN"; then
5906   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5907 echo "${ECHO_T}$DUMPBIN" >&6; }
5908 else
5909   { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5911 fi
5912
5913
5914     test -n "$DUMPBIN" && break
5915   done
5916 fi
5917 if test -z "$DUMPBIN"; then
5918   ac_ct_DUMPBIN=$DUMPBIN
5919   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5920 do
5921   # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$ac_ct_DUMPBIN"; then
5929   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5949 if test -n "$ac_ct_DUMPBIN"; then
5950   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5951 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5952 else
5953   { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5955 fi
5956
5957
5958   test -n "$ac_ct_DUMPBIN" && break
5959 done
5960
5961   if test "x$ac_ct_DUMPBIN" = x; then
5962     DUMPBIN=":"
5963   else
5964     case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet.  If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&5
5969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5970 whose name does not start with the host triplet.  If you think this
5971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5972 ac_tool_warned=yes ;;
5973 esac
5974     DUMPBIN=$ac_ct_DUMPBIN
5975   fi
5976 fi
5977
5978
5979   if test "$DUMPBIN" != ":"; then
5980     NM="$DUMPBIN"
5981   fi
5982 fi
5983 test -z "$NM" && NM=nm
5984
5985
5986
5987
5988
5989
5990 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5991 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5992 if test "${lt_cv_nm_interface+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   lt_cv_nm_interface="BSD nm"
5996   echo "int some_variable = 0;" > conftest.$ac_ext
5997   (eval echo "\"\$as_me:5997: $ac_compile\"" >&5)
5998   (eval "$ac_compile" 2>conftest.err)
5999   cat conftest.err >&5
6000   (eval echo "\"\$as_me:6000: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6001   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6002   cat conftest.err >&5
6003   (eval echo "\"\$as_me:6003: output\"" >&5)
6004   cat conftest.out >&5
6005   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6006     lt_cv_nm_interface="MS dumpbin"
6007   fi
6008   rm -f conftest*
6009 fi
6010 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6011 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6012
6013 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6014 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6015 LN_S=$as_ln_s
6016 if test "$LN_S" = "ln -s"; then
6017   { echo "$as_me:$LINENO: result: yes" >&5
6018 echo "${ECHO_T}yes" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6021 echo "${ECHO_T}no, using $LN_S" >&6; }
6022 fi
6023
6024 # find the maximum length of command line arguments
6025 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6026 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6027 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030     i=0
6031   teststring="ABCD"
6032
6033   case $build_os in
6034   msdosdjgpp*)
6035     # On DJGPP, this test can blow up pretty badly due to problems in libc
6036     # (any single argument exceeding 2000 bytes causes a buffer overrun
6037     # during glob expansion).  Even if it were fixed, the result of this
6038     # check would be larger than it should be.
6039     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6040     ;;
6041
6042   gnu*)
6043     # Under GNU Hurd, this test is not required because there is
6044     # no limit to the length of command line arguments.
6045     # Libtool will interpret -1 as no limit whatsoever
6046     lt_cv_sys_max_cmd_len=-1;
6047     ;;
6048
6049   cygwin* | mingw* | cegcc*)
6050     # On Win9x/ME, this test blows up -- it succeeds, but takes
6051     # about 5 minutes as the teststring grows exponentially.
6052     # Worse, since 9x/ME are not pre-emptively multitasking,
6053     # you end up with a "frozen" computer, even though with patience
6054     # the test eventually succeeds (with a max line length of 256k).
6055     # Instead, let's just punt: use the minimum linelength reported by
6056     # all of the supported platforms: 8192 (on NT/2K/XP).
6057     lt_cv_sys_max_cmd_len=8192;
6058     ;;
6059
6060   amigaos*)
6061     # On AmigaOS with pdksh, this test takes hours, literally.
6062     # So we just punt and use a minimum line length of 8192.
6063     lt_cv_sys_max_cmd_len=8192;
6064     ;;
6065
6066   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6067     # This has been around since 386BSD, at least.  Likely further.
6068     if test -x /sbin/sysctl; then
6069       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6070     elif test -x /usr/sbin/sysctl; then
6071       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6072     else
6073       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6074     fi
6075     # And add a safety zone
6076     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6077     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6078     ;;
6079
6080   interix*)
6081     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6082     lt_cv_sys_max_cmd_len=196608
6083     ;;
6084
6085   osf*)
6086     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6087     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6088     # nice to cause kernel panics so lets avoid the loop below.
6089     # First set a reasonable default.
6090     lt_cv_sys_max_cmd_len=16384
6091     #
6092     if test -x /sbin/sysconfig; then
6093       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6094         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6095       esac
6096     fi
6097     ;;
6098   sco3.2v5*)
6099     lt_cv_sys_max_cmd_len=102400
6100     ;;
6101   sysv5* | sco5v6* | sysv4.2uw2*)
6102     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6103     if test -n "$kargmax"; then
6104       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6105     else
6106       lt_cv_sys_max_cmd_len=32768
6107     fi
6108     ;;
6109   *)
6110     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6111     if test -n "$lt_cv_sys_max_cmd_len"; then
6112       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6113       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6114     else
6115       # Make teststring a little bigger before we do anything with it.
6116       # a 1K string should be a reasonable start.
6117       for i in 1 2 3 4 5 6 7 8 ; do
6118         teststring=$teststring$teststring
6119       done
6120       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6121       # If test is not a shell built-in, we'll probably end up computing a
6122       # maximum length that is only half of the actual maximum length, but
6123       # we can't tell.
6124       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6125                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6126               test $i != 17 # 1/2 MB should be enough
6127       do
6128         i=`expr $i + 1`
6129         teststring=$teststring$teststring
6130       done
6131       # Only check the string length outside the loop.
6132       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6133       teststring=
6134       # Add a significant safety factor because C++ compilers can tack on
6135       # massive amounts of additional arguments before passing them to the
6136       # linker.  It appears as though 1/2 is a usable value.
6137       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6138     fi
6139     ;;
6140   esac
6141
6142 fi
6143
6144 if test -n $lt_cv_sys_max_cmd_len ; then
6145   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6146 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6147 else
6148   { echo "$as_me:$LINENO: result: none" >&5
6149 echo "${ECHO_T}none" >&6; }
6150 fi
6151 max_cmd_len=$lt_cv_sys_max_cmd_len
6152
6153
6154
6155
6156
6157
6158 : ${CP="cp -f"}
6159 : ${MV="mv -f"}
6160 : ${RM="rm -f"}
6161
6162 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6163 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6164 # Try some XSI features
6165 xsi_shell=no
6166 ( _lt_dummy="a/b/c"
6167   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6168       = c,a/b,, \
6169     && eval 'test $(( 1 + 1 )) -eq 2 \
6170     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6171   && xsi_shell=yes
6172 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6173 echo "${ECHO_T}$xsi_shell" >&6; }
6174
6175
6176 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6177 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6178 lt_shell_append=no
6179 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6180     >/dev/null 2>&1 \
6181   && lt_shell_append=yes
6182 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6183 echo "${ECHO_T}$lt_shell_append" >&6; }
6184
6185
6186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6187   lt_unset=unset
6188 else
6189   lt_unset=false
6190 fi
6191
6192
6193
6194
6195
6196 # test EBCDIC or ASCII
6197 case `echo X|tr X '\101'` in
6198  A) # ASCII based system
6199     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6200   lt_SP2NL='tr \040 \012'
6201   lt_NL2SP='tr \015\012 \040\040'
6202   ;;
6203  *) # EBCDIC based system
6204   lt_SP2NL='tr \100 \n'
6205   lt_NL2SP='tr \r\n \100\100'
6206   ;;
6207 esac
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6218 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6219 if test "${lt_cv_ld_reload_flag+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   lt_cv_ld_reload_flag='-r'
6223 fi
6224 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6225 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6226 reload_flag=$lt_cv_ld_reload_flag
6227 case $reload_flag in
6228 "" | " "*) ;;
6229 *) reload_flag=" $reload_flag" ;;
6230 esac
6231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232 case $host_os in
6233   darwin*)
6234     if test "$GCC" = yes; then
6235       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6236     else
6237       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6238     fi
6239     ;;
6240 esac
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 if test -n "$ac_tool_prefix"; then
6251   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   if test -n "$OBJDUMP"; then
6259   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 OBJDUMP=$ac_cv_prog_OBJDUMP
6279 if test -n "$OBJDUMP"; then
6280   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6281 echo "${ECHO_T}$OBJDUMP" >&6; }
6282 else
6283   { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6285 fi
6286
6287
6288 fi
6289 if test -z "$ac_cv_prog_OBJDUMP"; then
6290   ac_ct_OBJDUMP=$OBJDUMP
6291   # Extract the first word of "objdump", so it can be a program name with args.
6292 set dummy objdump; ac_word=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   if test -n "$ac_ct_OBJDUMP"; then
6299   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6319 if test -n "$ac_ct_OBJDUMP"; then
6320   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6321 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6322 else
6323   { echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6; }
6325 fi
6326
6327   if test "x$ac_ct_OBJDUMP" = x; then
6328     OBJDUMP="false"
6329   else
6330     case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet.  If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&5
6335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6336 whose name does not start with the host triplet.  If you think this
6337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340     OBJDUMP=$ac_ct_OBJDUMP
6341   fi
6342 else
6343   OBJDUMP="$ac_cv_prog_OBJDUMP"
6344 fi
6345
6346 test -z "$OBJDUMP" && OBJDUMP=objdump
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6357 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6358 if test "${lt_cv_deplibs_check_method+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   lt_cv_file_magic_cmd='$MAGIC_CMD'
6362 lt_cv_file_magic_test_file=
6363 lt_cv_deplibs_check_method='unknown'
6364 # Need to set the preceding variable on all platforms that support
6365 # interlibrary dependencies.
6366 # 'none' -- dependencies not supported.
6367 # `unknown' -- same as none, but documents that we really don't know.
6368 # 'pass_all' -- all dependencies passed with no checks.
6369 # 'test_compile' -- check by making test program.
6370 # 'file_magic [[regex]]' -- check by looking for files in library path
6371 # which responds to the $file_magic_cmd with a given extended regex.
6372 # If you have `file' or equivalent on your system and you're not sure
6373 # whether `pass_all' will *always* work, you probably want this one.
6374
6375 case $host_os in
6376 aix[4-9]*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 beos*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 bsdi[45]*)
6385   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6386   lt_cv_file_magic_cmd='/usr/bin/file -L'
6387   lt_cv_file_magic_test_file=/shlib/libc.so
6388   ;;
6389
6390 cygwin*)
6391   # func_win32_libid is a shell function defined in ltmain.sh
6392   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6393   lt_cv_file_magic_cmd='func_win32_libid'
6394   ;;
6395
6396 mingw* | pw32*)
6397   # Base MSYS/MinGW do not provide the 'file' command needed by
6398   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6399   # unless we find 'file', for example because we are cross-compiling.
6400   if ( file / ) >/dev/null 2>&1; then
6401     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6402     lt_cv_file_magic_cmd='func_win32_libid'
6403   else
6404     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6405     lt_cv_file_magic_cmd='$OBJDUMP -f'
6406   fi
6407   ;;
6408
6409 cegcc)
6410   # use the weaker test based on 'objdump'. See mingw*.
6411   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6412   lt_cv_file_magic_cmd='$OBJDUMP -f'
6413   ;;
6414
6415 darwin* | rhapsody*)
6416   lt_cv_deplibs_check_method=pass_all
6417   ;;
6418
6419 freebsd* | dragonfly*)
6420   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6421     case $host_cpu in
6422     i*86 )
6423       # Not sure whether the presence of OpenBSD here was a mistake.
6424       # Let's accept both of them until this is cleared up.
6425       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6426       lt_cv_file_magic_cmd=/usr/bin/file
6427       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6428       ;;
6429     esac
6430   else
6431     lt_cv_deplibs_check_method=pass_all
6432   fi
6433   ;;
6434
6435 gnu*)
6436   lt_cv_deplibs_check_method=pass_all
6437   ;;
6438
6439 hpux10.20* | hpux11*)
6440   lt_cv_file_magic_cmd=/usr/bin/file
6441   case $host_cpu in
6442   ia64*)
6443     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6444     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6445     ;;
6446   hppa*64*)
6447     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]'
6448     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6449     ;;
6450   *)
6451     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6452     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6453     ;;
6454   esac
6455   ;;
6456
6457 interix[3-9]*)
6458   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6459   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6460   ;;
6461
6462 irix5* | irix6* | nonstopux*)
6463   case $LD in
6464   *-32|*"-32 ") libmagic=32-bit;;
6465   *-n32|*"-n32 ") libmagic=N32;;
6466   *-64|*"-64 ") libmagic=64-bit;;
6467   *) libmagic=never-match;;
6468   esac
6469   lt_cv_deplibs_check_method=pass_all
6470   ;;
6471
6472 # This must be Linux ELF.
6473 linux* | k*bsd*-gnu)
6474   lt_cv_deplibs_check_method=pass_all
6475   ;;
6476
6477 netbsd*)
6478   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6479     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6480   else
6481     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6482   fi
6483   ;;
6484
6485 newos6*)
6486   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6487   lt_cv_file_magic_cmd=/usr/bin/file
6488   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6489   ;;
6490
6491 *nto* | *qnx*)
6492   lt_cv_deplibs_check_method=pass_all
6493   ;;
6494
6495 openbsd*)
6496   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6497     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6498   else
6499     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6500   fi
6501   ;;
6502
6503 osf3* | osf4* | osf5*)
6504   lt_cv_deplibs_check_method=pass_all
6505   ;;
6506
6507 rdos*)
6508   lt_cv_deplibs_check_method=pass_all
6509   ;;
6510
6511 solaris*)
6512   lt_cv_deplibs_check_method=pass_all
6513   ;;
6514
6515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 sysv4 | sysv4.3*)
6520   case $host_vendor in
6521   motorola)
6522     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]'
6523     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6524     ;;
6525   ncr)
6526     lt_cv_deplibs_check_method=pass_all
6527     ;;
6528   sequent)
6529     lt_cv_file_magic_cmd='/bin/file'
6530     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6531     ;;
6532   sni)
6533     lt_cv_file_magic_cmd='/bin/file'
6534     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6535     lt_cv_file_magic_test_file=/lib/libc.so
6536     ;;
6537   siemens)
6538     lt_cv_deplibs_check_method=pass_all
6539     ;;
6540   pc)
6541     lt_cv_deplibs_check_method=pass_all
6542     ;;
6543   esac
6544   ;;
6545
6546 tpf*)
6547   lt_cv_deplibs_check_method=pass_all
6548   ;;
6549 esac
6550
6551 fi
6552 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6553 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6554 file_magic_cmd=$lt_cv_file_magic_cmd
6555 deplibs_check_method=$lt_cv_deplibs_check_method
6556 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569 if test -n "$ac_tool_prefix"; then
6570   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_AR+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$AR"; then
6578   ac_cv_prog_AR="$AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_AR="${ac_tool_prefix}ar"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 AR=$ac_cv_prog_AR
6598 if test -n "$AR"; then
6599   { echo "$as_me:$LINENO: result: $AR" >&5
6600 echo "${ECHO_T}$AR" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607 fi
6608 if test -z "$ac_cv_prog_AR"; then
6609   ac_ct_AR=$AR
6610   # Extract the first word of "ar", so it can be a program name with args.
6611 set dummy ar; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   if test -n "$ac_ct_AR"; then
6618   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625   for ac_exec_ext in '' $ac_executable_extensions; do
6626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627     ac_cv_prog_ac_ct_AR="ar"
6628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6640 echo "${ECHO_T}$ac_ct_AR" >&6; }
6641 else
6642   { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6644 fi
6645
6646   if test "x$ac_ct_AR" = x; then
6647     AR="false"
6648   else
6649     case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet.  If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet.  If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659     AR=$ac_ct_AR
6660   fi
6661 else
6662   AR="$ac_cv_prog_AR"
6663 fi
6664
6665 test -z "$AR" && AR=ar
6666 test -z "$AR_FLAGS" && AR_FLAGS=cru
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 if test -n "$ac_tool_prefix"; then
6679   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_STRIP+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   if test -n "$STRIP"; then
6687   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 STRIP=$ac_cv_prog_STRIP
6707 if test -n "$STRIP"; then
6708   { echo "$as_me:$LINENO: result: $STRIP" >&5
6709 echo "${ECHO_T}$STRIP" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_STRIP"; then
6718   ac_ct_STRIP=$STRIP
6719   # Extract the first word of "strip", so it can be a program name with args.
6720 set dummy strip; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$ac_ct_STRIP"; then
6727   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_ac_ct_STRIP="strip"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6747 if test -n "$ac_ct_STRIP"; then
6748   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6749 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755   if test "x$ac_ct_STRIP" = x; then
6756     STRIP=":"
6757   else
6758     case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet.  If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&5
6763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6764 whose name does not start with the host triplet.  If you think this
6765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768     STRIP=$ac_ct_STRIP
6769   fi
6770 else
6771   STRIP="$ac_cv_prog_STRIP"
6772 fi
6773
6774 test -z "$STRIP" && STRIP=:
6775
6776
6777
6778
6779
6780
6781 if test -n "$ac_tool_prefix"; then
6782   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_RANLIB+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   if test -n "$RANLIB"; then
6790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797   for ac_exec_ext in '' $ac_executable_extensions; do
6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 RANLIB=$ac_cv_prog_RANLIB
6810 if test -n "$RANLIB"; then
6811   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6812 echo "${ECHO_T}$RANLIB" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_RANLIB"; then
6821   ac_ct_RANLIB=$RANLIB
6822   # Extract the first word of "ranlib", so it can be a program name with args.
6823 set dummy ranlib; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   if test -n "$ac_ct_RANLIB"; then
6830   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_prog_ac_ct_RANLIB="ranlib"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6850 if test -n "$ac_ct_RANLIB"; then
6851   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6852 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858   if test "x$ac_ct_RANLIB" = x; then
6859     RANLIB=":"
6860   else
6861     case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet.  If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&5
6866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet.  If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6869 ac_tool_warned=yes ;;
6870 esac
6871     RANLIB=$ac_ct_RANLIB
6872   fi
6873 else
6874   RANLIB="$ac_cv_prog_RANLIB"
6875 fi
6876
6877 test -z "$RANLIB" && RANLIB=:
6878
6879
6880
6881
6882
6883
6884 # Determine commands to create old-style static archives.
6885 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886 old_postinstall_cmds='chmod 644 $oldlib'
6887 old_postuninstall_cmds=
6888
6889 if test -n "$RANLIB"; then
6890   case $host_os in
6891   openbsd*)
6892     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893     ;;
6894   *)
6895     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896     ;;
6897   esac
6898   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6899 fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934 # If no C compiler was specified, use CC.
6935 LTCC=${LTCC-"$CC"}
6936
6937 # If no C compiler flags were specified, use CFLAGS.
6938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6939
6940 # Allow CC to be a program name with arguments.
6941 compiler=$CC
6942
6943
6944 # Check for command to grab the raw symbol name followed by C symbol from nm.
6945 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6946 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6947 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950
6951 # These are sane defaults that work on at least a few old systems.
6952 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6953
6954 # Character class describing NM global symbol codes.
6955 symcode='[BCDEGRST]'
6956
6957 # Regexp to match symbols that can be accessed directly from C.
6958 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6959
6960 # Define system-specific variables.
6961 case $host_os in
6962 aix*)
6963   symcode='[BCDT]'
6964   ;;
6965 cygwin* | mingw* | pw32* | cegcc*)
6966   symcode='[ABCDGISTW]'
6967   ;;
6968 hpux*)
6969   if test "$host_cpu" = ia64; then
6970     symcode='[ABCDEGRST]'
6971   fi
6972   ;;
6973 irix* | nonstopux*)
6974   symcode='[BCDEGRST]'
6975   ;;
6976 osf*)
6977   symcode='[BCDEGQRST]'
6978   ;;
6979 solaris*)
6980   symcode='[BDRT]'
6981   ;;
6982 sco3.2v5*)
6983   symcode='[DT]'
6984   ;;
6985 sysv4.2uw2*)
6986   symcode='[DT]'
6987   ;;
6988 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6989   symcode='[ABDT]'
6990   ;;
6991 sysv4)
6992   symcode='[DFNSTU]'
6993   ;;
6994 esac
6995
6996 # If we're using GNU nm, then use its standard symbol codes.
6997 case `$NM -V 2>&1` in
6998 *GNU* | *'with BFD'*)
6999   symcode='[ABCDGIRSTW]' ;;
7000 esac
7001
7002 # Transform an extracted symbol line into a proper C declaration.
7003 # Some systems (esp. on ia64) link data and code symbols differently,
7004 # so use this general approach.
7005 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7006
7007 # Transform an extracted symbol line into symbol name and symbol address
7008 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7009 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'"
7010
7011 # Handle CRLF in mingw tool chain
7012 opt_cr=
7013 case $build_os in
7014 mingw*)
7015   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7016   ;;
7017 esac
7018
7019 # Try without a prefix underscore, then with it.
7020 for ac_symprfx in "" "_"; do
7021
7022   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023   symxfrm="\\1 $ac_symprfx\\2 \\2"
7024
7025   # Write the raw and C identifiers.
7026   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027     # Fake it for dumpbin and say T for any non-static function
7028     # and D for any global variable.
7029     # Also find C++ and __fastcall symbols from MSVC++,
7030     # which start with @ or ?.
7031     lt_cv_sys_global_symbol_pipe="$AWK '"\
7032 "     {last_section=section; section=\$ 3};"\
7033 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7034 "     \$ 0!~/External *\|/{next};"\
7035 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7036 "     {if(hide[section]) next};"\
7037 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7038 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7039 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7040 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7041 "     ' prfx=^$ac_symprfx"
7042   else
7043     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044   fi
7045
7046   # Check to see that the pipe works correctly.
7047   pipe_works=no
7048
7049   rm -f conftest*
7050   cat > conftest.$ac_ext <<_LT_EOF
7051 #ifdef __cplusplus
7052 extern "C" {
7053 #endif
7054 char nm_test_var;
7055 void nm_test_func(void);
7056 void nm_test_func(void){}
7057 #ifdef __cplusplus
7058 }
7059 #endif
7060 int main(){nm_test_var='a';nm_test_func();return(0);}
7061 _LT_EOF
7062
7063   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064   (eval $ac_compile) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; then
7068     # Now try to grab the symbols.
7069     nlist=conftest.nm
7070     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7071   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } && test -s "$nlist"; then
7075       # Try sorting and uniquifying the output.
7076       if sort "$nlist" | uniq > "$nlist"T; then
7077         mv -f "$nlist"T "$nlist"
7078       else
7079         rm -f "$nlist"T
7080       fi
7081
7082       # Make sure that we snagged all the symbols we need.
7083       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7084         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7085           cat <<_LT_EOF > conftest.$ac_ext
7086 #ifdef __cplusplus
7087 extern "C" {
7088 #endif
7089
7090 _LT_EOF
7091           # Now generate the symbol file.
7092           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7093
7094           cat <<_LT_EOF >> conftest.$ac_ext
7095
7096 /* The mapping between symbol names and symbols.  */
7097 const struct {
7098   const char *name;
7099   void       *address;
7100 }
7101 lt__PROGRAM__LTX_preloaded_symbols[] =
7102 {
7103   { "@PROGRAM@", (void *) 0 },
7104 _LT_EOF
7105           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7106           cat <<\_LT_EOF >> conftest.$ac_ext
7107   {0, (void *) 0}
7108 };
7109
7110 /* This works around a problem in FreeBSD linker */
7111 #ifdef FREEBSD_WORKAROUND
7112 static const void *lt_preloaded_setup() {
7113   return lt__PROGRAM__LTX_preloaded_symbols;
7114 }
7115 #endif
7116
7117 #ifdef __cplusplus
7118 }
7119 #endif
7120 _LT_EOF
7121           # Now try linking the two files.
7122           mv conftest.$ac_objext conftstm.$ac_objext
7123           lt_save_LIBS="$LIBS"
7124           lt_save_CFLAGS="$CFLAGS"
7125           LIBS="conftstm.$ac_objext"
7126           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7127           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128   (eval $ac_link) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7132             pipe_works=yes
7133           fi
7134           LIBS="$lt_save_LIBS"
7135           CFLAGS="$lt_save_CFLAGS"
7136         else
7137           echo "cannot find nm_test_func in $nlist" >&5
7138         fi
7139       else
7140         echo "cannot find nm_test_var in $nlist" >&5
7141       fi
7142     else
7143       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7144     fi
7145   else
7146     echo "$progname: failed program was:" >&5
7147     cat conftest.$ac_ext >&5
7148   fi
7149   rm -rf conftest* conftst*
7150
7151   # Do not use the global_symbol_pipe unless it works.
7152   if test "$pipe_works" = yes; then
7153     break
7154   else
7155     lt_cv_sys_global_symbol_pipe=
7156   fi
7157 done
7158
7159 fi
7160
7161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7162   lt_cv_sys_global_symbol_to_cdecl=
7163 fi
7164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7165   { echo "$as_me:$LINENO: result: failed" >&5
7166 echo "${ECHO_T}failed" >&6; }
7167 else
7168   { echo "$as_me:$LINENO: result: ok" >&5
7169 echo "${ECHO_T}ok" >&6; }
7170 fi
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 # Check whether --enable-libtool-lock was given.
7194 if test "${enable_libtool_lock+set}" = set; then
7195   enableval=$enable_libtool_lock;
7196 fi
7197
7198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7199
7200 # Some flags need to be propagated to the compiler or linker for good
7201 # libtool support.
7202 case $host in
7203 ia64-*-hpux*)
7204   # Find out which ABI we are using.
7205   echo 'int i;' > conftest.$ac_ext
7206   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207   (eval $ac_compile) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; then
7211     case `/usr/bin/file conftest.$ac_objext` in
7212       *ELF-32*)
7213         HPUX_IA64_MODE="32"
7214         ;;
7215       *ELF-64*)
7216         HPUX_IA64_MODE="64"
7217         ;;
7218     esac
7219   fi
7220   rm -rf conftest*
7221   ;;
7222 *-*-irix6*)
7223   # Find out which ABI we are using.
7224   echo '#line 7224 "configure"' > conftest.$ac_ext
7225   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226   (eval $ac_compile) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; then
7230     if test "$lt_cv_prog_gnu_ld" = yes; then
7231       case `/usr/bin/file conftest.$ac_objext` in
7232         *32-bit*)
7233           LD="${LD-ld} -melf32bsmip"
7234           ;;
7235         *N32*)
7236           LD="${LD-ld} -melf32bmipn32"
7237           ;;
7238         *64-bit*)
7239           LD="${LD-ld} -melf64bmip"
7240         ;;
7241       esac
7242     else
7243       case `/usr/bin/file conftest.$ac_objext` in
7244         *32-bit*)
7245           LD="${LD-ld} -32"
7246           ;;
7247         *N32*)
7248           LD="${LD-ld} -n32"
7249           ;;
7250         *64-bit*)
7251           LD="${LD-ld} -64"
7252           ;;
7253       esac
7254     fi
7255   fi
7256   rm -rf conftest*
7257   ;;
7258
7259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7260 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7261   # Find out which ABI we are using.
7262   echo 'int i;' > conftest.$ac_ext
7263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264   (eval $ac_compile) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; then
7268     case `/usr/bin/file conftest.o` in
7269       *32-bit*)
7270         case $host in
7271           x86_64-*kfreebsd*-gnu)
7272             LD="${LD-ld} -m elf_i386_fbsd"
7273             ;;
7274           x86_64-*linux*)
7275             LD="${LD-ld} -m elf_i386"
7276             ;;
7277           ppc64-*linux*|powerpc64-*linux*)
7278             LD="${LD-ld} -m elf32ppclinux"
7279             ;;
7280           s390x-*linux*)
7281             LD="${LD-ld} -m elf_s390"
7282             ;;
7283           sparc64-*linux*)
7284             LD="${LD-ld} -m elf32_sparc"
7285             ;;
7286         esac
7287         ;;
7288       *64-bit*)
7289         case $host in
7290           x86_64-*kfreebsd*-gnu)
7291             LD="${LD-ld} -m elf_x86_64_fbsd"
7292             ;;
7293           x86_64-*linux*)
7294             LD="${LD-ld} -m elf_x86_64"
7295             ;;
7296           ppc*-*linux*|powerpc*-*linux*)
7297             LD="${LD-ld} -m elf64ppc"
7298             ;;
7299           s390*-*linux*|s390*-*tpf*)
7300             LD="${LD-ld} -m elf64_s390"
7301             ;;
7302           sparc*-*linux*)
7303             LD="${LD-ld} -m elf64_sparc"
7304             ;;
7305         esac
7306         ;;
7307     esac
7308   fi
7309   rm -rf conftest*
7310   ;;
7311
7312 *-*-sco3.2v5*)
7313   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7314   SAVE_CFLAGS="$CFLAGS"
7315   CFLAGS="$CFLAGS -belf"
7316   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7317 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7318 if test "${lt_cv_cc_needs_belf+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   ac_ext=c
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326
7327      cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h.  */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h.  */
7333
7334 int
7335 main ()
7336 {
7337
7338   ;
7339   return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (ac_try="$ac_link"
7344 case "(($ac_try" in
7345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346   *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349   (eval "$ac_link") 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } && {
7356          test -z "$ac_c_werror_flag" ||
7357          test ! -s conftest.err
7358        } && test -s conftest$ac_exeext &&
7359        $as_test_x conftest$ac_exeext; then
7360   lt_cv_cc_needs_belf=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365         lt_cv_cc_needs_belf=no
7366 fi
7367
7368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7369       conftest$ac_exeext conftest.$ac_ext
7370      ac_ext=c
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375
7376 fi
7377 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7378 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7379   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7380     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7381     CFLAGS="$SAVE_CFLAGS"
7382   fi
7383   ;;
7384 sparc*-*solaris*)
7385   # Find out which ABI we are using.
7386   echo 'int i;' > conftest.$ac_ext
7387   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7388   (eval $ac_compile) 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); }; then
7392     case `/usr/bin/file conftest.o` in
7393     *64-bit*)
7394       case $lt_cv_prog_gnu_ld in
7395       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7396       *)
7397         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7398           LD="${LD-ld} -64"
7399         fi
7400         ;;
7401       esac
7402       ;;
7403     esac
7404   fi
7405   rm -rf conftest*
7406   ;;
7407 esac
7408
7409 need_locks="$enable_libtool_lock"
7410
7411
7412   case $host_os in
7413     rhapsody* | darwin*)
7414     if test -n "$ac_tool_prefix"; then
7415   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   if test -n "$DSYMUTIL"; then
7423   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430   for ac_exec_ext in '' $ac_executable_extensions; do
7431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7443 if test -n "$DSYMUTIL"; then
7444   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7445 echo "${ECHO_T}$DSYMUTIL" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452 fi
7453 if test -z "$ac_cv_prog_DSYMUTIL"; then
7454   ac_ct_DSYMUTIL=$DSYMUTIL
7455   # Extract the first word of "dsymutil", so it can be a program name with args.
7456 set dummy dsymutil; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   if test -n "$ac_ct_DSYMUTIL"; then
7463   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470   for ac_exec_ext in '' $ac_executable_extensions; do
7471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7483 if test -n "$ac_ct_DSYMUTIL"; then
7484   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7485 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491   if test "x$ac_ct_DSYMUTIL" = x; then
7492     DSYMUTIL=":"
7493   else
7494     case $cross_compiling:$ac_tool_warned in
7495 yes:)
7496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7497 whose name does not start with the host triplet.  If you think this
7498 configuration is useful to you, please write to autoconf@gnu.org." >&5
7499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7500 whose name does not start with the host triplet.  If you think this
7501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504     DSYMUTIL=$ac_ct_DSYMUTIL
7505   fi
7506 else
7507   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7508 fi
7509
7510     if test -n "$ac_tool_prefix"; then
7511   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   if test -n "$NMEDIT"; then
7519   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526   for ac_exec_ext in '' $ac_executable_extensions; do
7527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 NMEDIT=$ac_cv_prog_NMEDIT
7539 if test -n "$NMEDIT"; then
7540   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7541 echo "${ECHO_T}$NMEDIT" >&6; }
7542 else
7543   { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7545 fi
7546
7547
7548 fi
7549 if test -z "$ac_cv_prog_NMEDIT"; then
7550   ac_ct_NMEDIT=$NMEDIT
7551   # Extract the first word of "nmedit", so it can be a program name with args.
7552 set dummy nmedit; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   if test -n "$ac_ct_NMEDIT"; then
7559   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566   for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7579 if test -n "$ac_ct_NMEDIT"; then
7580   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7581 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587   if test "x$ac_ct_NMEDIT" = x; then
7588     NMEDIT=":"
7589   else
7590     case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7593 whose name does not start with the host triplet.  If you think this
7594 configuration is useful to you, please write to autoconf@gnu.org." >&5
7595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7596 whose name does not start with the host triplet.  If you think this
7597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7598 ac_tool_warned=yes ;;
7599 esac
7600     NMEDIT=$ac_ct_NMEDIT
7601   fi
7602 else
7603   NMEDIT="$ac_cv_prog_NMEDIT"
7604 fi
7605
7606     if test -n "$ac_tool_prefix"; then
7607   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7608 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_prog_LIPO+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   if test -n "$LIPO"; then
7615   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620   IFS=$as_save_IFS
7621   test -z "$as_dir" && as_dir=.
7622   for ac_exec_ext in '' $ac_executable_extensions; do
7623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626     break 2
7627   fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 fi
7633 fi
7634 LIPO=$ac_cv_prog_LIPO
7635 if test -n "$LIPO"; then
7636   { echo "$as_me:$LINENO: result: $LIPO" >&5
7637 echo "${ECHO_T}$LIPO" >&6; }
7638 else
7639   { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7641 fi
7642
7643
7644 fi
7645 if test -z "$ac_cv_prog_LIPO"; then
7646   ac_ct_LIPO=$LIPO
7647   # Extract the first word of "lipo", so it can be a program name with args.
7648 set dummy lipo; ac_word=$2
7649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   if test -n "$ac_ct_LIPO"; then
7655   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662   for ac_exec_ext in '' $ac_executable_extensions; do
7663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664     ac_cv_prog_ac_ct_LIPO="lipo"
7665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672 fi
7673 fi
7674 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7675 if test -n "$ac_ct_LIPO"; then
7676   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7677 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7678 else
7679   { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7681 fi
7682
7683   if test "x$ac_ct_LIPO" = x; then
7684     LIPO=":"
7685   else
7686     case $cross_compiling:$ac_tool_warned in
7687 yes:)
7688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7689 whose name does not start with the host triplet.  If you think this
7690 configuration is useful to you, please write to autoconf@gnu.org." >&5
7691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7692 whose name does not start with the host triplet.  If you think this
7693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7694 ac_tool_warned=yes ;;
7695 esac
7696     LIPO=$ac_ct_LIPO
7697   fi
7698 else
7699   LIPO="$ac_cv_prog_LIPO"
7700 fi
7701
7702     if test -n "$ac_tool_prefix"; then
7703   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7704 set dummy ${ac_tool_prefix}otool; ac_word=$2
7705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707 if test "${ac_cv_prog_OTOOL+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   if test -n "$OTOOL"; then
7711   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716   IFS=$as_save_IFS
7717   test -z "$as_dir" && as_dir=.
7718   for ac_exec_ext in '' $ac_executable_extensions; do
7719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722     break 2
7723   fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 OTOOL=$ac_cv_prog_OTOOL
7731 if test -n "$OTOOL"; then
7732   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7733 echo "${ECHO_T}$OTOOL" >&6; }
7734 else
7735   { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7737 fi
7738
7739
7740 fi
7741 if test -z "$ac_cv_prog_OTOOL"; then
7742   ac_ct_OTOOL=$OTOOL
7743   # Extract the first word of "otool", so it can be a program name with args.
7744 set dummy otool; ac_word=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   if test -n "$ac_ct_OTOOL"; then
7751   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760     ac_cv_prog_ac_ct_OTOOL="otool"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7771 if test -n "$ac_ct_OTOOL"; then
7772   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7773 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7774 else
7775   { echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6; }
7777 fi
7778
7779   if test "x$ac_ct_OTOOL" = x; then
7780     OTOOL=":"
7781   else
7782     case $cross_compiling:$ac_tool_warned in
7783 yes:)
7784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet.  If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&5
7787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7788 whose name does not start with the host triplet.  If you think this
7789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7790 ac_tool_warned=yes ;;
7791 esac
7792     OTOOL=$ac_ct_OTOOL
7793   fi
7794 else
7795   OTOOL="$ac_cv_prog_OTOOL"
7796 fi
7797
7798     if test -n "$ac_tool_prefix"; then
7799   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7800 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   if test -n "$OTOOL64"; then
7807   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814   for ac_exec_ext in '' $ac_executable_extensions; do
7815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818     break 2
7819   fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 fi
7825 fi
7826 OTOOL64=$ac_cv_prog_OTOOL64
7827 if test -n "$OTOOL64"; then
7828   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7829 echo "${ECHO_T}$OTOOL64" >&6; }
7830 else
7831   { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7833 fi
7834
7835
7836 fi
7837 if test -z "$ac_cv_prog_OTOOL64"; then
7838   ac_ct_OTOOL64=$OTOOL64
7839   # Extract the first word of "otool64", so it can be a program name with args.
7840 set dummy otool64; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846   if test -n "$ac_ct_OTOOL64"; then
7847   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854   for ac_exec_ext in '' $ac_executable_extensions; do
7855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856     ac_cv_prog_ac_ct_OTOOL64="otool64"
7857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 fi
7865 fi
7866 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7867 if test -n "$ac_ct_OTOOL64"; then
7868   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7869 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7870 else
7871   { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7873 fi
7874
7875   if test "x$ac_ct_OTOOL64" = x; then
7876     OTOOL64=":"
7877   else
7878     case $cross_compiling:$ac_tool_warned in
7879 yes:)
7880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet.  If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&5
7883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7884 whose name does not start with the host triplet.  If you think this
7885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7886 ac_tool_warned=yes ;;
7887 esac
7888     OTOOL64=$ac_ct_OTOOL64
7889   fi
7890 else
7891   OTOOL64="$ac_cv_prog_OTOOL64"
7892 fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7921 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7922 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   lt_cv_apple_cc_single_mod=no
7926       if test -z "${LT_MULTI_MODULE}"; then
7927         # By default we will add the -single_module flag. You can override
7928         # by either setting the environment variable LT_MULTI_MODULE
7929         # non-empty at configure time, or by adding -multi_module to the
7930         # link flags.
7931         rm -rf libconftest.dylib*
7932         echo "int foo(void){return 1;}" > conftest.c
7933         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib -Wl,-single_module conftest.c" >&5
7935         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7936           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7937         _lt_result=$?
7938         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7939           lt_cv_apple_cc_single_mod=yes
7940         else
7941           cat conftest.err >&5
7942         fi
7943         rm -rf libconftest.dylib*
7944         rm -f conftest.*
7945       fi
7946 fi
7947 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7948 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7949     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7950 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7951 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   lt_cv_ld_exported_symbols_list=no
7955       save_LDFLAGS=$LDFLAGS
7956       echo "_main" > conftest.sym
7957       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7958       cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 int
7966 main ()
7967 {
7968
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_link") 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } && {
7987          test -z "$ac_c_werror_flag" ||
7988          test ! -s conftest.err
7989        } && test -s conftest$ac_exeext &&
7990        $as_test_x conftest$ac_exeext; then
7991   lt_cv_ld_exported_symbols_list=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996         lt_cv_ld_exported_symbols_list=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8000       conftest$ac_exeext conftest.$ac_ext
8001         LDFLAGS="$save_LDFLAGS"
8002
8003 fi
8004 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8005 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8006     case $host_os in
8007     rhapsody* | darwin1.[012])
8008       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8009     darwin1.*)
8010       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8011     darwin*) # darwin 5.x on
8012       # if running on 10.5 or later, the deployment target defaults
8013       # to the OS version, if on x86, and 10.4, the deployment
8014       # target defaults to 10.4. Don't you love it?
8015       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8016         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8017           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8018         10.[012]*)
8019           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8020         10.*)
8021           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8022       esac
8023     ;;
8024   esac
8025     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8026       _lt_dar_single_mod='$single_module'
8027     fi
8028     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8029       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8030     else
8031       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8032     fi
8033     if test "$DSYMUTIL" != ":"; then
8034       _lt_dsymutil='~$DSYMUTIL $lib || :'
8035     else
8036       _lt_dsymutil=
8037     fi
8038     ;;
8039   esac
8040
8041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8043 if test "${ac_cv_header_stdc+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052 #include <stdlib.h>
8053 #include <stdarg.h>
8054 #include <string.h>
8055 #include <float.h>
8056
8057 int
8058 main ()
8059 {
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8067 case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_compile") 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } && {
8079          test -z "$ac_c_werror_flag" ||
8080          test ! -s conftest.err
8081        } && test -s conftest.$ac_objext; then
8082   ac_cv_header_stdc=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         ac_cv_header_stdc=no
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091
8092 if test $ac_cv_header_stdc = yes; then
8093   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8094   cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h.  */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h.  */
8100 #include <string.h>
8101
8102 _ACEOF
8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104   $EGREP "memchr" >/dev/null 2>&1; then
8105   :
8106 else
8107   ac_cv_header_stdc=no
8108 fi
8109 rm -f conftest*
8110
8111 fi
8112
8113 if test $ac_cv_header_stdc = yes; then
8114   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8115   cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 #include <stdlib.h>
8122
8123 _ACEOF
8124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125   $EGREP "free" >/dev/null 2>&1; then
8126   :
8127 else
8128   ac_cv_header_stdc=no
8129 fi
8130 rm -f conftest*
8131
8132 fi
8133
8134 if test $ac_cv_header_stdc = yes; then
8135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8136   if test "$cross_compiling" = yes; then
8137   :
8138 else
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145 #include <ctype.h>
8146 #include <stdlib.h>
8147 #if ((' ' & 0x0FF) == 0x020)
8148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8150 #else
8151 # define ISLOWER(c) \
8152                    (('a' <= (c) && (c) <= 'i') \
8153                      || ('j' <= (c) && (c) <= 'r') \
8154                      || ('s' <= (c) && (c) <= 'z'))
8155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8156 #endif
8157
8158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8159 int
8160 main ()
8161 {
8162   int i;
8163   for (i = 0; i < 256; i++)
8164     if (XOR (islower (i), ISLOWER (i))
8165         || toupper (i) != TOUPPER (i))
8166       return 2;
8167   return 0;
8168 }
8169 _ACEOF
8170 rm -f conftest$ac_exeext
8171 if { (ac_try="$ac_link"
8172 case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_link") 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8181   { (case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   :
8191 else
8192   echo "$as_me: program exited with status $ac_status" >&5
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ( exit $ac_status )
8197 ac_cv_header_stdc=no
8198 fi
8199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8200 fi
8201
8202
8203 fi
8204 fi
8205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8207 if test $ac_cv_header_stdc = yes; then
8208
8209 cat >>confdefs.h <<\_ACEOF
8210 #define STDC_HEADERS 1
8211 _ACEOF
8212
8213 fi
8214
8215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8226                   inttypes.h stdint.h unistd.h
8227 do
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 $ac_includes_default
8241
8242 #include <$ac_header>
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_compile") 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } && {
8258          test -z "$ac_c_werror_flag" ||
8259          test ! -s conftest.err
8260        } && test -s conftest.$ac_objext; then
8261   eval "$as_ac_Header=yes"
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266         eval "$as_ac_Header=no"
8267 fi
8268
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272                { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275   cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 _ACEOF
8278
8279 fi
8280
8281 done
8282
8283
8284
8285 for ac_header in dlfcn.h
8286 do
8287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299 $ac_includes_default
8300
8301 #include <$ac_header>
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_compile") 2>conftest.er1
8311   ac_status=$?
8312   grep -v '^ *+' conftest.er1 >conftest.err
8313   rm -f conftest.er1
8314   cat conftest.err >&5
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } && {
8317          test -z "$ac_c_werror_flag" ||
8318          test ! -s conftest.err
8319        } && test -s conftest.$ac_objext; then
8320   eval "$as_ac_Header=yes"
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325         eval "$as_ac_Header=no"
8326 fi
8327
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 ac_res=`eval echo '${'$as_ac_Header'}'`
8331                { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8334   cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8336 _ACEOF
8337
8338 fi
8339
8340 done
8341
8342
8343
8344 ac_ext=cpp
8345 ac_cpp='$CXXCPP $CPPFLAGS'
8346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8349 if test -z "$CXX"; then
8350   if test -n "$CCC"; then
8351     CXX=$CCC
8352   else
8353     if test -n "$ac_tool_prefix"; then
8354   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8355   do
8356     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8360 if test "${ac_cv_prog_CXX+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   if test -n "$CXX"; then
8364   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371   for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 CXX=$ac_cv_prog_CXX
8384 if test -n "$CXX"; then
8385   { echo "$as_me:$LINENO: result: $CXX" >&5
8386 echo "${ECHO_T}$CXX" >&6; }
8387 else
8388   { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8390 fi
8391
8392
8393     test -n "$CXX" && break
8394   done
8395 fi
8396 if test -z "$CXX"; then
8397   ac_ct_CXX=$CXX
8398   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8399 do
8400   # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   if test -n "$ac_ct_CXX"; then
8408   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415   for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_prog_ac_ct_CXX="$ac_prog"
8418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8428 if test -n "$ac_ct_CXX"; then
8429   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8430 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8431 else
8432   { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8434 fi
8435
8436
8437   test -n "$ac_ct_CXX" && break
8438 done
8439
8440   if test "x$ac_ct_CXX" = x; then
8441     CXX="g++"
8442   else
8443     case $cross_compiling:$ac_tool_warned in
8444 yes:)
8445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet.  If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&5
8448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet.  If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8451 ac_tool_warned=yes ;;
8452 esac
8453     CXX=$ac_ct_CXX
8454   fi
8455 fi
8456
8457   fi
8458 fi
8459 # Provide some information about the compiler.
8460 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8461 ac_compiler=`set X $ac_compile; echo $2`
8462 { (ac_try="$ac_compiler --version >&5"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_compiler --version >&5") 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }
8472 { (ac_try="$ac_compiler -v >&5"
8473 case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478   (eval "$ac_compiler -v >&5") 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }
8482 { (ac_try="$ac_compiler -V >&5"
8483 case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_compiler -V >&5") 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }
8492
8493 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8496   echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498   cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505 int
8506 main ()
8507 {
8508 #ifndef __GNUC__
8509        choke me
8510 #endif
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8518 case "(($ac_try" in
8519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520   *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523   (eval "$ac_compile") 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } && {
8530          test -z "$ac_cxx_werror_flag" ||
8531          test ! -s conftest.err
8532        } && test -s conftest.$ac_objext; then
8533   ac_compiler_gnu=yes
8534 else
8535   echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538         ac_compiler_gnu=no
8539 fi
8540
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8543
8544 fi
8545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8546 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8547 GXX=`test $ac_compiler_gnu = yes && echo yes`
8548 ac_test_CXXFLAGS=${CXXFLAGS+set}
8549 ac_save_CXXFLAGS=$CXXFLAGS
8550 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8551 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_cxx_g+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8556    ac_cxx_werror_flag=yes
8557    ac_cv_prog_cxx_g=no
8558    CXXFLAGS="-g"
8559    cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565
8566 int
8567 main ()
8568 {
8569
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8576 case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581   (eval "$ac_compile") 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } && {
8588          test -z "$ac_cxx_werror_flag" ||
8589          test ! -s conftest.err
8590        } && test -s conftest.$ac_objext; then
8591   ac_cv_prog_cxx_g=yes
8592 else
8593   echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596         CXXFLAGS=""
8597       cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603
8604 int
8605 main ()
8606 {
8607
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8614 case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_compile") 2>conftest.er1
8620   ac_status=$?
8621   grep -v '^ *+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } && {
8626          test -z "$ac_cxx_werror_flag" ||
8627          test ! -s conftest.err
8628        } && test -s conftest.$ac_objext; then
8629   :
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8635          CXXFLAGS="-g"
8636          cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h.  */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h.  */
8642
8643 int
8644 main ()
8645 {
8646
8647   ;
8648   return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8653 case "(($ac_try" in
8654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655   *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658   (eval "$ac_compile") 2>conftest.er1
8659   ac_status=$?
8660   grep -v '^ *+' conftest.er1 >conftest.err
8661   rm -f conftest.er1
8662   cat conftest.err >&5
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } && {
8665          test -z "$ac_cxx_werror_flag" ||
8666          test ! -s conftest.err
8667        } && test -s conftest.$ac_objext; then
8668   ac_cv_prog_cxx_g=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 fi
8681
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8684 fi
8685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8686 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8687 if test "$ac_test_CXXFLAGS" = set; then
8688   CXXFLAGS=$ac_save_CXXFLAGS
8689 elif test $ac_cv_prog_cxx_g = yes; then
8690   if test "$GXX" = yes; then
8691     CXXFLAGS="-g -O2"
8692   else
8693     CXXFLAGS="-g"
8694   fi
8695 else
8696   if test "$GXX" = yes; then
8697     CXXFLAGS="-O2"
8698   else
8699     CXXFLAGS=
8700   fi
8701 fi
8702 ac_ext=c
8703 ac_cpp='$CPP $CPPFLAGS'
8704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8707
8708 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8709     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8710     (test "X$CXX" != "Xg++"))) ; then
8711   ac_ext=cpp
8712 ac_cpp='$CXXCPP $CPPFLAGS'
8713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8716 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8717 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8718 if test -z "$CXXCPP"; then
8719   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8720   echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722       # Double quotes because CXXCPP needs to be expanded
8723     for CXXCPP in "$CXX -E" "/lib/cpp"
8724     do
8725       ac_preproc_ok=false
8726 for ac_cxx_preproc_warn_flag in '' yes
8727 do
8728   # Use a header file that comes with gcc, so configuring glibc
8729   # with a fresh cross-compiler works.
8730   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731   # <limits.h> exists even on freestanding compilers.
8732   # On the NeXT, cc -E runs the code through the compiler's parser,
8733   # not just through cpp. "Syntax error" is here to catch this case.
8734   cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #ifdef __STDC__
8741 # include <limits.h>
8742 #else
8743 # include <assert.h>
8744 #endif
8745                      Syntax error
8746 _ACEOF
8747 if { (ac_try="$ac_cpp conftest.$ac_ext"
8748 case "(($ac_try" in
8749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750   *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } >/dev/null && {
8760          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8761          test ! -s conftest.err
8762        }; then
8763   :
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768   # Broken: fails on valid input.
8769 continue
8770 fi
8771
8772 rm -f conftest.err conftest.$ac_ext
8773
8774   # OK, works on sane cases.  Now check whether nonexistent headers
8775   # can be detected and how.
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 #include <ac_nonexistent.h>
8783 _ACEOF
8784 if { (ac_try="$ac_cpp conftest.$ac_ext"
8785 case "(($ac_try" in
8786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787   *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8791   ac_status=$?
8792   grep -v '^ *+' conftest.er1 >conftest.err
8793   rm -f conftest.er1
8794   cat conftest.err >&5
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); } >/dev/null && {
8797          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8798          test ! -s conftest.err
8799        }; then
8800   # Broken: success on invalid input.
8801 continue
8802 else
8803   echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8805
8806   # Passes both tests.
8807 ac_preproc_ok=:
8808 break
8809 fi
8810
8811 rm -f conftest.err conftest.$ac_ext
8812
8813 done
8814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8815 rm -f conftest.err conftest.$ac_ext
8816 if $ac_preproc_ok; then
8817   break
8818 fi
8819
8820     done
8821     ac_cv_prog_CXXCPP=$CXXCPP
8822
8823 fi
8824   CXXCPP=$ac_cv_prog_CXXCPP
8825 else
8826   ac_cv_prog_CXXCPP=$CXXCPP
8827 fi
8828 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8829 echo "${ECHO_T}$CXXCPP" >&6; }
8830 ac_preproc_ok=false
8831 for ac_cxx_preproc_warn_flag in '' yes
8832 do
8833   # Use a header file that comes with gcc, so configuring glibc
8834   # with a fresh cross-compiler works.
8835   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836   # <limits.h> exists even on freestanding compilers.
8837   # On the NeXT, cc -E runs the code through the compiler's parser,
8838   # not just through cpp. "Syntax error" is here to catch this case.
8839   cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h.  */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h.  */
8845 #ifdef __STDC__
8846 # include <limits.h>
8847 #else
8848 # include <assert.h>
8849 #endif
8850                      Syntax error
8851 _ACEOF
8852 if { (ac_try="$ac_cpp conftest.$ac_ext"
8853 case "(($ac_try" in
8854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855   *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8859   ac_status=$?
8860   grep -v '^ *+' conftest.er1 >conftest.err
8861   rm -f conftest.er1
8862   cat conftest.err >&5
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } >/dev/null && {
8865          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8866          test ! -s conftest.err
8867        }; then
8868   :
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873   # Broken: fails on valid input.
8874 continue
8875 fi
8876
8877 rm -f conftest.err conftest.$ac_ext
8878
8879   # OK, works on sane cases.  Now check whether nonexistent headers
8880   # can be detected and how.
8881   cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 #include <ac_nonexistent.h>
8888 _ACEOF
8889 if { (ac_try="$ac_cpp conftest.$ac_ext"
8890 case "(($ac_try" in
8891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892   *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8896   ac_status=$?
8897   grep -v '^ *+' conftest.er1 >conftest.err
8898   rm -f conftest.er1
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } >/dev/null && {
8902          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8903          test ! -s conftest.err
8904        }; then
8905   # Broken: success on invalid input.
8906 continue
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911   # Passes both tests.
8912 ac_preproc_ok=:
8913 break
8914 fi
8915
8916 rm -f conftest.err conftest.$ac_ext
8917
8918 done
8919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8920 rm -f conftest.err conftest.$ac_ext
8921 if $ac_preproc_ok; then
8922   :
8923 else
8924   _lt_caught_CXX_error=yes
8925 fi
8926
8927 ac_ext=c
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932
8933 else
8934   _lt_caught_CXX_error=yes
8935 fi
8936
8937
8938
8939
8940
8941 # Set options
8942 # Check whether --enable-shared was given.
8943 if test "${enable_shared+set}" = set; then
8944   enableval=$enable_shared; p=${PACKAGE-default}
8945     case $enableval in
8946     yes) enable_shared=yes ;;
8947     no) enable_shared=no ;;
8948     *)
8949       enable_shared=no
8950       # Look at the argument we got.  We use all the common list separators.
8951       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8952       for pkg in $enableval; do
8953         IFS="$lt_save_ifs"
8954         if test "X$pkg" = "X$p"; then
8955           enable_shared=yes
8956         fi
8957       done
8958       IFS="$lt_save_ifs"
8959       ;;
8960     esac
8961 else
8962   enable_shared=yes
8963 fi
8964
8965
8966
8967
8968
8969
8970
8971 # Check whether --enable-static was given.
8972 if test "${enable_static+set}" = set; then
8973   enableval=$enable_static; p=${PACKAGE-default}
8974     case $enableval in
8975     yes) enable_static=yes ;;
8976     no) enable_static=no ;;
8977     *)
8978      enable_static=no
8979       # Look at the argument we got.  We use all the common list separators.
8980       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8981       for pkg in $enableval; do
8982         IFS="$lt_save_ifs"
8983         if test "X$pkg" = "X$p"; then
8984           enable_static=yes
8985         fi
8986       done
8987       IFS="$lt_save_ifs"
8988       ;;
8989     esac
8990 else
8991   enable_static=no
8992 fi
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003         enable_dlopen=no
9004
9005
9006   enable_win32_dll=no
9007
9008
9009
9010
9011
9012 # Check whether --with-pic was given.
9013 if test "${with_pic+set}" = set; then
9014   withval=$with_pic; pic_mode="$withval"
9015 else
9016   pic_mode=default
9017 fi
9018
9019
9020 test -z "$pic_mode" && pic_mode=default
9021
9022
9023
9024
9025
9026
9027
9028   # Check whether --enable-fast-install was given.
9029 if test "${enable_fast_install+set}" = set; then
9030   enableval=$enable_fast_install; p=${PACKAGE-default}
9031     case $enableval in
9032     yes) enable_fast_install=yes ;;
9033     no) enable_fast_install=no ;;
9034     *)
9035       enable_fast_install=no
9036       # Look at the argument we got.  We use all the common list separators.
9037       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9038       for pkg in $enableval; do
9039         IFS="$lt_save_ifs"
9040         if test "X$pkg" = "X$p"; then
9041           enable_fast_install=yes
9042         fi
9043       done
9044       IFS="$lt_save_ifs"
9045       ;;
9046     esac
9047 else
9048   enable_fast_install=yes
9049 fi
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061 # This can be used to rebuild libtool when needed
9062 LIBTOOL_DEPS="$ltmain"
9063
9064 # Always use our own libtool.
9065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 test -z "$LN_S" && LN_S="ln -s"
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106 if test -n "${ZSH_VERSION+set}" ; then
9107    setopt NO_GLOB_SUBST
9108 fi
9109
9110 { echo "$as_me:$LINENO: checking for objdir" >&5
9111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9112 if test "${lt_cv_objdir+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   rm -f .libs 2>/dev/null
9116 mkdir .libs 2>/dev/null
9117 if test -d .libs; then
9118   lt_cv_objdir=.libs
9119 else
9120   # MS-DOS does not allow filenames that begin with a dot.
9121   lt_cv_objdir=_libs
9122 fi
9123 rmdir .libs 2>/dev/null
9124 fi
9125 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9126 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9127 objdir=$lt_cv_objdir
9128
9129
9130
9131
9132
9133 cat >>confdefs.h <<_ACEOF
9134 #define LT_OBJDIR "$lt_cv_objdir/"
9135 _ACEOF
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 case $host_os in
9154 aix3*)
9155   # AIX sometimes has problems with the GCC collect2 program.  For some
9156   # reason, if we set the COLLECT_NAMES environment variable, the problems
9157   # vanish in a puff of smoke.
9158   if test "X${COLLECT_NAMES+set}" != Xset; then
9159     COLLECT_NAMES=
9160     export COLLECT_NAMES
9161   fi
9162   ;;
9163 esac
9164
9165 # Sed substitution that helps us do robust quoting.  It backslashifies
9166 # metacharacters that are still active within double-quoted strings.
9167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9168
9169 # Same as above, but do not quote variable references.
9170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9171
9172 # Sed substitution to delay expansion of an escaped shell variable in a
9173 # double_quote_subst'ed string.
9174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9175
9176 # Sed substitution to delay expansion of an escaped single quote.
9177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9178
9179 # Sed substitution to avoid accidental globbing in evaled expressions
9180 no_glob_subst='s/\*/\\\*/g'
9181
9182 # Global variables:
9183 ofile=libtool
9184 can_build_shared=yes
9185
9186 # All known linkers require a `.a' archive for static linking (except MSVC,
9187 # which needs '.lib').
9188 libext=a
9189
9190 with_gnu_ld="$lt_cv_prog_gnu_ld"
9191
9192 old_CC="$CC"
9193 old_CFLAGS="$CFLAGS"
9194
9195 # Set sane defaults for various variables
9196 test -z "$CC" && CC=cc
9197 test -z "$LTCC" && LTCC=$CC
9198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9199 test -z "$LD" && LD=ld
9200 test -z "$ac_objext" && ac_objext=o
9201
9202 for cc_temp in $compiler""; do
9203   case $cc_temp in
9204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9206     \-*) ;;
9207     *) break;;
9208   esac
9209 done
9210 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9211
9212
9213 # Only perform the check for file, if the check method requires it
9214 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9215 case $deplibs_check_method in
9216 file_magic*)
9217   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9218     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   case $MAGIC_CMD in
9224 [\\/*] |  ?:[\\/]*)
9225   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9226   ;;
9227 *)
9228   lt_save_MAGIC_CMD="$MAGIC_CMD"
9229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9231   for ac_dir in $ac_dummy; do
9232     IFS="$lt_save_ifs"
9233     test -z "$ac_dir" && ac_dir=.
9234     if test -f $ac_dir/${ac_tool_prefix}file; then
9235       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9236       if test -n "$file_magic_test_file"; then
9237         case $deplibs_check_method in
9238         "file_magic "*)
9239           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9242             $EGREP "$file_magic_regex" > /dev/null; then
9243             :
9244           else
9245             cat <<_LT_EOF 1>&2
9246
9247 *** Warning: the command libtool uses to detect shared libraries,
9248 *** $file_magic_cmd, produces output that libtool cannot recognize.
9249 *** The result is that libtool may fail to recognize shared libraries
9250 *** as such.  This will affect the creation of libtool libraries that
9251 *** depend on shared libraries, but programs linked with such libtool
9252 *** libraries will work regardless of this problem.  Nevertheless, you
9253 *** may want to report the problem to your system manager and/or to
9254 *** bug-libtool@gnu.org
9255
9256 _LT_EOF
9257           fi ;;
9258         esac
9259       fi
9260       break
9261     fi
9262   done
9263   IFS="$lt_save_ifs"
9264   MAGIC_CMD="$lt_save_MAGIC_CMD"
9265   ;;
9266 esac
9267 fi
9268
9269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9270 if test -n "$MAGIC_CMD"; then
9271   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9273 else
9274   { echo "$as_me:$LINENO: result: no" >&5
9275 echo "${ECHO_T}no" >&6; }
9276 fi
9277
9278
9279
9280
9281
9282 if test -z "$lt_cv_path_MAGIC_CMD"; then
9283   if test -n "$ac_tool_prefix"; then
9284     { echo "$as_me:$LINENO: checking for file" >&5
9285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   case $MAGIC_CMD in
9290 [\\/*] |  ?:[\\/]*)
9291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9292   ;;
9293 *)
9294   lt_save_MAGIC_CMD="$MAGIC_CMD"
9295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9296   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9297   for ac_dir in $ac_dummy; do
9298     IFS="$lt_save_ifs"
9299     test -z "$ac_dir" && ac_dir=.
9300     if test -f $ac_dir/file; then
9301       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9302       if test -n "$file_magic_test_file"; then
9303         case $deplibs_check_method in
9304         "file_magic "*)
9305           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9306           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9307           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9308             $EGREP "$file_magic_regex" > /dev/null; then
9309             :
9310           else
9311             cat <<_LT_EOF 1>&2
9312
9313 *** Warning: the command libtool uses to detect shared libraries,
9314 *** $file_magic_cmd, produces output that libtool cannot recognize.
9315 *** The result is that libtool may fail to recognize shared libraries
9316 *** as such.  This will affect the creation of libtool libraries that
9317 *** depend on shared libraries, but programs linked with such libtool
9318 *** libraries will work regardless of this problem.  Nevertheless, you
9319 *** may want to report the problem to your system manager and/or to
9320 *** bug-libtool@gnu.org
9321
9322 _LT_EOF
9323           fi ;;
9324         esac
9325       fi
9326       break
9327     fi
9328   done
9329   IFS="$lt_save_ifs"
9330   MAGIC_CMD="$lt_save_MAGIC_CMD"
9331   ;;
9332 esac
9333 fi
9334
9335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9336 if test -n "$MAGIC_CMD"; then
9337   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9339 else
9340   { echo "$as_me:$LINENO: result: no" >&5
9341 echo "${ECHO_T}no" >&6; }
9342 fi
9343
9344
9345   else
9346     MAGIC_CMD=:
9347   fi
9348 fi
9349
9350   fi
9351   ;;
9352 esac
9353
9354 # Use C for the default configuration in the libtool script
9355
9356 lt_save_CC="$CC"
9357 ac_ext=c
9358 ac_cpp='$CPP $CPPFLAGS'
9359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362
9363
9364 # Source file extension for C test sources.
9365 ac_ext=c
9366
9367 # Object file extension for compiled C test sources.
9368 objext=o
9369 objext=$objext
9370
9371 # Code to be used in simple compile tests
9372 lt_simple_compile_test_code="int some_variable = 0;"
9373
9374 # Code to be used in simple link tests
9375 lt_simple_link_test_code='int main(){return(0);}'
9376
9377
9378
9379
9380
9381
9382
9383 # If no C compiler was specified, use CC.
9384 LTCC=${LTCC-"$CC"}
9385
9386 # If no C compiler flags were specified, use CFLAGS.
9387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9388
9389 # Allow CC to be a program name with arguments.
9390 compiler=$CC
9391
9392 # Save the default compiler, since it gets overwritten when the other
9393 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9394 compiler_DEFAULT=$CC
9395
9396 # save warnings/boilerplate of simple test code
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_compiler_boilerplate=`cat conftest.err`
9401 $RM conftest*
9402
9403 ac_outfile=conftest.$ac_objext
9404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9406 _lt_linker_boilerplate=`cat conftest.err`
9407 $RM -r conftest*
9408
9409
9410 ## CAVEAT EMPTOR:
9411 ## There is no encapsulation within the following macros, do not change
9412 ## the running order or otherwise move them around unless you know exactly
9413 ## what you are doing...
9414 if test -n "$compiler"; then
9415
9416 lt_prog_compiler_no_builtin_flag=
9417
9418 if test "$GCC" = yes; then
9419   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9420
9421   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   lt_cv_prog_compiler_rtti_exceptions=no
9427    ac_outfile=conftest.$ac_objext
9428    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9429    lt_compiler_flag="-fno-rtti -fno-exceptions"
9430    # Insert the option either (1) after the last *FLAGS variable, or
9431    # (2) before a word containing "conftest.", or (3) at the end.
9432    # Note that $ac_compile itself does not contain backslashes and begins
9433    # with a dollar sign (not a hyphen), so the echo should work correctly.
9434    # The option is referenced via a variable to avoid confusing sed.
9435    lt_compile=`echo "$ac_compile" | $SED \
9436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9438    -e 's:$: $lt_compiler_flag:'`
9439    (eval echo "\"\$as_me:9439: $lt_compile\"" >&5)
9440    (eval "$lt_compile" 2>conftest.err)
9441    ac_status=$?
9442    cat conftest.err >&5
9443    echo "$as_me:9443: \$? = $ac_status" >&5
9444    if (exit $ac_status) && test -s "$ac_outfile"; then
9445      # The compiler can only warn and ignore the option if not recognized
9446      # So say no if there are warnings other than the usual output.
9447      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9448      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9449      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9450        lt_cv_prog_compiler_rtti_exceptions=yes
9451      fi
9452    fi
9453    $RM conftest*
9454
9455 fi
9456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9458
9459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9460     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9461 else
9462     :
9463 fi
9464
9465 fi
9466
9467
9468
9469
9470
9471
9472   lt_prog_compiler_wl=
9473 lt_prog_compiler_pic=
9474 lt_prog_compiler_static=
9475
9476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9478
9479   if test "$GCC" = yes; then
9480     lt_prog_compiler_wl='-Wl,'
9481     lt_prog_compiler_static='-static'
9482
9483     case $host_os in
9484       aix*)
9485       # All AIX code is PIC.
9486       if test "$host_cpu" = ia64; then
9487         # AIX 5 now supports IA64 processor
9488         lt_prog_compiler_static='-Bstatic'
9489       fi
9490       ;;
9491
9492     amigaos*)
9493       case $host_cpu in
9494       powerpc)
9495             # see comment about AmigaOS4 .so support
9496             lt_prog_compiler_pic='-fPIC'
9497         ;;
9498       m68k)
9499             # FIXME: we need at least 68020 code to build shared libraries, but
9500             # adding the `-m68020' flag to GCC prevents building anything better,
9501             # like `-m68040'.
9502             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9503         ;;
9504       esac
9505       ;;
9506
9507     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9508       # PIC is the default for these OSes.
9509       ;;
9510
9511     mingw* | cygwin* | pw32* | os2* | cegcc*)
9512       # This hack is so that the source file can tell whether it is being
9513       # built for inclusion in a dll (and should export symbols for example).
9514       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9515       # (--disable-auto-import) libraries
9516       lt_prog_compiler_pic='-DDLL_EXPORT'
9517       ;;
9518
9519     darwin* | rhapsody*)
9520       # PIC is the default on this platform
9521       # Common symbols not allowed in MH_DYLIB files
9522       lt_prog_compiler_pic='-fno-common'
9523       ;;
9524
9525     hpux*)
9526       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9527       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9528       # sets the default TLS model and affects inlining.
9529       case $host_cpu in
9530       hppa*64*)
9531         # +Z the default
9532         ;;
9533       *)
9534         lt_prog_compiler_pic='-fPIC'
9535         ;;
9536       esac
9537       ;;
9538
9539     interix[3-9]*)
9540       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9541       # Instead, we relocate shared libraries at runtime.
9542       ;;
9543
9544     msdosdjgpp*)
9545       # Just because we use GCC doesn't mean we suddenly get shared libraries
9546       # on systems that don't support them.
9547       lt_prog_compiler_can_build_shared=no
9548       enable_shared=no
9549       ;;
9550
9551     *nto* | *qnx*)
9552       # QNX uses GNU C++, but need to define -shared option too, otherwise
9553       # it will coredump.
9554       lt_prog_compiler_pic='-fPIC -shared'
9555       ;;
9556
9557     sysv4*MP*)
9558       if test -d /usr/nec; then
9559         lt_prog_compiler_pic=-Kconform_pic
9560       fi
9561       ;;
9562
9563     *)
9564       lt_prog_compiler_pic='-fPIC'
9565       ;;
9566     esac
9567   else
9568     # PORTME Check for flag to pass linker flags through the system compiler.
9569     case $host_os in
9570     aix*)
9571       lt_prog_compiler_wl='-Wl,'
9572       if test "$host_cpu" = ia64; then
9573         # AIX 5 now supports IA64 processor
9574         lt_prog_compiler_static='-Bstatic'
9575       else
9576         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9577       fi
9578       ;;
9579
9580     mingw* | cygwin* | pw32* | os2* | cegcc*)
9581       # This hack is so that the source file can tell whether it is being
9582       # built for inclusion in a dll (and should export symbols for example).
9583       lt_prog_compiler_pic='-DDLL_EXPORT'
9584       ;;
9585
9586     hpux9* | hpux10* | hpux11*)
9587       lt_prog_compiler_wl='-Wl,'
9588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9589       # not for PA HP-UX.
9590       case $host_cpu in
9591       hppa*64*|ia64*)
9592         # +Z the default
9593         ;;
9594       *)
9595         lt_prog_compiler_pic='+Z'
9596         ;;
9597       esac
9598       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9599       lt_prog_compiler_static='${wl}-a ${wl}archive'
9600       ;;
9601
9602     irix5* | irix6* | nonstopux*)
9603       lt_prog_compiler_wl='-Wl,'
9604       # PIC (with -KPIC) is the default.
9605       lt_prog_compiler_static='-non_shared'
9606       ;;
9607
9608     linux* | k*bsd*-gnu)
9609       case $cc_basename in
9610       # old Intel for x86_64 which still supported -KPIC.
9611       ecc*)
9612         lt_prog_compiler_wl='-Wl,'
9613         lt_prog_compiler_pic='-KPIC'
9614         lt_prog_compiler_static='-static'
9615         ;;
9616       # icc used to be incompatible with GCC.
9617       # ICC 10 doesn't accept -KPIC any more.
9618       icc* | ifort*)
9619         lt_prog_compiler_wl='-Wl,'
9620         lt_prog_compiler_pic='-fPIC'
9621         lt_prog_compiler_static='-static'
9622         ;;
9623       # Lahey Fortran 8.1.
9624       lf95*)
9625         lt_prog_compiler_wl='-Wl,'
9626         lt_prog_compiler_pic='--shared'
9627         lt_prog_compiler_static='--static'
9628         ;;
9629       pgcc* | pgf77* | pgf90* | pgf95*)
9630         # Portland Group compilers (*not* the Pentium gcc compiler,
9631         # which looks to be a dead project)
9632         lt_prog_compiler_wl='-Wl,'
9633         lt_prog_compiler_pic='-fpic'
9634         lt_prog_compiler_static='-Bstatic'
9635         ;;
9636       ccc*)
9637         lt_prog_compiler_wl='-Wl,'
9638         # All Alpha code is PIC.
9639         lt_prog_compiler_static='-non_shared'
9640         ;;
9641       xl*)
9642         # IBM XL C 8.0/Fortran 10.1 on PPC
9643         lt_prog_compiler_wl='-Wl,'
9644         lt_prog_compiler_pic='-qpic'
9645         lt_prog_compiler_static='-qstaticlink'
9646         ;;
9647       *)
9648         case `$CC -V 2>&1 | sed 5q` in
9649         *Sun\ C*)
9650           # Sun C 5.9
9651           lt_prog_compiler_pic='-KPIC'
9652           lt_prog_compiler_static='-Bstatic'
9653           lt_prog_compiler_wl='-Wl,'
9654           ;;
9655         *Sun\ F*)
9656           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9657           lt_prog_compiler_pic='-KPIC'
9658           lt_prog_compiler_static='-Bstatic'
9659           lt_prog_compiler_wl=''
9660           ;;
9661         esac
9662         ;;
9663       esac
9664       ;;
9665
9666     newsos6)
9667       lt_prog_compiler_pic='-KPIC'
9668       lt_prog_compiler_static='-Bstatic'
9669       ;;
9670
9671     *nto* | *qnx*)
9672       # QNX uses GNU C++, but need to define -shared option too, otherwise
9673       # it will coredump.
9674       lt_prog_compiler_pic='-fPIC -shared'
9675       ;;
9676
9677     osf3* | osf4* | osf5*)
9678       lt_prog_compiler_wl='-Wl,'
9679       # All OSF/1 code is PIC.
9680       lt_prog_compiler_static='-non_shared'
9681       ;;
9682
9683     rdos*)
9684       lt_prog_compiler_static='-non_shared'
9685       ;;
9686
9687     solaris*)
9688       lt_prog_compiler_pic='-KPIC'
9689       lt_prog_compiler_static='-Bstatic'
9690       case $cc_basename in
9691       f77* | f90* | f95*)
9692         lt_prog_compiler_wl='-Qoption ld ';;
9693       *)
9694         lt_prog_compiler_wl='-Wl,';;
9695       esac
9696       ;;
9697
9698     sunos4*)
9699       lt_prog_compiler_wl='-Qoption ld '
9700       lt_prog_compiler_pic='-PIC'
9701       lt_prog_compiler_static='-Bstatic'
9702       ;;
9703
9704     sysv4 | sysv4.2uw2* | sysv4.3*)
9705       lt_prog_compiler_wl='-Wl,'
9706       lt_prog_compiler_pic='-KPIC'
9707       lt_prog_compiler_static='-Bstatic'
9708       ;;
9709
9710     sysv4*MP*)
9711       if test -d /usr/nec ;then
9712         lt_prog_compiler_pic='-Kconform_pic'
9713         lt_prog_compiler_static='-Bstatic'
9714       fi
9715       ;;
9716
9717     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9718       lt_prog_compiler_wl='-Wl,'
9719       lt_prog_compiler_pic='-KPIC'
9720       lt_prog_compiler_static='-Bstatic'
9721       ;;
9722
9723     unicos*)
9724       lt_prog_compiler_wl='-Wl,'
9725       lt_prog_compiler_can_build_shared=no
9726       ;;
9727
9728     uts4*)
9729       lt_prog_compiler_pic='-pic'
9730       lt_prog_compiler_static='-Bstatic'
9731       ;;
9732
9733     *)
9734       lt_prog_compiler_can_build_shared=no
9735       ;;
9736     esac
9737   fi
9738
9739 case $host_os in
9740   # For platforms which do not support PIC, -DPIC is meaningless:
9741   *djgpp*)
9742     lt_prog_compiler_pic=
9743     ;;
9744   *)
9745     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9746     ;;
9747 esac
9748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9749 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9750
9751
9752
9753
9754
9755
9756 #
9757 # Check to make sure the PIC flag actually works.
9758 #
9759 if test -n "$lt_prog_compiler_pic"; then
9760   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   lt_cv_prog_compiler_pic_works=no
9766    ac_outfile=conftest.$ac_objext
9767    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9768    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9769    # Insert the option either (1) after the last *FLAGS variable, or
9770    # (2) before a word containing "conftest.", or (3) at the end.
9771    # Note that $ac_compile itself does not contain backslashes and begins
9772    # with a dollar sign (not a hyphen), so the echo should work correctly.
9773    # The option is referenced via a variable to avoid confusing sed.
9774    lt_compile=`echo "$ac_compile" | $SED \
9775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9777    -e 's:$: $lt_compiler_flag:'`
9778    (eval echo "\"\$as_me:9778: $lt_compile\"" >&5)
9779    (eval "$lt_compile" 2>conftest.err)
9780    ac_status=$?
9781    cat conftest.err >&5
9782    echo "$as_me:9782: \$? = $ac_status" >&5
9783    if (exit $ac_status) && test -s "$ac_outfile"; then
9784      # The compiler can only warn and ignore the option if not recognized
9785      # So say no if there are warnings other than the usual output.
9786      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9787      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9788      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9789        lt_cv_prog_compiler_pic_works=yes
9790      fi
9791    fi
9792    $RM conftest*
9793
9794 fi
9795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9796 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9797
9798 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9799     case $lt_prog_compiler_pic in
9800      "" | " "*) ;;
9801      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9802      esac
9803 else
9804     lt_prog_compiler_pic=
9805      lt_prog_compiler_can_build_shared=no
9806 fi
9807
9808 fi
9809
9810
9811
9812
9813
9814
9815 #
9816 # Check to make sure the static flag actually works.
9817 #
9818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9821 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   lt_cv_prog_compiler_static_works=no
9825    save_LDFLAGS="$LDFLAGS"
9826    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9827    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9828    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9829      # The linker can only warn and ignore the option if not recognized
9830      # So say no if there are warnings
9831      if test -s conftest.err; then
9832        # Append any errors to the config.log.
9833        cat conftest.err 1>&5
9834        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9835        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836        if diff conftest.exp conftest.er2 >/dev/null; then
9837          lt_cv_prog_compiler_static_works=yes
9838        fi
9839      else
9840        lt_cv_prog_compiler_static_works=yes
9841      fi
9842    fi
9843    $RM -r conftest*
9844    LDFLAGS="$save_LDFLAGS"
9845
9846 fi
9847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9848 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9849
9850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9851     :
9852 else
9853     lt_prog_compiler_static=
9854 fi
9855
9856
9857
9858
9859
9860
9861
9862   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   lt_cv_prog_compiler_c_o=no
9868    $RM -r conftest 2>/dev/null
9869    mkdir conftest
9870    cd conftest
9871    mkdir out
9872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9873
9874    lt_compiler_flag="-o out/conftest2.$ac_objext"
9875    # Insert the option either (1) after the last *FLAGS variable, or
9876    # (2) before a word containing "conftest.", or (3) at the end.
9877    # Note that $ac_compile itself does not contain backslashes and begins
9878    # with a dollar sign (not a hyphen), so the echo should work correctly.
9879    lt_compile=`echo "$ac_compile" | $SED \
9880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9882    -e 's:$: $lt_compiler_flag:'`
9883    (eval echo "\"\$as_me:9883: $lt_compile\"" >&5)
9884    (eval "$lt_compile" 2>out/conftest.err)
9885    ac_status=$?
9886    cat out/conftest.err >&5
9887    echo "$as_me:9887: \$? = $ac_status" >&5
9888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9889    then
9890      # The compiler can only warn and ignore the option if not recognized
9891      # So say no if there are warnings
9892      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9895        lt_cv_prog_compiler_c_o=yes
9896      fi
9897    fi
9898    chmod u+w . 2>&5
9899    $RM conftest*
9900    # SGI C++ compiler will create directory out/ii_files/ for
9901    # template instantiation
9902    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9903    $RM out/* && rmdir out
9904    cd ..
9905    $RM -r conftest
9906    $RM conftest*
9907
9908 fi
9909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9911
9912
9913
9914
9915
9916
9917   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   lt_cv_prog_compiler_c_o=no
9923    $RM -r conftest 2>/dev/null
9924    mkdir conftest
9925    cd conftest
9926    mkdir out
9927    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9928
9929    lt_compiler_flag="-o out/conftest2.$ac_objext"
9930    # Insert the option either (1) after the last *FLAGS variable, or
9931    # (2) before a word containing "conftest.", or (3) at the end.
9932    # Note that $ac_compile itself does not contain backslashes and begins
9933    # with a dollar sign (not a hyphen), so the echo should work correctly.
9934    lt_compile=`echo "$ac_compile" | $SED \
9935    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937    -e 's:$: $lt_compiler_flag:'`
9938    (eval echo "\"\$as_me:9938: $lt_compile\"" >&5)
9939    (eval "$lt_compile" 2>out/conftest.err)
9940    ac_status=$?
9941    cat out/conftest.err >&5
9942    echo "$as_me:9942: \$? = $ac_status" >&5
9943    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9944    then
9945      # The compiler can only warn and ignore the option if not recognized
9946      # So say no if there are warnings
9947      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9948      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9949      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9950        lt_cv_prog_compiler_c_o=yes
9951      fi
9952    fi
9953    chmod u+w . 2>&5
9954    $RM conftest*
9955    # SGI C++ compiler will create directory out/ii_files/ for
9956    # template instantiation
9957    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9958    $RM out/* && rmdir out
9959    cd ..
9960    $RM -r conftest
9961    $RM conftest*
9962
9963 fi
9964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9966
9967
9968
9969
9970 hard_links="nottested"
9971 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9972   # do not overwrite the value of need_locks provided by the user
9973   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9974 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9975   hard_links=yes
9976   $RM conftest*
9977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9978   touch conftest.a
9979   ln conftest.a conftest.b 2>&5 || hard_links=no
9980   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9981   { echo "$as_me:$LINENO: result: $hard_links" >&5
9982 echo "${ECHO_T}$hard_links" >&6; }
9983   if test "$hard_links" = no; then
9984     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9985 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9986     need_locks=warn
9987   fi
9988 else
9989   need_locks=no
9990 fi
9991
9992
9993
9994
9995
9996
9997   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9998 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9999
10000   runpath_var=
10001   allow_undefined_flag=
10002   always_export_symbols=no
10003   archive_cmds=
10004   archive_expsym_cmds=
10005   compiler_needs_object=no
10006   enable_shared_with_static_runtimes=no
10007   export_dynamic_flag_spec=
10008   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10009   hardcode_automatic=no
10010   hardcode_direct=no
10011   hardcode_direct_absolute=no
10012   hardcode_libdir_flag_spec=
10013   hardcode_libdir_flag_spec_ld=
10014   hardcode_libdir_separator=
10015   hardcode_minus_L=no
10016   hardcode_shlibpath_var=unsupported
10017   inherit_rpath=no
10018   link_all_deplibs=unknown
10019   module_cmds=
10020   module_expsym_cmds=
10021   old_archive_from_new_cmds=
10022   old_archive_from_expsyms_cmds=
10023   thread_safe_flag_spec=
10024   whole_archive_flag_spec=
10025   # include_expsyms should be a list of space-separated symbols to be *always*
10026   # included in the symbol list
10027   include_expsyms=
10028   # exclude_expsyms can be an extended regexp of symbols to exclude
10029   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10030   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10031   # as well as any symbol that contains `d'.
10032   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10033   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10034   # platforms (ab)use it in PIC code, but their linkers get confused if
10035   # the symbol is explicitly referenced.  Since portable code cannot
10036   # rely on this symbol name, it's probably fine to never include it in
10037   # preloaded symbol tables.
10038   # Exclude shared library initialization/finalization symbols.
10039   extract_expsyms_cmds=
10040
10041   case $host_os in
10042   cygwin* | mingw* | pw32* | cegcc*)
10043     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10044     # When not using gcc, we currently assume that we are using
10045     # Microsoft Visual C++.
10046     if test "$GCC" != yes; then
10047       with_gnu_ld=no
10048     fi
10049     ;;
10050   interix*)
10051     # we just hope/assume this is gcc and not c89 (= MSVC++)
10052     with_gnu_ld=yes
10053     ;;
10054   openbsd*)
10055     with_gnu_ld=no
10056     ;;
10057   esac
10058
10059   ld_shlibs=yes
10060   if test "$with_gnu_ld" = yes; then
10061     # If archive_cmds runs LD, not CC, wlarc should be empty
10062     wlarc='${wl}'
10063
10064     # Set some defaults for GNU ld with shared library support. These
10065     # are reset later if shared libraries are not supported. Putting them
10066     # here allows them to be overridden if necessary.
10067     runpath_var=LD_RUN_PATH
10068     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069     export_dynamic_flag_spec='${wl}--export-dynamic'
10070     # ancient GNU ld didn't support --whole-archive et. al.
10071     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10073     else
10074       whole_archive_flag_spec=
10075     fi
10076     supports_anon_versioning=no
10077     case `$LD -v 2>&1` in
10078       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10079       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10080       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10081       *\ 2.11.*) ;; # other 2.11 versions
10082       *) supports_anon_versioning=yes ;;
10083     esac
10084
10085     # See if GNU ld supports shared libraries.
10086     case $host_os in
10087     aix[3-9]*)
10088       # On AIX/PPC, the GNU linker is very broken
10089       if test "$host_cpu" != ia64; then
10090         ld_shlibs=no
10091         cat <<_LT_EOF 1>&2
10092
10093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10094 *** to be unable to reliably create shared libraries on AIX.
10095 *** Therefore, libtool is disabling shared libraries support.  If you
10096 *** really care for shared libraries, you may want to modify your PATH
10097 *** so that a non-GNU linker is found, and then restart.
10098
10099 _LT_EOF
10100       fi
10101       ;;
10102
10103     amigaos*)
10104       case $host_cpu in
10105       powerpc)
10106             # see comment about AmigaOS4 .so support
10107             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108             archive_expsym_cmds=''
10109         ;;
10110       m68k)
10111             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)'
10112             hardcode_libdir_flag_spec='-L$libdir'
10113             hardcode_minus_L=yes
10114         ;;
10115       esac
10116       ;;
10117
10118     beos*)
10119       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10120         allow_undefined_flag=unsupported
10121         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10122         # support --undefined.  This deserves some investigation.  FIXME
10123         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124       else
10125         ld_shlibs=no
10126       fi
10127       ;;
10128
10129     cygwin* | mingw* | pw32* | cegcc*)
10130       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10131       # as there is no search path for DLLs.
10132       hardcode_libdir_flag_spec='-L$libdir'
10133       allow_undefined_flag=unsupported
10134       always_export_symbols=no
10135       enable_shared_with_static_runtimes=yes
10136       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10137
10138       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10140         # If the export-symbols file already is a .def file (1st line
10141         # is EXPORTS), use it as is; otherwise, prepend...
10142         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10143           cp $export_symbols $output_objdir/$soname.def;
10144         else
10145           echo EXPORTS > $output_objdir/$soname.def;
10146           cat $export_symbols >> $output_objdir/$soname.def;
10147         fi~
10148         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10149       else
10150         ld_shlibs=no
10151       fi
10152       ;;
10153
10154     interix[3-9]*)
10155       hardcode_direct=no
10156       hardcode_shlibpath_var=no
10157       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10158       export_dynamic_flag_spec='${wl}-E'
10159       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10160       # Instead, shared libraries are loaded at an image base (0x10000000 by
10161       # default) and relocated if they conflict, which is a slow very memory
10162       # consuming and fragmenting process.  To avoid this, we pick a random,
10163       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10164       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10165       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10166       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'
10167       ;;
10168
10169     gnu* | linux* | tpf* | k*bsd*-gnu)
10170       tmp_diet=no
10171       if test "$host_os" = linux-dietlibc; then
10172         case $cc_basename in
10173           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10174         esac
10175       fi
10176       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10177          && test "$tmp_diet" = no
10178       then
10179         tmp_addflag=
10180         tmp_sharedflag='-shared'
10181         case $cc_basename,$host_cpu in
10182         pgcc*)                          # Portland Group C compiler
10183           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'
10184           tmp_addflag=' $pic_flag'
10185           ;;
10186         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10187           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'
10188           tmp_addflag=' $pic_flag -Mnomain' ;;
10189         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10190           tmp_addflag=' -i_dynamic' ;;
10191         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10192           tmp_addflag=' -i_dynamic -nofor_main' ;;
10193         ifc* | ifort*)                  # Intel Fortran compiler
10194           tmp_addflag=' -nofor_main' ;;
10195         lf95*)                          # Lahey Fortran 8.1
10196           whole_archive_flag_spec=
10197           tmp_sharedflag='--shared' ;;
10198         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10199           tmp_sharedflag='-qmkshrobj'
10200           tmp_addflag= ;;
10201         esac
10202         case `$CC -V 2>&1 | sed 5q` in
10203         *Sun\ C*)                       # Sun C 5.9
10204           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'
10205           compiler_needs_object=yes
10206           tmp_sharedflag='-G' ;;
10207         *Sun\ F*)                       # Sun Fortran 8.3
10208           tmp_sharedflag='-G' ;;
10209         esac
10210         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211
10212         if test "x$supports_anon_versioning" = xyes; then
10213           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10214             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10215             echo "local: *; };" >> $output_objdir/$libname.ver~
10216             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10217         fi
10218
10219         case $cc_basename in
10220         xlf*)
10221           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10222           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10223           hardcode_libdir_flag_spec=
10224           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10225           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10226           if test "x$supports_anon_versioning" = xyes; then
10227             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10228               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10229               echo "local: *; };" >> $output_objdir/$libname.ver~
10230               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10231           fi
10232           ;;
10233         esac
10234       else
10235         ld_shlibs=no
10236       fi
10237       ;;
10238
10239     netbsd*)
10240       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10241         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10242         wlarc=
10243       else
10244         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10246       fi
10247       ;;
10248
10249     solaris*)
10250       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10251         ld_shlibs=no
10252         cat <<_LT_EOF 1>&2
10253
10254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10255 *** create shared libraries on Solaris systems.  Therefore, libtool
10256 *** is disabling shared libraries support.  We urge you to upgrade GNU
10257 *** binutils to release 2.9.1 or newer.  Another option is to modify
10258 *** your PATH or compiler configuration so that the native linker is
10259 *** used, and then restart.
10260
10261 _LT_EOF
10262       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10265       else
10266         ld_shlibs=no
10267       fi
10268       ;;
10269
10270     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10271       case `$LD -v 2>&1` in
10272         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10273         ld_shlibs=no
10274         cat <<_LT_EOF 1>&2
10275
10276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10277 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10278 *** is disabling shared libraries support.  We urge you to upgrade GNU
10279 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10280 *** your PATH or compiler configuration so that the native linker is
10281 *** used, and then restart.
10282
10283 _LT_EOF
10284         ;;
10285         *)
10286           # For security reasons, it is highly recommended that you always
10287           # use absolute paths for naming shared libraries, and exclude the
10288           # DT_RUNPATH tag from executables and libraries.  But doing so
10289           # requires that you compile everything twice, which is a pain.
10290           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10291             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10292             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10294           else
10295             ld_shlibs=no
10296           fi
10297         ;;
10298       esac
10299       ;;
10300
10301     sunos4*)
10302       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10303       wlarc=
10304       hardcode_direct=yes
10305       hardcode_shlibpath_var=no
10306       ;;
10307
10308     *)
10309       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10310         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10312       else
10313         ld_shlibs=no
10314       fi
10315       ;;
10316     esac
10317
10318     if test "$ld_shlibs" = no; then
10319       runpath_var=
10320       hardcode_libdir_flag_spec=
10321       export_dynamic_flag_spec=
10322       whole_archive_flag_spec=
10323     fi
10324   else
10325     # PORTME fill in a description of your system's linker (not GNU ld)
10326     case $host_os in
10327     aix3*)
10328       allow_undefined_flag=unsupported
10329       always_export_symbols=yes
10330       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'
10331       # Note: this linker hardcodes the directories in LIBPATH if there
10332       # are no directories specified by -L.
10333       hardcode_minus_L=yes
10334       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10335         # Neither direct hardcoding nor static linking is supported with a
10336         # broken collect2.
10337         hardcode_direct=unsupported
10338       fi
10339       ;;
10340
10341     aix[4-9]*)
10342       if test "$host_cpu" = ia64; then
10343         # On IA64, the linker does run time linking by default, so we don't
10344         # have to do anything special.
10345         aix_use_runtimelinking=no
10346         exp_sym_flag='-Bexport'
10347         no_entry_flag=""
10348       else
10349         # If we're using GNU nm, then we don't want the "-C" option.
10350         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10351         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10352           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'
10353         else
10354           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'
10355         fi
10356         aix_use_runtimelinking=no
10357
10358         # Test if we are trying to use run time linking or normal
10359         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10360         # need to do runtime linking.
10361         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362           for ld_flag in $LDFLAGS; do
10363           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10364             aix_use_runtimelinking=yes
10365             break
10366           fi
10367           done
10368           ;;
10369         esac
10370
10371         exp_sym_flag='-bexport'
10372         no_entry_flag='-bnoentry'
10373       fi
10374
10375       # When large executables or shared objects are built, AIX ld can
10376       # have problems creating the table of contents.  If linking a library
10377       # or program results in "error TOC overflow" add -mminimal-toc to
10378       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10379       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10380
10381       archive_cmds=''
10382       hardcode_direct=yes
10383       hardcode_direct_absolute=yes
10384       hardcode_libdir_separator=':'
10385       link_all_deplibs=yes
10386       file_list_spec='${wl}-f,'
10387
10388       if test "$GCC" = yes; then
10389         case $host_os in aix4.[012]|aix4.[012].*)
10390         # We only want to do this on AIX 4.2 and lower, the check
10391         # below for broken collect2 doesn't work under 4.3+
10392           collect2name=`${CC} -print-prog-name=collect2`
10393           if test -f "$collect2name" &&
10394            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10395           then
10396           # We have reworked collect2
10397           :
10398           else
10399           # We have old collect2
10400           hardcode_direct=unsupported
10401           # It fails to find uninstalled libraries when the uninstalled
10402           # path is not listed in the libpath.  Setting hardcode_minus_L
10403           # to unsupported forces relinking
10404           hardcode_minus_L=yes
10405           hardcode_libdir_flag_spec='-L$libdir'
10406           hardcode_libdir_separator=
10407           fi
10408           ;;
10409         esac
10410         shared_flag='-shared'
10411         if test "$aix_use_runtimelinking" = yes; then
10412           shared_flag="$shared_flag "'${wl}-G'
10413         fi
10414       else
10415         # not using gcc
10416         if test "$host_cpu" = ia64; then
10417         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10418         # chokes on -Wl,-G. The following line is correct:
10419           shared_flag='-G'
10420         else
10421           if test "$aix_use_runtimelinking" = yes; then
10422             shared_flag='${wl}-G'
10423           else
10424             shared_flag='${wl}-bM:SRE'
10425           fi
10426         fi
10427       fi
10428
10429       export_dynamic_flag_spec='${wl}-bexpall'
10430       # It seems that -bexpall does not export symbols beginning with
10431       # underscore (_), so it is better to generate a list of symbols to export.
10432       always_export_symbols=yes
10433       if test "$aix_use_runtimelinking" = yes; then
10434         # Warning - without using the other runtime loading flags (-brtl),
10435         # -berok will link without error, but may produce a broken library.
10436         allow_undefined_flag='-berok'
10437         # Determine the default libpath from the value encoded in an
10438         # empty executable.
10439         cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h.  */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h.  */
10445
10446 int
10447 main ()
10448 {
10449
10450   ;
10451   return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_link") 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } && {
10468          test -z "$ac_c_werror_flag" ||
10469          test ! -s conftest.err
10470        } && test -s conftest$ac_exeext &&
10471        $as_test_x conftest$ac_exeext; then
10472
10473 lt_aix_libpath_sed='
10474     /Import File Strings/,/^$/ {
10475         /^0/ {
10476             s/^0  *\(.*\)$/\1/
10477             p
10478         }
10479     }'
10480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 # Check for a 64-bit object if we didn't find anything.
10482 if test -z "$aix_libpath"; then
10483   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484 fi
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489
10490 fi
10491
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493       conftest$ac_exeext conftest.$ac_ext
10494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10495
10496         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10497         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"
10498       else
10499         if test "$host_cpu" = ia64; then
10500           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10501           allow_undefined_flag="-z nodefs"
10502           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"
10503         else
10504          # Determine the default libpath from the value encoded in an
10505          # empty executable.
10506          cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512
10513 int
10514 main ()
10515 {
10516
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525   *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528   (eval "$ac_link") 2>conftest.er1
10529   ac_status=$?
10530   grep -v '^ *+' conftest.er1 >conftest.err
10531   rm -f conftest.er1
10532   cat conftest.err >&5
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } && {
10535          test -z "$ac_c_werror_flag" ||
10536          test ! -s conftest.err
10537        } && test -s conftest$ac_exeext &&
10538        $as_test_x conftest$ac_exeext; then
10539
10540 lt_aix_libpath_sed='
10541     /Import File Strings/,/^$/ {
10542         /^0/ {
10543             s/^0  *\(.*\)$/\1/
10544             p
10545         }
10546     }'
10547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 # Check for a 64-bit object if we didn't find anything.
10549 if test -z "$aix_libpath"; then
10550   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 fi
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556
10557 fi
10558
10559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10560       conftest$ac_exeext conftest.$ac_ext
10561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10562
10563          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10564           # Warning - without using the other run time loading flags,
10565           # -berok will link without error, but may produce a broken library.
10566           no_undefined_flag=' ${wl}-bernotok'
10567           allow_undefined_flag=' ${wl}-berok'
10568           # Exported symbols can be pulled into shared objects from archives
10569           whole_archive_flag_spec='$convenience'
10570           archive_cmds_need_lc=yes
10571           # This is similar to how AIX traditionally builds its shared libraries.
10572           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'
10573         fi
10574       fi
10575       ;;
10576
10577     amigaos*)
10578       case $host_cpu in
10579       powerpc)
10580             # see comment about AmigaOS4 .so support
10581             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10582             archive_expsym_cmds=''
10583         ;;
10584       m68k)
10585             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)'
10586             hardcode_libdir_flag_spec='-L$libdir'
10587             hardcode_minus_L=yes
10588         ;;
10589       esac
10590       ;;
10591
10592     bsdi[45]*)
10593       export_dynamic_flag_spec=-rdynamic
10594       ;;
10595
10596     cygwin* | mingw* | pw32* | cegcc*)
10597       # When not using gcc, we currently assume that we are using
10598       # Microsoft Visual C++.
10599       # hardcode_libdir_flag_spec is actually meaningless, as there is
10600       # no search path for DLLs.
10601       hardcode_libdir_flag_spec=' '
10602       allow_undefined_flag=unsupported
10603       # Tell ltmain to make .lib files, not .a files.
10604       libext=lib
10605       # Tell ltmain to make .dll files, not .so files.
10606       shrext_cmds=".dll"
10607       # FIXME: Setting linknames here is a bad hack.
10608       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10609       # The linker will automatically build a .lib file if we build a DLL.
10610       old_archive_from_new_cmds='true'
10611       # FIXME: Should let the user specify the lib program.
10612       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10613       fix_srcfile_path='`cygpath -w "$srcfile"`'
10614       enable_shared_with_static_runtimes=yes
10615       ;;
10616
10617     darwin* | rhapsody*)
10618
10619
10620   archive_cmds_need_lc=no
10621   hardcode_direct=no
10622   hardcode_automatic=yes
10623   hardcode_shlibpath_var=unsupported
10624   whole_archive_flag_spec=''
10625   link_all_deplibs=yes
10626   allow_undefined_flag="$_lt_dar_allow_undefined"
10627   case $cc_basename in
10628      ifort*) _lt_dar_can_shared=yes ;;
10629      *) _lt_dar_can_shared=$GCC ;;
10630   esac
10631   if test "$_lt_dar_can_shared" = "yes"; then
10632     output_verbose_link_cmd=echo
10633     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10634     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10635     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}"
10636     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}"
10637
10638   else
10639   ld_shlibs=no
10640   fi
10641
10642       ;;
10643
10644     dgux*)
10645       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646       hardcode_libdir_flag_spec='-L$libdir'
10647       hardcode_shlibpath_var=no
10648       ;;
10649
10650     freebsd1*)
10651       ld_shlibs=no
10652       ;;
10653
10654     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10655     # support.  Future versions do this automatically, but an explicit c++rt0.o
10656     # does not break anything, and helps significantly (at the cost of a little
10657     # extra space).
10658     freebsd2.2*)
10659       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10660       hardcode_libdir_flag_spec='-R$libdir'
10661       hardcode_direct=yes
10662       hardcode_shlibpath_var=no
10663       ;;
10664
10665     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10666     freebsd2*)
10667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10668       hardcode_direct=yes
10669       hardcode_minus_L=yes
10670       hardcode_shlibpath_var=no
10671       ;;
10672
10673     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10674     freebsd* | dragonfly*)
10675       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10676       hardcode_libdir_flag_spec='-R$libdir'
10677       hardcode_direct=yes
10678       hardcode_shlibpath_var=no
10679       ;;
10680
10681     hpux9*)
10682       if test "$GCC" = yes; then
10683         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'
10684       else
10685         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'
10686       fi
10687       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10688       hardcode_libdir_separator=:
10689       hardcode_direct=yes
10690
10691       # hardcode_minus_L: Not really in the search PATH,
10692       # but as the default location of the library.
10693       hardcode_minus_L=yes
10694       export_dynamic_flag_spec='${wl}-E'
10695       ;;
10696
10697     hpux10*)
10698       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10699         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10700       else
10701         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10702       fi
10703       if test "$with_gnu_ld" = no; then
10704         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10705         hardcode_libdir_flag_spec_ld='+b $libdir'
10706         hardcode_libdir_separator=:
10707         hardcode_direct=yes
10708         hardcode_direct_absolute=yes
10709         export_dynamic_flag_spec='${wl}-E'
10710         # hardcode_minus_L: Not really in the search PATH,
10711         # but as the default location of the library.
10712         hardcode_minus_L=yes
10713       fi
10714       ;;
10715
10716     hpux11*)
10717       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10718         case $host_cpu in
10719         hppa*64*)
10720           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10721           ;;
10722         ia64*)
10723           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10724           ;;
10725         *)
10726           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10727           ;;
10728         esac
10729       else
10730         case $host_cpu in
10731         hppa*64*)
10732           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         ia64*)
10735           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10736           ;;
10737         *)
10738           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10739           ;;
10740         esac
10741       fi
10742       if test "$with_gnu_ld" = no; then
10743         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10744         hardcode_libdir_separator=:
10745
10746         case $host_cpu in
10747         hppa*64*|ia64*)
10748           hardcode_direct=no
10749           hardcode_shlibpath_var=no
10750           ;;
10751         *)
10752           hardcode_direct=yes
10753           hardcode_direct_absolute=yes
10754           export_dynamic_flag_spec='${wl}-E'
10755
10756           # hardcode_minus_L: Not really in the search PATH,
10757           # but as the default location of the library.
10758           hardcode_minus_L=yes
10759           ;;
10760         esac
10761       fi
10762       ;;
10763
10764     irix5* | irix6* | nonstopux*)
10765       if test "$GCC" = yes; then
10766         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'
10767         # Try to use the -exported_symbol ld option, if it does not
10768         # work, assume that -exports_file does not work either and
10769         # implicitly export all symbols.
10770         save_LDFLAGS="$LDFLAGS"
10771         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10772         cat >conftest.$ac_ext <<_ACEOF
10773 int foo(void) {}
10774 _ACEOF
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_link") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && {
10789          test -z "$ac_c_werror_flag" ||
10790          test ! -s conftest.err
10791        } && test -s conftest$ac_exeext &&
10792        $as_test_x conftest$ac_exeext; then
10793   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'
10794
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799
10800 fi
10801
10802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803       conftest$ac_exeext conftest.$ac_ext
10804         LDFLAGS="$save_LDFLAGS"
10805       else
10806         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'
10807         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'
10808       fi
10809       archive_cmds_need_lc='no'
10810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811       hardcode_libdir_separator=:
10812       inherit_rpath=yes
10813       link_all_deplibs=yes
10814       ;;
10815
10816     netbsd*)
10817       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10818         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10819       else
10820         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10821       fi
10822       hardcode_libdir_flag_spec='-R$libdir'
10823       hardcode_direct=yes
10824       hardcode_shlibpath_var=no
10825       ;;
10826
10827     newsos6)
10828       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829       hardcode_direct=yes
10830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831       hardcode_libdir_separator=:
10832       hardcode_shlibpath_var=no
10833       ;;
10834
10835     *nto* | *qnx*)
10836       ;;
10837
10838     openbsd*)
10839       if test -f /usr/libexec/ld.so; then
10840         hardcode_direct=yes
10841         hardcode_shlibpath_var=no
10842         hardcode_direct_absolute=yes
10843         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10844           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10846           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10847           export_dynamic_flag_spec='${wl}-E'
10848         else
10849           case $host_os in
10850            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10851              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10852              hardcode_libdir_flag_spec='-R$libdir'
10853              ;;
10854            *)
10855              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10857              ;;
10858           esac
10859         fi
10860       else
10861         ld_shlibs=no
10862       fi
10863       ;;
10864
10865     os2*)
10866       hardcode_libdir_flag_spec='-L$libdir'
10867       hardcode_minus_L=yes
10868       allow_undefined_flag=unsupported
10869       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'
10870       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10871       ;;
10872
10873     osf3*)
10874       if test "$GCC" = yes; then
10875         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10876         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'
10877       else
10878         allow_undefined_flag=' -expect_unresolved \*'
10879         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'
10880       fi
10881       archive_cmds_need_lc='no'
10882       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883       hardcode_libdir_separator=:
10884       ;;
10885
10886     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10887       if test "$GCC" = yes; then
10888         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10889         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'
10890         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10891       else
10892         allow_undefined_flag=' -expect_unresolved \*'
10893         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'
10894         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~
10895         $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'
10896
10897         # Both c and cxx compiler support -rpath directly
10898         hardcode_libdir_flag_spec='-rpath $libdir'
10899       fi
10900       archive_cmds_need_lc='no'
10901       hardcode_libdir_separator=:
10902       ;;
10903
10904     solaris*)
10905       no_undefined_flag=' -z defs'
10906       if test "$GCC" = yes; then
10907         wlarc='${wl}'
10908         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10909         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10911       else
10912         case `$CC -V 2>&1` in
10913         *"Compilers 5.0"*)
10914           wlarc=''
10915           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10918           ;;
10919         *)
10920           wlarc='${wl}'
10921           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10922           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10924           ;;
10925         esac
10926       fi
10927       hardcode_libdir_flag_spec='-R$libdir'
10928       hardcode_shlibpath_var=no
10929       case $host_os in
10930       solaris2.[0-5] | solaris2.[0-5].*) ;;
10931       *)
10932         # The compiler driver will combine and reorder linker options,
10933         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10934         # but is careful enough not to reorder.
10935         # Supported since Solaris 2.6 (maybe 2.5.1?)
10936         if test "$GCC" = yes; then
10937           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10938         else
10939           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10940         fi
10941         ;;
10942       esac
10943       link_all_deplibs=yes
10944       ;;
10945
10946     sunos4*)
10947       if test "x$host_vendor" = xsequent; then
10948         # Use $CC to link under sequent, because it throws in some extra .o
10949         # files that make .init and .fini sections work.
10950         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10951       else
10952         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10953       fi
10954       hardcode_libdir_flag_spec='-L$libdir'
10955       hardcode_direct=yes
10956       hardcode_minus_L=yes
10957       hardcode_shlibpath_var=no
10958       ;;
10959
10960     sysv4)
10961       case $host_vendor in
10962         sni)
10963           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964           hardcode_direct=yes # is this really true???
10965         ;;
10966         siemens)
10967           ## LD is ld it makes a PLAMLIB
10968           ## CC just makes a GrossModule.
10969           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10970           reload_cmds='$CC -r -o $output$reload_objs'
10971           hardcode_direct=no
10972         ;;
10973         motorola)
10974           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10976         ;;
10977       esac
10978       runpath_var='LD_RUN_PATH'
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     sysv4.3*)
10983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984       hardcode_shlibpath_var=no
10985       export_dynamic_flag_spec='-Bexport'
10986       ;;
10987
10988     sysv4*MP*)
10989       if test -d /usr/nec; then
10990         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991         hardcode_shlibpath_var=no
10992         runpath_var=LD_RUN_PATH
10993         hardcode_runpath_var=yes
10994         ld_shlibs=yes
10995       fi
10996       ;;
10997
10998     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10999       no_undefined_flag='${wl}-z,text'
11000       archive_cmds_need_lc=no
11001       hardcode_shlibpath_var=no
11002       runpath_var='LD_RUN_PATH'
11003
11004       if test "$GCC" = yes; then
11005         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007       else
11008         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010       fi
11011       ;;
11012
11013     sysv5* | sco3.2v5* | sco5v6*)
11014       # Note: We can NOT use -z defs as we might desire, because we do not
11015       # link with -lc, and that would cause any symbols used from libc to
11016       # always be unresolved, which means just about no library would
11017       # ever link correctly.  If we're not using GNU ld we use -z text
11018       # though, which does catch some bad symbols but isn't as heavy-handed
11019       # as -z defs.
11020       no_undefined_flag='${wl}-z,text'
11021       allow_undefined_flag='${wl}-z,nodefs'
11022       archive_cmds_need_lc=no
11023       hardcode_shlibpath_var=no
11024       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11025       hardcode_libdir_separator=':'
11026       link_all_deplibs=yes
11027       export_dynamic_flag_spec='${wl}-Bexport'
11028       runpath_var='LD_RUN_PATH'
11029
11030       if test "$GCC" = yes; then
11031         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033       else
11034         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036       fi
11037       ;;
11038
11039     uts4*)
11040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041       hardcode_libdir_flag_spec='-L$libdir'
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     *)
11046       ld_shlibs=no
11047       ;;
11048     esac
11049
11050     if test x$host_vendor = xsni; then
11051       case $host in
11052       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11053         export_dynamic_flag_spec='${wl}-Blargedynsym'
11054         ;;
11055       esac
11056     fi
11057   fi
11058
11059 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11060 echo "${ECHO_T}$ld_shlibs" >&6; }
11061 test "$ld_shlibs" = no && can_build_shared=no
11062
11063 with_gnu_ld=$with_gnu_ld
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 #
11080 # Do we need to explicitly link libc?
11081 #
11082 case "x$archive_cmds_need_lc" in
11083 x|xyes)
11084   # Assume -lc should be added
11085   archive_cmds_need_lc=yes
11086
11087   if test "$enable_shared" = yes && test "$GCC" = yes; then
11088     case $archive_cmds in
11089     *'~'*)
11090       # FIXME: we may have to deal with multi-command sequences.
11091       ;;
11092     '$CC '*)
11093       # Test whether the compiler implicitly links with -lc since on some
11094       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11095       # to ld, don't add -lc before -lgcc.
11096       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11098       $RM conftest*
11099       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100
11101       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102   (eval $ac_compile) 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } 2>conftest.err; then
11106         soname=conftest
11107         lib=conftest
11108         libobjs=conftest.$ac_objext
11109         deplibs=
11110         wl=$lt_prog_compiler_wl
11111         pic_flag=$lt_prog_compiler_pic
11112         compiler_flags=-v
11113         linker_flags=-v
11114         verstring=
11115         output_objdir=.
11116         libname=conftest
11117         lt_save_allow_undefined_flag=$allow_undefined_flag
11118         allow_undefined_flag=
11119         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11120   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); }
11124         then
11125           archive_cmds_need_lc=no
11126         else
11127           archive_cmds_need_lc=yes
11128         fi
11129         allow_undefined_flag=$lt_save_allow_undefined_flag
11130       else
11131         cat conftest.err 1>&5
11132       fi
11133       $RM conftest*
11134       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11135 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11136       ;;
11137     esac
11138   fi
11139   ;;
11140 esac
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
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   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11299 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11300
11301 if test "$GCC" = yes; then
11302   case $host_os in
11303     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11304     *) lt_awk_arg="/^libraries:/" ;;
11305   esac
11306   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11307   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11308     # if the path contains ";" then we assume it to be the separator
11309     # otherwise default to the standard path separator (i.e. ":") - it is
11310     # assumed that no part of a normal pathname contains ";" but that should
11311     # okay in the real world where ";" in dirpaths is itself problematic.
11312     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11313   else
11314     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11315   fi
11316   # Ok, now we have the path, separated by spaces, we can step through it
11317   # and add multilib dir if necessary.
11318   lt_tmp_lt_search_path_spec=
11319   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11320   for lt_sys_path in $lt_search_path_spec; do
11321     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11322       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11323     else
11324       test -d "$lt_sys_path" && \
11325         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11326     fi
11327   done
11328   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11329 BEGIN {RS=" "; FS="/|\n";} {
11330   lt_foo="";
11331   lt_count=0;
11332   for (lt_i = NF; lt_i > 0; lt_i--) {
11333     if ($lt_i != "" && $lt_i != ".") {
11334       if ($lt_i == "..") {
11335         lt_count++;
11336       } else {
11337         if (lt_count == 0) {
11338           lt_foo="/" $lt_i lt_foo;
11339         } else {
11340           lt_count--;
11341         }
11342       }
11343     }
11344   }
11345   if (lt_foo != "") { lt_freq[lt_foo]++; }
11346   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11347 }'`
11348   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11349 else
11350   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11351 fi
11352 library_names_spec=
11353 libname_spec='lib$name'
11354 soname_spec=
11355 shrext_cmds=".so"
11356 postinstall_cmds=
11357 postuninstall_cmds=
11358 finish_cmds=
11359 finish_eval=
11360 shlibpath_var=
11361 shlibpath_overrides_runpath=unknown
11362 version_type=none
11363 dynamic_linker="$host_os ld.so"
11364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11365 need_lib_prefix=unknown
11366 hardcode_into_libs=no
11367
11368 # when you set need_version to no, make sure it does not cause -set_version
11369 # flags to be left without arguments
11370 need_version=unknown
11371
11372 case $host_os in
11373 aix3*)
11374   version_type=linux
11375   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11376   shlibpath_var=LIBPATH
11377
11378   # AIX 3 has no versioning support, so we append a major version to the name.
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   ;;
11381
11382 aix[4-9]*)
11383   version_type=linux
11384   need_lib_prefix=no
11385   need_version=no
11386   hardcode_into_libs=yes
11387   if test "$host_cpu" = ia64; then
11388     # AIX 5 supports IA64
11389     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11390     shlibpath_var=LD_LIBRARY_PATH
11391   else
11392     # With GCC up to 2.95.x, collect2 would create an import file
11393     # for dependence libraries.  The import file would start with
11394     # the line `#! .'.  This would cause the generated library to
11395     # depend on `.', always an invalid library.  This was fixed in
11396     # development snapshots of GCC prior to 3.0.
11397     case $host_os in
11398       aix4 | aix4.[01] | aix4.[01].*)
11399       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11400            echo ' yes '
11401            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11402         :
11403       else
11404         can_build_shared=no
11405       fi
11406       ;;
11407     esac
11408     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11409     # soname into executable. Probably we can add versioning support to
11410     # collect2, so additional links can be useful in future.
11411     if test "$aix_use_runtimelinking" = yes; then
11412       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11413       # instead of lib<name>.a to let people know that these are not
11414       # typical AIX shared libraries.
11415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416     else
11417       # We preserve .a as extension for shared libraries through AIX4.2
11418       # and later when we are not doing run time linking.
11419       library_names_spec='${libname}${release}.a $libname.a'
11420       soname_spec='${libname}${release}${shared_ext}$major'
11421     fi
11422     shlibpath_var=LIBPATH
11423   fi
11424   ;;
11425
11426 amigaos*)
11427   case $host_cpu in
11428   powerpc)
11429     # Since July 2007 AmigaOS4 officially supports .so libraries.
11430     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432     ;;
11433   m68k)
11434     library_names_spec='$libname.ixlibrary $libname.a'
11435     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11436     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'
11437     ;;
11438   esac
11439   ;;
11440
11441 beos*)
11442   library_names_spec='${libname}${shared_ext}'
11443   dynamic_linker="$host_os ld.so"
11444   shlibpath_var=LIBRARY_PATH
11445   ;;
11446
11447 bsdi[45]*)
11448   version_type=linux
11449   need_version=no
11450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451   soname_spec='${libname}${release}${shared_ext}$major'
11452   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11455   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11456   # the default ld.so.conf also contains /usr/contrib/lib and
11457   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11458   # libtool to hard-code these into programs
11459   ;;
11460
11461 cygwin* | mingw* | pw32* | cegcc*)
11462   version_type=windows
11463   shrext_cmds=".dll"
11464   need_version=no
11465   need_lib_prefix=no
11466
11467   case $GCC,$host_os in
11468   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11469     library_names_spec='$libname.dll.a'
11470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11471     postinstall_cmds='base_file=`basename \${file}`~
11472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11473       dldir=$destdir/`dirname \$dlpath`~
11474       test -d \$dldir || mkdir -p \$dldir~
11475       $install_prog $dir/$dlname \$dldir/$dlname~
11476       chmod a+x \$dldir/$dlname~
11477       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11478         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11479       fi'
11480     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11481       dlpath=$dir/\$dldll~
11482        $RM \$dlpath'
11483     shlibpath_overrides_runpath=yes
11484
11485     case $host_os in
11486     cygwin*)
11487       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11488       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11490       ;;
11491     mingw* | cegcc*)
11492       # MinGW DLLs use traditional 'lib' prefix
11493       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11494       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11495       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11496         # It is most probably a Windows format PATH printed by
11497         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11498         # path with ; separators, and with drive letters. We can handle the
11499         # drive letters (cygwin fileutils understands them), so leave them,
11500         # especially as we might pass files found there to a mingw objdump,
11501         # which wouldn't understand a cygwinified path. Ahh.
11502         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11503       else
11504         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11505       fi
11506       ;;
11507     pw32*)
11508       # pw32 DLLs use 'pw' prefix rather than 'lib'
11509       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11510       ;;
11511     esac
11512     ;;
11513
11514   *)
11515     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11516     ;;
11517   esac
11518   dynamic_linker='Win32 ld.exe'
11519   # FIXME: first we should search . and the directory the executable is in
11520   shlibpath_var=PATH
11521   ;;
11522
11523 darwin* | rhapsody*)
11524   dynamic_linker="$host_os dyld"
11525   version_type=darwin
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11529   soname_spec='${libname}${release}${major}$shared_ext'
11530   shlibpath_overrides_runpath=yes
11531   shlibpath_var=DYLD_LIBRARY_PATH
11532   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11533
11534   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536   ;;
11537
11538 dgux*)
11539   version_type=linux
11540   need_lib_prefix=no
11541   need_version=no
11542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11543   soname_spec='${libname}${release}${shared_ext}$major'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   ;;
11546
11547 freebsd1*)
11548   dynamic_linker=no
11549   ;;
11550
11551 freebsd* | dragonfly*)
11552   # DragonFly does not have aout.  When/if they implement a new
11553   # versioning mechanism, adjust this.
11554   if test -x /usr/bin/objformat; then
11555     objformat=`/usr/bin/objformat`
11556   else
11557     case $host_os in
11558     freebsd[123]*) objformat=aout ;;
11559     *) objformat=elf ;;
11560     esac
11561   fi
11562   version_type=freebsd-$objformat
11563   case $version_type in
11564     freebsd-elf*)
11565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566       need_version=no
11567       need_lib_prefix=no
11568       ;;
11569     freebsd-*)
11570       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571       need_version=yes
11572       ;;
11573   esac
11574   shlibpath_var=LD_LIBRARY_PATH
11575   case $host_os in
11576   freebsd2*)
11577     shlibpath_overrides_runpath=yes
11578     ;;
11579   freebsd3.[01]* | freebsdelf3.[01]*)
11580     shlibpath_overrides_runpath=yes
11581     hardcode_into_libs=yes
11582     ;;
11583   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11584   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11585     shlibpath_overrides_runpath=no
11586     hardcode_into_libs=yes
11587     ;;
11588   *) # from 4.6 on, and DragonFly
11589     shlibpath_overrides_runpath=yes
11590     hardcode_into_libs=yes
11591     ;;
11592   esac
11593   ;;
11594
11595 gnu*)
11596   version_type=linux
11597   need_lib_prefix=no
11598   need_version=no
11599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11600   soname_spec='${libname}${release}${shared_ext}$major'
11601   shlibpath_var=LD_LIBRARY_PATH
11602   hardcode_into_libs=yes
11603   ;;
11604
11605 hpux9* | hpux10* | hpux11*)
11606   # Give a soname corresponding to the major version so that dld.sl refuses to
11607   # link against other versions.
11608   version_type=sunos
11609   need_lib_prefix=no
11610   need_version=no
11611   case $host_cpu in
11612   ia64*)
11613     shrext_cmds='.so'
11614     hardcode_into_libs=yes
11615     dynamic_linker="$host_os dld.so"
11616     shlibpath_var=LD_LIBRARY_PATH
11617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619     soname_spec='${libname}${release}${shared_ext}$major'
11620     if test "X$HPUX_IA64_MODE" = X32; then
11621       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11622     else
11623       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11624     fi
11625     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626     ;;
11627   hppa*64*)
11628     shrext_cmds='.sl'
11629     hardcode_into_libs=yes
11630     dynamic_linker="$host_os dld.sl"
11631     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634     soname_spec='${libname}${release}${shared_ext}$major'
11635     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637     ;;
11638   *)
11639     shrext_cmds='.sl'
11640     dynamic_linker="$host_os dld.sl"
11641     shlibpath_var=SHLIB_PATH
11642     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644     soname_spec='${libname}${release}${shared_ext}$major'
11645     ;;
11646   esac
11647   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11648   postinstall_cmds='chmod 555 $lib'
11649   ;;
11650
11651 interix[3-9]*)
11652   version_type=linux
11653   need_lib_prefix=no
11654   need_version=no
11655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11656   soname_spec='${libname}${release}${shared_ext}$major'
11657   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11658   shlibpath_var=LD_LIBRARY_PATH
11659   shlibpath_overrides_runpath=no
11660   hardcode_into_libs=yes
11661   ;;
11662
11663 irix5* | irix6* | nonstopux*)
11664   case $host_os in
11665     nonstopux*) version_type=nonstopux ;;
11666     *)
11667         if test "$lt_cv_prog_gnu_ld" = yes; then
11668                 version_type=linux
11669         else
11670                 version_type=irix
11671         fi ;;
11672   esac
11673   need_lib_prefix=no
11674   need_version=no
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11677   case $host_os in
11678   irix5* | nonstopux*)
11679     libsuff= shlibsuff=
11680     ;;
11681   *)
11682     case $LD in # libtool.m4 will add one of these switches to LD
11683     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11684       libsuff= shlibsuff= libmagic=32-bit;;
11685     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11686       libsuff=32 shlibsuff=N32 libmagic=N32;;
11687     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11688       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11689     *) libsuff= shlibsuff= libmagic=never-match;;
11690     esac
11691     ;;
11692   esac
11693   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11694   shlibpath_overrides_runpath=no
11695   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11696   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11697   hardcode_into_libs=yes
11698   ;;
11699
11700 # No shared lib support for Linux oldld, aout, or coff.
11701 linux*oldld* | linux*aout* | linux*coff*)
11702   dynamic_linker=no
11703   ;;
11704
11705 # This must be Linux ELF.
11706 linux* | k*bsd*-gnu)
11707   version_type=linux
11708   need_lib_prefix=no
11709   need_version=no
11710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711   soname_spec='${libname}${release}${shared_ext}$major'
11712   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11713   shlibpath_var=LD_LIBRARY_PATH
11714   shlibpath_overrides_runpath=no
11715   # Some binutils ld are patched to set DT_RUNPATH
11716   save_LDFLAGS=$LDFLAGS
11717   save_libdir=$libdir
11718   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720   cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726
11727 int
11728 main ()
11729 {
11730
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_link") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } && {
11749          test -z "$ac_c_werror_flag" ||
11750          test ! -s conftest.err
11751        } && test -s conftest$ac_exeext &&
11752        $as_test_x conftest$ac_exeext; then
11753   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11754   shlibpath_overrides_runpath=yes
11755 fi
11756
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761
11762 fi
11763
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765       conftest$ac_exeext conftest.$ac_ext
11766   LDFLAGS=$save_LDFLAGS
11767   libdir=$save_libdir
11768
11769   # This implies no fast_install, which is unacceptable.
11770   # Some rework will be needed to allow for fast_install
11771   # before this can be enabled.
11772   hardcode_into_libs=yes
11773
11774   # Append ld.so.conf contents to the search path
11775   if test -f /etc/ld.so.conf; then
11776     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' ' '`
11777     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11778   fi
11779
11780   # We used to test for /lib/ld.so.1 and disable shared libraries on
11781   # powerpc, because MkLinux only supported shared libraries with the
11782   # GNU dynamic linker.  Since this was broken with cross compilers,
11783   # most powerpc-linux boxes support dynamic linking these days and
11784   # people can always --disable-shared, the test was removed, and we
11785   # assume the GNU/Linux dynamic linker is in use.
11786   dynamic_linker='GNU/Linux ld.so'
11787   ;;
11788
11789 netbsd*)
11790   version_type=sunos
11791   need_lib_prefix=no
11792   need_version=no
11793   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796     dynamic_linker='NetBSD (a.out) ld.so'
11797   else
11798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799     soname_spec='${libname}${release}${shared_ext}$major'
11800     dynamic_linker='NetBSD ld.elf_so'
11801   fi
11802   shlibpath_var=LD_LIBRARY_PATH
11803   shlibpath_overrides_runpath=yes
11804   hardcode_into_libs=yes
11805   ;;
11806
11807 newsos6)
11808   version_type=linux
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   shlibpath_var=LD_LIBRARY_PATH
11811   shlibpath_overrides_runpath=yes
11812   ;;
11813
11814 *nto* | *qnx*)
11815   version_type=qnx
11816   need_lib_prefix=no
11817   need_version=no
11818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819   soname_spec='${libname}${release}${shared_ext}$major'
11820   shlibpath_var=LD_LIBRARY_PATH
11821   shlibpath_overrides_runpath=no
11822   hardcode_into_libs=yes
11823   dynamic_linker='ldqnx.so'
11824   ;;
11825
11826 openbsd*)
11827   version_type=sunos
11828   sys_lib_dlsearch_path_spec="/usr/lib"
11829   need_lib_prefix=no
11830   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11831   case $host_os in
11832     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11833     *)                          need_version=no  ;;
11834   esac
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837   shlibpath_var=LD_LIBRARY_PATH
11838   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11839     case $host_os in
11840       openbsd2.[89] | openbsd2.[89].*)
11841         shlibpath_overrides_runpath=no
11842         ;;
11843       *)
11844         shlibpath_overrides_runpath=yes
11845         ;;
11846       esac
11847   else
11848     shlibpath_overrides_runpath=yes
11849   fi
11850   ;;
11851
11852 os2*)
11853   libname_spec='$name'
11854   shrext_cmds=".dll"
11855   need_lib_prefix=no
11856   library_names_spec='$libname${shared_ext} $libname.a'
11857   dynamic_linker='OS/2 ld.exe'
11858   shlibpath_var=LIBPATH
11859   ;;
11860
11861 osf3* | osf4* | osf5*)
11862   version_type=osf
11863   need_lib_prefix=no
11864   need_version=no
11865   soname_spec='${libname}${release}${shared_ext}$major'
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11870   ;;
11871
11872 rdos*)
11873   dynamic_linker=no
11874   ;;
11875
11876 solaris*)
11877   version_type=linux
11878   need_lib_prefix=no
11879   need_version=no
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881   soname_spec='${libname}${release}${shared_ext}$major'
11882   shlibpath_var=LD_LIBRARY_PATH
11883   shlibpath_overrides_runpath=yes
11884   hardcode_into_libs=yes
11885   # ldd complains unless libraries are executable
11886   postinstall_cmds='chmod +x $lib'
11887   ;;
11888
11889 sunos4*)
11890   version_type=sunos
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=yes
11895   if test "$with_gnu_ld" = yes; then
11896     need_lib_prefix=no
11897   fi
11898   need_version=yes
11899   ;;
11900
11901 sysv4 | sysv4.3*)
11902   version_type=linux
11903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904   soname_spec='${libname}${release}${shared_ext}$major'
11905   shlibpath_var=LD_LIBRARY_PATH
11906   case $host_vendor in
11907     sni)
11908       shlibpath_overrides_runpath=no
11909       need_lib_prefix=no
11910       runpath_var=LD_RUN_PATH
11911       ;;
11912     siemens)
11913       need_lib_prefix=no
11914       ;;
11915     motorola)
11916       need_lib_prefix=no
11917       need_version=no
11918       shlibpath_overrides_runpath=no
11919       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11920       ;;
11921   esac
11922   ;;
11923
11924 sysv4*MP*)
11925   if test -d /usr/nec ;then
11926     version_type=linux
11927     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928     soname_spec='$libname${shared_ext}.$major'
11929     shlibpath_var=LD_LIBRARY_PATH
11930   fi
11931   ;;
11932
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934   version_type=freebsd-elf
11935   need_lib_prefix=no
11936   need_version=no
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   shlibpath_overrides_runpath=yes
11941   hardcode_into_libs=yes
11942   if test "$with_gnu_ld" = yes; then
11943     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11944   else
11945     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11946     case $host_os in
11947       sco3.2v5*)
11948         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11949         ;;
11950     esac
11951   fi
11952   sys_lib_dlsearch_path_spec='/usr/lib'
11953   ;;
11954
11955 tpf*)
11956   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11957   version_type=linux
11958   need_lib_prefix=no
11959   need_version=no
11960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961   shlibpath_var=LD_LIBRARY_PATH
11962   shlibpath_overrides_runpath=no
11963   hardcode_into_libs=yes
11964   ;;
11965
11966 uts4*)
11967   version_type=linux
11968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969   soname_spec='${libname}${release}${shared_ext}$major'
11970   shlibpath_var=LD_LIBRARY_PATH
11971   ;;
11972
11973 *)
11974   dynamic_linker=no
11975   ;;
11976 esac
11977 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11978 echo "${ECHO_T}$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11980
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11984 fi
11985
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11988 fi
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11991 fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
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   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12081 hardcode_action=
12082 if test -n "$hardcode_libdir_flag_spec" ||
12083    test -n "$runpath_var" ||
12084    test "X$hardcode_automatic" = "Xyes" ; then
12085
12086   # We can hardcode non-existent directories.
12087   if test "$hardcode_direct" != no &&
12088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089      # have to relink, otherwise we might link with an installed library
12090      # when we should be linking with a yet-to-be-installed one
12091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12092      test "$hardcode_minus_L" != no; then
12093     # Linking always hardcodes the temporary library directory.
12094     hardcode_action=relink
12095   else
12096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097     hardcode_action=immediate
12098   fi
12099 else
12100   # We cannot hardcode anything, or else we can only hardcode existing
12101   # directories.
12102   hardcode_action=unsupported
12103 fi
12104 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12105 echo "${ECHO_T}$hardcode_action" >&6; }
12106
12107 if test "$hardcode_action" = relink ||
12108    test "$inherit_rpath" = yes; then
12109   # Fast installation is not supported
12110   enable_fast_install=no
12111 elif test "$shlibpath_overrides_runpath" = yes ||
12112      test "$enable_shared" = no; then
12113   # Fast installation is not necessary
12114   enable_fast_install=needless
12115 fi
12116
12117
12118
12119
12120
12121
12122   if test "x$enable_dlopen" != xyes; then
12123   enable_dlopen=unknown
12124   enable_dlopen_self=unknown
12125   enable_dlopen_self_static=unknown
12126 else
12127   lt_cv_dlopen=no
12128   lt_cv_dlopen_libs=
12129
12130   case $host_os in
12131   beos*)
12132     lt_cv_dlopen="load_add_on"
12133     lt_cv_dlopen_libs=
12134     lt_cv_dlopen_self=yes
12135     ;;
12136
12137   mingw* | pw32* | cegcc*)
12138     lt_cv_dlopen="LoadLibrary"
12139     lt_cv_dlopen_libs=
12140     ;;
12141
12142   cygwin*)
12143     lt_cv_dlopen="dlopen"
12144     lt_cv_dlopen_libs=
12145     ;;
12146
12147   darwin*)
12148   # if libdl is installed we need to link against it
12149     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12150 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldl  $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162
12163 /* Override any GCC internal prototype to avoid an error.
12164    Use char because int might match the return type of a GCC
12165    builtin and then its argument prototype would still apply.  */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 char dlopen ();
12170 int
12171 main ()
12172 {
12173 return dlopen ();
12174   ;
12175   return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182   *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185   (eval "$ac_link") 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } && {
12192          test -z "$ac_c_werror_flag" ||
12193          test ! -s conftest.err
12194        } && test -s conftest$ac_exeext &&
12195        $as_test_x conftest$ac_exeext; then
12196   ac_cv_lib_dl_dlopen=yes
12197 else
12198   echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201         ac_cv_lib_dl_dlopen=no
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205       conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12210 if test $ac_cv_lib_dl_dlopen = yes; then
12211   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12212 else
12213
12214     lt_cv_dlopen="dyld"
12215     lt_cv_dlopen_libs=
12216     lt_cv_dlopen_self=yes
12217
12218 fi
12219
12220     ;;
12221
12222   *)
12223     { echo "$as_me:$LINENO: checking for shl_load" >&5
12224 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12225 if test "${ac_cv_func_shl_load+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12236 #define shl_load innocuous_shl_load
12237
12238 /* System header to define __stub macros and hopefully few prototypes,
12239     which can conflict with char shl_load (); below.
12240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241     <limits.h> exists even on freestanding compilers.  */
12242
12243 #ifdef __STDC__
12244 # include <limits.h>
12245 #else
12246 # include <assert.h>
12247 #endif
12248
12249 #undef shl_load
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252    Use char because int might match the return type of a GCC
12253    builtin and then its argument prototype would still apply.  */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char shl_load ();
12258 /* The GNU C library defines this for functions which it implements
12259     to always fail with ENOSYS.  Some functions are actually named
12260     something starting with __ and the normal name is an alias.  */
12261 #if defined __stub_shl_load || defined __stub___shl_load
12262 choke me
12263 #endif
12264
12265 int
12266 main ()
12267 {
12268 return shl_load ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_link") 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } && {
12287          test -z "$ac_c_werror_flag" ||
12288          test ! -s conftest.err
12289        } && test -s conftest$ac_exeext &&
12290        $as_test_x conftest$ac_exeext; then
12291   ac_cv_func_shl_load=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_func_shl_load=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300       conftest$ac_exeext conftest.$ac_ext
12301 fi
12302 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12303 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12304 if test $ac_cv_func_shl_load = yes; then
12305   lt_cv_dlopen="shl_load"
12306 else
12307   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12308 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   ac_check_lib_save_LIBS=$LIBS
12313 LIBS="-ldld  $LIBS"
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320
12321 /* Override any GCC internal prototype to avoid an error.
12322    Use char because int might match the return type of a GCC
12323    builtin and then its argument prototype would still apply.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char shl_load ();
12328 int
12329 main ()
12330 {
12331 return shl_load ();
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_link") 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } && {
12350          test -z "$ac_c_werror_flag" ||
12351          test ! -s conftest.err
12352        } && test -s conftest$ac_exeext &&
12353        $as_test_x conftest$ac_exeext; then
12354   ac_cv_lib_dld_shl_load=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359         ac_cv_lib_dld_shl_load=no
12360 fi
12361
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363       conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12365 fi
12366 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12367 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12368 if test $ac_cv_lib_dld_shl_load = yes; then
12369   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12370 else
12371   { echo "$as_me:$LINENO: checking for dlopen" >&5
12372 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12373 if test "${ac_cv_func_dlopen+set}" = set; then
12374   echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376   cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12384 #define dlopen innocuous_dlopen
12385
12386 /* System header to define __stub macros and hopefully few prototypes,
12387     which can conflict with char dlopen (); below.
12388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389     <limits.h> exists even on freestanding compilers.  */
12390
12391 #ifdef __STDC__
12392 # include <limits.h>
12393 #else
12394 # include <assert.h>
12395 #endif
12396
12397 #undef dlopen
12398
12399 /* Override any GCC internal prototype to avoid an error.
12400    Use char because int might match the return type of a GCC
12401    builtin and then its argument prototype would still apply.  */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char dlopen ();
12406 /* The GNU C library defines this for functions which it implements
12407     to always fail with ENOSYS.  Some functions are actually named
12408     something starting with __ and the normal name is an alias.  */
12409 #if defined __stub_dlopen || defined __stub___dlopen
12410 choke me
12411 #endif
12412
12413 int
12414 main ()
12415 {
12416 return dlopen ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest$ac_exeext &&
12438        $as_test_x conftest$ac_exeext; then
12439   ac_cv_func_dlopen=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         ac_cv_func_dlopen=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448       conftest$ac_exeext conftest.$ac_ext
12449 fi
12450 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12451 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12452 if test $ac_cv_func_dlopen = yes; then
12453   lt_cv_dlopen="dlopen"
12454 else
12455   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12458   echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460   ac_check_lib_save_LIBS=$LIBS
12461 LIBS="-ldl  $LIBS"
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h.  */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h.  */
12468
12469 /* Override any GCC internal prototype to avoid an error.
12470    Use char because int might match the return type of a GCC
12471    builtin and then its argument prototype would still apply.  */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char dlopen ();
12476 int
12477 main ()
12478 {
12479 return dlopen ();
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_link") 2>conftest.er1
12492   ac_status=$?
12493   grep -v '^ *+' conftest.er1 >conftest.err
12494   rm -f conftest.er1
12495   cat conftest.err >&5
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } && {
12498          test -z "$ac_c_werror_flag" ||
12499          test ! -s conftest.err
12500        } && test -s conftest$ac_exeext &&
12501        $as_test_x conftest$ac_exeext; then
12502   ac_cv_lib_dl_dlopen=yes
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507         ac_cv_lib_dl_dlopen=no
12508 fi
12509
12510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12511       conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12513 fi
12514 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12515 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12516 if test $ac_cv_lib_dl_dlopen = yes; then
12517   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12518 else
12519   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12520 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12521 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lsvld  $LIBS"
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532
12533 /* Override any GCC internal prototype to avoid an error.
12534    Use char because int might match the return type of a GCC
12535    builtin and then its argument prototype would still apply.  */
12536 #ifdef __cplusplus
12537 extern "C"
12538 #endif
12539 char dlopen ();
12540 int
12541 main ()
12542 {
12543 return dlopen ();
12544   ;
12545   return 0;
12546 }
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_link") 2>conftest.er1
12556   ac_status=$?
12557   grep -v '^ *+' conftest.er1 >conftest.err
12558   rm -f conftest.er1
12559   cat conftest.err >&5
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); } && {
12562          test -z "$ac_c_werror_flag" ||
12563          test ! -s conftest.err
12564        } && test -s conftest$ac_exeext &&
12565        $as_test_x conftest$ac_exeext; then
12566   ac_cv_lib_svld_dlopen=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571         ac_cv_lib_svld_dlopen=no
12572 fi
12573
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575       conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12577 fi
12578 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12580 if test $ac_cv_lib_svld_dlopen = yes; then
12581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12582 else
12583   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12586   echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588   ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldld  $LIBS"
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h.  */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h.  */
12596
12597 /* Override any GCC internal prototype to avoid an error.
12598    Use char because int might match the return type of a GCC
12599    builtin and then its argument prototype would still apply.  */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char dld_link ();
12604 int
12605 main ()
12606 {
12607 return dld_link ();
12608   ;
12609   return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_link") 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } && {
12626          test -z "$ac_c_werror_flag" ||
12627          test ! -s conftest.err
12628        } && test -s conftest$ac_exeext &&
12629        $as_test_x conftest$ac_exeext; then
12630   ac_cv_lib_dld_dld_link=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635         ac_cv_lib_dld_dld_link=no
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639       conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12643 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12644 if test $ac_cv_lib_dld_dld_link = yes; then
12645   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12646 fi
12647
12648
12649 fi
12650
12651
12652 fi
12653
12654
12655 fi
12656
12657
12658 fi
12659
12660
12661 fi
12662
12663     ;;
12664   esac
12665
12666   if test "x$lt_cv_dlopen" != xno; then
12667     enable_dlopen=yes
12668   else
12669     enable_dlopen=no
12670   fi
12671
12672   case $lt_cv_dlopen in
12673   dlopen)
12674     save_CPPFLAGS="$CPPFLAGS"
12675     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12676
12677     save_LDFLAGS="$LDFLAGS"
12678     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12679
12680     save_LIBS="$LIBS"
12681     LIBS="$lt_cv_dlopen_libs $LIBS"
12682
12683     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12684 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12685 if test "${lt_cv_dlopen_self+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688           if test "$cross_compiling" = yes; then :
12689   lt_cv_dlopen_self=cross
12690 else
12691   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12692   lt_status=$lt_dlunknown
12693   cat > conftest.$ac_ext <<_LT_EOF
12694 #line 12694 "configure"
12695 #include "confdefs.h"
12696
12697 #if HAVE_DLFCN_H
12698 #include <dlfcn.h>
12699 #endif
12700
12701 #include <stdio.h>
12702
12703 #ifdef RTLD_GLOBAL
12704 #  define LT_DLGLOBAL           RTLD_GLOBAL
12705 #else
12706 #  ifdef DL_GLOBAL
12707 #    define LT_DLGLOBAL         DL_GLOBAL
12708 #  else
12709 #    define LT_DLGLOBAL         0
12710 #  endif
12711 #endif
12712
12713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12714    find out it does not work in some platform. */
12715 #ifndef LT_DLLAZY_OR_NOW
12716 #  ifdef RTLD_LAZY
12717 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12718 #  else
12719 #    ifdef DL_LAZY
12720 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12721 #    else
12722 #      ifdef RTLD_NOW
12723 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12724 #      else
12725 #        ifdef DL_NOW
12726 #          define LT_DLLAZY_OR_NOW      DL_NOW
12727 #        else
12728 #          define LT_DLLAZY_OR_NOW      0
12729 #        endif
12730 #      endif
12731 #    endif
12732 #  endif
12733 #endif
12734
12735 void fnord() { int i=42;}
12736 int main ()
12737 {
12738   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739   int status = $lt_dlunknown;
12740
12741   if (self)
12742     {
12743       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12744       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12745       /* dlclose (self); */
12746     }
12747   else
12748     puts (dlerror ());
12749
12750   return status;
12751 }
12752 _LT_EOF
12753   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754   (eval $ac_link) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12758     (./conftest; exit; ) >&5 2>/dev/null
12759     lt_status=$?
12760     case x$lt_status in
12761       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12762       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12763       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12764     esac
12765   else :
12766     # compilation failed
12767     lt_cv_dlopen_self=no
12768   fi
12769 fi
12770 rm -fr conftest*
12771
12772
12773 fi
12774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12775 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12776
12777     if test "x$lt_cv_dlopen_self" = xyes; then
12778       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12779       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12780 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12781 if test "${lt_cv_dlopen_self_static+set}" = set; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784           if test "$cross_compiling" = yes; then :
12785   lt_cv_dlopen_self_static=cross
12786 else
12787   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12788   lt_status=$lt_dlunknown
12789   cat > conftest.$ac_ext <<_LT_EOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12792
12793 #if HAVE_DLFCN_H
12794 #include <dlfcn.h>
12795 #endif
12796
12797 #include <stdio.h>
12798
12799 #ifdef RTLD_GLOBAL
12800 #  define LT_DLGLOBAL           RTLD_GLOBAL
12801 #else
12802 #  ifdef DL_GLOBAL
12803 #    define LT_DLGLOBAL         DL_GLOBAL
12804 #  else
12805 #    define LT_DLGLOBAL         0
12806 #  endif
12807 #endif
12808
12809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12810    find out it does not work in some platform. */
12811 #ifndef LT_DLLAZY_OR_NOW
12812 #  ifdef RTLD_LAZY
12813 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12814 #  else
12815 #    ifdef DL_LAZY
12816 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12817 #    else
12818 #      ifdef RTLD_NOW
12819 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12820 #      else
12821 #        ifdef DL_NOW
12822 #          define LT_DLLAZY_OR_NOW      DL_NOW
12823 #        else
12824 #          define LT_DLLAZY_OR_NOW      0
12825 #        endif
12826 #      endif
12827 #    endif
12828 #  endif
12829 #endif
12830
12831 void fnord() { int i=42;}
12832 int main ()
12833 {
12834   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12835   int status = $lt_dlunknown;
12836
12837   if (self)
12838     {
12839       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12840       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12841       /* dlclose (self); */
12842     }
12843   else
12844     puts (dlerror ());
12845
12846   return status;
12847 }
12848 _LT_EOF
12849   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850   (eval $ac_link) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12854     (./conftest; exit; ) >&5 2>/dev/null
12855     lt_status=$?
12856     case x$lt_status in
12857       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12858       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12859       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12860     esac
12861   else :
12862     # compilation failed
12863     lt_cv_dlopen_self_static=no
12864   fi
12865 fi
12866 rm -fr conftest*
12867
12868
12869 fi
12870 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12871 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12872     fi
12873
12874     CPPFLAGS="$save_CPPFLAGS"
12875     LDFLAGS="$save_LDFLAGS"
12876     LIBS="$save_LIBS"
12877     ;;
12878   esac
12879
12880   case $lt_cv_dlopen_self in
12881   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12882   *) enable_dlopen_self=unknown ;;
12883   esac
12884
12885   case $lt_cv_dlopen_self_static in
12886   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12887   *) enable_dlopen_self_static=unknown ;;
12888   esac
12889 fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907 striplib=
12908 old_striplib=
12909 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12910 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12911 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12912   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12913   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12914   { echo "$as_me:$LINENO: result: yes" >&5
12915 echo "${ECHO_T}yes" >&6; }
12916 else
12917 # FIXME - insert some real tests, host_os isn't really good enough
12918   case $host_os in
12919   darwin*)
12920     if test -n "$STRIP" ; then
12921       striplib="$STRIP -x"
12922       old_striplib="$STRIP -S"
12923       { echo "$as_me:$LINENO: result: yes" >&5
12924 echo "${ECHO_T}yes" >&6; }
12925     else
12926       { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12928     fi
12929     ;;
12930   *)
12931     { echo "$as_me:$LINENO: result: no" >&5
12932 echo "${ECHO_T}no" >&6; }
12933     ;;
12934   esac
12935 fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948   # Report which library types will actually be built
12949   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12951   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12952 echo "${ECHO_T}$can_build_shared" >&6; }
12953
12954   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12956   test "$can_build_shared" = "no" && enable_shared=no
12957
12958   # On AIX, shared libraries and static libraries use the same namespace, and
12959   # are all built from PIC.
12960   case $host_os in
12961   aix3*)
12962     test "$enable_shared" = yes && enable_static=no
12963     if test -n "$RANLIB"; then
12964       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12965       postinstall_cmds='$RANLIB $lib'
12966     fi
12967     ;;
12968
12969   aix[4-9]*)
12970     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12971       test "$enable_shared" = yes && enable_static=no
12972     fi
12973     ;;
12974   esac
12975   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12976 echo "${ECHO_T}$enable_shared" >&6; }
12977
12978   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12980   # Make sure either enable_shared or enable_static is yes.
12981   test "$enable_shared" = yes || enable_static=yes
12982   { echo "$as_me:$LINENO: result: $enable_static" >&5
12983 echo "${ECHO_T}$enable_static" >&6; }
12984
12985
12986
12987
12988 fi
12989 ac_ext=c
12990 ac_cpp='$CPP $CPPFLAGS'
12991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994
12995 CC="$lt_save_CC"
12996
12997
12998 ac_ext=cpp
12999 ac_cpp='$CXXCPP $CPPFLAGS'
13000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13003
13004 archive_cmds_need_lc_CXX=no
13005 allow_undefined_flag_CXX=
13006 always_export_symbols_CXX=no
13007 archive_expsym_cmds_CXX=
13008 compiler_needs_object_CXX=no
13009 export_dynamic_flag_spec_CXX=
13010 hardcode_direct_CXX=no
13011 hardcode_direct_absolute_CXX=no
13012 hardcode_libdir_flag_spec_CXX=
13013 hardcode_libdir_flag_spec_ld_CXX=
13014 hardcode_libdir_separator_CXX=
13015 hardcode_minus_L_CXX=no
13016 hardcode_shlibpath_var_CXX=unsupported
13017 hardcode_automatic_CXX=no
13018 inherit_rpath_CXX=no
13019 module_cmds_CXX=
13020 module_expsym_cmds_CXX=
13021 link_all_deplibs_CXX=unknown
13022 old_archive_cmds_CXX=$old_archive_cmds
13023 no_undefined_flag_CXX=
13024 whole_archive_flag_spec_CXX=
13025 enable_shared_with_static_runtimes_CXX=no
13026
13027 # Source file extension for C++ test sources.
13028 ac_ext=cpp
13029
13030 # Object file extension for compiled C++ test sources.
13031 objext=o
13032 objext_CXX=$objext
13033
13034 # No sense in running all these tests if we already determined that
13035 # the CXX compiler isn't working.  Some variables (like enable_shared)
13036 # are currently assumed to apply to all compilers on this platform,
13037 # and will be corrupted by setting them based on a non-working compiler.
13038 if test "$_lt_caught_CXX_error" != yes; then
13039   # Code to be used in simple compile tests
13040   lt_simple_compile_test_code="int some_variable = 0;"
13041
13042   # Code to be used in simple link tests
13043   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13044
13045   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13046
13047
13048
13049
13050
13051
13052 # If no C compiler was specified, use CC.
13053 LTCC=${LTCC-"$CC"}
13054
13055 # If no C compiler flags were specified, use CFLAGS.
13056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13057
13058 # Allow CC to be a program name with arguments.
13059 compiler=$CC
13060
13061
13062   # save warnings/boilerplate of simple test code
13063   ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_compiler_boilerplate=`cat conftest.err`
13067 $RM conftest*
13068
13069   ac_outfile=conftest.$ac_objext
13070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13072 _lt_linker_boilerplate=`cat conftest.err`
13073 $RM -r conftest*
13074
13075
13076   # Allow CC to be a program name with arguments.
13077   lt_save_CC=$CC
13078   lt_save_LD=$LD
13079   lt_save_GCC=$GCC
13080   GCC=$GXX
13081   lt_save_with_gnu_ld=$with_gnu_ld
13082   lt_save_path_LD=$lt_cv_path_LD
13083   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13084     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13085   else
13086     $as_unset lt_cv_prog_gnu_ld
13087   fi
13088   if test -n "${lt_cv_path_LDCXX+set}"; then
13089     lt_cv_path_LD=$lt_cv_path_LDCXX
13090   else
13091     $as_unset lt_cv_path_LD
13092   fi
13093   test -z "${LDCXX+set}" || LD=$LDCXX
13094   CC=${CXX-"c++"}
13095   compiler=$CC
13096   compiler_CXX=$CC
13097   for cc_temp in $compiler""; do
13098   case $cc_temp in
13099     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13100     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13101     \-*) ;;
13102     *) break;;
13103   esac
13104 done
13105 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13106
13107
13108   if test -n "$compiler"; then
13109     # We don't want -fno-exception when compiling C++ code, so set the
13110     # no_builtin_flag separately
13111     if test "$GXX" = yes; then
13112       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13113     else
13114       lt_prog_compiler_no_builtin_flag_CXX=
13115     fi
13116
13117     if test "$GXX" = yes; then
13118       # Set up default GNU C++ configuration
13119
13120
13121
13122 # Check whether --with-gnu-ld was given.
13123 if test "${with_gnu_ld+set}" = set; then
13124   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13125 else
13126   with_gnu_ld=no
13127 fi
13128
13129 ac_prog=ld
13130 if test "$GCC" = yes; then
13131   # Check if gcc -print-prog-name=ld gives a path.
13132   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13133 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13134   case $host in
13135   *-*-mingw*)
13136     # gcc leaves a trailing carriage return which upsets mingw
13137     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13138   *)
13139     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13140   esac
13141   case $ac_prog in
13142     # Accept absolute paths.
13143     [\\/]* | ?:[\\/]*)
13144       re_direlt='/[^/][^/]*/\.\./'
13145       # Canonicalize the pathname of ld
13146       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13147       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13148         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13149       done
13150       test -z "$LD" && LD="$ac_prog"
13151       ;;
13152   "")
13153     # If it fails, then pretend we aren't using GCC.
13154     ac_prog=ld
13155     ;;
13156   *)
13157     # If it is relative, then search for the first ld in PATH.
13158     with_gnu_ld=unknown
13159     ;;
13160   esac
13161 elif test "$with_gnu_ld" = yes; then
13162   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13164 else
13165   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13167 fi
13168 if test "${lt_cv_path_LD+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   if test -z "$LD"; then
13172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13173   for ac_dir in $PATH; do
13174     IFS="$lt_save_ifs"
13175     test -z "$ac_dir" && ac_dir=.
13176     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13177       lt_cv_path_LD="$ac_dir/$ac_prog"
13178       # Check to see if the program is GNU ld.  I'd rather use --version,
13179       # but apparently some variants of GNU ld only accept -v.
13180       # Break only if it was the GNU/non-GNU ld that we prefer.
13181       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13182       *GNU* | *'with BFD'*)
13183         test "$with_gnu_ld" != no && break
13184         ;;
13185       *)
13186         test "$with_gnu_ld" != yes && break
13187         ;;
13188       esac
13189     fi
13190   done
13191   IFS="$lt_save_ifs"
13192 else
13193   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13194 fi
13195 fi
13196
13197 LD="$lt_cv_path_LD"
13198 if test -n "$LD"; then
13199   { echo "$as_me:$LINENO: result: $LD" >&5
13200 echo "${ECHO_T}$LD" >&6; }
13201 else
13202   { echo "$as_me:$LINENO: result: no" >&5
13203 echo "${ECHO_T}no" >&6; }
13204 fi
13205 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13206 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13207    { (exit 1); exit 1; }; }
13208 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13209 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13210 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13214 case `$LD -v 2>&1 </dev/null` in
13215 *GNU* | *'with BFD'*)
13216   lt_cv_prog_gnu_ld=yes
13217   ;;
13218 *)
13219   lt_cv_prog_gnu_ld=no
13220   ;;
13221 esac
13222 fi
13223 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13224 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13225 with_gnu_ld=$lt_cv_prog_gnu_ld
13226
13227
13228
13229
13230
13231
13232
13233       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13234       # archiving commands below assume that GNU ld is being used.
13235       if test "$with_gnu_ld" = yes; then
13236         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237         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'
13238
13239         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13240         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13241
13242         # If archive_cmds runs LD, not CC, wlarc should be empty
13243         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13244         #     investigate it a little bit more. (MM)
13245         wlarc='${wl}'
13246
13247         # ancient GNU ld didn't support --whole-archive et. al.
13248         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13249           $GREP 'no-whole-archive' > /dev/null; then
13250           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13251         else
13252           whole_archive_flag_spec_CXX=
13253         fi
13254       else
13255         with_gnu_ld=no
13256         wlarc=
13257
13258         # A generic and very simple default shared library creation
13259         # command for GNU C++ for the case where it uses the native
13260         # linker, instead of GNU ld.  If possible, this setting should
13261         # overridden to take advantage of the native linker features on
13262         # the platform it is being used on.
13263         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13264       fi
13265
13266       # Commands to make compiler produce verbose output that lists
13267       # what "hidden" libraries, object files and flags are used when
13268       # linking a shared library.
13269       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13270
13271     else
13272       GXX=no
13273       with_gnu_ld=no
13274       wlarc=
13275     fi
13276
13277     # PORTME: fill in a description of your system's C++ link characteristics
13278     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13280     ld_shlibs_CXX=yes
13281     case $host_os in
13282       aix3*)
13283         # FIXME: insert proper C++ library support
13284         ld_shlibs_CXX=no
13285         ;;
13286       aix[4-9]*)
13287         if test "$host_cpu" = ia64; then
13288           # On IA64, the linker does run time linking by default, so we don't
13289           # have to do anything special.
13290           aix_use_runtimelinking=no
13291           exp_sym_flag='-Bexport'
13292           no_entry_flag=""
13293         else
13294           aix_use_runtimelinking=no
13295
13296           # Test if we are trying to use run time linking or normal
13297           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13298           # need to do runtime linking.
13299           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13300             for ld_flag in $LDFLAGS; do
13301               case $ld_flag in
13302               *-brtl*)
13303                 aix_use_runtimelinking=yes
13304                 break
13305                 ;;
13306               esac
13307             done
13308             ;;
13309           esac
13310
13311           exp_sym_flag='-bexport'
13312           no_entry_flag='-bnoentry'
13313         fi
13314
13315         # When large executables or shared objects are built, AIX ld can
13316         # have problems creating the table of contents.  If linking a library
13317         # or program results in "error TOC overflow" add -mminimal-toc to
13318         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13319         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13320
13321         archive_cmds_CXX=''
13322         hardcode_direct_CXX=yes
13323         hardcode_direct_absolute_CXX=yes
13324         hardcode_libdir_separator_CXX=':'
13325         link_all_deplibs_CXX=yes
13326         file_list_spec_CXX='${wl}-f,'
13327
13328         if test "$GXX" = yes; then
13329           case $host_os in aix4.[012]|aix4.[012].*)
13330           # We only want to do this on AIX 4.2 and lower, the check
13331           # below for broken collect2 doesn't work under 4.3+
13332           collect2name=`${CC} -print-prog-name=collect2`
13333           if test -f "$collect2name" &&
13334              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13335           then
13336             # We have reworked collect2
13337             :
13338           else
13339             # We have old collect2
13340             hardcode_direct_CXX=unsupported
13341             # It fails to find uninstalled libraries when the uninstalled
13342             # path is not listed in the libpath.  Setting hardcode_minus_L
13343             # to unsupported forces relinking
13344             hardcode_minus_L_CXX=yes
13345             hardcode_libdir_flag_spec_CXX='-L$libdir'
13346             hardcode_libdir_separator_CXX=
13347           fi
13348           esac
13349           shared_flag='-shared'
13350           if test "$aix_use_runtimelinking" = yes; then
13351             shared_flag="$shared_flag "'${wl}-G'
13352           fi
13353         else
13354           # not using gcc
13355           if test "$host_cpu" = ia64; then
13356           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13357           # chokes on -Wl,-G. The following line is correct:
13358           shared_flag='-G'
13359           else
13360             if test "$aix_use_runtimelinking" = yes; then
13361               shared_flag='${wl}-G'
13362             else
13363               shared_flag='${wl}-bM:SRE'
13364             fi
13365           fi
13366         fi
13367
13368         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13369         # It seems that -bexpall does not export symbols beginning with
13370         # underscore (_), so it is better to generate a list of symbols to
13371         # export.
13372         always_export_symbols_CXX=yes
13373         if test "$aix_use_runtimelinking" = yes; then
13374           # Warning - without using the other runtime loading flags (-brtl),
13375           # -berok will link without error, but may produce a broken library.
13376           allow_undefined_flag_CXX='-berok'
13377           # Determine the default libpath from the value encoded in an empty
13378           # executable.
13379           cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385
13386 int
13387 main ()
13388 {
13389
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398   *) ac_try_echo=$ac_try;;
13399 esac
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401   (eval "$ac_link") 2>conftest.er1
13402   ac_status=$?
13403   grep -v '^ *+' conftest.er1 >conftest.err
13404   rm -f conftest.er1
13405   cat conftest.err >&5
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } && {
13408          test -z "$ac_cxx_werror_flag" ||
13409          test ! -s conftest.err
13410        } && test -s conftest$ac_exeext &&
13411        $as_test_x conftest$ac_exeext; then
13412
13413 lt_aix_libpath_sed='
13414     /Import File Strings/,/^$/ {
13415         /^0/ {
13416             s/^0  *\(.*\)$/\1/
13417             p
13418         }
13419     }'
13420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 # Check for a 64-bit object if we didn't find anything.
13422 if test -z "$aix_libpath"; then
13423   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13424 fi
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429
13430 fi
13431
13432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13433       conftest$ac_exeext conftest.$ac_ext
13434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13435
13436           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13437
13438           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"
13439         else
13440           if test "$host_cpu" = ia64; then
13441             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13442             allow_undefined_flag_CXX="-z nodefs"
13443             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"
13444           else
13445             # Determine the default libpath from the value encoded in an
13446             # empty executable.
13447             cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453
13454 int
13455 main ()
13456 {
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_link") 2>conftest.er1
13470   ac_status=$?
13471   grep -v '^ *+' conftest.er1 >conftest.err
13472   rm -f conftest.er1
13473   cat conftest.err >&5
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } && {
13476          test -z "$ac_cxx_werror_flag" ||
13477          test ! -s conftest.err
13478        } && test -s conftest$ac_exeext &&
13479        $as_test_x conftest$ac_exeext; then
13480
13481 lt_aix_libpath_sed='
13482     /Import File Strings/,/^$/ {
13483         /^0/ {
13484             s/^0  *\(.*\)$/\1/
13485             p
13486         }
13487     }'
13488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13489 # Check for a 64-bit object if we didn't find anything.
13490 if test -z "$aix_libpath"; then
13491   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13492 fi
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501       conftest$ac_exeext conftest.$ac_ext
13502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13503
13504             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13505             # Warning - without using the other run time loading flags,
13506             # -berok will link without error, but may produce a broken library.
13507             no_undefined_flag_CXX=' ${wl}-bernotok'
13508             allow_undefined_flag_CXX=' ${wl}-berok'
13509             # Exported symbols can be pulled into shared objects from archives
13510             whole_archive_flag_spec_CXX='$convenience'
13511             archive_cmds_need_lc_CXX=yes
13512             # This is similar to how AIX traditionally builds its shared
13513             # libraries.
13514             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'
13515           fi
13516         fi
13517         ;;
13518
13519       beos*)
13520         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13521           allow_undefined_flag_CXX=unsupported
13522           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13523           # support --undefined.  This deserves some investigation.  FIXME
13524           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525         else
13526           ld_shlibs_CXX=no
13527         fi
13528         ;;
13529
13530       chorus*)
13531         case $cc_basename in
13532           *)
13533           # FIXME: insert proper C++ library support
13534           ld_shlibs_CXX=no
13535           ;;
13536         esac
13537         ;;
13538
13539       cygwin* | mingw* | pw32* | cegcc*)
13540         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13541         # as there is no search path for DLLs.
13542         hardcode_libdir_flag_spec_CXX='-L$libdir'
13543         allow_undefined_flag_CXX=unsupported
13544         always_export_symbols_CXX=no
13545         enable_shared_with_static_runtimes_CXX=yes
13546
13547         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13548           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'
13549           # If the export-symbols file already is a .def file (1st line
13550           # is EXPORTS), use it as is; otherwise, prepend...
13551           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13552             cp $export_symbols $output_objdir/$soname.def;
13553           else
13554             echo EXPORTS > $output_objdir/$soname.def;
13555             cat $export_symbols >> $output_objdir/$soname.def;
13556           fi~
13557           $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'
13558         else
13559           ld_shlibs_CXX=no
13560         fi
13561         ;;
13562       darwin* | rhapsody*)
13563
13564
13565   archive_cmds_need_lc_CXX=no
13566   hardcode_direct_CXX=no
13567   hardcode_automatic_CXX=yes
13568   hardcode_shlibpath_var_CXX=unsupported
13569   whole_archive_flag_spec_CXX=''
13570   link_all_deplibs_CXX=yes
13571   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13572   case $cc_basename in
13573      ifort*) _lt_dar_can_shared=yes ;;
13574      *) _lt_dar_can_shared=$GCC ;;
13575   esac
13576   if test "$_lt_dar_can_shared" = "yes"; then
13577     output_verbose_link_cmd=echo
13578     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}"
13579     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13580     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}"
13581     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}"
13582        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13583       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}"
13584       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}"
13585     fi
13586
13587   else
13588   ld_shlibs_CXX=no
13589   fi
13590
13591         ;;
13592
13593       dgux*)
13594         case $cc_basename in
13595           ec++*)
13596             # FIXME: insert proper C++ library support
13597             ld_shlibs_CXX=no
13598             ;;
13599           ghcx*)
13600             # Green Hills C++ Compiler
13601             # FIXME: insert proper C++ library support
13602             ld_shlibs_CXX=no
13603             ;;
13604           *)
13605             # FIXME: insert proper C++ library support
13606             ld_shlibs_CXX=no
13607             ;;
13608         esac
13609         ;;
13610
13611       freebsd[12]*)
13612         # C++ shared libraries reported to be fairly broken before
13613         # switch to ELF
13614         ld_shlibs_CXX=no
13615         ;;
13616
13617       freebsd-elf*)
13618         archive_cmds_need_lc_CXX=no
13619         ;;
13620
13621       freebsd* | dragonfly*)
13622         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13623         # conventions
13624         ld_shlibs_CXX=yes
13625         ;;
13626
13627       gnu*)
13628         ;;
13629
13630       hpux9*)
13631         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13632         hardcode_libdir_separator_CXX=:
13633         export_dynamic_flag_spec_CXX='${wl}-E'
13634         hardcode_direct_CXX=yes
13635         hardcode_minus_L_CXX=yes # Not in the search PATH,
13636                                              # but as the default
13637                                              # location of the library.
13638
13639         case $cc_basename in
13640           CC*)
13641             # FIXME: insert proper C++ library support
13642             ld_shlibs_CXX=no
13643             ;;
13644           aCC*)
13645             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'
13646             # Commands to make compiler produce verbose output that lists
13647             # what "hidden" libraries, object files and flags are used when
13648             # linking a shared library.
13649             #
13650             # There doesn't appear to be a way to prevent this compiler from
13651             # explicitly linking system object files so we need to strip them
13652             # from the output so that they don't get included in the library
13653             # dependencies.
13654             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'
13655             ;;
13656           *)
13657             if test "$GXX" = yes; then
13658               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'
13659             else
13660               # FIXME: insert proper C++ library support
13661               ld_shlibs_CXX=no
13662             fi
13663             ;;
13664         esac
13665         ;;
13666
13667       hpux10*|hpux11*)
13668         if test $with_gnu_ld = no; then
13669           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13670           hardcode_libdir_separator_CXX=:
13671
13672           case $host_cpu in
13673             hppa*64*|ia64*)
13674               ;;
13675             *)
13676               export_dynamic_flag_spec_CXX='${wl}-E'
13677               ;;
13678           esac
13679         fi
13680         case $host_cpu in
13681           hppa*64*|ia64*)
13682             hardcode_direct_CXX=no
13683             hardcode_shlibpath_var_CXX=no
13684             ;;
13685           *)
13686             hardcode_direct_CXX=yes
13687             hardcode_direct_absolute_CXX=yes
13688             hardcode_minus_L_CXX=yes # Not in the search PATH,
13689                                                  # but as the default
13690                                                  # location of the library.
13691             ;;
13692         esac
13693
13694         case $cc_basename in
13695           CC*)
13696             # FIXME: insert proper C++ library support
13697             ld_shlibs_CXX=no
13698             ;;
13699           aCC*)
13700             case $host_cpu in
13701               hppa*64*)
13702                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703                 ;;
13704               ia64*)
13705                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706                 ;;
13707               *)
13708                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709                 ;;
13710             esac
13711             # Commands to make compiler produce verbose output that lists
13712             # what "hidden" libraries, object files and flags are used when
13713             # linking a shared library.
13714             #
13715             # There doesn't appear to be a way to prevent this compiler from
13716             # explicitly linking system object files so we need to strip them
13717             # from the output so that they don't get included in the library
13718             # dependencies.
13719             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'
13720             ;;
13721           *)
13722             if test "$GXX" = yes; then
13723               if test $with_gnu_ld = no; then
13724                 case $host_cpu in
13725                   hppa*64*)
13726                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727                     ;;
13728                   ia64*)
13729                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13730                     ;;
13731                   *)
13732                     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'
13733                     ;;
13734                 esac
13735               fi
13736             else
13737               # FIXME: insert proper C++ library support
13738               ld_shlibs_CXX=no
13739             fi
13740             ;;
13741         esac
13742         ;;
13743
13744       interix[3-9]*)
13745         hardcode_direct_CXX=no
13746         hardcode_shlibpath_var_CXX=no
13747         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748         export_dynamic_flag_spec_CXX='${wl}-E'
13749         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13750         # Instead, shared libraries are loaded at an image base (0x10000000 by
13751         # default) and relocated if they conflict, which is a slow very memory
13752         # consuming and fragmenting process.  To avoid this, we pick a random,
13753         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13754         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13755         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'
13756         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'
13757         ;;
13758       irix5* | irix6*)
13759         case $cc_basename in
13760           CC*)
13761             # SGI C++
13762             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'
13763
13764             # Archives containing C++ object files must be created using
13765             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13766             # necessary to make sure instantiated templates are included
13767             # in the archive.
13768             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13769             ;;
13770           *)
13771             if test "$GXX" = yes; then
13772               if test "$with_gnu_ld" = no; then
13773                 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'
13774               else
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` -o $lib'
13776               fi
13777             fi
13778             link_all_deplibs_CXX=yes
13779             ;;
13780         esac
13781         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13782         hardcode_libdir_separator_CXX=:
13783         inherit_rpath_CXX=yes
13784         ;;
13785
13786       linux* | k*bsd*-gnu)
13787         case $cc_basename in
13788           KCC*)
13789             # Kuck and Associates, Inc. (KAI) C++ Compiler
13790
13791             # KCC will only create a shared library if the output file
13792             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13793             # to its proper name (with version) after linking.
13794             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'
13795             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'
13796             # Commands to make compiler produce verbose output that lists
13797             # what "hidden" libraries, object files and flags are used when
13798             # linking a shared library.
13799             #
13800             # There doesn't appear to be a way to prevent this compiler from
13801             # explicitly linking system object files so we need to strip them
13802             # from the output so that they don't get included in the library
13803             # dependencies.
13804             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'
13805
13806             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13807             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13808
13809             # Archives containing C++ object files must be created using
13810             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13811             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13812             ;;
13813           icpc* | ecpc* )
13814             # Intel C++
13815             with_gnu_ld=yes
13816             # version 8.0 and above of icpc choke on multiply defined symbols
13817             # if we add $predep_objects and $postdep_objects, however 7.1 and
13818             # earlier do not add the objects themselves.
13819             case `$CC -V 2>&1` in
13820               *"Version 7."*)
13821                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822                 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'
13823                 ;;
13824               *)  # Version 8.0 or newer
13825                 tmp_idyn=
13826                 case $host_cpu in
13827                   ia64*) tmp_idyn=' -i_dynamic';;
13828                 esac
13829                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830                 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'
13831                 ;;
13832             esac
13833             archive_cmds_need_lc_CXX=no
13834             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13835             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13836             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13837             ;;
13838           pgCC* | pgcpp*)
13839             # Portland Group C++ compiler
13840             case `$CC -V` in
13841             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13842               prelink_cmds_CXX='tpldir=Template.dir~
13843                 rm -rf $tpldir~
13844                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13845                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13846               old_archive_cmds_CXX='tpldir=Template.dir~
13847                 rm -rf $tpldir~
13848                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13849                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13850                 $RANLIB $oldlib'
13851               archive_cmds_CXX='tpldir=Template.dir~
13852                 rm -rf $tpldir~
13853                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13854                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13855               archive_expsym_cmds_CXX='tpldir=Template.dir~
13856                 rm -rf $tpldir~
13857                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13858                 $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'
13859               ;;
13860             *) # Version 6 will use weak symbols
13861               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13862               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'
13863               ;;
13864             esac
13865
13866             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13867             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13868             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'
13869             ;;
13870           cxx*)
13871             # Compaq C++
13872             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13873             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'
13874
13875             runpath_var=LD_RUN_PATH
13876             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13877             hardcode_libdir_separator_CXX=:
13878
13879             # Commands to make compiler produce verbose output that lists
13880             # what "hidden" libraries, object files and flags are used when
13881             # linking a shared library.
13882             #
13883             # There doesn't appear to be a way to prevent this compiler from
13884             # explicitly linking system object files so we need to strip them
13885             # from the output so that they don't get included in the library
13886             # dependencies.
13887             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'
13888             ;;
13889           xl*)
13890             # IBM XL 8.0 on PPC, with GNU ld
13891             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13892             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13893             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894             if test "x$supports_anon_versioning" = xyes; then
13895               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13896                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13897                 echo "local: *; };" >> $output_objdir/$libname.ver~
13898                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13899             fi
13900             ;;
13901           *)
13902             case `$CC -V 2>&1 | sed 5q` in
13903             *Sun\ C*)
13904               # Sun C++ 5.9
13905               no_undefined_flag_CXX=' -zdefs'
13906               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13907               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'
13908               hardcode_libdir_flag_spec_CXX='-R$libdir'
13909               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'
13910               compiler_needs_object_CXX=yes
13911
13912               # Not sure whether something based on
13913               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13914               # would be better.
13915               output_verbose_link_cmd='echo'
13916
13917               # Archives containing C++ object files must be created using
13918               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13919               # necessary to make sure instantiated templates are included
13920               # in the archive.
13921               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13922               ;;
13923             esac
13924             ;;
13925         esac
13926         ;;
13927
13928       lynxos*)
13929         # FIXME: insert proper C++ library support
13930         ld_shlibs_CXX=no
13931         ;;
13932
13933       m88k*)
13934         # FIXME: insert proper C++ library support
13935         ld_shlibs_CXX=no
13936         ;;
13937
13938       mvs*)
13939         case $cc_basename in
13940           cxx*)
13941             # FIXME: insert proper C++ library support
13942             ld_shlibs_CXX=no
13943             ;;
13944           *)
13945             # FIXME: insert proper C++ library support
13946             ld_shlibs_CXX=no
13947             ;;
13948         esac
13949         ;;
13950
13951       netbsd*)
13952         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13953           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13954           wlarc=
13955           hardcode_libdir_flag_spec_CXX='-R$libdir'
13956           hardcode_direct_CXX=yes
13957           hardcode_shlibpath_var_CXX=no
13958         fi
13959         # Workaround some broken pre-1.5 toolchains
13960         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13961         ;;
13962
13963       *nto* | *qnx*)
13964         ld_shlibs_CXX=yes
13965         ;;
13966
13967       openbsd2*)
13968         # C++ shared libraries are fairly broken
13969         ld_shlibs_CXX=no
13970         ;;
13971
13972       openbsd*)
13973         if test -f /usr/libexec/ld.so; then
13974           hardcode_direct_CXX=yes
13975           hardcode_shlibpath_var_CXX=no
13976           hardcode_direct_absolute_CXX=yes
13977           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13978           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13979           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13980             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13981             export_dynamic_flag_spec_CXX='${wl}-E'
13982             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13983           fi
13984           output_verbose_link_cmd=echo
13985         else
13986           ld_shlibs_CXX=no
13987         fi
13988         ;;
13989
13990       osf3* | osf4* | osf5*)
13991         case $cc_basename in
13992           KCC*)
13993             # Kuck and Associates, Inc. (KAI) C++ Compiler
13994
13995             # KCC will only create a shared library if the output file
13996             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13997             # to its proper name (with version) after linking.
13998             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'
13999
14000             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14001             hardcode_libdir_separator_CXX=:
14002
14003             # Archives containing C++ object files must be created using
14004             # the KAI C++ compiler.
14005             case $host in
14006               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14007               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14008             esac
14009             ;;
14010           RCC*)
14011             # Rational C++ 2.4.1
14012             # FIXME: insert proper C++ library support
14013             ld_shlibs_CXX=no
14014             ;;
14015           cxx*)
14016             case $host in
14017               osf3*)
14018                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14019                 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'
14020                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14021                 ;;
14022               *)
14023                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14024                 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'
14025                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14026                   echo "-hidden">> $lib.exp~
14027                   $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~
14028                   $RM $lib.exp'
14029                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14030                 ;;
14031             esac
14032
14033             hardcode_libdir_separator_CXX=:
14034
14035             # Commands to make compiler produce verbose output that lists
14036             # what "hidden" libraries, object files and flags are used when
14037             # linking a shared library.
14038             #
14039             # There doesn't appear to be a way to prevent this compiler from
14040             # explicitly linking system object files so we need to strip them
14041             # from the output so that they don't get included in the library
14042             # dependencies.
14043             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'
14044             ;;
14045           *)
14046             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14047               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14048               case $host in
14049                 osf3*)
14050                   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'
14051                   ;;
14052                 *)
14053                   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'
14054                   ;;
14055               esac
14056
14057               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14058               hardcode_libdir_separator_CXX=:
14059
14060               # Commands to make compiler produce verbose output that lists
14061               # what "hidden" libraries, object files and flags are used when
14062               # linking a shared library.
14063               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14064
14065             else
14066               # FIXME: insert proper C++ library support
14067               ld_shlibs_CXX=no
14068             fi
14069             ;;
14070         esac
14071         ;;
14072
14073       psos*)
14074         # FIXME: insert proper C++ library support
14075         ld_shlibs_CXX=no
14076         ;;
14077
14078       sunos4*)
14079         case $cc_basename in
14080           CC*)
14081             # Sun C++ 4.x
14082             # FIXME: insert proper C++ library support
14083             ld_shlibs_CXX=no
14084             ;;
14085           lcc*)
14086             # Lucid
14087             # FIXME: insert proper C++ library support
14088             ld_shlibs_CXX=no
14089             ;;
14090           *)
14091             # FIXME: insert proper C++ library support
14092             ld_shlibs_CXX=no
14093             ;;
14094         esac
14095         ;;
14096
14097       solaris*)
14098         case $cc_basename in
14099           CC*)
14100             # Sun C++ 4.2, 5.x and Centerline C++
14101             archive_cmds_need_lc_CXX=yes
14102             no_undefined_flag_CXX=' -zdefs'
14103             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14105               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14106
14107             hardcode_libdir_flag_spec_CXX='-R$libdir'
14108             hardcode_shlibpath_var_CXX=no
14109             case $host_os in
14110               solaris2.[0-5] | solaris2.[0-5].*) ;;
14111               *)
14112                 # The compiler driver will combine and reorder linker options,
14113                 # but understands `-z linker_flag'.
14114                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14115                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14116                 ;;
14117             esac
14118             link_all_deplibs_CXX=yes
14119
14120             output_verbose_link_cmd='echo'
14121
14122             # Archives containing C++ object files must be created using
14123             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14124             # necessary to make sure instantiated templates are included
14125             # in the archive.
14126             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14127             ;;
14128           gcx*)
14129             # Green Hills C++ Compiler
14130             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14131
14132             # The C++ compiler must be used to create the archive.
14133             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14134             ;;
14135           *)
14136             # GNU C++ compiler with Solaris linker
14137             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14138               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14139               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14140                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14143
14144                 # Commands to make compiler produce verbose output that lists
14145                 # what "hidden" libraries, object files and flags are used when
14146                 # linking a shared library.
14147                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14148               else
14149                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14150                 # platform.
14151                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14152                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14153                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14154
14155                 # Commands to make compiler produce verbose output that lists
14156                 # what "hidden" libraries, object files and flags are used when
14157                 # linking a shared library.
14158                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14159               fi
14160
14161               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14162               case $host_os in
14163                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14164                 *)
14165                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14166                   ;;
14167               esac
14168             fi
14169             ;;
14170         esac
14171         ;;
14172
14173     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14174       no_undefined_flag_CXX='${wl}-z,text'
14175       archive_cmds_need_lc_CXX=no
14176       hardcode_shlibpath_var_CXX=no
14177       runpath_var='LD_RUN_PATH'
14178
14179       case $cc_basename in
14180         CC*)
14181           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183           ;;
14184         *)
14185           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187           ;;
14188       esac
14189       ;;
14190
14191       sysv5* | sco3.2v5* | sco5v6*)
14192         # Note: We can NOT use -z defs as we might desire, because we do not
14193         # link with -lc, and that would cause any symbols used from libc to
14194         # always be unresolved, which means just about no library would
14195         # ever link correctly.  If we're not using GNU ld we use -z text
14196         # though, which does catch some bad symbols but isn't as heavy-handed
14197         # as -z defs.
14198         no_undefined_flag_CXX='${wl}-z,text'
14199         allow_undefined_flag_CXX='${wl}-z,nodefs'
14200         archive_cmds_need_lc_CXX=no
14201         hardcode_shlibpath_var_CXX=no
14202         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14203         hardcode_libdir_separator_CXX=':'
14204         link_all_deplibs_CXX=yes
14205         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14206         runpath_var='LD_RUN_PATH'
14207
14208         case $cc_basename in
14209           CC*)
14210             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14211             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212             ;;
14213           *)
14214             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216             ;;
14217         esac
14218       ;;
14219
14220       tandem*)
14221         case $cc_basename in
14222           NCC*)
14223             # NonStop-UX NCC 3.20
14224             # FIXME: insert proper C++ library support
14225             ld_shlibs_CXX=no
14226             ;;
14227           *)
14228             # FIXME: insert proper C++ library support
14229             ld_shlibs_CXX=no
14230             ;;
14231         esac
14232         ;;
14233
14234       vxworks*)
14235         # FIXME: insert proper C++ library support
14236         ld_shlibs_CXX=no
14237         ;;
14238
14239       *)
14240         # FIXME: insert proper C++ library support
14241         ld_shlibs_CXX=no
14242         ;;
14243     esac
14244
14245     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14246 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14247     test "$ld_shlibs_CXX" = no && can_build_shared=no
14248
14249     GCC_CXX="$GXX"
14250     LD_CXX="$LD"
14251
14252     ## CAVEAT EMPTOR:
14253     ## There is no encapsulation within the following macros, do not change
14254     ## the running order or otherwise move them around unless you know exactly
14255     ## what you are doing...
14256     # Dependencies to place before and after the object being linked:
14257 predep_objects_CXX=
14258 postdep_objects_CXX=
14259 predeps_CXX=
14260 postdeps_CXX=
14261 compiler_lib_search_path_CXX=
14262
14263 cat > conftest.$ac_ext <<_LT_EOF
14264 class Foo
14265 {
14266 public:
14267   Foo (void) { a = 0; }
14268 private:
14269   int a;
14270 };
14271 _LT_EOF
14272
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274   (eval $ac_compile) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; then
14278   # Parse the compiler output and extract the necessary
14279   # objects, libraries and library flags.
14280
14281   # Sentinel used to keep track of whether or not we are before
14282   # the conftest object file.
14283   pre_test_object_deps_done=no
14284
14285   for p in `eval "$output_verbose_link_cmd"`; do
14286     case $p in
14287
14288     -L* | -R* | -l*)
14289        # Some compilers place space between "-{L,R}" and the path.
14290        # Remove the space.
14291        if test $p = "-L" ||
14292           test $p = "-R"; then
14293          prev=$p
14294          continue
14295        else
14296          prev=
14297        fi
14298
14299        if test "$pre_test_object_deps_done" = no; then
14300          case $p in
14301          -L* | -R*)
14302            # Internal compiler library paths should come after those
14303            # provided the user.  The postdeps already come after the
14304            # user supplied libs so there is no need to process them.
14305            if test -z "$compiler_lib_search_path_CXX"; then
14306              compiler_lib_search_path_CXX="${prev}${p}"
14307            else
14308              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14309            fi
14310            ;;
14311          # The "-l" case would never come before the object being
14312          # linked, so don't bother handling this case.
14313          esac
14314        else
14315          if test -z "$postdeps_CXX"; then
14316            postdeps_CXX="${prev}${p}"
14317          else
14318            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14319          fi
14320        fi
14321        ;;
14322
14323     *.$objext)
14324        # This assumes that the test object file only shows up
14325        # once in the compiler output.
14326        if test "$p" = "conftest.$objext"; then
14327          pre_test_object_deps_done=yes
14328          continue
14329        fi
14330
14331        if test "$pre_test_object_deps_done" = no; then
14332          if test -z "$predep_objects_CXX"; then
14333            predep_objects_CXX="$p"
14334          else
14335            predep_objects_CXX="$predep_objects_CXX $p"
14336          fi
14337        else
14338          if test -z "$postdep_objects_CXX"; then
14339            postdep_objects_CXX="$p"
14340          else
14341            postdep_objects_CXX="$postdep_objects_CXX $p"
14342          fi
14343        fi
14344        ;;
14345
14346     *) ;; # Ignore the rest.
14347
14348     esac
14349   done
14350
14351   # Clean up.
14352   rm -f a.out a.exe
14353 else
14354   echo "libtool.m4: error: problem compiling CXX test program"
14355 fi
14356
14357 $RM -f confest.$objext
14358
14359 # PORTME: override above test on systems where it is broken
14360 case $host_os in
14361 interix[3-9]*)
14362   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14363   # hack all around it, let's just trust "g++" to DTRT.
14364   predep_objects_CXX=
14365   postdep_objects_CXX=
14366   postdeps_CXX=
14367   ;;
14368
14369 linux*)
14370   case `$CC -V 2>&1 | sed 5q` in
14371   *Sun\ C*)
14372     # Sun C++ 5.9
14373
14374     # The more standards-conforming stlport4 library is
14375     # incompatible with the Cstd library. Avoid specifying
14376     # it if it's in CXXFLAGS. Ignore libCrun as
14377     # -library=stlport4 depends on it.
14378     case " $CXX $CXXFLAGS " in
14379     *" -library=stlport4 "*)
14380       solaris_use_stlport4=yes
14381       ;;
14382     esac
14383
14384     if test "$solaris_use_stlport4" != yes; then
14385       postdeps_CXX='-library=Cstd -library=Crun'
14386     fi
14387     ;;
14388   esac
14389   ;;
14390
14391 solaris*)
14392   case $cc_basename in
14393   CC*)
14394     # The more standards-conforming stlport4 library is
14395     # incompatible with the Cstd library. Avoid specifying
14396     # it if it's in CXXFLAGS. Ignore libCrun as
14397     # -library=stlport4 depends on it.
14398     case " $CXX $CXXFLAGS " in
14399     *" -library=stlport4 "*)
14400       solaris_use_stlport4=yes
14401       ;;
14402     esac
14403
14404     # Adding this requires a known-good setup of shared libraries for
14405     # Sun compiler versions before 5.6, else PIC objects from an old
14406     # archive will be linked into the output, leading to subtle bugs.
14407     if test "$solaris_use_stlport4" != yes; then
14408       postdeps_CXX='-library=Cstd -library=Crun'
14409     fi
14410     ;;
14411   esac
14412   ;;
14413 esac
14414
14415
14416 case " $postdeps_CXX " in
14417 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14418 esac
14419  compiler_lib_search_dirs_CXX=
14420 if test -n "${compiler_lib_search_path_CXX}"; then
14421  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14422 fi
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454     lt_prog_compiler_wl_CXX=
14455 lt_prog_compiler_pic_CXX=
14456 lt_prog_compiler_static_CXX=
14457
14458 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14460
14461   # C++ specific cases for pic, static, wl, etc.
14462   if test "$GXX" = yes; then
14463     lt_prog_compiler_wl_CXX='-Wl,'
14464     lt_prog_compiler_static_CXX='-static'
14465
14466     case $host_os in
14467     aix*)
14468       # All AIX code is PIC.
14469       if test "$host_cpu" = ia64; then
14470         # AIX 5 now supports IA64 processor
14471         lt_prog_compiler_static_CXX='-Bstatic'
14472       fi
14473       ;;
14474
14475     amigaos*)
14476       case $host_cpu in
14477       powerpc)
14478             # see comment about AmigaOS4 .so support
14479             lt_prog_compiler_pic_CXX='-fPIC'
14480         ;;
14481       m68k)
14482             # FIXME: we need at least 68020 code to build shared libraries, but
14483             # adding the `-m68020' flag to GCC prevents building anything better,
14484             # like `-m68040'.
14485             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14486         ;;
14487       esac
14488       ;;
14489
14490     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14491       # PIC is the default for these OSes.
14492       ;;
14493     mingw* | cygwin* | os2* | pw32* | cegcc*)
14494       # This hack is so that the source file can tell whether it is being
14495       # built for inclusion in a dll (and should export symbols for example).
14496       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14497       # (--disable-auto-import) libraries
14498       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14499       ;;
14500     darwin* | rhapsody*)
14501       # PIC is the default on this platform
14502       # Common symbols not allowed in MH_DYLIB files
14503       lt_prog_compiler_pic_CXX='-fno-common'
14504       ;;
14505     *djgpp*)
14506       # DJGPP does not support shared libraries at all
14507       lt_prog_compiler_pic_CXX=
14508       ;;
14509     interix[3-9]*)
14510       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14511       # Instead, we relocate shared libraries at runtime.
14512       ;;
14513     sysv4*MP*)
14514       if test -d /usr/nec; then
14515         lt_prog_compiler_pic_CXX=-Kconform_pic
14516       fi
14517       ;;
14518     hpux*)
14519       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14520       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14521       # sets the default TLS model and affects inlining.
14522       case $host_cpu in
14523       hppa*64*)
14524         ;;
14525       *)
14526         lt_prog_compiler_pic_CXX='-fPIC'
14527         ;;
14528       esac
14529       ;;
14530     *qnx* | *nto*)
14531       # QNX uses GNU C++, but need to define -shared option too, otherwise
14532       # it will coredump.
14533       lt_prog_compiler_pic_CXX='-fPIC -shared'
14534       ;;
14535     *)
14536       lt_prog_compiler_pic_CXX='-fPIC'
14537       ;;
14538     esac
14539   else
14540     case $host_os in
14541       aix[4-9]*)
14542         # All AIX code is PIC.
14543         if test "$host_cpu" = ia64; then
14544           # AIX 5 now supports IA64 processor
14545           lt_prog_compiler_static_CXX='-Bstatic'
14546         else
14547           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14548         fi
14549         ;;
14550       chorus*)
14551         case $cc_basename in
14552         cxch68*)
14553           # Green Hills C++ Compiler
14554           # _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"
14555           ;;
14556         esac
14557         ;;
14558       dgux*)
14559         case $cc_basename in
14560           ec++*)
14561             lt_prog_compiler_pic_CXX='-KPIC'
14562             ;;
14563           ghcx*)
14564             # Green Hills C++ Compiler
14565             lt_prog_compiler_pic_CXX='-pic'
14566             ;;
14567           *)
14568             ;;
14569         esac
14570         ;;
14571       freebsd* | dragonfly*)
14572         # FreeBSD uses GNU C++
14573         ;;
14574       hpux9* | hpux10* | hpux11*)
14575         case $cc_basename in
14576           CC*)
14577             lt_prog_compiler_wl_CXX='-Wl,'
14578             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14579             if test "$host_cpu" != ia64; then
14580               lt_prog_compiler_pic_CXX='+Z'
14581             fi
14582             ;;
14583           aCC*)
14584             lt_prog_compiler_wl_CXX='-Wl,'
14585             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14586             case $host_cpu in
14587             hppa*64*|ia64*)
14588               # +Z the default
14589               ;;
14590             *)
14591               lt_prog_compiler_pic_CXX='+Z'
14592               ;;
14593             esac
14594             ;;
14595           *)
14596             ;;
14597         esac
14598         ;;
14599       interix*)
14600         # This is c89, which is MS Visual C++ (no shared libs)
14601         # Anyone wants to do a port?
14602         ;;
14603       irix5* | irix6* | nonstopux*)
14604         case $cc_basename in
14605           CC*)
14606             lt_prog_compiler_wl_CXX='-Wl,'
14607             lt_prog_compiler_static_CXX='-non_shared'
14608             # CC pic flag -KPIC is the default.
14609             ;;
14610           *)
14611             ;;
14612         esac
14613         ;;
14614       linux* | k*bsd*-gnu)
14615         case $cc_basename in
14616           KCC*)
14617             # KAI C++ Compiler
14618             lt_prog_compiler_wl_CXX='--backend -Wl,'
14619             lt_prog_compiler_pic_CXX='-fPIC'
14620             ;;
14621           ecpc* )
14622             # old Intel C++ for x86_64 which still supported -KPIC.
14623             lt_prog_compiler_wl_CXX='-Wl,'
14624             lt_prog_compiler_pic_CXX='-KPIC'
14625             lt_prog_compiler_static_CXX='-static'
14626             ;;
14627           icpc* )
14628             # Intel C++, used to be incompatible with GCC.
14629             # ICC 10 doesn't accept -KPIC any more.
14630             lt_prog_compiler_wl_CXX='-Wl,'
14631             lt_prog_compiler_pic_CXX='-fPIC'
14632             lt_prog_compiler_static_CXX='-static'
14633             ;;
14634           pgCC* | pgcpp*)
14635             # Portland Group C++ compiler
14636             lt_prog_compiler_wl_CXX='-Wl,'
14637             lt_prog_compiler_pic_CXX='-fpic'
14638             lt_prog_compiler_static_CXX='-Bstatic'
14639             ;;
14640           cxx*)
14641             # Compaq C++
14642             # Make sure the PIC flag is empty.  It appears that all Alpha
14643             # Linux and Compaq Tru64 Unix objects are PIC.
14644             lt_prog_compiler_pic_CXX=
14645             lt_prog_compiler_static_CXX='-non_shared'
14646             ;;
14647           xlc* | xlC*)
14648             # IBM XL 8.0 on PPC
14649             lt_prog_compiler_wl_CXX='-Wl,'
14650             lt_prog_compiler_pic_CXX='-qpic'
14651             lt_prog_compiler_static_CXX='-qstaticlink'
14652             ;;
14653           *)
14654             case `$CC -V 2>&1 | sed 5q` in
14655             *Sun\ C*)
14656               # Sun C++ 5.9
14657               lt_prog_compiler_pic_CXX='-KPIC'
14658               lt_prog_compiler_static_CXX='-Bstatic'
14659               lt_prog_compiler_wl_CXX='-Qoption ld '
14660               ;;
14661             esac
14662             ;;
14663         esac
14664         ;;
14665       lynxos*)
14666         ;;
14667       m88k*)
14668         ;;
14669       mvs*)
14670         case $cc_basename in
14671           cxx*)
14672             lt_prog_compiler_pic_CXX='-W c,exportall'
14673             ;;
14674           *)
14675             ;;
14676         esac
14677         ;;
14678       netbsd*)
14679         ;;
14680       *qnx* | *nto*)
14681         # QNX uses GNU C++, but need to define -shared option too, otherwise
14682         # it will coredump.
14683         lt_prog_compiler_pic_CXX='-fPIC -shared'
14684         ;;
14685       osf3* | osf4* | osf5*)
14686         case $cc_basename in
14687           KCC*)
14688             lt_prog_compiler_wl_CXX='--backend -Wl,'
14689             ;;
14690           RCC*)
14691             # Rational C++ 2.4.1
14692             lt_prog_compiler_pic_CXX='-pic'
14693             ;;
14694           cxx*)
14695             # Digital/Compaq C++
14696             lt_prog_compiler_wl_CXX='-Wl,'
14697             # Make sure the PIC flag is empty.  It appears that all Alpha
14698             # Linux and Compaq Tru64 Unix objects are PIC.
14699             lt_prog_compiler_pic_CXX=
14700             lt_prog_compiler_static_CXX='-non_shared'
14701             ;;
14702           *)
14703             ;;
14704         esac
14705         ;;
14706       psos*)
14707         ;;
14708       solaris*)
14709         case $cc_basename in
14710           CC*)
14711             # Sun C++ 4.2, 5.x and Centerline C++
14712             lt_prog_compiler_pic_CXX='-KPIC'
14713             lt_prog_compiler_static_CXX='-Bstatic'
14714             lt_prog_compiler_wl_CXX='-Qoption ld '
14715             ;;
14716           gcx*)
14717             # Green Hills C++ Compiler
14718             lt_prog_compiler_pic_CXX='-PIC'
14719             ;;
14720           *)
14721             ;;
14722         esac
14723         ;;
14724       sunos4*)
14725         case $cc_basename in
14726           CC*)
14727             # Sun C++ 4.x
14728             lt_prog_compiler_pic_CXX='-pic'
14729             lt_prog_compiler_static_CXX='-Bstatic'
14730             ;;
14731           lcc*)
14732             # Lucid
14733             lt_prog_compiler_pic_CXX='-pic'
14734             ;;
14735           *)
14736             ;;
14737         esac
14738         ;;
14739       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14740         case $cc_basename in
14741           CC*)
14742             lt_prog_compiler_wl_CXX='-Wl,'
14743             lt_prog_compiler_pic_CXX='-KPIC'
14744             lt_prog_compiler_static_CXX='-Bstatic'
14745             ;;
14746         esac
14747         ;;
14748       tandem*)
14749         case $cc_basename in
14750           NCC*)
14751             # NonStop-UX NCC 3.20
14752             lt_prog_compiler_pic_CXX='-KPIC'
14753             ;;
14754           *)
14755             ;;
14756         esac
14757         ;;
14758       vxworks*)
14759         ;;
14760       *)
14761         lt_prog_compiler_can_build_shared_CXX=no
14762         ;;
14763     esac
14764   fi
14765
14766 case $host_os in
14767   # For platforms which do not support PIC, -DPIC is meaningless:
14768   *djgpp*)
14769     lt_prog_compiler_pic_CXX=
14770     ;;
14771   *)
14772     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14773     ;;
14774 esac
14775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14776 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14777
14778
14779
14780 #
14781 # Check to make sure the PIC flag actually works.
14782 #
14783 if test -n "$lt_prog_compiler_pic_CXX"; then
14784   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14786 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14787   echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789   lt_cv_prog_compiler_pic_works_CXX=no
14790    ac_outfile=conftest.$ac_objext
14791    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14792    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14793    # Insert the option either (1) after the last *FLAGS variable, or
14794    # (2) before a word containing "conftest.", or (3) at the end.
14795    # Note that $ac_compile itself does not contain backslashes and begins
14796    # with a dollar sign (not a hyphen), so the echo should work correctly.
14797    # The option is referenced via a variable to avoid confusing sed.
14798    lt_compile=`echo "$ac_compile" | $SED \
14799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14801    -e 's:$: $lt_compiler_flag:'`
14802    (eval echo "\"\$as_me:14802: $lt_compile\"" >&5)
14803    (eval "$lt_compile" 2>conftest.err)
14804    ac_status=$?
14805    cat conftest.err >&5
14806    echo "$as_me:14806: \$? = $ac_status" >&5
14807    if (exit $ac_status) && test -s "$ac_outfile"; then
14808      # The compiler can only warn and ignore the option if not recognized
14809      # So say no if there are warnings other than the usual output.
14810      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14811      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14812      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14813        lt_cv_prog_compiler_pic_works_CXX=yes
14814      fi
14815    fi
14816    $RM conftest*
14817
14818 fi
14819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14820 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14821
14822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14823     case $lt_prog_compiler_pic_CXX in
14824      "" | " "*) ;;
14825      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14826      esac
14827 else
14828     lt_prog_compiler_pic_CXX=
14829      lt_prog_compiler_can_build_shared_CXX=no
14830 fi
14831
14832 fi
14833
14834
14835
14836 #
14837 # Check to make sure the static flag actually works.
14838 #
14839 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14840 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14841 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14842 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845   lt_cv_prog_compiler_static_works_CXX=no
14846    save_LDFLAGS="$LDFLAGS"
14847    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14848    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14849    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14850      # The linker can only warn and ignore the option if not recognized
14851      # So say no if there are warnings
14852      if test -s conftest.err; then
14853        # Append any errors to the config.log.
14854        cat conftest.err 1>&5
14855        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14856        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14857        if diff conftest.exp conftest.er2 >/dev/null; then
14858          lt_cv_prog_compiler_static_works_CXX=yes
14859        fi
14860      else
14861        lt_cv_prog_compiler_static_works_CXX=yes
14862      fi
14863    fi
14864    $RM -r conftest*
14865    LDFLAGS="$save_LDFLAGS"
14866
14867 fi
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14870
14871 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14872     :
14873 else
14874     lt_prog_compiler_static_CXX=
14875 fi
14876
14877
14878
14879
14880     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885   lt_cv_prog_compiler_c_o_CXX=no
14886    $RM -r conftest 2>/dev/null
14887    mkdir conftest
14888    cd conftest
14889    mkdir out
14890    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14891
14892    lt_compiler_flag="-o out/conftest2.$ac_objext"
14893    # Insert the option either (1) after the last *FLAGS variable, or
14894    # (2) before a word containing "conftest.", or (3) at the end.
14895    # Note that $ac_compile itself does not contain backslashes and begins
14896    # with a dollar sign (not a hyphen), so the echo should work correctly.
14897    lt_compile=`echo "$ac_compile" | $SED \
14898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900    -e 's:$: $lt_compiler_flag:'`
14901    (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902    (eval "$lt_compile" 2>out/conftest.err)
14903    ac_status=$?
14904    cat out/conftest.err >&5
14905    echo "$as_me:14905: \$? = $ac_status" >&5
14906    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14907    then
14908      # The compiler can only warn and ignore the option if not recognized
14909      # So say no if there are warnings
14910      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14911      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14912      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14913        lt_cv_prog_compiler_c_o_CXX=yes
14914      fi
14915    fi
14916    chmod u+w . 2>&5
14917    $RM conftest*
14918    # SGI C++ compiler will create directory out/ii_files/ for
14919    # template instantiation
14920    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14921    $RM out/* && rmdir out
14922    cd ..
14923    $RM -r conftest
14924    $RM conftest*
14925
14926 fi
14927 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14929
14930
14931
14932     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14934 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14935   echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937   lt_cv_prog_compiler_c_o_CXX=no
14938    $RM -r conftest 2>/dev/null
14939    mkdir conftest
14940    cd conftest
14941    mkdir out
14942    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14943
14944    lt_compiler_flag="-o out/conftest2.$ac_objext"
14945    # Insert the option either (1) after the last *FLAGS variable, or
14946    # (2) before a word containing "conftest.", or (3) at the end.
14947    # Note that $ac_compile itself does not contain backslashes and begins
14948    # with a dollar sign (not a hyphen), so the echo should work correctly.
14949    lt_compile=`echo "$ac_compile" | $SED \
14950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14952    -e 's:$: $lt_compiler_flag:'`
14953    (eval echo "\"\$as_me:14953: $lt_compile\"" >&5)
14954    (eval "$lt_compile" 2>out/conftest.err)
14955    ac_status=$?
14956    cat out/conftest.err >&5
14957    echo "$as_me:14957: \$? = $ac_status" >&5
14958    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14959    then
14960      # The compiler can only warn and ignore the option if not recognized
14961      # So say no if there are warnings
14962      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14963      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14964      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14965        lt_cv_prog_compiler_c_o_CXX=yes
14966      fi
14967    fi
14968    chmod u+w . 2>&5
14969    $RM conftest*
14970    # SGI C++ compiler will create directory out/ii_files/ for
14971    # template instantiation
14972    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14973    $RM out/* && rmdir out
14974    cd ..
14975    $RM -r conftest
14976    $RM conftest*
14977
14978 fi
14979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14981
14982
14983
14984
14985 hard_links="nottested"
14986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14987   # do not overwrite the value of need_locks provided by the user
14988   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14990   hard_links=yes
14991   $RM conftest*
14992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993   touch conftest.a
14994   ln conftest.a conftest.b 2>&5 || hard_links=no
14995   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14996   { echo "$as_me:$LINENO: result: $hard_links" >&5
14997 echo "${ECHO_T}$hard_links" >&6; }
14998   if test "$hard_links" = no; then
14999     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15001     need_locks=warn
15002   fi
15003 else
15004   need_locks=no
15005 fi
15006
15007
15008
15009     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15011
15012   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15013   case $host_os in
15014   aix[4-9]*)
15015     # If we're using GNU nm, then we don't want the "-C" option.
15016     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15017     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15018       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'
15019     else
15020       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'
15021     fi
15022     ;;
15023   pw32*)
15024     export_symbols_cmds_CXX="$ltdll_cmds"
15025   ;;
15026   cygwin* | mingw* | cegcc*)
15027     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'
15028   ;;
15029   *)
15030     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15031   ;;
15032   esac
15033   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15034
15035 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15036 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15037 test "$ld_shlibs_CXX" = no && can_build_shared=no
15038
15039 with_gnu_ld_CXX=$with_gnu_ld
15040
15041
15042
15043
15044
15045
15046 #
15047 # Do we need to explicitly link libc?
15048 #
15049 case "x$archive_cmds_need_lc_CXX" in
15050 x|xyes)
15051   # Assume -lc should be added
15052   archive_cmds_need_lc_CXX=yes
15053
15054   if test "$enable_shared" = yes && test "$GCC" = yes; then
15055     case $archive_cmds_CXX in
15056     *'~'*)
15057       # FIXME: we may have to deal with multi-command sequences.
15058       ;;
15059     '$CC '*)
15060       # Test whether the compiler implicitly links with -lc since on some
15061       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15062       # to ld, don't add -lc before -lgcc.
15063       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15065       $RM conftest*
15066       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15067
15068       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069   (eval $ac_compile) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } 2>conftest.err; then
15073         soname=conftest
15074         lib=conftest
15075         libobjs=conftest.$ac_objext
15076         deplibs=
15077         wl=$lt_prog_compiler_wl_CXX
15078         pic_flag=$lt_prog_compiler_pic_CXX
15079         compiler_flags=-v
15080         linker_flags=-v
15081         verstring=
15082         output_objdir=.
15083         libname=conftest
15084         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15085         allow_undefined_flag_CXX=
15086         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15087   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }
15091         then
15092           archive_cmds_need_lc_CXX=no
15093         else
15094           archive_cmds_need_lc_CXX=yes
15095         fi
15096         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15097       else
15098         cat conftest.err 1>&5
15099       fi
15100       $RM conftest*
15101       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15102 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15103       ;;
15104     esac
15105   fi
15106   ;;
15107 esac
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15174
15175 library_names_spec=
15176 libname_spec='lib$name'
15177 soname_spec=
15178 shrext_cmds=".so"
15179 postinstall_cmds=
15180 postuninstall_cmds=
15181 finish_cmds=
15182 finish_eval=
15183 shlibpath_var=
15184 shlibpath_overrides_runpath=unknown
15185 version_type=none
15186 dynamic_linker="$host_os ld.so"
15187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15188 need_lib_prefix=unknown
15189 hardcode_into_libs=no
15190
15191 # when you set need_version to no, make sure it does not cause -set_version
15192 # flags to be left without arguments
15193 need_version=unknown
15194
15195 case $host_os in
15196 aix3*)
15197   version_type=linux
15198   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15199   shlibpath_var=LIBPATH
15200
15201   # AIX 3 has no versioning support, so we append a major version to the name.
15202   soname_spec='${libname}${release}${shared_ext}$major'
15203   ;;
15204
15205 aix[4-9]*)
15206   version_type=linux
15207   need_lib_prefix=no
15208   need_version=no
15209   hardcode_into_libs=yes
15210   if test "$host_cpu" = ia64; then
15211     # AIX 5 supports IA64
15212     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15213     shlibpath_var=LD_LIBRARY_PATH
15214   else
15215     # With GCC up to 2.95.x, collect2 would create an import file
15216     # for dependence libraries.  The import file would start with
15217     # the line `#! .'.  This would cause the generated library to
15218     # depend on `.', always an invalid library.  This was fixed in
15219     # development snapshots of GCC prior to 3.0.
15220     case $host_os in
15221       aix4 | aix4.[01] | aix4.[01].*)
15222       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15223            echo ' yes '
15224            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15225         :
15226       else
15227         can_build_shared=no
15228       fi
15229       ;;
15230     esac
15231     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15232     # soname into executable. Probably we can add versioning support to
15233     # collect2, so additional links can be useful in future.
15234     if test "$aix_use_runtimelinking" = yes; then
15235       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15236       # instead of lib<name>.a to let people know that these are not
15237       # typical AIX shared libraries.
15238       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239     else
15240       # We preserve .a as extension for shared libraries through AIX4.2
15241       # and later when we are not doing run time linking.
15242       library_names_spec='${libname}${release}.a $libname.a'
15243       soname_spec='${libname}${release}${shared_ext}$major'
15244     fi
15245     shlibpath_var=LIBPATH
15246   fi
15247   ;;
15248
15249 amigaos*)
15250   case $host_cpu in
15251   powerpc)
15252     # Since July 2007 AmigaOS4 officially supports .so libraries.
15253     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255     ;;
15256   m68k)
15257     library_names_spec='$libname.ixlibrary $libname.a'
15258     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15259     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'
15260     ;;
15261   esac
15262   ;;
15263
15264 beos*)
15265   library_names_spec='${libname}${shared_ext}'
15266   dynamic_linker="$host_os ld.so"
15267   shlibpath_var=LIBRARY_PATH
15268   ;;
15269
15270 bsdi[45]*)
15271   version_type=linux
15272   need_version=no
15273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274   soname_spec='${libname}${release}${shared_ext}$major'
15275   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15276   shlibpath_var=LD_LIBRARY_PATH
15277   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15278   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15279   # the default ld.so.conf also contains /usr/contrib/lib and
15280   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15281   # libtool to hard-code these into programs
15282   ;;
15283
15284 cygwin* | mingw* | pw32* | cegcc*)
15285   version_type=windows
15286   shrext_cmds=".dll"
15287   need_version=no
15288   need_lib_prefix=no
15289
15290   case $GCC,$host_os in
15291   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15292     library_names_spec='$libname.dll.a'
15293     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15294     postinstall_cmds='base_file=`basename \${file}`~
15295       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15296       dldir=$destdir/`dirname \$dlpath`~
15297       test -d \$dldir || mkdir -p \$dldir~
15298       $install_prog $dir/$dlname \$dldir/$dlname~
15299       chmod a+x \$dldir/$dlname~
15300       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15301         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15302       fi'
15303     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15304       dlpath=$dir/\$dldll~
15305        $RM \$dlpath'
15306     shlibpath_overrides_runpath=yes
15307
15308     case $host_os in
15309     cygwin*)
15310       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15311       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15312       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15313       ;;
15314     mingw* | cegcc*)
15315       # MinGW DLLs use traditional 'lib' prefix
15316       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15317       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15318       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15319         # It is most probably a Windows format PATH printed by
15320         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15321         # path with ; separators, and with drive letters. We can handle the
15322         # drive letters (cygwin fileutils understands them), so leave them,
15323         # especially as we might pass files found there to a mingw objdump,
15324         # which wouldn't understand a cygwinified path. Ahh.
15325         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15326       else
15327         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15328       fi
15329       ;;
15330     pw32*)
15331       # pw32 DLLs use 'pw' prefix rather than 'lib'
15332       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15333       ;;
15334     esac
15335     ;;
15336
15337   *)
15338     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15339     ;;
15340   esac
15341   dynamic_linker='Win32 ld.exe'
15342   # FIXME: first we should search . and the directory the executable is in
15343   shlibpath_var=PATH
15344   ;;
15345
15346 darwin* | rhapsody*)
15347   dynamic_linker="$host_os dyld"
15348   version_type=darwin
15349   need_lib_prefix=no
15350   need_version=no
15351   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15352   soname_spec='${libname}${release}${major}$shared_ext'
15353   shlibpath_overrides_runpath=yes
15354   shlibpath_var=DYLD_LIBRARY_PATH
15355   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15356
15357   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15358   ;;
15359
15360 dgux*)
15361   version_type=linux
15362   need_lib_prefix=no
15363   need_version=no
15364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15365   soname_spec='${libname}${release}${shared_ext}$major'
15366   shlibpath_var=LD_LIBRARY_PATH
15367   ;;
15368
15369 freebsd1*)
15370   dynamic_linker=no
15371   ;;
15372
15373 freebsd* | dragonfly*)
15374   # DragonFly does not have aout.  When/if they implement a new
15375   # versioning mechanism, adjust this.
15376   if test -x /usr/bin/objformat; then
15377     objformat=`/usr/bin/objformat`
15378   else
15379     case $host_os in
15380     freebsd[123]*) objformat=aout ;;
15381     *) objformat=elf ;;
15382     esac
15383   fi
15384   version_type=freebsd-$objformat
15385   case $version_type in
15386     freebsd-elf*)
15387       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15388       need_version=no
15389       need_lib_prefix=no
15390       ;;
15391     freebsd-*)
15392       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15393       need_version=yes
15394       ;;
15395   esac
15396   shlibpath_var=LD_LIBRARY_PATH
15397   case $host_os in
15398   freebsd2*)
15399     shlibpath_overrides_runpath=yes
15400     ;;
15401   freebsd3.[01]* | freebsdelf3.[01]*)
15402     shlibpath_overrides_runpath=yes
15403     hardcode_into_libs=yes
15404     ;;
15405   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15406   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15407     shlibpath_overrides_runpath=no
15408     hardcode_into_libs=yes
15409     ;;
15410   *) # from 4.6 on, and DragonFly
15411     shlibpath_overrides_runpath=yes
15412     hardcode_into_libs=yes
15413     ;;
15414   esac
15415   ;;
15416
15417 gnu*)
15418   version_type=linux
15419   need_lib_prefix=no
15420   need_version=no
15421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15422   soname_spec='${libname}${release}${shared_ext}$major'
15423   shlibpath_var=LD_LIBRARY_PATH
15424   hardcode_into_libs=yes
15425   ;;
15426
15427 hpux9* | hpux10* | hpux11*)
15428   # Give a soname corresponding to the major version so that dld.sl refuses to
15429   # link against other versions.
15430   version_type=sunos
15431   need_lib_prefix=no
15432   need_version=no
15433   case $host_cpu in
15434   ia64*)
15435     shrext_cmds='.so'
15436     hardcode_into_libs=yes
15437     dynamic_linker="$host_os dld.so"
15438     shlibpath_var=LD_LIBRARY_PATH
15439     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441     soname_spec='${libname}${release}${shared_ext}$major'
15442     if test "X$HPUX_IA64_MODE" = X32; then
15443       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15444     else
15445       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15446     fi
15447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15448     ;;
15449   hppa*64*)
15450     shrext_cmds='.sl'
15451     hardcode_into_libs=yes
15452     dynamic_linker="$host_os dld.sl"
15453     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15454     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456     soname_spec='${libname}${release}${shared_ext}$major'
15457     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15458     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15459     ;;
15460   *)
15461     shrext_cmds='.sl'
15462     dynamic_linker="$host_os dld.sl"
15463     shlibpath_var=SHLIB_PATH
15464     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466     soname_spec='${libname}${release}${shared_ext}$major'
15467     ;;
15468   esac
15469   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15470   postinstall_cmds='chmod 555 $lib'
15471   ;;
15472
15473 interix[3-9]*)
15474   version_type=linux
15475   need_lib_prefix=no
15476   need_version=no
15477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478   soname_spec='${libname}${release}${shared_ext}$major'
15479   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15480   shlibpath_var=LD_LIBRARY_PATH
15481   shlibpath_overrides_runpath=no
15482   hardcode_into_libs=yes
15483   ;;
15484
15485 irix5* | irix6* | nonstopux*)
15486   case $host_os in
15487     nonstopux*) version_type=nonstopux ;;
15488     *)
15489         if test "$lt_cv_prog_gnu_ld" = yes; then
15490                 version_type=linux
15491         else
15492                 version_type=irix
15493         fi ;;
15494   esac
15495   need_lib_prefix=no
15496   need_version=no
15497   soname_spec='${libname}${release}${shared_ext}$major'
15498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15499   case $host_os in
15500   irix5* | nonstopux*)
15501     libsuff= shlibsuff=
15502     ;;
15503   *)
15504     case $LD in # libtool.m4 will add one of these switches to LD
15505     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15506       libsuff= shlibsuff= libmagic=32-bit;;
15507     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15508       libsuff=32 shlibsuff=N32 libmagic=N32;;
15509     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15510       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15511     *) libsuff= shlibsuff= libmagic=never-match;;
15512     esac
15513     ;;
15514   esac
15515   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15516   shlibpath_overrides_runpath=no
15517   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15518   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15519   hardcode_into_libs=yes
15520   ;;
15521
15522 # No shared lib support for Linux oldld, aout, or coff.
15523 linux*oldld* | linux*aout* | linux*coff*)
15524   dynamic_linker=no
15525   ;;
15526
15527 # This must be Linux ELF.
15528 linux* | k*bsd*-gnu)
15529   version_type=linux
15530   need_lib_prefix=no
15531   need_version=no
15532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533   soname_spec='${libname}${release}${shared_ext}$major'
15534   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535   shlibpath_var=LD_LIBRARY_PATH
15536   shlibpath_overrides_runpath=no
15537   # Some binutils ld are patched to set DT_RUNPATH
15538   save_LDFLAGS=$LDFLAGS
15539   save_libdir=$libdir
15540   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15541        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15542   cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548
15549 int
15550 main ()
15551 {
15552
15553   ;
15554   return 0;
15555 }
15556 _ACEOF
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
15559 case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_link") 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } && {
15571          test -z "$ac_cxx_werror_flag" ||
15572          test ! -s conftest.err
15573        } && test -s conftest$ac_exeext &&
15574        $as_test_x conftest$ac_exeext; then
15575   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15576   shlibpath_overrides_runpath=yes
15577 fi
15578
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583
15584 fi
15585
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587       conftest$ac_exeext conftest.$ac_ext
15588   LDFLAGS=$save_LDFLAGS
15589   libdir=$save_libdir
15590
15591   # This implies no fast_install, which is unacceptable.
15592   # Some rework will be needed to allow for fast_install
15593   # before this can be enabled.
15594   hardcode_into_libs=yes
15595
15596   # Append ld.so.conf contents to the search path
15597   if test -f /etc/ld.so.conf; then
15598     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' ' '`
15599     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15600   fi
15601
15602   # We used to test for /lib/ld.so.1 and disable shared libraries on
15603   # powerpc, because MkLinux only supported shared libraries with the
15604   # GNU dynamic linker.  Since this was broken with cross compilers,
15605   # most powerpc-linux boxes support dynamic linking these days and
15606   # people can always --disable-shared, the test was removed, and we
15607   # assume the GNU/Linux dynamic linker is in use.
15608   dynamic_linker='GNU/Linux ld.so'
15609   ;;
15610
15611 netbsd*)
15612   version_type=sunos
15613   need_lib_prefix=no
15614   need_version=no
15615   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15617     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15618     dynamic_linker='NetBSD (a.out) ld.so'
15619   else
15620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15621     soname_spec='${libname}${release}${shared_ext}$major'
15622     dynamic_linker='NetBSD ld.elf_so'
15623   fi
15624   shlibpath_var=LD_LIBRARY_PATH
15625   shlibpath_overrides_runpath=yes
15626   hardcode_into_libs=yes
15627   ;;
15628
15629 newsos6)
15630   version_type=linux
15631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632   shlibpath_var=LD_LIBRARY_PATH
15633   shlibpath_overrides_runpath=yes
15634   ;;
15635
15636 *nto* | *qnx*)
15637   version_type=qnx
15638   need_lib_prefix=no
15639   need_version=no
15640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641   soname_spec='${libname}${release}${shared_ext}$major'
15642   shlibpath_var=LD_LIBRARY_PATH
15643   shlibpath_overrides_runpath=no
15644   hardcode_into_libs=yes
15645   dynamic_linker='ldqnx.so'
15646   ;;
15647
15648 openbsd*)
15649   version_type=sunos
15650   sys_lib_dlsearch_path_spec="/usr/lib"
15651   need_lib_prefix=no
15652   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15653   case $host_os in
15654     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15655     *)                          need_version=no  ;;
15656   esac
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15661     case $host_os in
15662       openbsd2.[89] | openbsd2.[89].*)
15663         shlibpath_overrides_runpath=no
15664         ;;
15665       *)
15666         shlibpath_overrides_runpath=yes
15667         ;;
15668       esac
15669   else
15670     shlibpath_overrides_runpath=yes
15671   fi
15672   ;;
15673
15674 os2*)
15675   libname_spec='$name'
15676   shrext_cmds=".dll"
15677   need_lib_prefix=no
15678   library_names_spec='$libname${shared_ext} $libname.a'
15679   dynamic_linker='OS/2 ld.exe'
15680   shlibpath_var=LIBPATH
15681   ;;
15682
15683 osf3* | osf4* | osf5*)
15684   version_type=osf
15685   need_lib_prefix=no
15686   need_version=no
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689   shlibpath_var=LD_LIBRARY_PATH
15690   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15691   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15692   ;;
15693
15694 rdos*)
15695   dynamic_linker=no
15696   ;;
15697
15698 solaris*)
15699   version_type=linux
15700   need_lib_prefix=no
15701   need_version=no
15702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703   soname_spec='${libname}${release}${shared_ext}$major'
15704   shlibpath_var=LD_LIBRARY_PATH
15705   shlibpath_overrides_runpath=yes
15706   hardcode_into_libs=yes
15707   # ldd complains unless libraries are executable
15708   postinstall_cmds='chmod +x $lib'
15709   ;;
15710
15711 sunos4*)
15712   version_type=sunos
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   shlibpath_overrides_runpath=yes
15717   if test "$with_gnu_ld" = yes; then
15718     need_lib_prefix=no
15719   fi
15720   need_version=yes
15721   ;;
15722
15723 sysv4 | sysv4.3*)
15724   version_type=linux
15725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726   soname_spec='${libname}${release}${shared_ext}$major'
15727   shlibpath_var=LD_LIBRARY_PATH
15728   case $host_vendor in
15729     sni)
15730       shlibpath_overrides_runpath=no
15731       need_lib_prefix=no
15732       runpath_var=LD_RUN_PATH
15733       ;;
15734     siemens)
15735       need_lib_prefix=no
15736       ;;
15737     motorola)
15738       need_lib_prefix=no
15739       need_version=no
15740       shlibpath_overrides_runpath=no
15741       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15742       ;;
15743   esac
15744   ;;
15745
15746 sysv4*MP*)
15747   if test -d /usr/nec ;then
15748     version_type=linux
15749     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15750     soname_spec='$libname${shared_ext}.$major'
15751     shlibpath_var=LD_LIBRARY_PATH
15752   fi
15753   ;;
15754
15755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15756   version_type=freebsd-elf
15757   need_lib_prefix=no
15758   need_version=no
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   shlibpath_overrides_runpath=yes
15763   hardcode_into_libs=yes
15764   if test "$with_gnu_ld" = yes; then
15765     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15766   else
15767     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15768     case $host_os in
15769       sco3.2v5*)
15770         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15771         ;;
15772     esac
15773   fi
15774   sys_lib_dlsearch_path_spec='/usr/lib'
15775   ;;
15776
15777 tpf*)
15778   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15779   version_type=linux
15780   need_lib_prefix=no
15781   need_version=no
15782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783   shlibpath_var=LD_LIBRARY_PATH
15784   shlibpath_overrides_runpath=no
15785   hardcode_into_libs=yes
15786   ;;
15787
15788 uts4*)
15789   version_type=linux
15790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791   soname_spec='${libname}${release}${shared_ext}$major'
15792   shlibpath_var=LD_LIBRARY_PATH
15793   ;;
15794
15795 *)
15796   dynamic_linker=no
15797   ;;
15798 esac
15799 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15800 echo "${ECHO_T}$dynamic_linker" >&6; }
15801 test "$dynamic_linker" = no && can_build_shared=no
15802
15803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15804 if test "$GCC" = yes; then
15805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15806 fi
15807
15808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15809   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15810 fi
15811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15812   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15813 fi
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15852 hardcode_action_CXX=
15853 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15854    test -n "$runpath_var_CXX" ||
15855    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15856
15857   # We can hardcode non-existent directories.
15858   if test "$hardcode_direct_CXX" != no &&
15859      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15860      # have to relink, otherwise we might link with an installed library
15861      # when we should be linking with a yet-to-be-installed one
15862      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15863      test "$hardcode_minus_L_CXX" != no; then
15864     # Linking always hardcodes the temporary library directory.
15865     hardcode_action_CXX=relink
15866   else
15867     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15868     hardcode_action_CXX=immediate
15869   fi
15870 else
15871   # We cannot hardcode anything, or else we can only hardcode existing
15872   # directories.
15873   hardcode_action_CXX=unsupported
15874 fi
15875 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15876 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15877
15878 if test "$hardcode_action_CXX" = relink ||
15879    test "$inherit_rpath_CXX" = yes; then
15880   # Fast installation is not supported
15881   enable_fast_install=no
15882 elif test "$shlibpath_overrides_runpath" = yes ||
15883      test "$enable_shared" = no; then
15884   # Fast installation is not necessary
15885   enable_fast_install=needless
15886 fi
15887
15888
15889
15890
15891
15892
15893
15894   fi # test -n "$compiler"
15895
15896   CC=$lt_save_CC
15897   LDCXX=$LD
15898   LD=$lt_save_LD
15899   GCC=$lt_save_GCC
15900   with_gnu_ld=$lt_save_with_gnu_ld
15901   lt_cv_path_LDCXX=$lt_cv_path_LD
15902   lt_cv_path_LD=$lt_save_path_LD
15903   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15904   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15905 fi # test "$_lt_caught_CXX_error" != yes
15906
15907 ac_ext=c
15908 ac_cpp='$CPP $CPPFLAGS'
15909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925         ac_config_commands="$ac_config_commands libtool"
15926
15927
15928
15929
15930 # Only expand once:
15931
15932
15933
15934
15935 if test x$use_libtool != xno; then
15936    DEFAULT_OBJECT_TYPE=".lo"
15937    DEFAULT_ARCHIVE_TYPE=".la"
15938    DEFAULT_SHARED_OBJECT_TYPE=".la"
15939    LIBTOOL="\$(LIBTOOL)"
15940    LIBTOOL_INSTALL_TARGET="libtool-install"
15941    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15942    LIBTOOL_CLEAN_TARGET="libtool-clean"
15943    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15944 else
15945    DEFAULT_OBJECT_TYPE=".o"
15946    DEFAULT_ARCHIVE_TYPE=".a"
15947    DEFAULT_SHARED_OBJECT_TYPE=".so"
15948    LIBTOOL="# \$(LIBTOOL)"
15949    LIBTOOL_INSTALL_TARGET=""
15950    LIBTOOL_UNINSTALL_TARGET=""
15951    LIBTOOL_CLEAN_TARGET=""
15952    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15953 fi
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964 # Check whether --enable-includes was given.
15965 if test "${enable_includes+set}" = set; then
15966   enableval=$enable_includes;
15967        if test x$enableval = xyes; then
15968           install_includes=yes
15969        fi
15970
15971
15972 fi
15973
15974
15975
15976 if test x$use_libtool != xno -a x$install_includes = xyes; then
15977    INCLUDE_INSTALL_TARGET="install-includes"
15978    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15979 else
15980    INCLUDE_INSTALL_TARGET=""
15981    INCLUDE_UNINSTALL_TARGET=""
15982 fi
15983
15984
15985
15986
15987 { echo "$as_me:$LINENO: checking host system type" >&5
15988 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15989 if test "${ac_cv_host+set}" = set; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   if test "x$host_alias" = x; then
15993   ac_cv_host=$ac_cv_build
15994 else
15995   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15996     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15998    { (exit 1); exit 1; }; }
15999 fi
16000
16001 fi
16002 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16003 echo "${ECHO_T}$ac_cv_host" >&6; }
16004 case $ac_cv_host in
16005 *-*-*) ;;
16006 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16007 echo "$as_me: error: invalid value of canonical host" >&2;}
16008    { (exit 1); exit 1; }; };;
16009 esac
16010 host=$ac_cv_host
16011 ac_save_IFS=$IFS; IFS='-'
16012 set x $ac_cv_host
16013 shift
16014 host_cpu=$1
16015 host_vendor=$2
16016 shift; shift
16017 # Remember, the first character of IFS is used to create $*,
16018 # except with old shells:
16019 host_os=$*
16020 IFS=$ac_save_IFS
16021 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16022
16023
16024 case $host_os in
16025   *cygwin* ) CYGWIN=yes;;
16026          * ) CYGWIN=no;;
16027 esac
16028
16029 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16030 then
16031
16032
16033 if $TRUEPRG; then
16034   HAVE_SUN_OS_TRUE=
16035   HAVE_SUN_OS_FALSE='#'
16036 else
16037   HAVE_SUN_OS_TRUE='#'
16038   HAVE_SUN_OS_FALSE=
16039 fi
16040         cat >>confdefs.h <<\_ACEOF
16041 #define HAVE_SUN_OS 1
16042 _ACEOF
16043
16044 else
16045
16046
16047 if $FALSEPRG; then
16048   HAVE_SUN_OS_TRUE=
16049   HAVE_SUN_OS_FALSE='#'
16050 else
16051   HAVE_SUN_OS_TRUE='#'
16052   HAVE_SUN_OS_FALSE=
16053 fi
16054 fi
16055
16056 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16057 then
16058
16059
16060 if $TRUEPRG; then
16061   HAVE_OSF1_OS_TRUE=
16062   HAVE_OSF1_OS_FALSE='#'
16063 else
16064   HAVE_OSF1_OS_TRUE='#'
16065   HAVE_OSF1_OS_FALSE=
16066 fi
16067         cat >>confdefs.h <<\_ACEOF
16068 #define HAVE_OSF1_OS 1
16069 _ACEOF
16070
16071 else
16072
16073
16074 if $FALSEPRG; then
16075   HAVE_OSF1_OS_TRUE=
16076   HAVE_OSF1_OS_FALSE='#'
16077 else
16078   HAVE_OSF1_OS_TRUE='#'
16079   HAVE_OSF1_OS_FALSE=
16080 fi
16081 fi
16082
16083 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16084 then
16085
16086
16087 if $TRUEPRG; then
16088   HAVE_AIX_OS_TRUE=
16089   HAVE_AIX_OS_FALSE='#'
16090 else
16091   HAVE_AIX_OS_TRUE='#'
16092   HAVE_AIX_OS_FALSE=
16093 fi
16094         cat >>confdefs.h <<\_ACEOF
16095 #define HAVE_AIX_OS 1
16096 _ACEOF
16097
16098 else
16099
16100
16101 if $FALSEPRG; then
16102   HAVE_AIX_OS_TRUE=
16103   HAVE_AIX_OS_FALSE='#'
16104 else
16105   HAVE_AIX_OS_TRUE='#'
16106   HAVE_AIX_OS_FALSE=
16107 fi
16108 fi
16109
16110 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16111 then
16112
16113
16114 if $TRUEPRG; then
16115   HAVE_HPUX_OS_TRUE=
16116   HAVE_HPUX_OS_FALSE='#'
16117 else
16118   HAVE_HPUX_OS_TRUE='#'
16119   HAVE_HPUX_OS_FALSE=
16120 fi
16121         cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_HPUX_OS 1
16123 _ACEOF
16124
16125 else
16126
16127
16128 if $FALSEPRG; then
16129   HAVE_HPUX_OS_TRUE=
16130   HAVE_HPUX_OS_FALSE='#'
16131 else
16132   HAVE_HPUX_OS_TRUE='#'
16133   HAVE_HPUX_OS_FALSE=
16134 fi
16135 fi
16136
16137 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16138 then
16139
16140
16141 if $TRUEPRG; then
16142   HAVE_LINUX_OS_TRUE=
16143   HAVE_LINUX_OS_FALSE='#'
16144 else
16145   HAVE_LINUX_OS_TRUE='#'
16146   HAVE_LINUX_OS_FALSE=
16147 fi
16148         cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_LINUX_OS 1
16150 _ACEOF
16151
16152 else
16153
16154
16155 if $FALSEPRG; then
16156   HAVE_LINUX_OS_TRUE=
16157   HAVE_LINUX_OS_FALSE='#'
16158 else
16159   HAVE_LINUX_OS_TRUE='#'
16160   HAVE_LINUX_OS_FALSE=
16161 fi
16162 fi
16163
16164 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16165 then
16166
16167
16168 if $TRUEPRG; then
16169   HAVE_FREEBSD_OS_TRUE=
16170   HAVE_FREEBSD_OS_FALSE='#'
16171 else
16172   HAVE_FREEBSD_OS_TRUE='#'
16173   HAVE_FREEBSD_OS_FALSE=
16174 fi
16175         cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_FREEBSD_OS 1
16177 _ACEOF
16178
16179 else
16180
16181
16182 if $FALSEPRG; then
16183   HAVE_FREEBSD_OS_TRUE=
16184   HAVE_FREEBSD_OS_FALSE='#'
16185 else
16186   HAVE_FREEBSD_OS_TRUE='#'
16187   HAVE_FREEBSD_OS_FALSE=
16188 fi
16189 fi
16190
16191 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16192 then
16193
16194
16195 if $TRUEPRG; then
16196   HAVE_NETBSD_OS_TRUE=
16197   HAVE_NETBSD_OS_FALSE='#'
16198 else
16199   HAVE_NETBSD_OS_TRUE='#'
16200   HAVE_NETBSD_OS_FALSE=
16201 fi
16202         cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_NETBSD_OS 1
16204 _ACEOF
16205
16206 else
16207
16208
16209 if $FALSEPRG; then
16210   HAVE_NETBSD_OS_TRUE=
16211   HAVE_NETBSD_OS_FALSE='#'
16212 else
16213   HAVE_NETBSD_OS_TRUE='#'
16214   HAVE_NETBSD_OS_FALSE=
16215 fi
16216 fi
16217
16218 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16219 then
16220
16221
16222 if $TRUEPRG; then
16223   HAVE_OPENBSD_OS_TRUE=
16224   HAVE_OPENBSD_OS_FALSE='#'
16225 else
16226   HAVE_OPENBSD_OS_TRUE='#'
16227   HAVE_OPENBSD_OS_FALSE=
16228 fi
16229         cat >>confdefs.h <<\_ACEOF
16230 #define HAVE_OPENBSD_OS 1
16231 _ACEOF
16232
16233 else
16234
16235
16236 if $FALSEPRG; then
16237   HAVE_OPENBSD_OS_TRUE=
16238   HAVE_OPENBSD_OS_FALSE='#'
16239 else
16240   HAVE_OPENBSD_OS_TRUE='#'
16241   HAVE_OPENBSD_OS_FALSE=
16242 fi
16243 fi
16244
16245 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16246 then
16247
16248
16249 if $TRUEPRG; then
16250   HAVE_BSDI_OS_TRUE=
16251   HAVE_BSDI_OS_FALSE='#'
16252 else
16253   HAVE_BSDI_OS_TRUE='#'
16254   HAVE_BSDI_OS_FALSE=
16255 fi
16256         cat >>confdefs.h <<\_ACEOF
16257 #define HAVE_BSDI_OS 1
16258 _ACEOF
16259
16260 else
16261
16262
16263 if $FALSEPRG; then
16264   HAVE_BSDI_OS_TRUE=
16265   HAVE_BSDI_OS_FALSE='#'
16266 else
16267   HAVE_BSDI_OS_TRUE='#'
16268   HAVE_BSDI_OS_FALSE=
16269 fi
16270 fi
16271
16272 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16273 then
16274
16275
16276 if $TRUEPRG; then
16277   HAVE_SGI_OS_TRUE=
16278   HAVE_SGI_OS_FALSE='#'
16279 else
16280   HAVE_SGI_OS_TRUE='#'
16281   HAVE_SGI_OS_FALSE=
16282 fi
16283         cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_SGI_OS 1
16285 _ACEOF
16286
16287 else
16288
16289
16290 if $FALSEPRG; then
16291   HAVE_SGI_OS_TRUE=
16292   HAVE_SGI_OS_FALSE='#'
16293 else
16294   HAVE_SGI_OS_TRUE='#'
16295   HAVE_SGI_OS_FALSE=
16296 fi
16297 fi
16298
16299 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16300 then
16301
16302
16303 if $TRUEPRG; then
16304   HAVE_IRIX_OS_TRUE=
16305   HAVE_IRIX_OS_FALSE='#'
16306 else
16307   HAVE_IRIX_OS_TRUE='#'
16308   HAVE_IRIX_OS_FALSE=
16309 fi
16310         cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_IRIX_OS 1
16312 _ACEOF
16313
16314 else
16315
16316
16317 if $FALSEPRG; then
16318   HAVE_IRIX_OS_TRUE=
16319   HAVE_IRIX_OS_FALSE='#'
16320 else
16321   HAVE_IRIX_OS_TRUE='#'
16322   HAVE_IRIX_OS_FALSE=
16323 fi
16324 fi
16325
16326 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16327 then
16328
16329
16330 if $TRUEPRG; then
16331   HAVE_DARWIN_OS_TRUE=
16332   HAVE_DARWIN_OS_FALSE='#'
16333 else
16334   HAVE_DARWIN_OS_TRUE='#'
16335   HAVE_DARWIN_OS_FALSE=
16336 fi
16337     cat >>confdefs.h <<\_ACEOF
16338 #define HAVE_DARWIN_OS 1
16339 _ACEOF
16340
16341 else
16342
16343
16344 if $FALSEPRG; then
16345   HAVE_DARWIN_OS_TRUE=
16346   HAVE_DARWIN_OS_FALSE='#'
16347 else
16348   HAVE_DARWIN_OS_TRUE='#'
16349   HAVE_DARWIN_OS_FALSE=
16350 fi
16351 fi
16352
16353
16354 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16355 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16356 if test "x$DISTNAME" != "x"
16357 then
16358         echo "distname set to $DISTNAME"
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16360 then
16361         DISTNAME=alpha
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16363 then
16364         DISTNAME=aix
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16366 then
16367         DISTNAME=hpux
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16369 then
16370         DISTNAME=solaris
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16372 then
16373         DISTNAME=freebsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16375 then
16376         DISTNAME=netbsd
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16378 then
16379         DISTNAME=openbsd
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16381 then
16382         DISTNAME=irix
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16384 then
16385         DISTNAME=bsdi
16386 elif test -f /etc/SuSE-release
16387 then
16388         DISTNAME=suse
16389 elif test -d /etc/SuSEconfig
16390 then
16391         DISTNAME=suse5
16392 elif test -f /etc/mandrake-release
16393 then
16394         DISTNAME=mandrake
16395 elif test -f /etc/whitebox-release
16396 then
16397        DISTNAME=redhat
16398 elif test -f /etc/redhat-release
16399 then
16400         DISTNAME=redhat
16401 elif test -f /etc/gentoo-release
16402 then
16403         DISTNAME=gentoo
16404 elif test -f /etc/debian_version
16405 then
16406         DISTNAME=debian
16407 elif test -f /etc/slackware-version
16408 then
16409         DISTNAME=slackware
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16411 then
16412     DISTNAME=darwin
16413 elif test -f /etc/engarde-version
16414 then
16415         DISTNAME=engarde
16416 elif test "$CYGWIN" = yes
16417 then
16418         DISTNAME=cygwin
16419         cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16421 _ACEOF
16422
16423 else
16424         DISTNAME=unknown
16425 fi
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16428
16429
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   cat >conftest.make <<\_ACEOF
16437 SHELL = /bin/sh
16438 all:
16439         @echo '@@@%%%=$(MAKE)=@@@%%%'
16440 _ACEOF
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443   *@@@%%%=?*=@@@%%%*)
16444     eval ac_cv_prog_make_${ac_make}_set=yes;;
16445   *)
16446     eval ac_cv_prog_make_${ac_make}_set=no;;
16447 esac
16448 rm -f conftest.make
16449 fi
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451   { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16453   SET_MAKE=
16454 else
16455   { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457   SET_MAKE="MAKE=${MAKE-make}"
16458 fi
16459
16460
16461
16462         MKINSTALLDIRS=
16463   if test -n "$ac_aux_dir"; then
16464     case "$ac_aux_dir" in
16465       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16467     esac
16468   fi
16469   if test -z "$MKINSTALLDIRS"; then
16470     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16471   fi
16472
16473
16474
16475   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477     # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479   enableval=$enable_nls; USE_NLS=$enableval
16480 else
16481   USE_NLS=yes
16482 fi
16483
16484   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16486
16487
16488
16489
16490
16491
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495   echo "#! /bin/sh" >conf$$.sh
16496   echo  "exit 0"   >>conf$$.sh
16497   chmod +x conf$$.sh
16498   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16499     PATH_SEPARATOR=';'
16500   else
16501     PATH_SEPARATOR=:
16502   fi
16503   rm -f conf$$.sh
16504 fi
16505
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16509 #! /bin/sh
16510 exit 0
16511 _ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514   ac_executable_p="test -x"
16515 else
16516   ac_executable_p="test -f"
16517 fi
16518 rm -f conf$$.file
16519
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   case "$MSGFMT" in
16528   [\\/]* | ?:[\\/]*)
16529     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16530     ;;
16531   *)
16532     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533     for ac_dir in $PATH; do
16534       IFS="$ac_save_IFS"
16535       test -z "$ac_dir" && ac_dir=.
16536       for ac_exec_ext in '' $ac_executable_extensions; do
16537         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16542             break 2
16543           fi
16544         fi
16545       done
16546     done
16547     IFS="$ac_save_IFS"
16548   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16549     ;;
16550 esac
16551 fi
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16556 else
16557   { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16559 fi
16560
16561   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   case $GMSGFMT in
16569   [\\/]* | ?:[\\/]*)
16570   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16571   ;;
16572   *)
16573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16575 do
16576   IFS=$as_save_IFS
16577   test -z "$as_dir" && as_dir=.
16578   for ac_exec_ext in '' $ac_executable_extensions; do
16579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16582     break 2
16583   fi
16584 done
16585 done
16586 IFS=$as_save_IFS
16587
16588   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16589   ;;
16590 esac
16591 fi
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16596 else
16597   { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16599 fi
16600
16601
16602
16603
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607   echo "#! /bin/sh" >conf$$.sh
16608   echo  "exit 0"   >>conf$$.sh
16609   chmod +x conf$$.sh
16610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16611     PATH_SEPARATOR=';'
16612   else
16613     PATH_SEPARATOR=:
16614   fi
16615   rm -f conf$$.sh
16616 fi
16617
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16621 #! /bin/sh
16622 exit 0
16623 _ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626   ac_executable_p="test -x"
16627 else
16628   ac_executable_p="test -f"
16629 fi
16630 rm -f conf$$.file
16631
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637   echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639   case "$XGETTEXT" in
16640   [\\/]* | ?:[\\/]*)
16641     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16642     ;;
16643   *)
16644     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645     for ac_dir in $PATH; do
16646       IFS="$ac_save_IFS"
16647       test -z "$ac_dir" && ac_dir=.
16648       for ac_exec_ext in '' $ac_executable_extensions; do
16649         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652      (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
16653             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16654             break 2
16655           fi
16656         fi
16657       done
16658     done
16659     IFS="$ac_save_IFS"
16660   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16661     ;;
16662 esac
16663 fi
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16668 else
16669   { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16671 fi
16672
16673     rm -f messages.po
16674
16675
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679   echo "#! /bin/sh" >conf$$.sh
16680   echo  "exit 0"   >>conf$$.sh
16681   chmod +x conf$$.sh
16682   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16683     PATH_SEPARATOR=';'
16684   else
16685     PATH_SEPARATOR=:
16686   fi
16687   rm -f conf$$.sh
16688 fi
16689
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16693 #! /bin/sh
16694 exit 0
16695 _ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698   ac_executable_p="test -x"
16699 else
16700   ac_executable_p="test -f"
16701 fi
16702 rm -f conf$$.file
16703
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   case "$MSGMERGE" in
16712   [\\/]* | ?:[\\/]*)
16713     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16714     ;;
16715   *)
16716     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717     for ac_dir in $PATH; do
16718       IFS="$ac_save_IFS"
16719       test -z "$ac_dir" && ac_dir=.
16720       for ac_exec_ext in '' $ac_executable_extensions; do
16721         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16725             break 2
16726           fi
16727         fi
16728       done
16729     done
16730     IFS="$ac_save_IFS"
16731   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16732     ;;
16733 esac
16734 fi
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16739 else
16740   { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16742 fi
16743
16744
16745       if test "$GMSGFMT" != ":"; then
16746             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16748       : ;
16749     else
16750       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16753       GMSGFMT=":"
16754     fi
16755   fi
16756
16757       if test "$XGETTEXT" != ":"; then
16758             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759        (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
16760       : ;
16761     else
16762       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16764       XGETTEXT=":"
16765     fi
16766         rm -f messages.po
16767   fi
16768
16769   ac_config_commands="$ac_config_commands default-1"
16770
16771
16772
16773       if test "X$prefix" = "XNONE"; then
16774     acl_final_prefix="$ac_default_prefix"
16775   else
16776     acl_final_prefix="$prefix"
16777   fi
16778   if test "X$exec_prefix" = "XNONE"; then
16779     acl_final_exec_prefix='${prefix}'
16780   else
16781     acl_final_exec_prefix="$exec_prefix"
16782   fi
16783   acl_save_prefix="$prefix"
16784   prefix="$acl_final_prefix"
16785   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786   prefix="$acl_save_prefix"
16787
16788
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16792 else
16793   with_gnu_ld=no
16794 fi
16795
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799   echo "#! /bin/sh" >conf$$.sh
16800   echo  "exit 0"   >>conf$$.sh
16801   chmod +x conf$$.sh
16802   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16803     PATH_SEPARATOR=';'
16804   else
16805     PATH_SEPARATOR=:
16806   fi
16807   rm -f conf$$.sh
16808 fi
16809 ac_prog=ld
16810 if test "$GCC" = yes; then
16811   # Check if gcc -print-prog-name=ld gives a path.
16812   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16814   case $host in
16815   *-*-mingw*)
16816     # gcc leaves a trailing carriage return which upsets mingw
16817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16818   *)
16819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16820   esac
16821   case $ac_prog in
16822     # Accept absolute paths.
16823     [\\/]* | [A-Za-z]:[\\/]*)
16824       re_direlt='/[^/][^/]*/\.\./'
16825       # Canonicalize the path of ld
16826       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16829       done
16830       test -z "$LD" && LD="$ac_prog"
16831       ;;
16832   "")
16833     # If it fails, then pretend we aren't using GCC.
16834     ac_prog=ld
16835     ;;
16836   *)
16837     # If it is relative, then search for the first ld in PATH.
16838     with_gnu_ld=unknown
16839     ;;
16840   esac
16841 elif test "$with_gnu_ld" = yes; then
16842   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16844 else
16845   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16847 fi
16848 if test "${acl_cv_path_LD+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851   if test -z "$LD"; then
16852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853   for ac_dir in $PATH; do
16854     test -z "$ac_dir" && ac_dir=.
16855     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856       acl_cv_path_LD="$ac_dir/$ac_prog"
16857       # Check to see if the program is GNU ld.  I'd rather use --version,
16858       # but apparently some GNU ld's only accept -v.
16859       # Break only if it was the GNU/non-GNU ld that we prefer.
16860       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861       *GNU* | *'with BFD'*)
16862         test "$with_gnu_ld" != no && break ;;
16863       *)
16864         test "$with_gnu_ld" != yes && break ;;
16865       esac
16866     fi
16867   done
16868   IFS="$ac_save_ifs"
16869 else
16870   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16871 fi
16872 fi
16873
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876   { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16878 else
16879   { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16881 fi
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884    { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893   acl_cv_prog_gnu_ld=yes ;;
16894 *)
16895   acl_cv_prog_gnu_ld=no ;;
16896 esac
16897 fi
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16901
16902
16903
16904
16905                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910
16911     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16913     . ./conftest.sh
16914     rm -f ./conftest.sh
16915     acl_cv_rpath=done
16916
16917 fi
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16920   wl="$acl_cv_wl"
16921   libext="$acl_cv_libext"
16922   shlibext="$acl_cv_shlibext"
16923   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925   hardcode_direct="$acl_cv_hardcode_direct"
16926   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927     # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929   enableval=$enable_rpath; :
16930 else
16931   enable_rpath=yes
16932 fi
16933
16934
16935
16936
16937
16938
16939
16940
16941     use_additional=yes
16942
16943   acl_save_prefix="$prefix"
16944   prefix="$acl_final_prefix"
16945   acl_save_exec_prefix="$exec_prefix"
16946   exec_prefix="$acl_final_exec_prefix"
16947
16948     eval additional_includedir=\"$includedir\"
16949     eval additional_libdir=\"$libdir\"
16950
16951   exec_prefix="$acl_save_exec_prefix"
16952   prefix="$acl_save_prefix"
16953
16954
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957   withval=$with_libiconv_prefix;
16958     if test "X$withval" = "Xno"; then
16959       use_additional=no
16960     else
16961       if test "X$withval" = "X"; then
16962
16963   acl_save_prefix="$prefix"
16964   prefix="$acl_final_prefix"
16965   acl_save_exec_prefix="$exec_prefix"
16966   exec_prefix="$acl_final_exec_prefix"
16967
16968           eval additional_includedir=\"$includedir\"
16969           eval additional_libdir=\"$libdir\"
16970
16971   exec_prefix="$acl_save_exec_prefix"
16972   prefix="$acl_save_prefix"
16973
16974       else
16975         additional_includedir="$withval/include"
16976         additional_libdir="$withval/lib"
16977       fi
16978     fi
16979
16980 fi
16981
16982       LIBICONV=
16983   LTLIBICONV=
16984   INCICONV=
16985   rpathdirs=
16986   ltrpathdirs=
16987   names_already_handled=
16988   names_next_round='iconv '
16989   while test -n "$names_next_round"; do
16990     names_this_round="$names_next_round"
16991     names_next_round=
16992     for name in $names_this_round; do
16993       already_handled=
16994       for n in $names_already_handled; do
16995         if test "$n" = "$name"; then
16996           already_handled=yes
16997           break
16998         fi
16999       done
17000       if test -z "$already_handled"; then
17001         names_already_handled="$names_already_handled $name"
17002                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003         eval value=\"\$HAVE_LIB$uppername\"
17004         if test -n "$value"; then
17005           if test "$value" = yes; then
17006             eval value=\"\$LIB$uppername\"
17007             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008             eval value=\"\$LTLIB$uppername\"
17009             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17010           else
17011                                     :
17012           fi
17013         else
17014                               found_dir=
17015           found_la=
17016           found_so=
17017           found_a=
17018           if test $use_additional = yes; then
17019             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020               found_dir="$additional_libdir"
17021               found_so="$additional_libdir/lib$name.$shlibext"
17022               if test -f "$additional_libdir/lib$name.la"; then
17023                 found_la="$additional_libdir/lib$name.la"
17024               fi
17025             else
17026               if test -f "$additional_libdir/lib$name.$libext"; then
17027                 found_dir="$additional_libdir"
17028                 found_a="$additional_libdir/lib$name.$libext"
17029                 if test -f "$additional_libdir/lib$name.la"; then
17030                   found_la="$additional_libdir/lib$name.la"
17031                 fi
17032               fi
17033             fi
17034           fi
17035           if test "X$found_dir" = "X"; then
17036             for x in $LDFLAGS $LTLIBICONV; do
17037
17038   acl_save_prefix="$prefix"
17039   prefix="$acl_final_prefix"
17040   acl_save_exec_prefix="$exec_prefix"
17041   exec_prefix="$acl_final_exec_prefix"
17042   eval x=\"$x\"
17043   exec_prefix="$acl_save_exec_prefix"
17044   prefix="$acl_save_prefix"
17045
17046               case "$x" in
17047                 -L*)
17048                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17049                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17050                     found_dir="$dir"
17051                     found_so="$dir/lib$name.$shlibext"
17052                     if test -f "$dir/lib$name.la"; then
17053                       found_la="$dir/lib$name.la"
17054                     fi
17055                   else
17056                     if test -f "$dir/lib$name.$libext"; then
17057                       found_dir="$dir"
17058                       found_a="$dir/lib$name.$libext"
17059                       if test -f "$dir/lib$name.la"; then
17060                         found_la="$dir/lib$name.la"
17061                       fi
17062                     fi
17063                   fi
17064                   ;;
17065               esac
17066               if test "X$found_dir" != "X"; then
17067                 break
17068               fi
17069             done
17070           fi
17071           if test "X$found_dir" != "X"; then
17072                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073             if test "X$found_so" != "X"; then
17074                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17076               else
17077                                                                                 haveit=
17078                 for x in $ltrpathdirs; do
17079                   if test "X$x" = "X$found_dir"; then
17080                     haveit=yes
17081                     break
17082                   fi
17083                 done
17084                 if test -z "$haveit"; then
17085                   ltrpathdirs="$ltrpathdirs $found_dir"
17086                 fi
17087                                 if test "$hardcode_direct" = yes; then
17088                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17089                 else
17090                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17092                                                             haveit=
17093                     for x in $rpathdirs; do
17094                       if test "X$x" = "X$found_dir"; then
17095                         haveit=yes
17096                         break
17097                       fi
17098                     done
17099                     if test -z "$haveit"; then
17100                       rpathdirs="$rpathdirs $found_dir"
17101                     fi
17102                   else
17103                                                                                 haveit=
17104                     for x in $LDFLAGS $LIBICONV; do
17105
17106   acl_save_prefix="$prefix"
17107   prefix="$acl_final_prefix"
17108   acl_save_exec_prefix="$exec_prefix"
17109   exec_prefix="$acl_final_exec_prefix"
17110   eval x=\"$x\"
17111   exec_prefix="$acl_save_exec_prefix"
17112   prefix="$acl_save_prefix"
17113
17114                       if test "X$x" = "X-L$found_dir"; then
17115                         haveit=yes
17116                         break
17117                       fi
17118                     done
17119                     if test -z "$haveit"; then
17120                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17121                     fi
17122                     if test "$hardcode_minus_L" != no; then
17123                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17124                     else
17125                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17126                     fi
17127                   fi
17128                 fi
17129               fi
17130             else
17131               if test "X$found_a" != "X"; then
17132                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17133               else
17134                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17135               fi
17136             fi
17137                         additional_includedir=
17138             case "$found_dir" in
17139               */lib | */lib/)
17140                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141                 additional_includedir="$basedir/include"
17142                 ;;
17143             esac
17144             if test "X$additional_includedir" != "X"; then
17145                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17146                 haveit=
17147                 if test "X$additional_includedir" = "X/usr/local/include"; then
17148                   if test -n "$GCC"; then
17149                     case $host_os in
17150                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17151                     esac
17152                   fi
17153                 fi
17154                 if test -z "$haveit"; then
17155                   for x in $CPPFLAGS $INCICONV; do
17156
17157   acl_save_prefix="$prefix"
17158   prefix="$acl_final_prefix"
17159   acl_save_exec_prefix="$exec_prefix"
17160   exec_prefix="$acl_final_exec_prefix"
17161   eval x=\"$x\"
17162   exec_prefix="$acl_save_exec_prefix"
17163   prefix="$acl_save_prefix"
17164
17165                     if test "X$x" = "X-I$additional_includedir"; then
17166                       haveit=yes
17167                       break
17168                     fi
17169                   done
17170                   if test -z "$haveit"; then
17171                     if test -d "$additional_includedir"; then
17172                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17173                     fi
17174                   fi
17175                 fi
17176               fi
17177             fi
17178                         if test -n "$found_la"; then
17179                                                         save_libdir="$libdir"
17180               case "$found_la" in
17181                 */* | *\\*) . "$found_la" ;;
17182                 *) . "./$found_la" ;;
17183               esac
17184               libdir="$save_libdir"
17185                             for dep in $dependency_libs; do
17186                 case "$dep" in
17187                   -L*)
17188                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17190                       haveit=
17191                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17192                         if test -n "$GCC"; then
17193                           case $host_os in
17194                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17195                           esac
17196                         fi
17197                       fi
17198                       if test -z "$haveit"; then
17199                         haveit=
17200                         for x in $LDFLAGS $LIBICONV; do
17201
17202   acl_save_prefix="$prefix"
17203   prefix="$acl_final_prefix"
17204   acl_save_exec_prefix="$exec_prefix"
17205   exec_prefix="$acl_final_exec_prefix"
17206   eval x=\"$x\"
17207   exec_prefix="$acl_save_exec_prefix"
17208   prefix="$acl_save_prefix"
17209
17210                           if test "X$x" = "X-L$additional_libdir"; then
17211                             haveit=yes
17212                             break
17213                           fi
17214                         done
17215                         if test -z "$haveit"; then
17216                           if test -d "$additional_libdir"; then
17217                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17218                           fi
17219                         fi
17220                         haveit=
17221                         for x in $LDFLAGS $LTLIBICONV; do
17222
17223   acl_save_prefix="$prefix"
17224   prefix="$acl_final_prefix"
17225   acl_save_exec_prefix="$exec_prefix"
17226   exec_prefix="$acl_final_exec_prefix"
17227   eval x=\"$x\"
17228   exec_prefix="$acl_save_exec_prefix"
17229   prefix="$acl_save_prefix"
17230
17231                           if test "X$x" = "X-L$additional_libdir"; then
17232                             haveit=yes
17233                             break
17234                           fi
17235                         done
17236                         if test -z "$haveit"; then
17237                           if test -d "$additional_libdir"; then
17238                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17239                           fi
17240                         fi
17241                       fi
17242                     fi
17243                     ;;
17244                   -R*)
17245                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246                     if test "$enable_rpath" != no; then
17247                                                                   haveit=
17248                       for x in $rpathdirs; do
17249                         if test "X$x" = "X$dir"; then
17250                           haveit=yes
17251                           break
17252                         fi
17253                       done
17254                       if test -z "$haveit"; then
17255                         rpathdirs="$rpathdirs $dir"
17256                       fi
17257                                                                   haveit=
17258                       for x in $ltrpathdirs; do
17259                         if test "X$x" = "X$dir"; then
17260                           haveit=yes
17261                           break
17262                         fi
17263                       done
17264                       if test -z "$haveit"; then
17265                         ltrpathdirs="$ltrpathdirs $dir"
17266                       fi
17267                     fi
17268                     ;;
17269                   -l*)
17270                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17271                     ;;
17272                   *.la)
17273                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17274                     ;;
17275                   *)
17276                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17278                     ;;
17279                 esac
17280               done
17281             fi
17282           else
17283                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17285           fi
17286         fi
17287       fi
17288     done
17289   done
17290   if test "X$rpathdirs" != "X"; then
17291     if test -n "$hardcode_libdir_separator"; then
17292                         alldirs=
17293       for found_dir in $rpathdirs; do
17294         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17295       done
17296             acl_save_libdir="$libdir"
17297       libdir="$alldirs"
17298       eval flag=\"$hardcode_libdir_flag_spec\"
17299       libdir="$acl_save_libdir"
17300       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17301     else
17302             for found_dir in $rpathdirs; do
17303         acl_save_libdir="$libdir"
17304         libdir="$found_dir"
17305         eval flag=\"$hardcode_libdir_flag_spec\"
17306         libdir="$acl_save_libdir"
17307         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17308       done
17309     fi
17310   fi
17311   if test "X$ltrpathdirs" != "X"; then
17312             for found_dir in $ltrpathdirs; do
17313       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17314     done
17315   fi
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   gt_save_CPPFLAGS="$CPPFLAGS"
17340      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341      gt_save_LIBS="$LIBS"
17342      LIBS="$LIBS -framework CoreFoundation"
17343      cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349 #include <CFPreferences.h>
17350 int
17351 main ()
17352 {
17353 CFPreferencesCopyAppValue(NULL, NULL)
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362   *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365   (eval "$ac_link") 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } && {
17372          test -z "$ac_c_werror_flag" ||
17373          test ! -s conftest.err
17374        } && test -s conftest$ac_exeext &&
17375        $as_test_x conftest$ac_exeext; then
17376   gt_cv_func_CFPreferencesCopyAppValue=yes
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381         gt_cv_func_CFPreferencesCopyAppValue=no
17382 fi
17383
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385       conftest$ac_exeext conftest.$ac_ext
17386      CPPFLAGS="$gt_save_CPPFLAGS"
17387      LIBS="$gt_save_LIBS"
17388 fi
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17392
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17395 _ACEOF
17396
17397   fi
17398     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   gt_save_CPPFLAGS="$CPPFLAGS"
17404      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405      gt_save_LIBS="$LIBS"
17406      LIBS="$LIBS -framework CoreFoundation"
17407      cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413 #include <CFLocale.h>
17414 int
17415 main ()
17416 {
17417 CFLocaleCopyCurrent();
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426   *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429   (eval "$ac_link") 2>conftest.er1
17430   ac_status=$?
17431   grep -v '^ *+' conftest.er1 >conftest.err
17432   rm -f conftest.er1
17433   cat conftest.err >&5
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); } && {
17436          test -z "$ac_c_werror_flag" ||
17437          test ! -s conftest.err
17438        } && test -s conftest$ac_exeext &&
17439        $as_test_x conftest$ac_exeext; then
17440   gt_cv_func_CFLocaleCopyCurrent=yes
17441 else
17442   echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         gt_cv_func_CFLocaleCopyCurrent=no
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449       conftest$ac_exeext conftest.$ac_ext
17450      CPPFLAGS="$gt_save_CPPFLAGS"
17451      LIBS="$gt_save_LIBS"
17452 fi
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17456
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17459 _ACEOF
17460
17461   fi
17462   INTL_MACOSX_LIBS=
17463   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17465   fi
17466
17467
17468
17469
17470   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472     # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474   enableval=$enable_nls; USE_NLS=$enableval
17475 else
17476   USE_NLS=yes
17477 fi
17478
17479   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17481
17482
17483
17484
17485   LIBINTL=
17486   LTLIBINTL=
17487   POSUB=
17488
17489     if test "$USE_NLS" = "yes"; then
17490     gt_use_preinstalled_gnugettext=no
17491
17492
17493
17494
17495
17496
17497         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17511 int
17512 main ()
17513 {
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_link") 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } && {
17534          test -z "$ac_c_werror_flag" ||
17535          test ! -s conftest.err
17536        } && test -s conftest$ac_exeext &&
17537        $as_test_x conftest$ac_exeext; then
17538   gt_cv_func_gnugettext1_libc=yes
17539 else
17540   echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543         gt_cv_func_gnugettext1_libc=no
17544 fi
17545
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547       conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17551
17552         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17553
17554
17555
17556
17557
17558           am_save_CPPFLAGS="$CPPFLAGS"
17559
17560   for element in $INCICONV; do
17561     haveit=
17562     for x in $CPPFLAGS; do
17563
17564   acl_save_prefix="$prefix"
17565   prefix="$acl_final_prefix"
17566   acl_save_exec_prefix="$exec_prefix"
17567   exec_prefix="$acl_final_exec_prefix"
17568   eval x=\"$x\"
17569   exec_prefix="$acl_save_exec_prefix"
17570   prefix="$acl_save_prefix"
17571
17572       if test "X$x" = "X$element"; then
17573         haveit=yes
17574         break
17575       fi
17576     done
17577     if test -z "$haveit"; then
17578       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17579     fi
17580   done
17581
17582
17583   { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588
17589     am_cv_func_iconv="no, consider installing GNU libiconv"
17590     am_cv_lib_iconv=no
17591     cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597 #include <stdlib.h>
17598 #include <iconv.h>
17599 int
17600 main ()
17601 {
17602 iconv_t cd = iconv_open("","");
17603        iconv(cd,NULL,NULL,NULL,NULL);
17604        iconv_close(cd);
17605   ;
17606   return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613   *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616   (eval "$ac_link") 2>conftest.er1
17617   ac_status=$?
17618   grep -v '^ *+' conftest.er1 >conftest.err
17619   rm -f conftest.er1
17620   cat conftest.err >&5
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } && {
17623          test -z "$ac_c_werror_flag" ||
17624          test ! -s conftest.err
17625        } && test -s conftest$ac_exeext &&
17626        $as_test_x conftest$ac_exeext; then
17627   am_cv_func_iconv=yes
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632
17633 fi
17634
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636       conftest$ac_exeext conftest.$ac_ext
17637     if test "$am_cv_func_iconv" != yes; then
17638       am_save_LIBS="$LIBS"
17639       LIBS="$LIBS $LIBICONV"
17640       cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646 #include <stdlib.h>
17647 #include <iconv.h>
17648 int
17649 main ()
17650 {
17651 iconv_t cd = iconv_open("","");
17652          iconv(cd,NULL,NULL,NULL,NULL);
17653          iconv_close(cd);
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_link") 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } && {
17672          test -z "$ac_c_werror_flag" ||
17673          test ! -s conftest.err
17674        } && test -s conftest$ac_exeext &&
17675        $as_test_x conftest$ac_exeext; then
17676   am_cv_lib_iconv=yes
17677         am_cv_func_iconv=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686       conftest$ac_exeext conftest.$ac_ext
17687       LIBS="$am_save_LIBS"
17688     fi
17689
17690 fi
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693   if test "$am_cv_func_iconv" = yes; then
17694
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17697 _ACEOF
17698
17699   fi
17700   if test "$am_cv_lib_iconv" = yes; then
17701     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17705   else
17706             CPPFLAGS="$am_save_CPPFLAGS"
17707     LIBICONV=
17708     LTLIBICONV=
17709   fi
17710
17711
17712
17713
17714
17715
17716     use_additional=yes
17717
17718   acl_save_prefix="$prefix"
17719   prefix="$acl_final_prefix"
17720   acl_save_exec_prefix="$exec_prefix"
17721   exec_prefix="$acl_final_exec_prefix"
17722
17723     eval additional_includedir=\"$includedir\"
17724     eval additional_libdir=\"$libdir\"
17725
17726   exec_prefix="$acl_save_exec_prefix"
17727   prefix="$acl_save_prefix"
17728
17729
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732   withval=$with_libintl_prefix;
17733     if test "X$withval" = "Xno"; then
17734       use_additional=no
17735     else
17736       if test "X$withval" = "X"; then
17737
17738   acl_save_prefix="$prefix"
17739   prefix="$acl_final_prefix"
17740   acl_save_exec_prefix="$exec_prefix"
17741   exec_prefix="$acl_final_exec_prefix"
17742
17743           eval additional_includedir=\"$includedir\"
17744           eval additional_libdir=\"$libdir\"
17745
17746   exec_prefix="$acl_save_exec_prefix"
17747   prefix="$acl_save_prefix"
17748
17749       else
17750         additional_includedir="$withval/include"
17751         additional_libdir="$withval/lib"
17752       fi
17753     fi
17754
17755 fi
17756
17757       LIBINTL=
17758   LTLIBINTL=
17759   INCINTL=
17760   rpathdirs=
17761   ltrpathdirs=
17762   names_already_handled=
17763   names_next_round='intl '
17764   while test -n "$names_next_round"; do
17765     names_this_round="$names_next_round"
17766     names_next_round=
17767     for name in $names_this_round; do
17768       already_handled=
17769       for n in $names_already_handled; do
17770         if test "$n" = "$name"; then
17771           already_handled=yes
17772           break
17773         fi
17774       done
17775       if test -z "$already_handled"; then
17776         names_already_handled="$names_already_handled $name"
17777                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778         eval value=\"\$HAVE_LIB$uppername\"
17779         if test -n "$value"; then
17780           if test "$value" = yes; then
17781             eval value=\"\$LIB$uppername\"
17782             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783             eval value=\"\$LTLIB$uppername\"
17784             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17785           else
17786                                     :
17787           fi
17788         else
17789                               found_dir=
17790           found_la=
17791           found_so=
17792           found_a=
17793           if test $use_additional = yes; then
17794             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795               found_dir="$additional_libdir"
17796               found_so="$additional_libdir/lib$name.$shlibext"
17797               if test -f "$additional_libdir/lib$name.la"; then
17798                 found_la="$additional_libdir/lib$name.la"
17799               fi
17800             else
17801               if test -f "$additional_libdir/lib$name.$libext"; then
17802                 found_dir="$additional_libdir"
17803                 found_a="$additional_libdir/lib$name.$libext"
17804                 if test -f "$additional_libdir/lib$name.la"; then
17805                   found_la="$additional_libdir/lib$name.la"
17806                 fi
17807               fi
17808             fi
17809           fi
17810           if test "X$found_dir" = "X"; then
17811             for x in $LDFLAGS $LTLIBINTL; do
17812
17813   acl_save_prefix="$prefix"
17814   prefix="$acl_final_prefix"
17815   acl_save_exec_prefix="$exec_prefix"
17816   exec_prefix="$acl_final_exec_prefix"
17817   eval x=\"$x\"
17818   exec_prefix="$acl_save_exec_prefix"
17819   prefix="$acl_save_prefix"
17820
17821               case "$x" in
17822                 -L*)
17823                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17824                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17825                     found_dir="$dir"
17826                     found_so="$dir/lib$name.$shlibext"
17827                     if test -f "$dir/lib$name.la"; then
17828                       found_la="$dir/lib$name.la"
17829                     fi
17830                   else
17831                     if test -f "$dir/lib$name.$libext"; then
17832                       found_dir="$dir"
17833                       found_a="$dir/lib$name.$libext"
17834                       if test -f "$dir/lib$name.la"; then
17835                         found_la="$dir/lib$name.la"
17836                       fi
17837                     fi
17838                   fi
17839                   ;;
17840               esac
17841               if test "X$found_dir" != "X"; then
17842                 break
17843               fi
17844             done
17845           fi
17846           if test "X$found_dir" != "X"; then
17847                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848             if test "X$found_so" != "X"; then
17849                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17851               else
17852                                                                                 haveit=
17853                 for x in $ltrpathdirs; do
17854                   if test "X$x" = "X$found_dir"; then
17855                     haveit=yes
17856                     break
17857                   fi
17858                 done
17859                 if test -z "$haveit"; then
17860                   ltrpathdirs="$ltrpathdirs $found_dir"
17861                 fi
17862                                 if test "$hardcode_direct" = yes; then
17863                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17864                 else
17865                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17867                                                             haveit=
17868                     for x in $rpathdirs; do
17869                       if test "X$x" = "X$found_dir"; then
17870                         haveit=yes
17871                         break
17872                       fi
17873                     done
17874                     if test -z "$haveit"; then
17875                       rpathdirs="$rpathdirs $found_dir"
17876                     fi
17877                   else
17878                                                                                 haveit=
17879                     for x in $LDFLAGS $LIBINTL; do
17880
17881   acl_save_prefix="$prefix"
17882   prefix="$acl_final_prefix"
17883   acl_save_exec_prefix="$exec_prefix"
17884   exec_prefix="$acl_final_exec_prefix"
17885   eval x=\"$x\"
17886   exec_prefix="$acl_save_exec_prefix"
17887   prefix="$acl_save_prefix"
17888
17889                       if test "X$x" = "X-L$found_dir"; then
17890                         haveit=yes
17891                         break
17892                       fi
17893                     done
17894                     if test -z "$haveit"; then
17895                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17896                     fi
17897                     if test "$hardcode_minus_L" != no; then
17898                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17899                     else
17900                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17901                     fi
17902                   fi
17903                 fi
17904               fi
17905             else
17906               if test "X$found_a" != "X"; then
17907                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17908               else
17909                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17910               fi
17911             fi
17912                         additional_includedir=
17913             case "$found_dir" in
17914               */lib | */lib/)
17915                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916                 additional_includedir="$basedir/include"
17917                 ;;
17918             esac
17919             if test "X$additional_includedir" != "X"; then
17920                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17921                 haveit=
17922                 if test "X$additional_includedir" = "X/usr/local/include"; then
17923                   if test -n "$GCC"; then
17924                     case $host_os in
17925                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17926                     esac
17927                   fi
17928                 fi
17929                 if test -z "$haveit"; then
17930                   for x in $CPPFLAGS $INCINTL; do
17931
17932   acl_save_prefix="$prefix"
17933   prefix="$acl_final_prefix"
17934   acl_save_exec_prefix="$exec_prefix"
17935   exec_prefix="$acl_final_exec_prefix"
17936   eval x=\"$x\"
17937   exec_prefix="$acl_save_exec_prefix"
17938   prefix="$acl_save_prefix"
17939
17940                     if test "X$x" = "X-I$additional_includedir"; then
17941                       haveit=yes
17942                       break
17943                     fi
17944                   done
17945                   if test -z "$haveit"; then
17946                     if test -d "$additional_includedir"; then
17947                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17948                     fi
17949                   fi
17950                 fi
17951               fi
17952             fi
17953                         if test -n "$found_la"; then
17954                                                         save_libdir="$libdir"
17955               case "$found_la" in
17956                 */* | *\\*) . "$found_la" ;;
17957                 *) . "./$found_la" ;;
17958               esac
17959               libdir="$save_libdir"
17960                             for dep in $dependency_libs; do
17961                 case "$dep" in
17962                   -L*)
17963                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17965                       haveit=
17966                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17967                         if test -n "$GCC"; then
17968                           case $host_os in
17969                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17970                           esac
17971                         fi
17972                       fi
17973                       if test -z "$haveit"; then
17974                         haveit=
17975                         for x in $LDFLAGS $LIBINTL; do
17976
17977   acl_save_prefix="$prefix"
17978   prefix="$acl_final_prefix"
17979   acl_save_exec_prefix="$exec_prefix"
17980   exec_prefix="$acl_final_exec_prefix"
17981   eval x=\"$x\"
17982   exec_prefix="$acl_save_exec_prefix"
17983   prefix="$acl_save_prefix"
17984
17985                           if test "X$x" = "X-L$additional_libdir"; then
17986                             haveit=yes
17987                             break
17988                           fi
17989                         done
17990                         if test -z "$haveit"; then
17991                           if test -d "$additional_libdir"; then
17992                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17993                           fi
17994                         fi
17995                         haveit=
17996                         for x in $LDFLAGS $LTLIBINTL; do
17997
17998   acl_save_prefix="$prefix"
17999   prefix="$acl_final_prefix"
18000   acl_save_exec_prefix="$exec_prefix"
18001   exec_prefix="$acl_final_exec_prefix"
18002   eval x=\"$x\"
18003   exec_prefix="$acl_save_exec_prefix"
18004   prefix="$acl_save_prefix"
18005
18006                           if test "X$x" = "X-L$additional_libdir"; then
18007                             haveit=yes
18008                             break
18009                           fi
18010                         done
18011                         if test -z "$haveit"; then
18012                           if test -d "$additional_libdir"; then
18013                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18014                           fi
18015                         fi
18016                       fi
18017                     fi
18018                     ;;
18019                   -R*)
18020                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021                     if test "$enable_rpath" != no; then
18022                                                                   haveit=
18023                       for x in $rpathdirs; do
18024                         if test "X$x" = "X$dir"; then
18025                           haveit=yes
18026                           break
18027                         fi
18028                       done
18029                       if test -z "$haveit"; then
18030                         rpathdirs="$rpathdirs $dir"
18031                       fi
18032                                                                   haveit=
18033                       for x in $ltrpathdirs; do
18034                         if test "X$x" = "X$dir"; then
18035                           haveit=yes
18036                           break
18037                         fi
18038                       done
18039                       if test -z "$haveit"; then
18040                         ltrpathdirs="$ltrpathdirs $dir"
18041                       fi
18042                     fi
18043                     ;;
18044                   -l*)
18045                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18046                     ;;
18047                   *.la)
18048                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18049                     ;;
18050                   *)
18051                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18053                     ;;
18054                 esac
18055               done
18056             fi
18057           else
18058                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18060           fi
18061         fi
18062       fi
18063     done
18064   done
18065   if test "X$rpathdirs" != "X"; then
18066     if test -n "$hardcode_libdir_separator"; then
18067                         alldirs=
18068       for found_dir in $rpathdirs; do
18069         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18070       done
18071             acl_save_libdir="$libdir"
18072       libdir="$alldirs"
18073       eval flag=\"$hardcode_libdir_flag_spec\"
18074       libdir="$acl_save_libdir"
18075       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18076     else
18077             for found_dir in $rpathdirs; do
18078         acl_save_libdir="$libdir"
18079         libdir="$found_dir"
18080         eval flag=\"$hardcode_libdir_flag_spec\"
18081         libdir="$acl_save_libdir"
18082         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18083       done
18084     fi
18085   fi
18086   if test "X$ltrpathdirs" != "X"; then
18087             for found_dir in $ltrpathdirs; do
18088       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18089     done
18090   fi
18091
18092           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   gt_save_CPPFLAGS="$CPPFLAGS"
18098             CPPFLAGS="$CPPFLAGS $INCINTL"
18099             gt_save_LIBS="$LIBS"
18100             LIBS="$LIBS $LIBINTL"
18101                         cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18109 extern
18110 #ifdef __cplusplus
18111 "C"
18112 #endif
18113 const char *_nl_expand_alias (const char *);
18114 int
18115 main ()
18116 {
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_link") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } && {
18137          test -z "$ac_c_werror_flag" ||
18138          test ! -s conftest.err
18139        } && test -s conftest$ac_exeext &&
18140        $as_test_x conftest$ac_exeext; then
18141   gt_cv_func_gnugettext1_libintl=yes
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146         gt_cv_func_gnugettext1_libintl=no
18147 fi
18148
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150       conftest$ac_exeext conftest.$ac_ext
18151                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152               LIBS="$LIBS $LIBICONV"
18153               cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18161 extern
18162 #ifdef __cplusplus
18163 "C"
18164 #endif
18165 const char *_nl_expand_alias (const char *);
18166 int
18167 main ()
18168 {
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_link") 2>conftest.er1
18183   ac_status=$?
18184   grep -v '^ *+' conftest.er1 >conftest.err
18185   rm -f conftest.er1
18186   cat conftest.err >&5
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); } && {
18189          test -z "$ac_c_werror_flag" ||
18190          test ! -s conftest.err
18191        } && test -s conftest$ac_exeext &&
18192        $as_test_x conftest$ac_exeext; then
18193   LIBINTL="$LIBINTL $LIBICONV"
18194                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195                 gt_cv_func_gnugettext1_libintl=yes
18196
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201
18202 fi
18203
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205       conftest$ac_exeext conftest.$ac_ext
18206             fi
18207             CPPFLAGS="$gt_save_CPPFLAGS"
18208             LIBS="$gt_save_LIBS"
18209 fi
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18212         fi
18213
18214                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216                 && test "$PACKAGE" != gettext-runtime \
18217                 && test "$PACKAGE" != gettext-tools; }; then
18218           gt_use_preinstalled_gnugettext=yes
18219         else
18220                     LIBINTL=
18221           LTLIBINTL=
18222           INCINTL=
18223         fi
18224
18225
18226
18227     if test -n "$INTL_MACOSX_LIBS"; then
18228       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18232       fi
18233     fi
18234
18235     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18240 _ACEOF
18241
18242     else
18243       USE_NLS=no
18244     fi
18245   fi
18246
18247   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251   if test "$USE_NLS" = "yes"; then
18252     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256         gt_source="external libintl"
18257       else
18258         gt_source="libc"
18259       fi
18260     else
18261       gt_source="included intl directory"
18262     fi
18263     { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18265   fi
18266
18267   if test "$USE_NLS" = "yes"; then
18268
18269     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18275
18276   for element in $INCINTL; do
18277     haveit=
18278     for x in $CPPFLAGS; do
18279
18280   acl_save_prefix="$prefix"
18281   prefix="$acl_final_prefix"
18282   acl_save_exec_prefix="$exec_prefix"
18283   exec_prefix="$acl_final_exec_prefix"
18284   eval x=\"$x\"
18285   exec_prefix="$acl_save_exec_prefix"
18286   prefix="$acl_save_prefix"
18287
18288       if test "X$x" = "X$element"; then
18289         haveit=yes
18290         break
18291       fi
18292     done
18293     if test -z "$haveit"; then
18294       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18295     fi
18296   done
18297
18298       fi
18299
18300
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18303 _ACEOF
18304
18305
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18308 _ACEOF
18309
18310     fi
18311
18312         POSUB=po
18313   fi
18314
18315
18316
18317     INTLLIBS="$LIBINTL"
18318
18319
18320
18321
18322
18323
18324
18325 if test x${prefix} = xNONE ; then
18326    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18327       sysconfdir=/etc/bacula
18328    fi
18329
18330    if test `eval echo ${libdir}` = NONE/lib ; then
18331       libdir=/usr/lib
18332    fi
18333
18334    if test `eval echo ${includedir}` = NONE/include ; then
18335       includedir=/usr/include
18336    fi
18337
18338    if test `eval echo ${datarootdir}` = NONE/share ; then
18339       datarootdir=/usr/share
18340    fi
18341    prefix=
18342 fi
18343
18344 if test x${exec_prefix} = xNONE ; then
18345    exec_prefix=${prefix}
18346 fi
18347
18348 sysconfdir=`eval echo ${sysconfdir}`
18349 datarootdir=`eval echo ${datarootdir}`
18350 docdir=`eval echo ${docdir}`
18351 htmldir=`eval echo ${htmldir}`
18352 libdir=`eval echo ${libdir}`
18353 includedir=`eval echo ${includedir}`
18354 localedir=`eval echo ${datarootdir}/locale`
18355 cat >>confdefs.h <<_ACEOF
18356 #define SYSCONFDIR "$sysconfdir"
18357 _ACEOF
18358
18359 cat >>confdefs.h <<_ACEOF
18360 #define LOCALEDIR "$localedir"
18361 _ACEOF
18362
18363
18364 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18365    sbindir=${exec_prefix}/sbin
18366 fi
18367 sbindir=`eval echo ${sbindir}`
18368
18369 if test x$mandir = x'${prefix}/man' ; then
18370    mandir=/usr/share/man
18371 fi
18372
18373 if test x$htmldir = x${docdir} ; then
18374    htmldir=`eval echo ${docdir}bacula/html`
18375 fi
18376
18377 if test x$docdir = x'/usr/share/doc/' ; then
18378    docdir=`eval echo ${docdir}bacula`
18379 fi
18380
18381
18382 for ac_prog in msgfmt
18383 do
18384   # Extract the first word of "$ac_prog", so it can be a program name with args.
18385 set dummy $ac_prog; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_path_MSGFMT+set}" = set; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   case $MSGFMT in
18392   [\\/]* | ?:[\\/]*)
18393   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18394   ;;
18395   *)
18396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397 for as_dir in $PATH
18398 do
18399   IFS=$as_save_IFS
18400   test -z "$as_dir" && as_dir=.
18401   for ac_exec_ext in '' $ac_executable_extensions; do
18402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18403     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18405     break 2
18406   fi
18407 done
18408 done
18409 IFS=$as_save_IFS
18410
18411   ;;
18412 esac
18413 fi
18414 MSGFMT=$ac_cv_path_MSGFMT
18415 if test -n "$MSGFMT"; then
18416   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18417 echo "${ECHO_T}$MSGFMT" >&6; }
18418 else
18419   { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18421 fi
18422
18423
18424   test -n "$MSGFMT" && break
18425 done
18426 test -n "$MSGFMT" || MSGFMT="no"
18427
18428 if test "$MSGFMT" = "no"
18429 then
18430    echo 'msgfmt program not found, disabling NLS !'
18431    USE_NLS=no
18432    USE_INCLUDED_LIBINTL=no
18433 #else
18434
18435     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18436 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18437 if test "${ac_cv_gnu_library_2+set}" = set; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446
18447 #include <features.h>
18448 #ifdef __GNU_LIBRARY__
18449  #if (__GLIBC__ >= 2)
18450   Lucky GNU user
18451  #endif
18452 #endif
18453
18454 _ACEOF
18455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18456   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18457   ac_cv_gnu_library_2=yes
18458 else
18459   ac_cv_gnu_library_2=no
18460 fi
18461 rm -f conftest*
18462
18463
18464
18465 fi
18466 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18467 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18468
18469     GLIBC2="$ac_cv_gnu_library_2"
18470
18471
18472 if test -n "$ac_tool_prefix"; then
18473   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_prog_RANLIB+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480   if test -n "$RANLIB"; then
18481   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18482 else
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18485 do
18486   IFS=$as_save_IFS
18487   test -z "$as_dir" && as_dir=.
18488   for ac_exec_ext in '' $ac_executable_extensions; do
18489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18490     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18492     break 2
18493   fi
18494 done
18495 done
18496 IFS=$as_save_IFS
18497
18498 fi
18499 fi
18500 RANLIB=$ac_cv_prog_RANLIB
18501 if test -n "$RANLIB"; then
18502   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18503 echo "${ECHO_T}$RANLIB" >&6; }
18504 else
18505   { echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6; }
18507 fi
18508
18509
18510 fi
18511 if test -z "$ac_cv_prog_RANLIB"; then
18512   ac_ct_RANLIB=$RANLIB
18513   # Extract the first word of "ranlib", so it can be a program name with args.
18514 set dummy ranlib; ac_word=$2
18515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18518   echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520   if test -n "$ac_ct_RANLIB"; then
18521   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18522 else
18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18524 for as_dir in $PATH
18525 do
18526   IFS=$as_save_IFS
18527   test -z "$as_dir" && as_dir=.
18528   for ac_exec_ext in '' $ac_executable_extensions; do
18529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18530     ac_cv_prog_ac_ct_RANLIB="ranlib"
18531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18532     break 2
18533   fi
18534 done
18535 done
18536 IFS=$as_save_IFS
18537
18538 fi
18539 fi
18540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18541 if test -n "$ac_ct_RANLIB"; then
18542   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18544 else
18545   { echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6; }
18547 fi
18548
18549   if test "x$ac_ct_RANLIB" = x; then
18550     RANLIB=":"
18551   else
18552     case $cross_compiling:$ac_tool_warned in
18553 yes:)
18554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18555 whose name does not start with the host triplet.  If you think this
18556 configuration is useful to you, please write to autoconf@gnu.org." >&5
18557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18558 whose name does not start with the host triplet.  If you think this
18559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18560 ac_tool_warned=yes ;;
18561 esac
18562     RANLIB=$ac_ct_RANLIB
18563   fi
18564 else
18565   RANLIB="$ac_cv_prog_RANLIB"
18566 fi
18567
18568
18569         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18570 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lcposix  $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582
18583 /* Override any GCC internal prototype to avoid an error.
18584    Use char because int might match the return type of a GCC
18585    builtin and then its argument prototype would still apply.  */
18586 #ifdef __cplusplus
18587 extern "C"
18588 #endif
18589 char strerror ();
18590 int
18591 main ()
18592 {
18593 return strerror ();
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602   *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605   (eval "$ac_link") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_c_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest$ac_exeext &&
18615        $as_test_x conftest$ac_exeext; then
18616   ac_cv_lib_cposix_strerror=yes
18617 else
18618   echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621         ac_cv_lib_cposix_strerror=no
18622 fi
18623
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625       conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18627 fi
18628 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18629 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18630 if test $ac_cv_lib_cposix_strerror = yes; then
18631   LIBS="$LIBS -lcposix"
18632 fi
18633
18634
18635
18636 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18637 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18638 if test "${ac_cv_c_const+set}" = set; then
18639   echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641   cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h.  */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h.  */
18647
18648 int
18649 main ()
18650 {
18651 /* FIXME: Include the comments suggested by Paul. */
18652 #ifndef __cplusplus
18653   /* Ultrix mips cc rejects this.  */
18654   typedef int charset[2];
18655   const charset cs;
18656   /* SunOS 4.1.1 cc rejects this.  */
18657   char const *const *pcpcc;
18658   char **ppc;
18659   /* NEC SVR4.0.2 mips cc rejects this.  */
18660   struct point {int x, y;};
18661   static struct point const zero = {0,0};
18662   /* AIX XL C 1.02.0.0 rejects this.
18663      It does not let you subtract one const X* pointer from another in
18664      an arm of an if-expression whose if-part is not a constant
18665      expression */
18666   const char *g = "string";
18667   pcpcc = &g + (g ? g-g : 0);
18668   /* HPUX 7.0 cc rejects these. */
18669   ++pcpcc;
18670   ppc = (char**) pcpcc;
18671   pcpcc = (char const *const *) ppc;
18672   { /* SCO 3.2v4 cc rejects this.  */
18673     char *t;
18674     char const *s = 0 ? (char *) 0 : (char const *) 0;
18675
18676     *t++ = 0;
18677     if (s) return 0;
18678   }
18679   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18680     int x[] = {25, 17};
18681     const int *foo = &x[0];
18682     ++foo;
18683   }
18684   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18685     typedef const int *iptr;
18686     iptr p = 0;
18687     ++p;
18688   }
18689   { /* AIX XL C 1.02.0.0 rejects this saying
18690        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18691     struct s { int j; const int *ap[3]; };
18692     struct s *b; b->j = 5;
18693   }
18694   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18695     const int foo = 10;
18696     if (!foo) return 0;
18697   }
18698   return !cs[0] && !zero.x;
18699 #endif
18700
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_compile") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } && {
18719          test -z "$ac_c_werror_flag" ||
18720          test ! -s conftest.err
18721        } && test -s conftest.$ac_objext; then
18722   ac_cv_c_const=yes
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727         ac_cv_c_const=no
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731 fi
18732 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18733 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18734 if test $ac_cv_c_const = no; then
18735
18736 cat >>confdefs.h <<\_ACEOF
18737 #define const
18738 _ACEOF
18739
18740 fi
18741
18742
18743   { echo "$as_me:$LINENO: checking for signed" >&5
18744 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18745 if test "${bh_cv_c_signed+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h.  */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h.  */
18754
18755 int
18756 main ()
18757 {
18758 signed char x;
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext
18764 if { (ac_try="$ac_compile"
18765 case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_compile") 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } && {
18777          test -z "$ac_c_werror_flag" ||
18778          test ! -s conftest.err
18779        } && test -s conftest.$ac_objext; then
18780   bh_cv_c_signed=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785         bh_cv_c_signed=no
18786 fi
18787
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789 fi
18790 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18791 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18792   if test $bh_cv_c_signed = no; then
18793
18794 cat >>confdefs.h <<\_ACEOF
18795 #define signed
18796 _ACEOF
18797
18798   fi
18799
18800 { echo "$as_me:$LINENO: checking for inline" >&5
18801 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18802 if test "${ac_cv_c_inline+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   ac_cv_c_inline=no
18806 for ac_kw in inline __inline__ __inline; do
18807   cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813 #ifndef __cplusplus
18814 typedef int foo_t;
18815 static $ac_kw foo_t static_foo () {return 0; }
18816 $ac_kw foo_t foo () {return 0; }
18817 #endif
18818
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (ac_try="$ac_compile"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_compile") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } && {
18834          test -z "$ac_c_werror_flag" ||
18835          test ! -s conftest.err
18836        } && test -s conftest.$ac_objext; then
18837   ac_cv_c_inline=$ac_kw
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846   test "$ac_cv_c_inline" != no && break
18847 done
18848
18849 fi
18850 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18851 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18852
18853
18854 case $ac_cv_c_inline in
18855   inline | yes) ;;
18856   *)
18857     case $ac_cv_c_inline in
18858       no) ac_val=;;
18859       *) ac_val=$ac_cv_c_inline;;
18860     esac
18861     cat >>confdefs.h <<_ACEOF
18862 #ifndef __cplusplus
18863 #define inline $ac_val
18864 #endif
18865 _ACEOF
18866     ;;
18867 esac
18868
18869 { echo "$as_me:$LINENO: checking for off_t" >&5
18870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18871 if test "${ac_cv_type_off_t+set}" = set; then
18872   echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874   cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880 $ac_includes_default
18881 typedef off_t ac__type_new_;
18882 int
18883 main ()
18884 {
18885 if ((ac__type_new_ *) 0)
18886   return 0;
18887 if (sizeof (ac__type_new_))
18888   return 0;
18889   ;
18890   return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_compile") 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && {
18907          test -z "$ac_c_werror_flag" ||
18908          test ! -s conftest.err
18909        } && test -s conftest.$ac_objext; then
18910   ac_cv_type_off_t=yes
18911 else
18912   echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915         ac_cv_type_off_t=no
18916 fi
18917
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 fi
18920 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18921 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18922 if test $ac_cv_type_off_t = yes; then
18923   :
18924 else
18925
18926 cat >>confdefs.h <<_ACEOF
18927 #define off_t long int
18928 _ACEOF
18929
18930 fi
18931
18932 { echo "$as_me:$LINENO: checking for size_t" >&5
18933 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18934 if test "${ac_cv_type_size_t+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943 $ac_includes_default
18944 typedef size_t ac__type_new_;
18945 int
18946 main ()
18947 {
18948 if ((ac__type_new_ *) 0)
18949   return 0;
18950 if (sizeof (ac__type_new_))
18951   return 0;
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_compile") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } && {
18970          test -z "$ac_c_werror_flag" ||
18971          test ! -s conftest.err
18972        } && test -s conftest.$ac_objext; then
18973   ac_cv_type_size_t=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978         ac_cv_type_size_t=no
18979 fi
18980
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982 fi
18983 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18984 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18985 if test $ac_cv_type_size_t = yes; then
18986   :
18987 else
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define size_t unsigned int
18991 _ACEOF
18992
18993 fi
18994
18995
18996   { echo "$as_me:$LINENO: checking for long long" >&5
18997 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18998 if test "${ac_cv_type_long_long+set}" = set; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001   cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007 long long ll = 1LL; int i = 63;
19008 int
19009 main ()
19010 {
19011 long long llmax = (long long) -1;
19012      return ll << i | ll >> i | llmax / ll | llmax % ll;
19013   ;
19014   return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_link") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest$ac_exeext &&
19034        $as_test_x conftest$ac_exeext; then
19035   ac_cv_type_long_long=yes
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040         ac_cv_type_long_long=no
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044       conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19047 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19048   if test $ac_cv_type_long_long = yes; then
19049
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_LONG 1
19052 _ACEOF
19053
19054   fi
19055
19056
19057   { echo "$as_me:$LINENO: checking for long double" >&5
19058 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_long_double+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   if test "$GCC" = yes; then
19063        gt_cv_c_long_double=yes
19064      else
19065        cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h.  */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h.  */
19071
19072          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19073          long double foo = 0.0;
19074          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19075          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19076
19077 int
19078 main ()
19079 {
19080
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089   *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092   (eval "$ac_compile") 2>conftest.er1
19093   ac_status=$?
19094   grep -v '^ *+' conftest.er1 >conftest.err
19095   rm -f conftest.er1
19096   cat conftest.err >&5
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } && {
19099          test -z "$ac_c_werror_flag" ||
19100          test ! -s conftest.err
19101        } && test -s conftest.$ac_objext; then
19102   gt_cv_c_long_double=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         gt_cv_c_long_double=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111      fi
19112 fi
19113 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19114 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19115   if test $gt_cv_c_long_double = yes; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_LONG_DOUBLE 1
19119 _ACEOF
19120
19121   fi
19122
19123
19124   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19125 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19126 if test "${gt_cv_c_wchar_t+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129   cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 #include <stddef.h>
19136        wchar_t foo = (wchar_t)'\0';
19137 int
19138 main ()
19139 {
19140
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152   (eval "$ac_compile") 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } && {
19159          test -z "$ac_c_werror_flag" ||
19160          test ! -s conftest.err
19161        } && test -s conftest.$ac_objext; then
19162   gt_cv_c_wchar_t=yes
19163 else
19164   echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167         gt_cv_c_wchar_t=no
19168 fi
19169
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 fi
19172 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19173 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19174   if test $gt_cv_c_wchar_t = yes; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_WCHAR_T 1
19178 _ACEOF
19179
19180   fi
19181
19182
19183   { echo "$as_me:$LINENO: checking for wint_t" >&5
19184 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19185 if test "${gt_cv_c_wint_t+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194 #include <wchar.h>
19195        wint_t foo = (wchar_t)'\0';
19196 int
19197 main ()
19198 {
19199
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_compile") 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } && {
19218          test -z "$ac_c_werror_flag" ||
19219          test ! -s conftest.err
19220        } && test -s conftest.$ac_objext; then
19221   gt_cv_c_wint_t=yes
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226         gt_cv_c_wint_t=no
19227 fi
19228
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230 fi
19231 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19232 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19233   if test $gt_cv_c_wint_t = yes; then
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_WINT_T 1
19237 _ACEOF
19238
19239   fi
19240
19241
19242   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19243 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19244 if test "${gl_cv_header_inttypes_h+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253 #include <sys/types.h>
19254 #include <inttypes.h>
19255 int
19256 main ()
19257 {
19258 uintmax_t i = (uintmax_t) -1;
19259   ;
19260   return 0;
19261 }
19262 _ACEOF
19263 rm -f conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267   *) ac_try_echo=$ac_try;;
19268 esac
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270   (eval "$ac_compile") 2>conftest.er1
19271   ac_status=$?
19272   grep -v '^ *+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } && {
19277          test -z "$ac_c_werror_flag" ||
19278          test ! -s conftest.err
19279        } && test -s conftest.$ac_objext; then
19280   gl_cv_header_inttypes_h=yes
19281 else
19282   echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285         gl_cv_header_inttypes_h=no
19286 fi
19287
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 fi
19290 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19291 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19292   if test $gl_cv_header_inttypes_h = yes; then
19293
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19296 _ACEOF
19297
19298   fi
19299
19300
19301   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19302 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19303 if test "${gl_cv_header_stdint_h+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312 #include <sys/types.h>
19313 #include <stdint.h>
19314 int
19315 main ()
19316 {
19317 uintmax_t i = (uintmax_t) -1;
19318   ;
19319   return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326   *) ac_try_echo=$ac_try;;
19327 esac
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329   (eval "$ac_compile") 2>conftest.er1
19330   ac_status=$?
19331   grep -v '^ *+' conftest.er1 >conftest.err
19332   rm -f conftest.er1
19333   cat conftest.err >&5
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); } && {
19336          test -z "$ac_c_werror_flag" ||
19337          test ! -s conftest.err
19338        } && test -s conftest.$ac_objext; then
19339   gl_cv_header_stdint_h=yes
19340 else
19341   echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19343
19344         gl_cv_header_stdint_h=no
19345 fi
19346
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 fi
19349 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19350 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19351   if test $gl_cv_header_stdint_h = yes; then
19352
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_STDINT_H_WITH_UINTMAX 1
19355 _ACEOF
19356
19357   fi
19358
19359
19360
19361
19362   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19363 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19364 if test "${gt_cv_c_intmax_t+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373
19374 #include <stddef.h>
19375 #include <stdlib.h>
19376 #if HAVE_STDINT_H_WITH_UINTMAX
19377 #include <stdint.h>
19378 #endif
19379 #if HAVE_INTTYPES_H_WITH_UINTMAX
19380 #include <inttypes.h>
19381 #endif
19382
19383 int
19384 main ()
19385 {
19386 intmax_t x = -1;
19387   ;
19388   return 0;
19389 }
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395   *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398   (eval "$ac_compile") 2>conftest.er1
19399   ac_status=$?
19400   grep -v '^ *+' conftest.er1 >conftest.err
19401   rm -f conftest.er1
19402   cat conftest.err >&5
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); } && {
19405          test -z "$ac_c_werror_flag" ||
19406          test ! -s conftest.err
19407        } && test -s conftest.$ac_objext; then
19408   gt_cv_c_intmax_t=yes
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413         gt_cv_c_intmax_t=no
19414 fi
19415
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 fi
19418 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19419 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19420   if test $gt_cv_c_intmax_t = yes; then
19421
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_INTMAX_T 1
19424 _ACEOF
19425
19426   fi
19427
19428
19429
19430   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19431 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19432 if test "${gt_cv_func_printf_posix+set}" = set; then
19433   echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435
19436       if test "$cross_compiling" = yes; then
19437
19438         cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444
19445 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19446   notposix
19447 #endif
19448
19449 _ACEOF
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451   $EGREP "notposix" >/dev/null 2>&1; then
19452   gt_cv_func_printf_posix="guessing no"
19453 else
19454   gt_cv_func_printf_posix="guessing yes"
19455 fi
19456 rm -f conftest*
19457
19458
19459 else
19460   cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466
19467 #include <stdio.h>
19468 #include <string.h>
19469 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19470    dollar expansion (possibly an autoconf bug).  */
19471 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19472 static char buf[100];
19473 int main ()
19474 {
19475   sprintf (buf, format, 33, 55);
19476   return (strcmp (buf, "55 33") != 0);
19477 }
19478 _ACEOF
19479 rm -f conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_link") 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19490   { (case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495   (eval "$ac_try") 2>&5
19496   ac_status=$?
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); }; }; then
19499   gt_cv_func_printf_posix=yes
19500 else
19501   echo "$as_me: program exited with status $ac_status" >&5
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505 ( exit $ac_status )
19506 gt_cv_func_printf_posix=no
19507 fi
19508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19509 fi
19510
19511
19512
19513 fi
19514 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19515 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19516   case $gt_cv_func_printf_posix in
19517     *yes)
19518
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_POSIX_PRINTF 1
19521 _ACEOF
19522
19523       ;;
19524   esac
19525
19526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19527 # for constant arguments.  Useless!
19528 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19529 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19530 if test "${ac_cv_working_alloca_h+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539 #include <alloca.h>
19540 int
19541 main ()
19542 {
19543 char *p = (char *) alloca (2 * sizeof (int));
19544                           if (p) return 0;
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (ac_try="$ac_link"
19551 case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556   (eval "$ac_link") 2>conftest.er1
19557   ac_status=$?
19558   grep -v '^ *+' conftest.er1 >conftest.err
19559   rm -f conftest.er1
19560   cat conftest.err >&5
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } && {
19563          test -z "$ac_c_werror_flag" ||
19564          test ! -s conftest.err
19565        } && test -s conftest$ac_exeext &&
19566        $as_test_x conftest$ac_exeext; then
19567   ac_cv_working_alloca_h=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_working_alloca_h=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576       conftest$ac_exeext conftest.$ac_ext
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19579 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19580 if test $ac_cv_working_alloca_h = yes; then
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ALLOCA_H 1
19584 _ACEOF
19585
19586 fi
19587
19588 { echo "$as_me:$LINENO: checking for alloca" >&5
19589 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_alloca_works+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #ifdef __GNUC__
19600 # define alloca __builtin_alloca
19601 #else
19602 # ifdef _MSC_VER
19603 #  include <malloc.h>
19604 #  define alloca _alloca
19605 # else
19606 #  ifdef HAVE_ALLOCA_H
19607 #   include <alloca.h>
19608 #  else
19609 #   ifdef _AIX
19610  #pragma alloca
19611 #   else
19612 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19613 char *alloca ();
19614 #    endif
19615 #   endif
19616 #  endif
19617 # endif
19618 #endif
19619
19620 int
19621 main ()
19622 {
19623 char *p = (char *) alloca (1);
19624                                     if (p) return 0;
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_link") 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } && {
19643          test -z "$ac_c_werror_flag" ||
19644          test ! -s conftest.err
19645        } && test -s conftest$ac_exeext &&
19646        $as_test_x conftest$ac_exeext; then
19647   ac_cv_func_alloca_works=yes
19648 else
19649   echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652         ac_cv_func_alloca_works=no
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656       conftest$ac_exeext conftest.$ac_ext
19657 fi
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19660
19661 if test $ac_cv_func_alloca_works = yes; then
19662
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ALLOCA 1
19665 _ACEOF
19666
19667 else
19668   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19669 # that cause trouble.  Some versions do not even contain alloca or
19670 # contain a buggy version.  If you still want to use their alloca,
19671 # use ar to extract alloca.o from them instead of compiling alloca.c.
19672
19673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define C_ALLOCA 1
19677 _ACEOF
19678
19679
19680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19682 if test "${ac_cv_os_cray+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 #if defined CRAY && ! defined CRAY2
19692 webecray
19693 #else
19694 wenotbecray
19695 #endif
19696
19697 _ACEOF
19698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19699   $EGREP "webecray" >/dev/null 2>&1; then
19700   ac_cv_os_cray=yes
19701 else
19702   ac_cv_os_cray=no
19703 fi
19704 rm -f conftest*
19705
19706 fi
19707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19709 if test $ac_cv_os_cray = yes; then
19710   for ac_func in _getb67 GETB67 getb67; do
19711     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19725 #define $ac_func innocuous_$ac_func
19726
19727 /* System header to define __stub macros and hopefully few prototypes,
19728     which can conflict with char $ac_func (); below.
19729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730     <limits.h> exists even on freestanding compilers.  */
19731
19732 #ifdef __STDC__
19733 # include <limits.h>
19734 #else
19735 # include <assert.h>
19736 #endif
19737
19738 #undef $ac_func
19739
19740 /* Override any GCC internal prototype to avoid an error.
19741    Use char because int might match the return type of a GCC
19742    builtin and then its argument prototype would still apply.  */
19743 #ifdef __cplusplus
19744 extern "C"
19745 #endif
19746 char $ac_func ();
19747 /* The GNU C library defines this for functions which it implements
19748     to always fail with ENOSYS.  Some functions are actually named
19749     something starting with __ and the normal name is an alias.  */
19750 #if defined __stub_$ac_func || defined __stub___$ac_func
19751 choke me
19752 #endif
19753
19754 int
19755 main ()
19756 {
19757 return $ac_func ();
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_link") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } && {
19776          test -z "$ac_c_werror_flag" ||
19777          test ! -s conftest.err
19778        } && test -s conftest$ac_exeext &&
19779        $as_test_x conftest$ac_exeext; then
19780   eval "$as_ac_var=yes"
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         eval "$as_ac_var=no"
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789       conftest$ac_exeext conftest.$ac_ext
19790 fi
19791 ac_res=`eval echo '${'$as_ac_var'}'`
19792                { echo "$as_me:$LINENO: result: $ac_res" >&5
19793 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19795
19796 cat >>confdefs.h <<_ACEOF
19797 #define CRAY_STACKSEG_END $ac_func
19798 _ACEOF
19799
19800     break
19801 fi
19802
19803   done
19804 fi
19805
19806 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19807 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19808 if test "${ac_cv_c_stack_direction+set}" = set; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   if test "$cross_compiling" = yes; then
19812   ac_cv_c_stack_direction=0
19813 else
19814   cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820 $ac_includes_default
19821 int
19822 find_stack_direction ()
19823 {
19824   static char *addr = 0;
19825   auto char dummy;
19826   if (addr == 0)
19827     {
19828       addr = &dummy;
19829       return find_stack_direction ();
19830     }
19831   else
19832     return (&dummy > addr) ? 1 : -1;
19833 }
19834
19835 int
19836 main ()
19837 {
19838   return find_stack_direction () < 0;
19839 }
19840 _ACEOF
19841 rm -f conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_link") 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19852   { (case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_try") 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   ac_cv_c_stack_direction=1
19862 else
19863   echo "$as_me: program exited with status $ac_status" >&5
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ( exit $ac_status )
19868 ac_cv_c_stack_direction=-1
19869 fi
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19871 fi
19872
19873
19874 fi
19875 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19876 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19877
19878 cat >>confdefs.h <<_ACEOF
19879 #define STACK_DIRECTION $ac_cv_c_stack_direction
19880 _ACEOF
19881
19882
19883 fi
19884
19885
19886
19887 for ac_header in stdlib.h unistd.h
19888 do
19889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19891   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 fi
19896 ac_res=`eval echo '${'$as_ac_Header'}'`
19897                { echo "$as_me:$LINENO: result: $ac_res" >&5
19898 echo "${ECHO_T}$ac_res" >&6; }
19899 else
19900   # Is the header compilable?
19901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 $ac_includes_default
19910 #include <$ac_header>
19911 _ACEOF
19912 rm -f conftest.$ac_objext
19913 if { (ac_try="$ac_compile"
19914 case "(($ac_try" in
19915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916   *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919   (eval "$ac_compile") 2>conftest.er1
19920   ac_status=$?
19921   grep -v '^ *+' conftest.er1 >conftest.err
19922   rm -f conftest.er1
19923   cat conftest.err >&5
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); } && {
19926          test -z "$ac_c_werror_flag" ||
19927          test ! -s conftest.err
19928        } && test -s conftest.$ac_objext; then
19929   ac_header_compiler=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         ac_header_compiler=no
19935 fi
19936
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6; }
19940
19941 # Is the header present?
19942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <$ac_header>
19951 _ACEOF
19952 if { (ac_try="$ac_cpp conftest.$ac_ext"
19953 case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } >/dev/null && {
19965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19966          test ! -s conftest.err
19967        }; then
19968   ac_header_preproc=yes
19969 else
19970   echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973   ac_header_preproc=no
19974 fi
19975
19976 rm -f conftest.err conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6; }
19979
19980 # So?  What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19982   yes:no: )
19983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19987     ac_header_preproc=yes
19988     ;;
19989   no:yes:* )
19990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20002
20003     ;;
20004 esac
20005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   eval "$as_ac_Header=\$ac_header_preproc"
20011 fi
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013                { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20015
20016 fi
20017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20018   cat >>confdefs.h <<_ACEOF
20019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20020 _ACEOF
20021
20022 fi
20023
20024 done
20025
20026
20027 for ac_func in getpagesize
20028 do
20029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20033   echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035   cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20043 #define $ac_func innocuous_$ac_func
20044
20045 /* System header to define __stub macros and hopefully few prototypes,
20046     which can conflict with char $ac_func (); below.
20047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048     <limits.h> exists even on freestanding compilers.  */
20049
20050 #ifdef __STDC__
20051 # include <limits.h>
20052 #else
20053 # include <assert.h>
20054 #endif
20055
20056 #undef $ac_func
20057
20058 /* Override any GCC internal prototype to avoid an error.
20059    Use char because int might match the return type of a GCC
20060    builtin and then its argument prototype would still apply.  */
20061 #ifdef __cplusplus
20062 extern "C"
20063 #endif
20064 char $ac_func ();
20065 /* The GNU C library defines this for functions which it implements
20066     to always fail with ENOSYS.  Some functions are actually named
20067     something starting with __ and the normal name is an alias.  */
20068 #if defined __stub_$ac_func || defined __stub___$ac_func
20069 choke me
20070 #endif
20071
20072 int
20073 main ()
20074 {
20075 return $ac_func ();
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084   *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087   (eval "$ac_link") 2>conftest.er1
20088   ac_status=$?
20089   grep -v '^ *+' conftest.er1 >conftest.err
20090   rm -f conftest.er1
20091   cat conftest.err >&5
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); } && {
20094          test -z "$ac_c_werror_flag" ||
20095          test ! -s conftest.err
20096        } && test -s conftest$ac_exeext &&
20097        $as_test_x conftest$ac_exeext; then
20098   eval "$as_ac_var=yes"
20099 else
20100   echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103         eval "$as_ac_var=no"
20104 fi
20105
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107       conftest$ac_exeext conftest.$ac_ext
20108 fi
20109 ac_res=`eval echo '${'$as_ac_var'}'`
20110                { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113   cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20115 _ACEOF
20116
20117 fi
20118 done
20119
20120 { echo "$as_me:$LINENO: checking for working mmap" >&5
20121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125   if test "$cross_compiling" = yes; then
20126   ac_cv_func_mmap_fixed_mapped=no
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 $ac_includes_default
20135 /* malloc might have been renamed as rpl_malloc. */
20136 #undef malloc
20137
20138 /* Thanks to Mike Haertel and Jim Avera for this test.
20139    Here is a matrix of mmap possibilities:
20140         mmap private not fixed
20141         mmap private fixed at somewhere currently unmapped
20142         mmap private fixed at somewhere already mapped
20143         mmap shared not fixed
20144         mmap shared fixed at somewhere currently unmapped
20145         mmap shared fixed at somewhere already mapped
20146    For private mappings, we should verify that changes cannot be read()
20147    back from the file, nor mmap's back from the file at a different
20148    address.  (There have been systems where private was not correctly
20149    implemented like the infamous i386 svr4.0, and systems where the
20150    VM page cache was not coherent with the file system buffer cache
20151    like early versions of FreeBSD and possibly contemporary NetBSD.)
20152    For shared mappings, we should conversely verify that changes get
20153    propagated back to all the places they're supposed to be.
20154
20155    Grep wants private fixed already mapped.
20156    The main things grep needs to know about mmap are:
20157    * does it exist and is it safe to write into the mmap'd area
20158    * how to use it (BSD variants)  */
20159
20160 #include <fcntl.h>
20161 #include <sys/mman.h>
20162
20163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20164 char *malloc ();
20165 #endif
20166
20167 /* This mess was copied from the GNU getpagesize.h.  */
20168 #ifndef HAVE_GETPAGESIZE
20169 /* Assume that all systems that can run configure have sys/param.h.  */
20170 # ifndef HAVE_SYS_PARAM_H
20171 #  define HAVE_SYS_PARAM_H 1
20172 # endif
20173
20174 # ifdef _SC_PAGESIZE
20175 #  define getpagesize() sysconf(_SC_PAGESIZE)
20176 # else /* no _SC_PAGESIZE */
20177 #  ifdef HAVE_SYS_PARAM_H
20178 #   include <sys/param.h>
20179 #   ifdef EXEC_PAGESIZE
20180 #    define getpagesize() EXEC_PAGESIZE
20181 #   else /* no EXEC_PAGESIZE */
20182 #    ifdef NBPG
20183 #     define getpagesize() NBPG * CLSIZE
20184 #     ifndef CLSIZE
20185 #      define CLSIZE 1
20186 #     endif /* no CLSIZE */
20187 #    else /* no NBPG */
20188 #     ifdef NBPC
20189 #      define getpagesize() NBPC
20190 #     else /* no NBPC */
20191 #      ifdef PAGESIZE
20192 #       define getpagesize() PAGESIZE
20193 #      endif /* PAGESIZE */
20194 #     endif /* no NBPC */
20195 #    endif /* no NBPG */
20196 #   endif /* no EXEC_PAGESIZE */
20197 #  else /* no HAVE_SYS_PARAM_H */
20198 #   define getpagesize() 8192   /* punt totally */
20199 #  endif /* no HAVE_SYS_PARAM_H */
20200 # endif /* no _SC_PAGESIZE */
20201
20202 #endif /* no HAVE_GETPAGESIZE */
20203
20204 int
20205 main ()
20206 {
20207   char *data, *data2, *data3;
20208   int i, pagesize;
20209   int fd;
20210
20211   pagesize = getpagesize ();
20212
20213   /* First, make a file with some known garbage in it. */
20214   data = (char *) malloc (pagesize);
20215   if (!data)
20216     return 1;
20217   for (i = 0; i < pagesize; ++i)
20218     *(data + i) = rand ();
20219   umask (0);
20220   fd = creat ("conftest.mmap", 0600);
20221   if (fd < 0)
20222     return 1;
20223   if (write (fd, data, pagesize) != pagesize)
20224     return 1;
20225   close (fd);
20226
20227   /* Next, try to mmap the file at a fixed address which already has
20228      something else allocated at it.  If we can, also make sure that
20229      we see the same garbage.  */
20230   fd = open ("conftest.mmap", O_RDWR);
20231   if (fd < 0)
20232     return 1;
20233   data2 = (char *) malloc (2 * pagesize);
20234   if (!data2)
20235     return 1;
20236   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20237   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20238                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20239     return 1;
20240   for (i = 0; i < pagesize; ++i)
20241     if (*(data + i) != *(data2 + i))
20242       return 1;
20243
20244   /* Finally, make sure that changes to the mapped area do not
20245      percolate back to the file as seen by read().  (This is a bug on
20246      some variants of i386 svr4.0.)  */
20247   for (i = 0; i < pagesize; ++i)
20248     *(data2 + i) = *(data2 + i) + 1;
20249   data3 = (char *) malloc (pagesize);
20250   if (!data3)
20251     return 1;
20252   if (read (fd, data3, pagesize) != pagesize)
20253     return 1;
20254   for (i = 0; i < pagesize; ++i)
20255     if (*(data + i) != *(data3 + i))
20256       return 1;
20257   close (fd);
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest$ac_exeext
20262 if { (ac_try="$ac_link"
20263 case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_link") 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20272   { (case "(($ac_try" in
20273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274   *) ac_try_echo=$ac_try;;
20275 esac
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277   (eval "$ac_try") 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; }; then
20281   ac_cv_func_mmap_fixed_mapped=yes
20282 else
20283   echo "$as_me: program exited with status $ac_status" >&5
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ( exit $ac_status )
20288 ac_cv_func_mmap_fixed_mapped=no
20289 fi
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20291 fi
20292
20293
20294 fi
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20296 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20298
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_MMAP 1
20301 _ACEOF
20302
20303 fi
20304 rm -f conftest.mmap
20305
20306
20307     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20308 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20309 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312   cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 #include <features.h>
20320 #ifdef __GNU_LIBRARY__
20321  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20322   Lucky GNU user
20323  #endif
20324 #endif
20325
20326 _ACEOF
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20329   ac_cv_gnu_library_2_1=yes
20330 else
20331   ac_cv_gnu_library_2_1=no
20332 fi
20333 rm -f conftest*
20334
20335
20336
20337 fi
20338 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20339 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20340
20341     GLIBC21="$ac_cv_gnu_library_2_1"
20342
20343
20344
20345
20346   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20347 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20348 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351
20352       if test "$cross_compiling" = yes; then
20353
20354           # Guess based on the CPU.
20355           case "$host_cpu" in
20356             alpha* | i3456786 | m68k | s390*)
20357               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20358             *)
20359               gt_cv_int_divbyzero_sigfpe="guessing no";;
20360           esac
20361
20362 else
20363   cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369
20370 #include <stdlib.h>
20371 #include <signal.h>
20372
20373 static void
20374 #ifdef __cplusplus
20375 sigfpe_handler (int sig)
20376 #else
20377 sigfpe_handler (sig) int sig;
20378 #endif
20379 {
20380   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20381   exit (sig != SIGFPE);
20382 }
20383
20384 int x = 1;
20385 int y = 0;
20386 int z;
20387 int nan;
20388
20389 int main ()
20390 {
20391   signal (SIGFPE, sigfpe_handler);
20392 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20393 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20394   signal (SIGTRAP, sigfpe_handler);
20395 #endif
20396 /* Linux/SPARC yields signal SIGILL.  */
20397 #if defined (__sparc__) && defined (__linux__)
20398   signal (SIGILL, sigfpe_handler);
20399 #endif
20400
20401   z = x / y;
20402   nan = y / y;
20403   exit (1);
20404 }
20405
20406 _ACEOF
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411   *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414   (eval "$ac_link") 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418   { (case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_try") 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   gt_cv_int_divbyzero_sigfpe=yes
20428 else
20429   echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ( exit $ac_status )
20434 gt_cv_int_divbyzero_sigfpe=no
20435 fi
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20437 fi
20438
20439
20440
20441 fi
20442 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20443 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20444   case "$gt_cv_int_divbyzero_sigfpe" in
20445     *yes) value=1;;
20446     *) value=0;;
20447   esac
20448
20449 cat >>confdefs.h <<_ACEOF
20450 #define INTDIV0_RAISES_SIGFPE $value
20451 _ACEOF
20452
20453
20454
20455   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20456 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20457 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20458   echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460   cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h.  */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h.  */
20466 unsigned long long ull = 1ULL; int i = 63;
20467 int
20468 main ()
20469 {
20470 unsigned long long ullmax = (unsigned long long) -1;
20471      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20472   ;
20473   return 0;
20474 }
20475 _ACEOF
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480   *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483   (eval "$ac_link") 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } && {
20490          test -z "$ac_c_werror_flag" ||
20491          test ! -s conftest.err
20492        } && test -s conftest$ac_exeext &&
20493        $as_test_x conftest$ac_exeext; then
20494   ac_cv_type_unsigned_long_long=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499         ac_cv_type_unsigned_long_long=no
20500 fi
20501
20502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20503       conftest$ac_exeext conftest.$ac_ext
20504 fi
20505 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20506 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20507   if test $ac_cv_type_unsigned_long_long = yes; then
20508
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_UNSIGNED_LONG_LONG 1
20511 _ACEOF
20512
20513   fi
20514
20515
20516
20517
20518   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20519
20520     test $ac_cv_type_unsigned_long_long = yes \
20521       && ac_type='unsigned long long' \
20522       || ac_type='unsigned long'
20523
20524 cat >>confdefs.h <<_ACEOF
20525 #define uintmax_t $ac_type
20526 _ACEOF
20527
20528   else
20529
20530 cat >>confdefs.h <<\_ACEOF
20531 #define HAVE_UINTMAX_T 1
20532 _ACEOF
20533
20534   fi
20535
20536
20537   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20538 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20539 if test "${gt_cv_header_inttypes_h+set}" = set; then
20540   echo $ECHO_N "(cached) $ECHO_C" >&6
20541 else
20542
20543     cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h.  */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h.  */
20549 #include <sys/types.h>
20550 #include <inttypes.h>
20551 int
20552 main ()
20553 {
20554
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_compile") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest.$ac_objext; then
20576   gt_cv_header_inttypes_h=yes
20577 else
20578   echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581         gt_cv_header_inttypes_h=no
20582 fi
20583
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585
20586 fi
20587 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20588 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20589   if test $gt_cv_header_inttypes_h = yes; then
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_INTTYPES_H 1
20593 _ACEOF
20594
20595   fi
20596
20597
20598
20599   if test $gt_cv_header_inttypes_h = yes; then
20600     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20601 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20602 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20603   echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605
20606         cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 #include <inttypes.h>
20613 #ifdef PRId32
20614 char *p = PRId32;
20615 #endif
20616
20617 int
20618 main ()
20619 {
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_compile") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } && {
20639          test -z "$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        } && test -s conftest.$ac_objext; then
20642   gt_cv_inttypes_pri_broken=no
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         gt_cv_inttypes_pri_broken=yes
20648 fi
20649
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651
20652 fi
20653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20655   fi
20656   if test "$gt_cv_inttypes_pri_broken" = yes; then
20657
20658 cat >>confdefs.h <<_ACEOF
20659 #define PRI_MACROS_BROKEN 1
20660 _ACEOF
20661
20662   fi
20663
20664
20665
20666 for ac_header in stdint.h
20667 do
20668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 fi
20675 ac_res=`eval echo '${'$as_ac_Header'}'`
20676                { echo "$as_me:$LINENO: result: $ac_res" >&5
20677 echo "${ECHO_T}$ac_res" >&6; }
20678 else
20679   # Is the header compilable?
20680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 $ac_includes_default
20689 #include <$ac_header>
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_compile") 2>conftest.er1
20699   ac_status=$?
20700   grep -v '^ *+' conftest.er1 >conftest.err
20701   rm -f conftest.er1
20702   cat conftest.err >&5
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } && {
20705          test -z "$ac_c_werror_flag" ||
20706          test ! -s conftest.err
20707        } && test -s conftest.$ac_objext; then
20708   ac_header_compiler=yes
20709 else
20710   echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713         ac_header_compiler=no
20714 fi
20715
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20718 echo "${ECHO_T}$ac_header_compiler" >&6; }
20719
20720 # Is the header present?
20721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 #include <$ac_header>
20730 _ACEOF
20731 if { (ac_try="$ac_cpp conftest.$ac_ext"
20732 case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } >/dev/null && {
20744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20745          test ! -s conftest.err
20746        }; then
20747   ac_header_preproc=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752   ac_header_preproc=no
20753 fi
20754
20755 rm -f conftest.err conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20757 echo "${ECHO_T}$ac_header_preproc" >&6; }
20758
20759 # So?  What about this header?
20760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20761   yes:no: )
20762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20766     ac_header_preproc=yes
20767     ;;
20768   no:yes:* )
20769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20781
20782     ;;
20783 esac
20784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20787   echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789   eval "$as_ac_Header=\$ac_header_preproc"
20790 fi
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792                { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20794
20795 fi
20796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20797   cat >>confdefs.h <<_ACEOF
20798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20799 _ACEOF
20800
20801 fi
20802
20803 done
20804
20805     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20806 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20807   result=
20808   cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814
20815 #include <limits.h>
20816 #if HAVE_STDINT_H
20817 #include <stdint.h>
20818 #endif
20819 #ifdef SIZE_MAX
20820 Found it
20821 #endif
20822
20823 _ACEOF
20824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20825   $EGREP "Found it" >/dev/null 2>&1; then
20826   result=yes
20827 fi
20828 rm -f conftest*
20829
20830   if test -z "$result"; then
20831                     if test "$cross_compiling" = yes; then
20832   # Depending upon the size, compute the lo and hi bounds.
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 #include <stddef.h>
20840 int
20841 main ()
20842 {
20843 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20844 test_array [0] = 0
20845
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_compile") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } && {
20864          test -z "$ac_c_werror_flag" ||
20865          test ! -s conftest.err
20866        } && test -s conftest.$ac_objext; then
20867   ac_lo=0 ac_mid=0
20868   while :; do
20869     cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #include <stddef.h>
20876 int
20877 main ()
20878 {
20879 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20880 test_array [0] = 0
20881
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_compile") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest.$ac_objext; then
20903   ac_hi=$ac_mid; break
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_lo=`expr $ac_mid + 1`
20909                         if test $ac_lo -le $ac_mid; then
20910                           ac_lo= ac_hi=
20911                           break
20912                         fi
20913                         ac_mid=`expr 2 '*' $ac_mid + 1`
20914 fi
20915
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917   done
20918 else
20919   echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922         cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <stddef.h>
20929 int
20930 main ()
20931 {
20932 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20933 test_array [0] = 0
20934
20935   ;
20936   return 0;
20937 }
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943   *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946   (eval "$ac_compile") 2>conftest.er1
20947   ac_status=$?
20948   grep -v '^ *+' conftest.er1 >conftest.err
20949   rm -f conftest.er1
20950   cat conftest.err >&5
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } && {
20953          test -z "$ac_c_werror_flag" ||
20954          test ! -s conftest.err
20955        } && test -s conftest.$ac_objext; then
20956   ac_hi=-1 ac_mid=-1
20957   while :; do
20958     cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964 #include <stddef.h>
20965 int
20966 main ()
20967 {
20968 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20969 test_array [0] = 0
20970
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_compile") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && {
20989          test -z "$ac_c_werror_flag" ||
20990          test ! -s conftest.err
20991        } && test -s conftest.$ac_objext; then
20992   ac_lo=$ac_mid; break
20993 else
20994   echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997         ac_hi=`expr '(' $ac_mid ')' - 1`
20998                         if test $ac_mid -le $ac_hi; then
20999                           ac_lo= ac_hi=
21000                           break
21001                         fi
21002                         ac_mid=`expr 2 '*' $ac_mid`
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006   done
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_lo= ac_hi=
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 # Binary search between lo and hi bounds.
21019 while test "x$ac_lo" != "x$ac_hi"; do
21020   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21021   cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 #include <stddef.h>
21028 int
21029 main ()
21030 {
21031 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21032 test_array [0] = 0
21033
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_compile") 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } && {
21052          test -z "$ac_c_werror_flag" ||
21053          test ! -s conftest.err
21054        } && test -s conftest.$ac_objext; then
21055   ac_hi=$ac_mid
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060         ac_lo=`expr '(' $ac_mid ')' + 1`
21061 fi
21062
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 done
21065 case $ac_lo in
21066 ?*) res_hi=$ac_lo;;
21067 '') result=? ;;
21068 esac
21069 else
21070   cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076 #include <stddef.h>
21077 static long int longval () { return ~(size_t)0 / 10; }
21078 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21079 #include <stdio.h>
21080 #include <stdlib.h>
21081 int
21082 main ()
21083 {
21084
21085   FILE *f = fopen ("conftest.val", "w");
21086   if (! f)
21087     return 1;
21088   if ((~(size_t)0 / 10) < 0)
21089     {
21090       long int i = longval ();
21091       if (i != (~(size_t)0 / 10))
21092         return 1;
21093       fprintf (f, "%ld\n", i);
21094     }
21095   else
21096     {
21097       unsigned long int i = ulongval ();
21098       if (i != (~(size_t)0 / 10))
21099         return 1;
21100       fprintf (f, "%lu\n", i);
21101     }
21102   return ferror (f) || fclose (f) != 0;
21103
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_link") 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21119   { (case "(($ac_try" in
21120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121   *) ac_try_echo=$ac_try;;
21122 esac
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124   (eval "$ac_try") 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; }; then
21128   res_hi=`cat conftest.val`
21129 else
21130   echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 ( exit $ac_status )
21135 result=?
21136 fi
21137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21138 fi
21139 rm -f conftest.val
21140
21141     if test "$cross_compiling" = yes; then
21142   # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h.  */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h.  */
21149 #include <stddef.h>
21150 int
21151 main ()
21152 {
21153 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21154 test_array [0] = 0
21155
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164   *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167   (eval "$ac_compile") 2>conftest.er1
21168   ac_status=$?
21169   grep -v '^ *+' conftest.er1 >conftest.err
21170   rm -f conftest.er1
21171   cat conftest.err >&5
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } && {
21174          test -z "$ac_c_werror_flag" ||
21175          test ! -s conftest.err
21176        } && test -s conftest.$ac_objext; then
21177   ac_lo=0 ac_mid=0
21178   while :; do
21179     cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185 #include <stddef.h>
21186 int
21187 main ()
21188 {
21189 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21190 test_array [0] = 0
21191
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_compile") 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } && {
21210          test -z "$ac_c_werror_flag" ||
21211          test ! -s conftest.err
21212        } && test -s conftest.$ac_objext; then
21213   ac_hi=$ac_mid; break
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218         ac_lo=`expr $ac_mid + 1`
21219                         if test $ac_lo -le $ac_mid; then
21220                           ac_lo= ac_hi=
21221                           break
21222                         fi
21223                         ac_mid=`expr 2 '*' $ac_mid + 1`
21224 fi
21225
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227   done
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232         cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 #include <stddef.h>
21239 int
21240 main ()
21241 {
21242 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21243 test_array [0] = 0
21244
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253   *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256   (eval "$ac_compile") 2>conftest.er1
21257   ac_status=$?
21258   grep -v '^ *+' conftest.er1 >conftest.err
21259   rm -f conftest.er1
21260   cat conftest.err >&5
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); } && {
21263          test -z "$ac_c_werror_flag" ||
21264          test ! -s conftest.err
21265        } && test -s conftest.$ac_objext; then
21266   ac_hi=-1 ac_mid=-1
21267   while :; do
21268     cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274 #include <stddef.h>
21275 int
21276 main ()
21277 {
21278 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21279 test_array [0] = 0
21280
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_compile") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && {
21299          test -z "$ac_c_werror_flag" ||
21300          test ! -s conftest.err
21301        } && test -s conftest.$ac_objext; then
21302   ac_lo=$ac_mid; break
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307         ac_hi=`expr '(' $ac_mid ')' - 1`
21308                         if test $ac_mid -le $ac_hi; then
21309                           ac_lo= ac_hi=
21310                           break
21311                         fi
21312                         ac_mid=`expr 2 '*' $ac_mid`
21313 fi
21314
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316   done
21317 else
21318   echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321         ac_lo= ac_hi=
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 fi
21326
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 # Binary search between lo and hi bounds.
21329 while test "x$ac_lo" != "x$ac_hi"; do
21330   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21331   cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #include <stddef.h>
21338 int
21339 main ()
21340 {
21341 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21342 test_array [0] = 0
21343
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_compile") 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } && {
21362          test -z "$ac_c_werror_flag" ||
21363          test ! -s conftest.err
21364        } && test -s conftest.$ac_objext; then
21365   ac_hi=$ac_mid
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370         ac_lo=`expr '(' $ac_mid ')' + 1`
21371 fi
21372
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 done
21375 case $ac_lo in
21376 ?*) res_lo=$ac_lo;;
21377 '') result=? ;;
21378 esac
21379 else
21380   cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386 #include <stddef.h>
21387 static long int longval () { return ~(size_t)0 % 10; }
21388 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21389 #include <stdio.h>
21390 #include <stdlib.h>
21391 int
21392 main ()
21393 {
21394
21395   FILE *f = fopen ("conftest.val", "w");
21396   if (! f)
21397     return 1;
21398   if ((~(size_t)0 % 10) < 0)
21399     {
21400       long int i = longval ();
21401       if (i != (~(size_t)0 % 10))
21402         return 1;
21403       fprintf (f, "%ld\n", i);
21404     }
21405   else
21406     {
21407       unsigned long int i = ulongval ();
21408       if (i != (~(size_t)0 % 10))
21409         return 1;
21410       fprintf (f, "%lu\n", i);
21411     }
21412   return ferror (f) || fclose (f) != 0;
21413
21414   ;
21415   return 0;
21416 }
21417 _ACEOF
21418 rm -f conftest$ac_exeext
21419 if { (ac_try="$ac_link"
21420 case "(($ac_try" in
21421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422   *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425   (eval "$ac_link") 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429   { (case "(($ac_try" in
21430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431   *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434   (eval "$ac_try") 2>&5
21435   ac_status=$?
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); }; }; then
21438   res_lo=`cat conftest.val`
21439 else
21440   echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ( exit $ac_status )
21445 result=?
21446 fi
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448 fi
21449 rm -f conftest.val
21450
21451     if test "$cross_compiling" = yes; then
21452   # Depending upon the size, compute the lo and hi bounds.
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459 #include <stddef.h>
21460 int
21461 main ()
21462 {
21463 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21464 test_array [0] = 0
21465
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474   *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477   (eval "$ac_compile") 2>conftest.er1
21478   ac_status=$?
21479   grep -v '^ *+' conftest.er1 >conftest.err
21480   rm -f conftest.er1
21481   cat conftest.err >&5
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); } && {
21484          test -z "$ac_c_werror_flag" ||
21485          test ! -s conftest.err
21486        } && test -s conftest.$ac_objext; then
21487   ac_lo=0 ac_mid=0
21488   while :; do
21489     cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495 #include <stddef.h>
21496 int
21497 main ()
21498 {
21499 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21500 test_array [0] = 0
21501
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext
21507 if { (ac_try="$ac_compile"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_compile") 2>conftest.er1
21514   ac_status=$?
21515   grep -v '^ *+' conftest.er1 >conftest.err
21516   rm -f conftest.er1
21517   cat conftest.err >&5
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); } && {
21520          test -z "$ac_c_werror_flag" ||
21521          test ! -s conftest.err
21522        } && test -s conftest.$ac_objext; then
21523   ac_hi=$ac_mid; break
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528         ac_lo=`expr $ac_mid + 1`
21529                         if test $ac_lo -le $ac_mid; then
21530                           ac_lo= ac_hi=
21531                           break
21532                         fi
21533                         ac_mid=`expr 2 '*' $ac_mid + 1`
21534 fi
21535
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537   done
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542         cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h.  */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h.  */
21548 #include <stddef.h>
21549 int
21550 main ()
21551 {
21552 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21553 test_array [0] = 0
21554
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_compile") 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } && {
21573          test -z "$ac_c_werror_flag" ||
21574          test ! -s conftest.err
21575        } && test -s conftest.$ac_objext; then
21576   ac_hi=-1 ac_mid=-1
21577   while :; do
21578     cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 #include <stddef.h>
21585 int
21586 main ()
21587 {
21588 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21589 test_array [0] = 0
21590
21591   ;
21592   return 0;
21593 }
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_compile") 2>conftest.er1
21603   ac_status=$?
21604   grep -v '^ *+' conftest.er1 >conftest.err
21605   rm -f conftest.er1
21606   cat conftest.err >&5
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && {
21609          test -z "$ac_c_werror_flag" ||
21610          test ! -s conftest.err
21611        } && test -s conftest.$ac_objext; then
21612   ac_lo=$ac_mid; break
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617         ac_hi=`expr '(' $ac_mid ')' - 1`
21618                         if test $ac_mid -le $ac_hi; then
21619                           ac_lo= ac_hi=
21620                           break
21621                         fi
21622                         ac_mid=`expr 2 '*' $ac_mid`
21623 fi
21624
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626   done
21627 else
21628   echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631         ac_lo= ac_hi=
21632 fi
21633
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 # Binary search between lo and hi bounds.
21639 while test "x$ac_lo" != "x$ac_hi"; do
21640   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 #include <stddef.h>
21648 int
21649 main ()
21650 {
21651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21652 test_array [0] = 0
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_compile") 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && {
21672          test -z "$ac_c_werror_flag" ||
21673          test ! -s conftest.err
21674        } && test -s conftest.$ac_objext; then
21675   ac_hi=$ac_mid
21676 else
21677   echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680         ac_lo=`expr '(' $ac_mid ')' + 1`
21681 fi
21682
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 done
21685 case $ac_lo in
21686 ?*) fits_in_uint=$ac_lo;;
21687 '') result=? ;;
21688 esac
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 #include <stddef.h>
21697 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21698 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21699 #include <stdio.h>
21700 #include <stdlib.h>
21701 int
21702 main ()
21703 {
21704
21705   FILE *f = fopen ("conftest.val", "w");
21706   if (! f)
21707     return 1;
21708   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21709     {
21710       long int i = longval ();
21711       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21712         return 1;
21713       fprintf (f, "%ld\n", i);
21714     }
21715   else
21716     {
21717       unsigned long int i = ulongval ();
21718       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21719         return 1;
21720       fprintf (f, "%lu\n", i);
21721     }
21722   return ferror (f) || fclose (f) != 0;
21723
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732   *) ac_try_echo=$ac_try;;
21733 esac
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735   (eval "$ac_link") 2>&5
21736   ac_status=$?
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21739   { (case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_try") 2>&5
21745   ac_status=$?
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); }; }; then
21748   fits_in_uint=`cat conftest.val`
21749 else
21750   echo "$as_me: program exited with status $ac_status" >&5
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 ( exit $ac_status )
21755 result=?
21756 fi
21757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21758 fi
21759 rm -f conftest.val
21760
21761     if test "$fits_in_uint" = 1; then
21762                   cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h.  */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h.  */
21768 #include <stddef.h>
21769         extern size_t foo;
21770         extern unsigned long foo;
21771
21772 int
21773 main ()
21774 {
21775
21776   ;
21777   return 0;
21778 }
21779 _ACEOF
21780 rm -f conftest.$ac_objext
21781 if { (ac_try="$ac_compile"
21782 case "(($ac_try" in
21783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784   *) ac_try_echo=$ac_try;;
21785 esac
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787   (eval "$ac_compile") 2>conftest.er1
21788   ac_status=$?
21789   grep -v '^ *+' conftest.er1 >conftest.err
21790   rm -f conftest.er1
21791   cat conftest.err >&5
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); } && {
21794          test -z "$ac_c_werror_flag" ||
21795          test ! -s conftest.err
21796        } && test -s conftest.$ac_objext; then
21797   fits_in_uint=0
21798 else
21799   echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802
21803 fi
21804
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806     fi
21807     if test -z "$result"; then
21808       if test "$fits_in_uint" = 1; then
21809         result="$res_hi$res_lo"U
21810       else
21811         result="$res_hi$res_lo"UL
21812       fi
21813     else
21814             result='~(size_t)0'
21815     fi
21816   fi
21817   { echo "$as_me:$LINENO: result: $result" >&5
21818 echo "${ECHO_T}$result" >&6; }
21819   if test "$result" != yes; then
21820
21821 cat >>confdefs.h <<_ACEOF
21822 #define SIZE_MAX $result
21823 _ACEOF
21824
21825   fi
21826
21827
21828
21829
21830
21831 for ac_header in stdint.h
21832 do
21833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 fi
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841                { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21843 else
21844   # Is the header compilable?
21845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h.  */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h.  */
21853 $ac_includes_default
21854 #include <$ac_header>
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_compile") 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } && {
21870          test -z "$ac_c_werror_flag" ||
21871          test ! -s conftest.err
21872        } && test -s conftest.$ac_objext; then
21873   ac_header_compiler=yes
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878         ac_header_compiler=no
21879 fi
21880
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21883 echo "${ECHO_T}$ac_header_compiler" >&6; }
21884
21885 # Is the header present?
21886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 #include <$ac_header>
21895 _ACEOF
21896 if { (ac_try="$ac_cpp conftest.$ac_ext"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } >/dev/null && {
21909          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21910          test ! -s conftest.err
21911        }; then
21912   ac_header_preproc=yes
21913 else
21914   echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917   ac_header_preproc=no
21918 fi
21919
21920 rm -f conftest.err conftest.$ac_ext
21921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21922 echo "${ECHO_T}$ac_header_preproc" >&6; }
21923
21924 # So?  What about this header?
21925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21926   yes:no: )
21927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21931     ac_header_preproc=yes
21932     ;;
21933   no:yes:* )
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21946
21947     ;;
21948 esac
21949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21952   echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21954   eval "$as_ac_Header=\$ac_header_preproc"
21955 fi
21956 ac_res=`eval echo '${'$as_ac_Header'}'`
21957                { echo "$as_me:$LINENO: result: $ac_res" >&5
21958 echo "${ECHO_T}$ac_res" >&6; }
21959
21960 fi
21961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962   cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21964 _ACEOF
21965
21966 fi
21967
21968 done
21969
21970
21971
21972
21973
21974
21975
21976
21977   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21978 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21980   echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982   cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h.  */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h.  */
21988 $ac_includes_default
21989 typedef ptrdiff_t ac__type_new_;
21990 int
21991 main ()
21992 {
21993 if ((ac__type_new_ *) 0)
21994   return 0;
21995 if (sizeof (ac__type_new_))
21996   return 0;
21997   ;
21998   return 0;
21999 }
22000 _ACEOF
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005   *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008   (eval "$ac_compile") 2>conftest.er1
22009   ac_status=$?
22010   grep -v '^ *+' conftest.er1 >conftest.err
22011   rm -f conftest.er1
22012   cat conftest.err >&5
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); } && {
22015          test -z "$ac_c_werror_flag" ||
22016          test ! -s conftest.err
22017        } && test -s conftest.$ac_objext; then
22018   ac_cv_type_ptrdiff_t=yes
22019 else
22020   echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023         ac_cv_type_ptrdiff_t=no
22024 fi
22025
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027 fi
22028 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22029 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22030 if test $ac_cv_type_ptrdiff_t = yes; then
22031   :
22032 else
22033
22034 cat >>confdefs.h <<\_ACEOF
22035 #define ptrdiff_t long
22036 _ACEOF
22037
22038
22039 fi
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22052 stdlib.h string.h unistd.h sys/param.h
22053 do
22054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22056   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 fi
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062                { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22064 else
22065   # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h.  */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h.  */
22074 $ac_includes_default
22075 #include <$ac_header>
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_compile") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && {
22091          test -z "$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        } && test -s conftest.$ac_objext; then
22094   ac_header_compiler=yes
22095 else
22096   echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099         ac_header_compiler=no
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22105
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h.  */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h.  */
22115 #include <$ac_header>
22116 _ACEOF
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } >/dev/null && {
22130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131          test ! -s conftest.err
22132        }; then
22133   ac_header_preproc=yes
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138   ac_header_preproc=no
22139 fi
22140
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22144
22145 # So?  What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22147   yes:no: )
22148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152     ac_header_preproc=yes
22153     ;;
22154   no:yes:* )
22155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22167
22168     ;;
22169 esac
22170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173   echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175   eval "$as_ac_Header=\$ac_header_preproc"
22176 fi
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178                { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22180
22181 fi
22182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183   cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22185 _ACEOF
22186
22187 fi
22188
22189 done
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22215 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22216 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22217 __fsetlocking
22218 do
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223   echo $ECHO_N "(cached) $ECHO_C" >&6
22224 else
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22233 #define $ac_func innocuous_$ac_func
22234
22235 /* System header to define __stub macros and hopefully few prototypes,
22236     which can conflict with char $ac_func (); below.
22237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238     <limits.h> exists even on freestanding compilers.  */
22239
22240 #ifdef __STDC__
22241 # include <limits.h>
22242 #else
22243 # include <assert.h>
22244 #endif
22245
22246 #undef $ac_func
22247
22248 /* Override any GCC internal prototype to avoid an error.
22249    Use char because int might match the return type of a GCC
22250    builtin and then its argument prototype would still apply.  */
22251 #ifdef __cplusplus
22252 extern "C"
22253 #endif
22254 char $ac_func ();
22255 /* The GNU C library defines this for functions which it implements
22256     to always fail with ENOSYS.  Some functions are actually named
22257     something starting with __ and the normal name is an alias.  */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22259 choke me
22260 #endif
22261
22262 int
22263 main ()
22264 {
22265 return $ac_func ();
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_link") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest$ac_exeext &&
22287        $as_test_x conftest$ac_exeext; then
22288   eval "$as_ac_var=yes"
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293         eval "$as_ac_var=no"
22294 fi
22295
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297       conftest$ac_exeext conftest.$ac_ext
22298 fi
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300                { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303   cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22306
22307 fi
22308 done
22309
22310
22311
22312   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22313 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22314 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22315   echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 #include <stdio.h>
22324 int
22325 main ()
22326 {
22327
22328 #ifndef _snprintf
22329   char *p = (char *) _snprintf;
22330 #endif
22331
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_compile") 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && {
22350          test -z "$ac_c_werror_flag" ||
22351          test ! -s conftest.err
22352        } && test -s conftest.$ac_objext; then
22353   ac_cv_have_decl__snprintf=yes
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358         ac_cv_have_decl__snprintf=no
22359 fi
22360
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 fi
22363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22364 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22365   if test $ac_cv_have_decl__snprintf = yes; then
22366     gt_value=1
22367   else
22368     gt_value=0
22369   fi
22370
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_DECL__SNPRINTF $gt_value
22373 _ACEOF
22374
22375
22376
22377   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22378 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22379 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22380   echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382   cat >conftest.$ac_ext <<_ACEOF
22383 /* confdefs.h.  */
22384 _ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h.  */
22388 #include <stdio.h>
22389 int
22390 main ()
22391 {
22392
22393 #ifndef _snwprintf
22394   char *p = (char *) _snwprintf;
22395 #endif
22396
22397   ;
22398   return 0;
22399 }
22400 _ACEOF
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405   *) ac_try_echo=$ac_try;;
22406 esac
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408   (eval "$ac_compile") 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } && {
22415          test -z "$ac_c_werror_flag" ||
22416          test ! -s conftest.err
22417        } && test -s conftest.$ac_objext; then
22418   ac_cv_have_decl__snwprintf=yes
22419 else
22420   echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423         ac_cv_have_decl__snwprintf=no
22424 fi
22425
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 fi
22428 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22429 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22430   if test $ac_cv_have_decl__snwprintf = yes; then
22431     gt_value=1
22432   else
22433     gt_value=0
22434   fi
22435
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_DECL__SNWPRINTF $gt_value
22438 _ACEOF
22439
22440
22441
22442
22443   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22444 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22445 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448   cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 #include <stdio.h>
22455 int
22456 main ()
22457 {
22458
22459 #ifndef feof_unlocked
22460   char *p = (char *) feof_unlocked;
22461 #endif
22462
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471   *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474   (eval "$ac_compile") 2>conftest.er1
22475   ac_status=$?
22476   grep -v '^ *+' conftest.er1 >conftest.err
22477   rm -f conftest.er1
22478   cat conftest.err >&5
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); } && {
22481          test -z "$ac_c_werror_flag" ||
22482          test ! -s conftest.err
22483        } && test -s conftest.$ac_objext; then
22484   ac_cv_have_decl_feof_unlocked=yes
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489         ac_cv_have_decl_feof_unlocked=no
22490 fi
22491
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 fi
22494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22495 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22496   if test $ac_cv_have_decl_feof_unlocked = yes; then
22497     gt_value=1
22498   else
22499     gt_value=0
22500   fi
22501
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22504 _ACEOF
22505
22506
22507
22508   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22509 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22510 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513   cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 #include <stdio.h>
22520 int
22521 main ()
22522 {
22523
22524 #ifndef fgets_unlocked
22525   char *p = (char *) fgets_unlocked;
22526 #endif
22527
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_compile") 2>conftest.er1
22540   ac_status=$?
22541   grep -v '^ *+' conftest.er1 >conftest.err
22542   rm -f conftest.er1
22543   cat conftest.err >&5
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); } && {
22546          test -z "$ac_c_werror_flag" ||
22547          test ! -s conftest.err
22548        } && test -s conftest.$ac_objext; then
22549   ac_cv_have_decl_fgets_unlocked=yes
22550 else
22551   echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22553
22554         ac_cv_have_decl_fgets_unlocked=no
22555 fi
22556
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558 fi
22559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22560 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22561   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22562     gt_value=1
22563   else
22564     gt_value=0
22565   fi
22566
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22569 _ACEOF
22570
22571
22572
22573   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22574 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22575 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22576   echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578   cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 #include <stdio.h>
22585 int
22586 main ()
22587 {
22588
22589 #ifndef getc_unlocked
22590   char *p = (char *) getc_unlocked;
22591 #endif
22592
22593   ;
22594   return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604   (eval "$ac_compile") 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } && {
22611          test -z "$ac_c_werror_flag" ||
22612          test ! -s conftest.err
22613        } && test -s conftest.$ac_objext; then
22614   ac_cv_have_decl_getc_unlocked=yes
22615 else
22616   echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22618
22619         ac_cv_have_decl_getc_unlocked=no
22620 fi
22621
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 fi
22624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22625 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22626   if test $ac_cv_have_decl_getc_unlocked = yes; then
22627     gt_value=1
22628   else
22629     gt_value=0
22630   fi
22631
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22634 _ACEOF
22635
22636
22637
22638   case $gt_cv_func_printf_posix in
22639     *yes) HAVE_POSIX_PRINTF=1 ;;
22640     *) HAVE_POSIX_PRINTF=0 ;;
22641   esac
22642
22643   if test "$ac_cv_func_asprintf" = yes; then
22644     HAVE_ASPRINTF=1
22645   else
22646     HAVE_ASPRINTF=0
22647   fi
22648
22649   if test "$ac_cv_func_snprintf" = yes; then
22650     HAVE_SNPRINTF=1
22651   else
22652     HAVE_SNPRINTF=0
22653   fi
22654
22655   if test "$ac_cv_func_wprintf" = yes; then
22656     HAVE_WPRINTF=1
22657   else
22658     HAVE_WPRINTF=0
22659   fi
22660
22661
22662
22663
22664
22665
22666
22667           am_save_CPPFLAGS="$CPPFLAGS"
22668
22669   for element in $INCICONV; do
22670     haveit=
22671     for x in $CPPFLAGS; do
22672
22673   acl_save_prefix="$prefix"
22674   prefix="$acl_final_prefix"
22675   acl_save_exec_prefix="$exec_prefix"
22676   exec_prefix="$acl_final_exec_prefix"
22677   eval x=\"$x\"
22678   exec_prefix="$acl_save_exec_prefix"
22679   prefix="$acl_save_prefix"
22680
22681       if test "X$x" = "X$element"; then
22682         haveit=yes
22683         break
22684       fi
22685     done
22686     if test -z "$haveit"; then
22687       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22688     fi
22689   done
22690
22691
22692   { echo "$as_me:$LINENO: checking for iconv" >&5
22693 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22694 if test "${am_cv_func_iconv+set}" = set; then
22695   echo $ECHO_N "(cached) $ECHO_C" >&6
22696 else
22697
22698     am_cv_func_iconv="no, consider installing GNU libiconv"
22699     am_cv_lib_iconv=no
22700     cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h.  */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h.  */
22706 #include <stdlib.h>
22707 #include <iconv.h>
22708 int
22709 main ()
22710 {
22711 iconv_t cd = iconv_open("","");
22712        iconv(cd,NULL,NULL,NULL,NULL);
22713        iconv_close(cd);
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722   *) ac_try_echo=$ac_try;;
22723 esac
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725   (eval "$ac_link") 2>conftest.er1
22726   ac_status=$?
22727   grep -v '^ *+' conftest.er1 >conftest.err
22728   rm -f conftest.er1
22729   cat conftest.err >&5
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && {
22732          test -z "$ac_c_werror_flag" ||
22733          test ! -s conftest.err
22734        } && test -s conftest$ac_exeext &&
22735        $as_test_x conftest$ac_exeext; then
22736   am_cv_func_iconv=yes
22737 else
22738   echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22740
22741
22742 fi
22743
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745       conftest$ac_exeext conftest.$ac_ext
22746     if test "$am_cv_func_iconv" != yes; then
22747       am_save_LIBS="$LIBS"
22748       LIBS="$LIBS $LIBICONV"
22749       cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 #include <stdlib.h>
22756 #include <iconv.h>
22757 int
22758 main ()
22759 {
22760 iconv_t cd = iconv_open("","");
22761          iconv(cd,NULL,NULL,NULL,NULL);
22762          iconv_close(cd);
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771   *) ac_try_echo=$ac_try;;
22772 esac
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774   (eval "$ac_link") 2>conftest.er1
22775   ac_status=$?
22776   grep -v '^ *+' conftest.er1 >conftest.err
22777   rm -f conftest.er1
22778   cat conftest.err >&5
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); } && {
22781          test -z "$ac_c_werror_flag" ||
22782          test ! -s conftest.err
22783        } && test -s conftest$ac_exeext &&
22784        $as_test_x conftest$ac_exeext; then
22785   am_cv_lib_iconv=yes
22786         am_cv_func_iconv=yes
22787 else
22788   echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791
22792 fi
22793
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795       conftest$ac_exeext conftest.$ac_ext
22796       LIBS="$am_save_LIBS"
22797     fi
22798
22799 fi
22800 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22801 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22802   if test "$am_cv_func_iconv" = yes; then
22803
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_ICONV 1
22806 _ACEOF
22807
22808   fi
22809   if test "$am_cv_lib_iconv" = yes; then
22810     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22811 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22812     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22813 echo "${ECHO_T}$LIBICONV" >&6; }
22814   else
22815             CPPFLAGS="$am_save_CPPFLAGS"
22816     LIBICONV=
22817     LTLIBICONV=
22818   fi
22819
22820
22821
22822   if test "$am_cv_func_iconv" = yes; then
22823     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22824 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22825     if test "${am_cv_proto_iconv+set}" = set; then
22826   echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828
22829       cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h.  */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h.  */
22835
22836 #include <stdlib.h>
22837 #include <iconv.h>
22838 extern
22839 #ifdef __cplusplus
22840 "C"
22841 #endif
22842 #if defined(__STDC__) || defined(__cplusplus)
22843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22844 #else
22845 size_t iconv();
22846 #endif
22847
22848 int
22849 main ()
22850 {
22851
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_compile") 2>conftest.er1
22864   ac_status=$?
22865   grep -v '^ *+' conftest.er1 >conftest.err
22866   rm -f conftest.er1
22867   cat conftest.err >&5
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && {
22870          test -z "$ac_c_werror_flag" ||
22871          test ! -s conftest.err
22872        } && test -s conftest.$ac_objext; then
22873   am_cv_proto_iconv_arg1=""
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878         am_cv_proto_iconv_arg1="const"
22879 fi
22880
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882       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);"
22883 fi
22884
22885     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22886     { echo "$as_me:$LINENO: result: ${ac_t:-
22887          }$am_cv_proto_iconv" >&5
22888 echo "${ECHO_T}${ac_t:-
22889          }$am_cv_proto_iconv" >&6; }
22890
22891 cat >>confdefs.h <<_ACEOF
22892 #define ICONV_CONST $am_cv_proto_iconv_arg1
22893 _ACEOF
22894
22895   fi
22896
22897
22898   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22899 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22900 if test "${am_cv_langinfo_codeset+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903   cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909 #include <langinfo.h>
22910 int
22911 main ()
22912 {
22913 char* cs = nl_langinfo(CODESET);
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 rm -f conftest.$ac_objext conftest$ac_exeext
22919 if { (ac_try="$ac_link"
22920 case "(($ac_try" in
22921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922   *) ac_try_echo=$ac_try;;
22923 esac
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925   (eval "$ac_link") 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } && {
22932          test -z "$ac_c_werror_flag" ||
22933          test ! -s conftest.err
22934        } && test -s conftest$ac_exeext &&
22935        $as_test_x conftest$ac_exeext; then
22936   am_cv_langinfo_codeset=yes
22937 else
22938   echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941         am_cv_langinfo_codeset=no
22942 fi
22943
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945       conftest$ac_exeext conftest.$ac_ext
22946
22947 fi
22948 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22949 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22950   if test $am_cv_langinfo_codeset = yes; then
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_LANGINFO_CODESET 1
22954 _ACEOF
22955
22956   fi
22957
22958   if test $ac_cv_header_locale_h = yes; then
22959
22960   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22961 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22962 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22963   echo $ECHO_N "(cached) $ECHO_C" >&6
22964 else
22965   cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 #include <locale.h>
22972 int
22973 main ()
22974 {
22975 return LC_MESSAGES
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987   (eval "$ac_link") 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && {
22994          test -z "$ac_c_werror_flag" ||
22995          test ! -s conftest.err
22996        } && test -s conftest$ac_exeext &&
22997        $as_test_x conftest$ac_exeext; then
22998   gt_cv_val_LC_MESSAGES=yes
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003         gt_cv_val_LC_MESSAGES=no
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007       conftest$ac_exeext conftest.$ac_ext
23008 fi
23009 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23010 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23011   if test $gt_cv_val_LC_MESSAGES = yes; then
23012
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LC_MESSAGES 1
23015 _ACEOF
23016
23017   fi
23018
23019   fi
23020
23021   if test -n "$INTL_MACOSX_LIBS"; then
23022     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23023   fi
23024
23025                       for ac_prog in bison
23026 do
23027   # Extract the first word of "$ac_prog", so it can be a program name with args.
23028 set dummy $ac_prog; ac_word=$2
23029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   if test -n "$INTLBISON"; then
23035   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23036 else
23037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23038 for as_dir in $PATH
23039 do
23040   IFS=$as_save_IFS
23041   test -z "$as_dir" && as_dir=.
23042   for ac_exec_ext in '' $ac_executable_extensions; do
23043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23044     ac_cv_prog_INTLBISON="$ac_prog"
23045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23046     break 2
23047   fi
23048 done
23049 done
23050 IFS=$as_save_IFS
23051
23052 fi
23053 fi
23054 INTLBISON=$ac_cv_prog_INTLBISON
23055 if test -n "$INTLBISON"; then
23056   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23057 echo "${ECHO_T}$INTLBISON" >&6; }
23058 else
23059   { echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6; }
23061 fi
23062
23063
23064   test -n "$INTLBISON" && break
23065 done
23066
23067   if test -z "$INTLBISON"; then
23068     ac_verc_fail=yes
23069   else
23070         { echo "$as_me:$LINENO: checking version of bison" >&5
23071 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23072     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23073     case $ac_prog_version in
23074       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23075       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23076          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23077       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23078     esac
23079     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23080 echo "${ECHO_T}$ac_prog_version" >&6; }
23081   fi
23082   if test $ac_verc_fail = yes; then
23083     INTLBISON=:
23084   fi
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23102 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23103 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106   gt_save_CPPFLAGS="$CPPFLAGS"
23107      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23108      gt_save_LIBS="$LIBS"
23109      LIBS="$LIBS -framework CoreFoundation"
23110      cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 #include <CFPreferences.h>
23117 int
23118 main ()
23119 {
23120 CFPreferencesCopyAppValue(NULL, NULL)
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (ac_try="$ac_link"
23127 case "(($ac_try" in
23128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129   *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132   (eval "$ac_link") 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } && {
23139          test -z "$ac_c_werror_flag" ||
23140          test ! -s conftest.err
23141        } && test -s conftest$ac_exeext &&
23142        $as_test_x conftest$ac_exeext; then
23143   gt_cv_func_CFPreferencesCopyAppValue=yes
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148         gt_cv_func_CFPreferencesCopyAppValue=no
23149 fi
23150
23151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23152       conftest$ac_exeext conftest.$ac_ext
23153      CPPFLAGS="$gt_save_CPPFLAGS"
23154      LIBS="$gt_save_LIBS"
23155 fi
23156 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23157 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23158   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23159
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23162 _ACEOF
23163
23164   fi
23165     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23166 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23167 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23168   echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170   gt_save_CPPFLAGS="$CPPFLAGS"
23171      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23172      gt_save_LIBS="$LIBS"
23173      LIBS="$LIBS -framework CoreFoundation"
23174      cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180 #include <CFLocale.h>
23181 int
23182 main ()
23183 {
23184 CFLocaleCopyCurrent();
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_link") 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } && {
23203          test -z "$ac_c_werror_flag" ||
23204          test ! -s conftest.err
23205        } && test -s conftest$ac_exeext &&
23206        $as_test_x conftest$ac_exeext; then
23207   gt_cv_func_CFLocaleCopyCurrent=yes
23208 else
23209   echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23211
23212         gt_cv_func_CFLocaleCopyCurrent=no
23213 fi
23214
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216       conftest$ac_exeext conftest.$ac_ext
23217      CPPFLAGS="$gt_save_CPPFLAGS"
23218      LIBS="$gt_save_LIBS"
23219 fi
23220 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23221 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23222   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23223
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_CFLOCALECOPYCURRENT 1
23226 _ACEOF
23227
23228   fi
23229   INTL_MACOSX_LIBS=
23230   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23231     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23232   fi
23233
23234
23235
23236
23237   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23238 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23239     # Check whether --enable-nls was given.
23240 if test "${enable_nls+set}" = set; then
23241   enableval=$enable_nls; USE_NLS=$enableval
23242 else
23243   USE_NLS=yes
23244 fi
23245
23246   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23247 echo "${ECHO_T}$USE_NLS" >&6; }
23248
23249
23250
23251
23252     BUILD_INCLUDED_LIBINTL=no
23253     USE_INCLUDED_LIBINTL=no
23254
23255   LIBINTL=
23256   LTLIBINTL=
23257   POSUB=
23258
23259     if test "$USE_NLS" = "yes"; then
23260     gt_use_preinstalled_gnugettext=no
23261
23262       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23263 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23264
23265 # Check whether --with-included-gettext was given.
23266 if test "${with_included_gettext+set}" = set; then
23267   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23268 else
23269   nls_cv_force_use_gnu_gettext=no
23270 fi
23271
23272       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23273 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23274
23275       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23276       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23277
23278
23279
23280
23281
23282
23283         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23284 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23285 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23286   echo $ECHO_N "(cached) $ECHO_C" >&6
23287 else
23288   cat >conftest.$ac_ext <<_ACEOF
23289 /* confdefs.h.  */
23290 _ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h.  */
23294 #include <libintl.h>
23295 extern int _nl_msg_cat_cntr;
23296 extern int *_nl_domain_bindings;
23297 int
23298 main ()
23299 {
23300 bindtextdomain ("", "");
23301 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310   *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313   (eval "$ac_link") 2>conftest.er1
23314   ac_status=$?
23315   grep -v '^ *+' conftest.er1 >conftest.err
23316   rm -f conftest.er1
23317   cat conftest.err >&5
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); } && {
23320          test -z "$ac_c_werror_flag" ||
23321          test ! -s conftest.err
23322        } && test -s conftest$ac_exeext &&
23323        $as_test_x conftest$ac_exeext; then
23324   gt_cv_func_gnugettext1_libc=yes
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329         gt_cv_func_gnugettext1_libc=no
23330 fi
23331
23332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23333       conftest$ac_exeext conftest.$ac_ext
23334 fi
23335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23337
23338         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23339
23340
23341
23342     use_additional=yes
23343
23344   acl_save_prefix="$prefix"
23345   prefix="$acl_final_prefix"
23346   acl_save_exec_prefix="$exec_prefix"
23347   exec_prefix="$acl_final_exec_prefix"
23348
23349     eval additional_includedir=\"$includedir\"
23350     eval additional_libdir=\"$libdir\"
23351
23352   exec_prefix="$acl_save_exec_prefix"
23353   prefix="$acl_save_prefix"
23354
23355
23356 # Check whether --with-libintl-prefix was given.
23357 if test "${with_libintl_prefix+set}" = set; then
23358   withval=$with_libintl_prefix;
23359     if test "X$withval" = "Xno"; then
23360       use_additional=no
23361     else
23362       if test "X$withval" = "X"; then
23363
23364   acl_save_prefix="$prefix"
23365   prefix="$acl_final_prefix"
23366   acl_save_exec_prefix="$exec_prefix"
23367   exec_prefix="$acl_final_exec_prefix"
23368
23369           eval additional_includedir=\"$includedir\"
23370           eval additional_libdir=\"$libdir\"
23371
23372   exec_prefix="$acl_save_exec_prefix"
23373   prefix="$acl_save_prefix"
23374
23375       else
23376         additional_includedir="$withval/include"
23377         additional_libdir="$withval/lib"
23378       fi
23379     fi
23380
23381 fi
23382
23383       LIBINTL=
23384   LTLIBINTL=
23385   INCINTL=
23386   rpathdirs=
23387   ltrpathdirs=
23388   names_already_handled=
23389   names_next_round='intl '
23390   while test -n "$names_next_round"; do
23391     names_this_round="$names_next_round"
23392     names_next_round=
23393     for name in $names_this_round; do
23394       already_handled=
23395       for n in $names_already_handled; do
23396         if test "$n" = "$name"; then
23397           already_handled=yes
23398           break
23399         fi
23400       done
23401       if test -z "$already_handled"; then
23402         names_already_handled="$names_already_handled $name"
23403                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23404         eval value=\"\$HAVE_LIB$uppername\"
23405         if test -n "$value"; then
23406           if test "$value" = yes; then
23407             eval value=\"\$LIB$uppername\"
23408             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23409             eval value=\"\$LTLIB$uppername\"
23410             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23411           else
23412                                     :
23413           fi
23414         else
23415                               found_dir=
23416           found_la=
23417           found_so=
23418           found_a=
23419           if test $use_additional = yes; then
23420             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23421               found_dir="$additional_libdir"
23422               found_so="$additional_libdir/lib$name.$shlibext"
23423               if test -f "$additional_libdir/lib$name.la"; then
23424                 found_la="$additional_libdir/lib$name.la"
23425               fi
23426             else
23427               if test -f "$additional_libdir/lib$name.$libext"; then
23428                 found_dir="$additional_libdir"
23429                 found_a="$additional_libdir/lib$name.$libext"
23430                 if test -f "$additional_libdir/lib$name.la"; then
23431                   found_la="$additional_libdir/lib$name.la"
23432                 fi
23433               fi
23434             fi
23435           fi
23436           if test "X$found_dir" = "X"; then
23437             for x in $LDFLAGS $LTLIBINTL; do
23438
23439   acl_save_prefix="$prefix"
23440   prefix="$acl_final_prefix"
23441   acl_save_exec_prefix="$exec_prefix"
23442   exec_prefix="$acl_final_exec_prefix"
23443   eval x=\"$x\"
23444   exec_prefix="$acl_save_exec_prefix"
23445   prefix="$acl_save_prefix"
23446
23447               case "$x" in
23448                 -L*)
23449                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23450                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23451                     found_dir="$dir"
23452                     found_so="$dir/lib$name.$shlibext"
23453                     if test -f "$dir/lib$name.la"; then
23454                       found_la="$dir/lib$name.la"
23455                     fi
23456                   else
23457                     if test -f "$dir/lib$name.$libext"; then
23458                       found_dir="$dir"
23459                       found_a="$dir/lib$name.$libext"
23460                       if test -f "$dir/lib$name.la"; then
23461                         found_la="$dir/lib$name.la"
23462                       fi
23463                     fi
23464                   fi
23465                   ;;
23466               esac
23467               if test "X$found_dir" != "X"; then
23468                 break
23469               fi
23470             done
23471           fi
23472           if test "X$found_dir" != "X"; then
23473                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23474             if test "X$found_so" != "X"; then
23475                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23476                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23477               else
23478                                                                                 haveit=
23479                 for x in $ltrpathdirs; do
23480                   if test "X$x" = "X$found_dir"; then
23481                     haveit=yes
23482                     break
23483                   fi
23484                 done
23485                 if test -z "$haveit"; then
23486                   ltrpathdirs="$ltrpathdirs $found_dir"
23487                 fi
23488                                 if test "$hardcode_direct" = yes; then
23489                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23490                 else
23491                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23492                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23493                                                             haveit=
23494                     for x in $rpathdirs; do
23495                       if test "X$x" = "X$found_dir"; then
23496                         haveit=yes
23497                         break
23498                       fi
23499                     done
23500                     if test -z "$haveit"; then
23501                       rpathdirs="$rpathdirs $found_dir"
23502                     fi
23503                   else
23504                                                                                 haveit=
23505                     for x in $LDFLAGS $LIBINTL; do
23506
23507   acl_save_prefix="$prefix"
23508   prefix="$acl_final_prefix"
23509   acl_save_exec_prefix="$exec_prefix"
23510   exec_prefix="$acl_final_exec_prefix"
23511   eval x=\"$x\"
23512   exec_prefix="$acl_save_exec_prefix"
23513   prefix="$acl_save_prefix"
23514
23515                       if test "X$x" = "X-L$found_dir"; then
23516                         haveit=yes
23517                         break
23518                       fi
23519                     done
23520                     if test -z "$haveit"; then
23521                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23522                     fi
23523                     if test "$hardcode_minus_L" != no; then
23524                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23525                     else
23526                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23527                     fi
23528                   fi
23529                 fi
23530               fi
23531             else
23532               if test "X$found_a" != "X"; then
23533                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23534               else
23535                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23536               fi
23537             fi
23538                         additional_includedir=
23539             case "$found_dir" in
23540               */lib | */lib/)
23541                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23542                 additional_includedir="$basedir/include"
23543                 ;;
23544             esac
23545             if test "X$additional_includedir" != "X"; then
23546                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23547                 haveit=
23548                 if test "X$additional_includedir" = "X/usr/local/include"; then
23549                   if test -n "$GCC"; then
23550                     case $host_os in
23551                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23552                     esac
23553                   fi
23554                 fi
23555                 if test -z "$haveit"; then
23556                   for x in $CPPFLAGS $INCINTL; do
23557
23558   acl_save_prefix="$prefix"
23559   prefix="$acl_final_prefix"
23560   acl_save_exec_prefix="$exec_prefix"
23561   exec_prefix="$acl_final_exec_prefix"
23562   eval x=\"$x\"
23563   exec_prefix="$acl_save_exec_prefix"
23564   prefix="$acl_save_prefix"
23565
23566                     if test "X$x" = "X-I$additional_includedir"; then
23567                       haveit=yes
23568                       break
23569                     fi
23570                   done
23571                   if test -z "$haveit"; then
23572                     if test -d "$additional_includedir"; then
23573                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23574                     fi
23575                   fi
23576                 fi
23577               fi
23578             fi
23579                         if test -n "$found_la"; then
23580                                                         save_libdir="$libdir"
23581               case "$found_la" in
23582                 */* | *\\*) . "$found_la" ;;
23583                 *) . "./$found_la" ;;
23584               esac
23585               libdir="$save_libdir"
23586                             for dep in $dependency_libs; do
23587                 case "$dep" in
23588                   -L*)
23589                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23590                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23591                       haveit=
23592                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23593                         if test -n "$GCC"; then
23594                           case $host_os in
23595                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23596                           esac
23597                         fi
23598                       fi
23599                       if test -z "$haveit"; then
23600                         haveit=
23601                         for x in $LDFLAGS $LIBINTL; do
23602
23603   acl_save_prefix="$prefix"
23604   prefix="$acl_final_prefix"
23605   acl_save_exec_prefix="$exec_prefix"
23606   exec_prefix="$acl_final_exec_prefix"
23607   eval x=\"$x\"
23608   exec_prefix="$acl_save_exec_prefix"
23609   prefix="$acl_save_prefix"
23610
23611                           if test "X$x" = "X-L$additional_libdir"; then
23612                             haveit=yes
23613                             break
23614                           fi
23615                         done
23616                         if test -z "$haveit"; then
23617                           if test -d "$additional_libdir"; then
23618                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23619                           fi
23620                         fi
23621                         haveit=
23622                         for x in $LDFLAGS $LTLIBINTL; do
23623
23624   acl_save_prefix="$prefix"
23625   prefix="$acl_final_prefix"
23626   acl_save_exec_prefix="$exec_prefix"
23627   exec_prefix="$acl_final_exec_prefix"
23628   eval x=\"$x\"
23629   exec_prefix="$acl_save_exec_prefix"
23630   prefix="$acl_save_prefix"
23631
23632                           if test "X$x" = "X-L$additional_libdir"; then
23633                             haveit=yes
23634                             break
23635                           fi
23636                         done
23637                         if test -z "$haveit"; then
23638                           if test -d "$additional_libdir"; then
23639                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23640                           fi
23641                         fi
23642                       fi
23643                     fi
23644                     ;;
23645                   -R*)
23646                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23647                     if test "$enable_rpath" != no; then
23648                                                                   haveit=
23649                       for x in $rpathdirs; do
23650                         if test "X$x" = "X$dir"; then
23651                           haveit=yes
23652                           break
23653                         fi
23654                       done
23655                       if test -z "$haveit"; then
23656                         rpathdirs="$rpathdirs $dir"
23657                       fi
23658                                                                   haveit=
23659                       for x in $ltrpathdirs; do
23660                         if test "X$x" = "X$dir"; then
23661                           haveit=yes
23662                           break
23663                         fi
23664                       done
23665                       if test -z "$haveit"; then
23666                         ltrpathdirs="$ltrpathdirs $dir"
23667                       fi
23668                     fi
23669                     ;;
23670                   -l*)
23671                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23672                     ;;
23673                   *.la)
23674                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23675                     ;;
23676                   *)
23677                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23678                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23679                     ;;
23680                 esac
23681               done
23682             fi
23683           else
23684                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23685             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23686           fi
23687         fi
23688       fi
23689     done
23690   done
23691   if test "X$rpathdirs" != "X"; then
23692     if test -n "$hardcode_libdir_separator"; then
23693                         alldirs=
23694       for found_dir in $rpathdirs; do
23695         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23696       done
23697             acl_save_libdir="$libdir"
23698       libdir="$alldirs"
23699       eval flag=\"$hardcode_libdir_flag_spec\"
23700       libdir="$acl_save_libdir"
23701       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23702     else
23703             for found_dir in $rpathdirs; do
23704         acl_save_libdir="$libdir"
23705         libdir="$found_dir"
23706         eval flag=\"$hardcode_libdir_flag_spec\"
23707         libdir="$acl_save_libdir"
23708         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23709       done
23710     fi
23711   fi
23712   if test "X$ltrpathdirs" != "X"; then
23713             for found_dir in $ltrpathdirs; do
23714       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23715     done
23716   fi
23717
23718           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23719 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23720 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   gt_save_CPPFLAGS="$CPPFLAGS"
23724             CPPFLAGS="$CPPFLAGS $INCINTL"
23725             gt_save_LIBS="$LIBS"
23726             LIBS="$LIBS $LIBINTL"
23727                         cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 #include <libintl.h>
23734 extern int _nl_msg_cat_cntr;
23735 extern
23736 #ifdef __cplusplus
23737 "C"
23738 #endif
23739 const char *_nl_expand_alias (const char *);
23740 int
23741 main ()
23742 {
23743 bindtextdomain ("", "");
23744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753   *) ac_try_echo=$ac_try;;
23754 esac
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756   (eval "$ac_link") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_c_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest$ac_exeext &&
23766        $as_test_x conftest$ac_exeext; then
23767   gt_cv_func_gnugettext1_libintl=yes
23768 else
23769   echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772         gt_cv_func_gnugettext1_libintl=no
23773 fi
23774
23775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23776       conftest$ac_exeext conftest.$ac_ext
23777                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23778               LIBS="$LIBS $LIBICONV"
23779               cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h.  */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h.  */
23785 #include <libintl.h>
23786 extern int _nl_msg_cat_cntr;
23787 extern
23788 #ifdef __cplusplus
23789 "C"
23790 #endif
23791 const char *_nl_expand_alias (const char *);
23792 int
23793 main ()
23794 {
23795 bindtextdomain ("", "");
23796 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805   *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808   (eval "$ac_link") 2>conftest.er1
23809   ac_status=$?
23810   grep -v '^ *+' conftest.er1 >conftest.err
23811   rm -f conftest.er1
23812   cat conftest.err >&5
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); } && {
23815          test -z "$ac_c_werror_flag" ||
23816          test ! -s conftest.err
23817        } && test -s conftest$ac_exeext &&
23818        $as_test_x conftest$ac_exeext; then
23819   LIBINTL="$LIBINTL $LIBICONV"
23820                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23821                 gt_cv_func_gnugettext1_libintl=yes
23822
23823 else
23824   echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827
23828 fi
23829
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831       conftest$ac_exeext conftest.$ac_ext
23832             fi
23833             CPPFLAGS="$gt_save_CPPFLAGS"
23834             LIBS="$gt_save_LIBS"
23835 fi
23836 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23837 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23838         fi
23839
23840                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23841            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23842                 && test "$PACKAGE" != gettext-runtime \
23843                 && test "$PACKAGE" != gettext-tools; }; then
23844           gt_use_preinstalled_gnugettext=yes
23845         else
23846                     LIBINTL=
23847           LTLIBINTL=
23848           INCINTL=
23849         fi
23850
23851
23852         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23853                               nls_cv_use_gnu_gettext=yes
23854         fi
23855       fi
23856
23857       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23858                 BUILD_INCLUDED_LIBINTL=yes
23859         USE_INCLUDED_LIBINTL=yes
23860         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23861         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23862         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23863       fi
23864
23865       CATOBJEXT=
23866       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23867          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23868                 CATOBJEXT=.gmo
23869       fi
23870
23871
23872     if test -n "$INTL_MACOSX_LIBS"; then
23873       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23874          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23875                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23876         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23877       fi
23878     fi
23879
23880     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23882
23883 cat >>confdefs.h <<\_ACEOF
23884 #define ENABLE_NLS 1
23885 _ACEOF
23886
23887     else
23888       USE_NLS=no
23889     fi
23890   fi
23891
23892   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23893 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23894   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23895 echo "${ECHO_T}$USE_NLS" >&6; }
23896   if test "$USE_NLS" = "yes"; then
23897     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23898 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23899     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901         gt_source="external libintl"
23902       else
23903         gt_source="libc"
23904       fi
23905     else
23906       gt_source="included intl directory"
23907     fi
23908     { echo "$as_me:$LINENO: result: $gt_source" >&5
23909 echo "${ECHO_T}$gt_source" >&6; }
23910   fi
23911
23912   if test "$USE_NLS" = "yes"; then
23913
23914     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23915       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23916         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23917 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23918         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23919 echo "${ECHO_T}$LIBINTL" >&6; }
23920
23921   for element in $INCINTL; do
23922     haveit=
23923     for x in $CPPFLAGS; do
23924
23925   acl_save_prefix="$prefix"
23926   prefix="$acl_final_prefix"
23927   acl_save_exec_prefix="$exec_prefix"
23928   exec_prefix="$acl_final_exec_prefix"
23929   eval x=\"$x\"
23930   exec_prefix="$acl_save_exec_prefix"
23931   prefix="$acl_save_prefix"
23932
23933       if test "X$x" = "X$element"; then
23934         haveit=yes
23935         break
23936       fi
23937     done
23938     if test -z "$haveit"; then
23939       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23940     fi
23941   done
23942
23943       fi
23944
23945
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_GETTEXT 1
23948 _ACEOF
23949
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_DCGETTEXT 1
23953 _ACEOF
23954
23955     fi
23956
23957         POSUB=po
23958   fi
23959
23960
23961             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23962       BUILD_INCLUDED_LIBINTL=yes
23963     fi
23964
23965
23966
23967
23968
23969         nls_cv_header_intl=
23970     nls_cv_header_libgt=
23971
23972         DATADIRNAME=share
23973
23974
23975         INSTOBJEXT=.mo
23976
23977
23978         GENCAT=gencat
23979
23980
23981         INTLOBJS=
23982     if test "$USE_INCLUDED_LIBINTL" = yes; then
23983       INTLOBJS="\$(GETTOBJS)"
23984     fi
23985
23986
23987         INTL_LIBTOOL_SUFFIX_PREFIX=
23988
23989
23990
23991     INTLLIBS="$LIBINTL"
23992
23993
23994
23995
23996
23997
23998 fi
23999
24000 support_mysql=no
24001 support_sqlite=no
24002 support_sqlite3=no
24003 support_postgresql=no
24004 support_dbi=no
24005 support_smartalloc=yes
24006 support_readline=yes
24007 support_conio=yes
24008 support_gnome=no
24009 support_bat=no
24010 support_wx_console=no
24011 support_tray_monitor=no
24012 support_tls=no
24013 support_crypto=no
24014 gnome_version=
24015 wx_version=
24016 support_static_tools=no
24017 support_static_fd=no
24018 support_static_sd=no
24019 support_static_dir=no
24020 support_static_cons=no
24021 support_python=no
24022 build_client_only=no
24023 build_dird=yes
24024 build_stored=yes
24025 cats=
24026 db_type=Internal
24027 support_lockmgr=no
24028 DB_TYPE=bdb
24029
24030
24031 # Check whether --enable-gnome was given.
24032 if test "${enable_gnome+set}" = set; then
24033   enableval=$enable_gnome;
24034        if test x$enableval = xyes; then
24035           support_gnome=yes
24036        fi
24037
24038
24039 fi
24040
24041
24042 GNOME_DIR=
24043 if test x$support_gnome = xyes; then
24044    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24045    pkg=$?
24046    if test $pkg = 0; then
24047       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24048       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24049       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24050       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24051
24052
24053
24054
24055       GNOME_DIR=src/gnome2-console
24056       gnome_version="Version 2.x"
24057    else
24058       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24059 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24060    { (exit 1); exit 1; }; }
24061    fi
24062 fi
24063
24064
24065 # Check whether --enable-bat was given.
24066 if test "${enable_bat+set}" = set; then
24067   enableval=$enable_bat;
24068        if test x$enableval = xyes; then
24069
24070 cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_BAT 1
24072 _ACEOF
24073
24074           support_bat=yes
24075        fi
24076
24077
24078 fi
24079
24080
24081 BAT_DIR=
24082 if test x$support_bat = xyes; then
24083    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24084    pkg=$?
24085    if test $pkg = 0; then
24086       BAT_DIR=src/qt-console
24087    else
24088       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24089 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24090    { (exit 1); exit 1; }; }
24091    fi
24092 fi
24093
24094 got_qwt=no
24095 QWT_INC=
24096 QWT_LDFLAGS=
24097 QWT_LIB=
24098 QWT=
24099 no_qwt=no
24100 if test x$support_bat = xyes; then
24101    { echo "$as_me:$LINENO: checking for qwt support" >&5
24102 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24103
24104 # Check whether --with-qwt was given.
24105 if test "${with_qwt+set}" = set; then
24106   withval=$with_qwt;
24107           case "$with_qwt" in
24108           no)
24109              no_qwt=yes
24110              ;;
24111           yes|*)
24112              if test -f ${with_qwt}/include/qwt.h; then
24113                 QWT_INC="${with_qwt}/include"
24114                 QWT_LDFLAGS="-L${with_qwt}/lib"
24115                 QWT_LIB="-lqwt"
24116                 QWT="qwt"
24117              fi
24118              ;;
24119           esac
24120
24121
24122 fi
24123
24124
24125             if test $no_qwt = no; then
24126       if test x$QWT_INC = x; then
24127          for root in /usr /usr/local; do
24128             for ver in qwt qwt5 qwt-qt4; do
24129                if test -f ${root}/include/${ver}/qwt.h; then
24130                   QWT_INC="${root}/include/${ver}"
24131                   if test -d ${root}/lib64/; then
24132                      QWT_LDFLAGS="-L${root}/lib64"
24133                   elif test -d ${root}/lib/64/; then
24134                      QWT_LDFLAGS="-L${root}/64"
24135                   else
24136                      QWT_LDFLAGS="-L${root}/lib"
24137                   fi
24138                   QWT_LIB="-lqwt"
24139                   QWT="qwt"
24140                   got_qwt=yes
24141                   break;
24142                fi
24143             done
24144          done
24145       fi
24146    fi
24147    if test x$QWT_INC = x; then
24148       { echo "$as_me:$LINENO: result: no" >&5
24149 echo "${ECHO_T}no" >&6; }
24150    else
24151
24152 cat >>confdefs.h <<\_ACEOF
24153 #define HAVE_QWT 1
24154 _ACEOF
24155
24156       { echo "$as_me:$LINENO: result: yes" >&5
24157 echo "${ECHO_T}yes" >&6; }
24158    fi
24159 fi
24160
24161
24162
24163
24164
24165
24166
24167 # Check whether --enable-bwx-console was given.
24168 if test "${enable_bwx_console+set}" = set; then
24169   enableval=$enable_bwx_console;
24170        if test x$enableval = xyes; then
24171           support_wx_console=yes
24172        fi
24173
24174
24175 fi
24176
24177
24178 WX_DIR=
24179 if test x$support_wx_console = xyes; then
24180    abc=`$WXCONFIG $WXFLAGS --cppflags`
24181    pkg=$?
24182    if test $pkg = 0; then
24183       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24184       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24185       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24186
24187
24188
24189       WX_DIR="src/wx-console"
24190    else
24191       echo " "
24192       echo "wx-config program not found. bwx-console disabled."
24193       echo " "
24194       support_wx_console=no
24195    fi
24196 fi
24197
24198
24199 # Check whether --enable-tray-monitor was given.
24200 if test "${enable_tray_monitor+set}" = set; then
24201   enableval=$enable_tray_monitor;
24202        if test x$enableval = xyes; then
24203           support_tray_monitor=yes
24204        fi
24205
24206
24207 fi
24208
24209
24210 TRAY_MONITOR_DIR=
24211 if test x$support_tray_monitor = xyes; then
24212    abc=`$PKGCONFIG --exists gtk+-2.0`
24213    pkg=$?
24214    if test $pkg = 0; then
24215       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24216       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24217
24218
24219       TRAY_MONITOR_DIR=src/tray-monitor
24220       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24221       pkg=$?
24222       if test $pkg = 0; then
24223
24224 cat >>confdefs.h <<\_ACEOF
24225 #define HAVE_GTK_2_4 1
24226 _ACEOF
24227
24228       fi
24229    fi
24230 fi
24231
24232
24233 # Check whether --enable-smartalloc was given.
24234 if test "${enable_smartalloc+set}" = set; then
24235   enableval=$enable_smartalloc;
24236        if test x$enableval = xno; then
24237           support_smartalloc=no
24238        fi
24239
24240
24241 fi
24242
24243
24244 if test x$support_smartalloc = xyes; then
24245
24246 cat >>confdefs.h <<\_ACEOF
24247 #define SMARTALLOC 1
24248 _ACEOF
24249
24250 fi
24251
24252 # Check whether --enable-lockmgr was given.
24253 if test "${enable_lockmgr+set}" = set; then
24254   enableval=$enable_lockmgr;
24255        if test x$enableval = xyes; then
24256           support_lockmgr=yes
24257        fi
24258
24259
24260 fi
24261
24262
24263 if test x$support_lockmgr = xyes; then
24264
24265 cat >>confdefs.h <<\_ACEOF
24266 #define _USE_LOCKMGR 1
24267 _ACEOF
24268
24269 fi
24270
24271
24272 # Check whether --enable-static-tools was given.
24273 if test "${enable_static_tools+set}" = set; then
24274   enableval=$enable_static_tools;
24275        if test x$enableval = xyes; then
24276           if test x$use_libtool = xyes; then
24277              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24278   please rerun configure with --disable-libtool" >&5
24279 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24280   please rerun configure with --disable-libtool" >&2;}
24281    { (exit 1); exit 1; }; }
24282           fi
24283           support_static_tools=yes
24284        fi
24285
24286
24287 fi
24288
24289
24290 TTOOL_LDFLAGS=
24291 if test x$support_static_tools = xyes; then
24292    TTOOL_LDFLAGS="-static"
24293 fi
24294
24295
24296 # Check whether --enable-static-fd was given.
24297 if test "${enable_static_fd+set}" = set; then
24298   enableval=$enable_static_fd;
24299        if test x$enableval = xyes; then
24300           if test x$use_libtool = xyes; then
24301              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24302   please rerun configure with --disable-libtool" >&5
24303 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24304   please rerun configure with --disable-libtool" >&2;}
24305    { (exit 1); exit 1; }; }
24306           fi
24307           support_static_fd=yes
24308        fi
24309
24310
24311 fi
24312
24313
24314 STATIC_FD=
24315 if test x$support_static_fd = xyes; then
24316    STATIC_FD="static-bacula-fd"
24317 fi
24318
24319
24320 # Check whether --enable-static-sd was given.
24321 if test "${enable_static_sd+set}" = set; then
24322   enableval=$enable_static_sd;
24323        if test x$enableval = xyes; then
24324           if test x$use_libtool = xyes; then
24325              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24326   please rerun configure with --disable-libtool" >&5
24327 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24328   please rerun configure with --disable-libtool" >&2;}
24329    { (exit 1); exit 1; }; }
24330           fi
24331           support_static_sd=yes
24332        fi
24333
24334
24335 fi
24336
24337
24338 STATIC_SD=
24339 if test x$support_static_sd = xyes; then
24340    STATIC_SD="static-bacula-sd"
24341 fi
24342
24343
24344 # Check whether --enable-static-dir was given.
24345 if test "${enable_static_dir+set}" = set; then
24346   enableval=$enable_static_dir;
24347        if test x$enableval = xyes; then
24348           if test x$use_libtool = xyes; then
24349              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24350   please rerun configure with --disable-libtool" >&5
24351 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24352   please rerun configure with --disable-libtool" >&2;}
24353    { (exit 1); exit 1; }; }
24354           fi
24355           support_static_dir=yes
24356        fi
24357
24358
24359 fi
24360
24361
24362 STATIC_DIR=
24363 if test x$support_static_dir = xyes; then
24364    STATIC_DIR="static-bacula-dir"
24365 fi
24366
24367
24368 # Check whether --enable-static-cons was given.
24369 if test "${enable_static_cons+set}" = set; then
24370   enableval=$enable_static_cons;
24371        if test x$enableval = xyes; then
24372           if test x$use_libtool = xyes; then
24373              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24374   please rerun configure with --disable-libtool" >&5
24375 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24376   please rerun configure with --disable-libtool" >&2;}
24377    { (exit 1); exit 1; }; }
24378           fi
24379           support_static_cons=yes
24380        fi
24381
24382
24383 fi
24384
24385
24386 STATIC_CONS=
24387 STATIC_GNOME_CONS=
24388 STATIC_WX_CONS=
24389 if test x$support_static_cons = xyes; then
24390    STATIC_CONS="static-bconsole"
24391    STATIC_GNOME_CONS="static-bgnome-console"
24392    STATIC_WX_CONS="static-bwx-console"
24393 fi
24394
24395
24396
24397
24398 # Check whether --enable-client-only was given.
24399 if test "${enable_client_only+set}" = set; then
24400   enableval=$enable_client_only;
24401        if test x$enableval = xyes; then
24402           build_client_only=yes
24403           db_type=None
24404           DB_TYPE=none
24405        fi
24406
24407
24408 fi
24409
24410 if test x$build_client_only = xno; then
24411    ALL_DIRS="subdirs"
24412 else
24413    ALL_DIRS=""
24414 fi
24415
24416
24417 # Check whether --enable-build-dird was given.
24418 if test "${enable_build_dird+set}" = set; then
24419   enableval=$enable_build_dird;
24420        if test x$enableval = xno; then
24421           build_dird=no
24422        fi
24423
24424
24425 fi
24426
24427 if test x$build_dird = xyes; then
24428    DIRD_DIR="src/dird"
24429    DIR_TOOLS="DIRTOOLS"
24430 else
24431    DIRD_DIR=""
24432    DIR_TOOLS="NODIRTOOLS"
24433 fi
24434
24435
24436
24437 # Check whether --enable-build-stored was given.
24438 if test "${enable_build_stored+set}" = set; then
24439   enableval=$enable_build_stored;
24440       if test x$enableval = xno; then
24441          build_stored=no
24442       fi
24443
24444
24445 fi
24446
24447 if test x$build_stored = xyes; then
24448    STORED_DIR="src/stored"
24449 else
24450    STORED_DIR=""
24451 fi
24452
24453
24454 # Check whether --enable-conio was given.
24455 if test "${enable_conio+set}" = set; then
24456   enableval=$enable_conio;
24457        if test x$enableval = xno; then
24458           support_conio=no
24459        fi
24460
24461
24462 fi
24463
24464
24465
24466 support_ipv6=yes
24467 # Check whether --enable-ipv6 was given.
24468 if test "${enable_ipv6+set}" = set; then
24469   enableval=$enable_ipv6;
24470        if test x$enableval = xno; then
24471           support_ipv6=no
24472        fi
24473
24474
24475 fi
24476
24477
24478 if test x$support_ipv6 = xyes; then
24479     cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h.  */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h.  */
24485  #include <sys/types.h>
24486 #include <sys/socket.h>
24487 #include <netinet/in.h>
24488 int
24489 main ()
24490 {
24491 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24492   ;
24493   return 0;
24494 }
24495 _ACEOF
24496 rm -f conftest.$ac_objext conftest$ac_exeext
24497 if { (ac_try="$ac_link"
24498 case "(($ac_try" in
24499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500   *) ac_try_echo=$ac_try;;
24501 esac
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503   (eval "$ac_link") 2>conftest.er1
24504   ac_status=$?
24505   grep -v '^ *+' conftest.er1 >conftest.err
24506   rm -f conftest.er1
24507   cat conftest.err >&5
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } && {
24510          test -z "$ac_c_werror_flag" ||
24511          test ! -s conftest.err
24512        } && test -s conftest$ac_exeext &&
24513        $as_test_x conftest$ac_exeext; then
24514   support_ipv6=yes
24515 else
24516   echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24518
24519         support_ipv6=no
24520 fi
24521
24522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24523       conftest$ac_exeext conftest.$ac_ext
24524 fi
24525
24526 if test x$support_ipv6 = xyes; then
24527
24528 cat >>confdefs.h <<\_ACEOF
24529 #define HAVE_IPV6 1
24530 _ACEOF
24531
24532 fi
24533
24534 got_conio="no"
24535 if test x$support_conio = xyes; then
24536    if test "${ac_cv_header_termcap_h+set}" = set; then
24537   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24538 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24539 if test "${ac_cv_header_termcap_h+set}" = set; then
24540   echo $ECHO_N "(cached) $ECHO_C" >&6
24541 fi
24542 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24543 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24544 else
24545   # Is the header compilable?
24546 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24547 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24549 /* confdefs.h.  */
24550 _ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h.  */
24554 $ac_includes_default
24555 #include <termcap.h>
24556 _ACEOF
24557 rm -f conftest.$ac_objext
24558 if { (ac_try="$ac_compile"
24559 case "(($ac_try" in
24560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561   *) ac_try_echo=$ac_try;;
24562 esac
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564   (eval "$ac_compile") 2>conftest.er1
24565   ac_status=$?
24566   grep -v '^ *+' conftest.er1 >conftest.err
24567   rm -f conftest.er1
24568   cat conftest.err >&5
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); } && {
24571          test -z "$ac_c_werror_flag" ||
24572          test ! -s conftest.err
24573        } && test -s conftest.$ac_objext; then
24574   ac_header_compiler=yes
24575 else
24576   echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579         ac_header_compiler=no
24580 fi
24581
24582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24584 echo "${ECHO_T}$ac_header_compiler" >&6; }
24585
24586 # Is the header present?
24587 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24588 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24589 cat >conftest.$ac_ext <<_ACEOF
24590 /* confdefs.h.  */
24591 _ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h.  */
24595 #include <termcap.h>
24596 _ACEOF
24597 if { (ac_try="$ac_cpp conftest.$ac_ext"
24598 case "(($ac_try" in
24599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600   *) ac_try_echo=$ac_try;;
24601 esac
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24604   ac_status=$?
24605   grep -v '^ *+' conftest.er1 >conftest.err
24606   rm -f conftest.er1
24607   cat conftest.err >&5
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); } >/dev/null && {
24610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24611          test ! -s conftest.err
24612        }; then
24613   ac_header_preproc=yes
24614 else
24615   echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24617
24618   ac_header_preproc=no
24619 fi
24620
24621 rm -f conftest.err conftest.$ac_ext
24622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24623 echo "${ECHO_T}$ac_header_preproc" >&6; }
24624
24625 # So?  What about this header?
24626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24627   yes:no: )
24628     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24629 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24630     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24631 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24632     ac_header_preproc=yes
24633     ;;
24634   no:yes:* )
24635     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24636 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24637     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24638 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24639     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24640 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24641     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24642 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24643     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24644 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24645     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24646 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24647
24648     ;;
24649 esac
24650 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24651 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24652 if test "${ac_cv_header_termcap_h+set}" = set; then
24653   echo $ECHO_N "(cached) $ECHO_C" >&6
24654 else
24655   ac_cv_header_termcap_h=$ac_header_preproc
24656 fi
24657 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24658 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24659
24660 fi
24661 if test $ac_cv_header_termcap_h = yes; then
24662    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24663 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24664 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24665   echo $ECHO_N "(cached) $ECHO_C" >&6
24666 else
24667   ac_check_lib_save_LIBS=$LIBS
24668 LIBS="-ltermcap  $LIBS"
24669 cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h.  */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h.  */
24675
24676 /* Override any GCC internal prototype to avoid an error.
24677    Use char because int might match the return type of a GCC
24678    builtin and then its argument prototype would still apply.  */
24679 #ifdef __cplusplus
24680 extern "C"
24681 #endif
24682 char tgetent ();
24683 int
24684 main ()
24685 {
24686 return tgetent ();
24687   ;
24688   return 0;
24689 }
24690 _ACEOF
24691 rm -f conftest.$ac_objext conftest$ac_exeext
24692 if { (ac_try="$ac_link"
24693 case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_link") 2>conftest.er1
24699   ac_status=$?
24700   grep -v '^ *+' conftest.er1 >conftest.err
24701   rm -f conftest.er1
24702   cat conftest.err >&5
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); } && {
24705          test -z "$ac_c_werror_flag" ||
24706          test ! -s conftest.err
24707        } && test -s conftest$ac_exeext &&
24708        $as_test_x conftest$ac_exeext; then
24709   ac_cv_lib_termcap_tgetent=yes
24710 else
24711   echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24713
24714         ac_cv_lib_termcap_tgetent=no
24715 fi
24716
24717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24718       conftest$ac_exeext conftest.$ac_ext
24719 LIBS=$ac_check_lib_save_LIBS
24720 fi
24721 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24722 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24723 if test $ac_cv_lib_termcap_tgetent = yes; then
24724    CONS_LIBS="-ltermcap"
24725     CONS_OBJ="conio.o"
24726     CONS_SRC="conio.c"
24727     got_conio="yes"
24728     support_readline=no
24729
24730 cat >>confdefs.h <<\_ACEOF
24731 #define HAVE_CONIO 1
24732 _ACEOF
24733
24734
24735 else
24736    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24737 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24738 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24739   echo $ECHO_N "(cached) $ECHO_C" >&6
24740 else
24741   ac_check_lib_save_LIBS=$LIBS
24742 LIBS="-lncurses  $LIBS"
24743 cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h.  */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h.  */
24749
24750 /* Override any GCC internal prototype to avoid an error.
24751    Use char because int might match the return type of a GCC
24752    builtin and then its argument prototype would still apply.  */
24753 #ifdef __cplusplus
24754 extern "C"
24755 #endif
24756 char tgetent ();
24757 int
24758 main ()
24759 {
24760 return tgetent ();
24761   ;
24762   return 0;
24763 }
24764 _ACEOF
24765 rm -f conftest.$ac_objext conftest$ac_exeext
24766 if { (ac_try="$ac_link"
24767 case "(($ac_try" in
24768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769   *) ac_try_echo=$ac_try;;
24770 esac
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772   (eval "$ac_link") 2>conftest.er1
24773   ac_status=$?
24774   grep -v '^ *+' conftest.er1 >conftest.err
24775   rm -f conftest.er1
24776   cat conftest.err >&5
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); } && {
24779          test -z "$ac_c_werror_flag" ||
24780          test ! -s conftest.err
24781        } && test -s conftest$ac_exeext &&
24782        $as_test_x conftest$ac_exeext; then
24783   ac_cv_lib_ncurses_tgetent=yes
24784 else
24785   echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24787
24788         ac_cv_lib_ncurses_tgetent=no
24789 fi
24790
24791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24792       conftest$ac_exeext conftest.$ac_ext
24793 LIBS=$ac_check_lib_save_LIBS
24794 fi
24795 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24796 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24797 if test $ac_cv_lib_ncurses_tgetent = yes; then
24798    CONS_LIBS="-lncurses"
24799       CONS_OBJ="conio.o"
24800       CONS_SRC="conio.c"
24801       got_conio="yes"
24802       support_readline=no
24803
24804 cat >>confdefs.h <<\_ACEOF
24805 #define HAVE_CONIO 1
24806 _ACEOF
24807
24808
24809 fi
24810
24811
24812 fi
24813
24814
24815 else
24816
24817
24818 for ac_header in curses.h
24819 do
24820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24825   echo $ECHO_N "(cached) $ECHO_C" >&6
24826 fi
24827 ac_res=`eval echo '${'$as_ac_Header'}'`
24828                { echo "$as_me:$LINENO: result: $ac_res" >&5
24829 echo "${ECHO_T}$ac_res" >&6; }
24830 else
24831   # Is the header compilable?
24832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24834 cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h.  */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h.  */
24840 $ac_includes_default
24841 #include <$ac_header>
24842 _ACEOF
24843 rm -f conftest.$ac_objext
24844 if { (ac_try="$ac_compile"
24845 case "(($ac_try" in
24846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847   *) ac_try_echo=$ac_try;;
24848 esac
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850   (eval "$ac_compile") 2>conftest.er1
24851   ac_status=$?
24852   grep -v '^ *+' conftest.er1 >conftest.err
24853   rm -f conftest.er1
24854   cat conftest.err >&5
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); } && {
24857          test -z "$ac_c_werror_flag" ||
24858          test ! -s conftest.err
24859        } && test -s conftest.$ac_objext; then
24860   ac_header_compiler=yes
24861 else
24862   echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865         ac_header_compiler=no
24866 fi
24867
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24870 echo "${ECHO_T}$ac_header_compiler" >&6; }
24871
24872 # Is the header present?
24873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24875 cat >conftest.$ac_ext <<_ACEOF
24876 /* confdefs.h.  */
24877 _ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h.  */
24881 #include <$ac_header>
24882 _ACEOF
24883 if { (ac_try="$ac_cpp conftest.$ac_ext"
24884 case "(($ac_try" in
24885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886   *) ac_try_echo=$ac_try;;
24887 esac
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24890   ac_status=$?
24891   grep -v '^ *+' conftest.er1 >conftest.err
24892   rm -f conftest.er1
24893   cat conftest.err >&5
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); } >/dev/null && {
24896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24897          test ! -s conftest.err
24898        }; then
24899   ac_header_preproc=yes
24900 else
24901   echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24903
24904   ac_header_preproc=no
24905 fi
24906
24907 rm -f conftest.err conftest.$ac_ext
24908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909 echo "${ECHO_T}$ac_header_preproc" >&6; }
24910
24911 # So?  What about this header?
24912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24913   yes:no: )
24914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24918     ac_header_preproc=yes
24919     ;;
24920   no:yes:* )
24921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24933
24934     ;;
24935 esac
24936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24939   echo $ECHO_N "(cached) $ECHO_C" >&6
24940 else
24941   eval "$as_ac_Header=\$ac_header_preproc"
24942 fi
24943 ac_res=`eval echo '${'$as_ac_Header'}'`
24944                { echo "$as_me:$LINENO: result: $ac_res" >&5
24945 echo "${ECHO_T}$ac_res" >&6; }
24946
24947 fi
24948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24949   cat >>confdefs.h <<_ACEOF
24950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24951 _ACEOF
24952
24953 fi
24954
24955 done
24956
24957     { echo "$as_me:$LINENO: checking for term.h" >&5
24958 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24959 if test "${ac_cv_header_term_h+set}" = set; then
24960   echo $ECHO_N "(cached) $ECHO_C" >&6
24961 else
24962   cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968 #if HAVE_CURSES_H
24969 #include <curses.h>
24970 #endif
24971
24972
24973 #include <term.h>
24974 _ACEOF
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979   *) ac_try_echo=$ac_try;;
24980 esac
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982   (eval "$ac_compile") 2>conftest.er1
24983   ac_status=$?
24984   grep -v '^ *+' conftest.er1 >conftest.err
24985   rm -f conftest.er1
24986   cat conftest.err >&5
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); } && {
24989          test -z "$ac_c_werror_flag" ||
24990          test ! -s conftest.err
24991        } && test -s conftest.$ac_objext; then
24992   ac_cv_header_term_h=yes
24993 else
24994   echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24996
24997         ac_cv_header_term_h=no
24998 fi
24999
25000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25001 fi
25002 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25003 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25004 if test $ac_cv_header_term_h = yes; then
25005    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25006 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25007 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25008   echo $ECHO_N "(cached) $ECHO_C" >&6
25009 else
25010   ac_check_lib_save_LIBS=$LIBS
25011 LIBS="-lcurses  $LIBS"
25012 cat >conftest.$ac_ext <<_ACEOF
25013 /* confdefs.h.  */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h.  */
25018
25019 /* Override any GCC internal prototype to avoid an error.
25020    Use char because int might match the return type of a GCC
25021    builtin and then its argument prototype would still apply.  */
25022 #ifdef __cplusplus
25023 extern "C"
25024 #endif
25025 char tgetent ();
25026 int
25027 main ()
25028 {
25029 return tgetent ();
25030   ;
25031   return 0;
25032 }
25033 _ACEOF
25034 rm -f conftest.$ac_objext conftest$ac_exeext
25035 if { (ac_try="$ac_link"
25036 case "(($ac_try" in
25037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038   *) ac_try_echo=$ac_try;;
25039 esac
25040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25041   (eval "$ac_link") 2>conftest.er1
25042   ac_status=$?
25043   grep -v '^ *+' conftest.er1 >conftest.err
25044   rm -f conftest.er1
25045   cat conftest.err >&5
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); } && {
25048          test -z "$ac_c_werror_flag" ||
25049          test ! -s conftest.err
25050        } && test -s conftest$ac_exeext &&
25051        $as_test_x conftest$ac_exeext; then
25052   ac_cv_lib_curses_tgetent=yes
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057         ac_cv_lib_curses_tgetent=no
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25061       conftest$ac_exeext conftest.$ac_ext
25062 LIBS=$ac_check_lib_save_LIBS
25063 fi
25064 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25065 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25066 if test $ac_cv_lib_curses_tgetent = yes; then
25067    CONS_LIBS="-lcurses"
25068          CONS_OBJ="conio.o"
25069          CONS_SRC="conio.c"
25070          got_conio="yes"
25071          support_readline=no
25072
25073 cat >>confdefs.h <<\_ACEOF
25074 #define HAVE_CONIO 1
25075 _ACEOF
25076
25077
25078 fi
25079
25080
25081 else
25082    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25083 fi
25084
25085
25086
25087 fi
25088
25089
25090 fi
25091
25092
25093 # Check whether --enable-readline was given.
25094 if test "${enable_readline+set}" = set; then
25095   enableval=$enable_readline;
25096        if test x$enableval = xno; then
25097           support_readline=no
25098        fi
25099
25100
25101 fi
25102
25103
25104 got_readline="no"
25105 READLINE_SRC=
25106 if test x$support_readline = xyes; then
25107
25108 # Check whether --with-readline was given.
25109 if test "${with_readline+set}" = set; then
25110   withval=$with_readline;
25111           case "$with_readline" in
25112           no)
25113              :
25114              ;;
25115           yes|*)
25116              if test -f ${with_readline}/readline.h; then
25117                 CONS_INC="-I${with_readline}"
25118                 CONS_LDFLAGS="-L$with_readline"
25119              elif test -f ${with_readline}/include/readline/readline.h; then
25120                 CONS_INC="-I${with_readline}/include/readline"
25121                 CONS_LDFLAGS="-L${with_readline}/lib"
25122                 with_readline="${with_readline}/include/readline"
25123              else
25124                 with_readline="/usr/include/readline"
25125              fi
25126
25127              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25129   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25130 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25132   echo $ECHO_N "(cached) $ECHO_C" >&6
25133 fi
25134 ac_res=`eval echo '${'$as_ac_Header'}'`
25135                { echo "$as_me:$LINENO: result: $ac_res" >&5
25136 echo "${ECHO_T}$ac_res" >&6; }
25137 else
25138   # Is the header compilable?
25139 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25140 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25141 cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h.  */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h.  */
25147 $ac_includes_default
25148 #include <${with_readline}/readline.h>
25149 _ACEOF
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154   *) ac_try_echo=$ac_try;;
25155 esac
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157   (eval "$ac_compile") 2>conftest.er1
25158   ac_status=$?
25159   grep -v '^ *+' conftest.er1 >conftest.err
25160   rm -f conftest.er1
25161   cat conftest.err >&5
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } && {
25164          test -z "$ac_c_werror_flag" ||
25165          test ! -s conftest.err
25166        } && test -s conftest.$ac_objext; then
25167   ac_header_compiler=yes
25168 else
25169   echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25171
25172         ac_header_compiler=no
25173 fi
25174
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25177 echo "${ECHO_T}$ac_header_compiler" >&6; }
25178
25179 # Is the header present?
25180 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25181 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25182 cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h.  */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h.  */
25188 #include <${with_readline}/readline.h>
25189 _ACEOF
25190 if { (ac_try="$ac_cpp conftest.$ac_ext"
25191 case "(($ac_try" in
25192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193   *) ac_try_echo=$ac_try;;
25194 esac
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25197   ac_status=$?
25198   grep -v '^ *+' conftest.er1 >conftest.err
25199   rm -f conftest.er1
25200   cat conftest.err >&5
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); } >/dev/null && {
25203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25204          test ! -s conftest.err
25205        }; then
25206   ac_header_preproc=yes
25207 else
25208   echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25210
25211   ac_header_preproc=no
25212 fi
25213
25214 rm -f conftest.err conftest.$ac_ext
25215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25216 echo "${ECHO_T}$ac_header_preproc" >&6; }
25217
25218 # So?  What about this header?
25219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25220   yes:no: )
25221     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25222 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25223     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25224 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25225     ac_header_preproc=yes
25226     ;;
25227   no:yes:* )
25228     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25229 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25230     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25231 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25232     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25233 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25234     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25236     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25240
25241     ;;
25242 esac
25243 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25244 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25246   echo $ECHO_N "(cached) $ECHO_C" >&6
25247 else
25248   eval "$as_ac_Header=\$ac_header_preproc"
25249 fi
25250 ac_res=`eval echo '${'$as_ac_Header'}'`
25251                { echo "$as_me:$LINENO: result: $ac_res" >&5
25252 echo "${ECHO_T}$ac_res" >&6; }
25253
25254 fi
25255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25256
25257
25258 cat >>confdefs.h <<\_ACEOF
25259 #define HAVE_READLINE 1
25260 _ACEOF
25261
25262                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25263                     got_readline="yes"
25264
25265 else
25266
25267                     echo " "
25268                     echo "readline.h not found. readline turned off ..."
25269                     echo " "
25270
25271
25272 fi
25273
25274
25275              ;;
25276           esac
25277
25278 else
25279
25280                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25281   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25282 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25283 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25284   echo $ECHO_N "(cached) $ECHO_C" >&6
25285 fi
25286 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25287 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25288 else
25289   # Is the header compilable?
25290 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25291 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25292 cat >conftest.$ac_ext <<_ACEOF
25293 /* confdefs.h.  */
25294 _ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h.  */
25298 $ac_includes_default
25299 #include </usr/include/readline/readline.h>
25300 _ACEOF
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305   *) ac_try_echo=$ac_try;;
25306 esac
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308   (eval "$ac_compile") 2>conftest.er1
25309   ac_status=$?
25310   grep -v '^ *+' conftest.er1 >conftest.err
25311   rm -f conftest.er1
25312   cat conftest.err >&5
25313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } && {
25315          test -z "$ac_c_werror_flag" ||
25316          test ! -s conftest.err
25317        } && test -s conftest.$ac_objext; then
25318   ac_header_compiler=yes
25319 else
25320   echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25322
25323         ac_header_compiler=no
25324 fi
25325
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25328 echo "${ECHO_T}$ac_header_compiler" >&6; }
25329
25330 # Is the header present?
25331 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25332 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25333 cat >conftest.$ac_ext <<_ACEOF
25334 /* confdefs.h.  */
25335 _ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h.  */
25339 #include </usr/include/readline/readline.h>
25340 _ACEOF
25341 if { (ac_try="$ac_cpp conftest.$ac_ext"
25342 case "(($ac_try" in
25343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344   *) ac_try_echo=$ac_try;;
25345 esac
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25348   ac_status=$?
25349   grep -v '^ *+' conftest.er1 >conftest.err
25350   rm -f conftest.er1
25351   cat conftest.err >&5
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); } >/dev/null && {
25354          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25355          test ! -s conftest.err
25356        }; then
25357   ac_header_preproc=yes
25358 else
25359   echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25361
25362   ac_header_preproc=no
25363 fi
25364
25365 rm -f conftest.err conftest.$ac_ext
25366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25367 echo "${ECHO_T}$ac_header_preproc" >&6; }
25368
25369 # So?  What about this header?
25370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25371   yes:no: )
25372     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25373 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25374     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25375 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25376     ac_header_preproc=yes
25377     ;;
25378   no:yes:* )
25379     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25380 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25381     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25382 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25383     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25384 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25385     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25391
25392     ;;
25393 esac
25394 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25395 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25396 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25397   echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25399   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25400 fi
25401 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25402 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25403
25404 fi
25405 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25406
25407
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_READLINE 1
25410 _ACEOF
25411
25412                 got_readline="yes"
25413                 CONS_INC="-I/usr/include/readline"
25414                 CONS_LIBS="-lreadline -ltermcap"
25415
25416 else
25417
25418                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25420   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25421 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25423   echo $ECHO_N "(cached) $ECHO_C" >&6
25424 fi
25425 ac_res=`eval echo '${'$as_ac_Header'}'`
25426                { echo "$as_me:$LINENO: result: $ac_res" >&5
25427 echo "${ECHO_T}$ac_res" >&6; }
25428 else
25429   # Is the header compilable?
25430 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25431 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25432 cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h.  */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h.  */
25438 $ac_includes_default
25439 #include <${TOP_DIR}/depkgs/readline/readline.h>
25440 _ACEOF
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445   *) ac_try_echo=$ac_try;;
25446 esac
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448   (eval "$ac_compile") 2>conftest.er1
25449   ac_status=$?
25450   grep -v '^ *+' conftest.er1 >conftest.err
25451   rm -f conftest.er1
25452   cat conftest.err >&5
25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); } && {
25455          test -z "$ac_c_werror_flag" ||
25456          test ! -s conftest.err
25457        } && test -s conftest.$ac_objext; then
25458   ac_header_compiler=yes
25459 else
25460   echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463         ac_header_compiler=no
25464 fi
25465
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 echo "${ECHO_T}$ac_header_compiler" >&6; }
25469
25470 # Is the header present?
25471 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25472 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h.  */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h.  */
25479 #include <${TOP_DIR}/depkgs/readline/readline.h>
25480 _ACEOF
25481 if { (ac_try="$ac_cpp conftest.$ac_ext"
25482 case "(($ac_try" in
25483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484   *) ac_try_echo=$ac_try;;
25485 esac
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25488   ac_status=$?
25489   grep -v '^ *+' conftest.er1 >conftest.err
25490   rm -f conftest.er1
25491   cat conftest.err >&5
25492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); } >/dev/null && {
25494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25495          test ! -s conftest.err
25496        }; then
25497   ac_header_preproc=yes
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502   ac_header_preproc=no
25503 fi
25504
25505 rm -f conftest.err conftest.$ac_ext
25506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25507 echo "${ECHO_T}$ac_header_preproc" >&6; }
25508
25509 # So?  What about this header?
25510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25511   yes:no: )
25512     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25513 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25514     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25515 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25516     ac_header_preproc=yes
25517     ;;
25518   no:yes:* )
25519     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25520 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25521     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25522 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25523     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25524 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25525     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25531
25532     ;;
25533 esac
25534 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25535 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25537   echo $ECHO_N "(cached) $ECHO_C" >&6
25538 else
25539   eval "$as_ac_Header=\$ac_header_preproc"
25540 fi
25541 ac_res=`eval echo '${'$as_ac_Header'}'`
25542                { echo "$as_me:$LINENO: result: $ac_res" >&5
25543 echo "${ECHO_T}$ac_res" >&6; }
25544
25545 fi
25546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25547
25548
25549 cat >>confdefs.h <<\_ACEOF
25550 #define HAVE_READLINE 1
25551 _ACEOF
25552
25553                         got_readline="yes"
25554                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25555                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25556                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25557                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25558
25559 else
25560
25561                         echo " "
25562                         echo "readline.h not found. readline turned off ..."
25563                         echo " "
25564
25565
25566 fi
25567
25568
25569
25570
25571 fi
25572
25573
25574
25575
25576 fi
25577
25578 fi
25579
25580
25581
25582
25583
25584
25585
25586
25587 MAKE_SHELL=/bin/sh
25588
25589 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25590 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25591 if test "${ac_cv_header_stat_broken+set}" = set; then
25592   echo $ECHO_N "(cached) $ECHO_C" >&6
25593 else
25594   cat >conftest.$ac_ext <<_ACEOF
25595 /* confdefs.h.  */
25596 _ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h.  */
25600 #include <sys/types.h>
25601 #include <sys/stat.h>
25602
25603 #if defined S_ISBLK && defined S_IFDIR
25604 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25605 #endif
25606
25607 #if defined S_ISBLK && defined S_IFCHR
25608 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25609 #endif
25610
25611 #if defined S_ISLNK && defined S_IFREG
25612 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25613 #endif
25614
25615 #if defined S_ISSOCK && defined S_IFREG
25616 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25617 #endif
25618
25619 _ACEOF
25620 rm -f conftest.$ac_objext
25621 if { (ac_try="$ac_compile"
25622 case "(($ac_try" in
25623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624   *) ac_try_echo=$ac_try;;
25625 esac
25626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25627   (eval "$ac_compile") 2>conftest.er1
25628   ac_status=$?
25629   grep -v '^ *+' conftest.er1 >conftest.err
25630   rm -f conftest.er1
25631   cat conftest.err >&5
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); } && {
25634          test -z "$ac_c_werror_flag" ||
25635          test ! -s conftest.err
25636        } && test -s conftest.$ac_objext; then
25637   ac_cv_header_stat_broken=no
25638 else
25639   echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25641
25642         ac_cv_header_stat_broken=yes
25643 fi
25644
25645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25646 fi
25647 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25648 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25649 if test $ac_cv_header_stat_broken = yes; then
25650
25651 cat >>confdefs.h <<\_ACEOF
25652 #define STAT_MACROS_BROKEN 1
25653 _ACEOF
25654
25655 fi
25656
25657
25658
25659
25660
25661
25662 ac_header_dirent=no
25663 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25664   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25665 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25666 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25668   echo $ECHO_N "(cached) $ECHO_C" >&6
25669 else
25670   cat >conftest.$ac_ext <<_ACEOF
25671 /* confdefs.h.  */
25672 _ACEOF
25673 cat confdefs.h >>conftest.$ac_ext
25674 cat >>conftest.$ac_ext <<_ACEOF
25675 /* end confdefs.h.  */
25676 #include <sys/types.h>
25677 #include <$ac_hdr>
25678
25679 int
25680 main ()
25681 {
25682 if ((DIR *) 0)
25683 return 0;
25684   ;
25685   return 0;
25686 }
25687 _ACEOF
25688 rm -f conftest.$ac_objext
25689 if { (ac_try="$ac_compile"
25690 case "(($ac_try" in
25691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692   *) ac_try_echo=$ac_try;;
25693 esac
25694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25695   (eval "$ac_compile") 2>conftest.er1
25696   ac_status=$?
25697   grep -v '^ *+' conftest.er1 >conftest.err
25698   rm -f conftest.er1
25699   cat conftest.err >&5
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); } && {
25702          test -z "$ac_c_werror_flag" ||
25703          test ! -s conftest.err
25704        } && test -s conftest.$ac_objext; then
25705   eval "$as_ac_Header=yes"
25706 else
25707   echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25709
25710         eval "$as_ac_Header=no"
25711 fi
25712
25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714 fi
25715 ac_res=`eval echo '${'$as_ac_Header'}'`
25716                { echo "$as_me:$LINENO: result: $ac_res" >&5
25717 echo "${ECHO_T}$ac_res" >&6; }
25718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25719   cat >>confdefs.h <<_ACEOF
25720 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25721 _ACEOF
25722
25723 ac_header_dirent=$ac_hdr; break
25724 fi
25725
25726 done
25727 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25728 if test $ac_header_dirent = dirent.h; then
25729   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25731 if test "${ac_cv_search_opendir+set}" = set; then
25732   echo $ECHO_N "(cached) $ECHO_C" >&6
25733 else
25734   ac_func_search_save_LIBS=$LIBS
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741
25742 /* Override any GCC internal prototype to avoid an error.
25743    Use char because int might match the return type of a GCC
25744    builtin and then its argument prototype would still apply.  */
25745 #ifdef __cplusplus
25746 extern "C"
25747 #endif
25748 char opendir ();
25749 int
25750 main ()
25751 {
25752 return opendir ();
25753   ;
25754   return 0;
25755 }
25756 _ACEOF
25757 for ac_lib in '' dir; do
25758   if test -z "$ac_lib"; then
25759     ac_res="none required"
25760   else
25761     ac_res=-l$ac_lib
25762     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25763   fi
25764   rm -f conftest.$ac_objext conftest$ac_exeext
25765 if { (ac_try="$ac_link"
25766 case "(($ac_try" in
25767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768   *) ac_try_echo=$ac_try;;
25769 esac
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771   (eval "$ac_link") 2>conftest.er1
25772   ac_status=$?
25773   grep -v '^ *+' conftest.er1 >conftest.err
25774   rm -f conftest.er1
25775   cat conftest.err >&5
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } && {
25778          test -z "$ac_c_werror_flag" ||
25779          test ! -s conftest.err
25780        } && test -s conftest$ac_exeext &&
25781        $as_test_x conftest$ac_exeext; then
25782   ac_cv_search_opendir=$ac_res
25783 else
25784   echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25786
25787
25788 fi
25789
25790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25791       conftest$ac_exeext
25792   if test "${ac_cv_search_opendir+set}" = set; then
25793   break
25794 fi
25795 done
25796 if test "${ac_cv_search_opendir+set}" = set; then
25797   :
25798 else
25799   ac_cv_search_opendir=no
25800 fi
25801 rm conftest.$ac_ext
25802 LIBS=$ac_func_search_save_LIBS
25803 fi
25804 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25805 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25806 ac_res=$ac_cv_search_opendir
25807 if test "$ac_res" != no; then
25808   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25809
25810 fi
25811
25812 else
25813   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25814 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25815 if test "${ac_cv_search_opendir+set}" = set; then
25816   echo $ECHO_N "(cached) $ECHO_C" >&6
25817 else
25818   ac_func_search_save_LIBS=$LIBS
25819 cat >conftest.$ac_ext <<_ACEOF
25820 /* confdefs.h.  */
25821 _ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h.  */
25825
25826 /* Override any GCC internal prototype to avoid an error.
25827    Use char because int might match the return type of a GCC
25828    builtin and then its argument prototype would still apply.  */
25829 #ifdef __cplusplus
25830 extern "C"
25831 #endif
25832 char opendir ();
25833 int
25834 main ()
25835 {
25836 return opendir ();
25837   ;
25838   return 0;
25839 }
25840 _ACEOF
25841 for ac_lib in '' x; do
25842   if test -z "$ac_lib"; then
25843     ac_res="none required"
25844   else
25845     ac_res=-l$ac_lib
25846     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25847   fi
25848   rm -f conftest.$ac_objext conftest$ac_exeext
25849 if { (ac_try="$ac_link"
25850 case "(($ac_try" in
25851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852   *) ac_try_echo=$ac_try;;
25853 esac
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855   (eval "$ac_link") 2>conftest.er1
25856   ac_status=$?
25857   grep -v '^ *+' conftest.er1 >conftest.err
25858   rm -f conftest.er1
25859   cat conftest.err >&5
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); } && {
25862          test -z "$ac_c_werror_flag" ||
25863          test ! -s conftest.err
25864        } && test -s conftest$ac_exeext &&
25865        $as_test_x conftest$ac_exeext; then
25866   ac_cv_search_opendir=$ac_res
25867 else
25868   echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25870
25871
25872 fi
25873
25874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25875       conftest$ac_exeext
25876   if test "${ac_cv_search_opendir+set}" = set; then
25877   break
25878 fi
25879 done
25880 if test "${ac_cv_search_opendir+set}" = set; then
25881   :
25882 else
25883   ac_cv_search_opendir=no
25884 fi
25885 rm conftest.$ac_ext
25886 LIBS=$ac_func_search_save_LIBS
25887 fi
25888 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25889 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25890 ac_res=$ac_cv_search_opendir
25891 if test "$ac_res" != no; then
25892   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25893
25894 fi
25895
25896 fi
25897
25898
25899
25900
25901
25902
25903
25904
25905 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25906 do
25907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913   cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h.  */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h.  */
25919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25921 #define $ac_func innocuous_$ac_func
25922
25923 /* System header to define __stub macros and hopefully few prototypes,
25924     which can conflict with char $ac_func (); below.
25925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25926     <limits.h> exists even on freestanding compilers.  */
25927
25928 #ifdef __STDC__
25929 # include <limits.h>
25930 #else
25931 # include <assert.h>
25932 #endif
25933
25934 #undef $ac_func
25935
25936 /* Override any GCC internal prototype to avoid an error.
25937    Use char because int might match the return type of a GCC
25938    builtin and then its argument prototype would still apply.  */
25939 #ifdef __cplusplus
25940 extern "C"
25941 #endif
25942 char $ac_func ();
25943 /* The GNU C library defines this for functions which it implements
25944     to always fail with ENOSYS.  Some functions are actually named
25945     something starting with __ and the normal name is an alias.  */
25946 #if defined __stub_$ac_func || defined __stub___$ac_func
25947 choke me
25948 #endif
25949
25950 int
25951 main ()
25952 {
25953 return $ac_func ();
25954   ;
25955   return 0;
25956 }
25957 _ACEOF
25958 rm -f conftest.$ac_objext conftest$ac_exeext
25959 if { (ac_try="$ac_link"
25960 case "(($ac_try" in
25961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962   *) ac_try_echo=$ac_try;;
25963 esac
25964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965   (eval "$ac_link") 2>conftest.er1
25966   ac_status=$?
25967   grep -v '^ *+' conftest.er1 >conftest.err
25968   rm -f conftest.er1
25969   cat conftest.err >&5
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); } && {
25972          test -z "$ac_c_werror_flag" ||
25973          test ! -s conftest.err
25974        } && test -s conftest$ac_exeext &&
25975        $as_test_x conftest$ac_exeext; then
25976   eval "$as_ac_var=yes"
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981         eval "$as_ac_var=no"
25982 fi
25983
25984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25985       conftest$ac_exeext conftest.$ac_ext
25986 fi
25987 ac_res=`eval echo '${'$as_ac_var'}'`
25988                { echo "$as_me:$LINENO: result: $ac_res" >&5
25989 echo "${ECHO_T}$ac_res" >&6; }
25990 if test `eval echo '${'$as_ac_var'}'` = yes; then
25991   cat >>confdefs.h <<_ACEOF
25992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25993 _ACEOF
25994
25995 fi
25996 done
25997
25998
25999
26000 for ac_func in nanosleep nl_langinfo
26001 do
26002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26006   echo $ECHO_N "(cached) $ECHO_C" >&6
26007 else
26008   cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26016 #define $ac_func innocuous_$ac_func
26017
26018 /* System header to define __stub macros and hopefully few prototypes,
26019     which can conflict with char $ac_func (); below.
26020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26021     <limits.h> exists even on freestanding compilers.  */
26022
26023 #ifdef __STDC__
26024 # include <limits.h>
26025 #else
26026 # include <assert.h>
26027 #endif
26028
26029 #undef $ac_func
26030
26031 /* Override any GCC internal prototype to avoid an error.
26032    Use char because int might match the return type of a GCC
26033    builtin and then its argument prototype would still apply.  */
26034 #ifdef __cplusplus
26035 extern "C"
26036 #endif
26037 char $ac_func ();
26038 /* The GNU C library defines this for functions which it implements
26039     to always fail with ENOSYS.  Some functions are actually named
26040     something starting with __ and the normal name is an alias.  */
26041 #if defined __stub_$ac_func || defined __stub___$ac_func
26042 choke me
26043 #endif
26044
26045 int
26046 main ()
26047 {
26048 return $ac_func ();
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060   (eval "$ac_link") 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } && {
26067          test -z "$ac_c_werror_flag" ||
26068          test ! -s conftest.err
26069        } && test -s conftest$ac_exeext &&
26070        $as_test_x conftest$ac_exeext; then
26071   eval "$as_ac_var=yes"
26072 else
26073   echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26075
26076         eval "$as_ac_var=no"
26077 fi
26078
26079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26080       conftest$ac_exeext conftest.$ac_ext
26081 fi
26082 ac_res=`eval echo '${'$as_ac_var'}'`
26083                { echo "$as_me:$LINENO: result: $ac_res" >&5
26084 echo "${ECHO_T}$ac_res" >&6; }
26085 if test `eval echo '${'$as_ac_var'}'` = yes; then
26086   cat >>confdefs.h <<_ACEOF
26087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26088 _ACEOF
26089
26090 fi
26091 done
26092
26093
26094 for ac_header in varargs.h
26095 do
26096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26101   echo $ECHO_N "(cached) $ECHO_C" >&6
26102 fi
26103 ac_res=`eval echo '${'$as_ac_Header'}'`
26104                { echo "$as_me:$LINENO: result: $ac_res" >&5
26105 echo "${ECHO_T}$ac_res" >&6; }
26106 else
26107   # Is the header compilable?
26108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26110 cat >conftest.$ac_ext <<_ACEOF
26111 /* confdefs.h.  */
26112 _ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h.  */
26116 $ac_includes_default
26117 #include <$ac_header>
26118 _ACEOF
26119 rm -f conftest.$ac_objext
26120 if { (ac_try="$ac_compile"
26121 case "(($ac_try" in
26122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123   *) ac_try_echo=$ac_try;;
26124 esac
26125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126   (eval "$ac_compile") 2>conftest.er1
26127   ac_status=$?
26128   grep -v '^ *+' conftest.er1 >conftest.err
26129   rm -f conftest.er1
26130   cat conftest.err >&5
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); } && {
26133          test -z "$ac_c_werror_flag" ||
26134          test ! -s conftest.err
26135        } && test -s conftest.$ac_objext; then
26136   ac_header_compiler=yes
26137 else
26138   echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26140
26141         ac_header_compiler=no
26142 fi
26143
26144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26146 echo "${ECHO_T}$ac_header_compiler" >&6; }
26147
26148 # Is the header present?
26149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26151 cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157 #include <$ac_header>
26158 _ACEOF
26159 if { (ac_try="$ac_cpp conftest.$ac_ext"
26160 case "(($ac_try" in
26161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162   *) ac_try_echo=$ac_try;;
26163 esac
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } >/dev/null && {
26172          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26173          test ! -s conftest.err
26174        }; then
26175   ac_header_preproc=yes
26176 else
26177   echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26179
26180   ac_header_preproc=no
26181 fi
26182
26183 rm -f conftest.err conftest.$ac_ext
26184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26185 echo "${ECHO_T}$ac_header_preproc" >&6; }
26186
26187 # So?  What about this header?
26188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26189   yes:no: )
26190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26194     ac_header_preproc=yes
26195     ;;
26196   no:yes:* )
26197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26209
26210     ;;
26211 esac
26212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26215   echo $ECHO_N "(cached) $ECHO_C" >&6
26216 else
26217   eval "$as_ac_Header=\$ac_header_preproc"
26218 fi
26219 ac_res=`eval echo '${'$as_ac_Header'}'`
26220                { echo "$as_me:$LINENO: result: $ac_res" >&5
26221 echo "${ECHO_T}$ac_res" >&6; }
26222
26223 fi
26224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26225   cat >>confdefs.h <<_ACEOF
26226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26227 _ACEOF
26228
26229 fi
26230
26231 done
26232
26233
26234
26235 { echo "$as_me:$LINENO: checking for Python support" >&5
26236 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26237
26238 # Check whether --with-python was given.
26239 if test "${with_python+set}" = set; then
26240   withval=$with_python;
26241        PYTHON_INCDIR=
26242        PYTHON_LIBS=
26243        if test "$withval" != "no"; then
26244           if test "$withval" = "yes"; then
26245              for python_root in /usr /usr/local /usr/sfw; do
26246                 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26247                    if test -f $python_root/include/${ver}/Python.h; then
26248                       PYTHON_INCDIR=-I$python_root/include/${ver}
26249                       if test -d $python_root/lib64/${ver}/config; then
26250                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26251                       else
26252                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26253                       fi
26254                       break
26255                    fi
26256                 done
26257              done
26258
26259              if test x$PYTHON_INCDIR = x; then
26260                 if test -f $prefix/include/Python.h; then
26261                    PYTHON_INCDIR=-I$prefix/include
26262                    if test -d $prefix/lib64/config; then
26263                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26264                    else
26265                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26266                    fi
26267                 else
26268                    { echo "$as_me:$LINENO: result: no" >&5
26269 echo "${ECHO_T}no" >&6; }
26270                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26271 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26272    { (exit 1); exit 1; }; }
26273                 fi
26274              fi
26275           else
26276              if test -f $withval/Python.h; then
26277                 PYTHON_INCDIR=-I$withval
26278                 PYTHON_LIBS="-L$withval/config -lpython"
26279              elif test -f $withval/include/Python.h; then
26280                 PYTHON_INCDIR=-I$withval/include
26281                 if test -d $withval/lib64/config; then
26282                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26283                 else
26284                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26285                 fi
26286              elif test -f $withval/include/python/Python.h; then
26287                 PYTHON_INCDIR=-I$withval/include/python
26288                 if test -d $withval/lib64/python/config; then
26289                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26290                 else
26291                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26292                 fi
26293              else
26294                 { echo "$as_me:$LINENO: result: no" >&5
26295 echo "${ECHO_T}no" >&6; }
26296                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26297 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26298    { (exit 1); exit 1; }; }
26299              fi
26300           fi
26301
26302           cat >>confdefs.h <<\_ACEOF
26303 #define HAVE_PYTHON 1
26304 _ACEOF
26305
26306           { echo "$as_me:$LINENO: result: yes" >&5
26307 echo "${ECHO_T}yes" >&6; }
26308           support_python=yes
26309           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26310 echo "$as_me: checking for more Python libs" >&6;}
26311           saved_LIBS="$LIBS"; LIBS=
26312           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26313 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26314 if test "${ac_cv_search_shm_open+set}" = set; then
26315   echo $ECHO_N "(cached) $ECHO_C" >&6
26316 else
26317   ac_func_search_save_LIBS=$LIBS
26318 cat >conftest.$ac_ext <<_ACEOF
26319 /* confdefs.h.  */
26320 _ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h.  */
26324
26325 /* Override any GCC internal prototype to avoid an error.
26326    Use char because int might match the return type of a GCC
26327    builtin and then its argument prototype would still apply.  */
26328 #ifdef __cplusplus
26329 extern "C"
26330 #endif
26331 char shm_open ();
26332 int
26333 main ()
26334 {
26335 return shm_open ();
26336   ;
26337   return 0;
26338 }
26339 _ACEOF
26340 for ac_lib in '' rt; do
26341   if test -z "$ac_lib"; then
26342     ac_res="none required"
26343   else
26344     ac_res=-l$ac_lib
26345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26346   fi
26347   rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (ac_try="$ac_link"
26349 case "(($ac_try" in
26350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351   *) ac_try_echo=$ac_try;;
26352 esac
26353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26354   (eval "$ac_link") 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } && {
26361          test -z "$ac_c_werror_flag" ||
26362          test ! -s conftest.err
26363        } && test -s conftest$ac_exeext &&
26364        $as_test_x conftest$ac_exeext; then
26365   ac_cv_search_shm_open=$ac_res
26366 else
26367   echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26369
26370
26371 fi
26372
26373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26374       conftest$ac_exeext
26375   if test "${ac_cv_search_shm_open+set}" = set; then
26376   break
26377 fi
26378 done
26379 if test "${ac_cv_search_shm_open+set}" = set; then
26380   :
26381 else
26382   ac_cv_search_shm_open=no
26383 fi
26384 rm conftest.$ac_ext
26385 LIBS=$ac_func_search_save_LIBS
26386 fi
26387 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26388 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26389 ac_res=$ac_cv_search_shm_open
26390 if test "$ac_res" != no; then
26391   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26392
26393 fi
26394
26395
26396 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26397 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26398 if test "${ac_cv_lib_util_openpty+set}" = set; then
26399   echo $ECHO_N "(cached) $ECHO_C" >&6
26400 else
26401   ac_check_lib_save_LIBS=$LIBS
26402 LIBS="-lutil  $LIBS"
26403 cat >conftest.$ac_ext <<_ACEOF
26404 /* confdefs.h.  */
26405 _ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h.  */
26409
26410 /* Override any GCC internal prototype to avoid an error.
26411    Use char because int might match the return type of a GCC
26412    builtin and then its argument prototype would still apply.  */
26413 #ifdef __cplusplus
26414 extern "C"
26415 #endif
26416 char openpty ();
26417 int
26418 main ()
26419 {
26420 return openpty ();
26421   ;
26422   return 0;
26423 }
26424 _ACEOF
26425 rm -f conftest.$ac_objext conftest$ac_exeext
26426 if { (ac_try="$ac_link"
26427 case "(($ac_try" in
26428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26429   *) ac_try_echo=$ac_try;;
26430 esac
26431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26432   (eval "$ac_link") 2>conftest.er1
26433   ac_status=$?
26434   grep -v '^ *+' conftest.er1 >conftest.err
26435   rm -f conftest.er1
26436   cat conftest.err >&5
26437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438   (exit $ac_status); } && {
26439          test -z "$ac_c_werror_flag" ||
26440          test ! -s conftest.err
26441        } && test -s conftest$ac_exeext &&
26442        $as_test_x conftest$ac_exeext; then
26443   ac_cv_lib_util_openpty=yes
26444 else
26445   echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26447
26448         ac_cv_lib_util_openpty=no
26449 fi
26450
26451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26452       conftest$ac_exeext conftest.$ac_ext
26453 LIBS=$ac_check_lib_save_LIBS
26454 fi
26455 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26456 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26457 if test $ac_cv_lib_util_openpty = yes; then
26458   cat >>confdefs.h <<_ACEOF
26459 #define HAVE_LIBUTIL 1
26460 _ACEOF
26461
26462   LIBS="-lutil $LIBS"
26463
26464 fi
26465
26466           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26467           LIBS="$saved_LIBS"
26468        else
26469           { echo "$as_me:$LINENO: result: no" >&5
26470 echo "${ECHO_T}no" >&6; }
26471        fi
26472
26473 else
26474
26475        { echo "$as_me:$LINENO: result: no" >&5
26476 echo "${ECHO_T}no" >&6; }
26477
26478
26479 fi
26480
26481
26482
26483
26484 { echo "$as_me:$LINENO: checking for socket" >&5
26485 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26486 if test "${ac_cv_func_socket+set}" = set; then
26487   echo $ECHO_N "(cached) $ECHO_C" >&6
26488 else
26489   cat >conftest.$ac_ext <<_ACEOF
26490 /* confdefs.h.  */
26491 _ACEOF
26492 cat confdefs.h >>conftest.$ac_ext
26493 cat >>conftest.$ac_ext <<_ACEOF
26494 /* end confdefs.h.  */
26495 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26497 #define socket innocuous_socket
26498
26499 /* System header to define __stub macros and hopefully few prototypes,
26500     which can conflict with char socket (); below.
26501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26502     <limits.h> exists even on freestanding compilers.  */
26503
26504 #ifdef __STDC__
26505 # include <limits.h>
26506 #else
26507 # include <assert.h>
26508 #endif
26509
26510 #undef socket
26511
26512 /* Override any GCC internal prototype to avoid an error.
26513    Use char because int might match the return type of a GCC
26514    builtin and then its argument prototype would still apply.  */
26515 #ifdef __cplusplus
26516 extern "C"
26517 #endif
26518 char socket ();
26519 /* The GNU C library defines this for functions which it implements
26520     to always fail with ENOSYS.  Some functions are actually named
26521     something starting with __ and the normal name is an alias.  */
26522 #if defined __stub_socket || defined __stub___socket
26523 choke me
26524 #endif
26525
26526 int
26527 main ()
26528 {
26529 return socket ();
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 rm -f conftest.$ac_objext conftest$ac_exeext
26535 if { (ac_try="$ac_link"
26536 case "(($ac_try" in
26537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26538   *) ac_try_echo=$ac_try;;
26539 esac
26540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26541   (eval "$ac_link") 2>conftest.er1
26542   ac_status=$?
26543   grep -v '^ *+' conftest.er1 >conftest.err
26544   rm -f conftest.er1
26545   cat conftest.err >&5
26546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547   (exit $ac_status); } && {
26548          test -z "$ac_c_werror_flag" ||
26549          test ! -s conftest.err
26550        } && test -s conftest$ac_exeext &&
26551        $as_test_x conftest$ac_exeext; then
26552   ac_cv_func_socket=yes
26553 else
26554   echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26556
26557         ac_cv_func_socket=no
26558 fi
26559
26560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26561       conftest$ac_exeext conftest.$ac_ext
26562 fi
26563 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26564 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26565 if test $ac_cv_func_socket = yes; then
26566   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26567 echo "${ECHO_T}using libc's socket" >&6; }
26568 else
26569
26570 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26571 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26572 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26573   echo $ECHO_N "(cached) $ECHO_C" >&6
26574 else
26575   ac_check_lib_save_LIBS=$LIBS
26576 LIBS="-lxnet  $LIBS"
26577 cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583
26584 /* Override any GCC internal prototype to avoid an error.
26585    Use char because int might match the return type of a GCC
26586    builtin and then its argument prototype would still apply.  */
26587 #ifdef __cplusplus
26588 extern "C"
26589 #endif
26590 char socket ();
26591 int
26592 main ()
26593 {
26594 return socket ();
26595   ;
26596   return 0;
26597 }
26598 _ACEOF
26599 rm -f conftest.$ac_objext conftest$ac_exeext
26600 if { (ac_try="$ac_link"
26601 case "(($ac_try" in
26602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26603   *) ac_try_echo=$ac_try;;
26604 esac
26605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26606   (eval "$ac_link") 2>conftest.er1
26607   ac_status=$?
26608   grep -v '^ *+' conftest.er1 >conftest.err
26609   rm -f conftest.er1
26610   cat conftest.err >&5
26611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612   (exit $ac_status); } && {
26613          test -z "$ac_c_werror_flag" ||
26614          test ! -s conftest.err
26615        } && test -s conftest$ac_exeext &&
26616        $as_test_x conftest$ac_exeext; then
26617   ac_cv_lib_xnet_socket=yes
26618 else
26619   echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.$ac_ext >&5
26621
26622         ac_cv_lib_xnet_socket=no
26623 fi
26624
26625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26626       conftest$ac_exeext conftest.$ac_ext
26627 LIBS=$ac_check_lib_save_LIBS
26628 fi
26629 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26630 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26631 if test $ac_cv_lib_xnet_socket = yes; then
26632   cat >>confdefs.h <<_ACEOF
26633 #define HAVE_LIBXNET 1
26634 _ACEOF
26635
26636   LIBS="-lxnet $LIBS"
26637
26638 fi
26639
26640
26641 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26642 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26643 if test "${ac_cv_lib_socket_socket+set}" = set; then
26644   echo $ECHO_N "(cached) $ECHO_C" >&6
26645 else
26646   ac_check_lib_save_LIBS=$LIBS
26647 LIBS="-lsocket  $LIBS"
26648 cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654
26655 /* Override any GCC internal prototype to avoid an error.
26656    Use char because int might match the return type of a GCC
26657    builtin and then its argument prototype would still apply.  */
26658 #ifdef __cplusplus
26659 extern "C"
26660 #endif
26661 char socket ();
26662 int
26663 main ()
26664 {
26665 return socket ();
26666   ;
26667   return 0;
26668 }
26669 _ACEOF
26670 rm -f conftest.$ac_objext conftest$ac_exeext
26671 if { (ac_try="$ac_link"
26672 case "(($ac_try" in
26673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674   *) ac_try_echo=$ac_try;;
26675 esac
26676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26677   (eval "$ac_link") 2>conftest.er1
26678   ac_status=$?
26679   grep -v '^ *+' conftest.er1 >conftest.err
26680   rm -f conftest.er1
26681   cat conftest.err >&5
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); } && {
26684          test -z "$ac_c_werror_flag" ||
26685          test ! -s conftest.err
26686        } && test -s conftest$ac_exeext &&
26687        $as_test_x conftest$ac_exeext; then
26688   ac_cv_lib_socket_socket=yes
26689 else
26690   echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26692
26693         ac_cv_lib_socket_socket=no
26694 fi
26695
26696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26697       conftest$ac_exeext conftest.$ac_ext
26698 LIBS=$ac_check_lib_save_LIBS
26699 fi
26700 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26701 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26702 if test $ac_cv_lib_socket_socket = yes; then
26703   cat >>confdefs.h <<_ACEOF
26704 #define HAVE_LIBSOCKET 1
26705 _ACEOF
26706
26707   LIBS="-lsocket $LIBS"
26708
26709 fi
26710
26711
26712 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26713 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26714 if test "${ac_cv_lib_inet_socket+set}" = set; then
26715   echo $ECHO_N "(cached) $ECHO_C" >&6
26716 else
26717   ac_check_lib_save_LIBS=$LIBS
26718 LIBS="-linet  $LIBS"
26719 cat >conftest.$ac_ext <<_ACEOF
26720 /* confdefs.h.  */
26721 _ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h.  */
26725
26726 /* Override any GCC internal prototype to avoid an error.
26727    Use char because int might match the return type of a GCC
26728    builtin and then its argument prototype would still apply.  */
26729 #ifdef __cplusplus
26730 extern "C"
26731 #endif
26732 char socket ();
26733 int
26734 main ()
26735 {
26736 return socket ();
26737   ;
26738   return 0;
26739 }
26740 _ACEOF
26741 rm -f conftest.$ac_objext conftest$ac_exeext
26742 if { (ac_try="$ac_link"
26743 case "(($ac_try" in
26744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26745   *) ac_try_echo=$ac_try;;
26746 esac
26747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26748   (eval "$ac_link") 2>conftest.er1
26749   ac_status=$?
26750   grep -v '^ *+' conftest.er1 >conftest.err
26751   rm -f conftest.er1
26752   cat conftest.err >&5
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); } && {
26755          test -z "$ac_c_werror_flag" ||
26756          test ! -s conftest.err
26757        } && test -s conftest$ac_exeext &&
26758        $as_test_x conftest$ac_exeext; then
26759   ac_cv_lib_inet_socket=yes
26760 else
26761   echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26763
26764         ac_cv_lib_inet_socket=no
26765 fi
26766
26767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26768       conftest$ac_exeext conftest.$ac_ext
26769 LIBS=$ac_check_lib_save_LIBS
26770 fi
26771 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26772 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26773 if test $ac_cv_lib_inet_socket = yes; then
26774   cat >>confdefs.h <<_ACEOF
26775 #define HAVE_LIBINET 1
26776 _ACEOF
26777
26778   LIBS="-linet $LIBS"
26779
26780 fi
26781
26782 fi
26783
26784
26785 TCPW_MSG="no"
26786 WRAPLIBS=""
26787
26788 # Check whether --with-tcp-wrappers was given.
26789 if test "${with_tcp_wrappers+set}" = set; then
26790   withval=$with_tcp_wrappers;
26791        if test "x$withval" != "xno" ; then
26792           saved_LIBS="$LIBS"
26793           LIBS="$saved_LIBS -lwrap"
26794           { echo "$as_me:$LINENO: checking for libwrap" >&5
26795 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26796           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26797 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26798 if test "${ac_cv_search_nanosleep+set}" = set; then
26799   echo $ECHO_N "(cached) $ECHO_C" >&6
26800 else
26801   ac_func_search_save_LIBS=$LIBS
26802 cat >conftest.$ac_ext <<_ACEOF
26803 /* confdefs.h.  */
26804 _ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h.  */
26808
26809 /* Override any GCC internal prototype to avoid an error.
26810    Use char because int might match the return type of a GCC
26811    builtin and then its argument prototype would still apply.  */
26812 #ifdef __cplusplus
26813 extern "C"
26814 #endif
26815 char nanosleep ();
26816 int
26817 main ()
26818 {
26819 return nanosleep ();
26820   ;
26821   return 0;
26822 }
26823 _ACEOF
26824 for ac_lib in '' rt; do
26825   if test -z "$ac_lib"; then
26826     ac_res="none required"
26827   else
26828     ac_res=-l$ac_lib
26829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26830   fi
26831   rm -f conftest.$ac_objext conftest$ac_exeext
26832 if { (ac_try="$ac_link"
26833 case "(($ac_try" in
26834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835   *) ac_try_echo=$ac_try;;
26836 esac
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838   (eval "$ac_link") 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } && {
26845          test -z "$ac_c_werror_flag" ||
26846          test ! -s conftest.err
26847        } && test -s conftest$ac_exeext &&
26848        $as_test_x conftest$ac_exeext; then
26849   ac_cv_search_nanosleep=$ac_res
26850 else
26851   echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26853
26854
26855 fi
26856
26857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26858       conftest$ac_exeext
26859   if test "${ac_cv_search_nanosleep+set}" = set; then
26860   break
26861 fi
26862 done
26863 if test "${ac_cv_search_nanosleep+set}" = set; then
26864   :
26865 else
26866   ac_cv_search_nanosleep=no
26867 fi
26868 rm conftest.$ac_ext
26869 LIBS=$ac_func_search_save_LIBS
26870 fi
26871 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26872 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26873 ac_res=$ac_cv_search_nanosleep
26874 if test "$ac_res" != no; then
26875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26876
26877 fi
26878
26879           cat >conftest.$ac_ext <<_ACEOF
26880 /* confdefs.h.  */
26881 _ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h.  */
26885
26886                #include <sys/types.h>
26887                #include <tcpd.h>
26888                int deny_severity = 0;
26889                int allow_severity = 0;
26890                struct request_info *req;
26891
26892 int
26893 main ()
26894 {
26895
26896                 hosts_access(req);
26897
26898   ;
26899   return 0;
26900 }
26901 _ACEOF
26902 rm -f conftest.$ac_objext conftest$ac_exeext
26903 if { (ac_try="$ac_link"
26904 case "(($ac_try" in
26905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26906   *) ac_try_echo=$ac_try;;
26907 esac
26908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26909   (eval "$ac_link") 2>conftest.er1
26910   ac_status=$?
26911   grep -v '^ *+' conftest.er1 >conftest.err
26912   rm -f conftest.er1
26913   cat conftest.err >&5
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); } && {
26916          test -z "$ac_c_werror_flag" ||
26917          test ! -s conftest.err
26918        } && test -s conftest$ac_exeext &&
26919        $as_test_x conftest$ac_exeext; then
26920
26921                  { echo "$as_me:$LINENO: result: yes" >&5
26922 echo "${ECHO_T}yes" >&6; }
26923
26924 cat >>confdefs.h <<\_ACEOF
26925 #define HAVE_LIBWRAP 1
26926 _ACEOF
26927
26928                  TCPW_MSG="yes"
26929                  LIBS="$saved_LIBS"
26930                  WRAPLIBS="-lwrap"
26931
26932 else
26933   echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26935
26936
26937                  LIBS="$saved_LIBS -lwrap -lnsl"
26938                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26939                  cat >conftest.$ac_ext <<_ACEOF
26940 /* confdefs.h.  */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h.  */
26945
26946                        #include <sys/types.h>
26947                        #include <tcpd.h>
26948                        int deny_severity = 0;
26949                        int allow_severity = 0;
26950                        struct request_info *req;
26951
26952 int
26953 main ()
26954 {
26955
26956                        hosts_access(req);
26957
26958   ;
26959   return 0;
26960 }
26961 _ACEOF
26962 rm -f conftest.$ac_objext conftest$ac_exeext
26963 if { (ac_try="$ac_link"
26964 case "(($ac_try" in
26965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966   *) ac_try_echo=$ac_try;;
26967 esac
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969   (eval "$ac_link") 2>conftest.er1
26970   ac_status=$?
26971   grep -v '^ *+' conftest.er1 >conftest.err
26972   rm -f conftest.er1
26973   cat conftest.err >&5
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); } && {
26976          test -z "$ac_c_werror_flag" ||
26977          test ! -s conftest.err
26978        } && test -s conftest$ac_exeext &&
26979        $as_test_x conftest$ac_exeext; then
26980
26981                       { echo "$as_me:$LINENO: result: yes" >&5
26982 echo "${ECHO_T}yes" >&6; }
26983
26984 cat >>confdefs.h <<\_ACEOF
26985 #define HAVE_LIBWRAP 1
26986 _ACEOF
26987
26988                       TCPW_MSG="yes"
26989                       LIBS="$saved_LIBS"
26990                       WRAPLIBS="-lwrap"
26991
26992 else
26993   echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26995
26996
26997                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26998 echo "$as_me: error: *** libwrap missing" >&2;}
26999    { (exit 1); exit 1; }; }
27000
27001
27002 fi
27003
27004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27005       conftest$ac_exeext conftest.$ac_ext
27006
27007
27008 fi
27009
27010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27011       conftest$ac_exeext conftest.$ac_ext
27012        fi
27013
27014
27015 fi
27016
27017
27018 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27019 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27020
27021 # Check whether --with-openssl was given.
27022 if test "${with_openssl+set}" = set; then
27023   withval=$with_openssl;
27024         with_openssl_directory=${withval}
27025
27026
27027 fi
27028
27029
27030 if test "x$with_openssl_directory" != "xno"; then
27031    OPENSSL_LIBS="-lssl -lcrypto"
27032    OPENSSL_INC=""
27033
27034    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27035       #
27036       # Make sure the $with_openssl_directory also makes sense
27037       #
27038       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27039          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27040          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27041       fi
27042    fi
27043
27044    saved_LIBS="${LIBS}"
27045    saved_CFLAGS="${CFLAGS}"
27046    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27047    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27048
27049    cat >conftest.$ac_ext <<_ACEOF
27050 /* confdefs.h.  */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h.  */
27055
27056           #include <openssl/ssl.h>
27057
27058 int
27059 main ()
27060 {
27061
27062            CRYPTO_set_id_callback(NULL);
27063
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 rm -f conftest.$ac_objext conftest$ac_exeext
27069 if { (ac_try="$ac_link"
27070 case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075   (eval "$ac_link") 2>conftest.er1
27076   ac_status=$?
27077   grep -v '^ *+' conftest.er1 >conftest.err
27078   rm -f conftest.er1
27079   cat conftest.err >&5
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } && {
27082          test -z "$ac_c_werror_flag" ||
27083          test ! -s conftest.err
27084        } && test -s conftest$ac_exeext &&
27085        $as_test_x conftest$ac_exeext; then
27086
27087           support_tls="yes"
27088           support_crypto="yes"
27089
27090 else
27091   echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094
27095           support_tls="no"
27096
27097
27098 fi
27099
27100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27101       conftest$ac_exeext conftest.$ac_ext
27102
27103    cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h.  */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h.  */
27109
27110           #include <openssl/evp.h>
27111
27112 int
27113 main ()
27114 {
27115
27116           EVP_sha512();
27117
27118   ;
27119   return 0;
27120 }
27121 _ACEOF
27122 rm -f conftest.$ac_objext conftest$ac_exeext
27123 if { (ac_try="$ac_link"
27124 case "(($ac_try" in
27125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126   *) ac_try_echo=$ac_try;;
27127 esac
27128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129   (eval "$ac_link") 2>conftest.er1
27130   ac_status=$?
27131   grep -v '^ *+' conftest.er1 >conftest.err
27132   rm -f conftest.er1
27133   cat conftest.err >&5
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); } && {
27136          test -z "$ac_c_werror_flag" ||
27137          test ! -s conftest.err
27138        } && test -s conftest$ac_exeext &&
27139        $as_test_x conftest$ac_exeext; then
27140
27141           ac_cv_openssl_sha2="yes"
27142
27143 else
27144   echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147
27148           ac_cv_openssl_sha2="no"
27149
27150
27151 fi
27152
27153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27154       conftest$ac_exeext conftest.$ac_ext
27155
27156                cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162
27163           #include <openssl/evp.h>
27164
27165 int
27166 main ()
27167 {
27168
27169           EVP_aes_192_cbc();
27170
27171   ;
27172   return 0;
27173 }
27174 _ACEOF
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179   *) ac_try_echo=$ac_try;;
27180 esac
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182   (eval "$ac_link") 2>conftest.er1
27183   ac_status=$?
27184   grep -v '^ *+' conftest.er1 >conftest.err
27185   rm -f conftest.er1
27186   cat conftest.err >&5
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); } && {
27189          test -z "$ac_c_werror_flag" ||
27190          test ! -s conftest.err
27191        } && test -s conftest$ac_exeext &&
27192        $as_test_x conftest$ac_exeext; then
27193
27194           ac_cv_openssl_export="no"
27195
27196 else
27197   echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27199
27200
27201           ac_cv_openssl_export="yes"
27202
27203
27204 fi
27205
27206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27207       conftest$ac_exeext conftest.$ac_ext
27208
27209    LIBS="${saved_LIBS}"
27210    CFLAGS="${saved_CFLAGS}"
27211
27212    if test "$support_tls" = "yes"; then
27213
27214 cat >>confdefs.h <<\_ACEOF
27215 #define HAVE_OPENSSL 1
27216 _ACEOF
27217
27218
27219 cat >>confdefs.h <<\_ACEOF
27220 #define HAVE_TLS 1
27221 _ACEOF
27222
27223
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_CRYPTO 1
27226 _ACEOF
27227
27228    fi
27229
27230    if test "$ac_cv_openssl_sha2" = "yes"; then
27231
27232 cat >>confdefs.h <<\_ACEOF
27233 #define HAVE_SHA2 1
27234 _ACEOF
27235
27236    fi
27237
27238    if test "$ac_cv_openssl_export" = "yes"; then
27239
27240 cat >>confdefs.h <<\_ACEOF
27241 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27242 _ACEOF
27243
27244    fi
27245 else
27246    support_tls="no"
27247    support_crypto="no"
27248    OPENSSL_LIBS=""
27249    OPENSSL_INC=""
27250 fi
27251
27252 { echo "$as_me:$LINENO: result: $support_tls" >&5
27253 echo "${ECHO_T}$support_tls" >&6; }
27254
27255
27256
27257 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27258 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27259 if test "${ac_cv_search_dlopen+set}" = set; then
27260   echo $ECHO_N "(cached) $ECHO_C" >&6
27261 else
27262   ac_func_search_save_LIBS=$LIBS
27263 cat >conftest.$ac_ext <<_ACEOF
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269
27270 /* Override any GCC internal prototype to avoid an error.
27271    Use char because int might match the return type of a GCC
27272    builtin and then its argument prototype would still apply.  */
27273 #ifdef __cplusplus
27274 extern "C"
27275 #endif
27276 char dlopen ();
27277 int
27278 main ()
27279 {
27280 return dlopen ();
27281   ;
27282   return 0;
27283 }
27284 _ACEOF
27285 for ac_lib in '' dl; do
27286   if test -z "$ac_lib"; then
27287     ac_res="none required"
27288   else
27289     ac_res=-l$ac_lib
27290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27291   fi
27292   rm -f conftest.$ac_objext conftest$ac_exeext
27293 if { (ac_try="$ac_link"
27294 case "(($ac_try" in
27295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296   *) ac_try_echo=$ac_try;;
27297 esac
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299   (eval "$ac_link") 2>conftest.er1
27300   ac_status=$?
27301   grep -v '^ *+' conftest.er1 >conftest.err
27302   rm -f conftest.er1
27303   cat conftest.err >&5
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } && {
27306          test -z "$ac_c_werror_flag" ||
27307          test ! -s conftest.err
27308        } && test -s conftest$ac_exeext &&
27309        $as_test_x conftest$ac_exeext; then
27310   ac_cv_search_dlopen=$ac_res
27311 else
27312   echo "$as_me: failed program was:" >&5
27313 sed 's/^/| /' conftest.$ac_ext >&5
27314
27315
27316 fi
27317
27318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27319       conftest$ac_exeext
27320   if test "${ac_cv_search_dlopen+set}" = set; then
27321   break
27322 fi
27323 done
27324 if test "${ac_cv_search_dlopen+set}" = set; then
27325   :
27326 else
27327   ac_cv_search_dlopen=no
27328 fi
27329 rm conftest.$ac_ext
27330 LIBS=$ac_func_search_save_LIBS
27331 fi
27332 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27333 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27334 ac_res=$ac_cv_search_dlopen
27335 if test "$ac_res" != no; then
27336   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27337
27338 fi
27339
27340
27341 working_dir=`eval echo ${prefix}/var/bacula/working`
27342
27343 # Check whether --with-working-dir was given.
27344 if test "${with_working_dir+set}" = set; then
27345   withval=$with_working_dir;
27346        if test "x$withval" != "xno" ; then
27347          working_dir=$withval
27348        fi
27349
27350
27351 fi
27352
27353
27354
27355
27356 archivedir=/tmp
27357
27358 # Check whether --with-archivedir was given.
27359 if test "${with_archivedir+set}" = set; then
27360   withval=$with_archivedir;
27361        if test "x$withval" != "xno" ; then
27362           archivedir=$withval
27363        fi
27364
27365
27366 fi
27367
27368
27369
27370
27371 basename=`hostname`
27372
27373 # Check whether --with-basename was given.
27374 if test "${with_basename+set}" = set; then
27375   withval=$with_basename;
27376        if test "x$withval" != "xno" ; then
27377           basename=$withval
27378        fi
27379
27380
27381 fi
27382
27383
27384
27385
27386
27387 scriptdir=`eval echo ${sysconfdir}`
27388
27389 # Check whether --with-scriptdir was given.
27390 if test "${with_scriptdir+set}" = set; then
27391   withval=$with_scriptdir;
27392        if test "x$withval" != "xno" ; then
27393           scriptdir=$withval
27394        fi
27395
27396
27397 fi
27398
27399
27400
27401
27402
27403 bsrdir=/tmp
27404
27405 # Check whether --with-bsrdir was given.
27406 if test "${with_bsrdir+set}" = set; then
27407   withval=$with_bsrdir;
27408        if test "x$withval" != "xno" ; then
27409           bsrdir=$withval
27410        fi
27411
27412
27413 fi
27414
27415
27416
27417
27418 logdir=/tmp
27419
27420 # Check whether --with-logdir was given.
27421 if test "${with_logdir+set}" = set; then
27422   withval=$with_logdir;
27423        if test "x$withval" != "xno" ; then
27424           logdir=$withval
27425        fi
27426
27427
27428 fi
27429
27430
27431
27432
27433
27434 # ------------------------------------------
27435 # Where to place plugindir (plugin files)
27436 # ------------------------------------------
27437 plugindir=`eval echo ${libdir}`
27438
27439 # Check whether --with-plugindir was given.
27440 if test "${with_plugindir+set}" = set; then
27441   withval=$with_plugindir;
27442        if test "x$withval" != "xno" ; then
27443           plugindir=$withval
27444        fi
27445
27446
27447 fi
27448
27449
27450
27451
27452 dump_email=root@localhost
27453
27454 # Check whether --with-dump-email was given.
27455 if test "${with_dump_email+set}" = set; then
27456   withval=$with_dump_email;
27457        if test "x$withval" != "xno" ; then
27458           dump_email=$withval
27459        fi
27460
27461
27462 fi
27463
27464
27465
27466
27467 job_email=root@localhost
27468
27469 # Check whether --with-job-email was given.
27470 if test "${with_job_email+set}" = set; then
27471   withval=$with_job_email;
27472        if test "x$withval" != "xno" ; then
27473           job_email=$withval
27474        fi
27475
27476
27477 fi
27478
27479
27480
27481
27482 smtp_host=localhost
27483
27484 # Check whether --with-smtp_host was given.
27485 if test "${with_smtp_host+set}" = set; then
27486   withval=$with_smtp_host;
27487        if test "x$withval" != "xno" ; then
27488           smtp_host=$withval
27489        fi
27490
27491
27492 fi
27493
27494
27495
27496
27497 piddir=/var/run
27498
27499 # Check whether --with-pid-dir was given.
27500 if test "${with_pid_dir+set}" = set; then
27501   withval=$with_pid_dir;
27502        if test "x$withval" != "xno" ; then
27503           piddir=$withval
27504        fi
27505
27506
27507 fi
27508
27509
27510 cat >>confdefs.h <<_ACEOF
27511 #define _PATH_BACULA_PIDDIR "$piddir"
27512 _ACEOF
27513
27514
27515
27516 subsysdir=/var/run/subsys
27517 if test -d /var/run/subsys; then
27518    subsysdir=/var/run/subsys
27519 elif test -d /var/lock/subsys; then
27520    subsysdir=/var/lock/subsys
27521 else
27522    subsysdir=/var/run/subsys
27523 fi
27524
27525 # Check whether --with-subsys-dir was given.
27526 if test "${with_subsys_dir+set}" = set; then
27527   withval=$with_subsys_dir;
27528        if test "x$withval" != "xno" ; then
27529           subsysdir=$withval
27530        fi
27531
27532
27533 fi
27534
27535
27536
27537
27538 baseport=9101
27539
27540 # Check whether --with-baseport was given.
27541 if test "${with_baseport+set}" = set; then
27542   withval=$with_baseport;
27543        if test "x$withval" != "xno" ; then
27544           baseport=$withval
27545        fi
27546
27547
27548 fi
27549
27550
27551
27552 dir_port=`expr $baseport`
27553 fd_port=`expr $baseport + 1`
27554 sd_port=`expr $fd_port + 1`
27555
27556
27557
27558
27559
27560 dir_password=
27561
27562 # Check whether --with-dir-password was given.
27563 if test "${with_dir_password+set}" = set; then
27564   withval=$with_dir_password;
27565        if test "x$withval" != "xno" ; then
27566           dir_password=$withval
27567        fi
27568
27569
27570 fi
27571
27572
27573 if test "x$dir_password" = "x" ; then
27574    if test "x$OPENSSL" = "xnone" ; then
27575       key=`autoconf/randpass 33`
27576    else
27577       key=`openssl rand -base64 33`
27578    fi
27579    dir_password=$key
27580 fi
27581
27582 fd_password=
27583
27584 # Check whether --with-fd-password was given.
27585 if test "${with_fd_password+set}" = set; then
27586   withval=$with_fd_password;
27587        if test "x$withval" != "xno" ; then
27588           fd_password=$withval
27589        fi
27590
27591
27592 fi
27593
27594
27595 if test "x$fd_password" = "x" ; then
27596    if test "x$OPENSSL" = "xnone" ; then
27597       key=`autoconf/randpass 37`
27598    else
27599       key=`openssl rand -base64 33`
27600    fi
27601    fd_password=$key
27602 fi
27603
27604 sd_password=
27605
27606 # Check whether --with-sd-password was given.
27607 if test "${with_sd_password+set}" = set; then
27608   withval=$with_sd_password;
27609        if test "x$withval" != "xno" ; then
27610           sd_password=$withval
27611        fi
27612
27613
27614 fi
27615
27616
27617 if test "x$sd_password" = "x" ; then
27618    if test "x$OPENSSL" = "xnone" ; then
27619       key=`autoconf/randpass 41`
27620    else
27621       key=`openssl rand -base64 33`
27622    fi
27623    sd_password=$key
27624 fi
27625
27626 mon_dir_password=
27627
27628 # Check whether --with-mon-dir-password was given.
27629 if test "${with_mon_dir_password+set}" = set; then
27630   withval=$with_mon_dir_password;
27631        if test "x$withval" != "xno" ; then
27632           mon_dir_password=$withval
27633        fi
27634
27635
27636 fi
27637
27638
27639 if test "x$mon_dir_password" = "x" ; then
27640    if test "x$OPENSSL" = "xnone" ; then
27641       key=`autoconf/randpass 33`
27642    else
27643       key=`openssl rand -base64 33`
27644    fi
27645    mon_dir_password=$key
27646 fi
27647
27648 mon_fd_password=
27649
27650 # Check whether --with-mon-fd-password was given.
27651 if test "${with_mon_fd_password+set}" = set; then
27652   withval=$with_mon_fd_password;
27653        if test "x$withval" != "xno" ; then
27654           mon_fd_password=$withval
27655        fi
27656
27657
27658 fi
27659
27660
27661 if test "x$mon_fd_password" = "x" ; then
27662    if test "x$OPENSSL" = "xnone" ; then
27663       key=`autoconf/randpass 37`
27664    else
27665       key=`openssl rand -base64 33`
27666    fi
27667    mon_fd_password=$key
27668 fi
27669
27670 mon_sd_password=
27671
27672 # Check whether --with-mon-sd-password was given.
27673 if test "${with_mon_sd_password+set}" = set; then
27674   withval=$with_mon_sd_password;
27675        if test "x$withval" != "xno" ; then
27676           mon_sd_password=$withval
27677        fi
27678
27679
27680 fi
27681
27682
27683 if test "x$mon_sd_password" = "x" ; then
27684    if test "x$OPENSSL" = "xnone" ; then
27685       key=`autoconf/randpass 41`
27686    else
27687       key=`openssl rand -base64 33`
27688    fi
27689    mon_sd_password=$key
27690 fi
27691
27692
27693
27694
27695
27696
27697
27698
27699 db_name=bacula
27700
27701 # Check whether --with-db_name was given.
27702 if test "${with_db_name+set}" = set; then
27703   withval=$with_db_name;
27704        if test "x$withval" != "x" ; then
27705           db_name=$withval
27706        fi
27707
27708
27709 fi
27710
27711
27712
27713 db_user=bacula
27714
27715 # Check whether --with-db_user was given.
27716 if test "${with_db_user+set}" = set; then
27717   withval=$with_db_user;
27718        if test "x$withval" != "x" ; then
27719           db_user=$withval
27720        fi
27721
27722
27723 fi
27724
27725
27726
27727 db_password=
27728
27729 # Check whether --with-db_password was given.
27730 if test "${with_db_password+set}" = set; then
27731   withval=$with_db_password;
27732        if test "x$withval" != "x" ; then
27733           db_password=$withval
27734        fi
27735
27736
27737 fi
27738
27739
27740
27741 db_port=" "
27742
27743 # Check whether --with-db_port was given.
27744 if test "${with_db_port+set}" = set; then
27745   withval=$with_db_port;
27746        if test "x$withval" != "x" ; then
27747           db_port=$withval
27748        fi
27749
27750
27751 fi
27752
27753
27754
27755 #
27756 # Handle users and groups for each daemon
27757 #
27758 dir_user=
27759
27760 # Check whether --with-dir_user was given.
27761 if test "${with_dir_user+set}" = set; then
27762   withval=$with_dir_user;
27763        if test "x$withval" != "x" ; then
27764            dir_user=$withval
27765        fi
27766
27767
27768 fi
27769
27770
27771 dir_group=
27772
27773 # Check whether --with-dir_group was given.
27774 if test "${with_dir_group+set}" = set; then
27775   withval=$with_dir_group;
27776        if test "x$withval" != "x" ; then
27777           dir_group=$withval
27778        fi
27779
27780
27781 fi
27782
27783
27784 sd_user=
27785
27786 # Check whether --with-sd_user was given.
27787 if test "${with_sd_user+set}" = set; then
27788   withval=$with_sd_user;
27789        if test "x$withval" != "x" ; then
27790           sd_user=$withval
27791        fi
27792
27793
27794 fi
27795
27796
27797 sd_group=
27798
27799 # Check whether --with-sd_group was given.
27800 if test "${with_sd_group+set}" = set; then
27801   withval=$with_sd_group;
27802        if test "x$withval" != "x" ; then
27803           sd_group=$withval
27804        fi
27805
27806
27807 fi
27808
27809
27810 fd_user=
27811
27812 # Check whether --with-fd_user was given.
27813 if test "${with_fd_user+set}" = set; then
27814   withval=$with_fd_user;
27815        if test "x$withval" != "x" ; then
27816           fd_user=$withval
27817        fi
27818
27819
27820 fi
27821
27822
27823 fd_group=
27824
27825 # Check whether --with-fd_group was given.
27826 if test "${with_fd_group+set}" = set; then
27827   withval=$with_fd_group;
27828        if test "x$withval" != "x" ; then
27829           fd_group=$withval
27830        fi
27831
27832
27833 fi
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843 SBINPERM=0754
27844
27845 # Check whether --with-sbin-perm was given.
27846 if test "${with_sbin_perm+set}" = set; then
27847   withval=$with_sbin_perm;
27848        if test "x$withval" != "x" ; then
27849           SBINPERM=$withval
27850        fi
27851
27852
27853 fi
27854
27855
27856
27857
27858 SQL_LIB=
27859
27860 db_found=no
27861 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27862 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27863
27864 # Check whether --with-postgresql was given.
27865 if test "${with_postgresql+set}" = set; then
27866   withval=$with_postgresql;
27867   if test "$withval" != "no"; then
27868       if test "$db_found" = "yes"; then
27869           { echo "$as_me:$LINENO: result: error" >&5
27870 echo "${ECHO_T}error" >&6; }
27871           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27872 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27873    { (exit 1); exit 1; }; };
27874       fi
27875       if test "$withval" = "yes"; then
27876           PG_CONFIG=`which pg_config`
27877           if test -n "$PG_CONFIG";then
27878               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27879               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27880               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27881           elif test -f /usr/local/include/libpq-fe.h; then
27882               POSTGRESQL_INCDIR=/usr/local/include
27883               if test -d /usr/local/lib64; then
27884                  POSTGRESQL_LIBDIR=/usr/local/lib64
27885               else
27886                  POSTGRESQL_LIBDIR=/usr/local/lib
27887               fi
27888               POSTGRESQL_BINDIR=/usr/local/bin
27889           elif test -f /usr/include/libpq-fe.h; then
27890               POSTGRESQL_INCDIR=/usr/include
27891               if test -d /usr/lib64; then
27892                  POSTGRESQL_LIBDIR=/usr/lib64
27893               else
27894                  POSTGRESQL_LIBDIR=/usr/lib
27895               fi
27896               POSTGRESQL_BINDIR=/usr/bin
27897           elif test -f /usr/include/pgsql/libpq-fe.h; then
27898               POSTGRESQL_INCDIR=/usr/include/pgsql
27899               if test -d /usr/lib64/pgsql; then
27900                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27901               else
27902                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27903               fi
27904               POSTGRESQL_BINDIR=/usr/bin
27905           elif test -f /usr/include/postgresql/libpq-fe.h; then
27906               POSTGRESQL_INCDIR=/usr/include/postgresql
27907               if test -d /usr/lib64/postgresql; then
27908                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27909               else
27910                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27911               fi
27912               POSTGRESQL_BINDIR=/usr/bin
27913           else
27914               { echo "$as_me:$LINENO: result: no" >&5
27915 echo "${ECHO_T}no" >&6; }
27916               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27917 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27918    { (exit 1); exit 1; }; }
27919           fi
27920       elif test -f $withval/include/libpq-fe.h; then
27921           POSTGRESQL_INCDIR=$withval/include
27922           POSTGRESQL_LIBDIR=$withval/lib
27923           POSTGRESQL_BINDIR=$withval/bin
27924       elif test -f $withval/include/postgresql/libpq-fe.h; then
27925           POSTGRESQL_INCDIR=$withval/include/postgresql
27926      if test -d $withval/lib64; then
27927          POSTGRESQL_LIBDIR=$withval/lib64
27928      else
27929          POSTGRESQL_LIBDIR=$withval/lib
27930      fi
27931           POSTGRESQL_BINDIR=$withval/bin
27932       else
27933           { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27935           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27936 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27937    { (exit 1); exit 1; }; }
27938       fi
27939       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27940       { echo "$as_me:$LINENO: checking for crypt" >&5
27941 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27942 if test "${ac_cv_func_crypt+set}" = set; then
27943   echo $ECHO_N "(cached) $ECHO_C" >&6
27944 else
27945   cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27953 #define crypt innocuous_crypt
27954
27955 /* System header to define __stub macros and hopefully few prototypes,
27956     which can conflict with char crypt (); below.
27957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27958     <limits.h> exists even on freestanding compilers.  */
27959
27960 #ifdef __STDC__
27961 # include <limits.h>
27962 #else
27963 # include <assert.h>
27964 #endif
27965
27966 #undef crypt
27967
27968 /* Override any GCC internal prototype to avoid an error.
27969    Use char because int might match the return type of a GCC
27970    builtin and then its argument prototype would still apply.  */
27971 #ifdef __cplusplus
27972 extern "C"
27973 #endif
27974 char crypt ();
27975 /* The GNU C library defines this for functions which it implements
27976     to always fail with ENOSYS.  Some functions are actually named
27977     something starting with __ and the normal name is an alias.  */
27978 #if defined __stub_crypt || defined __stub___crypt
27979 choke me
27980 #endif
27981
27982 int
27983 main ()
27984 {
27985 return crypt ();
27986   ;
27987   return 0;
27988 }
27989 _ACEOF
27990 rm -f conftest.$ac_objext conftest$ac_exeext
27991 if { (ac_try="$ac_link"
27992 case "(($ac_try" in
27993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994   *) ac_try_echo=$ac_try;;
27995 esac
27996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997   (eval "$ac_link") 2>conftest.er1
27998   ac_status=$?
27999   grep -v '^ *+' conftest.er1 >conftest.err
28000   rm -f conftest.er1
28001   cat conftest.err >&5
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); } && {
28004          test -z "$ac_c_werror_flag" ||
28005          test ! -s conftest.err
28006        } && test -s conftest$ac_exeext &&
28007        $as_test_x conftest$ac_exeext; then
28008   ac_cv_func_crypt=yes
28009 else
28010   echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28012
28013         ac_cv_func_crypt=no
28014 fi
28015
28016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28017       conftest$ac_exeext conftest.$ac_ext
28018 fi
28019 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28020 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28021 if test $ac_cv_func_crypt = yes; then
28022   :
28023 else
28024   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28025 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28026 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28027   echo $ECHO_N "(cached) $ECHO_C" >&6
28028 else
28029   ac_check_lib_save_LIBS=$LIBS
28030 LIBS="-lcrypt  $LIBS"
28031 cat >conftest.$ac_ext <<_ACEOF
28032 /* confdefs.h.  */
28033 _ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h.  */
28037
28038 /* Override any GCC internal prototype to avoid an error.
28039    Use char because int might match the return type of a GCC
28040    builtin and then its argument prototype would still apply.  */
28041 #ifdef __cplusplus
28042 extern "C"
28043 #endif
28044 char crypt ();
28045 int
28046 main ()
28047 {
28048 return crypt ();
28049   ;
28050   return 0;
28051 }
28052 _ACEOF
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (ac_try="$ac_link"
28055 case "(($ac_try" in
28056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057   *) ac_try_echo=$ac_try;;
28058 esac
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060   (eval "$ac_link") 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } && {
28067          test -z "$ac_c_werror_flag" ||
28068          test ! -s conftest.err
28069        } && test -s conftest$ac_exeext &&
28070        $as_test_x conftest$ac_exeext; then
28071   ac_cv_lib_crypt_crypt=yes
28072 else
28073   echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28075
28076         ac_cv_lib_crypt_crypt=no
28077 fi
28078
28079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28080       conftest$ac_exeext conftest.$ac_ext
28081 LIBS=$ac_check_lib_save_LIBS
28082 fi
28083 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28084 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28085 if test $ac_cv_lib_crypt_crypt = yes; then
28086   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28087 fi
28088
28089 fi
28090
28091       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28092       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28093       SQL_BINDIR=$POSTGRESQL_BINDIR
28094       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28095
28096       cat >>confdefs.h <<\_ACEOF
28097 #define HAVE_POSTGRESQL 1
28098 _ACEOF
28099
28100       { echo "$as_me:$LINENO: result: yes" >&5
28101 echo "${ECHO_T}yes" >&6; }
28102       db_found=yes
28103       support_postgresql=yes
28104       db_type=PostgreSQL
28105       DB_TYPE=postgresql
28106   else
28107       { echo "$as_me:$LINENO: result: no" >&5
28108 echo "${ECHO_T}no" >&6; }
28109   fi
28110
28111 else
28112
28113   { echo "$as_me:$LINENO: result: no" >&5
28114 echo "${ECHO_T}no" >&6; }
28115
28116 fi
28117
28118
28119
28120
28121
28122
28123
28124
28125 db_found=no
28126 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28127 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28128
28129 # Check whether --with-mysql was given.
28130 if test "${with_mysql+set}" = set; then
28131   withval=$with_mysql;
28132   if test "$withval" != "no"; then
28133         if test "$withval" = "yes"; then
28134            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28135                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28136                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28137                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28138                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28139                    else
28140                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28141                    fi
28142                    MYSQL_BINDIR=/usr/local/mysql/bin
28143            elif test -f /usr/include/mysql/mysql.h; then
28144                    MYSQL_INCDIR=/usr/include/mysql
28145                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28146                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28147                            MYSQL_LIBDIR=/usr/lib64/mysql
28148                    elif test -f /usr/lib64/libmysqlclient_r.a \
28149                         -o -f /usr/lib64/libmysqlclient_r.so; then
28150                            MYSQL_LIBDIR=/usr/lib64
28151                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28152                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28153                            MYSQL_LIBDIR=/usr/lib/mysql
28154                    else
28155                            MYSQL_LIBDIR=/usr/lib
28156                    fi
28157                    MYSQL_BINDIR=/usr/bin
28158            elif test -f /usr/include/mysql.h; then
28159                    MYSQL_INCDIR=/usr/include
28160                    if test -f /usr/lib64/libmysqlclient_r.a \
28161                         -o -f /usr/lib64/libmysqlclient_r.so; then
28162                            MYSQL_LIBDIR=/usr/lib64
28163                    else
28164                            MYSQL_LIBDIR=/usr/lib
28165                    fi
28166                    MYSQL_BINDIR=/usr/bin
28167            elif test -f /usr/local/include/mysql/mysql.h; then
28168                    MYSQL_INCDIR=/usr/local/include/mysql
28169                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28170                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28171                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28172                    else
28173                            MYSQL_LIBDIR=/usr/local/lib/mysql
28174                    fi
28175                    MYSQL_BINDIR=/usr/local/bin
28176            elif test -f /usr/local/include/mysql.h; then
28177                    MYSQL_INCDIR=/usr/local/include
28178                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28179                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28180                            MYSQL_LIBDIR=/usr/local/lib64
28181                    else
28182                            MYSQL_LIBDIR=/usr/local/lib
28183                    fi
28184                    MYSQL_BINDIR=/usr/local/bin
28185            else
28186               { echo "$as_me:$LINENO: result: no" >&5
28187 echo "${ECHO_T}no" >&6; }
28188               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28189 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28190    { (exit 1); exit 1; }; }
28191            fi
28192         else
28193            if test -f $withval/include/mysql/mysql.h; then
28194               MYSQL_INCDIR=$withval/include/mysql
28195               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28196                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28197                  MYSQL_LIBDIR=$withval/lib64/mysql
28198               elif test -f $withval/lib64/libmysqlclient_r.a \
28199                    -o -f $withval/lib64/libmysqlclient_r.so; then
28200                  MYSQL_LIBDIR=$withval/lib64
28201               elif test -f $withval/lib/libmysqlclient_r.a \
28202                    -o -f $withval/lib/libmysqlclient_r.so; then
28203                  MYSQL_LIBDIR=$withval/lib
28204               else
28205                  MYSQL_LIBDIR=$withval/lib/mysql
28206               fi
28207               MYSQL_BINDIR=$withval/bin
28208            elif test -f $withval/include/mysql.h; then
28209               MYSQL_INCDIR=$withval/include
28210               if test -f $withval/lib64/libmysqlclient_r.a \
28211                    -o -f $withval/lib64/libmysqlclient_r.so; then
28212                  MYSQL_LIBDIR=$withval/lib64
28213               else
28214                  MYSQL_LIBDIR=$withval/lib
28215               fi
28216               MYSQL_BINDIR=$withval/bin
28217            else
28218               { echo "$as_me:$LINENO: result: no" >&5
28219 echo "${ECHO_T}no" >&6; }
28220               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28221 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28222    { (exit 1); exit 1; }; }
28223            fi
28224         fi
28225     SQL_INCLUDE=-I$MYSQL_INCDIR
28226     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28227          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28228        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28229        cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_THREAD_SAFE_MYSQL 1
28231 _ACEOF
28232
28233     fi
28234     SQL_BINDIR=$MYSQL_BINDIR
28235     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28236
28237     cat >>confdefs.h <<\_ACEOF
28238 #define HAVE_MYSQL 1
28239 _ACEOF
28240
28241     { echo "$as_me:$LINENO: result: yes" >&5
28242 echo "${ECHO_T}yes" >&6; }
28243     db_found=yes
28244     support_mysql=yes
28245     db_type=MySQL
28246     DB_TYPE=mysql
28247
28248   else
28249         { echo "$as_me:$LINENO: result: no" >&5
28250 echo "${ECHO_T}no" >&6; }
28251   fi
28252
28253
28254 fi
28255
28256
28257
28258 # Check whether --with-embedded-mysql was given.
28259 if test "${with_embedded_mysql+set}" = set; then
28260   withval=$with_embedded_mysql;
28261   if test "$withval" != "no"; then
28262         if test "$withval" = "yes"; then
28263                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28264                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28265                         if test -d /usr/local/mysql/lib64/mysql; then
28266                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28267                         else
28268                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28269                         fi
28270                         MYSQL_BINDIR=/usr/local/mysql/bin
28271                 elif test -f /usr/include/mysql/mysql.h; then
28272                         MYSQL_INCDIR=/usr/include/mysql
28273                         if test -d /usr/lib64/mysql; then
28274                                 MYSQL_LIBDIR=/usr/lib64/mysql
28275                         else
28276                                 MYSQL_LIBDIR=/usr/lib/mysql
28277                         fi
28278                         MYSQL_BINDIR=/usr/bin
28279                 elif test -f /usr/include/mysql.h; then
28280                         MYSQL_INCDIR=/usr/include
28281                         if test -d /usr/lib64; then
28282                                 MYSQL_LIBDIR=/usr/lib64
28283                         else
28284                                 MYSQL_LIBDIR=/usr/lib
28285                         fi
28286                         MYSQL_BINDIR=/usr/bin
28287                 elif test -f /usr/local/include/mysql/mysql.h; then
28288                         MYSQL_INCDIR=/usr/local/include/mysql
28289                         if test -d /usr/local/lib64/mysql; then
28290                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28291                         else
28292                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28293                         fi
28294                         MYSQL_BINDIR=/usr/local/bin
28295                 elif test -f /usr/local/include/mysql.h; then
28296                         MYSQL_INCDIR=/usr/local/include
28297                         if test -d /usr/local/lib64; then
28298                                 MYSQL_LIBDIR=/usr/local/lib64
28299                         else
28300                                 MYSQL_LIBDIR=/usr/local/lib
28301                         fi
28302                         MYSQL_BINDIR=/usr/local/bin
28303                 else
28304                    { echo "$as_me:$LINENO: result: no" >&5
28305 echo "${ECHO_T}no" >&6; }
28306                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28307 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28308    { (exit 1); exit 1; }; }
28309                 fi
28310         else
28311                 if test -f $withval/include/mysql/mysql.h; then
28312                         MYSQL_INCDIR=$withval/include/mysql
28313                         if test -d $withval/lib64/mysql; then
28314                                 MYSQL_LIBDIR=$withval/lib64/mysql
28315                         else
28316                                 MYSQL_LIBDIR=$withval/lib/mysql
28317                         fi
28318                         MYSQL_BINDIR=$withval/bin
28319                 elif test -f $withval/include/mysql.h; then
28320                         MYSQL_INCDIR=$withval/include
28321                         if test -d $withval/lib64; then
28322                                 MYSQL_LIBDIR=$withval/lib64
28323                         else
28324                                 MYSQL_LIBDIR=$withval/lib
28325                         fi
28326                         MYSQL_BINDIR=$withval/bin
28327                 else
28328                    { echo "$as_me:$LINENO: result: no" >&5
28329 echo "${ECHO_T}no" >&6; }
28330                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28331 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28332    { (exit 1); exit 1; }; }
28333                 fi
28334         fi
28335     SQL_INCLUDE=-I$MYSQL_INCDIR
28336     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28337     SQL_BINDIR=$MYSQL_BINDIR
28338     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28339
28340     cat >>confdefs.h <<\_ACEOF
28341 #define HAVE_MYSQL 1
28342 _ACEOF
28343
28344     cat >>confdefs.h <<\_ACEOF
28345 #define HAVE_EMBEDDED_MYSQL 1
28346 _ACEOF
28347
28348     { echo "$as_me:$LINENO: result: yes" >&5
28349 echo "${ECHO_T}yes" >&6; }
28350     db_found=yes
28351     support_mysql=yes
28352     db_type=MySQL
28353     DB_TYPE=mysql
28354
28355   else
28356         { echo "$as_me:$LINENO: result: no" >&5
28357 echo "${ECHO_T}no" >&6; }
28358   fi
28359
28360
28361 fi
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372 db_found=no
28373 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28374 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28375
28376 # Check whether --with-sqlite3 was given.
28377 if test "${with_sqlite3+set}" = set; then
28378   withval=$with_sqlite3;
28379   if test "$withval" != "no"; then
28380      if test "$withval" = "yes"; then
28381         if test -f /usr/local/include/sqlite3.h; then
28382            SQLITE_INCDIR=/usr/local/include
28383            if test -d /usr/local/lib64; then
28384               SQLITE_LIBDIR=/usr/local/lib64
28385            else
28386               SQLITE_LIBDIR=/usr/local/lib
28387            fi
28388            SQLITE_BINDIR=/usr/local/bin
28389         elif test -f /usr/include/sqlite3.h; then
28390            SQLITE_INCDIR=/usr/include
28391            if test -d /usr/lib64; then
28392               SQLITE_LIBDIR=/usr/lib64
28393            else
28394               SQLITE_LIBDIR=/usr/lib
28395            fi
28396            SQLITE_BINDIR=/usr/bin
28397         elif test -f $prefix/include/sqlite3.h; then
28398            SQLITE_INCDIR=$prefix/include
28399            if test -d $prefix/lib64; then
28400               SQLITE_LIBDIR=$prefix/lib64
28401            else
28402               SQLITE_LIBDIR=$prefix/lib
28403            fi
28404            SQLITE_BINDIR=$prefix/bin
28405         else
28406            { echo "$as_me:$LINENO: result: no" >&5
28407 echo "${ECHO_T}no" >&6; }
28408            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28409 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28410    { (exit 1); exit 1; }; }
28411         fi
28412      else
28413         if test -f $withval/sqlite3.h; then
28414            SQLITE_INCDIR=$withval
28415            SQLITE_LIBDIR=$withval
28416            SQLITE_BINDIR=$withval
28417         elif test -f $withval/include/sqlite3.h; then
28418            SQLITE_INCDIR=$withval/include
28419            if test -d $withval/lib64; then
28420               SQLITE_LIBDIR=$withval/lib64
28421            else
28422               SQLITE_LIBDIR=$withval/lib
28423            fi
28424            SQLITE_BINDIR=$withval/bin
28425         else
28426            { echo "$as_me:$LINENO: result: no" >&5
28427 echo "${ECHO_T}no" >&6; }
28428            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28429 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28430    { (exit 1); exit 1; }; }
28431         fi
28432      fi
28433      SQL_INCLUDE=-I$SQLITE_INCDIR
28434      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28435      SQL_BINDIR=$SQLITE_BINDIR
28436      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28437
28438      cat >>confdefs.h <<\_ACEOF
28439 #define HAVE_SQLITE3 1
28440 _ACEOF
28441
28442      { echo "$as_me:$LINENO: result: yes" >&5
28443 echo "${ECHO_T}yes" >&6; }
28444      db_found=yes
28445      support_sqlite3=yes
28446      db_type=SQLite3
28447      DB_TYPE=sqlite3
28448
28449   else
28450      { echo "$as_me:$LINENO: result: no" >&5
28451 echo "${ECHO_T}no" >&6; }
28452   fi
28453
28454 else
28455
28456   { echo "$as_me:$LINENO: result: no" >&5
28457 echo "${ECHO_T}no" >&6; }
28458
28459 fi
28460
28461
28462
28463
28464
28465
28466
28467
28468 db_found=no
28469 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28470 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28471
28472 # Check whether --with-sqlite was given.
28473 if test "${with_sqlite+set}" = set; then
28474   withval=$with_sqlite;
28475   if test "$withval" != "no"; then
28476      if test "$withval" = "yes"; then
28477         if test -f /usr/local/include/sqlite.h; then
28478            SQLITE_INCDIR=/usr/local/include
28479            if test -d /usr/local/lib64; then
28480               SQLITE_LIBDIR=/usr/local/lib64
28481            else
28482               SQLITE_LIBDIR=/usr/local/lib
28483            fi
28484            SQLITE_BINDIR=/usr/local/bin
28485         elif test -f /usr/include/sqlite.h; then
28486            SQLITE_INCDIR=/usr/include
28487            if test -d /usr/lib64; then
28488               SQLITE_LIBDIR=/usr/lib64
28489            else
28490               SQLITE_LIBDIR=/usr/lib
28491            fi
28492            SQLITE_BINDIR=/usr/bin
28493         elif test -f $prefix/include/sqlite.h; then
28494            SQLITE_INCDIR=$prefix/include
28495            if test -d $prefix/lib64; then
28496               SQLITE_LIBDIR=$prefix/lib64
28497            else
28498               SQLITE_LIBDIR=$prefix/lib
28499            fi
28500            SQLITE_BINDIR=$prefix/bin
28501         else
28502            { echo "$as_me:$LINENO: result: no" >&5
28503 echo "${ECHO_T}no" >&6; }
28504            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28505 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28506    { (exit 1); exit 1; }; }
28507         fi
28508      else
28509         if test -f $withval/sqlite.h; then
28510            SQLITE_INCDIR=$withval
28511            SQLITE_LIBDIR=$withval
28512            SQLITE_BINDIR=$withval
28513         elif test -f $withval/include/sqlite.h; then
28514            SQLITE_INCDIR=$withval/include
28515            if test -d $withval/lib64; then
28516               SQLITE_LIBDIR=$withval/lib64
28517            else
28518               SQLITE_LIBDIR=$withval/lib
28519            fi
28520            SQLITE_BINDIR=$withval/bin
28521         else
28522            { echo "$as_me:$LINENO: result: no" >&5
28523 echo "${ECHO_T}no" >&6; }
28524            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28525 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28526    { (exit 1); exit 1; }; }
28527         fi
28528      fi
28529      SQL_INCLUDE=-I$SQLITE_INCDIR
28530      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28531      SQL_BINDIR=$SQLITE_BINDIR
28532      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28533
28534      cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_SQLITE 1
28536 _ACEOF
28537
28538      { echo "$as_me:$LINENO: result: yes" >&5
28539 echo "${ECHO_T}yes" >&6; }
28540      db_found=yes
28541      support_sqlite=yes
28542      db_type=SQLite
28543      DB_TYPE=sqlite
28544
28545   else
28546      { echo "$as_me:$LINENO: result: no" >&5
28547 echo "${ECHO_T}no" >&6; }
28548   fi
28549
28550 else
28551
28552   { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28554
28555 fi
28556
28557
28558
28559
28560
28561
28562
28563
28564 db_found=no
28565 { echo "$as_me:$LINENO: checking for DBI support" >&5
28566 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28567
28568 # Check whether --with-dbi was given.
28569 if test "${with_dbi+set}" = set; then
28570   withval=$with_dbi;
28571   if test "$withval" != "no"; then
28572      if test "$withval" = "yes"; then
28573         if test -f /usr/local/include/dbi/dbi.h; then
28574            DBI_INCDIR=/usr/local/dbi/include
28575            if test -d /usr/local/lib64; then
28576               DBI_LIBDIR=/usr/local/lib64
28577            else
28578               DBI_LIBDIR=/usr/local/lib
28579            fi
28580            DBI_BINDIR=/usr/local/bin
28581         elif test -f /usr/include/dbi/dbi.h; then
28582            DBI_INCDIR=/usr/include
28583            if test -d /usr/lib64; then
28584               DBI_LIBDIR=/usr/lib64
28585            else
28586               DBI_LIBDIR=/usr/lib
28587            fi
28588            DBI_BINDIR=/usr/bin
28589         elif test -f $prefix/include/dbi/dbi.h; then
28590            DBI_INCDIR=$prefix/include
28591            if test -d $prefix/lib64; then
28592               DBI_LIBDIR=$prefix/lib64
28593            else
28594               DBI_LIBDIR=$prefix/lib
28595            fi
28596            DBI_BINDIR=$prefix/bin
28597         else
28598            { echo "$as_me:$LINENO: result: no" >&5
28599 echo "${ECHO_T}no" >&6; }
28600            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28601 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28602    { (exit 1); exit 1; }; }
28603         fi
28604         if test -d /usr/local/lib/dbd; then
28605            DRIVERDIR=/usr/local/lib/dbd
28606            if test -d /usr/local/lib64/dbd; then
28607               DRIVERDIR=/usr/local/lib64/dbd
28608            else
28609               DRIVERDIR=/usr/local/lib/dbd
28610            fi
28611         elif test -d /usr/lib/dbd; then
28612            DRIVERDIR=/usr/lib/dbd
28613            if test -d /usr/lib64/dbd; then
28614               DRIVERDIR=/usr/lib64/dbd
28615            else
28616               DRIVERDIR=/usr/lib/dbd
28617            fi
28618         elif test -d $prefix/lib/dbd; then
28619            if test -d $prefix/lib64/dbd; then
28620               DRIVERDIR=$prefix/lib64/dbd
28621            else
28622               DRIVERDIR=$prefix/lib/dbd
28623            fi
28624         else
28625            { echo "$as_me:$LINENO: result: no" >&5
28626 echo "${ECHO_T}no" >&6; }
28627            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28628 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28629    { (exit 1); exit 1; }; }
28630         fi
28631      else
28632         if test -f $withval/dbi.h; then
28633            DBI_INCDIR=$withval
28634            DBI_LIBDIR=$withval
28635            DBI_BINDIR=$withval
28636         elif test -f $withval/include/dbi/dbi.h; then
28637            DBI_INCDIR=$withval/include
28638            if test -d $withval/lib64; then
28639               DBI_LIBDIR=$withval/lib64
28640            else
28641               DBI_LIBDIR=$withval/lib
28642            fi
28643            DBI_BINDIR=$withval/bin
28644         else
28645            { echo "$as_me:$LINENO: result: no" >&5
28646 echo "${ECHO_T}no" >&6; }
28647            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28648 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28649    { (exit 1); exit 1; }; }
28650         fi
28651         if test -d $withval/dbd; then
28652            DRIVERDIR=$withval/dbd
28653         elif test -d $withval/lib/; then
28654            if test -d $withval/lib64/dbd; then
28655               DRIVERDIR=$withval/lib64/dbd
28656            else
28657               DRIVERDIR=$withval/lib/dbd
28658            fi
28659         else
28660            { echo "$as_me:$LINENO: result: no" >&5
28661 echo "${ECHO_T}no" >&6; }
28662            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28663 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28664    { (exit 1); exit 1; }; }
28665         fi
28666      fi
28667      SQL_INCLUDE=-I$DBI_INCDIR
28668      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28669      SQL_BINDIR=$DBI_BINDIR
28670      SQL_LIB=$DBI_LIBDIR/libdbi.a
28671      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28672
28673
28674 cat >>confdefs.h <<\_ACEOF
28675 #define HAVE_DBI 1
28676 _ACEOF
28677
28678      { echo "$as_me:$LINENO: result: yes" >&5
28679 echo "${ECHO_T}yes" >&6; }
28680      db_found=yes
28681      support_dbi=yes
28682      db_type=DBI
28683      DB_TYPE=dbi
28684      uncomment_dbi=" "
28685
28686   else
28687      { echo "$as_me:$LINENO: result: no" >&5
28688 echo "${ECHO_T}no" >&6; }
28689   fi
28690
28691 else
28692
28693   { echo "$as_me:$LINENO: result: no" >&5
28694 echo "${ECHO_T}no" >&6; }
28695
28696 fi
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707 db_found=no
28708 db_prog=no
28709 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28710 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28711
28712 # Check whether --with-dbi-driver was given.
28713 if test "${with_dbi_driver+set}" = set; then
28714   withval=$with_dbi_driver;
28715   if test "$withval" != "no"; then
28716      case $withval in
28717         "mysql")
28718            db_prog="mysql"
28719            if test -f /usr/local/mysql/bin/mysql; then
28720               SQL_BINDIR=/usr/local/mysql/bin
28721               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28722                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28723                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28724               else
28725                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28726               fi
28727            elif test -f /usr/bin/mysql; then
28728               SQL_BINDIR=/usr/bin
28729               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28730                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28731                   SQL_LIBDIR=/usr/lib64/mysql
28732               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28733                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28734                   SQL_LIBDIR=/usr/lib/mysql
28735               else
28736                   SQL_LIBDIR=/usr/lib
28737               fi
28738            elif test -f /usr/local/bin/mysql; then
28739               SQL_BINDIR=/usr/local/bin
28740               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28741                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28742                   SQL_LIBDIR=/usr/local/lib64/mysql
28743               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28744                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28745                   SQL_LIBDIR=/usr/local/lib/mysql
28746               else
28747                   SQL_LIBDIR=/usr/local/lib
28748               fi
28749            elif test -f $withval/bin/mysql; then
28750               SQL_BINDIR=$withval/bin
28751               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28752                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28753                   SQL_LIBDIR=$withval/lib64/mysql
28754               elif test -f $withval/lib64/libmysqlclient_r.a \
28755                   -o -f $withval/lib64/libmysqlclient_r.so; then
28756                   SQL_LIBDIR=$withval/lib64
28757               elif test -f $withval/lib/libmysqlclient_r.a \
28758                   -o -f $withval/lib/libmysqlclient_r.so; then
28759                   SQL_LIBDIR=$withval/lib/
28760               else
28761                   SQL_LIBDIR=$withval/lib/mysql
28762               fi
28763            else
28764               { echo "$as_me:$LINENO: result: no" >&5
28765 echo "${ECHO_T}no" >&6; }
28766               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28767 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28768    { (exit 1); exit 1; }; }
28769            fi
28770            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28771               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28772            else
28773               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28774            fi
28775         ;;
28776         "postgresql")
28777            db_prog="postgresql"
28778            PG_CONFIG=`which pg_config`
28779            if test -n "$PG_CONFIG"; then
28780               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28781               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28782            elif test -f /usr/local/bin/psql; then
28783               SQL_BINDIR=/usr/local/bin
28784               if test -d /usr/local/lib64; then
28785                  SQL_LIBDIR=/usr/local/lib64
28786               else
28787                  SQL_LIBDIR=/usr/local/lib
28788               fi
28789            elif test -f /usr/bin/psql; then
28790               SQL_BINDIR=/usr/local/bin
28791               if test -d /usr/lib64/postgresql; then
28792                  SQL_LIBDIR=/usr/lib64/postgresql
28793               elif test -d /usr/lib/postgresql; then
28794                  SQL_LIBDIR=/usr/lib/postgresql
28795               elif test -d /usr/lib64; then
28796                  SQL_LIBDIR=/usr/lib64
28797               else
28798                  SQL_LIBDIR=/usr/lib
28799               fi
28800            elif test -f $withval/bin/psql; then
28801               SQL_BINDIR=$withval/bin
28802               if test -d $withval/lib64; then
28803                  SQL_LIBDIR=$withval/lib64
28804               else
28805                  SQL_LIBDIR=$withval/lib
28806               fi
28807            else
28808               { echo "$as_me:$LINENO: result: no" >&5
28809 echo "${ECHO_T}no" >&6; }
28810               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28811 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28812    { (exit 1); exit 1; }; }
28813            fi
28814            if test -f $SQL_LIBDIR/libpq.so; then
28815               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28816            else
28817               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28818            fi
28819         ;;
28820         "sqlite")
28821            db_prog="sqlite"
28822            if test -f /usr/local/bin/sqlite; then
28823               SQL_BINDIR=/usr/local/bin
28824               if test -d /usr/local/lib64; then
28825                  SQL_LIBDIR=/usr/local/lib64
28826               else
28827                  SQL_LIBDIR=/usr/local/lib
28828               fi
28829            elif test -f /usr/bin/sqlite; then
28830               SQL_BINDIR=/usr/bin
28831               if 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/sqlite; 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 sqlite in standard locations" >&5
28847 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28848    { (exit 1); exit 1; }; }
28849            fi
28850            if test -f $SQL_LIBDIR/libsqlite.so; then
28851               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28852            else
28853               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28854            fi
28855         ;;
28856         "sqlite3")
28857            db_prog="sqlite3"
28858            if test -f /usr/local/bin/sqlite3; 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/sqlite3; 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/sqlite3; 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/libsqlite3.so; then
28887               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28888            else
28889               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28890            fi
28891         ;;
28892         *)
28893            { echo "$as_me:$LINENO: result: no" >&5
28894 echo "${ECHO_T}no" >&6; }
28895            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28896 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28897    { (exit 1); exit 1; }; }
28898         ;;
28899      esac
28900
28901      { echo "$as_me:$LINENO: result: yes" >&5
28902 echo "${ECHO_T}yes" >&6; }
28903      DB_PROG=$db_prog
28904   else
28905      { echo "$as_me:$LINENO: result: no" >&5
28906 echo "${ECHO_T}no" >&6; }
28907   fi
28908
28909 else
28910
28911   { echo "$as_me:$LINENO: result: no" >&5
28912 echo "${ECHO_T}no" >&6; }
28913
28914 fi
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925 support_batch_insert=no
28926 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28927 pkg=$?
28928 if test $pkg = 0; then
28929    support_batch_insert=yes
28930    # Check whether --enable-batch-insert was given.
28931 if test "${enable_batch_insert+set}" = set; then
28932   enableval=$enable_batch_insert;
28933           if test x$enableval = xno; then
28934              support_batch_insert=no
28935           else
28936              support_batch_insert=yes
28937           fi
28938
28939
28940 fi
28941
28942 fi
28943
28944 if test x$DB_TYPE = xpostgresql; then
28945    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28946    pkg=$?
28947    if test $pkg != 0; then
28948       support_batch_insert=no
28949    fi
28950 fi
28951
28952 if test x$DB_TYPE = xdbi; then
28953    DB_TYPE=$DB_PROG
28954    db_type=$DB_PROG
28955    pkg=1
28956       if test $DB_PROG = postgresql; then
28957       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28958       pkg=$?
28959    fi
28960
28961    if test $DB_PROG = mysql; then
28962       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28963       pkg=$?
28964    fi
28965
28966    if test $DB_PROG = sqlite3; then
28967       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28968       pkg=$?
28969    fi
28970
28971    if test $pkg = 0; then
28972       # Check whether --enable-batch-insert was given.
28973 if test "${enable_batch_insert+set}" = set; then
28974   enableval=$enable_batch_insert;
28975              if test x$enableval = xno; then
28976                 support_batch_insert=no
28977              else
28978                 support_batch_insert=yes
28979              fi
28980
28981
28982 fi
28983
28984    fi
28985 else
28986       uncomment_dbi="#"
28987 fi
28988
28989
28990
28991 if test $support_batch_insert = yes ; then
28992
28993 cat >>confdefs.h <<\_ACEOF
28994 #define HAVE_BATCH_FILE_INSERT 1
28995 _ACEOF
28996
28997 fi
28998
28999 cat >>confdefs.h <<\_ACEOF
29000 #define PROTOTYPES 1
29001 _ACEOF
29002
29003
29004 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29005    if test -z "$CCOPTS"; then
29006       CCOPTS='-g -O2 -Wall'
29007    fi
29008    CFLAGS="$CCOPTS"
29009 fi
29010
29011
29012
29013 largefile_support="no"
29014
29015    # Check whether --enable-largefile was given.
29016 if test "${enable_largefile+set}" = set; then
29017   enableval=$enable_largefile;
29018 fi
29019
29020    if test "$enable_largefile" != no; then
29021      if test -n "$ac_tool_prefix"; then
29022   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29023 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29026 if test "${ac_cv_prog_GETCONF+set}" = set; then
29027   echo $ECHO_N "(cached) $ECHO_C" >&6
29028 else
29029   if test -n "$GETCONF"; then
29030   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29031 else
29032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29033 for as_dir in $PATH
29034 do
29035   IFS=$as_save_IFS
29036   test -z "$as_dir" && as_dir=.
29037   for ac_exec_ext in '' $ac_executable_extensions; do
29038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29039     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29041     break 2
29042   fi
29043 done
29044 done
29045 IFS=$as_save_IFS
29046
29047 fi
29048 fi
29049 GETCONF=$ac_cv_prog_GETCONF
29050 if test -n "$GETCONF"; then
29051   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29052 echo "${ECHO_T}$GETCONF" >&6; }
29053 else
29054   { echo "$as_me:$LINENO: result: no" >&5
29055 echo "${ECHO_T}no" >&6; }
29056 fi
29057
29058
29059 fi
29060 if test -z "$ac_cv_prog_GETCONF"; then
29061   ac_ct_GETCONF=$GETCONF
29062   # Extract the first word of "getconf", so it can be a program name with args.
29063 set dummy getconf; ac_word=$2
29064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29066 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29067   echo $ECHO_N "(cached) $ECHO_C" >&6
29068 else
29069   if test -n "$ac_ct_GETCONF"; then
29070   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29071 else
29072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29073 for as_dir in $PATH
29074 do
29075   IFS=$as_save_IFS
29076   test -z "$as_dir" && as_dir=.
29077   for ac_exec_ext in '' $ac_executable_extensions; do
29078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29079     ac_cv_prog_ac_ct_GETCONF="getconf"
29080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29081     break 2
29082   fi
29083 done
29084 done
29085 IFS=$as_save_IFS
29086
29087 fi
29088 fi
29089 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29090 if test -n "$ac_ct_GETCONF"; then
29091   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29092 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29093 else
29094   { echo "$as_me:$LINENO: result: no" >&5
29095 echo "${ECHO_T}no" >&6; }
29096 fi
29097
29098   if test "x$ac_ct_GETCONF" = x; then
29099     GETCONF=""
29100   else
29101     case $cross_compiling:$ac_tool_warned in
29102 yes:)
29103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29104 whose name does not start with the host triplet.  If you think this
29105 configuration is useful to you, please write to autoconf@gnu.org." >&5
29106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29107 whose name does not start with the host triplet.  If you think this
29108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29109 ac_tool_warned=yes ;;
29110 esac
29111     GETCONF=$ac_ct_GETCONF
29112   fi
29113 else
29114   GETCONF="$ac_cv_prog_GETCONF"
29115 fi
29116
29117      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29118 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29119 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29120   echo $ECHO_N "(cached) $ECHO_C" >&6
29121 else
29122   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29123         ac_cv_sys_largefile_CFLAGS=no
29124         case "$host_os" in
29125            # IRIX 6.2 and later require cc -n32.
29126            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29127              if test "$GCC" != yes; then
29128                ac_cv_sys_largefile_CFLAGS=-n32
29129              fi
29130              ac_save_CC="$CC"
29131              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29132              cat >conftest.$ac_ext <<_ACEOF
29133 /* confdefs.h.  */
29134 _ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h.  */
29138
29139 int
29140 main ()
29141 {
29142
29143   ;
29144   return 0;
29145 }
29146 _ACEOF
29147 rm -f conftest.$ac_objext conftest$ac_exeext
29148 if { (ac_try="$ac_link"
29149 case "(($ac_try" in
29150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151   *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154   (eval "$ac_link") 2>conftest.er1
29155   ac_status=$?
29156   grep -v '^ *+' conftest.er1 >conftest.err
29157   rm -f conftest.er1
29158   cat conftest.err >&5
29159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160   (exit $ac_status); } && {
29161          test -z "$ac_c_werror_flag" ||
29162          test ! -s conftest.err
29163        } && test -s conftest$ac_exeext &&
29164        $as_test_x conftest$ac_exeext; then
29165   :
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170         ac_cv_sys_largefile_CFLAGS=no
29171 fi
29172
29173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29174       conftest$ac_exeext conftest.$ac_ext
29175              CC="$ac_save_CC"
29176            esac
29177       }
29178 fi
29179 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29180 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29181      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29182 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29183 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29184   echo $ECHO_N "(cached) $ECHO_C" >&6
29185 else
29186   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29187         ac_cv_sys_largefile_LDFLAGS=no
29188
29189       }
29190 fi
29191 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29192 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29193      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29194 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29195 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 else
29198   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29199         ac_cv_sys_largefile_LIBS=no
29200
29201       }
29202 fi
29203 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29204 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29205
29206      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29207        case "$ac_flag" in
29208        no) ;;
29209        -D_FILE_OFFSET_BITS=*) ;;
29210        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29211        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29212        -D?* | -I?*)
29213          case "$ac_flag" in
29214    no) ;;
29215    ?*)
29216      case "$CPPFLAGS" in
29217      '') CPPFLAGS="$ac_flag" ;;
29218      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29219      esac ;;
29220    esac ;;
29221        *)
29222          case "$ac_flag" in
29223    no) ;;
29224    ?*)
29225      case "$CFLAGS" in
29226      '') CFLAGS="$ac_flag" ;;
29227      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29228      esac ;;
29229    esac ;;
29230        esac
29231      done
29232      case "$ac_cv_sys_largefile_LDFLAGS" in
29233    no) ;;
29234    ?*)
29235      case "$LDFLAGS" in
29236      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29237      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29238      esac ;;
29239    esac
29240      case "$ac_cv_sys_largefile_LIBS" in
29241    no) ;;
29242    ?*)
29243      case "$LIBS" in
29244      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29245      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29246      esac ;;
29247    esac
29248      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29249 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29250 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29251   echo $ECHO_N "(cached) $ECHO_C" >&6
29252 else
29253   ac_cv_sys_file_offset_bits=no
29254       ac_cv_sys_file_offset_bits=64
29255       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29256         case "$ac_flag" in
29257         -D_FILE_OFFSET_BITS)
29258           ac_cv_sys_file_offset_bits=1 ;;
29259         -D_FILE_OFFSET_BITS=*)
29260           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29261         esac
29262       done
29263
29264 fi
29265 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29266 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29267    if test "$ac_cv_sys_file_offset_bits" != no; then
29268
29269 cat >>confdefs.h <<_ACEOF
29270 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29271 _ACEOF
29272
29273    fi
29274      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29275 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29276 if test "${ac_cv_sys_largefile_source+set}" = set; then
29277   echo $ECHO_N "(cached) $ECHO_C" >&6
29278 else
29279   ac_cv_sys_largefile_source=no
29280       ac_cv_sys_largefile_source=1
29281       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29282         case "$ac_flag" in
29283         -D_LARGEFILE_SOURCE)
29284           ac_cv_sys_largefile_source=1 ;;
29285         -D_LARGEFILE_SOURCE=*)
29286           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29287         esac
29288       done
29289
29290 fi
29291 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29292 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29293    if test "$ac_cv_sys_largefile_source" != no; then
29294
29295 cat >>confdefs.h <<_ACEOF
29296 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29297 _ACEOF
29298
29299    fi
29300      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29301 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29302 if test "${ac_cv_sys_large_files+set}" = set; then
29303   echo $ECHO_N "(cached) $ECHO_C" >&6
29304 else
29305   ac_cv_sys_large_files=no
29306       ac_cv_sys_large_files=1
29307       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29308         case "$ac_flag" in
29309         -D_LARGE_FILES)
29310           ac_cv_sys_large_files=1 ;;
29311         -D_LARGE_FILES=*)
29312           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29313         esac
29314       done
29315
29316 fi
29317 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29318 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29319    if test "$ac_cv_sys_large_files" != no; then
29320
29321 cat >>confdefs.h <<_ACEOF
29322 #define _LARGE_FILES $ac_cv_sys_large_files
29323 _ACEOF
29324
29325    fi
29326    fi
29327
29328
29329 { echo "$as_me:$LINENO: checking for X" >&5
29330 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29331
29332
29333 # Check whether --with-x was given.
29334 if test "${with_x+set}" = set; then
29335   withval=$with_x;
29336 fi
29337
29338 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29339 if test "x$with_x" = xno; then
29340   # The user explicitly disabled X.
29341   have_x=disabled
29342 else
29343   case $x_includes,$x_libraries in #(
29344     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29345 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29346    { (exit 1); exit 1; }; };; #(
29347     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29348   echo $ECHO_N "(cached) $ECHO_C" >&6
29349 else
29350   # One or both of the vars are not set, and there is no cached value.
29351 ac_x_includes=no ac_x_libraries=no
29352 rm -f -r conftest.dir
29353 if mkdir conftest.dir; then
29354   cd conftest.dir
29355   cat >Imakefile <<'_ACEOF'
29356 incroot:
29357         @echo incroot='${INCROOT}'
29358 usrlibdir:
29359         @echo usrlibdir='${USRLIBDIR}'
29360 libdir:
29361         @echo libdir='${LIBDIR}'
29362 _ACEOF
29363   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29364     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29365     for ac_var in incroot usrlibdir libdir; do
29366       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29367     done
29368     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29369     for ac_extension in a so sl; do
29370       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29371          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29372         ac_im_usrlibdir=$ac_im_libdir; break
29373       fi
29374     done
29375     # Screen out bogus values from the imake configuration.  They are
29376     # bogus both because they are the default anyway, and because
29377     # using them would break gcc on systems where it needs fixed includes.
29378     case $ac_im_incroot in
29379         /usr/include) ac_x_includes= ;;
29380         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29381     esac
29382     case $ac_im_usrlibdir in
29383         /usr/lib | /lib) ;;
29384         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29385     esac
29386   fi
29387   cd ..
29388   rm -f -r conftest.dir
29389 fi
29390
29391 # Standard set of common directories for X headers.
29392 # Check X11 before X11Rn because it is often a symlink to the current release.
29393 ac_x_header_dirs='
29394 /usr/X11/include
29395 /usr/X11R6/include
29396 /usr/X11R5/include
29397 /usr/X11R4/include
29398
29399 /usr/include/X11
29400 /usr/include/X11R6
29401 /usr/include/X11R5
29402 /usr/include/X11R4
29403
29404 /usr/local/X11/include
29405 /usr/local/X11R6/include
29406 /usr/local/X11R5/include
29407 /usr/local/X11R4/include
29408
29409 /usr/local/include/X11
29410 /usr/local/include/X11R6
29411 /usr/local/include/X11R5
29412 /usr/local/include/X11R4
29413
29414 /usr/X386/include
29415 /usr/x386/include
29416 /usr/XFree86/include/X11
29417
29418 /usr/include
29419 /usr/local/include
29420 /usr/unsupported/include
29421 /usr/athena/include
29422 /usr/local/x11r5/include
29423 /usr/lpp/Xamples/include
29424
29425 /usr/openwin/include
29426 /usr/openwin/share/include'
29427
29428 if test "$ac_x_includes" = no; then
29429   # Guess where to find include files, by looking for Xlib.h.
29430   # First, try using that file with no special directory specified.
29431   cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437 #include <X11/Xlib.h>
29438 _ACEOF
29439 if { (ac_try="$ac_cpp conftest.$ac_ext"
29440 case "(($ac_try" in
29441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442   *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29446   ac_status=$?
29447   grep -v '^ *+' conftest.er1 >conftest.err
29448   rm -f conftest.er1
29449   cat conftest.err >&5
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); } >/dev/null && {
29452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29453          test ! -s conftest.err
29454        }; then
29455   # We can compile using X headers with no special include directory.
29456 ac_x_includes=
29457 else
29458   echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29460
29461   for ac_dir in $ac_x_header_dirs; do
29462   if test -r "$ac_dir/X11/Xlib.h"; then
29463     ac_x_includes=$ac_dir
29464     break
29465   fi
29466 done
29467 fi
29468
29469 rm -f conftest.err conftest.$ac_ext
29470 fi # $ac_x_includes = no
29471
29472 if test "$ac_x_libraries" = no; then
29473   # Check for the libraries.
29474   # See if we find them without any special options.
29475   # Don't add to $LIBS permanently.
29476   ac_save_LIBS=$LIBS
29477   LIBS="-lX11 $LIBS"
29478   cat >conftest.$ac_ext <<_ACEOF
29479 /* confdefs.h.  */
29480 _ACEOF
29481 cat confdefs.h >>conftest.$ac_ext
29482 cat >>conftest.$ac_ext <<_ACEOF
29483 /* end confdefs.h.  */
29484 #include <X11/Xlib.h>
29485 int
29486 main ()
29487 {
29488 XrmInitialize ()
29489   ;
29490   return 0;
29491 }
29492 _ACEOF
29493 rm -f conftest.$ac_objext conftest$ac_exeext
29494 if { (ac_try="$ac_link"
29495 case "(($ac_try" in
29496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497   *) ac_try_echo=$ac_try;;
29498 esac
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500   (eval "$ac_link") 2>conftest.er1
29501   ac_status=$?
29502   grep -v '^ *+' conftest.er1 >conftest.err
29503   rm -f conftest.er1
29504   cat conftest.err >&5
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } && {
29507          test -z "$ac_c_werror_flag" ||
29508          test ! -s conftest.err
29509        } && test -s conftest$ac_exeext &&
29510        $as_test_x conftest$ac_exeext; then
29511   LIBS=$ac_save_LIBS
29512 # We can link X programs with no special library path.
29513 ac_x_libraries=
29514 else
29515   echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29517
29518         LIBS=$ac_save_LIBS
29519 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29520 do
29521   # Don't even attempt the hair of trying to link an X program!
29522   for ac_extension in a so sl; do
29523     if test -r "$ac_dir/libX11.$ac_extension"; then
29524       ac_x_libraries=$ac_dir
29525       break 2
29526     fi
29527   done
29528 done
29529 fi
29530
29531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29532       conftest$ac_exeext conftest.$ac_ext
29533 fi # $ac_x_libraries = no
29534
29535 case $ac_x_includes,$ac_x_libraries in #(
29536   no,* | *,no | *\'*)
29537     # Didn't find X, or a directory has "'" in its name.
29538     ac_cv_have_x="have_x=no";; #(
29539   *)
29540     # Record where we found X for the cache.
29541     ac_cv_have_x="have_x=yes\
29542         ac_x_includes='$ac_x_includes'\
29543         ac_x_libraries='$ac_x_libraries'"
29544 esac
29545 fi
29546 ;; #(
29547     *) have_x=yes;;
29548   esac
29549   eval "$ac_cv_have_x"
29550 fi # $with_x != no
29551
29552 if test "$have_x" != yes; then
29553   { echo "$as_me:$LINENO: result: $have_x" >&5
29554 echo "${ECHO_T}$have_x" >&6; }
29555   no_x=yes
29556 else
29557   # If each of the values was on the command line, it overrides each guess.
29558   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29559   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29560   # Update the cache value to reflect the command line values.
29561   ac_cv_have_x="have_x=yes\
29562         ac_x_includes='$x_includes'\
29563         ac_x_libraries='$x_libraries'"
29564   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29565 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29566 fi
29567
29568 if test "$no_x" = yes; then
29569   # Not all programs may use this symbol, but it does not hurt to define it.
29570
29571 cat >>confdefs.h <<\_ACEOF
29572 #define X_DISPLAY_MISSING 1
29573 _ACEOF
29574
29575   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29576 else
29577   if test -n "$x_includes"; then
29578     X_CFLAGS="$X_CFLAGS -I$x_includes"
29579   fi
29580
29581   # It would also be nice to do this for all -L options, not just this one.
29582   if test -n "$x_libraries"; then
29583     X_LIBS="$X_LIBS -L$x_libraries"
29584     # For Solaris; some versions of Sun CC require a space after -R and
29585     # others require no space.  Words are not sufficient . . . .
29586     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29587 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29588     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29589     ac_xsave_c_werror_flag=$ac_c_werror_flag
29590     ac_c_werror_flag=yes
29591     cat >conftest.$ac_ext <<_ACEOF
29592 /* confdefs.h.  */
29593 _ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h.  */
29597
29598 int
29599 main ()
29600 {
29601
29602   ;
29603   return 0;
29604 }
29605 _ACEOF
29606 rm -f conftest.$ac_objext conftest$ac_exeext
29607 if { (ac_try="$ac_link"
29608 case "(($ac_try" in
29609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610   *) ac_try_echo=$ac_try;;
29611 esac
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613   (eval "$ac_link") 2>conftest.er1
29614   ac_status=$?
29615   grep -v '^ *+' conftest.er1 >conftest.err
29616   rm -f conftest.er1
29617   cat conftest.err >&5
29618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619   (exit $ac_status); } && {
29620          test -z "$ac_c_werror_flag" ||
29621          test ! -s conftest.err
29622        } && test -s conftest$ac_exeext &&
29623        $as_test_x conftest$ac_exeext; then
29624   { echo "$as_me:$LINENO: result: no" >&5
29625 echo "${ECHO_T}no" >&6; }
29626        X_LIBS="$X_LIBS -R$x_libraries"
29627 else
29628   echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29630
29631         LIBS="$ac_xsave_LIBS -R $x_libraries"
29632        cat >conftest.$ac_ext <<_ACEOF
29633 /* confdefs.h.  */
29634 _ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h.  */
29638
29639 int
29640 main ()
29641 {
29642
29643   ;
29644   return 0;
29645 }
29646 _ACEOF
29647 rm -f conftest.$ac_objext conftest$ac_exeext
29648 if { (ac_try="$ac_link"
29649 case "(($ac_try" in
29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651   *) ac_try_echo=$ac_try;;
29652 esac
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654   (eval "$ac_link") 2>conftest.er1
29655   ac_status=$?
29656   grep -v '^ *+' conftest.er1 >conftest.err
29657   rm -f conftest.er1
29658   cat conftest.err >&5
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); } && {
29661          test -z "$ac_c_werror_flag" ||
29662          test ! -s conftest.err
29663        } && test -s conftest$ac_exeext &&
29664        $as_test_x conftest$ac_exeext; then
29665   { echo "$as_me:$LINENO: result: yes" >&5
29666 echo "${ECHO_T}yes" >&6; }
29667           X_LIBS="$X_LIBS -R $x_libraries"
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672         { echo "$as_me:$LINENO: result: neither works" >&5
29673 echo "${ECHO_T}neither works" >&6; }
29674 fi
29675
29676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29677       conftest$ac_exeext conftest.$ac_ext
29678 fi
29679
29680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29681       conftest$ac_exeext conftest.$ac_ext
29682     ac_c_werror_flag=$ac_xsave_c_werror_flag
29683     LIBS=$ac_xsave_LIBS
29684   fi
29685
29686   # Check for system-dependent libraries X programs must link with.
29687   # Do this before checking for the system-independent R6 libraries
29688   # (-lICE), since we may need -lsocket or whatever for X linking.
29689
29690   if test "$ISC" = yes; then
29691     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29692   else
29693     # Martyn Johnson says this is needed for Ultrix, if the X
29694     # libraries were built with DECnet support.  And Karl Berry says
29695     # the Alpha needs dnet_stub (dnet does not exist).
29696     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29697     cat >conftest.$ac_ext <<_ACEOF
29698 /* confdefs.h.  */
29699 _ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h.  */
29703
29704 /* Override any GCC internal prototype to avoid an error.
29705    Use char because int might match the return type of a GCC
29706    builtin and then its argument prototype would still apply.  */
29707 #ifdef __cplusplus
29708 extern "C"
29709 #endif
29710 char XOpenDisplay ();
29711 int
29712 main ()
29713 {
29714 return XOpenDisplay ();
29715   ;
29716   return 0;
29717 }
29718 _ACEOF
29719 rm -f conftest.$ac_objext conftest$ac_exeext
29720 if { (ac_try="$ac_link"
29721 case "(($ac_try" in
29722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723   *) ac_try_echo=$ac_try;;
29724 esac
29725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726   (eval "$ac_link") 2>conftest.er1
29727   ac_status=$?
29728   grep -v '^ *+' conftest.er1 >conftest.err
29729   rm -f conftest.er1
29730   cat conftest.err >&5
29731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732   (exit $ac_status); } && {
29733          test -z "$ac_c_werror_flag" ||
29734          test ! -s conftest.err
29735        } && test -s conftest$ac_exeext &&
29736        $as_test_x conftest$ac_exeext; then
29737   :
29738 else
29739   echo "$as_me: failed program was:" >&5
29740 sed 's/^/| /' conftest.$ac_ext >&5
29741
29742         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29743 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29744 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29745   echo $ECHO_N "(cached) $ECHO_C" >&6
29746 else
29747   ac_check_lib_save_LIBS=$LIBS
29748 LIBS="-ldnet  $LIBS"
29749 cat >conftest.$ac_ext <<_ACEOF
29750 /* confdefs.h.  */
29751 _ACEOF
29752 cat confdefs.h >>conftest.$ac_ext
29753 cat >>conftest.$ac_ext <<_ACEOF
29754 /* end confdefs.h.  */
29755
29756 /* Override any GCC internal prototype to avoid an error.
29757    Use char because int might match the return type of a GCC
29758    builtin and then its argument prototype would still apply.  */
29759 #ifdef __cplusplus
29760 extern "C"
29761 #endif
29762 char dnet_ntoa ();
29763 int
29764 main ()
29765 {
29766 return dnet_ntoa ();
29767   ;
29768   return 0;
29769 }
29770 _ACEOF
29771 rm -f conftest.$ac_objext conftest$ac_exeext
29772 if { (ac_try="$ac_link"
29773 case "(($ac_try" in
29774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775   *) ac_try_echo=$ac_try;;
29776 esac
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778   (eval "$ac_link") 2>conftest.er1
29779   ac_status=$?
29780   grep -v '^ *+' conftest.er1 >conftest.err
29781   rm -f conftest.er1
29782   cat conftest.err >&5
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); } && {
29785          test -z "$ac_c_werror_flag" ||
29786          test ! -s conftest.err
29787        } && test -s conftest$ac_exeext &&
29788        $as_test_x conftest$ac_exeext; then
29789   ac_cv_lib_dnet_dnet_ntoa=yes
29790 else
29791   echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29793
29794         ac_cv_lib_dnet_dnet_ntoa=no
29795 fi
29796
29797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29798       conftest$ac_exeext conftest.$ac_ext
29799 LIBS=$ac_check_lib_save_LIBS
29800 fi
29801 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29802 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29803 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29804   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29805 fi
29806
29807     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29808       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29809 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29810 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29811   echo $ECHO_N "(cached) $ECHO_C" >&6
29812 else
29813   ac_check_lib_save_LIBS=$LIBS
29814 LIBS="-ldnet_stub  $LIBS"
29815 cat >conftest.$ac_ext <<_ACEOF
29816 /* confdefs.h.  */
29817 _ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h.  */
29821
29822 /* Override any GCC internal prototype to avoid an error.
29823    Use char because int might match the return type of a GCC
29824    builtin and then its argument prototype would still apply.  */
29825 #ifdef __cplusplus
29826 extern "C"
29827 #endif
29828 char dnet_ntoa ();
29829 int
29830 main ()
29831 {
29832 return dnet_ntoa ();
29833   ;
29834   return 0;
29835 }
29836 _ACEOF
29837 rm -f conftest.$ac_objext conftest$ac_exeext
29838 if { (ac_try="$ac_link"
29839 case "(($ac_try" in
29840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841   *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844   (eval "$ac_link") 2>conftest.er1
29845   ac_status=$?
29846   grep -v '^ *+' conftest.er1 >conftest.err
29847   rm -f conftest.er1
29848   cat conftest.err >&5
29849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850   (exit $ac_status); } && {
29851          test -z "$ac_c_werror_flag" ||
29852          test ! -s conftest.err
29853        } && test -s conftest$ac_exeext &&
29854        $as_test_x conftest$ac_exeext; then
29855   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29856 else
29857   echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29859
29860         ac_cv_lib_dnet_stub_dnet_ntoa=no
29861 fi
29862
29863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29864       conftest$ac_exeext conftest.$ac_ext
29865 LIBS=$ac_check_lib_save_LIBS
29866 fi
29867 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29868 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29869 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29870   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29871 fi
29872
29873     fi
29874 fi
29875
29876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29877       conftest$ac_exeext conftest.$ac_ext
29878     LIBS="$ac_xsave_LIBS"
29879
29880     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29881     # to get the SysV transport functions.
29882     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29883     # needs -lnsl.
29884     # The nsl library prevents programs from opening the X display
29885     # on Irix 5.2, according to T.E. Dickey.
29886     # The functions gethostbyname, getservbyname, and inet_addr are
29887     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29888     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29889 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29890 if test "${ac_cv_func_gethostbyname+set}" = set; then
29891   echo $ECHO_N "(cached) $ECHO_C" >&6
29892 else
29893   cat >conftest.$ac_ext <<_ACEOF
29894 /* confdefs.h.  */
29895 _ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h.  */
29899 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29901 #define gethostbyname innocuous_gethostbyname
29902
29903 /* System header to define __stub macros and hopefully few prototypes,
29904     which can conflict with char gethostbyname (); below.
29905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29906     <limits.h> exists even on freestanding compilers.  */
29907
29908 #ifdef __STDC__
29909 # include <limits.h>
29910 #else
29911 # include <assert.h>
29912 #endif
29913
29914 #undef gethostbyname
29915
29916 /* Override any GCC internal prototype to avoid an error.
29917    Use char because int might match the return type of a GCC
29918    builtin and then its argument prototype would still apply.  */
29919 #ifdef __cplusplus
29920 extern "C"
29921 #endif
29922 char gethostbyname ();
29923 /* The GNU C library defines this for functions which it implements
29924     to always fail with ENOSYS.  Some functions are actually named
29925     something starting with __ and the normal name is an alias.  */
29926 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29927 choke me
29928 #endif
29929
29930 int
29931 main ()
29932 {
29933 return gethostbyname ();
29934   ;
29935   return 0;
29936 }
29937 _ACEOF
29938 rm -f conftest.$ac_objext conftest$ac_exeext
29939 if { (ac_try="$ac_link"
29940 case "(($ac_try" in
29941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942   *) ac_try_echo=$ac_try;;
29943 esac
29944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945   (eval "$ac_link") 2>conftest.er1
29946   ac_status=$?
29947   grep -v '^ *+' conftest.er1 >conftest.err
29948   rm -f conftest.er1
29949   cat conftest.err >&5
29950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951   (exit $ac_status); } && {
29952          test -z "$ac_c_werror_flag" ||
29953          test ! -s conftest.err
29954        } && test -s conftest$ac_exeext &&
29955        $as_test_x conftest$ac_exeext; then
29956   ac_cv_func_gethostbyname=yes
29957 else
29958   echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.$ac_ext >&5
29960
29961         ac_cv_func_gethostbyname=no
29962 fi
29963
29964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29965       conftest$ac_exeext conftest.$ac_ext
29966 fi
29967 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29968 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29969
29970     if test $ac_cv_func_gethostbyname = no; then
29971       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29972 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29973 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29974   echo $ECHO_N "(cached) $ECHO_C" >&6
29975 else
29976   ac_check_lib_save_LIBS=$LIBS
29977 LIBS="-lnsl  $LIBS"
29978 cat >conftest.$ac_ext <<_ACEOF
29979 /* confdefs.h.  */
29980 _ACEOF
29981 cat confdefs.h >>conftest.$ac_ext
29982 cat >>conftest.$ac_ext <<_ACEOF
29983 /* end confdefs.h.  */
29984
29985 /* Override any GCC internal prototype to avoid an error.
29986    Use char because int might match the return type of a GCC
29987    builtin and then its argument prototype would still apply.  */
29988 #ifdef __cplusplus
29989 extern "C"
29990 #endif
29991 char gethostbyname ();
29992 int
29993 main ()
29994 {
29995 return gethostbyname ();
29996   ;
29997   return 0;
29998 }
29999 _ACEOF
30000 rm -f conftest.$ac_objext conftest$ac_exeext
30001 if { (ac_try="$ac_link"
30002 case "(($ac_try" in
30003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004   *) ac_try_echo=$ac_try;;
30005 esac
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007   (eval "$ac_link") 2>conftest.er1
30008   ac_status=$?
30009   grep -v '^ *+' conftest.er1 >conftest.err
30010   rm -f conftest.er1
30011   cat conftest.err >&5
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); } && {
30014          test -z "$ac_c_werror_flag" ||
30015          test ! -s conftest.err
30016        } && test -s conftest$ac_exeext &&
30017        $as_test_x conftest$ac_exeext; then
30018   ac_cv_lib_nsl_gethostbyname=yes
30019 else
30020   echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30022
30023         ac_cv_lib_nsl_gethostbyname=no
30024 fi
30025
30026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30027       conftest$ac_exeext conftest.$ac_ext
30028 LIBS=$ac_check_lib_save_LIBS
30029 fi
30030 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30031 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30032 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30033   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30034 fi
30035
30036       if test $ac_cv_lib_nsl_gethostbyname = no; then
30037         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30038 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30039 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30040   echo $ECHO_N "(cached) $ECHO_C" >&6
30041 else
30042   ac_check_lib_save_LIBS=$LIBS
30043 LIBS="-lbsd  $LIBS"
30044 cat >conftest.$ac_ext <<_ACEOF
30045 /* confdefs.h.  */
30046 _ACEOF
30047 cat confdefs.h >>conftest.$ac_ext
30048 cat >>conftest.$ac_ext <<_ACEOF
30049 /* end confdefs.h.  */
30050
30051 /* Override any GCC internal prototype to avoid an error.
30052    Use char because int might match the return type of a GCC
30053    builtin and then its argument prototype would still apply.  */
30054 #ifdef __cplusplus
30055 extern "C"
30056 #endif
30057 char gethostbyname ();
30058 int
30059 main ()
30060 {
30061 return gethostbyname ();
30062   ;
30063   return 0;
30064 }
30065 _ACEOF
30066 rm -f conftest.$ac_objext conftest$ac_exeext
30067 if { (ac_try="$ac_link"
30068 case "(($ac_try" in
30069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30070   *) ac_try_echo=$ac_try;;
30071 esac
30072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30073   (eval "$ac_link") 2>conftest.er1
30074   ac_status=$?
30075   grep -v '^ *+' conftest.er1 >conftest.err
30076   rm -f conftest.er1
30077   cat conftest.err >&5
30078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079   (exit $ac_status); } && {
30080          test -z "$ac_c_werror_flag" ||
30081          test ! -s conftest.err
30082        } && test -s conftest$ac_exeext &&
30083        $as_test_x conftest$ac_exeext; then
30084   ac_cv_lib_bsd_gethostbyname=yes
30085 else
30086   echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30088
30089         ac_cv_lib_bsd_gethostbyname=no
30090 fi
30091
30092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30093       conftest$ac_exeext conftest.$ac_ext
30094 LIBS=$ac_check_lib_save_LIBS
30095 fi
30096 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30097 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30098 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30099   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30100 fi
30101
30102       fi
30103     fi
30104
30105     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30106     # socket/setsockopt and other routines are undefined under SCO ODT
30107     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30108     # on later versions), says Simon Leinen: it contains gethostby*
30109     # variants that don't use the name server (or something).  -lsocket
30110     # must be given before -lnsl if both are needed.  We assume that
30111     # if connect needs -lnsl, so does gethostbyname.
30112     { echo "$as_me:$LINENO: checking for connect" >&5
30113 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30114 if test "${ac_cv_func_connect+set}" = set; then
30115   echo $ECHO_N "(cached) $ECHO_C" >&6
30116 else
30117   cat >conftest.$ac_ext <<_ACEOF
30118 /* confdefs.h.  */
30119 _ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h.  */
30123 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30125 #define connect innocuous_connect
30126
30127 /* System header to define __stub macros and hopefully few prototypes,
30128     which can conflict with char connect (); below.
30129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30130     <limits.h> exists even on freestanding compilers.  */
30131
30132 #ifdef __STDC__
30133 # include <limits.h>
30134 #else
30135 # include <assert.h>
30136 #endif
30137
30138 #undef connect
30139
30140 /* Override any GCC internal prototype to avoid an error.
30141    Use char because int might match the return type of a GCC
30142    builtin and then its argument prototype would still apply.  */
30143 #ifdef __cplusplus
30144 extern "C"
30145 #endif
30146 char connect ();
30147 /* The GNU C library defines this for functions which it implements
30148     to always fail with ENOSYS.  Some functions are actually named
30149     something starting with __ and the normal name is an alias.  */
30150 #if defined __stub_connect || defined __stub___connect
30151 choke me
30152 #endif
30153
30154 int
30155 main ()
30156 {
30157 return connect ();
30158   ;
30159   return 0;
30160 }
30161 _ACEOF
30162 rm -f conftest.$ac_objext conftest$ac_exeext
30163 if { (ac_try="$ac_link"
30164 case "(($ac_try" in
30165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166   *) ac_try_echo=$ac_try;;
30167 esac
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169   (eval "$ac_link") 2>conftest.er1
30170   ac_status=$?
30171   grep -v '^ *+' conftest.er1 >conftest.err
30172   rm -f conftest.er1
30173   cat conftest.err >&5
30174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175   (exit $ac_status); } && {
30176          test -z "$ac_c_werror_flag" ||
30177          test ! -s conftest.err
30178        } && test -s conftest$ac_exeext &&
30179        $as_test_x conftest$ac_exeext; then
30180   ac_cv_func_connect=yes
30181 else
30182   echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30184
30185         ac_cv_func_connect=no
30186 fi
30187
30188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30189       conftest$ac_exeext conftest.$ac_ext
30190 fi
30191 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30192 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30193
30194     if test $ac_cv_func_connect = no; then
30195       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30196 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30197 if test "${ac_cv_lib_socket_connect+set}" = set; then
30198   echo $ECHO_N "(cached) $ECHO_C" >&6
30199 else
30200   ac_check_lib_save_LIBS=$LIBS
30201 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30202 cat >conftest.$ac_ext <<_ACEOF
30203 /* confdefs.h.  */
30204 _ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h.  */
30208
30209 /* Override any GCC internal prototype to avoid an error.
30210    Use char because int might match the return type of a GCC
30211    builtin and then its argument prototype would still apply.  */
30212 #ifdef __cplusplus
30213 extern "C"
30214 #endif
30215 char connect ();
30216 int
30217 main ()
30218 {
30219 return connect ();
30220   ;
30221   return 0;
30222 }
30223 _ACEOF
30224 rm -f conftest.$ac_objext conftest$ac_exeext
30225 if { (ac_try="$ac_link"
30226 case "(($ac_try" in
30227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228   *) ac_try_echo=$ac_try;;
30229 esac
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231   (eval "$ac_link") 2>conftest.er1
30232   ac_status=$?
30233   grep -v '^ *+' conftest.er1 >conftest.err
30234   rm -f conftest.er1
30235   cat conftest.err >&5
30236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237   (exit $ac_status); } && {
30238          test -z "$ac_c_werror_flag" ||
30239          test ! -s conftest.err
30240        } && test -s conftest$ac_exeext &&
30241        $as_test_x conftest$ac_exeext; then
30242   ac_cv_lib_socket_connect=yes
30243 else
30244   echo "$as_me: failed program was:" >&5
30245 sed 's/^/| /' conftest.$ac_ext >&5
30246
30247         ac_cv_lib_socket_connect=no
30248 fi
30249
30250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30251       conftest$ac_exeext conftest.$ac_ext
30252 LIBS=$ac_check_lib_save_LIBS
30253 fi
30254 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30255 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30256 if test $ac_cv_lib_socket_connect = yes; then
30257   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30258 fi
30259
30260     fi
30261
30262     # Guillermo Gomez says -lposix is necessary on A/UX.
30263     { echo "$as_me:$LINENO: checking for remove" >&5
30264 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30265 if test "${ac_cv_func_remove+set}" = set; then
30266   echo $ECHO_N "(cached) $ECHO_C" >&6
30267 else
30268   cat >conftest.$ac_ext <<_ACEOF
30269 /* confdefs.h.  */
30270 _ACEOF
30271 cat confdefs.h >>conftest.$ac_ext
30272 cat >>conftest.$ac_ext <<_ACEOF
30273 /* end confdefs.h.  */
30274 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30276 #define remove innocuous_remove
30277
30278 /* System header to define __stub macros and hopefully few prototypes,
30279     which can conflict with char remove (); below.
30280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30281     <limits.h> exists even on freestanding compilers.  */
30282
30283 #ifdef __STDC__
30284 # include <limits.h>
30285 #else
30286 # include <assert.h>
30287 #endif
30288
30289 #undef remove
30290
30291 /* Override any GCC internal prototype to avoid an error.
30292    Use char because int might match the return type of a GCC
30293    builtin and then its argument prototype would still apply.  */
30294 #ifdef __cplusplus
30295 extern "C"
30296 #endif
30297 char remove ();
30298 /* The GNU C library defines this for functions which it implements
30299     to always fail with ENOSYS.  Some functions are actually named
30300     something starting with __ and the normal name is an alias.  */
30301 #if defined __stub_remove || defined __stub___remove
30302 choke me
30303 #endif
30304
30305 int
30306 main ()
30307 {
30308 return remove ();
30309   ;
30310   return 0;
30311 }
30312 _ACEOF
30313 rm -f conftest.$ac_objext conftest$ac_exeext
30314 if { (ac_try="$ac_link"
30315 case "(($ac_try" in
30316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317   *) ac_try_echo=$ac_try;;
30318 esac
30319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320   (eval "$ac_link") 2>conftest.er1
30321   ac_status=$?
30322   grep -v '^ *+' conftest.er1 >conftest.err
30323   rm -f conftest.er1
30324   cat conftest.err >&5
30325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326   (exit $ac_status); } && {
30327          test -z "$ac_c_werror_flag" ||
30328          test ! -s conftest.err
30329        } && test -s conftest$ac_exeext &&
30330        $as_test_x conftest$ac_exeext; then
30331   ac_cv_func_remove=yes
30332 else
30333   echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30335
30336         ac_cv_func_remove=no
30337 fi
30338
30339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30340       conftest$ac_exeext conftest.$ac_ext
30341 fi
30342 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30343 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30344
30345     if test $ac_cv_func_remove = no; then
30346       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30347 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30348 if test "${ac_cv_lib_posix_remove+set}" = set; then
30349   echo $ECHO_N "(cached) $ECHO_C" >&6
30350 else
30351   ac_check_lib_save_LIBS=$LIBS
30352 LIBS="-lposix  $LIBS"
30353 cat >conftest.$ac_ext <<_ACEOF
30354 /* confdefs.h.  */
30355 _ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h.  */
30359
30360 /* Override any GCC internal prototype to avoid an error.
30361    Use char because int might match the return type of a GCC
30362    builtin and then its argument prototype would still apply.  */
30363 #ifdef __cplusplus
30364 extern "C"
30365 #endif
30366 char remove ();
30367 int
30368 main ()
30369 {
30370 return remove ();
30371   ;
30372   return 0;
30373 }
30374 _ACEOF
30375 rm -f conftest.$ac_objext conftest$ac_exeext
30376 if { (ac_try="$ac_link"
30377 case "(($ac_try" in
30378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379   *) ac_try_echo=$ac_try;;
30380 esac
30381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382   (eval "$ac_link") 2>conftest.er1
30383   ac_status=$?
30384   grep -v '^ *+' conftest.er1 >conftest.err
30385   rm -f conftest.er1
30386   cat conftest.err >&5
30387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388   (exit $ac_status); } && {
30389          test -z "$ac_c_werror_flag" ||
30390          test ! -s conftest.err
30391        } && test -s conftest$ac_exeext &&
30392        $as_test_x conftest$ac_exeext; then
30393   ac_cv_lib_posix_remove=yes
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30397
30398         ac_cv_lib_posix_remove=no
30399 fi
30400
30401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30402       conftest$ac_exeext conftest.$ac_ext
30403 LIBS=$ac_check_lib_save_LIBS
30404 fi
30405 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30406 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30407 if test $ac_cv_lib_posix_remove = yes; then
30408   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30409 fi
30410
30411     fi
30412
30413     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30414     { echo "$as_me:$LINENO: checking for shmat" >&5
30415 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30416 if test "${ac_cv_func_shmat+set}" = set; then
30417   echo $ECHO_N "(cached) $ECHO_C" >&6
30418 else
30419   cat >conftest.$ac_ext <<_ACEOF
30420 /* confdefs.h.  */
30421 _ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h.  */
30425 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30427 #define shmat innocuous_shmat
30428
30429 /* System header to define __stub macros and hopefully few prototypes,
30430     which can conflict with char shmat (); below.
30431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432     <limits.h> exists even on freestanding compilers.  */
30433
30434 #ifdef __STDC__
30435 # include <limits.h>
30436 #else
30437 # include <assert.h>
30438 #endif
30439
30440 #undef shmat
30441
30442 /* Override any GCC internal prototype to avoid an error.
30443    Use char because int might match the return type of a GCC
30444    builtin and then its argument prototype would still apply.  */
30445 #ifdef __cplusplus
30446 extern "C"
30447 #endif
30448 char shmat ();
30449 /* The GNU C library defines this for functions which it implements
30450     to always fail with ENOSYS.  Some functions are actually named
30451     something starting with __ and the normal name is an alias.  */
30452 #if defined __stub_shmat || defined __stub___shmat
30453 choke me
30454 #endif
30455
30456 int
30457 main ()
30458 {
30459 return shmat ();
30460   ;
30461   return 0;
30462 }
30463 _ACEOF
30464 rm -f conftest.$ac_objext conftest$ac_exeext
30465 if { (ac_try="$ac_link"
30466 case "(($ac_try" in
30467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468   *) ac_try_echo=$ac_try;;
30469 esac
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471   (eval "$ac_link") 2>conftest.er1
30472   ac_status=$?
30473   grep -v '^ *+' conftest.er1 >conftest.err
30474   rm -f conftest.er1
30475   cat conftest.err >&5
30476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477   (exit $ac_status); } && {
30478          test -z "$ac_c_werror_flag" ||
30479          test ! -s conftest.err
30480        } && test -s conftest$ac_exeext &&
30481        $as_test_x conftest$ac_exeext; then
30482   ac_cv_func_shmat=yes
30483 else
30484   echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30486
30487         ac_cv_func_shmat=no
30488 fi
30489
30490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30491       conftest$ac_exeext conftest.$ac_ext
30492 fi
30493 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30494 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30495
30496     if test $ac_cv_func_shmat = no; then
30497       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30498 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30499 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30500   echo $ECHO_N "(cached) $ECHO_C" >&6
30501 else
30502   ac_check_lib_save_LIBS=$LIBS
30503 LIBS="-lipc  $LIBS"
30504 cat >conftest.$ac_ext <<_ACEOF
30505 /* confdefs.h.  */
30506 _ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h.  */
30510
30511 /* Override any GCC internal prototype to avoid an error.
30512    Use char because int might match the return type of a GCC
30513    builtin and then its argument prototype would still apply.  */
30514 #ifdef __cplusplus
30515 extern "C"
30516 #endif
30517 char shmat ();
30518 int
30519 main ()
30520 {
30521 return shmat ();
30522   ;
30523   return 0;
30524 }
30525 _ACEOF
30526 rm -f conftest.$ac_objext conftest$ac_exeext
30527 if { (ac_try="$ac_link"
30528 case "(($ac_try" in
30529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530   *) ac_try_echo=$ac_try;;
30531 esac
30532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30533   (eval "$ac_link") 2>conftest.er1
30534   ac_status=$?
30535   grep -v '^ *+' conftest.er1 >conftest.err
30536   rm -f conftest.er1
30537   cat conftest.err >&5
30538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539   (exit $ac_status); } && {
30540          test -z "$ac_c_werror_flag" ||
30541          test ! -s conftest.err
30542        } && test -s conftest$ac_exeext &&
30543        $as_test_x conftest$ac_exeext; then
30544   ac_cv_lib_ipc_shmat=yes
30545 else
30546   echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30548
30549         ac_cv_lib_ipc_shmat=no
30550 fi
30551
30552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30553       conftest$ac_exeext conftest.$ac_ext
30554 LIBS=$ac_check_lib_save_LIBS
30555 fi
30556 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30557 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30558 if test $ac_cv_lib_ipc_shmat = yes; then
30559   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30560 fi
30561
30562     fi
30563   fi
30564
30565   # Check for libraries that X11R6 Xt/Xaw programs need.
30566   ac_save_LDFLAGS=$LDFLAGS
30567   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30568   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30569   # check for ICE first), but we must link in the order -lSM -lICE or
30570   # we get undefined symbols.  So assume we have SM if we have ICE.
30571   # These have to be linked with before -lX11, unlike the other
30572   # libraries we check for below, so use a different variable.
30573   # John Interrante, Karl Berry
30574   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30575 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30576 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30577   echo $ECHO_N "(cached) $ECHO_C" >&6
30578 else
30579   ac_check_lib_save_LIBS=$LIBS
30580 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30581 cat >conftest.$ac_ext <<_ACEOF
30582 /* confdefs.h.  */
30583 _ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h.  */
30587
30588 /* Override any GCC internal prototype to avoid an error.
30589    Use char because int might match the return type of a GCC
30590    builtin and then its argument prototype would still apply.  */
30591 #ifdef __cplusplus
30592 extern "C"
30593 #endif
30594 char IceConnectionNumber ();
30595 int
30596 main ()
30597 {
30598 return IceConnectionNumber ();
30599   ;
30600   return 0;
30601 }
30602 _ACEOF
30603 rm -f conftest.$ac_objext conftest$ac_exeext
30604 if { (ac_try="$ac_link"
30605 case "(($ac_try" in
30606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607   *) ac_try_echo=$ac_try;;
30608 esac
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610   (eval "$ac_link") 2>conftest.er1
30611   ac_status=$?
30612   grep -v '^ *+' conftest.er1 >conftest.err
30613   rm -f conftest.er1
30614   cat conftest.err >&5
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); } && {
30617          test -z "$ac_c_werror_flag" ||
30618          test ! -s conftest.err
30619        } && test -s conftest$ac_exeext &&
30620        $as_test_x conftest$ac_exeext; then
30621   ac_cv_lib_ICE_IceConnectionNumber=yes
30622 else
30623   echo "$as_me: failed program was:" >&5
30624 sed 's/^/| /' conftest.$ac_ext >&5
30625
30626         ac_cv_lib_ICE_IceConnectionNumber=no
30627 fi
30628
30629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30630       conftest$ac_exeext conftest.$ac_ext
30631 LIBS=$ac_check_lib_save_LIBS
30632 fi
30633 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30634 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30635 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30636   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30637 fi
30638
30639   LDFLAGS=$ac_save_LDFLAGS
30640
30641 fi
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673 for ac_header in \
30674    assert.h \
30675    fcntl.h \
30676    grp.h \
30677    pwd.h \
30678    libc.h \
30679    limits.h \
30680    stdarg.h \
30681    stdlib.h \
30682    stdint.h \
30683    string.h \
30684    strings.h \
30685    termios.h \
30686    termcap.h \
30687    term.h \
30688    unistd.h \
30689    sys/bitypes.h \
30690    sys/byteorder.h \
30691    sys/ioctl.h \
30692    sys/select.h \
30693    sys/socket.h \
30694    sys/sockio.h \
30695    sys/stat.h \
30696    sys/time.h \
30697    sys/types.h \
30698    arpa/nameser.h \
30699    mtio.h \
30700    sys/mtio.h \
30701    sys/tape.h \
30702    regex.h \
30703
30704 do
30705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30707   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30710   echo $ECHO_N "(cached) $ECHO_C" >&6
30711 fi
30712 ac_res=`eval echo '${'$as_ac_Header'}'`
30713                { echo "$as_me:$LINENO: result: $ac_res" >&5
30714 echo "${ECHO_T}$ac_res" >&6; }
30715 else
30716   # Is the header compilable?
30717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30719 cat >conftest.$ac_ext <<_ACEOF
30720 /* confdefs.h.  */
30721 _ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h.  */
30725 $ac_includes_default
30726 #include <$ac_header>
30727 _ACEOF
30728 rm -f conftest.$ac_objext
30729 if { (ac_try="$ac_compile"
30730 case "(($ac_try" in
30731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732   *) ac_try_echo=$ac_try;;
30733 esac
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735   (eval "$ac_compile") 2>conftest.er1
30736   ac_status=$?
30737   grep -v '^ *+' conftest.er1 >conftest.err
30738   rm -f conftest.er1
30739   cat conftest.err >&5
30740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741   (exit $ac_status); } && {
30742          test -z "$ac_c_werror_flag" ||
30743          test ! -s conftest.err
30744        } && test -s conftest.$ac_objext; then
30745   ac_header_compiler=yes
30746 else
30747   echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30749
30750         ac_header_compiler=no
30751 fi
30752
30753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30755 echo "${ECHO_T}$ac_header_compiler" >&6; }
30756
30757 # Is the header present?
30758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30760 cat >conftest.$ac_ext <<_ACEOF
30761 /* confdefs.h.  */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h.  */
30766 #include <$ac_header>
30767 _ACEOF
30768 if { (ac_try="$ac_cpp conftest.$ac_ext"
30769 case "(($ac_try" in
30770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771   *) ac_try_echo=$ac_try;;
30772 esac
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30775   ac_status=$?
30776   grep -v '^ *+' conftest.er1 >conftest.err
30777   rm -f conftest.er1
30778   cat conftest.err >&5
30779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780   (exit $ac_status); } >/dev/null && {
30781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30782          test ! -s conftest.err
30783        }; then
30784   ac_header_preproc=yes
30785 else
30786   echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30788
30789   ac_header_preproc=no
30790 fi
30791
30792 rm -f conftest.err conftest.$ac_ext
30793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30794 echo "${ECHO_T}$ac_header_preproc" >&6; }
30795
30796 # So?  What about this header?
30797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30798   yes:no: )
30799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30803     ac_header_preproc=yes
30804     ;;
30805   no:yes:* )
30806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30818
30819     ;;
30820 esac
30821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30824   echo $ECHO_N "(cached) $ECHO_C" >&6
30825 else
30826   eval "$as_ac_Header=\$ac_header_preproc"
30827 fi
30828 ac_res=`eval echo '${'$as_ac_Header'}'`
30829                { echo "$as_me:$LINENO: result: $ac_res" >&5
30830 echo "${ECHO_T}$ac_res" >&6; }
30831
30832 fi
30833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30834   cat >>confdefs.h <<_ACEOF
30835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30836 _ACEOF
30837
30838 fi
30839
30840 done
30841
30842 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30844 if test "${ac_cv_header_stdc+set}" = set; then
30845   echo $ECHO_N "(cached) $ECHO_C" >&6
30846 else
30847   cat >conftest.$ac_ext <<_ACEOF
30848 /* confdefs.h.  */
30849 _ACEOF
30850 cat confdefs.h >>conftest.$ac_ext
30851 cat >>conftest.$ac_ext <<_ACEOF
30852 /* end confdefs.h.  */
30853 #include <stdlib.h>
30854 #include <stdarg.h>
30855 #include <string.h>
30856 #include <float.h>
30857
30858 int
30859 main ()
30860 {
30861
30862   ;
30863   return 0;
30864 }
30865 _ACEOF
30866 rm -f conftest.$ac_objext
30867 if { (ac_try="$ac_compile"
30868 case "(($ac_try" in
30869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870   *) ac_try_echo=$ac_try;;
30871 esac
30872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30873   (eval "$ac_compile") 2>conftest.er1
30874   ac_status=$?
30875   grep -v '^ *+' conftest.er1 >conftest.err
30876   rm -f conftest.er1
30877   cat conftest.err >&5
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); } && {
30880          test -z "$ac_c_werror_flag" ||
30881          test ! -s conftest.err
30882        } && test -s conftest.$ac_objext; then
30883   ac_cv_header_stdc=yes
30884 else
30885   echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30887
30888         ac_cv_header_stdc=no
30889 fi
30890
30891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30892
30893 if test $ac_cv_header_stdc = yes; then
30894   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30895   cat >conftest.$ac_ext <<_ACEOF
30896 /* confdefs.h.  */
30897 _ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h.  */
30901 #include <string.h>
30902
30903 _ACEOF
30904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30905   $EGREP "memchr" >/dev/null 2>&1; then
30906   :
30907 else
30908   ac_cv_header_stdc=no
30909 fi
30910 rm -f conftest*
30911
30912 fi
30913
30914 if test $ac_cv_header_stdc = yes; then
30915   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30916   cat >conftest.$ac_ext <<_ACEOF
30917 /* confdefs.h.  */
30918 _ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h.  */
30922 #include <stdlib.h>
30923
30924 _ACEOF
30925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30926   $EGREP "free" >/dev/null 2>&1; then
30927   :
30928 else
30929   ac_cv_header_stdc=no
30930 fi
30931 rm -f conftest*
30932
30933 fi
30934
30935 if test $ac_cv_header_stdc = yes; then
30936   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30937   if test "$cross_compiling" = yes; then
30938   :
30939 else
30940   cat >conftest.$ac_ext <<_ACEOF
30941 /* confdefs.h.  */
30942 _ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h.  */
30946 #include <ctype.h>
30947 #include <stdlib.h>
30948 #if ((' ' & 0x0FF) == 0x020)
30949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30951 #else
30952 # define ISLOWER(c) \
30953                    (('a' <= (c) && (c) <= 'i') \
30954                      || ('j' <= (c) && (c) <= 'r') \
30955                      || ('s' <= (c) && (c) <= 'z'))
30956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30957 #endif
30958
30959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30960 int
30961 main ()
30962 {
30963   int i;
30964   for (i = 0; i < 256; i++)
30965     if (XOR (islower (i), ISLOWER (i))
30966         || toupper (i) != TOUPPER (i))
30967       return 2;
30968   return 0;
30969 }
30970 _ACEOF
30971 rm -f conftest$ac_exeext
30972 if { (ac_try="$ac_link"
30973 case "(($ac_try" in
30974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975   *) ac_try_echo=$ac_try;;
30976 esac
30977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978   (eval "$ac_link") 2>&5
30979   ac_status=$?
30980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30982   { (case "(($ac_try" in
30983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984   *) ac_try_echo=$ac_try;;
30985 esac
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987   (eval "$ac_try") 2>&5
30988   ac_status=$?
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); }; }; then
30991   :
30992 else
30993   echo "$as_me: program exited with status $ac_status" >&5
30994 echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30996
30997 ( exit $ac_status )
30998 ac_cv_header_stdc=no
30999 fi
31000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31001 fi
31002
31003
31004 fi
31005 fi
31006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31008 if test $ac_cv_header_stdc = yes; then
31009
31010 cat >>confdefs.h <<\_ACEOF
31011 #define STDC_HEADERS 1
31012 _ACEOF
31013
31014 fi
31015
31016 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31017 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31018 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31019   echo $ECHO_N "(cached) $ECHO_C" >&6
31020 else
31021   cat >conftest.$ac_ext <<_ACEOF
31022 /* confdefs.h.  */
31023 _ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h.  */
31027 #include <sys/types.h>
31028 int
31029 main ()
31030 {
31031 return makedev(0, 0);
31032   ;
31033   return 0;
31034 }
31035 _ACEOF
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (ac_try="$ac_link"
31038 case "(($ac_try" in
31039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040   *) ac_try_echo=$ac_try;;
31041 esac
31042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043   (eval "$ac_link") 2>conftest.er1
31044   ac_status=$?
31045   grep -v '^ *+' conftest.er1 >conftest.err
31046   rm -f conftest.er1
31047   cat conftest.err >&5
31048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049   (exit $ac_status); } && {
31050          test -z "$ac_c_werror_flag" ||
31051          test ! -s conftest.err
31052        } && test -s conftest$ac_exeext &&
31053        $as_test_x conftest$ac_exeext; then
31054   ac_cv_header_sys_types_h_makedev=yes
31055 else
31056   echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31058
31059         ac_cv_header_sys_types_h_makedev=no
31060 fi
31061
31062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31063       conftest$ac_exeext conftest.$ac_ext
31064
31065 fi
31066 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31067 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31068
31069 if test $ac_cv_header_sys_types_h_makedev = no; then
31070 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31071   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31072 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31073 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31074   echo $ECHO_N "(cached) $ECHO_C" >&6
31075 fi
31076 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31077 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31078 else
31079   # Is the header compilable?
31080 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31081 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31082 cat >conftest.$ac_ext <<_ACEOF
31083 /* confdefs.h.  */
31084 _ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h.  */
31088 $ac_includes_default
31089 #include <sys/mkdev.h>
31090 _ACEOF
31091 rm -f conftest.$ac_objext
31092 if { (ac_try="$ac_compile"
31093 case "(($ac_try" in
31094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31095   *) ac_try_echo=$ac_try;;
31096 esac
31097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31098   (eval "$ac_compile") 2>conftest.er1
31099   ac_status=$?
31100   grep -v '^ *+' conftest.er1 >conftest.err
31101   rm -f conftest.er1
31102   cat conftest.err >&5
31103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104   (exit $ac_status); } && {
31105          test -z "$ac_c_werror_flag" ||
31106          test ! -s conftest.err
31107        } && test -s conftest.$ac_objext; then
31108   ac_header_compiler=yes
31109 else
31110   echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31112
31113         ac_header_compiler=no
31114 fi
31115
31116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31118 echo "${ECHO_T}$ac_header_compiler" >&6; }
31119
31120 # Is the header present?
31121 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31122 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31123 cat >conftest.$ac_ext <<_ACEOF
31124 /* confdefs.h.  */
31125 _ACEOF
31126 cat confdefs.h >>conftest.$ac_ext
31127 cat >>conftest.$ac_ext <<_ACEOF
31128 /* end confdefs.h.  */
31129 #include <sys/mkdev.h>
31130 _ACEOF
31131 if { (ac_try="$ac_cpp conftest.$ac_ext"
31132 case "(($ac_try" in
31133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134   *) ac_try_echo=$ac_try;;
31135 esac
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31138   ac_status=$?
31139   grep -v '^ *+' conftest.er1 >conftest.err
31140   rm -f conftest.er1
31141   cat conftest.err >&5
31142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143   (exit $ac_status); } >/dev/null && {
31144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31145          test ! -s conftest.err
31146        }; then
31147   ac_header_preproc=yes
31148 else
31149   echo "$as_me: failed program was:" >&5
31150 sed 's/^/| /' conftest.$ac_ext >&5
31151
31152   ac_header_preproc=no
31153 fi
31154
31155 rm -f conftest.err conftest.$ac_ext
31156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31157 echo "${ECHO_T}$ac_header_preproc" >&6; }
31158
31159 # So?  What about this header?
31160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31161   yes:no: )
31162     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31163 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31164     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31165 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31166     ac_header_preproc=yes
31167     ;;
31168   no:yes:* )
31169     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31170 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31171     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31172 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31173     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31174 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31175     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31176 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31177     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31178 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31179     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31180 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31181
31182     ;;
31183 esac
31184 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31185 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31186 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31187   echo $ECHO_N "(cached) $ECHO_C" >&6
31188 else
31189   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31190 fi
31191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31192 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31193
31194 fi
31195 if test $ac_cv_header_sys_mkdev_h = yes; then
31196
31197 cat >>confdefs.h <<\_ACEOF
31198 #define MAJOR_IN_MKDEV 1
31199 _ACEOF
31200
31201 fi
31202
31203
31204
31205   if test $ac_cv_header_sys_mkdev_h = no; then
31206     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31207   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31208 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31209 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31210   echo $ECHO_N "(cached) $ECHO_C" >&6
31211 fi
31212 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31213 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31214 else
31215   # Is the header compilable?
31216 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31217 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31218 cat >conftest.$ac_ext <<_ACEOF
31219 /* confdefs.h.  */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h.  */
31224 $ac_includes_default
31225 #include <sys/sysmacros.h>
31226 _ACEOF
31227 rm -f conftest.$ac_objext
31228 if { (ac_try="$ac_compile"
31229 case "(($ac_try" in
31230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231   *) ac_try_echo=$ac_try;;
31232 esac
31233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234   (eval "$ac_compile") 2>conftest.er1
31235   ac_status=$?
31236   grep -v '^ *+' conftest.er1 >conftest.err
31237   rm -f conftest.er1
31238   cat conftest.err >&5
31239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240   (exit $ac_status); } && {
31241          test -z "$ac_c_werror_flag" ||
31242          test ! -s conftest.err
31243        } && test -s conftest.$ac_objext; then
31244   ac_header_compiler=yes
31245 else
31246   echo "$as_me: failed program was:" >&5
31247 sed 's/^/| /' conftest.$ac_ext >&5
31248
31249         ac_header_compiler=no
31250 fi
31251
31252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31254 echo "${ECHO_T}$ac_header_compiler" >&6; }
31255
31256 # Is the header present?
31257 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31258 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31259 cat >conftest.$ac_ext <<_ACEOF
31260 /* confdefs.h.  */
31261 _ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h.  */
31265 #include <sys/sysmacros.h>
31266 _ACEOF
31267 if { (ac_try="$ac_cpp conftest.$ac_ext"
31268 case "(($ac_try" in
31269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270   *) ac_try_echo=$ac_try;;
31271 esac
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31274   ac_status=$?
31275   grep -v '^ *+' conftest.er1 >conftest.err
31276   rm -f conftest.er1
31277   cat conftest.err >&5
31278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279   (exit $ac_status); } >/dev/null && {
31280          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31281          test ! -s conftest.err
31282        }; then
31283   ac_header_preproc=yes
31284 else
31285   echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31287
31288   ac_header_preproc=no
31289 fi
31290
31291 rm -f conftest.err conftest.$ac_ext
31292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31293 echo "${ECHO_T}$ac_header_preproc" >&6; }
31294
31295 # So?  What about this header?
31296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31297   yes:no: )
31298     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31299 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31300     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31301 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31302     ac_header_preproc=yes
31303     ;;
31304   no:yes:* )
31305     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31306 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31307     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31308 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31309     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31310 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31311     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31312 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31313     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31314 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31315     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31316 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31317
31318     ;;
31319 esac
31320 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31323   echo $ECHO_N "(cached) $ECHO_C" >&6
31324 else
31325   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31326 fi
31327 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31328 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31329
31330 fi
31331 if test $ac_cv_header_sys_sysmacros_h = yes; then
31332
31333 cat >>confdefs.h <<\_ACEOF
31334 #define MAJOR_IN_SYSMACROS 1
31335 _ACEOF
31336
31337 fi
31338
31339
31340   fi
31341 fi
31342
31343
31344
31345
31346
31347
31348 ac_header_dirent=no
31349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31350   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31351 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31354   echo $ECHO_N "(cached) $ECHO_C" >&6
31355 else
31356   cat >conftest.$ac_ext <<_ACEOF
31357 /* confdefs.h.  */
31358 _ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h.  */
31362 #include <sys/types.h>
31363 #include <$ac_hdr>
31364
31365 int
31366 main ()
31367 {
31368 if ((DIR *) 0)
31369 return 0;
31370   ;
31371   return 0;
31372 }
31373 _ACEOF
31374 rm -f conftest.$ac_objext
31375 if { (ac_try="$ac_compile"
31376 case "(($ac_try" in
31377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378   *) ac_try_echo=$ac_try;;
31379 esac
31380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381   (eval "$ac_compile") 2>conftest.er1
31382   ac_status=$?
31383   grep -v '^ *+' conftest.er1 >conftest.err
31384   rm -f conftest.er1
31385   cat conftest.err >&5
31386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387   (exit $ac_status); } && {
31388          test -z "$ac_c_werror_flag" ||
31389          test ! -s conftest.err
31390        } && test -s conftest.$ac_objext; then
31391   eval "$as_ac_Header=yes"
31392 else
31393   echo "$as_me: failed program was:" >&5
31394 sed 's/^/| /' conftest.$ac_ext >&5
31395
31396         eval "$as_ac_Header=no"
31397 fi
31398
31399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31400 fi
31401 ac_res=`eval echo '${'$as_ac_Header'}'`
31402                { echo "$as_me:$LINENO: result: $ac_res" >&5
31403 echo "${ECHO_T}$ac_res" >&6; }
31404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31405   cat >>confdefs.h <<_ACEOF
31406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31407 _ACEOF
31408
31409 ac_header_dirent=$ac_hdr; break
31410 fi
31411
31412 done
31413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31414 if test $ac_header_dirent = dirent.h; then
31415   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31417 if test "${ac_cv_search_opendir+set}" = set; then
31418   echo $ECHO_N "(cached) $ECHO_C" >&6
31419 else
31420   ac_func_search_save_LIBS=$LIBS
31421 cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h.  */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h.  */
31427
31428 /* Override any GCC internal prototype to avoid an error.
31429    Use char because int might match the return type of a GCC
31430    builtin and then its argument prototype would still apply.  */
31431 #ifdef __cplusplus
31432 extern "C"
31433 #endif
31434 char opendir ();
31435 int
31436 main ()
31437 {
31438 return opendir ();
31439   ;
31440   return 0;
31441 }
31442 _ACEOF
31443 for ac_lib in '' dir; do
31444   if test -z "$ac_lib"; then
31445     ac_res="none required"
31446   else
31447     ac_res=-l$ac_lib
31448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31449   fi
31450   rm -f conftest.$ac_objext conftest$ac_exeext
31451 if { (ac_try="$ac_link"
31452 case "(($ac_try" in
31453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454   *) ac_try_echo=$ac_try;;
31455 esac
31456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457   (eval "$ac_link") 2>conftest.er1
31458   ac_status=$?
31459   grep -v '^ *+' conftest.er1 >conftest.err
31460   rm -f conftest.er1
31461   cat conftest.err >&5
31462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463   (exit $ac_status); } && {
31464          test -z "$ac_c_werror_flag" ||
31465          test ! -s conftest.err
31466        } && test -s conftest$ac_exeext &&
31467        $as_test_x conftest$ac_exeext; then
31468   ac_cv_search_opendir=$ac_res
31469 else
31470   echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31472
31473
31474 fi
31475
31476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31477       conftest$ac_exeext
31478   if test "${ac_cv_search_opendir+set}" = set; then
31479   break
31480 fi
31481 done
31482 if test "${ac_cv_search_opendir+set}" = set; then
31483   :
31484 else
31485   ac_cv_search_opendir=no
31486 fi
31487 rm conftest.$ac_ext
31488 LIBS=$ac_func_search_save_LIBS
31489 fi
31490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31492 ac_res=$ac_cv_search_opendir
31493 if test "$ac_res" != no; then
31494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31495
31496 fi
31497
31498 else
31499   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31500 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31501 if test "${ac_cv_search_opendir+set}" = set; then
31502   echo $ECHO_N "(cached) $ECHO_C" >&6
31503 else
31504   ac_func_search_save_LIBS=$LIBS
31505 cat >conftest.$ac_ext <<_ACEOF
31506 /* confdefs.h.  */
31507 _ACEOF
31508 cat confdefs.h >>conftest.$ac_ext
31509 cat >>conftest.$ac_ext <<_ACEOF
31510 /* end confdefs.h.  */
31511
31512 /* Override any GCC internal prototype to avoid an error.
31513    Use char because int might match the return type of a GCC
31514    builtin and then its argument prototype would still apply.  */
31515 #ifdef __cplusplus
31516 extern "C"
31517 #endif
31518 char opendir ();
31519 int
31520 main ()
31521 {
31522 return opendir ();
31523   ;
31524   return 0;
31525 }
31526 _ACEOF
31527 for ac_lib in '' x; do
31528   if test -z "$ac_lib"; then
31529     ac_res="none required"
31530   else
31531     ac_res=-l$ac_lib
31532     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31533   fi
31534   rm -f conftest.$ac_objext conftest$ac_exeext
31535 if { (ac_try="$ac_link"
31536 case "(($ac_try" in
31537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538   *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541   (eval "$ac_link") 2>conftest.er1
31542   ac_status=$?
31543   grep -v '^ *+' conftest.er1 >conftest.err
31544   rm -f conftest.er1
31545   cat conftest.err >&5
31546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); } && {
31548          test -z "$ac_c_werror_flag" ||
31549          test ! -s conftest.err
31550        } && test -s conftest$ac_exeext &&
31551        $as_test_x conftest$ac_exeext; then
31552   ac_cv_search_opendir=$ac_res
31553 else
31554   echo "$as_me: failed program was:" >&5
31555 sed 's/^/| /' conftest.$ac_ext >&5
31556
31557
31558 fi
31559
31560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31561       conftest$ac_exeext
31562   if test "${ac_cv_search_opendir+set}" = set; then
31563   break
31564 fi
31565 done
31566 if test "${ac_cv_search_opendir+set}" = set; then
31567   :
31568 else
31569   ac_cv_search_opendir=no
31570 fi
31571 rm conftest.$ac_ext
31572 LIBS=$ac_func_search_save_LIBS
31573 fi
31574 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31575 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31576 ac_res=$ac_cv_search_opendir
31577 if test "$ac_res" != no; then
31578   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31579
31580 fi
31581
31582 fi
31583
31584 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31585 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31586 if test "${ac_cv_header_stat_broken+set}" = set; then
31587   echo $ECHO_N "(cached) $ECHO_C" >&6
31588 else
31589   cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h.  */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h.  */
31595 #include <sys/types.h>
31596 #include <sys/stat.h>
31597
31598 #if defined S_ISBLK && defined S_IFDIR
31599 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31600 #endif
31601
31602 #if defined S_ISBLK && defined S_IFCHR
31603 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31604 #endif
31605
31606 #if defined S_ISLNK && defined S_IFREG
31607 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31608 #endif
31609
31610 #if defined S_ISSOCK && defined S_IFREG
31611 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31612 #endif
31613
31614 _ACEOF
31615 rm -f conftest.$ac_objext
31616 if { (ac_try="$ac_compile"
31617 case "(($ac_try" in
31618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619   *) ac_try_echo=$ac_try;;
31620 esac
31621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622   (eval "$ac_compile") 2>conftest.er1
31623   ac_status=$?
31624   grep -v '^ *+' conftest.er1 >conftest.err
31625   rm -f conftest.er1
31626   cat conftest.err >&5
31627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628   (exit $ac_status); } && {
31629          test -z "$ac_c_werror_flag" ||
31630          test ! -s conftest.err
31631        } && test -s conftest.$ac_objext; then
31632   ac_cv_header_stat_broken=no
31633 else
31634   echo "$as_me: failed program was:" >&5
31635 sed 's/^/| /' conftest.$ac_ext >&5
31636
31637         ac_cv_header_stat_broken=yes
31638 fi
31639
31640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31641 fi
31642 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31643 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31644 if test $ac_cv_header_stat_broken = yes; then
31645
31646 cat >>confdefs.h <<\_ACEOF
31647 #define STAT_MACROS_BROKEN 1
31648 _ACEOF
31649
31650 fi
31651
31652 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31653 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31654 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31655   echo $ECHO_N "(cached) $ECHO_C" >&6
31656 else
31657   cat >conftest.$ac_ext <<_ACEOF
31658 /* confdefs.h.  */
31659 _ACEOF
31660 cat confdefs.h >>conftest.$ac_ext
31661 cat >>conftest.$ac_ext <<_ACEOF
31662 /* end confdefs.h.  */
31663 #include <sys/types.h>
31664 #include <sys/wait.h>
31665 #ifndef WEXITSTATUS
31666 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31667 #endif
31668 #ifndef WIFEXITED
31669 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31670 #endif
31671
31672 int
31673 main ()
31674 {
31675   int s;
31676   wait (&s);
31677   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31678   ;
31679   return 0;
31680 }
31681 _ACEOF
31682 rm -f conftest.$ac_objext
31683 if { (ac_try="$ac_compile"
31684 case "(($ac_try" in
31685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686   *) ac_try_echo=$ac_try;;
31687 esac
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689   (eval "$ac_compile") 2>conftest.er1
31690   ac_status=$?
31691   grep -v '^ *+' conftest.er1 >conftest.err
31692   rm -f conftest.er1
31693   cat conftest.err >&5
31694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695   (exit $ac_status); } && {
31696          test -z "$ac_c_werror_flag" ||
31697          test ! -s conftest.err
31698        } && test -s conftest.$ac_objext; then
31699   ac_cv_header_sys_wait_h=yes
31700 else
31701   echo "$as_me: failed program was:" >&5
31702 sed 's/^/| /' conftest.$ac_ext >&5
31703
31704         ac_cv_header_sys_wait_h=no
31705 fi
31706
31707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31708 fi
31709 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31710 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31711 if test $ac_cv_header_sys_wait_h = yes; then
31712
31713 cat >>confdefs.h <<\_ACEOF
31714 #define HAVE_SYS_WAIT_H 1
31715 _ACEOF
31716
31717 fi
31718
31719 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31720 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31721 if test "${ac_cv_header_time+set}" = set; then
31722   echo $ECHO_N "(cached) $ECHO_C" >&6
31723 else
31724   cat >conftest.$ac_ext <<_ACEOF
31725 /* confdefs.h.  */
31726 _ACEOF
31727 cat confdefs.h >>conftest.$ac_ext
31728 cat >>conftest.$ac_ext <<_ACEOF
31729 /* end confdefs.h.  */
31730 #include <sys/types.h>
31731 #include <sys/time.h>
31732 #include <time.h>
31733
31734 int
31735 main ()
31736 {
31737 if ((struct tm *) 0)
31738 return 0;
31739   ;
31740   return 0;
31741 }
31742 _ACEOF
31743 rm -f conftest.$ac_objext
31744 if { (ac_try="$ac_compile"
31745 case "(($ac_try" in
31746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747   *) ac_try_echo=$ac_try;;
31748 esac
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750   (eval "$ac_compile") 2>conftest.er1
31751   ac_status=$?
31752   grep -v '^ *+' conftest.er1 >conftest.err
31753   rm -f conftest.er1
31754   cat conftest.err >&5
31755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756   (exit $ac_status); } && {
31757          test -z "$ac_c_werror_flag" ||
31758          test ! -s conftest.err
31759        } && test -s conftest.$ac_objext; then
31760   ac_cv_header_time=yes
31761 else
31762   echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31764
31765         ac_cv_header_time=no
31766 fi
31767
31768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31769 fi
31770 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31771 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31772 if test $ac_cv_header_time = yes; then
31773
31774 cat >>confdefs.h <<\_ACEOF
31775 #define TIME_WITH_SYS_TIME 1
31776 _ACEOF
31777
31778 fi
31779
31780 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31781 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31782 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31783   echo $ECHO_N "(cached) $ECHO_C" >&6
31784 else
31785   cat >conftest.$ac_ext <<_ACEOF
31786 /* confdefs.h.  */
31787 _ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h.  */
31791 $ac_includes_default
31792 int
31793 main ()
31794 {
31795 static struct stat ac_aggr;
31796 if (ac_aggr.st_blksize)
31797 return 0;
31798   ;
31799   return 0;
31800 }
31801 _ACEOF
31802 rm -f conftest.$ac_objext
31803 if { (ac_try="$ac_compile"
31804 case "(($ac_try" in
31805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806   *) ac_try_echo=$ac_try;;
31807 esac
31808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809   (eval "$ac_compile") 2>conftest.er1
31810   ac_status=$?
31811   grep -v '^ *+' conftest.er1 >conftest.err
31812   rm -f conftest.er1
31813   cat conftest.err >&5
31814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815   (exit $ac_status); } && {
31816          test -z "$ac_c_werror_flag" ||
31817          test ! -s conftest.err
31818        } && test -s conftest.$ac_objext; then
31819   ac_cv_member_struct_stat_st_blksize=yes
31820 else
31821   echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31823
31824         cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h.  */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h.  */
31830 $ac_includes_default
31831 int
31832 main ()
31833 {
31834 static struct stat ac_aggr;
31835 if (sizeof ac_aggr.st_blksize)
31836 return 0;
31837   ;
31838   return 0;
31839 }
31840 _ACEOF
31841 rm -f conftest.$ac_objext
31842 if { (ac_try="$ac_compile"
31843 case "(($ac_try" in
31844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845   *) ac_try_echo=$ac_try;;
31846 esac
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848   (eval "$ac_compile") 2>conftest.er1
31849   ac_status=$?
31850   grep -v '^ *+' conftest.er1 >conftest.err
31851   rm -f conftest.er1
31852   cat conftest.err >&5
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); } && {
31855          test -z "$ac_c_werror_flag" ||
31856          test ! -s conftest.err
31857        } && test -s conftest.$ac_objext; then
31858   ac_cv_member_struct_stat_st_blksize=yes
31859 else
31860   echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31862
31863         ac_cv_member_struct_stat_st_blksize=no
31864 fi
31865
31866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31867 fi
31868
31869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31870 fi
31871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31873 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31874
31875 cat >>confdefs.h <<_ACEOF
31876 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31877 _ACEOF
31878
31879
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_ST_BLKSIZE 1
31882 _ACEOF
31883
31884 fi
31885
31886
31887 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31888 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31889 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31890   echo $ECHO_N "(cached) $ECHO_C" >&6
31891 else
31892   cat >conftest.$ac_ext <<_ACEOF
31893 /* confdefs.h.  */
31894 _ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h.  */
31898 $ac_includes_default
31899 int
31900 main ()
31901 {
31902 static struct stat ac_aggr;
31903 if (ac_aggr.st_blocks)
31904 return 0;
31905   ;
31906   return 0;
31907 }
31908 _ACEOF
31909 rm -f conftest.$ac_objext
31910 if { (ac_try="$ac_compile"
31911 case "(($ac_try" in
31912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913   *) ac_try_echo=$ac_try;;
31914 esac
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916   (eval "$ac_compile") 2>conftest.er1
31917   ac_status=$?
31918   grep -v '^ *+' conftest.er1 >conftest.err
31919   rm -f conftest.er1
31920   cat conftest.err >&5
31921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922   (exit $ac_status); } && {
31923          test -z "$ac_c_werror_flag" ||
31924          test ! -s conftest.err
31925        } && test -s conftest.$ac_objext; then
31926   ac_cv_member_struct_stat_st_blocks=yes
31927 else
31928   echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31930
31931         cat >conftest.$ac_ext <<_ACEOF
31932 /* confdefs.h.  */
31933 _ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h.  */
31937 $ac_includes_default
31938 int
31939 main ()
31940 {
31941 static struct stat ac_aggr;
31942 if (sizeof ac_aggr.st_blocks)
31943 return 0;
31944   ;
31945   return 0;
31946 }
31947 _ACEOF
31948 rm -f conftest.$ac_objext
31949 if { (ac_try="$ac_compile"
31950 case "(($ac_try" in
31951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952   *) ac_try_echo=$ac_try;;
31953 esac
31954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955   (eval "$ac_compile") 2>conftest.er1
31956   ac_status=$?
31957   grep -v '^ *+' conftest.er1 >conftest.err
31958   rm -f conftest.er1
31959   cat conftest.err >&5
31960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961   (exit $ac_status); } && {
31962          test -z "$ac_c_werror_flag" ||
31963          test ! -s conftest.err
31964        } && test -s conftest.$ac_objext; then
31965   ac_cv_member_struct_stat_st_blocks=yes
31966 else
31967   echo "$as_me: failed program was:" >&5
31968 sed 's/^/| /' conftest.$ac_ext >&5
31969
31970         ac_cv_member_struct_stat_st_blocks=no
31971 fi
31972
31973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31974 fi
31975
31976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31977 fi
31978 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31979 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31980 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31981
31982 cat >>confdefs.h <<_ACEOF
31983 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31984 _ACEOF
31985
31986
31987 cat >>confdefs.h <<\_ACEOF
31988 #define HAVE_ST_BLOCKS 1
31989 _ACEOF
31990
31991 else
31992   case " $LIBOBJS " in
31993   *" fileblocks.$ac_objext "* ) ;;
31994   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31995  ;;
31996 esac
31997
31998 fi
31999
32000
32001 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32003 if test "${ac_cv_struct_tm+set}" = set; then
32004   echo $ECHO_N "(cached) $ECHO_C" >&6
32005 else
32006   cat >conftest.$ac_ext <<_ACEOF
32007 /* confdefs.h.  */
32008 _ACEOF
32009 cat confdefs.h >>conftest.$ac_ext
32010 cat >>conftest.$ac_ext <<_ACEOF
32011 /* end confdefs.h.  */
32012 #include <sys/types.h>
32013 #include <time.h>
32014
32015 int
32016 main ()
32017 {
32018 struct tm tm;
32019                                      int *p = &tm.tm_sec;
32020                                      return !p;
32021   ;
32022   return 0;
32023 }
32024 _ACEOF
32025 rm -f conftest.$ac_objext
32026 if { (ac_try="$ac_compile"
32027 case "(($ac_try" in
32028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029   *) ac_try_echo=$ac_try;;
32030 esac
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032   (eval "$ac_compile") 2>conftest.er1
32033   ac_status=$?
32034   grep -v '^ *+' conftest.er1 >conftest.err
32035   rm -f conftest.er1
32036   cat conftest.err >&5
32037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038   (exit $ac_status); } && {
32039          test -z "$ac_c_werror_flag" ||
32040          test ! -s conftest.err
32041        } && test -s conftest.$ac_objext; then
32042   ac_cv_struct_tm=time.h
32043 else
32044   echo "$as_me: failed program was:" >&5
32045 sed 's/^/| /' conftest.$ac_ext >&5
32046
32047         ac_cv_struct_tm=sys/time.h
32048 fi
32049
32050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32051 fi
32052 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32053 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32054 if test $ac_cv_struct_tm = sys/time.h; then
32055
32056 cat >>confdefs.h <<\_ACEOF
32057 #define TM_IN_SYS_TIME 1
32058 _ACEOF
32059
32060 fi
32061
32062 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32063 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32064 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32065   echo $ECHO_N "(cached) $ECHO_C" >&6
32066 else
32067   cat >conftest.$ac_ext <<_ACEOF
32068 /* confdefs.h.  */
32069 _ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h.  */
32073 #include <sys/types.h>
32074 #include <$ac_cv_struct_tm>
32075
32076
32077 int
32078 main ()
32079 {
32080 static struct tm ac_aggr;
32081 if (ac_aggr.tm_zone)
32082 return 0;
32083   ;
32084   return 0;
32085 }
32086 _ACEOF
32087 rm -f conftest.$ac_objext
32088 if { (ac_try="$ac_compile"
32089 case "(($ac_try" in
32090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091   *) ac_try_echo=$ac_try;;
32092 esac
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094   (eval "$ac_compile") 2>conftest.er1
32095   ac_status=$?
32096   grep -v '^ *+' conftest.er1 >conftest.err
32097   rm -f conftest.er1
32098   cat conftest.err >&5
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); } && {
32101          test -z "$ac_c_werror_flag" ||
32102          test ! -s conftest.err
32103        } && test -s conftest.$ac_objext; then
32104   ac_cv_member_struct_tm_tm_zone=yes
32105 else
32106   echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32108
32109         cat >conftest.$ac_ext <<_ACEOF
32110 /* confdefs.h.  */
32111 _ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h.  */
32115 #include <sys/types.h>
32116 #include <$ac_cv_struct_tm>
32117
32118
32119 int
32120 main ()
32121 {
32122 static struct tm ac_aggr;
32123 if (sizeof ac_aggr.tm_zone)
32124 return 0;
32125   ;
32126   return 0;
32127 }
32128 _ACEOF
32129 rm -f conftest.$ac_objext
32130 if { (ac_try="$ac_compile"
32131 case "(($ac_try" in
32132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133   *) ac_try_echo=$ac_try;;
32134 esac
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136   (eval "$ac_compile") 2>conftest.er1
32137   ac_status=$?
32138   grep -v '^ *+' conftest.er1 >conftest.err
32139   rm -f conftest.er1
32140   cat conftest.err >&5
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); } && {
32143          test -z "$ac_c_werror_flag" ||
32144          test ! -s conftest.err
32145        } && test -s conftest.$ac_objext; then
32146   ac_cv_member_struct_tm_tm_zone=yes
32147 else
32148   echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32150
32151         ac_cv_member_struct_tm_tm_zone=no
32152 fi
32153
32154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32155 fi
32156
32157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32158 fi
32159 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32160 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32161 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32162
32163 cat >>confdefs.h <<_ACEOF
32164 #define HAVE_STRUCT_TM_TM_ZONE 1
32165 _ACEOF
32166
32167
32168 fi
32169
32170 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32171
32172 cat >>confdefs.h <<\_ACEOF
32173 #define HAVE_TM_ZONE 1
32174 _ACEOF
32175
32176 else
32177   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32178 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32179 if test "${ac_cv_have_decl_tzname+set}" = set; then
32180   echo $ECHO_N "(cached) $ECHO_C" >&6
32181 else
32182   cat >conftest.$ac_ext <<_ACEOF
32183 /* confdefs.h.  */
32184 _ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h.  */
32188 #include <time.h>
32189
32190 int
32191 main ()
32192 {
32193 #ifndef tzname
32194   (void) tzname;
32195 #endif
32196
32197   ;
32198   return 0;
32199 }
32200 _ACEOF
32201 rm -f conftest.$ac_objext
32202 if { (ac_try="$ac_compile"
32203 case "(($ac_try" in
32204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205   *) ac_try_echo=$ac_try;;
32206 esac
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208   (eval "$ac_compile") 2>conftest.er1
32209   ac_status=$?
32210   grep -v '^ *+' conftest.er1 >conftest.err
32211   rm -f conftest.er1
32212   cat conftest.err >&5
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); } && {
32215          test -z "$ac_c_werror_flag" ||
32216          test ! -s conftest.err
32217        } && test -s conftest.$ac_objext; then
32218   ac_cv_have_decl_tzname=yes
32219 else
32220   echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32222
32223         ac_cv_have_decl_tzname=no
32224 fi
32225
32226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32227 fi
32228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32229 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32230 if test $ac_cv_have_decl_tzname = yes; then
32231
32232 cat >>confdefs.h <<_ACEOF
32233 #define HAVE_DECL_TZNAME 1
32234 _ACEOF
32235
32236
32237 else
32238   cat >>confdefs.h <<_ACEOF
32239 #define HAVE_DECL_TZNAME 0
32240 _ACEOF
32241
32242
32243 fi
32244
32245
32246   { echo "$as_me:$LINENO: checking for tzname" >&5
32247 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32248 if test "${ac_cv_var_tzname+set}" = set; then
32249   echo $ECHO_N "(cached) $ECHO_C" >&6
32250 else
32251   cat >conftest.$ac_ext <<_ACEOF
32252 /* confdefs.h.  */
32253 _ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h.  */
32257 #include <time.h>
32258 #if !HAVE_DECL_TZNAME
32259 extern char *tzname[];
32260 #endif
32261
32262 int
32263 main ()
32264 {
32265 return tzname[0][0];
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (ac_try="$ac_link"
32272 case "(($ac_try" in
32273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274   *) ac_try_echo=$ac_try;;
32275 esac
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277   (eval "$ac_link") 2>conftest.er1
32278   ac_status=$?
32279   grep -v '^ *+' conftest.er1 >conftest.err
32280   rm -f conftest.er1
32281   cat conftest.err >&5
32282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283   (exit $ac_status); } && {
32284          test -z "$ac_c_werror_flag" ||
32285          test ! -s conftest.err
32286        } && test -s conftest$ac_exeext &&
32287        $as_test_x conftest$ac_exeext; then
32288   ac_cv_var_tzname=yes
32289 else
32290   echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293         ac_cv_var_tzname=no
32294 fi
32295
32296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32297       conftest$ac_exeext conftest.$ac_ext
32298 fi
32299 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32300 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32301   if test $ac_cv_var_tzname = yes; then
32302
32303 cat >>confdefs.h <<\_ACEOF
32304 #define HAVE_TZNAME 1
32305 _ACEOF
32306
32307   fi
32308 fi
32309
32310
32311 { echo "$as_me:$LINENO: checking for utime.h" >&5
32312 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32313 if test "${ba_cv_header_utime_h+set}" = set; then
32314   echo $ECHO_N "(cached) $ECHO_C" >&6
32315 else
32316
32317        cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323
32324               #include <sys/types.h>
32325               #include <utime.h>
32326
32327 int
32328 main ()
32329 {
32330
32331               struct utimbuf foo
32332
32333   ;
32334   return 0;
32335 }
32336 _ACEOF
32337 rm -f conftest.$ac_objext
32338 if { (ac_try="$ac_compile"
32339 case "(($ac_try" in
32340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341   *) ac_try_echo=$ac_try;;
32342 esac
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344   (eval "$ac_compile") 2>conftest.er1
32345   ac_status=$?
32346   grep -v '^ *+' conftest.er1 >conftest.err
32347   rm -f conftest.er1
32348   cat conftest.err >&5
32349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350   (exit $ac_status); } && {
32351          test -z "$ac_c_werror_flag" ||
32352          test ! -s conftest.err
32353        } && test -s conftest.$ac_objext; then
32354
32355               ba_cv_header_utime_h=yes
32356
32357 else
32358   echo "$as_me: failed program was:" >&5
32359 sed 's/^/| /' conftest.$ac_ext >&5
32360
32361
32362               ba_cv_header_utime_h=no
32363
32364
32365 fi
32366
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32368
32369
32370 fi
32371 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32372 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32373 test $ba_cv_header_utime_h = yes &&
32374 cat >>confdefs.h <<\_ACEOF
32375 #define HAVE_UTIME_H 1
32376 _ACEOF
32377
32378
32379 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32380 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32381 if test "${ba_cv_header_socklen_t+set}" = set; then
32382   echo $ECHO_N "(cached) $ECHO_C" >&6
32383 else
32384
32385        cat >conftest.$ac_ext <<_ACEOF
32386 /* confdefs.h.  */
32387 _ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h.  */
32391
32392               #include <sys/types.h>
32393               #include <sys/socket.h>
32394
32395 int
32396 main ()
32397 {
32398
32399               socklen_t x
32400
32401   ;
32402   return 0;
32403 }
32404 _ACEOF
32405 rm -f conftest.$ac_objext
32406 if { (ac_try="$ac_compile"
32407 case "(($ac_try" in
32408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409   *) ac_try_echo=$ac_try;;
32410 esac
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412   (eval "$ac_compile") 2>conftest.er1
32413   ac_status=$?
32414   grep -v '^ *+' conftest.er1 >conftest.err
32415   rm -f conftest.er1
32416   cat conftest.err >&5
32417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418   (exit $ac_status); } && {
32419          test -z "$ac_c_werror_flag" ||
32420          test ! -s conftest.err
32421        } && test -s conftest.$ac_objext; then
32422
32423              ba_cv_header_socklen_t=yes
32424
32425 else
32426   echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32428
32429
32430              ba_cv_header_socklen_t=no
32431
32432
32433 fi
32434
32435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32436
32437
32438 fi
32439 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32440 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32441 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32442 #define HAVE_SOCKLEN_T 1
32443 _ACEOF
32444
32445
32446 { echo "$as_me:$LINENO: checking for bigendian" >&5
32447 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32448 if test "${ba_cv_bigendian+set}" = set; then
32449   echo $ECHO_N "(cached) $ECHO_C" >&6
32450 else
32451
32452        if test "$cross_compiling" = yes; then
32453
32454              ba_cv_bigendian=no
32455
32456
32457 else
32458   cat >conftest.$ac_ext <<_ACEOF
32459 /* confdefs.h.  */
32460 _ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h.  */
32464
32465               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32466
32467 _ACEOF
32468 rm -f conftest$ac_exeext
32469 if { (ac_try="$ac_link"
32470 case "(($ac_try" in
32471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472   *) ac_try_echo=$ac_try;;
32473 esac
32474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475   (eval "$ac_link") 2>&5
32476   ac_status=$?
32477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32479   { (case "(($ac_try" in
32480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481   *) ac_try_echo=$ac_try;;
32482 esac
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484   (eval "$ac_try") 2>&5
32485   ac_status=$?
32486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); }; }; then
32488
32489              ba_cv_bigendian=yes
32490
32491 else
32492   echo "$as_me: program exited with status $ac_status" >&5
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496 ( exit $ac_status )
32497
32498              ba_cv_bigendian=no
32499
32500 fi
32501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32502 fi
32503
32504
32505
32506
32507 fi
32508 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32509 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32510 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32511 #define HAVE_BIGENDIAN 1
32512 _ACEOF
32513
32514
32515 ac_ext=cpp
32516 ac_cpp='$CXXCPP $CPPFLAGS'
32517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32520
32521 { echo "$as_me:$LINENO: checking for typeof" >&5
32522 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32523 if test "${ba_cv_have_typeof+set}" = set; then
32524   echo $ECHO_N "(cached) $ECHO_C" >&6
32525 else
32526
32527        if test "$cross_compiling" = yes; then
32528
32529               ba_cv_have_typeof=no
32530
32531
32532 else
32533   cat >conftest.$ac_ext <<_ACEOF
32534 /* confdefs.h.  */
32535 _ACEOF
32536 cat confdefs.h >>conftest.$ac_ext
32537 cat >>conftest.$ac_ext <<_ACEOF
32538 /* end confdefs.h.  */
32539
32540               main(){char *a = 0; a = (typeof a)a;}
32541
32542 _ACEOF
32543 rm -f conftest$ac_exeext
32544 if { (ac_try="$ac_link"
32545 case "(($ac_try" in
32546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547   *) ac_try_echo=$ac_try;;
32548 esac
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550   (eval "$ac_link") 2>&5
32551   ac_status=$?
32552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32554   { (case "(($ac_try" in
32555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556   *) ac_try_echo=$ac_try;;
32557 esac
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559   (eval "$ac_try") 2>&5
32560   ac_status=$?
32561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562   (exit $ac_status); }; }; then
32563
32564               ba_cv_have_typeof=yes
32565
32566 else
32567   echo "$as_me: program exited with status $ac_status" >&5
32568 echo "$as_me: failed program was:" >&5
32569 sed 's/^/| /' conftest.$ac_ext >&5
32570
32571 ( exit $ac_status )
32572
32573               ba_cv_have_typeof=no
32574
32575 fi
32576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32577 fi
32578
32579
32580
32581
32582 fi
32583 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32584 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32585 test $ba_cv_have_typeof = yes &&
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_TYPEOF 1
32588 _ACEOF
32589
32590 ac_ext=c
32591 ac_cpp='$CPP $CPPFLAGS'
32592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32595
32596
32597 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32598 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32599 if test "${ac_cv_c_const+set}" = set; then
32600   echo $ECHO_N "(cached) $ECHO_C" >&6
32601 else
32602   cat >conftest.$ac_ext <<_ACEOF
32603 /* confdefs.h.  */
32604 _ACEOF
32605 cat confdefs.h >>conftest.$ac_ext
32606 cat >>conftest.$ac_ext <<_ACEOF
32607 /* end confdefs.h.  */
32608
32609 int
32610 main ()
32611 {
32612 /* FIXME: Include the comments suggested by Paul. */
32613 #ifndef __cplusplus
32614   /* Ultrix mips cc rejects this.  */
32615   typedef int charset[2];
32616   const charset cs;
32617   /* SunOS 4.1.1 cc rejects this.  */
32618   char const *const *pcpcc;
32619   char **ppc;
32620   /* NEC SVR4.0.2 mips cc rejects this.  */
32621   struct point {int x, y;};
32622   static struct point const zero = {0,0};
32623   /* AIX XL C 1.02.0.0 rejects this.
32624      It does not let you subtract one const X* pointer from another in
32625      an arm of an if-expression whose if-part is not a constant
32626      expression */
32627   const char *g = "string";
32628   pcpcc = &g + (g ? g-g : 0);
32629   /* HPUX 7.0 cc rejects these. */
32630   ++pcpcc;
32631   ppc = (char**) pcpcc;
32632   pcpcc = (char const *const *) ppc;
32633   { /* SCO 3.2v4 cc rejects this.  */
32634     char *t;
32635     char const *s = 0 ? (char *) 0 : (char const *) 0;
32636
32637     *t++ = 0;
32638     if (s) return 0;
32639   }
32640   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32641     int x[] = {25, 17};
32642     const int *foo = &x[0];
32643     ++foo;
32644   }
32645   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32646     typedef const int *iptr;
32647     iptr p = 0;
32648     ++p;
32649   }
32650   { /* AIX XL C 1.02.0.0 rejects this saying
32651        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32652     struct s { int j; const int *ap[3]; };
32653     struct s *b; b->j = 5;
32654   }
32655   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32656     const int foo = 10;
32657     if (!foo) return 0;
32658   }
32659   return !cs[0] && !zero.x;
32660 #endif
32661
32662   ;
32663   return 0;
32664 }
32665 _ACEOF
32666 rm -f conftest.$ac_objext
32667 if { (ac_try="$ac_compile"
32668 case "(($ac_try" in
32669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670   *) ac_try_echo=$ac_try;;
32671 esac
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673   (eval "$ac_compile") 2>conftest.er1
32674   ac_status=$?
32675   grep -v '^ *+' conftest.er1 >conftest.err
32676   rm -f conftest.er1
32677   cat conftest.err >&5
32678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679   (exit $ac_status); } && {
32680          test -z "$ac_c_werror_flag" ||
32681          test ! -s conftest.err
32682        } && test -s conftest.$ac_objext; then
32683   ac_cv_c_const=yes
32684 else
32685   echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32687
32688         ac_cv_c_const=no
32689 fi
32690
32691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32692 fi
32693 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32694 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32695 if test $ac_cv_c_const = no; then
32696
32697 cat >>confdefs.h <<\_ACEOF
32698 #define const
32699 _ACEOF
32700
32701 fi
32702
32703
32704 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32705 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32706 fstype=no
32707 # The order of these tests is important.
32708 cat >conftest.$ac_ext <<_ACEOF
32709 /* confdefs.h.  */
32710 _ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h.  */
32714
32715        #include <sys/statvfs.h>
32716        #include <sys/fstyp.h>
32717
32718 _ACEOF
32719 if { (ac_try="$ac_cpp conftest.$ac_ext"
32720 case "(($ac_try" in
32721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722   *) ac_try_echo=$ac_try;;
32723 esac
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32726   ac_status=$?
32727   grep -v '^ *+' conftest.er1 >conftest.err
32728   rm -f conftest.er1
32729   cat conftest.err >&5
32730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731   (exit $ac_status); } >/dev/null && {
32732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32733          test ! -s conftest.err
32734        }; then
32735   cat >>confdefs.h <<\_ACEOF
32736 #define FSTYPE_STATVFS 1
32737 _ACEOF
32738  fstype=SVR4
32739
32740 else
32741   echo "$as_me: failed program was:" >&5
32742 sed 's/^/| /' conftest.$ac_ext >&5
32743
32744
32745 fi
32746
32747 rm -f conftest.err conftest.$ac_ext
32748 if test $fstype = no; then
32749    cat >conftest.$ac_ext <<_ACEOF
32750 /* confdefs.h.  */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h.  */
32755
32756           #include <sys/statfs.h>
32757           #include <sys/fstyp.h>
32758
32759 _ACEOF
32760 if { (ac_try="$ac_cpp conftest.$ac_ext"
32761 case "(($ac_try" in
32762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763   *) ac_try_echo=$ac_try;;
32764 esac
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32767   ac_status=$?
32768   grep -v '^ *+' conftest.er1 >conftest.err
32769   rm -f conftest.er1
32770   cat conftest.err >&5
32771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772   (exit $ac_status); } >/dev/null && {
32773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32774          test ! -s conftest.err
32775        }; then
32776   cat >>confdefs.h <<\_ACEOF
32777 #define FSTYPE_USG_STATFS 1
32778 _ACEOF
32779  fstype=SVR3
32780
32781 else
32782   echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32784
32785
32786 fi
32787
32788 rm -f conftest.err conftest.$ac_ext
32789 fi
32790 if test $fstype = no; then
32791    cat >conftest.$ac_ext <<_ACEOF
32792 /* confdefs.h.  */
32793 _ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h.  */
32797
32798           #include <sys/statfs.h>
32799           #include <sys/vmount.h>
32800
32801 _ACEOF
32802 if { (ac_try="$ac_cpp conftest.$ac_ext"
32803 case "(($ac_try" in
32804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805   *) ac_try_echo=$ac_try;;
32806 esac
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32809   ac_status=$?
32810   grep -v '^ *+' conftest.er1 >conftest.err
32811   rm -f conftest.er1
32812   cat conftest.err >&5
32813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814   (exit $ac_status); } >/dev/null && {
32815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32816          test ! -s conftest.err
32817        }; then
32818   cat >>confdefs.h <<\_ACEOF
32819 #define FSTYPE_AIX_STATFS 1
32820 _ACEOF
32821  fstype=AIX
32822
32823 else
32824   echo "$as_me: failed program was:" >&5
32825 sed 's/^/| /' conftest.$ac_ext >&5
32826
32827
32828 fi
32829
32830 rm -f conftest.err conftest.$ac_ext
32831 fi
32832 if test $fstype = no; then
32833    cat >conftest.$ac_ext <<_ACEOF
32834 /* confdefs.h.  */
32835 _ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h.  */
32839
32840           #include <mntent.h>
32841
32842 _ACEOF
32843 if { (ac_try="$ac_cpp conftest.$ac_ext"
32844 case "(($ac_try" in
32845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846   *) ac_try_echo=$ac_try;;
32847 esac
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32850   ac_status=$?
32851   grep -v '^ *+' conftest.er1 >conftest.err
32852   rm -f conftest.er1
32853   cat conftest.err >&5
32854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); } >/dev/null && {
32856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32857          test ! -s conftest.err
32858        }; then
32859   cat >>confdefs.h <<\_ACEOF
32860 #define FSTYPE_MNTENT 1
32861 _ACEOF
32862  fstype=4.3BSD
32863
32864 else
32865   echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32867
32868
32869 fi
32870
32871 rm -f conftest.err conftest.$ac_ext
32872 fi
32873 if test $fstype = no; then
32874    cat >conftest.$ac_ext <<_ACEOF
32875 /* confdefs.h.  */
32876 _ACEOF
32877 cat confdefs.h >>conftest.$ac_ext
32878 cat >>conftest.$ac_ext <<_ACEOF
32879 /* end confdefs.h.  */
32880 #include <sys/mount.h>
32881
32882 _ACEOF
32883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32884   $EGREP "f_type;" >/dev/null 2>&1; then
32885   cat >>confdefs.h <<\_ACEOF
32886 #define FSTYPE_STATFS 1
32887 _ACEOF
32888  fstype=4.4BSD/OSF1
32889 fi
32890 rm -f conftest*
32891
32892 fi
32893 if test $fstype = no; then
32894    cat >conftest.$ac_ext <<_ACEOF
32895 /* confdefs.h.  */
32896 _ACEOF
32897 cat confdefs.h >>conftest.$ac_ext
32898 cat >>conftest.$ac_ext <<_ACEOF
32899 /* end confdefs.h.  */
32900
32901           #include <sys/mount.h>
32902           #include <sys/fs_types.h>
32903
32904 _ACEOF
32905 if { (ac_try="$ac_cpp conftest.$ac_ext"
32906 case "(($ac_try" in
32907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908   *) ac_try_echo=$ac_try;;
32909 esac
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32912   ac_status=$?
32913   grep -v '^ *+' conftest.er1 >conftest.err
32914   rm -f conftest.er1
32915   cat conftest.err >&5
32916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); } >/dev/null && {
32918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32919          test ! -s conftest.err
32920        }; then
32921   cat >>confdefs.h <<\_ACEOF
32922 #define FSTYPE_GETMNT 1
32923 _ACEOF
32924  fstype=Ultrix
32925
32926 else
32927   echo "$as_me: failed program was:" >&5
32928 sed 's/^/| /' conftest.$ac_ext >&5
32929
32930
32931 fi
32932
32933 rm -f conftest.err conftest.$ac_ext
32934 fi
32935 { echo "$as_me:$LINENO: result: $fstype" >&5
32936 echo "${ECHO_T}$fstype" >&6; }
32937
32938 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32939   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32940 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32941 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32942   echo $ECHO_N "(cached) $ECHO_C" >&6
32943 fi
32944 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32945 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32946 else
32947   # Is the header compilable?
32948 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32949 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32950 cat >conftest.$ac_ext <<_ACEOF
32951 /* confdefs.h.  */
32952 _ACEOF
32953 cat confdefs.h >>conftest.$ac_ext
32954 cat >>conftest.$ac_ext <<_ACEOF
32955 /* end confdefs.h.  */
32956 $ac_includes_default
32957 #include <sys/statvfs.h>
32958 _ACEOF
32959 rm -f conftest.$ac_objext
32960 if { (ac_try="$ac_compile"
32961 case "(($ac_try" in
32962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963   *) ac_try_echo=$ac_try;;
32964 esac
32965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966   (eval "$ac_compile") 2>conftest.er1
32967   ac_status=$?
32968   grep -v '^ *+' conftest.er1 >conftest.err
32969   rm -f conftest.er1
32970   cat conftest.err >&5
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); } && {
32973          test -z "$ac_c_werror_flag" ||
32974          test ! -s conftest.err
32975        } && test -s conftest.$ac_objext; then
32976   ac_header_compiler=yes
32977 else
32978   echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32980
32981         ac_header_compiler=no
32982 fi
32983
32984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32986 echo "${ECHO_T}$ac_header_compiler" >&6; }
32987
32988 # Is the header present?
32989 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32990 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32991 cat >conftest.$ac_ext <<_ACEOF
32992 /* confdefs.h.  */
32993 _ACEOF
32994 cat confdefs.h >>conftest.$ac_ext
32995 cat >>conftest.$ac_ext <<_ACEOF
32996 /* end confdefs.h.  */
32997 #include <sys/statvfs.h>
32998 _ACEOF
32999 if { (ac_try="$ac_cpp conftest.$ac_ext"
33000 case "(($ac_try" in
33001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002   *) ac_try_echo=$ac_try;;
33003 esac
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33006   ac_status=$?
33007   grep -v '^ *+' conftest.er1 >conftest.err
33008   rm -f conftest.er1
33009   cat conftest.err >&5
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } >/dev/null && {
33012          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33013          test ! -s conftest.err
33014        }; then
33015   ac_header_preproc=yes
33016 else
33017   echo "$as_me: failed program was:" >&5
33018 sed 's/^/| /' conftest.$ac_ext >&5
33019
33020   ac_header_preproc=no
33021 fi
33022
33023 rm -f conftest.err conftest.$ac_ext
33024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33025 echo "${ECHO_T}$ac_header_preproc" >&6; }
33026
33027 # So?  What about this header?
33028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33029   yes:no: )
33030     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33031 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33032     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33033 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33034     ac_header_preproc=yes
33035     ;;
33036   no:yes:* )
33037     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33038 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33039     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33040 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33041     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33042 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33043     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33044 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33045     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33046 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33047     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33048 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33049
33050     ;;
33051 esac
33052 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33053 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33054 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33055   echo $ECHO_N "(cached) $ECHO_C" >&6
33056 else
33057   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33058 fi
33059 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33060 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33061
33062 fi
33063 if test $ac_cv_header_sys_statvfs_h = yes; then
33064
33065 cat >>confdefs.h <<\_ACEOF
33066 #define HAVE_SYS_STATVFS_H 1
33067 _ACEOF
33068
33069 fi
33070
33071
33072
33073 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33074 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33075 if test "${ac_cv_type_signal+set}" = set; then
33076   echo $ECHO_N "(cached) $ECHO_C" >&6
33077 else
33078   cat >conftest.$ac_ext <<_ACEOF
33079 /* confdefs.h.  */
33080 _ACEOF
33081 cat confdefs.h >>conftest.$ac_ext
33082 cat >>conftest.$ac_ext <<_ACEOF
33083 /* end confdefs.h.  */
33084 #include <sys/types.h>
33085 #include <signal.h>
33086
33087 int
33088 main ()
33089 {
33090 return *(signal (0, 0)) (0) == 1;
33091   ;
33092   return 0;
33093 }
33094 _ACEOF
33095 rm -f conftest.$ac_objext
33096 if { (ac_try="$ac_compile"
33097 case "(($ac_try" in
33098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099   *) ac_try_echo=$ac_try;;
33100 esac
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102   (eval "$ac_compile") 2>conftest.er1
33103   ac_status=$?
33104   grep -v '^ *+' conftest.er1 >conftest.err
33105   rm -f conftest.er1
33106   cat conftest.err >&5
33107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108   (exit $ac_status); } && {
33109          test -z "$ac_c_werror_flag" ||
33110          test ! -s conftest.err
33111        } && test -s conftest.$ac_objext; then
33112   ac_cv_type_signal=int
33113 else
33114   echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33116
33117         ac_cv_type_signal=void
33118 fi
33119
33120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33121 fi
33122 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33123 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33124
33125 cat >>confdefs.h <<_ACEOF
33126 #define RETSIGTYPE $ac_cv_type_signal
33127 _ACEOF
33128
33129
33130
33131   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33132 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33133   if test "${bash_cv_signal_vintage+set}" = set; then
33134   echo $ECHO_N "(cached) $ECHO_C" >&6
33135 else
33136
33137     cat >conftest.$ac_ext <<_ACEOF
33138 /* confdefs.h.  */
33139 _ACEOF
33140 cat confdefs.h >>conftest.$ac_ext
33141 cat >>conftest.$ac_ext <<_ACEOF
33142 /* end confdefs.h.  */
33143 #include <signal.h>
33144 int
33145 main ()
33146 {
33147
33148       sigset_t ss;
33149       struct sigaction sa;
33150       sigemptyset(&ss); sigsuspend(&ss);
33151       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33152       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33153
33154   ;
33155   return 0;
33156 }
33157 _ACEOF
33158 rm -f conftest.$ac_objext conftest$ac_exeext
33159 if { (ac_try="$ac_link"
33160 case "(($ac_try" in
33161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33162   *) ac_try_echo=$ac_try;;
33163 esac
33164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33165   (eval "$ac_link") 2>conftest.er1
33166   ac_status=$?
33167   grep -v '^ *+' conftest.er1 >conftest.err
33168   rm -f conftest.er1
33169   cat conftest.err >&5
33170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171   (exit $ac_status); } && {
33172          test -z "$ac_c_werror_flag" ||
33173          test ! -s conftest.err
33174        } && test -s conftest$ac_exeext &&
33175        $as_test_x conftest$ac_exeext; then
33176   bash_cv_signal_vintage="posix"
33177 else
33178   echo "$as_me: failed program was:" >&5
33179 sed 's/^/| /' conftest.$ac_ext >&5
33180
33181
33182       cat >conftest.$ac_ext <<_ACEOF
33183 /* confdefs.h.  */
33184 _ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h.  */
33188 #include <signal.h>
33189 int
33190 main ()
33191 {
33192
33193           int mask = sigmask(SIGINT);
33194           sigsetmask(mask); sigblock(mask); sigpause(mask);
33195
33196   ;
33197   return 0;
33198 }
33199 _ACEOF
33200 rm -f conftest.$ac_objext conftest$ac_exeext
33201 if { (ac_try="$ac_link"
33202 case "(($ac_try" in
33203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33204   *) ac_try_echo=$ac_try;;
33205 esac
33206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207   (eval "$ac_link") 2>conftest.er1
33208   ac_status=$?
33209   grep -v '^ *+' conftest.er1 >conftest.err
33210   rm -f conftest.er1
33211   cat conftest.err >&5
33212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213   (exit $ac_status); } && {
33214          test -z "$ac_c_werror_flag" ||
33215          test ! -s conftest.err
33216        } && test -s conftest$ac_exeext &&
33217        $as_test_x conftest$ac_exeext; then
33218   bash_cv_signal_vintage="4.2bsd"
33219 else
33220   echo "$as_me: failed program was:" >&5
33221 sed 's/^/| /' conftest.$ac_ext >&5
33222
33223
33224         cat >conftest.$ac_ext <<_ACEOF
33225 /* confdefs.h.  */
33226 _ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h.  */
33230
33231           #include <signal.h>
33232           RETSIGTYPE foo() { }
33233 int
33234 main ()
33235 {
33236
33237                   int mask = sigmask(SIGINT);
33238                   sigset(SIGINT, foo); sigrelse(SIGINT);
33239                   sighold(SIGINT); sigpause(SIGINT);
33240
33241   ;
33242   return 0;
33243 }
33244 _ACEOF
33245 rm -f conftest.$ac_objext conftest$ac_exeext
33246 if { (ac_try="$ac_link"
33247 case "(($ac_try" in
33248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249   *) ac_try_echo=$ac_try;;
33250 esac
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252   (eval "$ac_link") 2>conftest.er1
33253   ac_status=$?
33254   grep -v '^ *+' conftest.er1 >conftest.err
33255   rm -f conftest.er1
33256   cat conftest.err >&5
33257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258   (exit $ac_status); } && {
33259          test -z "$ac_c_werror_flag" ||
33260          test ! -s conftest.err
33261        } && test -s conftest$ac_exeext &&
33262        $as_test_x conftest$ac_exeext; then
33263   bash_cv_signal_vintage="svr3"
33264 else
33265   echo "$as_me: failed program was:" >&5
33266 sed 's/^/| /' conftest.$ac_ext >&5
33267
33268         bash_cv_signal_vintage="v7"
33269
33270 fi
33271
33272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33273       conftest$ac_exeext conftest.$ac_ext
33274
33275 fi
33276
33277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33278       conftest$ac_exeext conftest.$ac_ext
33279
33280 fi
33281
33282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33283       conftest$ac_exeext conftest.$ac_ext
33284
33285 fi
33286
33287   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33288 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33289   if test "$bash_cv_signal_vintage" = "posix"; then
33290     cat >>confdefs.h <<\_ACEOF
33291 #define HAVE_POSIX_SIGNALS 1
33292 _ACEOF
33293
33294   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33295     cat >>confdefs.h <<\_ACEOF
33296 #define HAVE_BSD_SIGNALS 1
33297 _ACEOF
33298
33299   elif test "$bash_cv_signal_vintage" = "svr3"; then
33300     cat >>confdefs.h <<\_ACEOF
33301 #define HAVE_USG_SIGHOLD 1
33302 _ACEOF
33303
33304   fi
33305
33306 { echo "$as_me:$LINENO: checking for mode_t" >&5
33307 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33308 if test "${ac_cv_type_mode_t+set}" = set; then
33309   echo $ECHO_N "(cached) $ECHO_C" >&6
33310 else
33311   cat >conftest.$ac_ext <<_ACEOF
33312 /* confdefs.h.  */
33313 _ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h.  */
33317 $ac_includes_default
33318 typedef mode_t ac__type_new_;
33319 int
33320 main ()
33321 {
33322 if ((ac__type_new_ *) 0)
33323   return 0;
33324 if (sizeof (ac__type_new_))
33325   return 0;
33326   ;
33327   return 0;
33328 }
33329 _ACEOF
33330 rm -f conftest.$ac_objext
33331 if { (ac_try="$ac_compile"
33332 case "(($ac_try" in
33333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334   *) ac_try_echo=$ac_try;;
33335 esac
33336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337   (eval "$ac_compile") 2>conftest.er1
33338   ac_status=$?
33339   grep -v '^ *+' conftest.er1 >conftest.err
33340   rm -f conftest.er1
33341   cat conftest.err >&5
33342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343   (exit $ac_status); } && {
33344          test -z "$ac_c_werror_flag" ||
33345          test ! -s conftest.err
33346        } && test -s conftest.$ac_objext; then
33347   ac_cv_type_mode_t=yes
33348 else
33349   echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33351
33352         ac_cv_type_mode_t=no
33353 fi
33354
33355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33356 fi
33357 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33358 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33359 if test $ac_cv_type_mode_t = yes; then
33360   :
33361 else
33362
33363 cat >>confdefs.h <<_ACEOF
33364 #define mode_t int
33365 _ACEOF
33366
33367 fi
33368
33369 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33370 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33371 if test "${ac_cv_type_uid_t+set}" = set; then
33372   echo $ECHO_N "(cached) $ECHO_C" >&6
33373 else
33374   cat >conftest.$ac_ext <<_ACEOF
33375 /* confdefs.h.  */
33376 _ACEOF
33377 cat confdefs.h >>conftest.$ac_ext
33378 cat >>conftest.$ac_ext <<_ACEOF
33379 /* end confdefs.h.  */
33380 #include <sys/types.h>
33381
33382 _ACEOF
33383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33384   $EGREP "uid_t" >/dev/null 2>&1; then
33385   ac_cv_type_uid_t=yes
33386 else
33387   ac_cv_type_uid_t=no
33388 fi
33389 rm -f conftest*
33390
33391 fi
33392 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33393 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33394 if test $ac_cv_type_uid_t = no; then
33395
33396 cat >>confdefs.h <<\_ACEOF
33397 #define uid_t int
33398 _ACEOF
33399
33400
33401 cat >>confdefs.h <<\_ACEOF
33402 #define gid_t int
33403 _ACEOF
33404
33405 fi
33406
33407 { echo "$as_me:$LINENO: checking for size_t" >&5
33408 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33409 if test "${ac_cv_type_size_t+set}" = set; then
33410   echo $ECHO_N "(cached) $ECHO_C" >&6
33411 else
33412   cat >conftest.$ac_ext <<_ACEOF
33413 /* confdefs.h.  */
33414 _ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h.  */
33418 $ac_includes_default
33419 typedef size_t ac__type_new_;
33420 int
33421 main ()
33422 {
33423 if ((ac__type_new_ *) 0)
33424   return 0;
33425 if (sizeof (ac__type_new_))
33426   return 0;
33427   ;
33428   return 0;
33429 }
33430 _ACEOF
33431 rm -f conftest.$ac_objext
33432 if { (ac_try="$ac_compile"
33433 case "(($ac_try" in
33434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33435   *) ac_try_echo=$ac_try;;
33436 esac
33437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33438   (eval "$ac_compile") 2>conftest.er1
33439   ac_status=$?
33440   grep -v '^ *+' conftest.er1 >conftest.err
33441   rm -f conftest.er1
33442   cat conftest.err >&5
33443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444   (exit $ac_status); } && {
33445          test -z "$ac_c_werror_flag" ||
33446          test ! -s conftest.err
33447        } && test -s conftest.$ac_objext; then
33448   ac_cv_type_size_t=yes
33449 else
33450   echo "$as_me: failed program was:" >&5
33451 sed 's/^/| /' conftest.$ac_ext >&5
33452
33453         ac_cv_type_size_t=no
33454 fi
33455
33456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33457 fi
33458 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33459 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33460 if test $ac_cv_type_size_t = yes; then
33461   :
33462 else
33463
33464 cat >>confdefs.h <<_ACEOF
33465 #define size_t unsigned int
33466 _ACEOF
33467
33468 fi
33469
33470 { echo "$as_me:$LINENO: checking for pid_t" >&5
33471 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33472 if test "${ac_cv_type_pid_t+set}" = set; then
33473   echo $ECHO_N "(cached) $ECHO_C" >&6
33474 else
33475   cat >conftest.$ac_ext <<_ACEOF
33476 /* confdefs.h.  */
33477 _ACEOF
33478 cat confdefs.h >>conftest.$ac_ext
33479 cat >>conftest.$ac_ext <<_ACEOF
33480 /* end confdefs.h.  */
33481 $ac_includes_default
33482 typedef pid_t ac__type_new_;
33483 int
33484 main ()
33485 {
33486 if ((ac__type_new_ *) 0)
33487   return 0;
33488 if (sizeof (ac__type_new_))
33489   return 0;
33490   ;
33491   return 0;
33492 }
33493 _ACEOF
33494 rm -f conftest.$ac_objext
33495 if { (ac_try="$ac_compile"
33496 case "(($ac_try" in
33497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33498   *) ac_try_echo=$ac_try;;
33499 esac
33500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33501   (eval "$ac_compile") 2>conftest.er1
33502   ac_status=$?
33503   grep -v '^ *+' conftest.er1 >conftest.err
33504   rm -f conftest.er1
33505   cat conftest.err >&5
33506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507   (exit $ac_status); } && {
33508          test -z "$ac_c_werror_flag" ||
33509          test ! -s conftest.err
33510        } && test -s conftest.$ac_objext; then
33511   ac_cv_type_pid_t=yes
33512 else
33513   echo "$as_me: failed program was:" >&5
33514 sed 's/^/| /' conftest.$ac_ext >&5
33515
33516         ac_cv_type_pid_t=no
33517 fi
33518
33519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33520 fi
33521 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33522 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33523 if test $ac_cv_type_pid_t = yes; then
33524   :
33525 else
33526
33527 cat >>confdefs.h <<_ACEOF
33528 #define pid_t int
33529 _ACEOF
33530
33531 fi
33532
33533 { echo "$as_me:$LINENO: checking for off_t" >&5
33534 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33535 if test "${ac_cv_type_off_t+set}" = set; then
33536   echo $ECHO_N "(cached) $ECHO_C" >&6
33537 else
33538   cat >conftest.$ac_ext <<_ACEOF
33539 /* confdefs.h.  */
33540 _ACEOF
33541 cat confdefs.h >>conftest.$ac_ext
33542 cat >>conftest.$ac_ext <<_ACEOF
33543 /* end confdefs.h.  */
33544 $ac_includes_default
33545 typedef off_t ac__type_new_;
33546 int
33547 main ()
33548 {
33549 if ((ac__type_new_ *) 0)
33550   return 0;
33551 if (sizeof (ac__type_new_))
33552   return 0;
33553   ;
33554   return 0;
33555 }
33556 _ACEOF
33557 rm -f conftest.$ac_objext
33558 if { (ac_try="$ac_compile"
33559 case "(($ac_try" in
33560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33561   *) ac_try_echo=$ac_try;;
33562 esac
33563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33564   (eval "$ac_compile") 2>conftest.er1
33565   ac_status=$?
33566   grep -v '^ *+' conftest.er1 >conftest.err
33567   rm -f conftest.er1
33568   cat conftest.err >&5
33569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33570   (exit $ac_status); } && {
33571          test -z "$ac_c_werror_flag" ||
33572          test ! -s conftest.err
33573        } && test -s conftest.$ac_objext; then
33574   ac_cv_type_off_t=yes
33575 else
33576   echo "$as_me: failed program was:" >&5
33577 sed 's/^/| /' conftest.$ac_ext >&5
33578
33579         ac_cv_type_off_t=no
33580 fi
33581
33582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33583 fi
33584 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33585 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33586 if test $ac_cv_type_off_t = yes; then
33587   :
33588 else
33589
33590 cat >>confdefs.h <<_ACEOF
33591 #define off_t long int
33592 _ACEOF
33593
33594 fi
33595
33596
33597   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33598 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33599 if test "${ac_cv_type_intptr_t+set}" = set; then
33600   echo $ECHO_N "(cached) $ECHO_C" >&6
33601 else
33602   cat >conftest.$ac_ext <<_ACEOF
33603 /* confdefs.h.  */
33604 _ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h.  */
33608 $ac_includes_default
33609 typedef intptr_t ac__type_new_;
33610 int
33611 main ()
33612 {
33613 if ((ac__type_new_ *) 0)
33614   return 0;
33615 if (sizeof (ac__type_new_))
33616   return 0;
33617   ;
33618   return 0;
33619 }
33620 _ACEOF
33621 rm -f conftest.$ac_objext
33622 if { (ac_try="$ac_compile"
33623 case "(($ac_try" in
33624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625   *) ac_try_echo=$ac_try;;
33626 esac
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628   (eval "$ac_compile") 2>conftest.er1
33629   ac_status=$?
33630   grep -v '^ *+' conftest.er1 >conftest.err
33631   rm -f conftest.er1
33632   cat conftest.err >&5
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); } && {
33635          test -z "$ac_c_werror_flag" ||
33636          test ! -s conftest.err
33637        } && test -s conftest.$ac_objext; then
33638   ac_cv_type_intptr_t=yes
33639 else
33640   echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643         ac_cv_type_intptr_t=no
33644 fi
33645
33646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33647 fi
33648 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33649 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33650 if test $ac_cv_type_intptr_t = yes; then
33651
33652 cat >>confdefs.h <<\_ACEOF
33653 #define HAVE_INTPTR_T 1
33654 _ACEOF
33655
33656 else
33657   for ac_type in 'int' 'long int' 'long long int'; do
33658        cat >conftest.$ac_ext <<_ACEOF
33659 /* confdefs.h.  */
33660 _ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h.  */
33664 $ac_includes_default
33665 int
33666 main ()
33667 {
33668 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33669 test_array [0] = 0
33670
33671   ;
33672   return 0;
33673 }
33674 _ACEOF
33675 rm -f conftest.$ac_objext
33676 if { (ac_try="$ac_compile"
33677 case "(($ac_try" in
33678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679   *) ac_try_echo=$ac_try;;
33680 esac
33681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682   (eval "$ac_compile") 2>conftest.er1
33683   ac_status=$?
33684   grep -v '^ *+' conftest.er1 >conftest.err
33685   rm -f conftest.er1
33686   cat conftest.err >&5
33687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688   (exit $ac_status); } && {
33689          test -z "$ac_c_werror_flag" ||
33690          test ! -s conftest.err
33691        } && test -s conftest.$ac_objext; then
33692
33693 cat >>confdefs.h <<_ACEOF
33694 #define intptr_t $ac_type
33695 _ACEOF
33696
33697           ac_type=
33698 else
33699   echo "$as_me: failed program was:" >&5
33700 sed 's/^/| /' conftest.$ac_ext >&5
33701
33702
33703 fi
33704
33705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33706        test -z "$ac_type" && break
33707      done
33708 fi
33709
33710
33711
33712   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33713 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33714 if test "${ac_cv_type_uintptr_t+set}" = set; then
33715   echo $ECHO_N "(cached) $ECHO_C" >&6
33716 else
33717   cat >conftest.$ac_ext <<_ACEOF
33718 /* confdefs.h.  */
33719 _ACEOF
33720 cat confdefs.h >>conftest.$ac_ext
33721 cat >>conftest.$ac_ext <<_ACEOF
33722 /* end confdefs.h.  */
33723 $ac_includes_default
33724 typedef uintptr_t ac__type_new_;
33725 int
33726 main ()
33727 {
33728 if ((ac__type_new_ *) 0)
33729   return 0;
33730 if (sizeof (ac__type_new_))
33731   return 0;
33732   ;
33733   return 0;
33734 }
33735 _ACEOF
33736 rm -f conftest.$ac_objext
33737 if { (ac_try="$ac_compile"
33738 case "(($ac_try" in
33739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740   *) ac_try_echo=$ac_try;;
33741 esac
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743   (eval "$ac_compile") 2>conftest.er1
33744   ac_status=$?
33745   grep -v '^ *+' conftest.er1 >conftest.err
33746   rm -f conftest.er1
33747   cat conftest.err >&5
33748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749   (exit $ac_status); } && {
33750          test -z "$ac_c_werror_flag" ||
33751          test ! -s conftest.err
33752        } && test -s conftest.$ac_objext; then
33753   ac_cv_type_uintptr_t=yes
33754 else
33755   echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33757
33758         ac_cv_type_uintptr_t=no
33759 fi
33760
33761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33762 fi
33763 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33764 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33765 if test $ac_cv_type_uintptr_t = yes; then
33766
33767 cat >>confdefs.h <<\_ACEOF
33768 #define HAVE_UINTPTR_T 1
33769 _ACEOF
33770
33771 else
33772   for ac_type in 'unsigned int' 'unsigned long int' \
33773         'unsigned long long int'; do
33774        cat >conftest.$ac_ext <<_ACEOF
33775 /* confdefs.h.  */
33776 _ACEOF
33777 cat confdefs.h >>conftest.$ac_ext
33778 cat >>conftest.$ac_ext <<_ACEOF
33779 /* end confdefs.h.  */
33780 $ac_includes_default
33781 int
33782 main ()
33783 {
33784 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33785 test_array [0] = 0
33786
33787   ;
33788   return 0;
33789 }
33790 _ACEOF
33791 rm -f conftest.$ac_objext
33792 if { (ac_try="$ac_compile"
33793 case "(($ac_try" in
33794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795   *) ac_try_echo=$ac_try;;
33796 esac
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798   (eval "$ac_compile") 2>conftest.er1
33799   ac_status=$?
33800   grep -v '^ *+' conftest.er1 >conftest.err
33801   rm -f conftest.er1
33802   cat conftest.err >&5
33803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804   (exit $ac_status); } && {
33805          test -z "$ac_c_werror_flag" ||
33806          test ! -s conftest.err
33807        } && test -s conftest.$ac_objext; then
33808
33809 cat >>confdefs.h <<_ACEOF
33810 #define uintptr_t $ac_type
33811 _ACEOF
33812
33813           ac_type=
33814 else
33815   echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33817
33818
33819 fi
33820
33821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33822        test -z "$ac_type" && break
33823      done
33824 fi
33825
33826
33827 { echo "$as_me:$LINENO: checking for ino_t" >&5
33828 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33829 if test "${ac_cv_type_ino_t+set}" = set; then
33830   echo $ECHO_N "(cached) $ECHO_C" >&6
33831 else
33832   cat >conftest.$ac_ext <<_ACEOF
33833 /* confdefs.h.  */
33834 _ACEOF
33835 cat confdefs.h >>conftest.$ac_ext
33836 cat >>conftest.$ac_ext <<_ACEOF
33837 /* end confdefs.h.  */
33838 $ac_includes_default
33839 typedef ino_t ac__type_new_;
33840 int
33841 main ()
33842 {
33843 if ((ac__type_new_ *) 0)
33844   return 0;
33845 if (sizeof (ac__type_new_))
33846   return 0;
33847   ;
33848   return 0;
33849 }
33850 _ACEOF
33851 rm -f conftest.$ac_objext
33852 if { (ac_try="$ac_compile"
33853 case "(($ac_try" in
33854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855   *) ac_try_echo=$ac_try;;
33856 esac
33857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33858   (eval "$ac_compile") 2>conftest.er1
33859   ac_status=$?
33860   grep -v '^ *+' conftest.er1 >conftest.err
33861   rm -f conftest.er1
33862   cat conftest.err >&5
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); } && {
33865          test -z "$ac_c_werror_flag" ||
33866          test ! -s conftest.err
33867        } && test -s conftest.$ac_objext; then
33868   ac_cv_type_ino_t=yes
33869 else
33870   echo "$as_me: failed program was:" >&5
33871 sed 's/^/| /' conftest.$ac_ext >&5
33872
33873         ac_cv_type_ino_t=no
33874 fi
33875
33876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33877 fi
33878 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33879 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33880 if test $ac_cv_type_ino_t = yes; then
33881   :
33882 else
33883
33884 cat >>confdefs.h <<_ACEOF
33885 #define ino_t unsigned long
33886 _ACEOF
33887
33888 fi
33889
33890 { echo "$as_me:$LINENO: checking for dev_t" >&5
33891 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33892 if test "${ac_cv_type_dev_t+set}" = set; then
33893   echo $ECHO_N "(cached) $ECHO_C" >&6
33894 else
33895   cat >conftest.$ac_ext <<_ACEOF
33896 /* confdefs.h.  */
33897 _ACEOF
33898 cat confdefs.h >>conftest.$ac_ext
33899 cat >>conftest.$ac_ext <<_ACEOF
33900 /* end confdefs.h.  */
33901 $ac_includes_default
33902 typedef dev_t ac__type_new_;
33903 int
33904 main ()
33905 {
33906 if ((ac__type_new_ *) 0)
33907   return 0;
33908 if (sizeof (ac__type_new_))
33909   return 0;
33910   ;
33911   return 0;
33912 }
33913 _ACEOF
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918   *) ac_try_echo=$ac_try;;
33919 esac
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921   (eval "$ac_compile") 2>conftest.er1
33922   ac_status=$?
33923   grep -v '^ *+' conftest.er1 >conftest.err
33924   rm -f conftest.er1
33925   cat conftest.err >&5
33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927   (exit $ac_status); } && {
33928          test -z "$ac_c_werror_flag" ||
33929          test ! -s conftest.err
33930        } && test -s conftest.$ac_objext; then
33931   ac_cv_type_dev_t=yes
33932 else
33933   echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33935
33936         ac_cv_type_dev_t=no
33937 fi
33938
33939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33940 fi
33941 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33942 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33943 if test $ac_cv_type_dev_t = yes; then
33944   :
33945 else
33946
33947 cat >>confdefs.h <<_ACEOF
33948 #define dev_t unsigned long
33949 _ACEOF
33950
33951 fi
33952
33953 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33954 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33955 if test "${ac_cv_type_daddr_t+set}" = set; then
33956   echo $ECHO_N "(cached) $ECHO_C" >&6
33957 else
33958   cat >conftest.$ac_ext <<_ACEOF
33959 /* confdefs.h.  */
33960 _ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h.  */
33964 $ac_includes_default
33965 typedef daddr_t ac__type_new_;
33966 int
33967 main ()
33968 {
33969 if ((ac__type_new_ *) 0)
33970   return 0;
33971 if (sizeof (ac__type_new_))
33972   return 0;
33973   ;
33974   return 0;
33975 }
33976 _ACEOF
33977 rm -f conftest.$ac_objext
33978 if { (ac_try="$ac_compile"
33979 case "(($ac_try" in
33980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981   *) ac_try_echo=$ac_try;;
33982 esac
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984   (eval "$ac_compile") 2>conftest.er1
33985   ac_status=$?
33986   grep -v '^ *+' conftest.er1 >conftest.err
33987   rm -f conftest.er1
33988   cat conftest.err >&5
33989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990   (exit $ac_status); } && {
33991          test -z "$ac_c_werror_flag" ||
33992          test ! -s conftest.err
33993        } && test -s conftest.$ac_objext; then
33994   ac_cv_type_daddr_t=yes
33995 else
33996   echo "$as_me: failed program was:" >&5
33997 sed 's/^/| /' conftest.$ac_ext >&5
33998
33999         ac_cv_type_daddr_t=no
34000 fi
34001
34002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34003 fi
34004 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34005 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34006 if test $ac_cv_type_daddr_t = yes; then
34007   :
34008 else
34009
34010 cat >>confdefs.h <<_ACEOF
34011 #define daddr_t long
34012 _ACEOF
34013
34014 fi
34015
34016 { echo "$as_me:$LINENO: checking for major_t" >&5
34017 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34018 if test "${ac_cv_type_major_t+set}" = set; then
34019   echo $ECHO_N "(cached) $ECHO_C" >&6
34020 else
34021   cat >conftest.$ac_ext <<_ACEOF
34022 /* confdefs.h.  */
34023 _ACEOF
34024 cat confdefs.h >>conftest.$ac_ext
34025 cat >>conftest.$ac_ext <<_ACEOF
34026 /* end confdefs.h.  */
34027 $ac_includes_default
34028 typedef major_t ac__type_new_;
34029 int
34030 main ()
34031 {
34032 if ((ac__type_new_ *) 0)
34033   return 0;
34034 if (sizeof (ac__type_new_))
34035   return 0;
34036   ;
34037   return 0;
34038 }
34039 _ACEOF
34040 rm -f conftest.$ac_objext
34041 if { (ac_try="$ac_compile"
34042 case "(($ac_try" in
34043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044   *) ac_try_echo=$ac_try;;
34045 esac
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047   (eval "$ac_compile") 2>conftest.er1
34048   ac_status=$?
34049   grep -v '^ *+' conftest.er1 >conftest.err
34050   rm -f conftest.er1
34051   cat conftest.err >&5
34052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053   (exit $ac_status); } && {
34054          test -z "$ac_c_werror_flag" ||
34055          test ! -s conftest.err
34056        } && test -s conftest.$ac_objext; then
34057   ac_cv_type_major_t=yes
34058 else
34059   echo "$as_me: failed program was:" >&5
34060 sed 's/^/| /' conftest.$ac_ext >&5
34061
34062         ac_cv_type_major_t=no
34063 fi
34064
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34066 fi
34067 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34068 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34069 if test $ac_cv_type_major_t = yes; then
34070   :
34071 else
34072
34073 cat >>confdefs.h <<_ACEOF
34074 #define major_t int
34075 _ACEOF
34076
34077 fi
34078
34079 { echo "$as_me:$LINENO: checking for minor_t" >&5
34080 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34081 if test "${ac_cv_type_minor_t+set}" = set; then
34082   echo $ECHO_N "(cached) $ECHO_C" >&6
34083 else
34084   cat >conftest.$ac_ext <<_ACEOF
34085 /* confdefs.h.  */
34086 _ACEOF
34087 cat confdefs.h >>conftest.$ac_ext
34088 cat >>conftest.$ac_ext <<_ACEOF
34089 /* end confdefs.h.  */
34090 $ac_includes_default
34091 typedef minor_t ac__type_new_;
34092 int
34093 main ()
34094 {
34095 if ((ac__type_new_ *) 0)
34096   return 0;
34097 if (sizeof (ac__type_new_))
34098   return 0;
34099   ;
34100   return 0;
34101 }
34102 _ACEOF
34103 rm -f conftest.$ac_objext
34104 if { (ac_try="$ac_compile"
34105 case "(($ac_try" in
34106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107   *) ac_try_echo=$ac_try;;
34108 esac
34109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110   (eval "$ac_compile") 2>conftest.er1
34111   ac_status=$?
34112   grep -v '^ *+' conftest.er1 >conftest.err
34113   rm -f conftest.er1
34114   cat conftest.err >&5
34115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116   (exit $ac_status); } && {
34117          test -z "$ac_c_werror_flag" ||
34118          test ! -s conftest.err
34119        } && test -s conftest.$ac_objext; then
34120   ac_cv_type_minor_t=yes
34121 else
34122   echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34124
34125         ac_cv_type_minor_t=no
34126 fi
34127
34128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34129 fi
34130 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34131 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34132 if test $ac_cv_type_minor_t = yes; then
34133   :
34134 else
34135
34136 cat >>confdefs.h <<_ACEOF
34137 #define minor_t int
34138 _ACEOF
34139
34140 fi
34141
34142 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34143 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34144 if test "${ac_cv_type_ssize_t+set}" = set; then
34145   echo $ECHO_N "(cached) $ECHO_C" >&6
34146 else
34147   cat >conftest.$ac_ext <<_ACEOF
34148 /* confdefs.h.  */
34149 _ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h.  */
34153 $ac_includes_default
34154 typedef ssize_t ac__type_new_;
34155 int
34156 main ()
34157 {
34158 if ((ac__type_new_ *) 0)
34159   return 0;
34160 if (sizeof (ac__type_new_))
34161   return 0;
34162   ;
34163   return 0;
34164 }
34165 _ACEOF
34166 rm -f conftest.$ac_objext
34167 if { (ac_try="$ac_compile"
34168 case "(($ac_try" in
34169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170   *) ac_try_echo=$ac_try;;
34171 esac
34172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173   (eval "$ac_compile") 2>conftest.er1
34174   ac_status=$?
34175   grep -v '^ *+' conftest.er1 >conftest.err
34176   rm -f conftest.er1
34177   cat conftest.err >&5
34178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179   (exit $ac_status); } && {
34180          test -z "$ac_c_werror_flag" ||
34181          test ! -s conftest.err
34182        } && test -s conftest.$ac_objext; then
34183   ac_cv_type_ssize_t=yes
34184 else
34185   echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34187
34188         ac_cv_type_ssize_t=no
34189 fi
34190
34191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34192 fi
34193 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34194 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34195 if test $ac_cv_type_ssize_t = yes; then
34196   :
34197 else
34198
34199 cat >>confdefs.h <<_ACEOF
34200 #define ssize_t int
34201 _ACEOF
34202
34203 fi
34204
34205 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34206 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34207 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34208   echo $ECHO_N "(cached) $ECHO_C" >&6
34209 else
34210   cat >conftest.$ac_ext <<_ACEOF
34211 /* confdefs.h.  */
34212 _ACEOF
34213 cat confdefs.h >>conftest.$ac_ext
34214 cat >>conftest.$ac_ext <<_ACEOF
34215 /* end confdefs.h.  */
34216 $ac_includes_default
34217 int
34218 main ()
34219 {
34220 static struct stat ac_aggr;
34221 if (ac_aggr.st_blocks)
34222 return 0;
34223   ;
34224   return 0;
34225 }
34226 _ACEOF
34227 rm -f conftest.$ac_objext
34228 if { (ac_try="$ac_compile"
34229 case "(($ac_try" in
34230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231   *) ac_try_echo=$ac_try;;
34232 esac
34233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234   (eval "$ac_compile") 2>conftest.er1
34235   ac_status=$?
34236   grep -v '^ *+' conftest.er1 >conftest.err
34237   rm -f conftest.er1
34238   cat conftest.err >&5
34239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240   (exit $ac_status); } && {
34241          test -z "$ac_c_werror_flag" ||
34242          test ! -s conftest.err
34243        } && test -s conftest.$ac_objext; then
34244   ac_cv_member_struct_stat_st_blocks=yes
34245 else
34246   echo "$as_me: failed program was:" >&5
34247 sed 's/^/| /' conftest.$ac_ext >&5
34248
34249         cat >conftest.$ac_ext <<_ACEOF
34250 /* confdefs.h.  */
34251 _ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h.  */
34255 $ac_includes_default
34256 int
34257 main ()
34258 {
34259 static struct stat ac_aggr;
34260 if (sizeof ac_aggr.st_blocks)
34261 return 0;
34262   ;
34263   return 0;
34264 }
34265 _ACEOF
34266 rm -f conftest.$ac_objext
34267 if { (ac_try="$ac_compile"
34268 case "(($ac_try" in
34269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270   *) ac_try_echo=$ac_try;;
34271 esac
34272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273   (eval "$ac_compile") 2>conftest.er1
34274   ac_status=$?
34275   grep -v '^ *+' conftest.er1 >conftest.err
34276   rm -f conftest.er1
34277   cat conftest.err >&5
34278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279   (exit $ac_status); } && {
34280          test -z "$ac_c_werror_flag" ||
34281          test ! -s conftest.err
34282        } && test -s conftest.$ac_objext; then
34283   ac_cv_member_struct_stat_st_blocks=yes
34284 else
34285   echo "$as_me: failed program was:" >&5
34286 sed 's/^/| /' conftest.$ac_ext >&5
34287
34288         ac_cv_member_struct_stat_st_blocks=no
34289 fi
34290
34291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34292 fi
34293
34294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34295 fi
34296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34297 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34298 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34299
34300 cat >>confdefs.h <<_ACEOF
34301 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34302 _ACEOF
34303
34304
34305 cat >>confdefs.h <<\_ACEOF
34306 #define HAVE_ST_BLOCKS 1
34307 _ACEOF
34308
34309 else
34310   case " $LIBOBJS " in
34311   *" fileblocks.$ac_objext "* ) ;;
34312   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34313  ;;
34314 esac
34315
34316 fi
34317
34318
34319 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34320 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34321 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34322   echo $ECHO_N "(cached) $ECHO_C" >&6
34323 else
34324   cat >conftest.$ac_ext <<_ACEOF
34325 /* confdefs.h.  */
34326 _ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h.  */
34330 $ac_includes_default
34331 int
34332 main ()
34333 {
34334 static struct stat ac_aggr;
34335 if (ac_aggr.st_rdev)
34336 return 0;
34337   ;
34338   return 0;
34339 }
34340 _ACEOF
34341 rm -f conftest.$ac_objext
34342 if { (ac_try="$ac_compile"
34343 case "(($ac_try" in
34344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345   *) ac_try_echo=$ac_try;;
34346 esac
34347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348   (eval "$ac_compile") 2>conftest.er1
34349   ac_status=$?
34350   grep -v '^ *+' conftest.er1 >conftest.err
34351   rm -f conftest.er1
34352   cat conftest.err >&5
34353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354   (exit $ac_status); } && {
34355          test -z "$ac_c_werror_flag" ||
34356          test ! -s conftest.err
34357        } && test -s conftest.$ac_objext; then
34358   ac_cv_member_struct_stat_st_rdev=yes
34359 else
34360   echo "$as_me: failed program was:" >&5
34361 sed 's/^/| /' conftest.$ac_ext >&5
34362
34363         cat >conftest.$ac_ext <<_ACEOF
34364 /* confdefs.h.  */
34365 _ACEOF
34366 cat confdefs.h >>conftest.$ac_ext
34367 cat >>conftest.$ac_ext <<_ACEOF
34368 /* end confdefs.h.  */
34369 $ac_includes_default
34370 int
34371 main ()
34372 {
34373 static struct stat ac_aggr;
34374 if (sizeof ac_aggr.st_rdev)
34375 return 0;
34376   ;
34377   return 0;
34378 }
34379 _ACEOF
34380 rm -f conftest.$ac_objext
34381 if { (ac_try="$ac_compile"
34382 case "(($ac_try" in
34383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384   *) ac_try_echo=$ac_try;;
34385 esac
34386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34387   (eval "$ac_compile") 2>conftest.er1
34388   ac_status=$?
34389   grep -v '^ *+' conftest.er1 >conftest.err
34390   rm -f conftest.er1
34391   cat conftest.err >&5
34392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393   (exit $ac_status); } && {
34394          test -z "$ac_c_werror_flag" ||
34395          test ! -s conftest.err
34396        } && test -s conftest.$ac_objext; then
34397   ac_cv_member_struct_stat_st_rdev=yes
34398 else
34399   echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.$ac_ext >&5
34401
34402         ac_cv_member_struct_stat_st_rdev=no
34403 fi
34404
34405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34406 fi
34407
34408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34409 fi
34410 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34411 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34412 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34413
34414 cat >>confdefs.h <<_ACEOF
34415 #define HAVE_STRUCT_STAT_ST_RDEV 1
34416 _ACEOF
34417
34418
34419 cat >>confdefs.h <<\_ACEOF
34420 #define HAVE_ST_RDEV 1
34421 _ACEOF
34422
34423 fi
34424
34425
34426 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34427 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34428 if test "${ac_cv_struct_tm+set}" = set; then
34429   echo $ECHO_N "(cached) $ECHO_C" >&6
34430 else
34431   cat >conftest.$ac_ext <<_ACEOF
34432 /* confdefs.h.  */
34433 _ACEOF
34434 cat confdefs.h >>conftest.$ac_ext
34435 cat >>conftest.$ac_ext <<_ACEOF
34436 /* end confdefs.h.  */
34437 #include <sys/types.h>
34438 #include <time.h>
34439
34440 int
34441 main ()
34442 {
34443 struct tm tm;
34444                                      int *p = &tm.tm_sec;
34445                                      return !p;
34446   ;
34447   return 0;
34448 }
34449 _ACEOF
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454   *) ac_try_echo=$ac_try;;
34455 esac
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457   (eval "$ac_compile") 2>conftest.er1
34458   ac_status=$?
34459   grep -v '^ *+' conftest.er1 >conftest.err
34460   rm -f conftest.er1
34461   cat conftest.err >&5
34462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463   (exit $ac_status); } && {
34464          test -z "$ac_c_werror_flag" ||
34465          test ! -s conftest.err
34466        } && test -s conftest.$ac_objext; then
34467   ac_cv_struct_tm=time.h
34468 else
34469   echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34471
34472         ac_cv_struct_tm=sys/time.h
34473 fi
34474
34475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34476 fi
34477 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34478 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34479 if test $ac_cv_struct_tm = sys/time.h; then
34480
34481 cat >>confdefs.h <<\_ACEOF
34482 #define TM_IN_SYS_TIME 1
34483 _ACEOF
34484
34485 fi
34486
34487 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34488 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34489 if test "${ac_cv_c_const+set}" = set; then
34490   echo $ECHO_N "(cached) $ECHO_C" >&6
34491 else
34492   cat >conftest.$ac_ext <<_ACEOF
34493 /* confdefs.h.  */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h.  */
34498
34499 int
34500 main ()
34501 {
34502 /* FIXME: Include the comments suggested by Paul. */
34503 #ifndef __cplusplus
34504   /* Ultrix mips cc rejects this.  */
34505   typedef int charset[2];
34506   const charset cs;
34507   /* SunOS 4.1.1 cc rejects this.  */
34508   char const *const *pcpcc;
34509   char **ppc;
34510   /* NEC SVR4.0.2 mips cc rejects this.  */
34511   struct point {int x, y;};
34512   static struct point const zero = {0,0};
34513   /* AIX XL C 1.02.0.0 rejects this.
34514      It does not let you subtract one const X* pointer from another in
34515      an arm of an if-expression whose if-part is not a constant
34516      expression */
34517   const char *g = "string";
34518   pcpcc = &g + (g ? g-g : 0);
34519   /* HPUX 7.0 cc rejects these. */
34520   ++pcpcc;
34521   ppc = (char**) pcpcc;
34522   pcpcc = (char const *const *) ppc;
34523   { /* SCO 3.2v4 cc rejects this.  */
34524     char *t;
34525     char const *s = 0 ? (char *) 0 : (char const *) 0;
34526
34527     *t++ = 0;
34528     if (s) return 0;
34529   }
34530   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34531     int x[] = {25, 17};
34532     const int *foo = &x[0];
34533     ++foo;
34534   }
34535   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34536     typedef const int *iptr;
34537     iptr p = 0;
34538     ++p;
34539   }
34540   { /* AIX XL C 1.02.0.0 rejects this saying
34541        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34542     struct s { int j; const int *ap[3]; };
34543     struct s *b; b->j = 5;
34544   }
34545   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34546     const int foo = 10;
34547     if (!foo) return 0;
34548   }
34549   return !cs[0] && !zero.x;
34550 #endif
34551
34552   ;
34553   return 0;
34554 }
34555 _ACEOF
34556 rm -f conftest.$ac_objext
34557 if { (ac_try="$ac_compile"
34558 case "(($ac_try" in
34559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34560   *) ac_try_echo=$ac_try;;
34561 esac
34562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34563   (eval "$ac_compile") 2>conftest.er1
34564   ac_status=$?
34565   grep -v '^ *+' conftest.er1 >conftest.err
34566   rm -f conftest.er1
34567   cat conftest.err >&5
34568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569   (exit $ac_status); } && {
34570          test -z "$ac_c_werror_flag" ||
34571          test ! -s conftest.err
34572        } && test -s conftest.$ac_objext; then
34573   ac_cv_c_const=yes
34574 else
34575   echo "$as_me: failed program was:" >&5
34576 sed 's/^/| /' conftest.$ac_ext >&5
34577
34578         ac_cv_c_const=no
34579 fi
34580
34581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34582 fi
34583 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34584 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34585 if test $ac_cv_c_const = no; then
34586
34587 cat >>confdefs.h <<\_ACEOF
34588 #define const
34589 _ACEOF
34590
34591 fi
34592
34593
34594 { echo "$as_me:$LINENO: checking for char" >&5
34595 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34596 if test "${ac_cv_type_char+set}" = set; then
34597   echo $ECHO_N "(cached) $ECHO_C" >&6
34598 else
34599   cat >conftest.$ac_ext <<_ACEOF
34600 /* confdefs.h.  */
34601 _ACEOF
34602 cat confdefs.h >>conftest.$ac_ext
34603 cat >>conftest.$ac_ext <<_ACEOF
34604 /* end confdefs.h.  */
34605 $ac_includes_default
34606 typedef char ac__type_new_;
34607 int
34608 main ()
34609 {
34610 if ((ac__type_new_ *) 0)
34611   return 0;
34612 if (sizeof (ac__type_new_))
34613   return 0;
34614   ;
34615   return 0;
34616 }
34617 _ACEOF
34618 rm -f conftest.$ac_objext
34619 if { (ac_try="$ac_compile"
34620 case "(($ac_try" in
34621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34622   *) ac_try_echo=$ac_try;;
34623 esac
34624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34625   (eval "$ac_compile") 2>conftest.er1
34626   ac_status=$?
34627   grep -v '^ *+' conftest.er1 >conftest.err
34628   rm -f conftest.er1
34629   cat conftest.err >&5
34630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631   (exit $ac_status); } && {
34632          test -z "$ac_c_werror_flag" ||
34633          test ! -s conftest.err
34634        } && test -s conftest.$ac_objext; then
34635   ac_cv_type_char=yes
34636 else
34637   echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.$ac_ext >&5
34639
34640         ac_cv_type_char=no
34641 fi
34642
34643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34644 fi
34645 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34646 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34647
34648 # The cast to long int works around a bug in the HP C Compiler
34649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34651 # This bug is HP SR number 8606223364.
34652 { echo "$as_me:$LINENO: checking size of char" >&5
34653 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34654 if test "${ac_cv_sizeof_char+set}" = set; then
34655   echo $ECHO_N "(cached) $ECHO_C" >&6
34656 else
34657   if test "$cross_compiling" = yes; then
34658   # Depending upon the size, compute the lo and hi bounds.
34659 cat >conftest.$ac_ext <<_ACEOF
34660 /* confdefs.h.  */
34661 _ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h.  */
34665 $ac_includes_default
34666    typedef char ac__type_sizeof_;
34667 int
34668 main ()
34669 {
34670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34671 test_array [0] = 0
34672
34673   ;
34674   return 0;
34675 }
34676 _ACEOF
34677 rm -f conftest.$ac_objext
34678 if { (ac_try="$ac_compile"
34679 case "(($ac_try" in
34680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34681   *) ac_try_echo=$ac_try;;
34682 esac
34683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34684   (eval "$ac_compile") 2>conftest.er1
34685   ac_status=$?
34686   grep -v '^ *+' conftest.er1 >conftest.err
34687   rm -f conftest.er1
34688   cat conftest.err >&5
34689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690   (exit $ac_status); } && {
34691          test -z "$ac_c_werror_flag" ||
34692          test ! -s conftest.err
34693        } && test -s conftest.$ac_objext; then
34694   ac_lo=0 ac_mid=0
34695   while :; do
34696     cat >conftest.$ac_ext <<_ACEOF
34697 /* confdefs.h.  */
34698 _ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h.  */
34702 $ac_includes_default
34703    typedef char ac__type_sizeof_;
34704 int
34705 main ()
34706 {
34707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34708 test_array [0] = 0
34709
34710   ;
34711   return 0;
34712 }
34713 _ACEOF
34714 rm -f conftest.$ac_objext
34715 if { (ac_try="$ac_compile"
34716 case "(($ac_try" in
34717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34718   *) ac_try_echo=$ac_try;;
34719 esac
34720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34721   (eval "$ac_compile") 2>conftest.er1
34722   ac_status=$?
34723   grep -v '^ *+' conftest.er1 >conftest.err
34724   rm -f conftest.er1
34725   cat conftest.err >&5
34726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727   (exit $ac_status); } && {
34728          test -z "$ac_c_werror_flag" ||
34729          test ! -s conftest.err
34730        } && test -s conftest.$ac_objext; then
34731   ac_hi=$ac_mid; break
34732 else
34733   echo "$as_me: failed program was:" >&5
34734 sed 's/^/| /' conftest.$ac_ext >&5
34735
34736         ac_lo=`expr $ac_mid + 1`
34737                         if test $ac_lo -le $ac_mid; then
34738                           ac_lo= ac_hi=
34739                           break
34740                         fi
34741                         ac_mid=`expr 2 '*' $ac_mid + 1`
34742 fi
34743
34744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34745   done
34746 else
34747   echo "$as_me: failed program was:" >&5
34748 sed 's/^/| /' conftest.$ac_ext >&5
34749
34750         cat >conftest.$ac_ext <<_ACEOF
34751 /* confdefs.h.  */
34752 _ACEOF
34753 cat confdefs.h >>conftest.$ac_ext
34754 cat >>conftest.$ac_ext <<_ACEOF
34755 /* end confdefs.h.  */
34756 $ac_includes_default
34757    typedef char ac__type_sizeof_;
34758 int
34759 main ()
34760 {
34761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34762 test_array [0] = 0
34763
34764   ;
34765   return 0;
34766 }
34767 _ACEOF
34768 rm -f conftest.$ac_objext
34769 if { (ac_try="$ac_compile"
34770 case "(($ac_try" in
34771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34772   *) ac_try_echo=$ac_try;;
34773 esac
34774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34775   (eval "$ac_compile") 2>conftest.er1
34776   ac_status=$?
34777   grep -v '^ *+' conftest.er1 >conftest.err
34778   rm -f conftest.er1
34779   cat conftest.err >&5
34780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781   (exit $ac_status); } && {
34782          test -z "$ac_c_werror_flag" ||
34783          test ! -s conftest.err
34784        } && test -s conftest.$ac_objext; then
34785   ac_hi=-1 ac_mid=-1
34786   while :; do
34787     cat >conftest.$ac_ext <<_ACEOF
34788 /* confdefs.h.  */
34789 _ACEOF
34790 cat confdefs.h >>conftest.$ac_ext
34791 cat >>conftest.$ac_ext <<_ACEOF
34792 /* end confdefs.h.  */
34793 $ac_includes_default
34794    typedef char ac__type_sizeof_;
34795 int
34796 main ()
34797 {
34798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34799 test_array [0] = 0
34800
34801   ;
34802   return 0;
34803 }
34804 _ACEOF
34805 rm -f conftest.$ac_objext
34806 if { (ac_try="$ac_compile"
34807 case "(($ac_try" in
34808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34809   *) ac_try_echo=$ac_try;;
34810 esac
34811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34812   (eval "$ac_compile") 2>conftest.er1
34813   ac_status=$?
34814   grep -v '^ *+' conftest.er1 >conftest.err
34815   rm -f conftest.er1
34816   cat conftest.err >&5
34817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818   (exit $ac_status); } && {
34819          test -z "$ac_c_werror_flag" ||
34820          test ! -s conftest.err
34821        } && test -s conftest.$ac_objext; then
34822   ac_lo=$ac_mid; break
34823 else
34824   echo "$as_me: failed program was:" >&5
34825 sed 's/^/| /' conftest.$ac_ext >&5
34826
34827         ac_hi=`expr '(' $ac_mid ')' - 1`
34828                         if test $ac_mid -le $ac_hi; then
34829                           ac_lo= ac_hi=
34830                           break
34831                         fi
34832                         ac_mid=`expr 2 '*' $ac_mid`
34833 fi
34834
34835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34836   done
34837 else
34838   echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34840
34841         ac_lo= ac_hi=
34842 fi
34843
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34845 fi
34846
34847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34848 # Binary search between lo and hi bounds.
34849 while test "x$ac_lo" != "x$ac_hi"; do
34850   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34851   cat >conftest.$ac_ext <<_ACEOF
34852 /* confdefs.h.  */
34853 _ACEOF
34854 cat confdefs.h >>conftest.$ac_ext
34855 cat >>conftest.$ac_ext <<_ACEOF
34856 /* end confdefs.h.  */
34857 $ac_includes_default
34858    typedef char ac__type_sizeof_;
34859 int
34860 main ()
34861 {
34862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34863 test_array [0] = 0
34864
34865   ;
34866   return 0;
34867 }
34868 _ACEOF
34869 rm -f conftest.$ac_objext
34870 if { (ac_try="$ac_compile"
34871 case "(($ac_try" in
34872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34873   *) ac_try_echo=$ac_try;;
34874 esac
34875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34876   (eval "$ac_compile") 2>conftest.er1
34877   ac_status=$?
34878   grep -v '^ *+' conftest.er1 >conftest.err
34879   rm -f conftest.er1
34880   cat conftest.err >&5
34881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882   (exit $ac_status); } && {
34883          test -z "$ac_c_werror_flag" ||
34884          test ! -s conftest.err
34885        } && test -s conftest.$ac_objext; then
34886   ac_hi=$ac_mid
34887 else
34888   echo "$as_me: failed program was:" >&5
34889 sed 's/^/| /' conftest.$ac_ext >&5
34890
34891         ac_lo=`expr '(' $ac_mid ')' + 1`
34892 fi
34893
34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34895 done
34896 case $ac_lo in
34897 ?*) ac_cv_sizeof_char=$ac_lo;;
34898 '') if test "$ac_cv_type_char" = yes; then
34899      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34900 See \`config.log' for more details." >&5
34901 echo "$as_me: error: cannot compute sizeof (char)
34902 See \`config.log' for more details." >&2;}
34903    { (exit 77); exit 77; }; }
34904    else
34905      ac_cv_sizeof_char=0
34906    fi ;;
34907 esac
34908 else
34909   cat >conftest.$ac_ext <<_ACEOF
34910 /* confdefs.h.  */
34911 _ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h.  */
34915 $ac_includes_default
34916    typedef char ac__type_sizeof_;
34917 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34918 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34919 #include <stdio.h>
34920 #include <stdlib.h>
34921 int
34922 main ()
34923 {
34924
34925   FILE *f = fopen ("conftest.val", "w");
34926   if (! f)
34927     return 1;
34928   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34929     {
34930       long int i = longval ();
34931       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34932         return 1;
34933       fprintf (f, "%ld\n", i);
34934     }
34935   else
34936     {
34937       unsigned long int i = ulongval ();
34938       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34939         return 1;
34940       fprintf (f, "%lu\n", i);
34941     }
34942   return ferror (f) || fclose (f) != 0;
34943
34944   ;
34945   return 0;
34946 }
34947 _ACEOF
34948 rm -f conftest$ac_exeext
34949 if { (ac_try="$ac_link"
34950 case "(($ac_try" in
34951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34952   *) ac_try_echo=$ac_try;;
34953 esac
34954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955   (eval "$ac_link") 2>&5
34956   ac_status=$?
34957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34959   { (case "(($ac_try" in
34960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34961   *) ac_try_echo=$ac_try;;
34962 esac
34963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34964   (eval "$ac_try") 2>&5
34965   ac_status=$?
34966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967   (exit $ac_status); }; }; then
34968   ac_cv_sizeof_char=`cat conftest.val`
34969 else
34970   echo "$as_me: program exited with status $ac_status" >&5
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974 ( exit $ac_status )
34975 if test "$ac_cv_type_char" = yes; then
34976      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34977 See \`config.log' for more details." >&5
34978 echo "$as_me: error: cannot compute sizeof (char)
34979 See \`config.log' for more details." >&2;}
34980    { (exit 77); exit 77; }; }
34981    else
34982      ac_cv_sizeof_char=0
34983    fi
34984 fi
34985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34986 fi
34987 rm -f conftest.val
34988 fi
34989 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34990 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34991
34992
34993
34994 cat >>confdefs.h <<_ACEOF
34995 #define SIZEOF_CHAR $ac_cv_sizeof_char
34996 _ACEOF
34997
34998
34999 { echo "$as_me:$LINENO: checking for short int" >&5
35000 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35001 if test "${ac_cv_type_short_int+set}" = set; then
35002   echo $ECHO_N "(cached) $ECHO_C" >&6
35003 else
35004   cat >conftest.$ac_ext <<_ACEOF
35005 /* confdefs.h.  */
35006 _ACEOF
35007 cat confdefs.h >>conftest.$ac_ext
35008 cat >>conftest.$ac_ext <<_ACEOF
35009 /* end confdefs.h.  */
35010 $ac_includes_default
35011 typedef short int ac__type_new_;
35012 int
35013 main ()
35014 {
35015 if ((ac__type_new_ *) 0)
35016   return 0;
35017 if (sizeof (ac__type_new_))
35018   return 0;
35019   ;
35020   return 0;
35021 }
35022 _ACEOF
35023 rm -f conftest.$ac_objext
35024 if { (ac_try="$ac_compile"
35025 case "(($ac_try" in
35026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027   *) ac_try_echo=$ac_try;;
35028 esac
35029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35030   (eval "$ac_compile") 2>conftest.er1
35031   ac_status=$?
35032   grep -v '^ *+' conftest.er1 >conftest.err
35033   rm -f conftest.er1
35034   cat conftest.err >&5
35035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036   (exit $ac_status); } && {
35037          test -z "$ac_c_werror_flag" ||
35038          test ! -s conftest.err
35039        } && test -s conftest.$ac_objext; then
35040   ac_cv_type_short_int=yes
35041 else
35042   echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35044
35045         ac_cv_type_short_int=no
35046 fi
35047
35048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35049 fi
35050 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35051 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35052
35053 # The cast to long int works around a bug in the HP C Compiler
35054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35056 # This bug is HP SR number 8606223364.
35057 { echo "$as_me:$LINENO: checking size of short int" >&5
35058 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35059 if test "${ac_cv_sizeof_short_int+set}" = set; then
35060   echo $ECHO_N "(cached) $ECHO_C" >&6
35061 else
35062   if test "$cross_compiling" = yes; then
35063   # Depending upon the size, compute the lo and hi bounds.
35064 cat >conftest.$ac_ext <<_ACEOF
35065 /* confdefs.h.  */
35066 _ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h.  */
35070 $ac_includes_default
35071    typedef short int ac__type_sizeof_;
35072 int
35073 main ()
35074 {
35075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35076 test_array [0] = 0
35077
35078   ;
35079   return 0;
35080 }
35081 _ACEOF
35082 rm -f conftest.$ac_objext
35083 if { (ac_try="$ac_compile"
35084 case "(($ac_try" in
35085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35086   *) ac_try_echo=$ac_try;;
35087 esac
35088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35089   (eval "$ac_compile") 2>conftest.er1
35090   ac_status=$?
35091   grep -v '^ *+' conftest.er1 >conftest.err
35092   rm -f conftest.er1
35093   cat conftest.err >&5
35094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095   (exit $ac_status); } && {
35096          test -z "$ac_c_werror_flag" ||
35097          test ! -s conftest.err
35098        } && test -s conftest.$ac_objext; then
35099   ac_lo=0 ac_mid=0
35100   while :; do
35101     cat >conftest.$ac_ext <<_ACEOF
35102 /* confdefs.h.  */
35103 _ACEOF
35104 cat confdefs.h >>conftest.$ac_ext
35105 cat >>conftest.$ac_ext <<_ACEOF
35106 /* end confdefs.h.  */
35107 $ac_includes_default
35108    typedef short int ac__type_sizeof_;
35109 int
35110 main ()
35111 {
35112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35113 test_array [0] = 0
35114
35115   ;
35116   return 0;
35117 }
35118 _ACEOF
35119 rm -f conftest.$ac_objext
35120 if { (ac_try="$ac_compile"
35121 case "(($ac_try" in
35122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35123   *) ac_try_echo=$ac_try;;
35124 esac
35125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35126   (eval "$ac_compile") 2>conftest.er1
35127   ac_status=$?
35128   grep -v '^ *+' conftest.er1 >conftest.err
35129   rm -f conftest.er1
35130   cat conftest.err >&5
35131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132   (exit $ac_status); } && {
35133          test -z "$ac_c_werror_flag" ||
35134          test ! -s conftest.err
35135        } && test -s conftest.$ac_objext; then
35136   ac_hi=$ac_mid; break
35137 else
35138   echo "$as_me: failed program was:" >&5
35139 sed 's/^/| /' conftest.$ac_ext >&5
35140
35141         ac_lo=`expr $ac_mid + 1`
35142                         if test $ac_lo -le $ac_mid; then
35143                           ac_lo= ac_hi=
35144                           break
35145                         fi
35146                         ac_mid=`expr 2 '*' $ac_mid + 1`
35147 fi
35148
35149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35150   done
35151 else
35152   echo "$as_me: failed program was:" >&5
35153 sed 's/^/| /' conftest.$ac_ext >&5
35154
35155         cat >conftest.$ac_ext <<_ACEOF
35156 /* confdefs.h.  */
35157 _ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h.  */
35161 $ac_includes_default
35162    typedef short int ac__type_sizeof_;
35163 int
35164 main ()
35165 {
35166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35167 test_array [0] = 0
35168
35169   ;
35170   return 0;
35171 }
35172 _ACEOF
35173 rm -f conftest.$ac_objext
35174 if { (ac_try="$ac_compile"
35175 case "(($ac_try" in
35176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35177   *) ac_try_echo=$ac_try;;
35178 esac
35179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35180   (eval "$ac_compile") 2>conftest.er1
35181   ac_status=$?
35182   grep -v '^ *+' conftest.er1 >conftest.err
35183   rm -f conftest.er1
35184   cat conftest.err >&5
35185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186   (exit $ac_status); } && {
35187          test -z "$ac_c_werror_flag" ||
35188          test ! -s conftest.err
35189        } && test -s conftest.$ac_objext; then
35190   ac_hi=-1 ac_mid=-1
35191   while :; do
35192     cat >conftest.$ac_ext <<_ACEOF
35193 /* confdefs.h.  */
35194 _ACEOF
35195 cat confdefs.h >>conftest.$ac_ext
35196 cat >>conftest.$ac_ext <<_ACEOF
35197 /* end confdefs.h.  */
35198 $ac_includes_default
35199    typedef short int ac__type_sizeof_;
35200 int
35201 main ()
35202 {
35203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35204 test_array [0] = 0
35205
35206   ;
35207   return 0;
35208 }
35209 _ACEOF
35210 rm -f conftest.$ac_objext
35211 if { (ac_try="$ac_compile"
35212 case "(($ac_try" in
35213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35214   *) ac_try_echo=$ac_try;;
35215 esac
35216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35217   (eval "$ac_compile") 2>conftest.er1
35218   ac_status=$?
35219   grep -v '^ *+' conftest.er1 >conftest.err
35220   rm -f conftest.er1
35221   cat conftest.err >&5
35222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223   (exit $ac_status); } && {
35224          test -z "$ac_c_werror_flag" ||
35225          test ! -s conftest.err
35226        } && test -s conftest.$ac_objext; then
35227   ac_lo=$ac_mid; break
35228 else
35229   echo "$as_me: failed program was:" >&5
35230 sed 's/^/| /' conftest.$ac_ext >&5
35231
35232         ac_hi=`expr '(' $ac_mid ')' - 1`
35233                         if test $ac_mid -le $ac_hi; then
35234                           ac_lo= ac_hi=
35235                           break
35236                         fi
35237                         ac_mid=`expr 2 '*' $ac_mid`
35238 fi
35239
35240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35241   done
35242 else
35243   echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35245
35246         ac_lo= ac_hi=
35247 fi
35248
35249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35250 fi
35251
35252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35253 # Binary search between lo and hi bounds.
35254 while test "x$ac_lo" != "x$ac_hi"; do
35255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35256   cat >conftest.$ac_ext <<_ACEOF
35257 /* confdefs.h.  */
35258 _ACEOF
35259 cat confdefs.h >>conftest.$ac_ext
35260 cat >>conftest.$ac_ext <<_ACEOF
35261 /* end confdefs.h.  */
35262 $ac_includes_default
35263    typedef short int ac__type_sizeof_;
35264 int
35265 main ()
35266 {
35267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35268 test_array [0] = 0
35269
35270   ;
35271   return 0;
35272 }
35273 _ACEOF
35274 rm -f conftest.$ac_objext
35275 if { (ac_try="$ac_compile"
35276 case "(($ac_try" in
35277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35278   *) ac_try_echo=$ac_try;;
35279 esac
35280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35281   (eval "$ac_compile") 2>conftest.er1
35282   ac_status=$?
35283   grep -v '^ *+' conftest.er1 >conftest.err
35284   rm -f conftest.er1
35285   cat conftest.err >&5
35286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287   (exit $ac_status); } && {
35288          test -z "$ac_c_werror_flag" ||
35289          test ! -s conftest.err
35290        } && test -s conftest.$ac_objext; then
35291   ac_hi=$ac_mid
35292 else
35293   echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35295
35296         ac_lo=`expr '(' $ac_mid ')' + 1`
35297 fi
35298
35299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35300 done
35301 case $ac_lo in
35302 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35303 '') if test "$ac_cv_type_short_int" = yes; then
35304      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35305 See \`config.log' for more details." >&5
35306 echo "$as_me: error: cannot compute sizeof (short int)
35307 See \`config.log' for more details." >&2;}
35308    { (exit 77); exit 77; }; }
35309    else
35310      ac_cv_sizeof_short_int=0
35311    fi ;;
35312 esac
35313 else
35314   cat >conftest.$ac_ext <<_ACEOF
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 $ac_includes_default
35321    typedef short int ac__type_sizeof_;
35322 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35323 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35324 #include <stdio.h>
35325 #include <stdlib.h>
35326 int
35327 main ()
35328 {
35329
35330   FILE *f = fopen ("conftest.val", "w");
35331   if (! f)
35332     return 1;
35333   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35334     {
35335       long int i = longval ();
35336       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35337         return 1;
35338       fprintf (f, "%ld\n", i);
35339     }
35340   else
35341     {
35342       unsigned long int i = ulongval ();
35343       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35344         return 1;
35345       fprintf (f, "%lu\n", i);
35346     }
35347   return ferror (f) || fclose (f) != 0;
35348
35349   ;
35350   return 0;
35351 }
35352 _ACEOF
35353 rm -f conftest$ac_exeext
35354 if { (ac_try="$ac_link"
35355 case "(($ac_try" in
35356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35357   *) ac_try_echo=$ac_try;;
35358 esac
35359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35360   (eval "$ac_link") 2>&5
35361   ac_status=$?
35362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35364   { (case "(($ac_try" in
35365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35366   *) ac_try_echo=$ac_try;;
35367 esac
35368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35369   (eval "$ac_try") 2>&5
35370   ac_status=$?
35371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372   (exit $ac_status); }; }; then
35373   ac_cv_sizeof_short_int=`cat conftest.val`
35374 else
35375   echo "$as_me: program exited with status $ac_status" >&5
35376 echo "$as_me: failed program was:" >&5
35377 sed 's/^/| /' conftest.$ac_ext >&5
35378
35379 ( exit $ac_status )
35380 if test "$ac_cv_type_short_int" = yes; then
35381      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35382 See \`config.log' for more details." >&5
35383 echo "$as_me: error: cannot compute sizeof (short int)
35384 See \`config.log' for more details." >&2;}
35385    { (exit 77); exit 77; }; }
35386    else
35387      ac_cv_sizeof_short_int=0
35388    fi
35389 fi
35390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35391 fi
35392 rm -f conftest.val
35393 fi
35394 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35395 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35396
35397
35398
35399 cat >>confdefs.h <<_ACEOF
35400 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35401 _ACEOF
35402
35403
35404 { echo "$as_me:$LINENO: checking for int" >&5
35405 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35406 if test "${ac_cv_type_int+set}" = set; then
35407   echo $ECHO_N "(cached) $ECHO_C" >&6
35408 else
35409   cat >conftest.$ac_ext <<_ACEOF
35410 /* confdefs.h.  */
35411 _ACEOF
35412 cat confdefs.h >>conftest.$ac_ext
35413 cat >>conftest.$ac_ext <<_ACEOF
35414 /* end confdefs.h.  */
35415 $ac_includes_default
35416 typedef int ac__type_new_;
35417 int
35418 main ()
35419 {
35420 if ((ac__type_new_ *) 0)
35421   return 0;
35422 if (sizeof (ac__type_new_))
35423   return 0;
35424   ;
35425   return 0;
35426 }
35427 _ACEOF
35428 rm -f conftest.$ac_objext
35429 if { (ac_try="$ac_compile"
35430 case "(($ac_try" in
35431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35432   *) ac_try_echo=$ac_try;;
35433 esac
35434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35435   (eval "$ac_compile") 2>conftest.er1
35436   ac_status=$?
35437   grep -v '^ *+' conftest.er1 >conftest.err
35438   rm -f conftest.er1
35439   cat conftest.err >&5
35440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441   (exit $ac_status); } && {
35442          test -z "$ac_c_werror_flag" ||
35443          test ! -s conftest.err
35444        } && test -s conftest.$ac_objext; then
35445   ac_cv_type_int=yes
35446 else
35447   echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35449
35450         ac_cv_type_int=no
35451 fi
35452
35453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35454 fi
35455 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35456 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35457
35458 # The cast to long int works around a bug in the HP C Compiler
35459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35461 # This bug is HP SR number 8606223364.
35462 { echo "$as_me:$LINENO: checking size of int" >&5
35463 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35464 if test "${ac_cv_sizeof_int+set}" = set; then
35465   echo $ECHO_N "(cached) $ECHO_C" >&6
35466 else
35467   if test "$cross_compiling" = yes; then
35468   # Depending upon the size, compute the lo and hi bounds.
35469 cat >conftest.$ac_ext <<_ACEOF
35470 /* confdefs.h.  */
35471 _ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h.  */
35475 $ac_includes_default
35476    typedef int ac__type_sizeof_;
35477 int
35478 main ()
35479 {
35480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35481 test_array [0] = 0
35482
35483   ;
35484   return 0;
35485 }
35486 _ACEOF
35487 rm -f conftest.$ac_objext
35488 if { (ac_try="$ac_compile"
35489 case "(($ac_try" in
35490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35491   *) ac_try_echo=$ac_try;;
35492 esac
35493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35494   (eval "$ac_compile") 2>conftest.er1
35495   ac_status=$?
35496   grep -v '^ *+' conftest.er1 >conftest.err
35497   rm -f conftest.er1
35498   cat conftest.err >&5
35499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35500   (exit $ac_status); } && {
35501          test -z "$ac_c_werror_flag" ||
35502          test ! -s conftest.err
35503        } && test -s conftest.$ac_objext; then
35504   ac_lo=0 ac_mid=0
35505   while :; do
35506     cat >conftest.$ac_ext <<_ACEOF
35507 /* confdefs.h.  */
35508 _ACEOF
35509 cat confdefs.h >>conftest.$ac_ext
35510 cat >>conftest.$ac_ext <<_ACEOF
35511 /* end confdefs.h.  */
35512 $ac_includes_default
35513    typedef int ac__type_sizeof_;
35514 int
35515 main ()
35516 {
35517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35518 test_array [0] = 0
35519
35520   ;
35521   return 0;
35522 }
35523 _ACEOF
35524 rm -f conftest.$ac_objext
35525 if { (ac_try="$ac_compile"
35526 case "(($ac_try" in
35527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35528   *) ac_try_echo=$ac_try;;
35529 esac
35530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35531   (eval "$ac_compile") 2>conftest.er1
35532   ac_status=$?
35533   grep -v '^ *+' conftest.er1 >conftest.err
35534   rm -f conftest.er1
35535   cat conftest.err >&5
35536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537   (exit $ac_status); } && {
35538          test -z "$ac_c_werror_flag" ||
35539          test ! -s conftest.err
35540        } && test -s conftest.$ac_objext; then
35541   ac_hi=$ac_mid; break
35542 else
35543   echo "$as_me: failed program was:" >&5
35544 sed 's/^/| /' conftest.$ac_ext >&5
35545
35546         ac_lo=`expr $ac_mid + 1`
35547                         if test $ac_lo -le $ac_mid; then
35548                           ac_lo= ac_hi=
35549                           break
35550                         fi
35551                         ac_mid=`expr 2 '*' $ac_mid + 1`
35552 fi
35553
35554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35555   done
35556 else
35557   echo "$as_me: failed program was:" >&5
35558 sed 's/^/| /' conftest.$ac_ext >&5
35559
35560         cat >conftest.$ac_ext <<_ACEOF
35561 /* confdefs.h.  */
35562 _ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h.  */
35566 $ac_includes_default
35567    typedef int ac__type_sizeof_;
35568 int
35569 main ()
35570 {
35571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35572 test_array [0] = 0
35573
35574   ;
35575   return 0;
35576 }
35577 _ACEOF
35578 rm -f conftest.$ac_objext
35579 if { (ac_try="$ac_compile"
35580 case "(($ac_try" in
35581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35582   *) ac_try_echo=$ac_try;;
35583 esac
35584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35585   (eval "$ac_compile") 2>conftest.er1
35586   ac_status=$?
35587   grep -v '^ *+' conftest.er1 >conftest.err
35588   rm -f conftest.er1
35589   cat conftest.err >&5
35590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591   (exit $ac_status); } && {
35592          test -z "$ac_c_werror_flag" ||
35593          test ! -s conftest.err
35594        } && test -s conftest.$ac_objext; then
35595   ac_hi=-1 ac_mid=-1
35596   while :; do
35597     cat >conftest.$ac_ext <<_ACEOF
35598 /* confdefs.h.  */
35599 _ACEOF
35600 cat confdefs.h >>conftest.$ac_ext
35601 cat >>conftest.$ac_ext <<_ACEOF
35602 /* end confdefs.h.  */
35603 $ac_includes_default
35604    typedef int ac__type_sizeof_;
35605 int
35606 main ()
35607 {
35608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35609 test_array [0] = 0
35610
35611   ;
35612   return 0;
35613 }
35614 _ACEOF
35615 rm -f conftest.$ac_objext
35616 if { (ac_try="$ac_compile"
35617 case "(($ac_try" in
35618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35619   *) ac_try_echo=$ac_try;;
35620 esac
35621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35622   (eval "$ac_compile") 2>conftest.er1
35623   ac_status=$?
35624   grep -v '^ *+' conftest.er1 >conftest.err
35625   rm -f conftest.er1
35626   cat conftest.err >&5
35627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628   (exit $ac_status); } && {
35629          test -z "$ac_c_werror_flag" ||
35630          test ! -s conftest.err
35631        } && test -s conftest.$ac_objext; then
35632   ac_lo=$ac_mid; break
35633 else
35634   echo "$as_me: failed program was:" >&5
35635 sed 's/^/| /' conftest.$ac_ext >&5
35636
35637         ac_hi=`expr '(' $ac_mid ')' - 1`
35638                         if test $ac_mid -le $ac_hi; then
35639                           ac_lo= ac_hi=
35640                           break
35641                         fi
35642                         ac_mid=`expr 2 '*' $ac_mid`
35643 fi
35644
35645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35646   done
35647 else
35648   echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.$ac_ext >&5
35650
35651         ac_lo= ac_hi=
35652 fi
35653
35654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35655 fi
35656
35657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 # Binary search between lo and hi bounds.
35659 while test "x$ac_lo" != "x$ac_hi"; do
35660   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35661   cat >conftest.$ac_ext <<_ACEOF
35662 /* confdefs.h.  */
35663 _ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h.  */
35667 $ac_includes_default
35668    typedef int ac__type_sizeof_;
35669 int
35670 main ()
35671 {
35672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35673 test_array [0] = 0
35674
35675   ;
35676   return 0;
35677 }
35678 _ACEOF
35679 rm -f conftest.$ac_objext
35680 if { (ac_try="$ac_compile"
35681 case "(($ac_try" in
35682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35683   *) ac_try_echo=$ac_try;;
35684 esac
35685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35686   (eval "$ac_compile") 2>conftest.er1
35687   ac_status=$?
35688   grep -v '^ *+' conftest.er1 >conftest.err
35689   rm -f conftest.er1
35690   cat conftest.err >&5
35691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692   (exit $ac_status); } && {
35693          test -z "$ac_c_werror_flag" ||
35694          test ! -s conftest.err
35695        } && test -s conftest.$ac_objext; then
35696   ac_hi=$ac_mid
35697 else
35698   echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35700
35701         ac_lo=`expr '(' $ac_mid ')' + 1`
35702 fi
35703
35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35705 done
35706 case $ac_lo in
35707 ?*) ac_cv_sizeof_int=$ac_lo;;
35708 '') if test "$ac_cv_type_int" = yes; then
35709      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35710 See \`config.log' for more details." >&5
35711 echo "$as_me: error: cannot compute sizeof (int)
35712 See \`config.log' for more details." >&2;}
35713    { (exit 77); exit 77; }; }
35714    else
35715      ac_cv_sizeof_int=0
35716    fi ;;
35717 esac
35718 else
35719   cat >conftest.$ac_ext <<_ACEOF
35720 /* confdefs.h.  */
35721 _ACEOF
35722 cat confdefs.h >>conftest.$ac_ext
35723 cat >>conftest.$ac_ext <<_ACEOF
35724 /* end confdefs.h.  */
35725 $ac_includes_default
35726    typedef int ac__type_sizeof_;
35727 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35728 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35729 #include <stdio.h>
35730 #include <stdlib.h>
35731 int
35732 main ()
35733 {
35734
35735   FILE *f = fopen ("conftest.val", "w");
35736   if (! f)
35737     return 1;
35738   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35739     {
35740       long int i = longval ();
35741       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35742         return 1;
35743       fprintf (f, "%ld\n", i);
35744     }
35745   else
35746     {
35747       unsigned long int i = ulongval ();
35748       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35749         return 1;
35750       fprintf (f, "%lu\n", i);
35751     }
35752   return ferror (f) || fclose (f) != 0;
35753
35754   ;
35755   return 0;
35756 }
35757 _ACEOF
35758 rm -f conftest$ac_exeext
35759 if { (ac_try="$ac_link"
35760 case "(($ac_try" in
35761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35762   *) ac_try_echo=$ac_try;;
35763 esac
35764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35765   (eval "$ac_link") 2>&5
35766   ac_status=$?
35767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35769   { (case "(($ac_try" in
35770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35771   *) ac_try_echo=$ac_try;;
35772 esac
35773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35774   (eval "$ac_try") 2>&5
35775   ac_status=$?
35776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777   (exit $ac_status); }; }; then
35778   ac_cv_sizeof_int=`cat conftest.val`
35779 else
35780   echo "$as_me: program exited with status $ac_status" >&5
35781 echo "$as_me: failed program was:" >&5
35782 sed 's/^/| /' conftest.$ac_ext >&5
35783
35784 ( exit $ac_status )
35785 if test "$ac_cv_type_int" = yes; then
35786      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35787 See \`config.log' for more details." >&5
35788 echo "$as_me: error: cannot compute sizeof (int)
35789 See \`config.log' for more details." >&2;}
35790    { (exit 77); exit 77; }; }
35791    else
35792      ac_cv_sizeof_int=0
35793    fi
35794 fi
35795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35796 fi
35797 rm -f conftest.val
35798 fi
35799 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35800 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35801
35802
35803
35804 cat >>confdefs.h <<_ACEOF
35805 #define SIZEOF_INT $ac_cv_sizeof_int
35806 _ACEOF
35807
35808
35809 { echo "$as_me:$LINENO: checking for long int" >&5
35810 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35811 if test "${ac_cv_type_long_int+set}" = set; then
35812   echo $ECHO_N "(cached) $ECHO_C" >&6
35813 else
35814   cat >conftest.$ac_ext <<_ACEOF
35815 /* confdefs.h.  */
35816 _ACEOF
35817 cat confdefs.h >>conftest.$ac_ext
35818 cat >>conftest.$ac_ext <<_ACEOF
35819 /* end confdefs.h.  */
35820 $ac_includes_default
35821 typedef long int ac__type_new_;
35822 int
35823 main ()
35824 {
35825 if ((ac__type_new_ *) 0)
35826   return 0;
35827 if (sizeof (ac__type_new_))
35828   return 0;
35829   ;
35830   return 0;
35831 }
35832 _ACEOF
35833 rm -f conftest.$ac_objext
35834 if { (ac_try="$ac_compile"
35835 case "(($ac_try" in
35836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35837   *) ac_try_echo=$ac_try;;
35838 esac
35839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35840   (eval "$ac_compile") 2>conftest.er1
35841   ac_status=$?
35842   grep -v '^ *+' conftest.er1 >conftest.err
35843   rm -f conftest.er1
35844   cat conftest.err >&5
35845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846   (exit $ac_status); } && {
35847          test -z "$ac_c_werror_flag" ||
35848          test ! -s conftest.err
35849        } && test -s conftest.$ac_objext; then
35850   ac_cv_type_long_int=yes
35851 else
35852   echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35854
35855         ac_cv_type_long_int=no
35856 fi
35857
35858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35859 fi
35860 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35861 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35862
35863 # The cast to long int works around a bug in the HP C Compiler
35864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35866 # This bug is HP SR number 8606223364.
35867 { echo "$as_me:$LINENO: checking size of long int" >&5
35868 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35869 if test "${ac_cv_sizeof_long_int+set}" = set; then
35870   echo $ECHO_N "(cached) $ECHO_C" >&6
35871 else
35872   if test "$cross_compiling" = yes; then
35873   # Depending upon the size, compute the lo and hi bounds.
35874 cat >conftest.$ac_ext <<_ACEOF
35875 /* confdefs.h.  */
35876 _ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h.  */
35880 $ac_includes_default
35881    typedef long int ac__type_sizeof_;
35882 int
35883 main ()
35884 {
35885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35886 test_array [0] = 0
35887
35888   ;
35889   return 0;
35890 }
35891 _ACEOF
35892 rm -f conftest.$ac_objext
35893 if { (ac_try="$ac_compile"
35894 case "(($ac_try" in
35895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896   *) ac_try_echo=$ac_try;;
35897 esac
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899   (eval "$ac_compile") 2>conftest.er1
35900   ac_status=$?
35901   grep -v '^ *+' conftest.er1 >conftest.err
35902   rm -f conftest.er1
35903   cat conftest.err >&5
35904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905   (exit $ac_status); } && {
35906          test -z "$ac_c_werror_flag" ||
35907          test ! -s conftest.err
35908        } && test -s conftest.$ac_objext; then
35909   ac_lo=0 ac_mid=0
35910   while :; do
35911     cat >conftest.$ac_ext <<_ACEOF
35912 /* confdefs.h.  */
35913 _ACEOF
35914 cat confdefs.h >>conftest.$ac_ext
35915 cat >>conftest.$ac_ext <<_ACEOF
35916 /* end confdefs.h.  */
35917 $ac_includes_default
35918    typedef long int ac__type_sizeof_;
35919 int
35920 main ()
35921 {
35922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35923 test_array [0] = 0
35924
35925   ;
35926   return 0;
35927 }
35928 _ACEOF
35929 rm -f conftest.$ac_objext
35930 if { (ac_try="$ac_compile"
35931 case "(($ac_try" in
35932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35933   *) ac_try_echo=$ac_try;;
35934 esac
35935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35936   (eval "$ac_compile") 2>conftest.er1
35937   ac_status=$?
35938   grep -v '^ *+' conftest.er1 >conftest.err
35939   rm -f conftest.er1
35940   cat conftest.err >&5
35941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); } && {
35943          test -z "$ac_c_werror_flag" ||
35944          test ! -s conftest.err
35945        } && test -s conftest.$ac_objext; then
35946   ac_hi=$ac_mid; break
35947 else
35948   echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35950
35951         ac_lo=`expr $ac_mid + 1`
35952                         if test $ac_lo -le $ac_mid; then
35953                           ac_lo= ac_hi=
35954                           break
35955                         fi
35956                         ac_mid=`expr 2 '*' $ac_mid + 1`
35957 fi
35958
35959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35960   done
35961 else
35962   echo "$as_me: failed program was:" >&5
35963 sed 's/^/| /' conftest.$ac_ext >&5
35964
35965         cat >conftest.$ac_ext <<_ACEOF
35966 /* confdefs.h.  */
35967 _ACEOF
35968 cat confdefs.h >>conftest.$ac_ext
35969 cat >>conftest.$ac_ext <<_ACEOF
35970 /* end confdefs.h.  */
35971 $ac_includes_default
35972    typedef long int ac__type_sizeof_;
35973 int
35974 main ()
35975 {
35976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35977 test_array [0] = 0
35978
35979   ;
35980   return 0;
35981 }
35982 _ACEOF
35983 rm -f conftest.$ac_objext
35984 if { (ac_try="$ac_compile"
35985 case "(($ac_try" in
35986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35987   *) ac_try_echo=$ac_try;;
35988 esac
35989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35990   (eval "$ac_compile") 2>conftest.er1
35991   ac_status=$?
35992   grep -v '^ *+' conftest.er1 >conftest.err
35993   rm -f conftest.er1
35994   cat conftest.err >&5
35995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996   (exit $ac_status); } && {
35997          test -z "$ac_c_werror_flag" ||
35998          test ! -s conftest.err
35999        } && test -s conftest.$ac_objext; then
36000   ac_hi=-1 ac_mid=-1
36001   while :; do
36002     cat >conftest.$ac_ext <<_ACEOF
36003 /* confdefs.h.  */
36004 _ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h.  */
36008 $ac_includes_default
36009    typedef long int ac__type_sizeof_;
36010 int
36011 main ()
36012 {
36013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36014 test_array [0] = 0
36015
36016   ;
36017   return 0;
36018 }
36019 _ACEOF
36020 rm -f conftest.$ac_objext
36021 if { (ac_try="$ac_compile"
36022 case "(($ac_try" in
36023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36024   *) ac_try_echo=$ac_try;;
36025 esac
36026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36027   (eval "$ac_compile") 2>conftest.er1
36028   ac_status=$?
36029   grep -v '^ *+' conftest.er1 >conftest.err
36030   rm -f conftest.er1
36031   cat conftest.err >&5
36032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36033   (exit $ac_status); } && {
36034          test -z "$ac_c_werror_flag" ||
36035          test ! -s conftest.err
36036        } && test -s conftest.$ac_objext; then
36037   ac_lo=$ac_mid; break
36038 else
36039   echo "$as_me: failed program was:" >&5
36040 sed 's/^/| /' conftest.$ac_ext >&5
36041
36042         ac_hi=`expr '(' $ac_mid ')' - 1`
36043                         if test $ac_mid -le $ac_hi; then
36044                           ac_lo= ac_hi=
36045                           break
36046                         fi
36047                         ac_mid=`expr 2 '*' $ac_mid`
36048 fi
36049
36050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36051   done
36052 else
36053   echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36055
36056         ac_lo= ac_hi=
36057 fi
36058
36059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36060 fi
36061
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36063 # Binary search between lo and hi bounds.
36064 while test "x$ac_lo" != "x$ac_hi"; do
36065   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36066   cat >conftest.$ac_ext <<_ACEOF
36067 /* confdefs.h.  */
36068 _ACEOF
36069 cat confdefs.h >>conftest.$ac_ext
36070 cat >>conftest.$ac_ext <<_ACEOF
36071 /* end confdefs.h.  */
36072 $ac_includes_default
36073    typedef long int ac__type_sizeof_;
36074 int
36075 main ()
36076 {
36077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36078 test_array [0] = 0
36079
36080   ;
36081   return 0;
36082 }
36083 _ACEOF
36084 rm -f conftest.$ac_objext
36085 if { (ac_try="$ac_compile"
36086 case "(($ac_try" in
36087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36088   *) ac_try_echo=$ac_try;;
36089 esac
36090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36091   (eval "$ac_compile") 2>conftest.er1
36092   ac_status=$?
36093   grep -v '^ *+' conftest.er1 >conftest.err
36094   rm -f conftest.er1
36095   cat conftest.err >&5
36096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097   (exit $ac_status); } && {
36098          test -z "$ac_c_werror_flag" ||
36099          test ! -s conftest.err
36100        } && test -s conftest.$ac_objext; then
36101   ac_hi=$ac_mid
36102 else
36103   echo "$as_me: failed program was:" >&5
36104 sed 's/^/| /' conftest.$ac_ext >&5
36105
36106         ac_lo=`expr '(' $ac_mid ')' + 1`
36107 fi
36108
36109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36110 done
36111 case $ac_lo in
36112 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36113 '') if test "$ac_cv_type_long_int" = yes; then
36114      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36115 See \`config.log' for more details." >&5
36116 echo "$as_me: error: cannot compute sizeof (long int)
36117 See \`config.log' for more details." >&2;}
36118    { (exit 77); exit 77; }; }
36119    else
36120      ac_cv_sizeof_long_int=0
36121    fi ;;
36122 esac
36123 else
36124   cat >conftest.$ac_ext <<_ACEOF
36125 /* confdefs.h.  */
36126 _ACEOF
36127 cat confdefs.h >>conftest.$ac_ext
36128 cat >>conftest.$ac_ext <<_ACEOF
36129 /* end confdefs.h.  */
36130 $ac_includes_default
36131    typedef long int ac__type_sizeof_;
36132 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36133 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36134 #include <stdio.h>
36135 #include <stdlib.h>
36136 int
36137 main ()
36138 {
36139
36140   FILE *f = fopen ("conftest.val", "w");
36141   if (! f)
36142     return 1;
36143   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36144     {
36145       long int i = longval ();
36146       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36147         return 1;
36148       fprintf (f, "%ld\n", i);
36149     }
36150   else
36151     {
36152       unsigned long int i = ulongval ();
36153       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36154         return 1;
36155       fprintf (f, "%lu\n", i);
36156     }
36157   return ferror (f) || fclose (f) != 0;
36158
36159   ;
36160   return 0;
36161 }
36162 _ACEOF
36163 rm -f conftest$ac_exeext
36164 if { (ac_try="$ac_link"
36165 case "(($ac_try" in
36166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36167   *) ac_try_echo=$ac_try;;
36168 esac
36169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36170   (eval "$ac_link") 2>&5
36171   ac_status=$?
36172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36174   { (case "(($ac_try" in
36175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36176   *) ac_try_echo=$ac_try;;
36177 esac
36178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36179   (eval "$ac_try") 2>&5
36180   ac_status=$?
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); }; }; then
36183   ac_cv_sizeof_long_int=`cat conftest.val`
36184 else
36185   echo "$as_me: program exited with status $ac_status" >&5
36186 echo "$as_me: failed program was:" >&5
36187 sed 's/^/| /' conftest.$ac_ext >&5
36188
36189 ( exit $ac_status )
36190 if test "$ac_cv_type_long_int" = yes; then
36191      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36192 See \`config.log' for more details." >&5
36193 echo "$as_me: error: cannot compute sizeof (long int)
36194 See \`config.log' for more details." >&2;}
36195    { (exit 77); exit 77; }; }
36196    else
36197      ac_cv_sizeof_long_int=0
36198    fi
36199 fi
36200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36201 fi
36202 rm -f conftest.val
36203 fi
36204 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36205 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36206
36207
36208
36209 cat >>confdefs.h <<_ACEOF
36210 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36211 _ACEOF
36212
36213
36214 { echo "$as_me:$LINENO: checking for long long int" >&5
36215 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36216 if test "${ac_cv_type_long_long_int+set}" = set; then
36217   echo $ECHO_N "(cached) $ECHO_C" >&6
36218 else
36219   cat >conftest.$ac_ext <<_ACEOF
36220 /* confdefs.h.  */
36221 _ACEOF
36222 cat confdefs.h >>conftest.$ac_ext
36223 cat >>conftest.$ac_ext <<_ACEOF
36224 /* end confdefs.h.  */
36225 $ac_includes_default
36226 typedef long long int ac__type_new_;
36227 int
36228 main ()
36229 {
36230 if ((ac__type_new_ *) 0)
36231   return 0;
36232 if (sizeof (ac__type_new_))
36233   return 0;
36234   ;
36235   return 0;
36236 }
36237 _ACEOF
36238 rm -f conftest.$ac_objext
36239 if { (ac_try="$ac_compile"
36240 case "(($ac_try" in
36241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242   *) ac_try_echo=$ac_try;;
36243 esac
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245   (eval "$ac_compile") 2>conftest.er1
36246   ac_status=$?
36247   grep -v '^ *+' conftest.er1 >conftest.err
36248   rm -f conftest.er1
36249   cat conftest.err >&5
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); } && {
36252          test -z "$ac_c_werror_flag" ||
36253          test ! -s conftest.err
36254        } && test -s conftest.$ac_objext; then
36255   ac_cv_type_long_long_int=yes
36256 else
36257   echo "$as_me: failed program was:" >&5
36258 sed 's/^/| /' conftest.$ac_ext >&5
36259
36260         ac_cv_type_long_long_int=no
36261 fi
36262
36263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36264 fi
36265 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36266 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36267
36268 # The cast to long int works around a bug in the HP C Compiler
36269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36271 # This bug is HP SR number 8606223364.
36272 { echo "$as_me:$LINENO: checking size of long long int" >&5
36273 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36274 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36275   echo $ECHO_N "(cached) $ECHO_C" >&6
36276 else
36277   if test "$cross_compiling" = yes; then
36278   # Depending upon the size, compute the lo and hi bounds.
36279 cat >conftest.$ac_ext <<_ACEOF
36280 /* confdefs.h.  */
36281 _ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h.  */
36285 $ac_includes_default
36286    typedef long long int ac__type_sizeof_;
36287 int
36288 main ()
36289 {
36290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36291 test_array [0] = 0
36292
36293   ;
36294   return 0;
36295 }
36296 _ACEOF
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301   *) ac_try_echo=$ac_try;;
36302 esac
36303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304   (eval "$ac_compile") 2>conftest.er1
36305   ac_status=$?
36306   grep -v '^ *+' conftest.er1 >conftest.err
36307   rm -f conftest.er1
36308   cat conftest.err >&5
36309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310   (exit $ac_status); } && {
36311          test -z "$ac_c_werror_flag" ||
36312          test ! -s conftest.err
36313        } && test -s conftest.$ac_objext; then
36314   ac_lo=0 ac_mid=0
36315   while :; do
36316     cat >conftest.$ac_ext <<_ACEOF
36317 /* confdefs.h.  */
36318 _ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h.  */
36322 $ac_includes_default
36323    typedef long long int ac__type_sizeof_;
36324 int
36325 main ()
36326 {
36327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36328 test_array [0] = 0
36329
36330   ;
36331   return 0;
36332 }
36333 _ACEOF
36334 rm -f conftest.$ac_objext
36335 if { (ac_try="$ac_compile"
36336 case "(($ac_try" in
36337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36338   *) ac_try_echo=$ac_try;;
36339 esac
36340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36341   (eval "$ac_compile") 2>conftest.er1
36342   ac_status=$?
36343   grep -v '^ *+' conftest.er1 >conftest.err
36344   rm -f conftest.er1
36345   cat conftest.err >&5
36346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347   (exit $ac_status); } && {
36348          test -z "$ac_c_werror_flag" ||
36349          test ! -s conftest.err
36350        } && test -s conftest.$ac_objext; then
36351   ac_hi=$ac_mid; break
36352 else
36353   echo "$as_me: failed program was:" >&5
36354 sed 's/^/| /' conftest.$ac_ext >&5
36355
36356         ac_lo=`expr $ac_mid + 1`
36357                         if test $ac_lo -le $ac_mid; then
36358                           ac_lo= ac_hi=
36359                           break
36360                         fi
36361                         ac_mid=`expr 2 '*' $ac_mid + 1`
36362 fi
36363
36364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36365   done
36366 else
36367   echo "$as_me: failed program was:" >&5
36368 sed 's/^/| /' conftest.$ac_ext >&5
36369
36370         cat >conftest.$ac_ext <<_ACEOF
36371 /* confdefs.h.  */
36372 _ACEOF
36373 cat confdefs.h >>conftest.$ac_ext
36374 cat >>conftest.$ac_ext <<_ACEOF
36375 /* end confdefs.h.  */
36376 $ac_includes_default
36377    typedef long long int ac__type_sizeof_;
36378 int
36379 main ()
36380 {
36381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36382 test_array [0] = 0
36383
36384   ;
36385   return 0;
36386 }
36387 _ACEOF
36388 rm -f conftest.$ac_objext
36389 if { (ac_try="$ac_compile"
36390 case "(($ac_try" in
36391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36392   *) ac_try_echo=$ac_try;;
36393 esac
36394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36395   (eval "$ac_compile") 2>conftest.er1
36396   ac_status=$?
36397   grep -v '^ *+' conftest.er1 >conftest.err
36398   rm -f conftest.er1
36399   cat conftest.err >&5
36400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401   (exit $ac_status); } && {
36402          test -z "$ac_c_werror_flag" ||
36403          test ! -s conftest.err
36404        } && test -s conftest.$ac_objext; then
36405   ac_hi=-1 ac_mid=-1
36406   while :; do
36407     cat >conftest.$ac_ext <<_ACEOF
36408 /* confdefs.h.  */
36409 _ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h.  */
36413 $ac_includes_default
36414    typedef long long int ac__type_sizeof_;
36415 int
36416 main ()
36417 {
36418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36419 test_array [0] = 0
36420
36421   ;
36422   return 0;
36423 }
36424 _ACEOF
36425 rm -f conftest.$ac_objext
36426 if { (ac_try="$ac_compile"
36427 case "(($ac_try" in
36428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36429   *) ac_try_echo=$ac_try;;
36430 esac
36431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36432   (eval "$ac_compile") 2>conftest.er1
36433   ac_status=$?
36434   grep -v '^ *+' conftest.er1 >conftest.err
36435   rm -f conftest.er1
36436   cat conftest.err >&5
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); } && {
36439          test -z "$ac_c_werror_flag" ||
36440          test ! -s conftest.err
36441        } && test -s conftest.$ac_objext; then
36442   ac_lo=$ac_mid; break
36443 else
36444   echo "$as_me: failed program was:" >&5
36445 sed 's/^/| /' conftest.$ac_ext >&5
36446
36447         ac_hi=`expr '(' $ac_mid ')' - 1`
36448                         if test $ac_mid -le $ac_hi; then
36449                           ac_lo= ac_hi=
36450                           break
36451                         fi
36452                         ac_mid=`expr 2 '*' $ac_mid`
36453 fi
36454
36455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36456   done
36457 else
36458   echo "$as_me: failed program was:" >&5
36459 sed 's/^/| /' conftest.$ac_ext >&5
36460
36461         ac_lo= ac_hi=
36462 fi
36463
36464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36465 fi
36466
36467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36468 # Binary search between lo and hi bounds.
36469 while test "x$ac_lo" != "x$ac_hi"; do
36470   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36471   cat >conftest.$ac_ext <<_ACEOF
36472 /* confdefs.h.  */
36473 _ACEOF
36474 cat confdefs.h >>conftest.$ac_ext
36475 cat >>conftest.$ac_ext <<_ACEOF
36476 /* end confdefs.h.  */
36477 $ac_includes_default
36478    typedef long long int ac__type_sizeof_;
36479 int
36480 main ()
36481 {
36482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36483 test_array [0] = 0
36484
36485   ;
36486   return 0;
36487 }
36488 _ACEOF
36489 rm -f conftest.$ac_objext
36490 if { (ac_try="$ac_compile"
36491 case "(($ac_try" in
36492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36493   *) ac_try_echo=$ac_try;;
36494 esac
36495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36496   (eval "$ac_compile") 2>conftest.er1
36497   ac_status=$?
36498   grep -v '^ *+' conftest.er1 >conftest.err
36499   rm -f conftest.er1
36500   cat conftest.err >&5
36501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502   (exit $ac_status); } && {
36503          test -z "$ac_c_werror_flag" ||
36504          test ! -s conftest.err
36505        } && test -s conftest.$ac_objext; then
36506   ac_hi=$ac_mid
36507 else
36508   echo "$as_me: failed program was:" >&5
36509 sed 's/^/| /' conftest.$ac_ext >&5
36510
36511         ac_lo=`expr '(' $ac_mid ')' + 1`
36512 fi
36513
36514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36515 done
36516 case $ac_lo in
36517 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36518 '') if test "$ac_cv_type_long_long_int" = yes; then
36519      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36520 See \`config.log' for more details." >&5
36521 echo "$as_me: error: cannot compute sizeof (long long int)
36522 See \`config.log' for more details." >&2;}
36523    { (exit 77); exit 77; }; }
36524    else
36525      ac_cv_sizeof_long_long_int=0
36526    fi ;;
36527 esac
36528 else
36529   cat >conftest.$ac_ext <<_ACEOF
36530 /* confdefs.h.  */
36531 _ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h.  */
36535 $ac_includes_default
36536    typedef long long int ac__type_sizeof_;
36537 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36538 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36539 #include <stdio.h>
36540 #include <stdlib.h>
36541 int
36542 main ()
36543 {
36544
36545   FILE *f = fopen ("conftest.val", "w");
36546   if (! f)
36547     return 1;
36548   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36549     {
36550       long int i = longval ();
36551       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36552         return 1;
36553       fprintf (f, "%ld\n", i);
36554     }
36555   else
36556     {
36557       unsigned long int i = ulongval ();
36558       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36559         return 1;
36560       fprintf (f, "%lu\n", i);
36561     }
36562   return ferror (f) || fclose (f) != 0;
36563
36564   ;
36565   return 0;
36566 }
36567 _ACEOF
36568 rm -f conftest$ac_exeext
36569 if { (ac_try="$ac_link"
36570 case "(($ac_try" in
36571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36572   *) ac_try_echo=$ac_try;;
36573 esac
36574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36575   (eval "$ac_link") 2>&5
36576   ac_status=$?
36577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36579   { (case "(($ac_try" in
36580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36581   *) ac_try_echo=$ac_try;;
36582 esac
36583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36584   (eval "$ac_try") 2>&5
36585   ac_status=$?
36586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587   (exit $ac_status); }; }; then
36588   ac_cv_sizeof_long_long_int=`cat conftest.val`
36589 else
36590   echo "$as_me: program exited with status $ac_status" >&5
36591 echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36593
36594 ( exit $ac_status )
36595 if test "$ac_cv_type_long_long_int" = yes; then
36596      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36597 See \`config.log' for more details." >&5
36598 echo "$as_me: error: cannot compute sizeof (long long int)
36599 See \`config.log' for more details." >&2;}
36600    { (exit 77); exit 77; }; }
36601    else
36602      ac_cv_sizeof_long_long_int=0
36603    fi
36604 fi
36605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36606 fi
36607 rm -f conftest.val
36608 fi
36609 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36610 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36611
36612
36613
36614 cat >>confdefs.h <<_ACEOF
36615 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36616 _ACEOF
36617
36618
36619 { echo "$as_me:$LINENO: checking for int *" >&5
36620 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36621 if test "${ac_cv_type_int_p+set}" = set; then
36622   echo $ECHO_N "(cached) $ECHO_C" >&6
36623 else
36624   cat >conftest.$ac_ext <<_ACEOF
36625 /* confdefs.h.  */
36626 _ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h.  */
36630 $ac_includes_default
36631 typedef int * ac__type_new_;
36632 int
36633 main ()
36634 {
36635 if ((ac__type_new_ *) 0)
36636   return 0;
36637 if (sizeof (ac__type_new_))
36638   return 0;
36639   ;
36640   return 0;
36641 }
36642 _ACEOF
36643 rm -f conftest.$ac_objext
36644 if { (ac_try="$ac_compile"
36645 case "(($ac_try" in
36646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36647   *) ac_try_echo=$ac_try;;
36648 esac
36649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36650   (eval "$ac_compile") 2>conftest.er1
36651   ac_status=$?
36652   grep -v '^ *+' conftest.er1 >conftest.err
36653   rm -f conftest.er1
36654   cat conftest.err >&5
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); } && {
36657          test -z "$ac_c_werror_flag" ||
36658          test ! -s conftest.err
36659        } && test -s conftest.$ac_objext; then
36660   ac_cv_type_int_p=yes
36661 else
36662   echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36664
36665         ac_cv_type_int_p=no
36666 fi
36667
36668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36669 fi
36670 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36671 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36672
36673 # The cast to long int works around a bug in the HP C Compiler
36674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36676 # This bug is HP SR number 8606223364.
36677 { echo "$as_me:$LINENO: checking size of int *" >&5
36678 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36679 if test "${ac_cv_sizeof_int_p+set}" = set; then
36680   echo $ECHO_N "(cached) $ECHO_C" >&6
36681 else
36682   if test "$cross_compiling" = yes; then
36683   # Depending upon the size, compute the lo and hi bounds.
36684 cat >conftest.$ac_ext <<_ACEOF
36685 /* confdefs.h.  */
36686 _ACEOF
36687 cat confdefs.h >>conftest.$ac_ext
36688 cat >>conftest.$ac_ext <<_ACEOF
36689 /* end confdefs.h.  */
36690 $ac_includes_default
36691    typedef int * ac__type_sizeof_;
36692 int
36693 main ()
36694 {
36695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36696 test_array [0] = 0
36697
36698   ;
36699   return 0;
36700 }
36701 _ACEOF
36702 rm -f conftest.$ac_objext
36703 if { (ac_try="$ac_compile"
36704 case "(($ac_try" in
36705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36706   *) ac_try_echo=$ac_try;;
36707 esac
36708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36709   (eval "$ac_compile") 2>conftest.er1
36710   ac_status=$?
36711   grep -v '^ *+' conftest.er1 >conftest.err
36712   rm -f conftest.er1
36713   cat conftest.err >&5
36714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715   (exit $ac_status); } && {
36716          test -z "$ac_c_werror_flag" ||
36717          test ! -s conftest.err
36718        } && test -s conftest.$ac_objext; then
36719   ac_lo=0 ac_mid=0
36720   while :; do
36721     cat >conftest.$ac_ext <<_ACEOF
36722 /* confdefs.h.  */
36723 _ACEOF
36724 cat confdefs.h >>conftest.$ac_ext
36725 cat >>conftest.$ac_ext <<_ACEOF
36726 /* end confdefs.h.  */
36727 $ac_includes_default
36728    typedef int * ac__type_sizeof_;
36729 int
36730 main ()
36731 {
36732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36733 test_array [0] = 0
36734
36735   ;
36736   return 0;
36737 }
36738 _ACEOF
36739 rm -f conftest.$ac_objext
36740 if { (ac_try="$ac_compile"
36741 case "(($ac_try" in
36742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36743   *) ac_try_echo=$ac_try;;
36744 esac
36745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36746   (eval "$ac_compile") 2>conftest.er1
36747   ac_status=$?
36748   grep -v '^ *+' conftest.er1 >conftest.err
36749   rm -f conftest.er1
36750   cat conftest.err >&5
36751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752   (exit $ac_status); } && {
36753          test -z "$ac_c_werror_flag" ||
36754          test ! -s conftest.err
36755        } && test -s conftest.$ac_objext; then
36756   ac_hi=$ac_mid; break
36757 else
36758   echo "$as_me: failed program was:" >&5
36759 sed 's/^/| /' conftest.$ac_ext >&5
36760
36761         ac_lo=`expr $ac_mid + 1`
36762                         if test $ac_lo -le $ac_mid; then
36763                           ac_lo= ac_hi=
36764                           break
36765                         fi
36766                         ac_mid=`expr 2 '*' $ac_mid + 1`
36767 fi
36768
36769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36770   done
36771 else
36772   echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36774
36775         cat >conftest.$ac_ext <<_ACEOF
36776 /* confdefs.h.  */
36777 _ACEOF
36778 cat confdefs.h >>conftest.$ac_ext
36779 cat >>conftest.$ac_ext <<_ACEOF
36780 /* end confdefs.h.  */
36781 $ac_includes_default
36782    typedef int * ac__type_sizeof_;
36783 int
36784 main ()
36785 {
36786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36787 test_array [0] = 0
36788
36789   ;
36790   return 0;
36791 }
36792 _ACEOF
36793 rm -f conftest.$ac_objext
36794 if { (ac_try="$ac_compile"
36795 case "(($ac_try" in
36796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36797   *) ac_try_echo=$ac_try;;
36798 esac
36799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36800   (eval "$ac_compile") 2>conftest.er1
36801   ac_status=$?
36802   grep -v '^ *+' conftest.er1 >conftest.err
36803   rm -f conftest.er1
36804   cat conftest.err >&5
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); } && {
36807          test -z "$ac_c_werror_flag" ||
36808          test ! -s conftest.err
36809        } && test -s conftest.$ac_objext; then
36810   ac_hi=-1 ac_mid=-1
36811   while :; do
36812     cat >conftest.$ac_ext <<_ACEOF
36813 /* confdefs.h.  */
36814 _ACEOF
36815 cat confdefs.h >>conftest.$ac_ext
36816 cat >>conftest.$ac_ext <<_ACEOF
36817 /* end confdefs.h.  */
36818 $ac_includes_default
36819    typedef int * ac__type_sizeof_;
36820 int
36821 main ()
36822 {
36823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36824 test_array [0] = 0
36825
36826   ;
36827   return 0;
36828 }
36829 _ACEOF
36830 rm -f conftest.$ac_objext
36831 if { (ac_try="$ac_compile"
36832 case "(($ac_try" in
36833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36834   *) ac_try_echo=$ac_try;;
36835 esac
36836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36837   (eval "$ac_compile") 2>conftest.er1
36838   ac_status=$?
36839   grep -v '^ *+' conftest.er1 >conftest.err
36840   rm -f conftest.er1
36841   cat conftest.err >&5
36842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843   (exit $ac_status); } && {
36844          test -z "$ac_c_werror_flag" ||
36845          test ! -s conftest.err
36846        } && test -s conftest.$ac_objext; then
36847   ac_lo=$ac_mid; break
36848 else
36849   echo "$as_me: failed program was:" >&5
36850 sed 's/^/| /' conftest.$ac_ext >&5
36851
36852         ac_hi=`expr '(' $ac_mid ')' - 1`
36853                         if test $ac_mid -le $ac_hi; then
36854                           ac_lo= ac_hi=
36855                           break
36856                         fi
36857                         ac_mid=`expr 2 '*' $ac_mid`
36858 fi
36859
36860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36861   done
36862 else
36863   echo "$as_me: failed program was:" >&5
36864 sed 's/^/| /' conftest.$ac_ext >&5
36865
36866         ac_lo= ac_hi=
36867 fi
36868
36869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36870 fi
36871
36872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36873 # Binary search between lo and hi bounds.
36874 while test "x$ac_lo" != "x$ac_hi"; do
36875   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36876   cat >conftest.$ac_ext <<_ACEOF
36877 /* confdefs.h.  */
36878 _ACEOF
36879 cat confdefs.h >>conftest.$ac_ext
36880 cat >>conftest.$ac_ext <<_ACEOF
36881 /* end confdefs.h.  */
36882 $ac_includes_default
36883    typedef int * ac__type_sizeof_;
36884 int
36885 main ()
36886 {
36887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36888 test_array [0] = 0
36889
36890   ;
36891   return 0;
36892 }
36893 _ACEOF
36894 rm -f conftest.$ac_objext
36895 if { (ac_try="$ac_compile"
36896 case "(($ac_try" in
36897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36898   *) ac_try_echo=$ac_try;;
36899 esac
36900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36901   (eval "$ac_compile") 2>conftest.er1
36902   ac_status=$?
36903   grep -v '^ *+' conftest.er1 >conftest.err
36904   rm -f conftest.er1
36905   cat conftest.err >&5
36906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907   (exit $ac_status); } && {
36908          test -z "$ac_c_werror_flag" ||
36909          test ! -s conftest.err
36910        } && test -s conftest.$ac_objext; then
36911   ac_hi=$ac_mid
36912 else
36913   echo "$as_me: failed program was:" >&5
36914 sed 's/^/| /' conftest.$ac_ext >&5
36915
36916         ac_lo=`expr '(' $ac_mid ')' + 1`
36917 fi
36918
36919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36920 done
36921 case $ac_lo in
36922 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36923 '') if test "$ac_cv_type_int_p" = yes; then
36924      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36925 See \`config.log' for more details." >&5
36926 echo "$as_me: error: cannot compute sizeof (int *)
36927 See \`config.log' for more details." >&2;}
36928    { (exit 77); exit 77; }; }
36929    else
36930      ac_cv_sizeof_int_p=0
36931    fi ;;
36932 esac
36933 else
36934   cat >conftest.$ac_ext <<_ACEOF
36935 /* confdefs.h.  */
36936 _ACEOF
36937 cat confdefs.h >>conftest.$ac_ext
36938 cat >>conftest.$ac_ext <<_ACEOF
36939 /* end confdefs.h.  */
36940 $ac_includes_default
36941    typedef int * ac__type_sizeof_;
36942 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36943 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36944 #include <stdio.h>
36945 #include <stdlib.h>
36946 int
36947 main ()
36948 {
36949
36950   FILE *f = fopen ("conftest.val", "w");
36951   if (! f)
36952     return 1;
36953   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36954     {
36955       long int i = longval ();
36956       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36957         return 1;
36958       fprintf (f, "%ld\n", i);
36959     }
36960   else
36961     {
36962       unsigned long int i = ulongval ();
36963       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36964         return 1;
36965       fprintf (f, "%lu\n", i);
36966     }
36967   return ferror (f) || fclose (f) != 0;
36968
36969   ;
36970   return 0;
36971 }
36972 _ACEOF
36973 rm -f conftest$ac_exeext
36974 if { (ac_try="$ac_link"
36975 case "(($ac_try" in
36976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36977   *) ac_try_echo=$ac_try;;
36978 esac
36979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36980   (eval "$ac_link") 2>&5
36981   ac_status=$?
36982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36984   { (case "(($ac_try" in
36985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36986   *) ac_try_echo=$ac_try;;
36987 esac
36988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36989   (eval "$ac_try") 2>&5
36990   ac_status=$?
36991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992   (exit $ac_status); }; }; then
36993   ac_cv_sizeof_int_p=`cat conftest.val`
36994 else
36995   echo "$as_me: program exited with status $ac_status" >&5
36996 echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36998
36999 ( exit $ac_status )
37000 if test "$ac_cv_type_int_p" = yes; then
37001      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37002 See \`config.log' for more details." >&5
37003 echo "$as_me: error: cannot compute sizeof (int *)
37004 See \`config.log' for more details." >&2;}
37005    { (exit 77); exit 77; }; }
37006    else
37007      ac_cv_sizeof_int_p=0
37008    fi
37009 fi
37010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37011 fi
37012 rm -f conftest.val
37013 fi
37014 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37015 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37016
37017
37018
37019 cat >>confdefs.h <<_ACEOF
37020 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37021 _ACEOF
37022
37023
37024
37025 { echo "$as_me:$LINENO: checking for u_int type" >&5
37026 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37027 if test "${ac_cv_have_u_int+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030
37031        cat >conftest.$ac_ext <<_ACEOF
37032 /* confdefs.h.  */
37033 _ACEOF
37034 cat confdefs.h >>conftest.$ac_ext
37035 cat >>conftest.$ac_ext <<_ACEOF
37036 /* end confdefs.h.  */
37037
37038               #include <sys/types.h>
37039
37040 int
37041 main ()
37042 {
37043
37044               u_int a; a = 1;
37045
37046   ;
37047   return 0;
37048 }
37049 _ACEOF
37050 rm -f conftest.$ac_objext
37051 if { (ac_try="$ac_compile"
37052 case "(($ac_try" in
37053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37054   *) ac_try_echo=$ac_try;;
37055 esac
37056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37057   (eval "$ac_compile") 2>conftest.er1
37058   ac_status=$?
37059   grep -v '^ *+' conftest.er1 >conftest.err
37060   rm -f conftest.er1
37061   cat conftest.err >&5
37062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063   (exit $ac_status); } && {
37064          test -z "$ac_c_werror_flag" ||
37065          test ! -s conftest.err
37066        } && test -s conftest.$ac_objext; then
37067
37068               ac_cv_have_u_int="yes"
37069
37070 else
37071   echo "$as_me: failed program was:" >&5
37072 sed 's/^/| /' conftest.$ac_ext >&5
37073
37074
37075               ac_cv_have_u_int="no"
37076
37077
37078 fi
37079
37080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37081
37082
37083 fi
37084 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37085 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37086 if test "x$ac_cv_have_u_int" = "xyes" ; then
37087    cat >>confdefs.h <<\_ACEOF
37088 #define HAVE_U_INT 1
37089 _ACEOF
37090
37091    have_u_int=1
37092 fi
37093
37094 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37095 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37096 if test "${ac_cv_have_intmax_t+set}" = set; then
37097   echo $ECHO_N "(cached) $ECHO_C" >&6
37098 else
37099
37100        cat >conftest.$ac_ext <<_ACEOF
37101 /* confdefs.h.  */
37102 _ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h.  */
37106
37107               #include <sys/types.h>
37108
37109 int
37110 main ()
37111 {
37112
37113               intmax_t a; a = 1;
37114
37115   ;
37116   return 0;
37117 }
37118 _ACEOF
37119 rm -f conftest.$ac_objext
37120 if { (ac_try="$ac_compile"
37121 case "(($ac_try" in
37122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37123   *) ac_try_echo=$ac_try;;
37124 esac
37125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37126   (eval "$ac_compile") 2>conftest.er1
37127   ac_status=$?
37128   grep -v '^ *+' conftest.er1 >conftest.err
37129   rm -f conftest.er1
37130   cat conftest.err >&5
37131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132   (exit $ac_status); } && {
37133          test -z "$ac_c_werror_flag" ||
37134          test ! -s conftest.err
37135        } && test -s conftest.$ac_objext; then
37136
37137               ac_cv_have_intmax_t="yes"
37138
37139 else
37140   echo "$as_me: failed program was:" >&5
37141 sed 's/^/| /' conftest.$ac_ext >&5
37142
37143
37144               cat >conftest.$ac_ext <<_ACEOF
37145 /* confdefs.h.  */
37146 _ACEOF
37147 cat confdefs.h >>conftest.$ac_ext
37148 cat >>conftest.$ac_ext <<_ACEOF
37149 /* end confdefs.h.  */
37150
37151                      #include <stdint.h>
37152
37153 int
37154 main ()
37155 {
37156
37157                      intmax_t a; a = 1;
37158
37159   ;
37160   return 0;
37161 }
37162 _ACEOF
37163 rm -f conftest.$ac_objext
37164 if { (ac_try="$ac_compile"
37165 case "(($ac_try" in
37166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37167   *) ac_try_echo=$ac_try;;
37168 esac
37169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37170   (eval "$ac_compile") 2>conftest.er1
37171   ac_status=$?
37172   grep -v '^ *+' conftest.er1 >conftest.err
37173   rm -f conftest.er1
37174   cat conftest.err >&5
37175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176   (exit $ac_status); } && {
37177          test -z "$ac_c_werror_flag" ||
37178          test ! -s conftest.err
37179        } && test -s conftest.$ac_objext; then
37180
37181                      ac_cv_have_intmax_t="yes"
37182
37183 else
37184   echo "$as_me: failed program was:" >&5
37185 sed 's/^/| /' conftest.$ac_ext >&5
37186
37187
37188                      ac_cv_have_intmax_t="no"
37189
37190
37191 fi
37192
37193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37194
37195
37196 fi
37197
37198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37199
37200
37201 fi
37202 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37203 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37204 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37205    cat >>confdefs.h <<\_ACEOF
37206 #define HAVE_INTMAX_T 1
37207 _ACEOF
37208
37209    have_intmax_t=1
37210 fi
37211
37212 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37213 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37214 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37215   echo $ECHO_N "(cached) $ECHO_C" >&6
37216 else
37217
37218        cat >conftest.$ac_ext <<_ACEOF
37219 /* confdefs.h.  */
37220 _ACEOF
37221 cat confdefs.h >>conftest.$ac_ext
37222 cat >>conftest.$ac_ext <<_ACEOF
37223 /* end confdefs.h.  */
37224
37225               #include <sys/types.h>
37226
37227 int
37228 main ()
37229 {
37230
37231               u_intmax_t a; a = 1;
37232
37233   ;
37234   return 0;
37235 }
37236 _ACEOF
37237 rm -f conftest.$ac_objext
37238 if { (ac_try="$ac_compile"
37239 case "(($ac_try" in
37240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37241   *) ac_try_echo=$ac_try;;
37242 esac
37243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37244   (eval "$ac_compile") 2>conftest.er1
37245   ac_status=$?
37246   grep -v '^ *+' conftest.er1 >conftest.err
37247   rm -f conftest.er1
37248   cat conftest.err >&5
37249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250   (exit $ac_status); } && {
37251          test -z "$ac_c_werror_flag" ||
37252          test ! -s conftest.err
37253        } && test -s conftest.$ac_objext; then
37254
37255               ac_cv_have_u_intmax_t="yes"
37256
37257 else
37258   echo "$as_me: failed program was:" >&5
37259 sed 's/^/| /' conftest.$ac_ext >&5
37260
37261
37262               cat >conftest.$ac_ext <<_ACEOF
37263 /* confdefs.h.  */
37264 _ACEOF
37265 cat confdefs.h >>conftest.$ac_ext
37266 cat >>conftest.$ac_ext <<_ACEOF
37267 /* end confdefs.h.  */
37268
37269                      #include <stdint.h>
37270
37271 int
37272 main ()
37273 {
37274
37275                     u_intmax_t a; a = 1;
37276
37277   ;
37278   return 0;
37279 }
37280 _ACEOF
37281 rm -f conftest.$ac_objext
37282 if { (ac_try="$ac_compile"
37283 case "(($ac_try" in
37284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37285   *) ac_try_echo=$ac_try;;
37286 esac
37287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37288   (eval "$ac_compile") 2>conftest.er1
37289   ac_status=$?
37290   grep -v '^ *+' conftest.er1 >conftest.err
37291   rm -f conftest.er1
37292   cat conftest.err >&5
37293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294   (exit $ac_status); } && {
37295          test -z "$ac_c_werror_flag" ||
37296          test ! -s conftest.err
37297        } && test -s conftest.$ac_objext; then
37298
37299                     ac_cv_have_u_intmax_t="yes"
37300
37301 else
37302   echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37304
37305
37306                     ac_cv_have_u_intmax_t="no"
37307
37308
37309 fi
37310
37311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37312
37313
37314 fi
37315
37316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37317
37318
37319 fi
37320 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37321 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37322 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37323    cat >>confdefs.h <<\_ACEOF
37324 #define HAVE_U_INTMAX_T 1
37325 _ACEOF
37326
37327    have_u_intmax_t=1
37328 fi
37329
37330 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37331 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37332 if test "${ac_cv_have_intxx_t+set}" = set; then
37333   echo $ECHO_N "(cached) $ECHO_C" >&6
37334 else
37335
37336        cat >conftest.$ac_ext <<_ACEOF
37337 /* confdefs.h.  */
37338 _ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h.  */
37342
37343               #include <sys/types.h>
37344
37345 int
37346 main ()
37347 {
37348
37349               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37350
37351   ;
37352   return 0;
37353 }
37354 _ACEOF
37355 rm -f conftest.$ac_objext
37356 if { (ac_try="$ac_compile"
37357 case "(($ac_try" in
37358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37359   *) ac_try_echo=$ac_try;;
37360 esac
37361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37362   (eval "$ac_compile") 2>conftest.er1
37363   ac_status=$?
37364   grep -v '^ *+' conftest.er1 >conftest.err
37365   rm -f conftest.er1
37366   cat conftest.err >&5
37367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368   (exit $ac_status); } && {
37369          test -z "$ac_c_werror_flag" ||
37370          test ! -s conftest.err
37371        } && test -s conftest.$ac_objext; then
37372
37373               ac_cv_have_intxx_t="yes"
37374
37375 else
37376   echo "$as_me: failed program was:" >&5
37377 sed 's/^/| /' conftest.$ac_ext >&5
37378
37379
37380               ac_cv_have_intxx_t="no"
37381
37382
37383 fi
37384
37385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37386
37387
37388 fi
37389 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37390 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37391 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37392    cat >>confdefs.h <<\_ACEOF
37393 #define HAVE_INTXX_T 1
37394 _ACEOF
37395
37396    have_intxx_t=1
37397 fi
37398
37399 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37400 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37401 if test "${ac_cv_have_int64_t+set}" = set; then
37402   echo $ECHO_N "(cached) $ECHO_C" >&6
37403 else
37404
37405        cat >conftest.$ac_ext <<_ACEOF
37406 /* confdefs.h.  */
37407 _ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h.  */
37411
37412               #include <sys/types.h>
37413
37414 int
37415 main ()
37416 {
37417
37418               int64_t a; a = 1;
37419
37420   ;
37421   return 0;
37422 }
37423 _ACEOF
37424 rm -f conftest.$ac_objext
37425 if { (ac_try="$ac_compile"
37426 case "(($ac_try" in
37427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428   *) ac_try_echo=$ac_try;;
37429 esac
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431   (eval "$ac_compile") 2>conftest.er1
37432   ac_status=$?
37433   grep -v '^ *+' conftest.er1 >conftest.err
37434   rm -f conftest.er1
37435   cat conftest.err >&5
37436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437   (exit $ac_status); } && {
37438          test -z "$ac_c_werror_flag" ||
37439          test ! -s conftest.err
37440        } && test -s conftest.$ac_objext; then
37441
37442               ac_cv_have_int64_t="yes"
37443
37444 else
37445   echo "$as_me: failed program was:" >&5
37446 sed 's/^/| /' conftest.$ac_ext >&5
37447
37448
37449               ac_cv_have_int64_t="no"
37450
37451
37452 fi
37453
37454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37455
37456
37457 fi
37458 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37459 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37460 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37461    cat >>confdefs.h <<\_ACEOF
37462 #define HAVE_INT64_T 1
37463 _ACEOF
37464
37465    have_int64_t=1
37466 fi
37467
37468 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37469 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37470 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37471   echo $ECHO_N "(cached) $ECHO_C" >&6
37472 else
37473
37474        cat >conftest.$ac_ext <<_ACEOF
37475 /* confdefs.h.  */
37476 _ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h.  */
37480
37481               #include <sys/types.h>
37482
37483 int
37484 main ()
37485 {
37486
37487               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37488
37489   ;
37490   return 0;
37491 }
37492 _ACEOF
37493 rm -f conftest.$ac_objext
37494 if { (ac_try="$ac_compile"
37495 case "(($ac_try" in
37496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37497   *) ac_try_echo=$ac_try;;
37498 esac
37499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37500   (eval "$ac_compile") 2>conftest.er1
37501   ac_status=$?
37502   grep -v '^ *+' conftest.er1 >conftest.err
37503   rm -f conftest.er1
37504   cat conftest.err >&5
37505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506   (exit $ac_status); } && {
37507          test -z "$ac_c_werror_flag" ||
37508          test ! -s conftest.err
37509        } && test -s conftest.$ac_objext; then
37510
37511              ac_cv_have_u_intxx_t="yes"
37512
37513 else
37514   echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37516
37517
37518              ac_cv_have_u_intxx_t="no"
37519
37520
37521 fi
37522
37523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37524
37525
37526 fi
37527 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37528 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37529 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37530    cat >>confdefs.h <<\_ACEOF
37531 #define HAVE_U_INTXX_T 1
37532 _ACEOF
37533
37534    have_u_intxx_t=1
37535 fi
37536
37537 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37538 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37539 if test "${ac_cv_have_u_int64_t+set}" = set; then
37540   echo $ECHO_N "(cached) $ECHO_C" >&6
37541 else
37542
37543        cat >conftest.$ac_ext <<_ACEOF
37544 /* confdefs.h.  */
37545 _ACEOF
37546 cat confdefs.h >>conftest.$ac_ext
37547 cat >>conftest.$ac_ext <<_ACEOF
37548 /* end confdefs.h.  */
37549
37550               #include <sys/types.h>
37551
37552 int
37553 main ()
37554 {
37555
37556               u_int64_t a; a = 1;
37557
37558   ;
37559   return 0;
37560 }
37561 _ACEOF
37562 rm -f conftest.$ac_objext
37563 if { (ac_try="$ac_compile"
37564 case "(($ac_try" in
37565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566   *) ac_try_echo=$ac_try;;
37567 esac
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569   (eval "$ac_compile") 2>conftest.er1
37570   ac_status=$?
37571   grep -v '^ *+' conftest.er1 >conftest.err
37572   rm -f conftest.er1
37573   cat conftest.err >&5
37574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575   (exit $ac_status); } && {
37576          test -z "$ac_c_werror_flag" ||
37577          test ! -s conftest.err
37578        } && test -s conftest.$ac_objext; then
37579
37580              ac_cv_have_u_int64_t="yes"
37581
37582 else
37583   echo "$as_me: failed program was:" >&5
37584 sed 's/^/| /' conftest.$ac_ext >&5
37585
37586
37587              ac_cv_have_u_int64_t="no"
37588
37589
37590 fi
37591
37592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37593
37594
37595 fi
37596 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37597 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37598 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37599    cat >>confdefs.h <<\_ACEOF
37600 #define HAVE_U_INT64_T 1
37601 _ACEOF
37602
37603    have_u_int64_t=1
37604 fi
37605
37606 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37607     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37608 then
37609    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37610 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37611    cat >conftest.$ac_ext <<_ACEOF
37612 /* confdefs.h.  */
37613 _ACEOF
37614 cat confdefs.h >>conftest.$ac_ext
37615 cat >>conftest.$ac_ext <<_ACEOF
37616 /* end confdefs.h.  */
37617
37618           #include <sys/bitypes.h>
37619
37620 int
37621 main ()
37622 {
37623
37624           int8_t a; int16_t b; int32_t c;
37625           u_int8_t e; u_int16_t f; u_int32_t g;
37626           a = b = c = e = f = g = 1;
37627
37628   ;
37629   return 0;
37630 }
37631 _ACEOF
37632 rm -f conftest.$ac_objext
37633 if { (ac_try="$ac_compile"
37634 case "(($ac_try" in
37635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37636   *) ac_try_echo=$ac_try;;
37637 esac
37638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37639   (eval "$ac_compile") 2>conftest.er1
37640   ac_status=$?
37641   grep -v '^ *+' conftest.er1 >conftest.err
37642   rm -f conftest.er1
37643   cat conftest.err >&5
37644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645   (exit $ac_status); } && {
37646          test -z "$ac_c_werror_flag" ||
37647          test ! -s conftest.err
37648        } && test -s conftest.$ac_objext; then
37649
37650           cat >>confdefs.h <<\_ACEOF
37651 #define HAVE_U_INTXX_T 1
37652 _ACEOF
37653
37654           cat >>confdefs.h <<\_ACEOF
37655 #define HAVE_INTXX_T 1
37656 _ACEOF
37657
37658           cat >>confdefs.h <<\_ACEOF
37659 #define HAVE_SYS_BITYPES_H 1
37660 _ACEOF
37661
37662           { echo "$as_me:$LINENO: result: yes" >&5
37663 echo "${ECHO_T}yes" >&6; }
37664
37665 else
37666   echo "$as_me: failed program was:" >&5
37667 sed 's/^/| /' conftest.$ac_ext >&5
37668
37669
37670           { echo "$as_me:$LINENO: result: no" >&5
37671 echo "${ECHO_T}no" >&6; }
37672
37673
37674 fi
37675
37676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37677 fi
37678
37679 if test -z "$have_u_intxx_t" ; then
37680    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37681 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37682 if test "${ac_cv_have_uintxx_t+set}" = set; then
37683   echo $ECHO_N "(cached) $ECHO_C" >&6
37684 else
37685
37686           cat >conftest.$ac_ext <<_ACEOF
37687 /* confdefs.h.  */
37688 _ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h.  */
37692
37693                  #include <sys/types.h>
37694
37695 int
37696 main ()
37697 {
37698
37699                  uint8_t a; uint16_t b;
37700                  uint32_t c; a = b = c = 1;
37701
37702   ;
37703   return 0;
37704 }
37705 _ACEOF
37706 rm -f conftest.$ac_objext
37707 if { (ac_try="$ac_compile"
37708 case "(($ac_try" in
37709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37710   *) ac_try_echo=$ac_try;;
37711 esac
37712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37713   (eval "$ac_compile") 2>conftest.er1
37714   ac_status=$?
37715   grep -v '^ *+' conftest.er1 >conftest.err
37716   rm -f conftest.er1
37717   cat conftest.err >&5
37718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719   (exit $ac_status); } && {
37720          test -z "$ac_c_werror_flag" ||
37721          test ! -s conftest.err
37722        } && test -s conftest.$ac_objext; then
37723
37724                 ac_cv_have_uintxx_t="yes"
37725
37726 else
37727   echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37729
37730
37731                 ac_cv_have_uintxx_t="no"
37732
37733
37734 fi
37735
37736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37737
37738
37739 fi
37740 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37741 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37742    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37743       cat >>confdefs.h <<\_ACEOF
37744 #define HAVE_UINTXX_T 1
37745 _ACEOF
37746
37747    fi
37748 fi
37749
37750 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37751     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37752 then
37753    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37754 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37755    cat >conftest.$ac_ext <<_ACEOF
37756 /* confdefs.h.  */
37757 _ACEOF
37758 cat confdefs.h >>conftest.$ac_ext
37759 cat >>conftest.$ac_ext <<_ACEOF
37760 /* end confdefs.h.  */
37761
37762           #include <sys/bitypes.h>
37763
37764 int
37765 main ()
37766 {
37767
37768           int64_t a; u_int64_t b;
37769           a = b = 1;
37770
37771   ;
37772   return 0;
37773 }
37774 _ACEOF
37775 rm -f conftest.$ac_objext
37776 if { (ac_try="$ac_compile"
37777 case "(($ac_try" in
37778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37779   *) ac_try_echo=$ac_try;;
37780 esac
37781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37782   (eval "$ac_compile") 2>conftest.er1
37783   ac_status=$?
37784   grep -v '^ *+' conftest.er1 >conftest.err
37785   rm -f conftest.er1
37786   cat conftest.err >&5
37787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788   (exit $ac_status); } && {
37789          test -z "$ac_c_werror_flag" ||
37790          test ! -s conftest.err
37791        } && test -s conftest.$ac_objext; then
37792
37793           cat >>confdefs.h <<\_ACEOF
37794 #define HAVE_U_INT64_T 1
37795 _ACEOF
37796
37797           cat >>confdefs.h <<\_ACEOF
37798 #define HAVE_INT64_T 1
37799 _ACEOF
37800
37801           { echo "$as_me:$LINENO: result: yes" >&5
37802 echo "${ECHO_T}yes" >&6; }
37803
37804 else
37805   echo "$as_me: failed program was:" >&5
37806 sed 's/^/| /' conftest.$ac_ext >&5
37807
37808
37809           { echo "$as_me:$LINENO: result: no" >&5
37810 echo "${ECHO_T}no" >&6; }
37811
37812
37813 fi
37814
37815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37816 fi
37817
37818 if (test -z "$have_uintxx_t" && \
37819     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37820 then
37821    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37822 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37823    cat >conftest.$ac_ext <<_ACEOF
37824 /* confdefs.h.  */
37825 _ACEOF
37826 cat confdefs.h >>conftest.$ac_ext
37827 cat >>conftest.$ac_ext <<_ACEOF
37828 /* end confdefs.h.  */
37829
37830           #include <sys/bitypes.h>
37831
37832 int
37833 main ()
37834 {
37835
37836           uint8_t a; uint16_t b;
37837           uint32_t c; a = b = c = 1;
37838
37839   ;
37840   return 0;
37841 }
37842 _ACEOF
37843 rm -f conftest.$ac_objext
37844 if { (ac_try="$ac_compile"
37845 case "(($ac_try" in
37846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37847   *) ac_try_echo=$ac_try;;
37848 esac
37849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37850   (eval "$ac_compile") 2>conftest.er1
37851   ac_status=$?
37852   grep -v '^ *+' conftest.er1 >conftest.err
37853   rm -f conftest.er1
37854   cat conftest.err >&5
37855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856   (exit $ac_status); } && {
37857          test -z "$ac_c_werror_flag" ||
37858          test ! -s conftest.err
37859        } && test -s conftest.$ac_objext; then
37860
37861           cat >>confdefs.h <<\_ACEOF
37862 #define HAVE_UINTXX_T 1
37863 _ACEOF
37864
37865           { echo "$as_me:$LINENO: result: yes" >&5
37866 echo "${ECHO_T}yes" >&6; }
37867
37868 else
37869   echo "$as_me: failed program was:" >&5
37870 sed 's/^/| /' conftest.$ac_ext >&5
37871
37872
37873           { echo "$as_me:$LINENO: result: no" >&5
37874 echo "${ECHO_T}no" >&6; }
37875
37876
37877 fi
37878
37879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37880 fi
37881
37882
37883
37884
37885
37886
37887
37888
37889
37890
37891
37892
37893
37894
37895 for ac_func in \
37896    fork \
37897    getcwd \
37898    gethostname \
37899    getpid \
37900    gettimeofday \
37901    setpgid \
37902    setpgrp \
37903    setsid \
37904    signal \
37905    strerror \
37906    strncmp \
37907    strncpy \
37908    vfprintf \
37909
37910 do
37911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37915   echo $ECHO_N "(cached) $ECHO_C" >&6
37916 else
37917   cat >conftest.$ac_ext <<_ACEOF
37918 /* confdefs.h.  */
37919 _ACEOF
37920 cat confdefs.h >>conftest.$ac_ext
37921 cat >>conftest.$ac_ext <<_ACEOF
37922 /* end confdefs.h.  */
37923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37925 #define $ac_func innocuous_$ac_func
37926
37927 /* System header to define __stub macros and hopefully few prototypes,
37928     which can conflict with char $ac_func (); below.
37929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37930     <limits.h> exists even on freestanding compilers.  */
37931
37932 #ifdef __STDC__
37933 # include <limits.h>
37934 #else
37935 # include <assert.h>
37936 #endif
37937
37938 #undef $ac_func
37939
37940 /* Override any GCC internal prototype to avoid an error.
37941    Use char because int might match the return type of a GCC
37942    builtin and then its argument prototype would still apply.  */
37943 #ifdef __cplusplus
37944 extern "C"
37945 #endif
37946 char $ac_func ();
37947 /* The GNU C library defines this for functions which it implements
37948     to always fail with ENOSYS.  Some functions are actually named
37949     something starting with __ and the normal name is an alias.  */
37950 #if defined __stub_$ac_func || defined __stub___$ac_func
37951 choke me
37952 #endif
37953
37954 int
37955 main ()
37956 {
37957 return $ac_func ();
37958   ;
37959   return 0;
37960 }
37961 _ACEOF
37962 rm -f conftest.$ac_objext conftest$ac_exeext
37963 if { (ac_try="$ac_link"
37964 case "(($ac_try" in
37965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37966   *) ac_try_echo=$ac_try;;
37967 esac
37968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37969   (eval "$ac_link") 2>conftest.er1
37970   ac_status=$?
37971   grep -v '^ *+' conftest.er1 >conftest.err
37972   rm -f conftest.er1
37973   cat conftest.err >&5
37974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975   (exit $ac_status); } && {
37976          test -z "$ac_c_werror_flag" ||
37977          test ! -s conftest.err
37978        } && test -s conftest$ac_exeext &&
37979        $as_test_x conftest$ac_exeext; then
37980   eval "$as_ac_var=yes"
37981 else
37982   echo "$as_me: failed program was:" >&5
37983 sed 's/^/| /' conftest.$ac_ext >&5
37984
37985         eval "$as_ac_var=no"
37986 fi
37987
37988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37989       conftest$ac_exeext conftest.$ac_ext
37990 fi
37991 ac_res=`eval echo '${'$as_ac_var'}'`
37992                { echo "$as_me:$LINENO: result: $ac_res" >&5
37993 echo "${ECHO_T}$ac_res" >&6; }
37994 if test `eval echo '${'$as_ac_var'}'` = yes; then
37995   cat >>confdefs.h <<_ACEOF
37996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37997 _ACEOF
37998
37999 else
38000   echo 'configure: cannot find needed function.'; exit 1
38001
38002 fi
38003 done
38004
38005
38006
38007 for ac_func in fchdir
38008 do
38009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38013   echo $ECHO_N "(cached) $ECHO_C" >&6
38014 else
38015   cat >conftest.$ac_ext <<_ACEOF
38016 /* confdefs.h.  */
38017 _ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h.  */
38021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38023 #define $ac_func innocuous_$ac_func
38024
38025 /* System header to define __stub macros and hopefully few prototypes,
38026     which can conflict with char $ac_func (); below.
38027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38028     <limits.h> exists even on freestanding compilers.  */
38029
38030 #ifdef __STDC__
38031 # include <limits.h>
38032 #else
38033 # include <assert.h>
38034 #endif
38035
38036 #undef $ac_func
38037
38038 /* Override any GCC internal prototype to avoid an error.
38039    Use char because int might match the return type of a GCC
38040    builtin and then its argument prototype would still apply.  */
38041 #ifdef __cplusplus
38042 extern "C"
38043 #endif
38044 char $ac_func ();
38045 /* The GNU C library defines this for functions which it implements
38046     to always fail with ENOSYS.  Some functions are actually named
38047     something starting with __ and the normal name is an alias.  */
38048 #if defined __stub_$ac_func || defined __stub___$ac_func
38049 choke me
38050 #endif
38051
38052 int
38053 main ()
38054 {
38055 return $ac_func ();
38056   ;
38057   return 0;
38058 }
38059 _ACEOF
38060 rm -f conftest.$ac_objext conftest$ac_exeext
38061 if { (ac_try="$ac_link"
38062 case "(($ac_try" in
38063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38064   *) ac_try_echo=$ac_try;;
38065 esac
38066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38067   (eval "$ac_link") 2>conftest.er1
38068   ac_status=$?
38069   grep -v '^ *+' conftest.er1 >conftest.err
38070   rm -f conftest.er1
38071   cat conftest.err >&5
38072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073   (exit $ac_status); } && {
38074          test -z "$ac_c_werror_flag" ||
38075          test ! -s conftest.err
38076        } && test -s conftest$ac_exeext &&
38077        $as_test_x conftest$ac_exeext; then
38078   eval "$as_ac_var=yes"
38079 else
38080   echo "$as_me: failed program was:" >&5
38081 sed 's/^/| /' conftest.$ac_ext >&5
38082
38083         eval "$as_ac_var=no"
38084 fi
38085
38086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38087       conftest$ac_exeext conftest.$ac_ext
38088 fi
38089 ac_res=`eval echo '${'$as_ac_var'}'`
38090                { echo "$as_me:$LINENO: result: $ac_res" >&5
38091 echo "${ECHO_T}$ac_res" >&6; }
38092 if test `eval echo '${'$as_ac_var'}'` = yes; then
38093   cat >>confdefs.h <<_ACEOF
38094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38095 _ACEOF
38096  cat >>confdefs.h <<\_ACEOF
38097 #define HAVE_FCHDIR 1
38098 _ACEOF
38099
38100 fi
38101 done
38102
38103
38104 for ac_func in strtoll
38105 do
38106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38110   echo $ECHO_N "(cached) $ECHO_C" >&6
38111 else
38112   cat >conftest.$ac_ext <<_ACEOF
38113 /* confdefs.h.  */
38114 _ACEOF
38115 cat confdefs.h >>conftest.$ac_ext
38116 cat >>conftest.$ac_ext <<_ACEOF
38117 /* end confdefs.h.  */
38118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38120 #define $ac_func innocuous_$ac_func
38121
38122 /* System header to define __stub macros and hopefully few prototypes,
38123     which can conflict with char $ac_func (); below.
38124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38125     <limits.h> exists even on freestanding compilers.  */
38126
38127 #ifdef __STDC__
38128 # include <limits.h>
38129 #else
38130 # include <assert.h>
38131 #endif
38132
38133 #undef $ac_func
38134
38135 /* Override any GCC internal prototype to avoid an error.
38136    Use char because int might match the return type of a GCC
38137    builtin and then its argument prototype would still apply.  */
38138 #ifdef __cplusplus
38139 extern "C"
38140 #endif
38141 char $ac_func ();
38142 /* The GNU C library defines this for functions which it implements
38143     to always fail with ENOSYS.  Some functions are actually named
38144     something starting with __ and the normal name is an alias.  */
38145 #if defined __stub_$ac_func || defined __stub___$ac_func
38146 choke me
38147 #endif
38148
38149 int
38150 main ()
38151 {
38152 return $ac_func ();
38153   ;
38154   return 0;
38155 }
38156 _ACEOF
38157 rm -f conftest.$ac_objext conftest$ac_exeext
38158 if { (ac_try="$ac_link"
38159 case "(($ac_try" in
38160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38161   *) ac_try_echo=$ac_try;;
38162 esac
38163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38164   (eval "$ac_link") 2>conftest.er1
38165   ac_status=$?
38166   grep -v '^ *+' conftest.er1 >conftest.err
38167   rm -f conftest.er1
38168   cat conftest.err >&5
38169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170   (exit $ac_status); } && {
38171          test -z "$ac_c_werror_flag" ||
38172          test ! -s conftest.err
38173        } && test -s conftest$ac_exeext &&
38174        $as_test_x conftest$ac_exeext; then
38175   eval "$as_ac_var=yes"
38176 else
38177   echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38179
38180         eval "$as_ac_var=no"
38181 fi
38182
38183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38184       conftest$ac_exeext conftest.$ac_ext
38185 fi
38186 ac_res=`eval echo '${'$as_ac_var'}'`
38187                { echo "$as_me:$LINENO: result: $ac_res" >&5
38188 echo "${ECHO_T}$ac_res" >&6; }
38189 if test `eval echo '${'$as_ac_var'}'` = yes; then
38190   cat >>confdefs.h <<_ACEOF
38191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38192 _ACEOF
38193  cat >>confdefs.h <<\_ACEOF
38194 #define HAVE_STRTOLL 1
38195 _ACEOF
38196
38197 fi
38198 done
38199
38200
38201 for ac_func in posix_fadvise
38202 do
38203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38207   echo $ECHO_N "(cached) $ECHO_C" >&6
38208 else
38209   cat >conftest.$ac_ext <<_ACEOF
38210 /* confdefs.h.  */
38211 _ACEOF
38212 cat confdefs.h >>conftest.$ac_ext
38213 cat >>conftest.$ac_ext <<_ACEOF
38214 /* end confdefs.h.  */
38215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38217 #define $ac_func innocuous_$ac_func
38218
38219 /* System header to define __stub macros and hopefully few prototypes,
38220     which can conflict with char $ac_func (); below.
38221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38222     <limits.h> exists even on freestanding compilers.  */
38223
38224 #ifdef __STDC__
38225 # include <limits.h>
38226 #else
38227 # include <assert.h>
38228 #endif
38229
38230 #undef $ac_func
38231
38232 /* Override any GCC internal prototype to avoid an error.
38233    Use char because int might match the return type of a GCC
38234    builtin and then its argument prototype would still apply.  */
38235 #ifdef __cplusplus
38236 extern "C"
38237 #endif
38238 char $ac_func ();
38239 /* The GNU C library defines this for functions which it implements
38240     to always fail with ENOSYS.  Some functions are actually named
38241     something starting with __ and the normal name is an alias.  */
38242 #if defined __stub_$ac_func || defined __stub___$ac_func
38243 choke me
38244 #endif
38245
38246 int
38247 main ()
38248 {
38249 return $ac_func ();
38250   ;
38251   return 0;
38252 }
38253 _ACEOF
38254 rm -f conftest.$ac_objext conftest$ac_exeext
38255 if { (ac_try="$ac_link"
38256 case "(($ac_try" in
38257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38258   *) ac_try_echo=$ac_try;;
38259 esac
38260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38261   (eval "$ac_link") 2>conftest.er1
38262   ac_status=$?
38263   grep -v '^ *+' conftest.er1 >conftest.err
38264   rm -f conftest.er1
38265   cat conftest.err >&5
38266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267   (exit $ac_status); } && {
38268          test -z "$ac_c_werror_flag" ||
38269          test ! -s conftest.err
38270        } && test -s conftest$ac_exeext &&
38271        $as_test_x conftest$ac_exeext; then
38272   eval "$as_ac_var=yes"
38273 else
38274   echo "$as_me: failed program was:" >&5
38275 sed 's/^/| /' conftest.$ac_ext >&5
38276
38277         eval "$as_ac_var=no"
38278 fi
38279
38280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38281       conftest$ac_exeext conftest.$ac_ext
38282 fi
38283 ac_res=`eval echo '${'$as_ac_var'}'`
38284                { echo "$as_me:$LINENO: result: $ac_res" >&5
38285 echo "${ECHO_T}$ac_res" >&6; }
38286 if test `eval echo '${'$as_ac_var'}'` = yes; then
38287   cat >>confdefs.h <<_ACEOF
38288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38289 _ACEOF
38290
38291 fi
38292 done
38293
38294
38295 for ac_func in fdatasync
38296 do
38297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38301   echo $ECHO_N "(cached) $ECHO_C" >&6
38302 else
38303   cat >conftest.$ac_ext <<_ACEOF
38304 /* confdefs.h.  */
38305 _ACEOF
38306 cat confdefs.h >>conftest.$ac_ext
38307 cat >>conftest.$ac_ext <<_ACEOF
38308 /* end confdefs.h.  */
38309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38311 #define $ac_func innocuous_$ac_func
38312
38313 /* System header to define __stub macros and hopefully few prototypes,
38314     which can conflict with char $ac_func (); below.
38315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38316     <limits.h> exists even on freestanding compilers.  */
38317
38318 #ifdef __STDC__
38319 # include <limits.h>
38320 #else
38321 # include <assert.h>
38322 #endif
38323
38324 #undef $ac_func
38325
38326 /* Override any GCC internal prototype to avoid an error.
38327    Use char because int might match the return type of a GCC
38328    builtin and then its argument prototype would still apply.  */
38329 #ifdef __cplusplus
38330 extern "C"
38331 #endif
38332 char $ac_func ();
38333 /* The GNU C library defines this for functions which it implements
38334     to always fail with ENOSYS.  Some functions are actually named
38335     something starting with __ and the normal name is an alias.  */
38336 #if defined __stub_$ac_func || defined __stub___$ac_func
38337 choke me
38338 #endif
38339
38340 int
38341 main ()
38342 {
38343 return $ac_func ();
38344   ;
38345   return 0;
38346 }
38347 _ACEOF
38348 rm -f conftest.$ac_objext conftest$ac_exeext
38349 if { (ac_try="$ac_link"
38350 case "(($ac_try" in
38351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38352   *) ac_try_echo=$ac_try;;
38353 esac
38354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38355   (eval "$ac_link") 2>conftest.er1
38356   ac_status=$?
38357   grep -v '^ *+' conftest.er1 >conftest.err
38358   rm -f conftest.er1
38359   cat conftest.err >&5
38360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361   (exit $ac_status); } && {
38362          test -z "$ac_c_werror_flag" ||
38363          test ! -s conftest.err
38364        } && test -s conftest$ac_exeext &&
38365        $as_test_x conftest$ac_exeext; then
38366   eval "$as_ac_var=yes"
38367 else
38368   echo "$as_me: failed program was:" >&5
38369 sed 's/^/| /' conftest.$ac_ext >&5
38370
38371         eval "$as_ac_var=no"
38372 fi
38373
38374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38375       conftest$ac_exeext conftest.$ac_ext
38376 fi
38377 ac_res=`eval echo '${'$as_ac_var'}'`
38378                { echo "$as_me:$LINENO: result: $ac_res" >&5
38379 echo "${ECHO_T}$ac_res" >&6; }
38380 if test `eval echo '${'$as_ac_var'}'` = yes; then
38381   cat >>confdefs.h <<_ACEOF
38382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38383 _ACEOF
38384
38385 fi
38386 done
38387
38388
38389
38390 for ac_func in chflags
38391 do
38392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38396   echo $ECHO_N "(cached) $ECHO_C" >&6
38397 else
38398   cat >conftest.$ac_ext <<_ACEOF
38399 /* confdefs.h.  */
38400 _ACEOF
38401 cat confdefs.h >>conftest.$ac_ext
38402 cat >>conftest.$ac_ext <<_ACEOF
38403 /* end confdefs.h.  */
38404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38406 #define $ac_func innocuous_$ac_func
38407
38408 /* System header to define __stub macros and hopefully few prototypes,
38409     which can conflict with char $ac_func (); below.
38410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38411     <limits.h> exists even on freestanding compilers.  */
38412
38413 #ifdef __STDC__
38414 # include <limits.h>
38415 #else
38416 # include <assert.h>
38417 #endif
38418
38419 #undef $ac_func
38420
38421 /* Override any GCC internal prototype to avoid an error.
38422    Use char because int might match the return type of a GCC
38423    builtin and then its argument prototype would still apply.  */
38424 #ifdef __cplusplus
38425 extern "C"
38426 #endif
38427 char $ac_func ();
38428 /* The GNU C library defines this for functions which it implements
38429     to always fail with ENOSYS.  Some functions are actually named
38430     something starting with __ and the normal name is an alias.  */
38431 #if defined __stub_$ac_func || defined __stub___$ac_func
38432 choke me
38433 #endif
38434
38435 int
38436 main ()
38437 {
38438 return $ac_func ();
38439   ;
38440   return 0;
38441 }
38442 _ACEOF
38443 rm -f conftest.$ac_objext conftest$ac_exeext
38444 if { (ac_try="$ac_link"
38445 case "(($ac_try" in
38446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447   *) ac_try_echo=$ac_try;;
38448 esac
38449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38450   (eval "$ac_link") 2>conftest.er1
38451   ac_status=$?
38452   grep -v '^ *+' conftest.er1 >conftest.err
38453   rm -f conftest.er1
38454   cat conftest.err >&5
38455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456   (exit $ac_status); } && {
38457          test -z "$ac_c_werror_flag" ||
38458          test ! -s conftest.err
38459        } && test -s conftest$ac_exeext &&
38460        $as_test_x conftest$ac_exeext; then
38461   eval "$as_ac_var=yes"
38462 else
38463   echo "$as_me: failed program was:" >&5
38464 sed 's/^/| /' conftest.$ac_ext >&5
38465
38466         eval "$as_ac_var=no"
38467 fi
38468
38469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38470       conftest$ac_exeext conftest.$ac_ext
38471 fi
38472 ac_res=`eval echo '${'$as_ac_var'}'`
38473                { echo "$as_me:$LINENO: result: $ac_res" >&5
38474 echo "${ECHO_T}$ac_res" >&6; }
38475 if test `eval echo '${'$as_ac_var'}'` = yes; then
38476   cat >>confdefs.h <<_ACEOF
38477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38478 _ACEOF
38479
38480 fi
38481 done
38482
38483
38484
38485
38486
38487
38488 for ac_func in snprintf vsnprintf gethostid fseeko
38489 do
38490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38494   echo $ECHO_N "(cached) $ECHO_C" >&6
38495 else
38496   cat >conftest.$ac_ext <<_ACEOF
38497 /* confdefs.h.  */
38498 _ACEOF
38499 cat confdefs.h >>conftest.$ac_ext
38500 cat >>conftest.$ac_ext <<_ACEOF
38501 /* end confdefs.h.  */
38502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38504 #define $ac_func innocuous_$ac_func
38505
38506 /* System header to define __stub macros and hopefully few prototypes,
38507     which can conflict with char $ac_func (); below.
38508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38509     <limits.h> exists even on freestanding compilers.  */
38510
38511 #ifdef __STDC__
38512 # include <limits.h>
38513 #else
38514 # include <assert.h>
38515 #endif
38516
38517 #undef $ac_func
38518
38519 /* Override any GCC internal prototype to avoid an error.
38520    Use char because int might match the return type of a GCC
38521    builtin and then its argument prototype would still apply.  */
38522 #ifdef __cplusplus
38523 extern "C"
38524 #endif
38525 char $ac_func ();
38526 /* The GNU C library defines this for functions which it implements
38527     to always fail with ENOSYS.  Some functions are actually named
38528     something starting with __ and the normal name is an alias.  */
38529 #if defined __stub_$ac_func || defined __stub___$ac_func
38530 choke me
38531 #endif
38532
38533 int
38534 main ()
38535 {
38536 return $ac_func ();
38537   ;
38538   return 0;
38539 }
38540 _ACEOF
38541 rm -f conftest.$ac_objext conftest$ac_exeext
38542 if { (ac_try="$ac_link"
38543 case "(($ac_try" in
38544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38545   *) ac_try_echo=$ac_try;;
38546 esac
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548   (eval "$ac_link") 2>conftest.er1
38549   ac_status=$?
38550   grep -v '^ *+' conftest.er1 >conftest.err
38551   rm -f conftest.er1
38552   cat conftest.err >&5
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); } && {
38555          test -z "$ac_c_werror_flag" ||
38556          test ! -s conftest.err
38557        } && test -s conftest$ac_exeext &&
38558        $as_test_x conftest$ac_exeext; then
38559   eval "$as_ac_var=yes"
38560 else
38561   echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38563
38564         eval "$as_ac_var=no"
38565 fi
38566
38567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38568       conftest$ac_exeext conftest.$ac_ext
38569 fi
38570 ac_res=`eval echo '${'$as_ac_var'}'`
38571                { echo "$as_me:$LINENO: result: $ac_res" >&5
38572 echo "${ECHO_T}$ac_res" >&6; }
38573 if test `eval echo '${'$as_ac_var'}'` = yes; then
38574   cat >>confdefs.h <<_ACEOF
38575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38576 _ACEOF
38577
38578 fi
38579 done
38580
38581
38582 { echo "$as_me:$LINENO: checking for va_copy" >&5
38583 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38584 if test "${ba_cv_va_copy+set}" = set; then
38585   echo $ECHO_N "(cached) $ECHO_C" >&6
38586 else
38587
38588        cat >conftest.$ac_ext <<_ACEOF
38589 /* confdefs.h.  */
38590 _ACEOF
38591 cat confdefs.h >>conftest.$ac_ext
38592 cat >>conftest.$ac_ext <<_ACEOF
38593 /* end confdefs.h.  */
38594
38595               #include <stdarg.h>
38596               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38597               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38598
38599 int
38600 main ()
38601 {
38602
38603               call_use_va_copy(1,2,3)
38604
38605   ;
38606   return 0;
38607 }
38608 _ACEOF
38609 rm -f conftest.$ac_objext conftest$ac_exeext
38610 if { (ac_try="$ac_link"
38611 case "(($ac_try" in
38612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38613   *) ac_try_echo=$ac_try;;
38614 esac
38615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38616   (eval "$ac_link") 2>conftest.er1
38617   ac_status=$?
38618   grep -v '^ *+' conftest.er1 >conftest.err
38619   rm -f conftest.er1
38620   cat conftest.err >&5
38621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622   (exit $ac_status); } && {
38623          test -z "$ac_c_werror_flag" ||
38624          test ! -s conftest.err
38625        } && test -s conftest$ac_exeext &&
38626        $as_test_x conftest$ac_exeext; then
38627
38628               ba_cv_va_copy=yes,
38629
38630 else
38631   echo "$as_me: failed program was:" >&5
38632 sed 's/^/| /' conftest.$ac_ext >&5
38633
38634
38635               ba_cv_va_copy=no
38636
38637
38638 fi
38639
38640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38641       conftest$ac_exeext conftest.$ac_ext
38642
38643
38644 fi
38645 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38646 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38647 test $ba_cv_va_copy = yes &&
38648 cat >>confdefs.h <<\_ACEOF
38649 #define HAVE_VA_COPY 1
38650 _ACEOF
38651
38652
38653
38654
38655
38656
38657 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38658 do
38659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38663   echo $ECHO_N "(cached) $ECHO_C" >&6
38664 else
38665   cat >conftest.$ac_ext <<_ACEOF
38666 /* confdefs.h.  */
38667 _ACEOF
38668 cat confdefs.h >>conftest.$ac_ext
38669 cat >>conftest.$ac_ext <<_ACEOF
38670 /* end confdefs.h.  */
38671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38673 #define $ac_func innocuous_$ac_func
38674
38675 /* System header to define __stub macros and hopefully few prototypes,
38676     which can conflict with char $ac_func (); below.
38677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38678     <limits.h> exists even on freestanding compilers.  */
38679
38680 #ifdef __STDC__
38681 # include <limits.h>
38682 #else
38683 # include <assert.h>
38684 #endif
38685
38686 #undef $ac_func
38687
38688 /* Override any GCC internal prototype to avoid an error.
38689    Use char because int might match the return type of a GCC
38690    builtin and then its argument prototype would still apply.  */
38691 #ifdef __cplusplus
38692 extern "C"
38693 #endif
38694 char $ac_func ();
38695 /* The GNU C library defines this for functions which it implements
38696     to always fail with ENOSYS.  Some functions are actually named
38697     something starting with __ and the normal name is an alias.  */
38698 #if defined __stub_$ac_func || defined __stub___$ac_func
38699 choke me
38700 #endif
38701
38702 int
38703 main ()
38704 {
38705 return $ac_func ();
38706   ;
38707   return 0;
38708 }
38709 _ACEOF
38710 rm -f conftest.$ac_objext conftest$ac_exeext
38711 if { (ac_try="$ac_link"
38712 case "(($ac_try" in
38713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38714   *) ac_try_echo=$ac_try;;
38715 esac
38716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38717   (eval "$ac_link") 2>conftest.er1
38718   ac_status=$?
38719   grep -v '^ *+' conftest.er1 >conftest.err
38720   rm -f conftest.er1
38721   cat conftest.err >&5
38722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38723   (exit $ac_status); } && {
38724          test -z "$ac_c_werror_flag" ||
38725          test ! -s conftest.err
38726        } && test -s conftest$ac_exeext &&
38727        $as_test_x conftest$ac_exeext; then
38728   eval "$as_ac_var=yes"
38729 else
38730   echo "$as_me: failed program was:" >&5
38731 sed 's/^/| /' conftest.$ac_ext >&5
38732
38733         eval "$as_ac_var=no"
38734 fi
38735
38736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38737       conftest$ac_exeext conftest.$ac_ext
38738 fi
38739 ac_res=`eval echo '${'$as_ac_var'}'`
38740                { echo "$as_me:$LINENO: result: $ac_res" >&5
38741 echo "${ECHO_T}$ac_res" >&6; }
38742 if test `eval echo '${'$as_ac_var'}'` = yes; then
38743   cat >>confdefs.h <<_ACEOF
38744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38745 _ACEOF
38746
38747 fi
38748 done
38749
38750
38751 # If resolver functions are not in libc check for -lnsl or -lresolv.
38752 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38753 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38754 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38755   echo $ECHO_N "(cached) $ECHO_C" >&6
38756 else
38757   cat >conftest.$ac_ext <<_ACEOF
38758 /* confdefs.h.  */
38759 _ACEOF
38760 cat confdefs.h >>conftest.$ac_ext
38761 cat >>conftest.$ac_ext <<_ACEOF
38762 /* end confdefs.h.  */
38763 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38765 #define gethostbyname_r innocuous_gethostbyname_r
38766
38767 /* System header to define __stub macros and hopefully few prototypes,
38768     which can conflict with char gethostbyname_r (); below.
38769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38770     <limits.h> exists even on freestanding compilers.  */
38771
38772 #ifdef __STDC__
38773 # include <limits.h>
38774 #else
38775 # include <assert.h>
38776 #endif
38777
38778 #undef gethostbyname_r
38779
38780 /* Override any GCC internal prototype to avoid an error.
38781    Use char because int might match the return type of a GCC
38782    builtin and then its argument prototype would still apply.  */
38783 #ifdef __cplusplus
38784 extern "C"
38785 #endif
38786 char gethostbyname_r ();
38787 /* The GNU C library defines this for functions which it implements
38788     to always fail with ENOSYS.  Some functions are actually named
38789     something starting with __ and the normal name is an alias.  */
38790 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38791 choke me
38792 #endif
38793
38794 int
38795 main ()
38796 {
38797 return gethostbyname_r ();
38798   ;
38799   return 0;
38800 }
38801 _ACEOF
38802 rm -f conftest.$ac_objext conftest$ac_exeext
38803 if { (ac_try="$ac_link"
38804 case "(($ac_try" in
38805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38806   *) ac_try_echo=$ac_try;;
38807 esac
38808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38809   (eval "$ac_link") 2>conftest.er1
38810   ac_status=$?
38811   grep -v '^ *+' conftest.er1 >conftest.err
38812   rm -f conftest.er1
38813   cat conftest.err >&5
38814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38815   (exit $ac_status); } && {
38816          test -z "$ac_c_werror_flag" ||
38817          test ! -s conftest.err
38818        } && test -s conftest$ac_exeext &&
38819        $as_test_x conftest$ac_exeext; then
38820   ac_cv_func_gethostbyname_r=yes
38821 else
38822   echo "$as_me: failed program was:" >&5
38823 sed 's/^/| /' conftest.$ac_ext >&5
38824
38825         ac_cv_func_gethostbyname_r=no
38826 fi
38827
38828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38829       conftest$ac_exeext conftest.$ac_ext
38830 fi
38831 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38832 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38833 if test $ac_cv_func_gethostbyname_r = yes; then
38834   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38835 echo "${ECHO_T}using libc's resolver" >&6; }
38836 else
38837
38838 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38839 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38840 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38841   echo $ECHO_N "(cached) $ECHO_C" >&6
38842 else
38843   ac_check_lib_save_LIBS=$LIBS
38844 LIBS="-lnsl  $LIBS"
38845 cat >conftest.$ac_ext <<_ACEOF
38846 /* confdefs.h.  */
38847 _ACEOF
38848 cat confdefs.h >>conftest.$ac_ext
38849 cat >>conftest.$ac_ext <<_ACEOF
38850 /* end confdefs.h.  */
38851
38852 /* Override any GCC internal prototype to avoid an error.
38853    Use char because int might match the return type of a GCC
38854    builtin and then its argument prototype would still apply.  */
38855 #ifdef __cplusplus
38856 extern "C"
38857 #endif
38858 char gethostbyname_r ();
38859 int
38860 main ()
38861 {
38862 return gethostbyname_r ();
38863   ;
38864   return 0;
38865 }
38866 _ACEOF
38867 rm -f conftest.$ac_objext conftest$ac_exeext
38868 if { (ac_try="$ac_link"
38869 case "(($ac_try" in
38870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38871   *) ac_try_echo=$ac_try;;
38872 esac
38873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38874   (eval "$ac_link") 2>conftest.er1
38875   ac_status=$?
38876   grep -v '^ *+' conftest.er1 >conftest.err
38877   rm -f conftest.er1
38878   cat conftest.err >&5
38879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38880   (exit $ac_status); } && {
38881          test -z "$ac_c_werror_flag" ||
38882          test ! -s conftest.err
38883        } && test -s conftest$ac_exeext &&
38884        $as_test_x conftest$ac_exeext; then
38885   ac_cv_lib_nsl_gethostbyname_r=yes
38886 else
38887   echo "$as_me: failed program was:" >&5
38888 sed 's/^/| /' conftest.$ac_ext >&5
38889
38890         ac_cv_lib_nsl_gethostbyname_r=no
38891 fi
38892
38893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38894       conftest$ac_exeext conftest.$ac_ext
38895 LIBS=$ac_check_lib_save_LIBS
38896 fi
38897 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38898 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38899 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38900   cat >>confdefs.h <<_ACEOF
38901 #define HAVE_LIBNSL 1
38902 _ACEOF
38903
38904   LIBS="-lnsl $LIBS"
38905
38906 fi
38907
38908
38909 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38910 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38911 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38912   echo $ECHO_N "(cached) $ECHO_C" >&6
38913 else
38914   ac_check_lib_save_LIBS=$LIBS
38915 LIBS="-lresolv  $LIBS"
38916 cat >conftest.$ac_ext <<_ACEOF
38917 /* confdefs.h.  */
38918 _ACEOF
38919 cat confdefs.h >>conftest.$ac_ext
38920 cat >>conftest.$ac_ext <<_ACEOF
38921 /* end confdefs.h.  */
38922
38923 /* Override any GCC internal prototype to avoid an error.
38924    Use char because int might match the return type of a GCC
38925    builtin and then its argument prototype would still apply.  */
38926 #ifdef __cplusplus
38927 extern "C"
38928 #endif
38929 char gethostbyname_r ();
38930 int
38931 main ()
38932 {
38933 return gethostbyname_r ();
38934   ;
38935   return 0;
38936 }
38937 _ACEOF
38938 rm -f conftest.$ac_objext conftest$ac_exeext
38939 if { (ac_try="$ac_link"
38940 case "(($ac_try" in
38941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38942   *) ac_try_echo=$ac_try;;
38943 esac
38944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38945   (eval "$ac_link") 2>conftest.er1
38946   ac_status=$?
38947   grep -v '^ *+' conftest.er1 >conftest.err
38948   rm -f conftest.er1
38949   cat conftest.err >&5
38950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951   (exit $ac_status); } && {
38952          test -z "$ac_c_werror_flag" ||
38953          test ! -s conftest.err
38954        } && test -s conftest$ac_exeext &&
38955        $as_test_x conftest$ac_exeext; then
38956   ac_cv_lib_resolv_gethostbyname_r=yes
38957 else
38958   echo "$as_me: failed program was:" >&5
38959 sed 's/^/| /' conftest.$ac_ext >&5
38960
38961         ac_cv_lib_resolv_gethostbyname_r=no
38962 fi
38963
38964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38965       conftest$ac_exeext conftest.$ac_ext
38966 LIBS=$ac_check_lib_save_LIBS
38967 fi
38968 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38969 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38970 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38971   cat >>confdefs.h <<_ACEOF
38972 #define HAVE_LIBRESOLV 1
38973 _ACEOF
38974
38975   LIBS="-lresolv $LIBS"
38976
38977 fi
38978
38979 fi
38980
38981
38982
38983 for ac_func in inet_pton
38984 do
38985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38989   echo $ECHO_N "(cached) $ECHO_C" >&6
38990 else
38991   cat >conftest.$ac_ext <<_ACEOF
38992 /* confdefs.h.  */
38993 _ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h.  */
38997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38999 #define $ac_func innocuous_$ac_func
39000
39001 /* System header to define __stub macros and hopefully few prototypes,
39002     which can conflict with char $ac_func (); below.
39003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39004     <limits.h> exists even on freestanding compilers.  */
39005
39006 #ifdef __STDC__
39007 # include <limits.h>
39008 #else
39009 # include <assert.h>
39010 #endif
39011
39012 #undef $ac_func
39013
39014 /* Override any GCC internal prototype to avoid an error.
39015    Use char because int might match the return type of a GCC
39016    builtin and then its argument prototype would still apply.  */
39017 #ifdef __cplusplus
39018 extern "C"
39019 #endif
39020 char $ac_func ();
39021 /* The GNU C library defines this for functions which it implements
39022     to always fail with ENOSYS.  Some functions are actually named
39023     something starting with __ and the normal name is an alias.  */
39024 #if defined __stub_$ac_func || defined __stub___$ac_func
39025 choke me
39026 #endif
39027
39028 int
39029 main ()
39030 {
39031 return $ac_func ();
39032   ;
39033   return 0;
39034 }
39035 _ACEOF
39036 rm -f conftest.$ac_objext conftest$ac_exeext
39037 if { (ac_try="$ac_link"
39038 case "(($ac_try" in
39039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39040   *) ac_try_echo=$ac_try;;
39041 esac
39042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39043   (eval "$ac_link") 2>conftest.er1
39044   ac_status=$?
39045   grep -v '^ *+' conftest.er1 >conftest.err
39046   rm -f conftest.er1
39047   cat conftest.err >&5
39048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049   (exit $ac_status); } && {
39050          test -z "$ac_c_werror_flag" ||
39051          test ! -s conftest.err
39052        } && test -s conftest$ac_exeext &&
39053        $as_test_x conftest$ac_exeext; then
39054   eval "$as_ac_var=yes"
39055 else
39056   echo "$as_me: failed program was:" >&5
39057 sed 's/^/| /' conftest.$ac_ext >&5
39058
39059         eval "$as_ac_var=no"
39060 fi
39061
39062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39063       conftest$ac_exeext conftest.$ac_ext
39064 fi
39065 ac_res=`eval echo '${'$as_ac_var'}'`
39066                { echo "$as_me:$LINENO: result: $ac_res" >&5
39067 echo "${ECHO_T}$ac_res" >&6; }
39068 if test `eval echo '${'$as_ac_var'}'` = yes; then
39069   cat >>confdefs.h <<_ACEOF
39070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39071 _ACEOF
39072  cat >>confdefs.h <<\_ACEOF
39073 #define HAVE_INET_PTON 1
39074 _ACEOF
39075
39076 fi
39077 done
39078
39079
39080 for ac_func in inet_ntop
39081 do
39082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39086   echo $ECHO_N "(cached) $ECHO_C" >&6
39087 else
39088   cat >conftest.$ac_ext <<_ACEOF
39089 /* confdefs.h.  */
39090 _ACEOF
39091 cat confdefs.h >>conftest.$ac_ext
39092 cat >>conftest.$ac_ext <<_ACEOF
39093 /* end confdefs.h.  */
39094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39096 #define $ac_func innocuous_$ac_func
39097
39098 /* System header to define __stub macros and hopefully few prototypes,
39099     which can conflict with char $ac_func (); below.
39100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39101     <limits.h> exists even on freestanding compilers.  */
39102
39103 #ifdef __STDC__
39104 # include <limits.h>
39105 #else
39106 # include <assert.h>
39107 #endif
39108
39109 #undef $ac_func
39110
39111 /* Override any GCC internal prototype to avoid an error.
39112    Use char because int might match the return type of a GCC
39113    builtin and then its argument prototype would still apply.  */
39114 #ifdef __cplusplus
39115 extern "C"
39116 #endif
39117 char $ac_func ();
39118 /* The GNU C library defines this for functions which it implements
39119     to always fail with ENOSYS.  Some functions are actually named
39120     something starting with __ and the normal name is an alias.  */
39121 #if defined __stub_$ac_func || defined __stub___$ac_func
39122 choke me
39123 #endif
39124
39125 int
39126 main ()
39127 {
39128 return $ac_func ();
39129   ;
39130   return 0;
39131 }
39132 _ACEOF
39133 rm -f conftest.$ac_objext conftest$ac_exeext
39134 if { (ac_try="$ac_link"
39135 case "(($ac_try" in
39136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39137   *) ac_try_echo=$ac_try;;
39138 esac
39139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39140   (eval "$ac_link") 2>conftest.er1
39141   ac_status=$?
39142   grep -v '^ *+' conftest.er1 >conftest.err
39143   rm -f conftest.er1
39144   cat conftest.err >&5
39145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146   (exit $ac_status); } && {
39147          test -z "$ac_c_werror_flag" ||
39148          test ! -s conftest.err
39149        } && test -s conftest$ac_exeext &&
39150        $as_test_x conftest$ac_exeext; then
39151   eval "$as_ac_var=yes"
39152 else
39153   echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.$ac_ext >&5
39155
39156         eval "$as_ac_var=no"
39157 fi
39158
39159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39160       conftest$ac_exeext conftest.$ac_ext
39161 fi
39162 ac_res=`eval echo '${'$as_ac_var'}'`
39163                { echo "$as_me:$LINENO: result: $ac_res" >&5
39164 echo "${ECHO_T}$ac_res" >&6; }
39165 if test `eval echo '${'$as_ac_var'}'` = yes; then
39166   cat >>confdefs.h <<_ACEOF
39167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39168 _ACEOF
39169  cat >>confdefs.h <<\_ACEOF
39170 #define HAVE_INET_NTOP 1
39171 _ACEOF
39172
39173 fi
39174 done
39175
39176
39177 for ac_func in gethostbyname2
39178 do
39179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39183   echo $ECHO_N "(cached) $ECHO_C" >&6
39184 else
39185   cat >conftest.$ac_ext <<_ACEOF
39186 /* confdefs.h.  */
39187 _ACEOF
39188 cat confdefs.h >>conftest.$ac_ext
39189 cat >>conftest.$ac_ext <<_ACEOF
39190 /* end confdefs.h.  */
39191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39193 #define $ac_func innocuous_$ac_func
39194
39195 /* System header to define __stub macros and hopefully few prototypes,
39196     which can conflict with char $ac_func (); below.
39197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39198     <limits.h> exists even on freestanding compilers.  */
39199
39200 #ifdef __STDC__
39201 # include <limits.h>
39202 #else
39203 # include <assert.h>
39204 #endif
39205
39206 #undef $ac_func
39207
39208 /* Override any GCC internal prototype to avoid an error.
39209    Use char because int might match the return type of a GCC
39210    builtin and then its argument prototype would still apply.  */
39211 #ifdef __cplusplus
39212 extern "C"
39213 #endif
39214 char $ac_func ();
39215 /* The GNU C library defines this for functions which it implements
39216     to always fail with ENOSYS.  Some functions are actually named
39217     something starting with __ and the normal name is an alias.  */
39218 #if defined __stub_$ac_func || defined __stub___$ac_func
39219 choke me
39220 #endif
39221
39222 int
39223 main ()
39224 {
39225 return $ac_func ();
39226   ;
39227   return 0;
39228 }
39229 _ACEOF
39230 rm -f conftest.$ac_objext conftest$ac_exeext
39231 if { (ac_try="$ac_link"
39232 case "(($ac_try" in
39233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39234   *) ac_try_echo=$ac_try;;
39235 esac
39236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39237   (eval "$ac_link") 2>conftest.er1
39238   ac_status=$?
39239   grep -v '^ *+' conftest.er1 >conftest.err
39240   rm -f conftest.er1
39241   cat conftest.err >&5
39242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243   (exit $ac_status); } && {
39244          test -z "$ac_c_werror_flag" ||
39245          test ! -s conftest.err
39246        } && test -s conftest$ac_exeext &&
39247        $as_test_x conftest$ac_exeext; then
39248   eval "$as_ac_var=yes"
39249 else
39250   echo "$as_me: failed program was:" >&5
39251 sed 's/^/| /' conftest.$ac_ext >&5
39252
39253         eval "$as_ac_var=no"
39254 fi
39255
39256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39257       conftest$ac_exeext conftest.$ac_ext
39258 fi
39259 ac_res=`eval echo '${'$as_ac_var'}'`
39260                { echo "$as_me:$LINENO: result: $ac_res" >&5
39261 echo "${ECHO_T}$ac_res" >&6; }
39262 if test `eval echo '${'$as_ac_var'}'` = yes; then
39263   cat >>confdefs.h <<_ACEOF
39264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39265 _ACEOF
39266  cat >>confdefs.h <<\_ACEOF
39267 #define HAVE_GETHOSTBYNAME2 1
39268 _ACEOF
39269
39270 fi
39271 done
39272
39273
39274 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39275 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39276 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39277   echo $ECHO_N "(cached) $ECHO_C" >&6
39278 else
39279
39280        cat >conftest.$ac_ext <<_ACEOF
39281 /* confdefs.h.  */
39282 _ACEOF
39283 cat confdefs.h >>conftest.$ac_ext
39284 cat >>conftest.$ac_ext <<_ACEOF
39285 /* end confdefs.h.  */
39286
39287               #include <sys/socket.h>
39288
39289 int
39290 main ()
39291 {
39292
39293               struct sockaddr s; s.sa_len;
39294
39295   ;
39296   return 0;
39297 }
39298 _ACEOF
39299 rm -f conftest.$ac_objext
39300 if { (ac_try="$ac_compile"
39301 case "(($ac_try" in
39302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39303   *) ac_try_echo=$ac_try;;
39304 esac
39305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39306   (eval "$ac_compile") 2>conftest.er1
39307   ac_status=$?
39308   grep -v '^ *+' conftest.er1 >conftest.err
39309   rm -f conftest.er1
39310   cat conftest.err >&5
39311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312   (exit $ac_status); } && {
39313          test -z "$ac_c_werror_flag" ||
39314          test ! -s conftest.err
39315        } && test -s conftest.$ac_objext; then
39316
39317              ac_cv_struct_sockaddr_sa_len=yes
39318
39319 else
39320   echo "$as_me: failed program was:" >&5
39321 sed 's/^/| /' conftest.$ac_ext >&5
39322
39323         ac_cv_struct_sockaddr_sa_len=no
39324
39325
39326 fi
39327
39328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39329
39330
39331 fi
39332 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39333 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39334
39335 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39336
39337 cat >>confdefs.h <<\_ACEOF
39338 #define HAVE_SA_LEN 1
39339 _ACEOF
39340
39341 fi
39342
39343
39344 for ac_func in strftime
39345 do
39346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39350   echo $ECHO_N "(cached) $ECHO_C" >&6
39351 else
39352   cat >conftest.$ac_ext <<_ACEOF
39353 /* confdefs.h.  */
39354 _ACEOF
39355 cat confdefs.h >>conftest.$ac_ext
39356 cat >>conftest.$ac_ext <<_ACEOF
39357 /* end confdefs.h.  */
39358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39360 #define $ac_func innocuous_$ac_func
39361
39362 /* System header to define __stub macros and hopefully few prototypes,
39363     which can conflict with char $ac_func (); below.
39364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39365     <limits.h> exists even on freestanding compilers.  */
39366
39367 #ifdef __STDC__
39368 # include <limits.h>
39369 #else
39370 # include <assert.h>
39371 #endif
39372
39373 #undef $ac_func
39374
39375 /* Override any GCC internal prototype to avoid an error.
39376    Use char because int might match the return type of a GCC
39377    builtin and then its argument prototype would still apply.  */
39378 #ifdef __cplusplus
39379 extern "C"
39380 #endif
39381 char $ac_func ();
39382 /* The GNU C library defines this for functions which it implements
39383     to always fail with ENOSYS.  Some functions are actually named
39384     something starting with __ and the normal name is an alias.  */
39385 #if defined __stub_$ac_func || defined __stub___$ac_func
39386 choke me
39387 #endif
39388
39389 int
39390 main ()
39391 {
39392 return $ac_func ();
39393   ;
39394   return 0;
39395 }
39396 _ACEOF
39397 rm -f conftest.$ac_objext conftest$ac_exeext
39398 if { (ac_try="$ac_link"
39399 case "(($ac_try" in
39400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39401   *) ac_try_echo=$ac_try;;
39402 esac
39403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39404   (eval "$ac_link") 2>conftest.er1
39405   ac_status=$?
39406   grep -v '^ *+' conftest.er1 >conftest.err
39407   rm -f conftest.er1
39408   cat conftest.err >&5
39409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39410   (exit $ac_status); } && {
39411          test -z "$ac_c_werror_flag" ||
39412          test ! -s conftest.err
39413        } && test -s conftest$ac_exeext &&
39414        $as_test_x conftest$ac_exeext; then
39415   eval "$as_ac_var=yes"
39416 else
39417   echo "$as_me: failed program was:" >&5
39418 sed 's/^/| /' conftest.$ac_ext >&5
39419
39420         eval "$as_ac_var=no"
39421 fi
39422
39423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39424       conftest$ac_exeext conftest.$ac_ext
39425 fi
39426 ac_res=`eval echo '${'$as_ac_var'}'`
39427                { echo "$as_me:$LINENO: result: $ac_res" >&5
39428 echo "${ECHO_T}$ac_res" >&6; }
39429 if test `eval echo '${'$as_ac_var'}'` = yes; then
39430   cat >>confdefs.h <<_ACEOF
39431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39432 _ACEOF
39433
39434 else
39435   # strftime is in -lintl on SCO UNIX.
39436 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39437 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39438 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39439   echo $ECHO_N "(cached) $ECHO_C" >&6
39440 else
39441   ac_check_lib_save_LIBS=$LIBS
39442 LIBS="-lintl  $LIBS"
39443 cat >conftest.$ac_ext <<_ACEOF
39444 /* confdefs.h.  */
39445 _ACEOF
39446 cat confdefs.h >>conftest.$ac_ext
39447 cat >>conftest.$ac_ext <<_ACEOF
39448 /* end confdefs.h.  */
39449
39450 /* Override any GCC internal prototype to avoid an error.
39451    Use char because int might match the return type of a GCC
39452    builtin and then its argument prototype would still apply.  */
39453 #ifdef __cplusplus
39454 extern "C"
39455 #endif
39456 char strftime ();
39457 int
39458 main ()
39459 {
39460 return strftime ();
39461   ;
39462   return 0;
39463 }
39464 _ACEOF
39465 rm -f conftest.$ac_objext conftest$ac_exeext
39466 if { (ac_try="$ac_link"
39467 case "(($ac_try" in
39468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39469   *) ac_try_echo=$ac_try;;
39470 esac
39471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39472   (eval "$ac_link") 2>conftest.er1
39473   ac_status=$?
39474   grep -v '^ *+' conftest.er1 >conftest.err
39475   rm -f conftest.er1
39476   cat conftest.err >&5
39477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478   (exit $ac_status); } && {
39479          test -z "$ac_c_werror_flag" ||
39480          test ! -s conftest.err
39481        } && test -s conftest$ac_exeext &&
39482        $as_test_x conftest$ac_exeext; then
39483   ac_cv_lib_intl_strftime=yes
39484 else
39485   echo "$as_me: failed program was:" >&5
39486 sed 's/^/| /' conftest.$ac_ext >&5
39487
39488         ac_cv_lib_intl_strftime=no
39489 fi
39490
39491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39492       conftest$ac_exeext conftest.$ac_ext
39493 LIBS=$ac_check_lib_save_LIBS
39494 fi
39495 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39496 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39497 if test $ac_cv_lib_intl_strftime = yes; then
39498   cat >>confdefs.h <<\_ACEOF
39499 #define HAVE_STRFTIME 1
39500 _ACEOF
39501
39502 LIBS="-lintl $LIBS"
39503 fi
39504
39505 fi
39506 done
39507
39508
39509 for ac_func in vprintf
39510 do
39511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39515   echo $ECHO_N "(cached) $ECHO_C" >&6
39516 else
39517   cat >conftest.$ac_ext <<_ACEOF
39518 /* confdefs.h.  */
39519 _ACEOF
39520 cat confdefs.h >>conftest.$ac_ext
39521 cat >>conftest.$ac_ext <<_ACEOF
39522 /* end confdefs.h.  */
39523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39525 #define $ac_func innocuous_$ac_func
39526
39527 /* System header to define __stub macros and hopefully few prototypes,
39528     which can conflict with char $ac_func (); below.
39529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39530     <limits.h> exists even on freestanding compilers.  */
39531
39532 #ifdef __STDC__
39533 # include <limits.h>
39534 #else
39535 # include <assert.h>
39536 #endif
39537
39538 #undef $ac_func
39539
39540 /* Override any GCC internal prototype to avoid an error.
39541    Use char because int might match the return type of a GCC
39542    builtin and then its argument prototype would still apply.  */
39543 #ifdef __cplusplus
39544 extern "C"
39545 #endif
39546 char $ac_func ();
39547 /* The GNU C library defines this for functions which it implements
39548     to always fail with ENOSYS.  Some functions are actually named
39549     something starting with __ and the normal name is an alias.  */
39550 #if defined __stub_$ac_func || defined __stub___$ac_func
39551 choke me
39552 #endif
39553
39554 int
39555 main ()
39556 {
39557 return $ac_func ();
39558   ;
39559   return 0;
39560 }
39561 _ACEOF
39562 rm -f conftest.$ac_objext conftest$ac_exeext
39563 if { (ac_try="$ac_link"
39564 case "(($ac_try" in
39565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39566   *) ac_try_echo=$ac_try;;
39567 esac
39568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39569   (eval "$ac_link") 2>conftest.er1
39570   ac_status=$?
39571   grep -v '^ *+' conftest.er1 >conftest.err
39572   rm -f conftest.er1
39573   cat conftest.err >&5
39574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39575   (exit $ac_status); } && {
39576          test -z "$ac_c_werror_flag" ||
39577          test ! -s conftest.err
39578        } && test -s conftest$ac_exeext &&
39579        $as_test_x conftest$ac_exeext; then
39580   eval "$as_ac_var=yes"
39581 else
39582   echo "$as_me: failed program was:" >&5
39583 sed 's/^/| /' conftest.$ac_ext >&5
39584
39585         eval "$as_ac_var=no"
39586 fi
39587
39588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39589       conftest$ac_exeext conftest.$ac_ext
39590 fi
39591 ac_res=`eval echo '${'$as_ac_var'}'`
39592                { echo "$as_me:$LINENO: result: $ac_res" >&5
39593 echo "${ECHO_T}$ac_res" >&6; }
39594 if test `eval echo '${'$as_ac_var'}'` = yes; then
39595   cat >>confdefs.h <<_ACEOF
39596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39597 _ACEOF
39598
39599 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39600 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39601 if test "${ac_cv_func__doprnt+set}" = set; then
39602   echo $ECHO_N "(cached) $ECHO_C" >&6
39603 else
39604   cat >conftest.$ac_ext <<_ACEOF
39605 /* confdefs.h.  */
39606 _ACEOF
39607 cat confdefs.h >>conftest.$ac_ext
39608 cat >>conftest.$ac_ext <<_ACEOF
39609 /* end confdefs.h.  */
39610 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39612 #define _doprnt innocuous__doprnt
39613
39614 /* System header to define __stub macros and hopefully few prototypes,
39615     which can conflict with char _doprnt (); below.
39616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39617     <limits.h> exists even on freestanding compilers.  */
39618
39619 #ifdef __STDC__
39620 # include <limits.h>
39621 #else
39622 # include <assert.h>
39623 #endif
39624
39625 #undef _doprnt
39626
39627 /* Override any GCC internal prototype to avoid an error.
39628    Use char because int might match the return type of a GCC
39629    builtin and then its argument prototype would still apply.  */
39630 #ifdef __cplusplus
39631 extern "C"
39632 #endif
39633 char _doprnt ();
39634 /* The GNU C library defines this for functions which it implements
39635     to always fail with ENOSYS.  Some functions are actually named
39636     something starting with __ and the normal name is an alias.  */
39637 #if defined __stub__doprnt || defined __stub____doprnt
39638 choke me
39639 #endif
39640
39641 int
39642 main ()
39643 {
39644 return _doprnt ();
39645   ;
39646   return 0;
39647 }
39648 _ACEOF
39649 rm -f conftest.$ac_objext conftest$ac_exeext
39650 if { (ac_try="$ac_link"
39651 case "(($ac_try" in
39652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39653   *) ac_try_echo=$ac_try;;
39654 esac
39655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39656   (eval "$ac_link") 2>conftest.er1
39657   ac_status=$?
39658   grep -v '^ *+' conftest.er1 >conftest.err
39659   rm -f conftest.er1
39660   cat conftest.err >&5
39661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662   (exit $ac_status); } && {
39663          test -z "$ac_c_werror_flag" ||
39664          test ! -s conftest.err
39665        } && test -s conftest$ac_exeext &&
39666        $as_test_x conftest$ac_exeext; then
39667   ac_cv_func__doprnt=yes
39668 else
39669   echo "$as_me: failed program was:" >&5
39670 sed 's/^/| /' conftest.$ac_ext >&5
39671
39672         ac_cv_func__doprnt=no
39673 fi
39674
39675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39676       conftest$ac_exeext conftest.$ac_ext
39677 fi
39678 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39679 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39680 if test $ac_cv_func__doprnt = yes; then
39681
39682 cat >>confdefs.h <<\_ACEOF
39683 #define HAVE_DOPRNT 1
39684 _ACEOF
39685
39686 fi
39687
39688 fi
39689 done
39690
39691
39692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39693 # for constant arguments.  Useless!
39694 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39695 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39696 if test "${ac_cv_working_alloca_h+set}" = set; then
39697   echo $ECHO_N "(cached) $ECHO_C" >&6
39698 else
39699   cat >conftest.$ac_ext <<_ACEOF
39700 /* confdefs.h.  */
39701 _ACEOF
39702 cat confdefs.h >>conftest.$ac_ext
39703 cat >>conftest.$ac_ext <<_ACEOF
39704 /* end confdefs.h.  */
39705 #include <alloca.h>
39706 int
39707 main ()
39708 {
39709 char *p = (char *) alloca (2 * sizeof (int));
39710                           if (p) return 0;
39711   ;
39712   return 0;
39713 }
39714 _ACEOF
39715 rm -f conftest.$ac_objext conftest$ac_exeext
39716 if { (ac_try="$ac_link"
39717 case "(($ac_try" in
39718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39719   *) ac_try_echo=$ac_try;;
39720 esac
39721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39722   (eval "$ac_link") 2>conftest.er1
39723   ac_status=$?
39724   grep -v '^ *+' conftest.er1 >conftest.err
39725   rm -f conftest.er1
39726   cat conftest.err >&5
39727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728   (exit $ac_status); } && {
39729          test -z "$ac_c_werror_flag" ||
39730          test ! -s conftest.err
39731        } && test -s conftest$ac_exeext &&
39732        $as_test_x conftest$ac_exeext; then
39733   ac_cv_working_alloca_h=yes
39734 else
39735   echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39737
39738         ac_cv_working_alloca_h=no
39739 fi
39740
39741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39742       conftest$ac_exeext conftest.$ac_ext
39743 fi
39744 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39746 if test $ac_cv_working_alloca_h = yes; then
39747
39748 cat >>confdefs.h <<\_ACEOF
39749 #define HAVE_ALLOCA_H 1
39750 _ACEOF
39751
39752 fi
39753
39754 { echo "$as_me:$LINENO: checking for alloca" >&5
39755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39756 if test "${ac_cv_func_alloca_works+set}" = set; then
39757   echo $ECHO_N "(cached) $ECHO_C" >&6
39758 else
39759   cat >conftest.$ac_ext <<_ACEOF
39760 /* confdefs.h.  */
39761 _ACEOF
39762 cat confdefs.h >>conftest.$ac_ext
39763 cat >>conftest.$ac_ext <<_ACEOF
39764 /* end confdefs.h.  */
39765 #ifdef __GNUC__
39766 # define alloca __builtin_alloca
39767 #else
39768 # ifdef _MSC_VER
39769 #  include <malloc.h>
39770 #  define alloca _alloca
39771 # else
39772 #  ifdef HAVE_ALLOCA_H
39773 #   include <alloca.h>
39774 #  else
39775 #   ifdef _AIX
39776  #pragma alloca
39777 #   else
39778 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39779 char *alloca ();
39780 #    endif
39781 #   endif
39782 #  endif
39783 # endif
39784 #endif
39785
39786 int
39787 main ()
39788 {
39789 char *p = (char *) alloca (1);
39790                                     if (p) return 0;
39791   ;
39792   return 0;
39793 }
39794 _ACEOF
39795 rm -f conftest.$ac_objext conftest$ac_exeext
39796 if { (ac_try="$ac_link"
39797 case "(($ac_try" in
39798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39799   *) ac_try_echo=$ac_try;;
39800 esac
39801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39802   (eval "$ac_link") 2>conftest.er1
39803   ac_status=$?
39804   grep -v '^ *+' conftest.er1 >conftest.err
39805   rm -f conftest.er1
39806   cat conftest.err >&5
39807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808   (exit $ac_status); } && {
39809          test -z "$ac_c_werror_flag" ||
39810          test ! -s conftest.err
39811        } && test -s conftest$ac_exeext &&
39812        $as_test_x conftest$ac_exeext; then
39813   ac_cv_func_alloca_works=yes
39814 else
39815   echo "$as_me: failed program was:" >&5
39816 sed 's/^/| /' conftest.$ac_ext >&5
39817
39818         ac_cv_func_alloca_works=no
39819 fi
39820
39821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39822       conftest$ac_exeext conftest.$ac_ext
39823 fi
39824 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39825 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39826
39827 if test $ac_cv_func_alloca_works = yes; then
39828
39829 cat >>confdefs.h <<\_ACEOF
39830 #define HAVE_ALLOCA 1
39831 _ACEOF
39832
39833 else
39834   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39835 # that cause trouble.  Some versions do not even contain alloca or
39836 # contain a buggy version.  If you still want to use their alloca,
39837 # use ar to extract alloca.o from them instead of compiling alloca.c.
39838
39839 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39840
39841 cat >>confdefs.h <<\_ACEOF
39842 #define C_ALLOCA 1
39843 _ACEOF
39844
39845
39846 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39847 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39848 if test "${ac_cv_os_cray+set}" = set; then
39849   echo $ECHO_N "(cached) $ECHO_C" >&6
39850 else
39851   cat >conftest.$ac_ext <<_ACEOF
39852 /* confdefs.h.  */
39853 _ACEOF
39854 cat confdefs.h >>conftest.$ac_ext
39855 cat >>conftest.$ac_ext <<_ACEOF
39856 /* end confdefs.h.  */
39857 #if defined CRAY && ! defined CRAY2
39858 webecray
39859 #else
39860 wenotbecray
39861 #endif
39862
39863 _ACEOF
39864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39865   $EGREP "webecray" >/dev/null 2>&1; then
39866   ac_cv_os_cray=yes
39867 else
39868   ac_cv_os_cray=no
39869 fi
39870 rm -f conftest*
39871
39872 fi
39873 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39874 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39875 if test $ac_cv_os_cray = yes; then
39876   for ac_func in _getb67 GETB67 getb67; do
39877     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39881   echo $ECHO_N "(cached) $ECHO_C" >&6
39882 else
39883   cat >conftest.$ac_ext <<_ACEOF
39884 /* confdefs.h.  */
39885 _ACEOF
39886 cat confdefs.h >>conftest.$ac_ext
39887 cat >>conftest.$ac_ext <<_ACEOF
39888 /* end confdefs.h.  */
39889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39891 #define $ac_func innocuous_$ac_func
39892
39893 /* System header to define __stub macros and hopefully few prototypes,
39894     which can conflict with char $ac_func (); below.
39895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39896     <limits.h> exists even on freestanding compilers.  */
39897
39898 #ifdef __STDC__
39899 # include <limits.h>
39900 #else
39901 # include <assert.h>
39902 #endif
39903
39904 #undef $ac_func
39905
39906 /* Override any GCC internal prototype to avoid an error.
39907    Use char because int might match the return type of a GCC
39908    builtin and then its argument prototype would still apply.  */
39909 #ifdef __cplusplus
39910 extern "C"
39911 #endif
39912 char $ac_func ();
39913 /* The GNU C library defines this for functions which it implements
39914     to always fail with ENOSYS.  Some functions are actually named
39915     something starting with __ and the normal name is an alias.  */
39916 #if defined __stub_$ac_func || defined __stub___$ac_func
39917 choke me
39918 #endif
39919
39920 int
39921 main ()
39922 {
39923 return $ac_func ();
39924   ;
39925   return 0;
39926 }
39927 _ACEOF
39928 rm -f conftest.$ac_objext conftest$ac_exeext
39929 if { (ac_try="$ac_link"
39930 case "(($ac_try" in
39931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39932   *) ac_try_echo=$ac_try;;
39933 esac
39934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39935   (eval "$ac_link") 2>conftest.er1
39936   ac_status=$?
39937   grep -v '^ *+' conftest.er1 >conftest.err
39938   rm -f conftest.er1
39939   cat conftest.err >&5
39940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941   (exit $ac_status); } && {
39942          test -z "$ac_c_werror_flag" ||
39943          test ! -s conftest.err
39944        } && test -s conftest$ac_exeext &&
39945        $as_test_x conftest$ac_exeext; then
39946   eval "$as_ac_var=yes"
39947 else
39948   echo "$as_me: failed program was:" >&5
39949 sed 's/^/| /' conftest.$ac_ext >&5
39950
39951         eval "$as_ac_var=no"
39952 fi
39953
39954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39955       conftest$ac_exeext conftest.$ac_ext
39956 fi
39957 ac_res=`eval echo '${'$as_ac_var'}'`
39958                { echo "$as_me:$LINENO: result: $ac_res" >&5
39959 echo "${ECHO_T}$ac_res" >&6; }
39960 if test `eval echo '${'$as_ac_var'}'` = yes; then
39961
39962 cat >>confdefs.h <<_ACEOF
39963 #define CRAY_STACKSEG_END $ac_func
39964 _ACEOF
39965
39966     break
39967 fi
39968
39969   done
39970 fi
39971
39972 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39973 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39974 if test "${ac_cv_c_stack_direction+set}" = set; then
39975   echo $ECHO_N "(cached) $ECHO_C" >&6
39976 else
39977   if test "$cross_compiling" = yes; then
39978   ac_cv_c_stack_direction=0
39979 else
39980   cat >conftest.$ac_ext <<_ACEOF
39981 /* confdefs.h.  */
39982 _ACEOF
39983 cat confdefs.h >>conftest.$ac_ext
39984 cat >>conftest.$ac_ext <<_ACEOF
39985 /* end confdefs.h.  */
39986 $ac_includes_default
39987 int
39988 find_stack_direction ()
39989 {
39990   static char *addr = 0;
39991   auto char dummy;
39992   if (addr == 0)
39993     {
39994       addr = &dummy;
39995       return find_stack_direction ();
39996     }
39997   else
39998     return (&dummy > addr) ? 1 : -1;
39999 }
40000
40001 int
40002 main ()
40003 {
40004   return find_stack_direction () < 0;
40005 }
40006 _ACEOF
40007 rm -f conftest$ac_exeext
40008 if { (ac_try="$ac_link"
40009 case "(($ac_try" in
40010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40011   *) ac_try_echo=$ac_try;;
40012 esac
40013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40014   (eval "$ac_link") 2>&5
40015   ac_status=$?
40016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40018   { (case "(($ac_try" in
40019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40020   *) ac_try_echo=$ac_try;;
40021 esac
40022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40023   (eval "$ac_try") 2>&5
40024   ac_status=$?
40025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026   (exit $ac_status); }; }; then
40027   ac_cv_c_stack_direction=1
40028 else
40029   echo "$as_me: program exited with status $ac_status" >&5
40030 echo "$as_me: failed program was:" >&5
40031 sed 's/^/| /' conftest.$ac_ext >&5
40032
40033 ( exit $ac_status )
40034 ac_cv_c_stack_direction=-1
40035 fi
40036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40037 fi
40038
40039
40040 fi
40041 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40042 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40043
40044 cat >>confdefs.h <<_ACEOF
40045 #define STACK_DIRECTION $ac_cv_c_stack_direction
40046 _ACEOF
40047
40048
40049 fi
40050
40051 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40052 # -lseq on Dynix/PTX, -lgen on Unixware.
40053 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40054 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40055 if test "${ac_cv_search_getmntent+set}" = set; then
40056   echo $ECHO_N "(cached) $ECHO_C" >&6
40057 else
40058   ac_func_search_save_LIBS=$LIBS
40059 cat >conftest.$ac_ext <<_ACEOF
40060 /* confdefs.h.  */
40061 _ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h.  */
40065
40066 /* Override any GCC internal prototype to avoid an error.
40067    Use char because int might match the return type of a GCC
40068    builtin and then its argument prototype would still apply.  */
40069 #ifdef __cplusplus
40070 extern "C"
40071 #endif
40072 char getmntent ();
40073 int
40074 main ()
40075 {
40076 return getmntent ();
40077   ;
40078   return 0;
40079 }
40080 _ACEOF
40081 for ac_lib in '' sun seq gen; do
40082   if test -z "$ac_lib"; then
40083     ac_res="none required"
40084   else
40085     ac_res=-l$ac_lib
40086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40087   fi
40088   rm -f conftest.$ac_objext conftest$ac_exeext
40089 if { (ac_try="$ac_link"
40090 case "(($ac_try" in
40091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40092   *) ac_try_echo=$ac_try;;
40093 esac
40094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40095   (eval "$ac_link") 2>conftest.er1
40096   ac_status=$?
40097   grep -v '^ *+' conftest.er1 >conftest.err
40098   rm -f conftest.er1
40099   cat conftest.err >&5
40100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40101   (exit $ac_status); } && {
40102          test -z "$ac_c_werror_flag" ||
40103          test ! -s conftest.err
40104        } && test -s conftest$ac_exeext &&
40105        $as_test_x conftest$ac_exeext; then
40106   ac_cv_search_getmntent=$ac_res
40107 else
40108   echo "$as_me: failed program was:" >&5
40109 sed 's/^/| /' conftest.$ac_ext >&5
40110
40111
40112 fi
40113
40114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40115       conftest$ac_exeext
40116   if test "${ac_cv_search_getmntent+set}" = set; then
40117   break
40118 fi
40119 done
40120 if test "${ac_cv_search_getmntent+set}" = set; then
40121   :
40122 else
40123   ac_cv_search_getmntent=no
40124 fi
40125 rm conftest.$ac_ext
40126 LIBS=$ac_func_search_save_LIBS
40127 fi
40128 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40129 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40130 ac_res=$ac_cv_search_getmntent
40131 if test "$ac_res" != no; then
40132   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40133   ac_cv_func_getmntent=yes
40134
40135 cat >>confdefs.h <<\_ACEOF
40136 #define HAVE_GETMNTENT 1
40137 _ACEOF
40138
40139 else
40140   ac_cv_func_getmntent=no
40141 fi
40142
40143
40144 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40145 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40146 if test "${ac_cv_func_closedir_void+set}" = set; then
40147   echo $ECHO_N "(cached) $ECHO_C" >&6
40148 else
40149   if test "$cross_compiling" = yes; then
40150   ac_cv_func_closedir_void=yes
40151 else
40152   cat >conftest.$ac_ext <<_ACEOF
40153 /* confdefs.h.  */
40154 _ACEOF
40155 cat confdefs.h >>conftest.$ac_ext
40156 cat >>conftest.$ac_ext <<_ACEOF
40157 /* end confdefs.h.  */
40158 $ac_includes_default
40159 #include <$ac_header_dirent>
40160 #ifndef __cplusplus
40161 int closedir ();
40162 #endif
40163
40164 int
40165 main ()
40166 {
40167 return closedir (opendir (".")) != 0;
40168   ;
40169   return 0;
40170 }
40171 _ACEOF
40172 rm -f conftest$ac_exeext
40173 if { (ac_try="$ac_link"
40174 case "(($ac_try" in
40175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40176   *) ac_try_echo=$ac_try;;
40177 esac
40178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40179   (eval "$ac_link") 2>&5
40180   ac_status=$?
40181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40183   { (case "(($ac_try" in
40184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40185   *) ac_try_echo=$ac_try;;
40186 esac
40187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40188   (eval "$ac_try") 2>&5
40189   ac_status=$?
40190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191   (exit $ac_status); }; }; then
40192   ac_cv_func_closedir_void=no
40193 else
40194   echo "$as_me: program exited with status $ac_status" >&5
40195 echo "$as_me: failed program was:" >&5
40196 sed 's/^/| /' conftest.$ac_ext >&5
40197
40198 ( exit $ac_status )
40199 ac_cv_func_closedir_void=yes
40200 fi
40201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40202 fi
40203
40204
40205 fi
40206 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40207 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40208 if test $ac_cv_func_closedir_void = yes; then
40209
40210 cat >>confdefs.h <<\_ACEOF
40211 #define CLOSEDIR_VOID 1
40212 _ACEOF
40213
40214 fi
40215
40216 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40217 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40218 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40219   echo $ECHO_N "(cached) $ECHO_C" >&6
40220 else
40221   if test "$cross_compiling" = yes; then
40222   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40223 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40224    { (exit 1); exit 1; }; }
40225 else
40226   cat >conftest.$ac_ext <<_ACEOF
40227 /* confdefs.h.  */
40228 _ACEOF
40229 cat confdefs.h >>conftest.$ac_ext
40230 cat >>conftest.$ac_ext <<_ACEOF
40231 /* end confdefs.h.  */
40232 $ac_includes_default
40233 int
40234 main ()
40235 {
40236 /* If this system has a BSD-style setpgrp which takes arguments,
40237   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40238   exit successfully. */
40239   return setpgrp (1,1) != -1;
40240   ;
40241   return 0;
40242 }
40243 _ACEOF
40244 rm -f conftest$ac_exeext
40245 if { (ac_try="$ac_link"
40246 case "(($ac_try" in
40247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40248   *) ac_try_echo=$ac_try;;
40249 esac
40250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40251   (eval "$ac_link") 2>&5
40252   ac_status=$?
40253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40255   { (case "(($ac_try" in
40256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40257   *) ac_try_echo=$ac_try;;
40258 esac
40259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40260   (eval "$ac_try") 2>&5
40261   ac_status=$?
40262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263   (exit $ac_status); }; }; then
40264   ac_cv_func_setpgrp_void=no
40265 else
40266   echo "$as_me: program exited with status $ac_status" >&5
40267 echo "$as_me: failed program was:" >&5
40268 sed 's/^/| /' conftest.$ac_ext >&5
40269
40270 ( exit $ac_status )
40271 ac_cv_func_setpgrp_void=yes
40272 fi
40273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40274 fi
40275
40276
40277 fi
40278 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40279 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40280 if test $ac_cv_func_setpgrp_void = yes; then
40281
40282 cat >>confdefs.h <<\_ACEOF
40283 #define SETPGRP_VOID 1
40284 _ACEOF
40285
40286 fi
40287             # AC_FUNC_FNMATCH    dnl use local version
40288
40289 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40290 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40291 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40292   echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294   ac_check_lib_save_LIBS=$LIBS
40295 LIBS="-lintl  $LIBS"
40296 cat >conftest.$ac_ext <<_ACEOF
40297 /* confdefs.h.  */
40298 _ACEOF
40299 cat confdefs.h >>conftest.$ac_ext
40300 cat >>conftest.$ac_ext <<_ACEOF
40301 /* end confdefs.h.  */
40302
40303 /* Override any GCC internal prototype to avoid an error.
40304    Use char because int might match the return type of a GCC
40305    builtin and then its argument prototype would still apply.  */
40306 #ifdef __cplusplus
40307 extern "C"
40308 #endif
40309 char gettext ();
40310 int
40311 main ()
40312 {
40313 return gettext ();
40314   ;
40315   return 0;
40316 }
40317 _ACEOF
40318 rm -f conftest.$ac_objext conftest$ac_exeext
40319 if { (ac_try="$ac_link"
40320 case "(($ac_try" in
40321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40322   *) ac_try_echo=$ac_try;;
40323 esac
40324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40325   (eval "$ac_link") 2>conftest.er1
40326   ac_status=$?
40327   grep -v '^ *+' conftest.er1 >conftest.err
40328   rm -f conftest.er1
40329   cat conftest.err >&5
40330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331   (exit $ac_status); } && {
40332          test -z "$ac_c_werror_flag" ||
40333          test ! -s conftest.err
40334        } && test -s conftest$ac_exeext &&
40335        $as_test_x conftest$ac_exeext; then
40336   ac_cv_lib_intl_gettext=yes
40337 else
40338   echo "$as_me: failed program was:" >&5
40339 sed 's/^/| /' conftest.$ac_ext >&5
40340
40341         ac_cv_lib_intl_gettext=no
40342 fi
40343
40344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40345       conftest$ac_exeext conftest.$ac_ext
40346 LIBS=$ac_check_lib_save_LIBS
40347 fi
40348 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40349 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40350 if test $ac_cv_lib_intl_gettext = yes; then
40351   LIBS="$LIBS -lintl"
40352 fi
40353
40354
40355
40356 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40357 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40358 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40359   echo $ECHO_N "(cached) $ECHO_C" >&6
40360 else
40361   ac_check_lib_save_LIBS=$LIBS
40362 LIBS="-lsun  $LIBS"
40363 cat >conftest.$ac_ext <<_ACEOF
40364 /* confdefs.h.  */
40365 _ACEOF
40366 cat confdefs.h >>conftest.$ac_ext
40367 cat >>conftest.$ac_ext <<_ACEOF
40368 /* end confdefs.h.  */
40369
40370 /* Override any GCC internal prototype to avoid an error.
40371    Use char because int might match the return type of a GCC
40372    builtin and then its argument prototype would still apply.  */
40373 #ifdef __cplusplus
40374 extern "C"
40375 #endif
40376 char getpwnam ();
40377 int
40378 main ()
40379 {
40380 return getpwnam ();
40381   ;
40382   return 0;
40383 }
40384 _ACEOF
40385 rm -f conftest.$ac_objext conftest$ac_exeext
40386 if { (ac_try="$ac_link"
40387 case "(($ac_try" in
40388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40389   *) ac_try_echo=$ac_try;;
40390 esac
40391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40392   (eval "$ac_link") 2>conftest.er1
40393   ac_status=$?
40394   grep -v '^ *+' conftest.er1 >conftest.err
40395   rm -f conftest.er1
40396   cat conftest.err >&5
40397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398   (exit $ac_status); } && {
40399          test -z "$ac_c_werror_flag" ||
40400          test ! -s conftest.err
40401        } && test -s conftest$ac_exeext &&
40402        $as_test_x conftest$ac_exeext; then
40403   ac_cv_lib_sun_getpwnam=yes
40404 else
40405   echo "$as_me: failed program was:" >&5
40406 sed 's/^/| /' conftest.$ac_ext >&5
40407
40408         ac_cv_lib_sun_getpwnam=no
40409 fi
40410
40411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40412       conftest$ac_exeext conftest.$ac_ext
40413 LIBS=$ac_check_lib_save_LIBS
40414 fi
40415 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40416 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40417 if test $ac_cv_lib_sun_getpwnam = yes; then
40418   cat >>confdefs.h <<_ACEOF
40419 #define HAVE_LIBSUN 1
40420 _ACEOF
40421
40422   LIBS="-lsun $LIBS"
40423
40424 fi
40425
40426
40427
40428 for ac_header in zlib.h
40429 do
40430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40432   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40435   echo $ECHO_N "(cached) $ECHO_C" >&6
40436 fi
40437 ac_res=`eval echo '${'$as_ac_Header'}'`
40438                { echo "$as_me:$LINENO: result: $ac_res" >&5
40439 echo "${ECHO_T}$ac_res" >&6; }
40440 else
40441   # Is the header compilable?
40442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40444 cat >conftest.$ac_ext <<_ACEOF
40445 /* confdefs.h.  */
40446 _ACEOF
40447 cat confdefs.h >>conftest.$ac_ext
40448 cat >>conftest.$ac_ext <<_ACEOF
40449 /* end confdefs.h.  */
40450 $ac_includes_default
40451 #include <$ac_header>
40452 _ACEOF
40453 rm -f conftest.$ac_objext
40454 if { (ac_try="$ac_compile"
40455 case "(($ac_try" in
40456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40457   *) ac_try_echo=$ac_try;;
40458 esac
40459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40460   (eval "$ac_compile") 2>conftest.er1
40461   ac_status=$?
40462   grep -v '^ *+' conftest.er1 >conftest.err
40463   rm -f conftest.er1
40464   cat conftest.err >&5
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); } && {
40467          test -z "$ac_c_werror_flag" ||
40468          test ! -s conftest.err
40469        } && test -s conftest.$ac_objext; then
40470   ac_header_compiler=yes
40471 else
40472   echo "$as_me: failed program was:" >&5
40473 sed 's/^/| /' conftest.$ac_ext >&5
40474
40475         ac_header_compiler=no
40476 fi
40477
40478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40480 echo "${ECHO_T}$ac_header_compiler" >&6; }
40481
40482 # Is the header present?
40483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40485 cat >conftest.$ac_ext <<_ACEOF
40486 /* confdefs.h.  */
40487 _ACEOF
40488 cat confdefs.h >>conftest.$ac_ext
40489 cat >>conftest.$ac_ext <<_ACEOF
40490 /* end confdefs.h.  */
40491 #include <$ac_header>
40492 _ACEOF
40493 if { (ac_try="$ac_cpp conftest.$ac_ext"
40494 case "(($ac_try" in
40495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40496   *) ac_try_echo=$ac_try;;
40497 esac
40498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40500   ac_status=$?
40501   grep -v '^ *+' conftest.er1 >conftest.err
40502   rm -f conftest.er1
40503   cat conftest.err >&5
40504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505   (exit $ac_status); } >/dev/null && {
40506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40507          test ! -s conftest.err
40508        }; then
40509   ac_header_preproc=yes
40510 else
40511   echo "$as_me: failed program was:" >&5
40512 sed 's/^/| /' conftest.$ac_ext >&5
40513
40514   ac_header_preproc=no
40515 fi
40516
40517 rm -f conftest.err conftest.$ac_ext
40518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40519 echo "${ECHO_T}$ac_header_preproc" >&6; }
40520
40521 # So?  What about this header?
40522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40523   yes:no: )
40524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40528     ac_header_preproc=yes
40529     ;;
40530   no:yes:* )
40531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40543
40544     ;;
40545 esac
40546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40549   echo $ECHO_N "(cached) $ECHO_C" >&6
40550 else
40551   eval "$as_ac_Header=\$ac_header_preproc"
40552 fi
40553 ac_res=`eval echo '${'$as_ac_Header'}'`
40554                { echo "$as_me:$LINENO: result: $ac_res" >&5
40555 echo "${ECHO_T}$ac_res" >&6; }
40556
40557 fi
40558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40559   cat >>confdefs.h <<_ACEOF
40560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40561 _ACEOF
40562
40563 fi
40564
40565 done
40566
40567 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40568 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40569 if test "${ac_cv_lib_z_deflate+set}" = set; then
40570   echo $ECHO_N "(cached) $ECHO_C" >&6
40571 else
40572   ac_check_lib_save_LIBS=$LIBS
40573 LIBS="-lz  $LIBS"
40574 cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h.  */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h.  */
40580
40581 /* Override any GCC internal prototype to avoid an error.
40582    Use char because int might match the return type of a GCC
40583    builtin and then its argument prototype would still apply.  */
40584 #ifdef __cplusplus
40585 extern "C"
40586 #endif
40587 char deflate ();
40588 int
40589 main ()
40590 {
40591 return deflate ();
40592   ;
40593   return 0;
40594 }
40595 _ACEOF
40596 rm -f conftest.$ac_objext conftest$ac_exeext
40597 if { (ac_try="$ac_link"
40598 case "(($ac_try" in
40599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40600   *) ac_try_echo=$ac_try;;
40601 esac
40602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40603   (eval "$ac_link") 2>conftest.er1
40604   ac_status=$?
40605   grep -v '^ *+' conftest.er1 >conftest.err
40606   rm -f conftest.er1
40607   cat conftest.err >&5
40608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609   (exit $ac_status); } && {
40610          test -z "$ac_c_werror_flag" ||
40611          test ! -s conftest.err
40612        } && test -s conftest$ac_exeext &&
40613        $as_test_x conftest$ac_exeext; then
40614   ac_cv_lib_z_deflate=yes
40615 else
40616   echo "$as_me: failed program was:" >&5
40617 sed 's/^/| /' conftest.$ac_ext >&5
40618
40619         ac_cv_lib_z_deflate=no
40620 fi
40621
40622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40623       conftest$ac_exeext conftest.$ac_ext
40624 LIBS=$ac_check_lib_save_LIBS
40625 fi
40626 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40627 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40628 if test $ac_cv_lib_z_deflate = yes; then
40629   FDLIBS="-lz"
40630 fi
40631
40632 have_zlib=no
40633 if test x$FDLIBS = x-lz; then
40634    cat >>confdefs.h <<\_ACEOF
40635 #define HAVE_LIBZ 1
40636 _ACEOF
40637
40638    have_zlib=yes
40639 fi
40640
40641 support_acl=auto
40642 # Check whether --enable-acl was given.
40643 if test "${enable_acl+set}" = set; then
40644   enableval=$enable_acl;
40645        if test x$enableval = xyes; then
40646           support_acl=yes
40647        elif test x$enableval = xno; then
40648           support_acl=no
40649        fi
40650
40651
40652 fi
40653
40654
40655 have_acl=no
40656 have_extended_acl=no
40657 if test x$support_acl = xyes -o x$support_acl = xauto; then
40658    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40659   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40660 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40661 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40662   echo $ECHO_N "(cached) $ECHO_C" >&6
40663 fi
40664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40665 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40666 else
40667   # Is the header compilable?
40668 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40669 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40670 cat >conftest.$ac_ext <<_ACEOF
40671 /* confdefs.h.  */
40672 _ACEOF
40673 cat confdefs.h >>conftest.$ac_ext
40674 cat >>conftest.$ac_ext <<_ACEOF
40675 /* end confdefs.h.  */
40676 $ac_includes_default
40677 #include <sys/acl.h>
40678 _ACEOF
40679 rm -f conftest.$ac_objext
40680 if { (ac_try="$ac_compile"
40681 case "(($ac_try" in
40682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40683   *) ac_try_echo=$ac_try;;
40684 esac
40685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40686   (eval "$ac_compile") 2>conftest.er1
40687   ac_status=$?
40688   grep -v '^ *+' conftest.er1 >conftest.err
40689   rm -f conftest.er1
40690   cat conftest.err >&5
40691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40692   (exit $ac_status); } && {
40693          test -z "$ac_c_werror_flag" ||
40694          test ! -s conftest.err
40695        } && test -s conftest.$ac_objext; then
40696   ac_header_compiler=yes
40697 else
40698   echo "$as_me: failed program was:" >&5
40699 sed 's/^/| /' conftest.$ac_ext >&5
40700
40701         ac_header_compiler=no
40702 fi
40703
40704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40706 echo "${ECHO_T}$ac_header_compiler" >&6; }
40707
40708 # Is the header present?
40709 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40710 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40711 cat >conftest.$ac_ext <<_ACEOF
40712 /* confdefs.h.  */
40713 _ACEOF
40714 cat confdefs.h >>conftest.$ac_ext
40715 cat >>conftest.$ac_ext <<_ACEOF
40716 /* end confdefs.h.  */
40717 #include <sys/acl.h>
40718 _ACEOF
40719 if { (ac_try="$ac_cpp conftest.$ac_ext"
40720 case "(($ac_try" in
40721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40722   *) ac_try_echo=$ac_try;;
40723 esac
40724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40726   ac_status=$?
40727   grep -v '^ *+' conftest.er1 >conftest.err
40728   rm -f conftest.er1
40729   cat conftest.err >&5
40730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40731   (exit $ac_status); } >/dev/null && {
40732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40733          test ! -s conftest.err
40734        }; then
40735   ac_header_preproc=yes
40736 else
40737   echo "$as_me: failed program was:" >&5
40738 sed 's/^/| /' conftest.$ac_ext >&5
40739
40740   ac_header_preproc=no
40741 fi
40742
40743 rm -f conftest.err conftest.$ac_ext
40744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40745 echo "${ECHO_T}$ac_header_preproc" >&6; }
40746
40747 # So?  What about this header?
40748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40749   yes:no: )
40750     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40751 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40752     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40753 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40754     ac_header_preproc=yes
40755     ;;
40756   no:yes:* )
40757     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40758 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40759     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40760 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40761     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40762 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40763     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40764 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40765     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40766 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40767     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40768 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40769
40770     ;;
40771 esac
40772 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40773 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40774 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40775   echo $ECHO_N "(cached) $ECHO_C" >&6
40776 else
40777   ac_cv_header_sys_acl_h=$ac_header_preproc
40778 fi
40779 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40780 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40781
40782 fi
40783 if test $ac_cv_header_sys_acl_h = yes; then
40784
40785 cat >>confdefs.h <<\_ACEOF
40786 #define HAVE_SYS_ACL_H 1
40787 _ACEOF
40788
40789 fi
40790
40791
40792    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40793 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40794 if test "${ac_cv_func_acl_get_file+set}" = set; then
40795   echo $ECHO_N "(cached) $ECHO_C" >&6
40796 else
40797   cat >conftest.$ac_ext <<_ACEOF
40798 /* confdefs.h.  */
40799 _ACEOF
40800 cat confdefs.h >>conftest.$ac_ext
40801 cat >>conftest.$ac_ext <<_ACEOF
40802 /* end confdefs.h.  */
40803 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40805 #define acl_get_file innocuous_acl_get_file
40806
40807 /* System header to define __stub macros and hopefully few prototypes,
40808     which can conflict with char acl_get_file (); below.
40809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40810     <limits.h> exists even on freestanding compilers.  */
40811
40812 #ifdef __STDC__
40813 # include <limits.h>
40814 #else
40815 # include <assert.h>
40816 #endif
40817
40818 #undef acl_get_file
40819
40820 /* Override any GCC internal prototype to avoid an error.
40821    Use char because int might match the return type of a GCC
40822    builtin and then its argument prototype would still apply.  */
40823 #ifdef __cplusplus
40824 extern "C"
40825 #endif
40826 char acl_get_file ();
40827 /* The GNU C library defines this for functions which it implements
40828     to always fail with ENOSYS.  Some functions are actually named
40829     something starting with __ and the normal name is an alias.  */
40830 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40831 choke me
40832 #endif
40833
40834 int
40835 main ()
40836 {
40837 return acl_get_file ();
40838   ;
40839   return 0;
40840 }
40841 _ACEOF
40842 rm -f conftest.$ac_objext conftest$ac_exeext
40843 if { (ac_try="$ac_link"
40844 case "(($ac_try" in
40845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40846   *) ac_try_echo=$ac_try;;
40847 esac
40848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40849   (eval "$ac_link") 2>conftest.er1
40850   ac_status=$?
40851   grep -v '^ *+' conftest.er1 >conftest.err
40852   rm -f conftest.er1
40853   cat conftest.err >&5
40854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855   (exit $ac_status); } && {
40856          test -z "$ac_c_werror_flag" ||
40857          test ! -s conftest.err
40858        } && test -s conftest$ac_exeext &&
40859        $as_test_x conftest$ac_exeext; then
40860   ac_cv_func_acl_get_file=yes
40861 else
40862   echo "$as_me: failed program was:" >&5
40863 sed 's/^/| /' conftest.$ac_ext >&5
40864
40865         ac_cv_func_acl_get_file=no
40866 fi
40867
40868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40869       conftest$ac_exeext conftest.$ac_ext
40870 fi
40871 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40872 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40873 if test $ac_cv_func_acl_get_file = yes; then
40874
40875           have_acl=yes
40876
40877 else
40878
40879           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40880 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40881 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40882   echo $ECHO_N "(cached) $ECHO_C" >&6
40883 else
40884   ac_check_lib_save_LIBS=$LIBS
40885 LIBS="-lacl  $LIBS"
40886 cat >conftest.$ac_ext <<_ACEOF
40887 /* confdefs.h.  */
40888 _ACEOF
40889 cat confdefs.h >>conftest.$ac_ext
40890 cat >>conftest.$ac_ext <<_ACEOF
40891 /* end confdefs.h.  */
40892
40893 /* Override any GCC internal prototype to avoid an error.
40894    Use char because int might match the return type of a GCC
40895    builtin and then its argument prototype would still apply.  */
40896 #ifdef __cplusplus
40897 extern "C"
40898 #endif
40899 char acl_get_file ();
40900 int
40901 main ()
40902 {
40903 return acl_get_file ();
40904   ;
40905   return 0;
40906 }
40907 _ACEOF
40908 rm -f conftest.$ac_objext conftest$ac_exeext
40909 if { (ac_try="$ac_link"
40910 case "(($ac_try" in
40911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40912   *) ac_try_echo=$ac_try;;
40913 esac
40914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40915   (eval "$ac_link") 2>conftest.er1
40916   ac_status=$?
40917   grep -v '^ *+' conftest.er1 >conftest.err
40918   rm -f conftest.er1
40919   cat conftest.err >&5
40920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40921   (exit $ac_status); } && {
40922          test -z "$ac_c_werror_flag" ||
40923          test ! -s conftest.err
40924        } && test -s conftest$ac_exeext &&
40925        $as_test_x conftest$ac_exeext; then
40926   ac_cv_lib_acl_acl_get_file=yes
40927 else
40928   echo "$as_me: failed program was:" >&5
40929 sed 's/^/| /' conftest.$ac_ext >&5
40930
40931         ac_cv_lib_acl_acl_get_file=no
40932 fi
40933
40934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40935       conftest$ac_exeext conftest.$ac_ext
40936 LIBS=$ac_check_lib_save_LIBS
40937 fi
40938 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40939 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40940 if test $ac_cv_lib_acl_acl_get_file = yes; then
40941
40942                  have_acl=yes;
40943                  FDLIBS="-lacl $FDLIBS"
40944
40945 else
40946
40947                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40948 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40949 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40950   echo $ECHO_N "(cached) $ECHO_C" >&6
40951 else
40952   ac_check_lib_save_LIBS=$LIBS
40953 LIBS="-lpacl  $LIBS"
40954 cat >conftest.$ac_ext <<_ACEOF
40955 /* confdefs.h.  */
40956 _ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h.  */
40960
40961 /* Override any GCC internal prototype to avoid an error.
40962    Use char because int might match the return type of a GCC
40963    builtin and then its argument prototype would still apply.  */
40964 #ifdef __cplusplus
40965 extern "C"
40966 #endif
40967 char acl_get_file ();
40968 int
40969 main ()
40970 {
40971 return acl_get_file ();
40972   ;
40973   return 0;
40974 }
40975 _ACEOF
40976 rm -f conftest.$ac_objext conftest$ac_exeext
40977 if { (ac_try="$ac_link"
40978 case "(($ac_try" in
40979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40980   *) ac_try_echo=$ac_try;;
40981 esac
40982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40983   (eval "$ac_link") 2>conftest.er1
40984   ac_status=$?
40985   grep -v '^ *+' conftest.er1 >conftest.err
40986   rm -f conftest.er1
40987   cat conftest.err >&5
40988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989   (exit $ac_status); } && {
40990          test -z "$ac_c_werror_flag" ||
40991          test ! -s conftest.err
40992        } && test -s conftest$ac_exeext &&
40993        $as_test_x conftest$ac_exeext; then
40994   ac_cv_lib_pacl_acl_get_file=yes
40995 else
40996   echo "$as_me: failed program was:" >&5
40997 sed 's/^/| /' conftest.$ac_ext >&5
40998
40999         ac_cv_lib_pacl_acl_get_file=no
41000 fi
41001
41002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41003       conftest$ac_exeext conftest.$ac_ext
41004 LIBS=$ac_check_lib_save_LIBS
41005 fi
41006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41007 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41008 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41009
41010                         have_acl=yes;
41011                         FDLIBS="-lpacl $FDLIBS"
41012
41013 else
41014
41015                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41016 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41017 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41018   echo $ECHO_N "(cached) $ECHO_C" >&6
41019 else
41020   ac_check_lib_save_LIBS=$LIBS
41021 LIBS="-lsec  $LIBS"
41022 cat >conftest.$ac_ext <<_ACEOF
41023 /* confdefs.h.  */
41024 _ACEOF
41025 cat confdefs.h >>conftest.$ac_ext
41026 cat >>conftest.$ac_ext <<_ACEOF
41027 /* end confdefs.h.  */
41028
41029 /* Override any GCC internal prototype to avoid an error.
41030    Use char because int might match the return type of a GCC
41031    builtin and then its argument prototype would still apply.  */
41032 #ifdef __cplusplus
41033 extern "C"
41034 #endif
41035 char acltotext ();
41036 int
41037 main ()
41038 {
41039 return acltotext ();
41040   ;
41041   return 0;
41042 }
41043 _ACEOF
41044 rm -f conftest.$ac_objext conftest$ac_exeext
41045 if { (ac_try="$ac_link"
41046 case "(($ac_try" in
41047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41048   *) ac_try_echo=$ac_try;;
41049 esac
41050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41051   (eval "$ac_link") 2>conftest.er1
41052   ac_status=$?
41053   grep -v '^ *+' conftest.er1 >conftest.err
41054   rm -f conftest.er1
41055   cat conftest.err >&5
41056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41057   (exit $ac_status); } && {
41058          test -z "$ac_c_werror_flag" ||
41059          test ! -s conftest.err
41060        } && test -s conftest$ac_exeext &&
41061        $as_test_x conftest$ac_exeext; then
41062   ac_cv_lib_sec_acltotext=yes
41063 else
41064   echo "$as_me: failed program was:" >&5
41065 sed 's/^/| /' conftest.$ac_ext >&5
41066
41067         ac_cv_lib_sec_acltotext=no
41068 fi
41069
41070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41071       conftest$ac_exeext conftest.$ac_ext
41072 LIBS=$ac_check_lib_save_LIBS
41073 fi
41074 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41075 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41076 if test $ac_cv_lib_sec_acltotext = yes; then
41077
41078                                have_acl=yes;
41079                                FDLIBS="-lsec $FDLIBS"
41080
41081                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41082 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41083 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41084   echo $ECHO_N "(cached) $ECHO_C" >&6
41085 else
41086   ac_check_lib_save_LIBS=$LIBS
41087 LIBS="-lsec  $LIBS"
41088 cat >conftest.$ac_ext <<_ACEOF
41089 /* confdefs.h.  */
41090 _ACEOF
41091 cat confdefs.h >>conftest.$ac_ext
41092 cat >>conftest.$ac_ext <<_ACEOF
41093 /* end confdefs.h.  */
41094
41095 /* Override any GCC internal prototype to avoid an error.
41096    Use char because int might match the return type of a GCC
41097    builtin and then its argument prototype would still apply.  */
41098 #ifdef __cplusplus
41099 extern "C"
41100 #endif
41101 char acl_totext ();
41102 int
41103 main ()
41104 {
41105 return acl_totext ();
41106   ;
41107   return 0;
41108 }
41109 _ACEOF
41110 rm -f conftest.$ac_objext conftest$ac_exeext
41111 if { (ac_try="$ac_link"
41112 case "(($ac_try" in
41113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41114   *) ac_try_echo=$ac_try;;
41115 esac
41116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41117   (eval "$ac_link") 2>conftest.er1
41118   ac_status=$?
41119   grep -v '^ *+' conftest.er1 >conftest.err
41120   rm -f conftest.er1
41121   cat conftest.err >&5
41122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41123   (exit $ac_status); } && {
41124          test -z "$ac_c_werror_flag" ||
41125          test ! -s conftest.err
41126        } && test -s conftest$ac_exeext &&
41127        $as_test_x conftest$ac_exeext; then
41128   ac_cv_lib_sec_acl_totext=yes
41129 else
41130   echo "$as_me: failed program was:" >&5
41131 sed 's/^/| /' conftest.$ac_ext >&5
41132
41133         ac_cv_lib_sec_acl_totext=no
41134 fi
41135
41136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41137       conftest$ac_exeext conftest.$ac_ext
41138 LIBS=$ac_check_lib_save_LIBS
41139 fi
41140 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41141 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41142 if test $ac_cv_lib_sec_acl_totext = yes; then
41143
41144                                       have_extended_acl=yes
41145
41146
41147 fi
41148
41149
41150
41151 fi
41152
41153
41154
41155 fi
41156
41157
41158
41159 fi
41160
41161
41162
41163 fi
41164
41165
41166    if test x$support_acl = xyes -a $have_acl != yes; then
41167       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41168   please either load the acl libraries or rerun configure without --enable-acl" >&5
41169 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41170   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41171    { (exit 1); exit 1; }; }
41172    else
41173       if test $have_acl = yes; then
41174
41175 cat >>confdefs.h <<\_ACEOF
41176 #define HAVE_ACL
41177 _ACEOF
41178
41179       fi
41180
41181       if test $have_extended_acl = yes; then
41182
41183 cat >>confdefs.h <<\_ACEOF
41184 #define HAVE_EXTENDED_ACL
41185 _ACEOF
41186
41187       fi
41188    fi
41189 fi
41190
41191 support_xattr=auto
41192 # Check whether --enable-xattr was given.
41193 if test "${enable_xattr+set}" = set; then
41194   enableval=$enable_xattr;
41195        if test x$enableval = xyes; then
41196           support_xattr=yes
41197        elif test x$enableval = xno; then
41198           support_xattr=no
41199        fi
41200
41201
41202 fi
41203
41204
41205 have_xattr=no
41206 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41207    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41208   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41209 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41210 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41211   echo $ECHO_N "(cached) $ECHO_C" >&6
41212 fi
41213 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41214 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41215 else
41216   # Is the header compilable?
41217 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41218 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41219 cat >conftest.$ac_ext <<_ACEOF
41220 /* confdefs.h.  */
41221 _ACEOF
41222 cat confdefs.h >>conftest.$ac_ext
41223 cat >>conftest.$ac_ext <<_ACEOF
41224 /* end confdefs.h.  */
41225 $ac_includes_default
41226 #include <sys/xattr.h>
41227 _ACEOF
41228 rm -f conftest.$ac_objext
41229 if { (ac_try="$ac_compile"
41230 case "(($ac_try" in
41231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41232   *) ac_try_echo=$ac_try;;
41233 esac
41234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41235   (eval "$ac_compile") 2>conftest.er1
41236   ac_status=$?
41237   grep -v '^ *+' conftest.er1 >conftest.err
41238   rm -f conftest.er1
41239   cat conftest.err >&5
41240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241   (exit $ac_status); } && {
41242          test -z "$ac_c_werror_flag" ||
41243          test ! -s conftest.err
41244        } && test -s conftest.$ac_objext; then
41245   ac_header_compiler=yes
41246 else
41247   echo "$as_me: failed program was:" >&5
41248 sed 's/^/| /' conftest.$ac_ext >&5
41249
41250         ac_header_compiler=no
41251 fi
41252
41253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41255 echo "${ECHO_T}$ac_header_compiler" >&6; }
41256
41257 # Is the header present?
41258 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41259 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41260 cat >conftest.$ac_ext <<_ACEOF
41261 /* confdefs.h.  */
41262 _ACEOF
41263 cat confdefs.h >>conftest.$ac_ext
41264 cat >>conftest.$ac_ext <<_ACEOF
41265 /* end confdefs.h.  */
41266 #include <sys/xattr.h>
41267 _ACEOF
41268 if { (ac_try="$ac_cpp conftest.$ac_ext"
41269 case "(($ac_try" in
41270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41271   *) ac_try_echo=$ac_try;;
41272 esac
41273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41275   ac_status=$?
41276   grep -v '^ *+' conftest.er1 >conftest.err
41277   rm -f conftest.er1
41278   cat conftest.err >&5
41279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280   (exit $ac_status); } >/dev/null && {
41281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41282          test ! -s conftest.err
41283        }; then
41284   ac_header_preproc=yes
41285 else
41286   echo "$as_me: failed program was:" >&5
41287 sed 's/^/| /' conftest.$ac_ext >&5
41288
41289   ac_header_preproc=no
41290 fi
41291
41292 rm -f conftest.err conftest.$ac_ext
41293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41294 echo "${ECHO_T}$ac_header_preproc" >&6; }
41295
41296 # So?  What about this header?
41297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41298   yes:no: )
41299     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41300 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41301     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41302 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41303     ac_header_preproc=yes
41304     ;;
41305   no:yes:* )
41306     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41307 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41308     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41309 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41310     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41311 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41312     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41313 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41314     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41315 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41316     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41317 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41318
41319     ;;
41320 esac
41321 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41322 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41323 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41324   echo $ECHO_N "(cached) $ECHO_C" >&6
41325 else
41326   ac_cv_header_sys_xattr_h=$ac_header_preproc
41327 fi
41328 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41329 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41330
41331 fi
41332 if test $ac_cv_header_sys_xattr_h = yes; then
41333
41334 cat >>confdefs.h <<\_ACEOF
41335 #define HAVE_SYS_XATTR_H 1
41336 _ACEOF
41337
41338 fi
41339
41340
41341
41342
41343
41344 for ac_func in llistxattr lgetxattr lsetxattr
41345 do
41346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41350   echo $ECHO_N "(cached) $ECHO_C" >&6
41351 else
41352   cat >conftest.$ac_ext <<_ACEOF
41353 /* confdefs.h.  */
41354 _ACEOF
41355 cat confdefs.h >>conftest.$ac_ext
41356 cat >>conftest.$ac_ext <<_ACEOF
41357 /* end confdefs.h.  */
41358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41360 #define $ac_func innocuous_$ac_func
41361
41362 /* System header to define __stub macros and hopefully few prototypes,
41363     which can conflict with char $ac_func (); below.
41364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41365     <limits.h> exists even on freestanding compilers.  */
41366
41367 #ifdef __STDC__
41368 # include <limits.h>
41369 #else
41370 # include <assert.h>
41371 #endif
41372
41373 #undef $ac_func
41374
41375 /* Override any GCC internal prototype to avoid an error.
41376    Use char because int might match the return type of a GCC
41377    builtin and then its argument prototype would still apply.  */
41378 #ifdef __cplusplus
41379 extern "C"
41380 #endif
41381 char $ac_func ();
41382 /* The GNU C library defines this for functions which it implements
41383     to always fail with ENOSYS.  Some functions are actually named
41384     something starting with __ and the normal name is an alias.  */
41385 #if defined __stub_$ac_func || defined __stub___$ac_func
41386 choke me
41387 #endif
41388
41389 int
41390 main ()
41391 {
41392 return $ac_func ();
41393   ;
41394   return 0;
41395 }
41396 _ACEOF
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (ac_try="$ac_link"
41399 case "(($ac_try" in
41400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41401   *) ac_try_echo=$ac_try;;
41402 esac
41403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41404   (eval "$ac_link") 2>conftest.er1
41405   ac_status=$?
41406   grep -v '^ *+' conftest.er1 >conftest.err
41407   rm -f conftest.er1
41408   cat conftest.err >&5
41409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); } && {
41411          test -z "$ac_c_werror_flag" ||
41412          test ! -s conftest.err
41413        } && test -s conftest$ac_exeext &&
41414        $as_test_x conftest$ac_exeext; then
41415   eval "$as_ac_var=yes"
41416 else
41417   echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41419
41420         eval "$as_ac_var=no"
41421 fi
41422
41423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41424       conftest$ac_exeext conftest.$ac_ext
41425 fi
41426 ac_res=`eval echo '${'$as_ac_var'}'`
41427                { echo "$as_me:$LINENO: result: $ac_res" >&5
41428 echo "${ECHO_T}$ac_res" >&6; }
41429 if test `eval echo '${'$as_ac_var'}'` = yes; then
41430   cat >>confdefs.h <<_ACEOF
41431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41432 _ACEOF
41433
41434           have_xattr=yes
41435
41436 cat >>confdefs.h <<\_ACEOF
41437 #define HAVE_LLISTXATTR
41438 _ACEOF
41439
41440
41441 cat >>confdefs.h <<\_ACEOF
41442 #define HAVE_LGETXATTR
41443 _ACEOF
41444
41445
41446 cat >>confdefs.h <<\_ACEOF
41447 #define HAVE_LSETXATTR
41448 _ACEOF
41449
41450
41451
41452 fi
41453 done
41454
41455
41456    #
41457    # OSX specific
41458    #
41459    if test $have_xattr = no; then
41460
41461
41462
41463 for ac_func in listxattr getxattr setxattr
41464 do
41465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41469   echo $ECHO_N "(cached) $ECHO_C" >&6
41470 else
41471   cat >conftest.$ac_ext <<_ACEOF
41472 /* confdefs.h.  */
41473 _ACEOF
41474 cat confdefs.h >>conftest.$ac_ext
41475 cat >>conftest.$ac_ext <<_ACEOF
41476 /* end confdefs.h.  */
41477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41479 #define $ac_func innocuous_$ac_func
41480
41481 /* System header to define __stub macros and hopefully few prototypes,
41482     which can conflict with char $ac_func (); below.
41483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41484     <limits.h> exists even on freestanding compilers.  */
41485
41486 #ifdef __STDC__
41487 # include <limits.h>
41488 #else
41489 # include <assert.h>
41490 #endif
41491
41492 #undef $ac_func
41493
41494 /* Override any GCC internal prototype to avoid an error.
41495    Use char because int might match the return type of a GCC
41496    builtin and then its argument prototype would still apply.  */
41497 #ifdef __cplusplus
41498 extern "C"
41499 #endif
41500 char $ac_func ();
41501 /* The GNU C library defines this for functions which it implements
41502     to always fail with ENOSYS.  Some functions are actually named
41503     something starting with __ and the normal name is an alias.  */
41504 #if defined __stub_$ac_func || defined __stub___$ac_func
41505 choke me
41506 #endif
41507
41508 int
41509 main ()
41510 {
41511 return $ac_func ();
41512   ;
41513   return 0;
41514 }
41515 _ACEOF
41516 rm -f conftest.$ac_objext conftest$ac_exeext
41517 if { (ac_try="$ac_link"
41518 case "(($ac_try" in
41519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41520   *) ac_try_echo=$ac_try;;
41521 esac
41522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41523   (eval "$ac_link") 2>conftest.er1
41524   ac_status=$?
41525   grep -v '^ *+' conftest.er1 >conftest.err
41526   rm -f conftest.er1
41527   cat conftest.err >&5
41528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529   (exit $ac_status); } && {
41530          test -z "$ac_c_werror_flag" ||
41531          test ! -s conftest.err
41532        } && test -s conftest$ac_exeext &&
41533        $as_test_x conftest$ac_exeext; then
41534   eval "$as_ac_var=yes"
41535 else
41536   echo "$as_me: failed program was:" >&5
41537 sed 's/^/| /' conftest.$ac_ext >&5
41538
41539         eval "$as_ac_var=no"
41540 fi
41541
41542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41543       conftest$ac_exeext conftest.$ac_ext
41544 fi
41545 ac_res=`eval echo '${'$as_ac_var'}'`
41546                { echo "$as_me:$LINENO: result: $ac_res" >&5
41547 echo "${ECHO_T}$ac_res" >&6; }
41548 if test `eval echo '${'$as_ac_var'}'` = yes; then
41549   cat >>confdefs.h <<_ACEOF
41550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41551 _ACEOF
41552
41553              have_xattr=yes
41554
41555 cat >>confdefs.h <<\_ACEOF
41556 #define HAVE_LLISTXATTR
41557 _ACEOF
41558
41559
41560 cat >>confdefs.h <<\_ACEOF
41561 #define HAVE_LGETXATTR
41562 _ACEOF
41563
41564
41565 cat >>confdefs.h <<\_ACEOF
41566 #define HAVE_LSETXATTR
41567 _ACEOF
41568
41569
41570
41571 fi
41572 done
41573
41574    fi
41575
41576    #
41577    # Solaris specific
41578    #
41579    if test $have_xattr = no; then
41580       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41581   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41582 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41583 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41584   echo $ECHO_N "(cached) $ECHO_C" >&6
41585 fi
41586 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41587 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41588 else
41589   # Is the header compilable?
41590 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41591 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41592 cat >conftest.$ac_ext <<_ACEOF
41593 /* confdefs.h.  */
41594 _ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h.  */
41598 $ac_includes_default
41599 #include <sys/attr.h>
41600 _ACEOF
41601 rm -f conftest.$ac_objext
41602 if { (ac_try="$ac_compile"
41603 case "(($ac_try" in
41604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41605   *) ac_try_echo=$ac_try;;
41606 esac
41607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41608   (eval "$ac_compile") 2>conftest.er1
41609   ac_status=$?
41610   grep -v '^ *+' conftest.er1 >conftest.err
41611   rm -f conftest.er1
41612   cat conftest.err >&5
41613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614   (exit $ac_status); } && {
41615          test -z "$ac_c_werror_flag" ||
41616          test ! -s conftest.err
41617        } && test -s conftest.$ac_objext; then
41618   ac_header_compiler=yes
41619 else
41620   echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41622
41623         ac_header_compiler=no
41624 fi
41625
41626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41628 echo "${ECHO_T}$ac_header_compiler" >&6; }
41629
41630 # Is the header present?
41631 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41632 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41633 cat >conftest.$ac_ext <<_ACEOF
41634 /* confdefs.h.  */
41635 _ACEOF
41636 cat confdefs.h >>conftest.$ac_ext
41637 cat >>conftest.$ac_ext <<_ACEOF
41638 /* end confdefs.h.  */
41639 #include <sys/attr.h>
41640 _ACEOF
41641 if { (ac_try="$ac_cpp conftest.$ac_ext"
41642 case "(($ac_try" in
41643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41644   *) ac_try_echo=$ac_try;;
41645 esac
41646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41648   ac_status=$?
41649   grep -v '^ *+' conftest.er1 >conftest.err
41650   rm -f conftest.er1
41651   cat conftest.err >&5
41652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653   (exit $ac_status); } >/dev/null && {
41654          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41655          test ! -s conftest.err
41656        }; then
41657   ac_header_preproc=yes
41658 else
41659   echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41661
41662   ac_header_preproc=no
41663 fi
41664
41665 rm -f conftest.err conftest.$ac_ext
41666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41667 echo "${ECHO_T}$ac_header_preproc" >&6; }
41668
41669 # So?  What about this header?
41670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41671   yes:no: )
41672     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41673 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41674     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41675 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41676     ac_header_preproc=yes
41677     ;;
41678   no:yes:* )
41679     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41680 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41681     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41682 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41683     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41684 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41685     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41686 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41687     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41688 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41689     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41690 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41691
41692     ;;
41693 esac
41694 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41695 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41696 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41697   echo $ECHO_N "(cached) $ECHO_C" >&6
41698 else
41699   ac_cv_header_sys_attr_h=$ac_header_preproc
41700 fi
41701 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41702 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41703
41704 fi
41705 if test $ac_cv_header_sys_attr_h = yes; then
41706
41707 cat >>confdefs.h <<\_ACEOF
41708 #define HAVE_SYS_ATTR_H 1
41709 _ACEOF
41710
41711 fi
41712
41713
41714       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41715   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41716 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41717 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41718   echo $ECHO_N "(cached) $ECHO_C" >&6
41719 fi
41720 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41721 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41722 else
41723   # Is the header compilable?
41724 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41725 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41726 cat >conftest.$ac_ext <<_ACEOF
41727 /* confdefs.h.  */
41728 _ACEOF
41729 cat confdefs.h >>conftest.$ac_ext
41730 cat >>conftest.$ac_ext <<_ACEOF
41731 /* end confdefs.h.  */
41732 $ac_includes_default
41733 #include <sys/nvpair.h>
41734 _ACEOF
41735 rm -f conftest.$ac_objext
41736 if { (ac_try="$ac_compile"
41737 case "(($ac_try" in
41738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41739   *) ac_try_echo=$ac_try;;
41740 esac
41741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41742   (eval "$ac_compile") 2>conftest.er1
41743   ac_status=$?
41744   grep -v '^ *+' conftest.er1 >conftest.err
41745   rm -f conftest.er1
41746   cat conftest.err >&5
41747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748   (exit $ac_status); } && {
41749          test -z "$ac_c_werror_flag" ||
41750          test ! -s conftest.err
41751        } && test -s conftest.$ac_objext; then
41752   ac_header_compiler=yes
41753 else
41754   echo "$as_me: failed program was:" >&5
41755 sed 's/^/| /' conftest.$ac_ext >&5
41756
41757         ac_header_compiler=no
41758 fi
41759
41760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41762 echo "${ECHO_T}$ac_header_compiler" >&6; }
41763
41764 # Is the header present?
41765 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41766 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41767 cat >conftest.$ac_ext <<_ACEOF
41768 /* confdefs.h.  */
41769 _ACEOF
41770 cat confdefs.h >>conftest.$ac_ext
41771 cat >>conftest.$ac_ext <<_ACEOF
41772 /* end confdefs.h.  */
41773 #include <sys/nvpair.h>
41774 _ACEOF
41775 if { (ac_try="$ac_cpp conftest.$ac_ext"
41776 case "(($ac_try" in
41777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41778   *) ac_try_echo=$ac_try;;
41779 esac
41780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41782   ac_status=$?
41783   grep -v '^ *+' conftest.er1 >conftest.err
41784   rm -f conftest.er1
41785   cat conftest.err >&5
41786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787   (exit $ac_status); } >/dev/null && {
41788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41789          test ! -s conftest.err
41790        }; then
41791   ac_header_preproc=yes
41792 else
41793   echo "$as_me: failed program was:" >&5
41794 sed 's/^/| /' conftest.$ac_ext >&5
41795
41796   ac_header_preproc=no
41797 fi
41798
41799 rm -f conftest.err conftest.$ac_ext
41800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41801 echo "${ECHO_T}$ac_header_preproc" >&6; }
41802
41803 # So?  What about this header?
41804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41805   yes:no: )
41806     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41807 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41808     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41809 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41810     ac_header_preproc=yes
41811     ;;
41812   no:yes:* )
41813     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41814 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41815     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41816 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41817     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41818 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41819     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41820 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41821     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41822 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41823     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41824 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41825
41826     ;;
41827 esac
41828 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41829 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41830 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41831   echo $ECHO_N "(cached) $ECHO_C" >&6
41832 else
41833   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41834 fi
41835 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41836 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41837
41838 fi
41839 if test $ac_cv_header_sys_nvpair_h = yes; then
41840
41841 cat >>confdefs.h <<\_ACEOF
41842 #define HAVE_SYS_NVPAIR_H 1
41843 _ACEOF
41844
41845 fi
41846
41847
41848       if test "${ac_cv_header_attr_h+set}" = set; then
41849   { echo "$as_me:$LINENO: checking for attr.h" >&5
41850 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41851 if test "${ac_cv_header_attr_h+set}" = set; then
41852   echo $ECHO_N "(cached) $ECHO_C" >&6
41853 fi
41854 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41855 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41856 else
41857   # Is the header compilable?
41858 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41859 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41860 cat >conftest.$ac_ext <<_ACEOF
41861 /* confdefs.h.  */
41862 _ACEOF
41863 cat confdefs.h >>conftest.$ac_ext
41864 cat >>conftest.$ac_ext <<_ACEOF
41865 /* end confdefs.h.  */
41866 $ac_includes_default
41867 #include <attr.h>
41868 _ACEOF
41869 rm -f conftest.$ac_objext
41870 if { (ac_try="$ac_compile"
41871 case "(($ac_try" in
41872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41873   *) ac_try_echo=$ac_try;;
41874 esac
41875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41876   (eval "$ac_compile") 2>conftest.er1
41877   ac_status=$?
41878   grep -v '^ *+' conftest.er1 >conftest.err
41879   rm -f conftest.er1
41880   cat conftest.err >&5
41881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41882   (exit $ac_status); } && {
41883          test -z "$ac_c_werror_flag" ||
41884          test ! -s conftest.err
41885        } && test -s conftest.$ac_objext; then
41886   ac_header_compiler=yes
41887 else
41888   echo "$as_me: failed program was:" >&5
41889 sed 's/^/| /' conftest.$ac_ext >&5
41890
41891         ac_header_compiler=no
41892 fi
41893
41894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41896 echo "${ECHO_T}$ac_header_compiler" >&6; }
41897
41898 # Is the header present?
41899 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41900 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41901 cat >conftest.$ac_ext <<_ACEOF
41902 /* confdefs.h.  */
41903 _ACEOF
41904 cat confdefs.h >>conftest.$ac_ext
41905 cat >>conftest.$ac_ext <<_ACEOF
41906 /* end confdefs.h.  */
41907 #include <attr.h>
41908 _ACEOF
41909 if { (ac_try="$ac_cpp conftest.$ac_ext"
41910 case "(($ac_try" in
41911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41912   *) ac_try_echo=$ac_try;;
41913 esac
41914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41916   ac_status=$?
41917   grep -v '^ *+' conftest.er1 >conftest.err
41918   rm -f conftest.er1
41919   cat conftest.err >&5
41920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921   (exit $ac_status); } >/dev/null && {
41922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41923          test ! -s conftest.err
41924        }; then
41925   ac_header_preproc=yes
41926 else
41927   echo "$as_me: failed program was:" >&5
41928 sed 's/^/| /' conftest.$ac_ext >&5
41929
41930   ac_header_preproc=no
41931 fi
41932
41933 rm -f conftest.err conftest.$ac_ext
41934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41935 echo "${ECHO_T}$ac_header_preproc" >&6; }
41936
41937 # So?  What about this header?
41938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41939   yes:no: )
41940     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41941 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41942     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41943 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41944     ac_header_preproc=yes
41945     ;;
41946   no:yes:* )
41947     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41948 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41949     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41950 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41951     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41952 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41953     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41954 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41955     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41956 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41957     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41958 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41959
41960     ;;
41961 esac
41962 { echo "$as_me:$LINENO: checking for attr.h" >&5
41963 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41964 if test "${ac_cv_header_attr_h+set}" = set; then
41965   echo $ECHO_N "(cached) $ECHO_C" >&6
41966 else
41967   ac_cv_header_attr_h=$ac_header_preproc
41968 fi
41969 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41970 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41971
41972 fi
41973 if test $ac_cv_header_attr_h = yes; then
41974
41975 cat >>confdefs.h <<\_ACEOF
41976 #define HAVE_ATTR_H 1
41977 _ACEOF
41978
41979 fi
41980
41981
41982
41983
41984
41985
41986
41987
41988 for ac_func in openat fstatat unlinkat fchownat futimesat
41989 do
41990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41994   echo $ECHO_N "(cached) $ECHO_C" >&6
41995 else
41996   cat >conftest.$ac_ext <<_ACEOF
41997 /* confdefs.h.  */
41998 _ACEOF
41999 cat confdefs.h >>conftest.$ac_ext
42000 cat >>conftest.$ac_ext <<_ACEOF
42001 /* end confdefs.h.  */
42002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42004 #define $ac_func innocuous_$ac_func
42005
42006 /* System header to define __stub macros and hopefully few prototypes,
42007     which can conflict with char $ac_func (); below.
42008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42009     <limits.h> exists even on freestanding compilers.  */
42010
42011 #ifdef __STDC__
42012 # include <limits.h>
42013 #else
42014 # include <assert.h>
42015 #endif
42016
42017 #undef $ac_func
42018
42019 /* Override any GCC internal prototype to avoid an error.
42020    Use char because int might match the return type of a GCC
42021    builtin and then its argument prototype would still apply.  */
42022 #ifdef __cplusplus
42023 extern "C"
42024 #endif
42025 char $ac_func ();
42026 /* The GNU C library defines this for functions which it implements
42027     to always fail with ENOSYS.  Some functions are actually named
42028     something starting with __ and the normal name is an alias.  */
42029 #if defined __stub_$ac_func || defined __stub___$ac_func
42030 choke me
42031 #endif
42032
42033 int
42034 main ()
42035 {
42036 return $ac_func ();
42037   ;
42038   return 0;
42039 }
42040 _ACEOF
42041 rm -f conftest.$ac_objext conftest$ac_exeext
42042 if { (ac_try="$ac_link"
42043 case "(($ac_try" in
42044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42045   *) ac_try_echo=$ac_try;;
42046 esac
42047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42048   (eval "$ac_link") 2>conftest.er1
42049   ac_status=$?
42050   grep -v '^ *+' conftest.er1 >conftest.err
42051   rm -f conftest.er1
42052   cat conftest.err >&5
42053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054   (exit $ac_status); } && {
42055          test -z "$ac_c_werror_flag" ||
42056          test ! -s conftest.err
42057        } && test -s conftest$ac_exeext &&
42058        $as_test_x conftest$ac_exeext; then
42059   eval "$as_ac_var=yes"
42060 else
42061   echo "$as_me: failed program was:" >&5
42062 sed 's/^/| /' conftest.$ac_ext >&5
42063
42064         eval "$as_ac_var=no"
42065 fi
42066
42067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42068       conftest$ac_exeext conftest.$ac_ext
42069 fi
42070 ac_res=`eval echo '${'$as_ac_var'}'`
42071                { echo "$as_me:$LINENO: result: $ac_res" >&5
42072 echo "${ECHO_T}$ac_res" >&6; }
42073 if test `eval echo '${'$as_ac_var'}'` = yes; then
42074   cat >>confdefs.h <<_ACEOF
42075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42076 _ACEOF
42077
42078              have_xattr=yes
42079
42080 cat >>confdefs.h <<\_ACEOF
42081 #define HAVE_OPENAT
42082 _ACEOF
42083
42084
42085 cat >>confdefs.h <<\_ACEOF
42086 #define HAVE_FSTATAT
42087 _ACEOF
42088
42089
42090 cat >>confdefs.h <<\_ACEOF
42091 #define HAVE_UNLINKAT
42092 _ACEOF
42093
42094
42095 cat >>confdefs.h <<\_ACEOF
42096 #define HAVE_FCHOWNAT
42097 _ACEOF
42098
42099
42100 cat >>confdefs.h <<\_ACEOF
42101 #define HAVE_FUTIMESAT
42102 _ACEOF
42103
42104
42105
42106 fi
42107 done
42108
42109
42110       if test $have_xattr = yes; then
42111          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42112 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42113 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42114   echo $ECHO_N "(cached) $ECHO_C" >&6
42115 else
42116   ac_check_lib_save_LIBS=$LIBS
42117 LIBS="-lnvpair  $LIBS"
42118 cat >conftest.$ac_ext <<_ACEOF
42119 /* confdefs.h.  */
42120 _ACEOF
42121 cat confdefs.h >>conftest.$ac_ext
42122 cat >>conftest.$ac_ext <<_ACEOF
42123 /* end confdefs.h.  */
42124
42125 /* Override any GCC internal prototype to avoid an error.
42126    Use char because int might match the return type of a GCC
42127    builtin and then its argument prototype would still apply.  */
42128 #ifdef __cplusplus
42129 extern "C"
42130 #endif
42131 char nvlist_next_nvpair ();
42132 int
42133 main ()
42134 {
42135 return nvlist_next_nvpair ();
42136   ;
42137   return 0;
42138 }
42139 _ACEOF
42140 rm -f conftest.$ac_objext conftest$ac_exeext
42141 if { (ac_try="$ac_link"
42142 case "(($ac_try" in
42143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42144   *) ac_try_echo=$ac_try;;
42145 esac
42146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42147   (eval "$ac_link") 2>conftest.er1
42148   ac_status=$?
42149   grep -v '^ *+' conftest.er1 >conftest.err
42150   rm -f conftest.er1
42151   cat conftest.err >&5
42152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153   (exit $ac_status); } && {
42154          test -z "$ac_c_werror_flag" ||
42155          test ! -s conftest.err
42156        } && test -s conftest$ac_exeext &&
42157        $as_test_x conftest$ac_exeext; then
42158   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42159 else
42160   echo "$as_me: failed program was:" >&5
42161 sed 's/^/| /' conftest.$ac_ext >&5
42162
42163         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42164 fi
42165
42166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42167       conftest$ac_exeext conftest.$ac_ext
42168 LIBS=$ac_check_lib_save_LIBS
42169 fi
42170 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42171 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42172 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42173
42174                 FDLIBS="-lnvpair $FDLIBS"
42175
42176
42177 fi
42178
42179       fi
42180    fi
42181
42182    if test x$support_xattr = xyes -a $have_xattr != yes; then
42183       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42184   please either load the xattr libraries or rerun configure without --enable-xatt" >&5
42185 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42186   please either load the xattr libraries or rerun configure without --enable-xatt" >&2;}
42187    { (exit 1); exit 1; }; }
42188    else
42189       if test $have_xattr = yes; then
42190
42191 cat >>confdefs.h <<\_ACEOF
42192 #define HAVE_XATTR
42193 _ACEOF
42194
42195       fi
42196    fi
42197 fi
42198
42199 PTHREAD_LIB=""
42200 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42201 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42202 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42203   echo $ECHO_N "(cached) $ECHO_C" >&6
42204 else
42205   ac_check_lib_save_LIBS=$LIBS
42206 LIBS="-lpthread  $LIBS"
42207 cat >conftest.$ac_ext <<_ACEOF
42208 /* confdefs.h.  */
42209 _ACEOF
42210 cat confdefs.h >>conftest.$ac_ext
42211 cat >>conftest.$ac_ext <<_ACEOF
42212 /* end confdefs.h.  */
42213
42214 /* Override any GCC internal prototype to avoid an error.
42215    Use char because int might match the return type of a GCC
42216    builtin and then its argument prototype would still apply.  */
42217 #ifdef __cplusplus
42218 extern "C"
42219 #endif
42220 char pthread_create ();
42221 int
42222 main ()
42223 {
42224 return pthread_create ();
42225   ;
42226   return 0;
42227 }
42228 _ACEOF
42229 rm -f conftest.$ac_objext conftest$ac_exeext
42230 if { (ac_try="$ac_link"
42231 case "(($ac_try" in
42232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42233   *) ac_try_echo=$ac_try;;
42234 esac
42235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42236   (eval "$ac_link") 2>conftest.er1
42237   ac_status=$?
42238   grep -v '^ *+' conftest.er1 >conftest.err
42239   rm -f conftest.er1
42240   cat conftest.err >&5
42241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42242   (exit $ac_status); } && {
42243          test -z "$ac_c_werror_flag" ||
42244          test ! -s conftest.err
42245        } && test -s conftest$ac_exeext &&
42246        $as_test_x conftest$ac_exeext; then
42247   ac_cv_lib_pthread_pthread_create=yes
42248 else
42249   echo "$as_me: failed program was:" >&5
42250 sed 's/^/| /' conftest.$ac_ext >&5
42251
42252         ac_cv_lib_pthread_pthread_create=no
42253 fi
42254
42255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42256       conftest$ac_exeext conftest.$ac_ext
42257 LIBS=$ac_check_lib_save_LIBS
42258 fi
42259 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42260 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42261 if test $ac_cv_lib_pthread_pthread_create = yes; then
42262   PTHREAD_LIB="-lpthread"
42263 else
42264
42265        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42266 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42267 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42268   echo $ECHO_N "(cached) $ECHO_C" >&6
42269 else
42270   ac_check_lib_save_LIBS=$LIBS
42271 LIBS="-lpthreads  $LIBS"
42272 cat >conftest.$ac_ext <<_ACEOF
42273 /* confdefs.h.  */
42274 _ACEOF
42275 cat confdefs.h >>conftest.$ac_ext
42276 cat >>conftest.$ac_ext <<_ACEOF
42277 /* end confdefs.h.  */
42278
42279 /* Override any GCC internal prototype to avoid an error.
42280    Use char because int might match the return type of a GCC
42281    builtin and then its argument prototype would still apply.  */
42282 #ifdef __cplusplus
42283 extern "C"
42284 #endif
42285 char pthread_create ();
42286 int
42287 main ()
42288 {
42289 return pthread_create ();
42290   ;
42291   return 0;
42292 }
42293 _ACEOF
42294 rm -f conftest.$ac_objext conftest$ac_exeext
42295 if { (ac_try="$ac_link"
42296 case "(($ac_try" in
42297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42298   *) ac_try_echo=$ac_try;;
42299 esac
42300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42301   (eval "$ac_link") 2>conftest.er1
42302   ac_status=$?
42303   grep -v '^ *+' conftest.er1 >conftest.err
42304   rm -f conftest.er1
42305   cat conftest.err >&5
42306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307   (exit $ac_status); } && {
42308          test -z "$ac_c_werror_flag" ||
42309          test ! -s conftest.err
42310        } && test -s conftest$ac_exeext &&
42311        $as_test_x conftest$ac_exeext; then
42312   ac_cv_lib_pthreads_pthread_create=yes
42313 else
42314   echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42316
42317         ac_cv_lib_pthreads_pthread_create=no
42318 fi
42319
42320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42321       conftest$ac_exeext conftest.$ac_ext
42322 LIBS=$ac_check_lib_save_LIBS
42323 fi
42324 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42325 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42326 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42327   PTHREAD_LIB="-lpthreads"
42328 else
42329
42330               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42331 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42332 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42333   echo $ECHO_N "(cached) $ECHO_C" >&6
42334 else
42335   ac_check_lib_save_LIBS=$LIBS
42336 LIBS="-lc_r  $LIBS"
42337 cat >conftest.$ac_ext <<_ACEOF
42338 /* confdefs.h.  */
42339 _ACEOF
42340 cat confdefs.h >>conftest.$ac_ext
42341 cat >>conftest.$ac_ext <<_ACEOF
42342 /* end confdefs.h.  */
42343
42344 /* Override any GCC internal prototype to avoid an error.
42345    Use char because int might match the return type of a GCC
42346    builtin and then its argument prototype would still apply.  */
42347 #ifdef __cplusplus
42348 extern "C"
42349 #endif
42350 char pthread_create ();
42351 int
42352 main ()
42353 {
42354 return pthread_create ();
42355   ;
42356   return 0;
42357 }
42358 _ACEOF
42359 rm -f conftest.$ac_objext conftest$ac_exeext
42360 if { (ac_try="$ac_link"
42361 case "(($ac_try" in
42362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42363   *) ac_try_echo=$ac_try;;
42364 esac
42365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42366   (eval "$ac_link") 2>conftest.er1
42367   ac_status=$?
42368   grep -v '^ *+' conftest.er1 >conftest.err
42369   rm -f conftest.er1
42370   cat conftest.err >&5
42371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372   (exit $ac_status); } && {
42373          test -z "$ac_c_werror_flag" ||
42374          test ! -s conftest.err
42375        } && test -s conftest$ac_exeext &&
42376        $as_test_x conftest$ac_exeext; then
42377   ac_cv_lib_c_r_pthread_create=yes
42378 else
42379   echo "$as_me: failed program was:" >&5
42380 sed 's/^/| /' conftest.$ac_ext >&5
42381
42382         ac_cv_lib_c_r_pthread_create=no
42383 fi
42384
42385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42386       conftest$ac_exeext conftest.$ac_ext
42387 LIBS=$ac_check_lib_save_LIBS
42388 fi
42389 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42390 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42391 if test $ac_cv_lib_c_r_pthread_create = yes; then
42392   PTHREAD_LIB="-lc_r"
42393 else
42394
42395                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42396 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42397 if test "${ac_cv_func_pthread_create+set}" = set; then
42398   echo $ECHO_N "(cached) $ECHO_C" >&6
42399 else
42400   cat >conftest.$ac_ext <<_ACEOF
42401 /* confdefs.h.  */
42402 _ACEOF
42403 cat confdefs.h >>conftest.$ac_ext
42404 cat >>conftest.$ac_ext <<_ACEOF
42405 /* end confdefs.h.  */
42406 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42408 #define pthread_create innocuous_pthread_create
42409
42410 /* System header to define __stub macros and hopefully few prototypes,
42411     which can conflict with char pthread_create (); below.
42412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42413     <limits.h> exists even on freestanding compilers.  */
42414
42415 #ifdef __STDC__
42416 # include <limits.h>
42417 #else
42418 # include <assert.h>
42419 #endif
42420
42421 #undef pthread_create
42422
42423 /* Override any GCC internal prototype to avoid an error.
42424    Use char because int might match the return type of a GCC
42425    builtin and then its argument prototype would still apply.  */
42426 #ifdef __cplusplus
42427 extern "C"
42428 #endif
42429 char pthread_create ();
42430 /* The GNU C library defines this for functions which it implements
42431     to always fail with ENOSYS.  Some functions are actually named
42432     something starting with __ and the normal name is an alias.  */
42433 #if defined __stub_pthread_create || defined __stub___pthread_create
42434 choke me
42435 #endif
42436
42437 int
42438 main ()
42439 {
42440 return pthread_create ();
42441   ;
42442   return 0;
42443 }
42444 _ACEOF
42445 rm -f conftest.$ac_objext conftest$ac_exeext
42446 if { (ac_try="$ac_link"
42447 case "(($ac_try" in
42448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42449   *) ac_try_echo=$ac_try;;
42450 esac
42451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42452   (eval "$ac_link") 2>conftest.er1
42453   ac_status=$?
42454   grep -v '^ *+' conftest.er1 >conftest.err
42455   rm -f conftest.er1
42456   cat conftest.err >&5
42457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458   (exit $ac_status); } && {
42459          test -z "$ac_c_werror_flag" ||
42460          test ! -s conftest.err
42461        } && test -s conftest$ac_exeext &&
42462        $as_test_x conftest$ac_exeext; then
42463   ac_cv_func_pthread_create=yes
42464 else
42465   echo "$as_me: failed program was:" >&5
42466 sed 's/^/| /' conftest.$ac_ext >&5
42467
42468         ac_cv_func_pthread_create=no
42469 fi
42470
42471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42472       conftest$ac_exeext conftest.$ac_ext
42473 fi
42474 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42475 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42476
42477
42478
42479 fi
42480
42481
42482
42483 fi
42484
42485
42486
42487 fi
42488
42489
42490
42491 cat >>confdefs.h <<\_ACEOF
42492 #define FDLIBS 1
42493 _ACEOF
42494
42495
42496 CFLAGS=${CFLAGS--O}
42497
42498 if test x$have_gcc = xyes ; then
42499    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42500    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42501 fi
42502 LDFLAGS=${LDFLAGS--O}
42503 DB_LIBS="${SQL_LFLAGS}"
42504 CPPFLAGS="$CPPFLAGS"
42505 CFLAGS="$CFLAGS"
42506
42507
42508
42509
42510
42511
42512
42513
42514
42515
42516
42517
42518
42519
42520
42521
42522 OBJLIST=
42523
42524
42525 lld="lld"
42526 llu="llu"
42527
42528 WCFLAGS=
42529 WLDFLAGS=
42530
42531 PFILES="platforms/Makefile"
42532 PSCMD="ps -e"
42533 WIN32=
42534 MACOSX=
42535 hostname=`uname -n | cut -d '.' -f 1`
42536 if test x${hostname} = x ; then
42537    hostname="localhost"
42538 fi
42539 case "$DISTNAME" in
42540 aix)
42541    DISTVER=`uname -r`
42542    PSCMD="ps -e -o pid,comm"
42543    PFILES="${PFILES} \
42544       platforms/aix/Makefile"
42545    TAPEDRIVE="/dev/rmt0.1"
42546   ;;
42547 alpha)
42548    DISTVER=`uname -r`
42549    PTHREAD_LIB="-lpthread -lexc"
42550    if test "${CC}" = "gcc" ; then
42551       lld="lld"
42552       llu="llu"
42553    else
42554       lld="ld"
42555       llu="lu"
42556    fi
42557    TAPEDRIVE="/dev/nrmt0"
42558   ;;
42559 bsdi)
42560    DISTVER=`uname -a |awk '{print $3}'`
42561    TAPEDRIVE="/dev/nrmt0"
42562    PTHREAD_LIB="-pthread"
42563    CFLAGS="${CFLAGS} -pthread"
42564    PSCMD="ps -ax -o pid,command"
42565    lld="qd"
42566    llu="qu"
42567    PFILES="${PFILES} \
42568        platforms/bsdi/Makefile \
42569        platforms/bsdi/bacula-fd \
42570        platforms/bsdi/bacula-sd \
42571        platforms/bsdi/bacula-dir"
42572    largefile_support="yes"
42573   ;;
42574 cygwin)
42575    DISTVER=`uname -a |awk '{print $3}'`
42576    TAPEDRIVE="/dev/nrst0"
42577    WIN32=win32
42578    WCFLAGS="-mwindows"
42579    WLDFLAGS="-mwindows"
42580   ;;
42581 darwin)
42582    DISTVER=`uname -r`
42583    TAPEDRIVE="/dev/nst0"
42584    PSCMD="ps -e -o pid,command"
42585    MACOSX=macosx
42586    PFILES="${PFILES} \
42587       platforms/darwin/Makefile"
42588   ;;
42589 debian)
42590       ping -c 1 $hostname 2>&1 1>/dev/null
42591    if test ! $? = 0; then
42592       hostname="localhost"
42593    fi
42594    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42595       DISTNAME="ubuntu"
42596    fi
42597    DISTVER=`cat /etc/debian_version`
42598    if test -f /etc/lsb-release ; then
42599       . /etc/lsb-release
42600       if test "x$DISTRIB_ID" != "x" ; then
42601          DISTNAME=$DISTRIB_ID
42602       fi
42603       if test "x$DISTRIB_RELEASE" != "x" ; then
42604          DISTVER=$DISTRIB_RELEASE
42605       fi
42606    fi
42607    if test "$DISTNAME" = "Ubuntu" ; then
42608       DISTNAME="ubuntu"
42609    fi
42610    TAPEDRIVE="/dev/nst0"
42611    PSCMD="ps -e -o pid,command"
42612    if test "$DISTNAME" = "ubuntu" ; then
42613       PFILES="${PFILES} \
42614          platforms/ubuntu/Makefile \
42615          platforms/ubuntu/bacula-fd \
42616          platforms/ubuntu/bacula-sd \
42617          platforms/ubuntu/bacula-dir"
42618    else
42619       PFILES="${PFILES} \
42620          platforms/debian/Makefile \
42621          platforms/debian/bacula-fd \
42622          platforms/debian/bacula-sd \
42623          platforms/debian/bacula-dir"
42624    fi
42625   ;;
42626 freebsd)
42627       ping -c 1 $hostname 2>&1 1>/dev/null
42628    if test ! $? = 0; then
42629       hostname="localhost"
42630    fi
42631    DISTVER=`uname -a |awk '{print $3}'`
42632    VER=`echo $DISTVER | cut -c 1`
42633    if test x$VER = x4 ; then
42634       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42635       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42636    fi
42637    lld="qd"
42638    llu="qu"
42639    TAPEDRIVE="/dev/nrsa0"
42640    PSCMD="ps -ax -o pid,command"
42641    PFILES="${PFILES} \
42642        platforms/freebsd/Makefile \
42643        platforms/freebsd/bacula-fd \
42644        platforms/freebsd/bacula-sd \
42645        platforms/freebsd/bacula-dir"
42646    largefile_support="yes"
42647   ;;
42648 hpux)
42649    PSCMD="UNIX95=1; ps -e -o pid,comm"
42650    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42651    DISTVER=`uname -r`
42652    TAPEDRIVE="/dev/rmt/0hnb"
42653    PTHREAD_LIB="-lpthread"
42654    cat >>confdefs.h <<\_ACEOF
42655 #define _INCLUDE_LONGLONG 1
42656 _ACEOF
42657
42658   ;;
42659 irix)
42660    DISTVER=`uname -r`
42661    TAPEDRIVE="/dev/rmt/0cbn"
42662    PSCMD="ps -e -o pid,comm"
42663    PFILES="${PFILES} \
42664        platforms/irix/Makefile \
42665        platforms/irix/bacula-fd \
42666        platforms/irix/bacula-sd \
42667        platforms/irix/bacula-dir"
42668   ;;
42669 netbsd)
42670    DISTVER=`uname -a |awk '{print $3}'`
42671    lld="qd"
42672    llu="qu"
42673    TAPEDRIVE="/dev/nrst0"
42674    PSCMD="ps -ax -o pid,command"
42675    PTHREAD_LIB="-pthread"
42676    CFLAGS="${CFLAGS} -pthread"
42677   ;;
42678 openbsd)
42679    DISTVER=`uname -a |awk '{print $3}'`
42680    lld="qd"
42681    llu="qu"
42682    TAPEDRIVE="/dev/nrst0"
42683    PSCMD="ps -ax -o pid,command"
42684    PTHREAD_LIB="-pthread"
42685    CFLAGS="${CFLAGS} -pthread"
42686    PFILES="${PFILES} \
42687        platforms/openbsd/Makefile \
42688        platforms/openbsd/bacula-fd \
42689        platforms/openbsd/bacula-sd \
42690        platforms/openbsd/bacula-dir"
42691   ;;
42692 redhat)
42693       ping -c 1 $hostname 2>&1 1>/dev/null
42694    if test ! $? = 0; then
42695       hostname="localhost"
42696    fi
42697    if test -f /etc/whitebox-release ; then
42698       f=/etc/whitebox-release
42699    else
42700       f=/etc/redhat-release
42701    fi
42702    if test `cat $f | grep release |\
42703          cut -f 3 -d ' '`x = "Enterprise"x ; then
42704       DISTVER="Enterprise "`cat $f | grep release |\
42705           cut -f 6 -d ' '`
42706    else
42707        DISTVER=`cat /etc/redhat-release | grep release |\
42708            cut -f 5 -d ' '`
42709    fi
42710    TAPEDRIVE="/dev/nst0"
42711    PSCMD="ps -e -o pid,command"
42712    PFILES="${PFILES} \
42713        platforms/redhat/Makefile \
42714        platforms/redhat/bacula-fd \
42715        platforms/redhat/bacula-sd \
42716        platforms/redhat/bacula-dir \
42717        platforms/redhat/bacula.spec \
42718        "
42719   ;;
42720 mandrake)
42721       ping -c 1 $hostname 2>&1 1>/dev/null
42722    if test ! $? = 0; then
42723       hostname="localhost"
42724    fi
42725    DISTVER=`cat /etc/mandrake-release | grep release |\
42726       cut -f 5 -d ' '`
42727    TAPEDRIVE="/dev/nst0"
42728    PSCMD="ps -e -o pid,command"
42729    PFILES="${PFILES} \
42730        platforms/mandrake/Makefile \
42731        platforms/mandrake/bacula-fd \
42732        platforms/mandrake/bacula-sd \
42733        platforms/mandrake/bacula-dir \
42734        platforms/mandrake/bacula.spec \
42735        "
42736   ;;
42737 gentoo)
42738       ping -c 1 $hostname 2>&1 1>/dev/null
42739    if test ! $? = 0; then
42740       hostname="localhost"
42741    fi
42742    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42743    TAPEDRIVE="/dev/nst0"
42744    PSCMD="ps -e -o pid,command"
42745    PFILES="${PFILES} \
42746        platforms/gentoo/Makefile \
42747     platforms/gentoo/bacula-init \
42748        platforms/gentoo/bacula-fd \
42749        platforms/gentoo/bacula-sd \
42750        platforms/gentoo/bacula-dir"
42751   ;;
42752 slackware)
42753       ping -c 1 $hostname 2>&1 1>/dev/null
42754    if test ! $? = 0; then
42755       hostname="localhost"
42756    fi
42757    DISTVER=`cat /etc/slackware-version`
42758    TAPEDRIVE="/dev/nst0"
42759    PSCMD="ps -e -o pid,command"
42760    PFILES="${PFILES} \
42761        platforms/slackware/Makefile \
42762        platforms/slackware/rc.bacula-fd \
42763        platforms/slackware/rc.bacula-sd \
42764        platforms/slackware/rc.bacula-dir\
42765        platforms/slackware/functions.bacula"
42766   ;;
42767 solaris)
42768    DISTVER=`uname -r`
42769    TAPEDRIVE="/dev/rmt/0cbn"
42770    PSCMD="ps -e -o pid,comm"
42771    PFILES="${PFILES} \
42772        platforms/solaris/Makefile \
42773        platforms/solaris/bacula-fd \
42774        platforms/solaris/bacula-sd \
42775        platforms/solaris/bacula-dir"
42776    if test x$DISTVER = x5.6 ; then
42777        cat >>confdefs.h <<\_ACEOF
42778 #define HAVE_OLD_SOCKOPT 1
42779 _ACEOF
42780
42781    fi
42782    LIBS="$LIBS -lresolv"
42783   ;;
42784 suse)
42785       ping -c 1 $hostname 2>&1 1>/dev/null
42786    if test ! $? = 0; then
42787       hostname="localhost"
42788    fi
42789    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42790        cut -f 3 -d ' '`
42791    TAPEDRIVE="/dev/nst0"
42792    PSCMD="ps -e -o pid,command"
42793    PFILES="${PFILES} \
42794        platforms/suse/Makefile \
42795        platforms/suse/bacula-fd \
42796        platforms/suse/bacula-sd \
42797        platforms/suse/bacula-dir \
42798        platforms/suse/bacula \
42799        platforms/suse/bacula.spec"
42800   ;;
42801 suse5)
42802       ping -c 1 $hostname 2>&1 1>/dev/null
42803    if test ! $? = 0; then
42804       hostname="localhost"
42805    fi
42806    DISTNAME=suse
42807    DISTVER=5.x
42808    TAPEDRIVE="/dev/nst0"
42809    PSCMD="ps -e -o pid,command"
42810    PFILES="${PFILES} \
42811        platforms/suse/Makefile \
42812        platforms/suse/bacula-fd \
42813        platforms/suse/bacula-sd \
42814        platforms/suse/bacula-dir"
42815   ;;
42816 unknown)
42817    DISTVER=unknown
42818    TAPEDRIVE="/dev/nst0"
42819   ;;
42820 *)
42821   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42822   ;;
42823 esac
42824
42825
42826
42827 LIBS="$PTHREAD_LIB $LIBS"
42828
42829 cat >>confdefs.h <<_ACEOF
42830 #define lld "$lld"
42831 _ACEOF
42832
42833 cat >>confdefs.h <<_ACEOF
42834 #define llu "$llu"
42835 _ACEOF
42836
42837
42838
42839
42840
42841
42842
42843
42844 MCOMMON=./autoconf/Make.common
42845
42846
42847 if test "x${subsysdir}" = "x${sbindir}" ; then
42848    echo " "
42849    echo " "
42850    echo "You have set both --sbindir and --with-subsys-dir"
42851    echo "  equal to: ${subsysdir} "
42852    echo "This is not permitted. Please reconfigure."
42853    echo " "
42854    echo "Aborting configuration ..."
42855    echo " "
42856    echo " "
42857    exit 1
42858 fi
42859
42860 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"
42861
42862 ac_config_commands="$ac_config_commands default"
42863
42864 cat >confcache <<\_ACEOF
42865 # This file is a shell script that caches the results of configure
42866 # tests run on this system so they can be shared between configure
42867 # scripts and configure runs, see configure's option --config-cache.
42868 # It is not useful on other systems.  If it contains results you don't
42869 # want to keep, you may remove or edit it.
42870 #
42871 # config.status only pays attention to the cache file if you give it
42872 # the --recheck option to rerun configure.
42873 #
42874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42876 # following values.
42877
42878 _ACEOF
42879
42880 # The following way of writing the cache mishandles newlines in values,
42881 # but we know of no workaround that is simple, portable, and efficient.
42882 # So, we kill variables containing newlines.
42883 # Ultrix sh set writes to stderr and can't be redirected directly,
42884 # and sets the high bit in the cache file unless we assign to the vars.
42885 (
42886   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42887     eval ac_val=\$$ac_var
42888     case $ac_val in #(
42889     *${as_nl}*)
42890       case $ac_var in #(
42891       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42892 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42893       esac
42894       case $ac_var in #(
42895       _ | IFS | as_nl) ;; #(
42896       *) $as_unset $ac_var ;;
42897       esac ;;
42898     esac
42899   done
42900
42901   (set) 2>&1 |
42902     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42903     *${as_nl}ac_space=\ *)
42904       # `set' does not quote correctly, so add quotes (double-quote
42905       # substitution turns \\\\ into \\, and sed turns \\ into \).
42906       sed -n \
42907         "s/'/'\\\\''/g;
42908           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42909       ;; #(
42910     *)
42911       # `set' quotes correctly as required by POSIX, so do not add quotes.
42912       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42913       ;;
42914     esac |
42915     sort
42916 ) |
42917   sed '
42918      /^ac_cv_env_/b end
42919      t clear
42920      :clear
42921      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42922      t end
42923      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42924      :end' >>confcache
42925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42926   if test -w "$cache_file"; then
42927     test "x$cache_file" != "x/dev/null" &&
42928       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42929 echo "$as_me: updating cache $cache_file" >&6;}
42930     cat confcache >$cache_file
42931   else
42932     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42933 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42934   fi
42935 fi
42936 rm -f confcache
42937
42938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42939 # Let make expand exec_prefix.
42940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42941
42942 DEFS=-DHAVE_CONFIG_H
42943
42944 ac_libobjs=
42945 ac_ltlibobjs=
42946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42947   # 1. Remove the extension, and $U if already installed.
42948   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42949   ac_i=`echo "$ac_i" | sed "$ac_script"`
42950   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42951   #    will be set to the directory where LIBOBJS objects are built.
42952   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42953   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42954 done
42955 LIBOBJS=$ac_libobjs
42956
42957 LTLIBOBJS=$ac_ltlibobjs
42958
42959
42960
42961 : ${CONFIG_STATUS=./config.status}
42962 ac_clean_files_save=$ac_clean_files
42963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42964 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42965 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42966 cat >$CONFIG_STATUS <<_ACEOF
42967 #! $SHELL
42968 # Generated by $as_me.
42969 # Run this file to recreate the current configuration.
42970 # Compiler output produced by configure, useful for debugging
42971 # configure, is in config.log if it exists.
42972
42973 debug=false
42974 ac_cs_recheck=false
42975 ac_cs_silent=false
42976 SHELL=\${CONFIG_SHELL-$SHELL}
42977 _ACEOF
42978
42979 cat >>$CONFIG_STATUS <<\_ACEOF
42980 ## --------------------- ##
42981 ## M4sh Initialization.  ##
42982 ## --------------------- ##
42983
42984 # Be more Bourne compatible
42985 DUALCASE=1; export DUALCASE # for MKS sh
42986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42987   emulate sh
42988   NULLCMD=:
42989   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42990   # is contrary to our usage.  Disable this feature.
42991   alias -g '${1+"$@"}'='"$@"'
42992   setopt NO_GLOB_SUBST
42993 else
42994   case `(set -o) 2>/dev/null` in
42995   *posix*) set -o posix ;;
42996 esac
42997
42998 fi
42999
43000
43001
43002
43003 # PATH needs CR
43004 # Avoid depending upon Character Ranges.
43005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43008 as_cr_digits='0123456789'
43009 as_cr_alnum=$as_cr_Letters$as_cr_digits
43010
43011 # The user is always right.
43012 if test "${PATH_SEPARATOR+set}" != set; then
43013   echo "#! /bin/sh" >conf$$.sh
43014   echo  "exit 0"   >>conf$$.sh
43015   chmod +x conf$$.sh
43016   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43017     PATH_SEPARATOR=';'
43018   else
43019     PATH_SEPARATOR=:
43020   fi
43021   rm -f conf$$.sh
43022 fi
43023
43024 # Support unset when possible.
43025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43026   as_unset=unset
43027 else
43028   as_unset=false
43029 fi
43030
43031
43032 # IFS
43033 # We need space, tab and new line, in precisely that order.  Quoting is
43034 # there to prevent editors from complaining about space-tab.
43035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43036 # splitting by setting IFS to empty value.)
43037 as_nl='
43038 '
43039 IFS=" ""        $as_nl"
43040
43041 # Find who we are.  Look in the path if we contain no directory separator.
43042 case $0 in
43043   *[\\/]* ) as_myself=$0 ;;
43044   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43045 for as_dir in $PATH
43046 do
43047   IFS=$as_save_IFS
43048   test -z "$as_dir" && as_dir=.
43049   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43050 done
43051 IFS=$as_save_IFS
43052
43053      ;;
43054 esac
43055 # We did not find ourselves, most probably we were run as `sh COMMAND'
43056 # in which case we are not to be found in the path.
43057 if test "x$as_myself" = x; then
43058   as_myself=$0
43059 fi
43060 if test ! -f "$as_myself"; then
43061   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43062   { (exit 1); exit 1; }
43063 fi
43064
43065 # Work around bugs in pre-3.0 UWIN ksh.
43066 for as_var in ENV MAIL MAILPATH
43067 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43068 done
43069 PS1='$ '
43070 PS2='> '
43071 PS4='+ '
43072
43073 # NLS nuisances.
43074 for as_var in \
43075   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43076   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43077   LC_TELEPHONE LC_TIME
43078 do
43079   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43080     eval $as_var=C; export $as_var
43081   else
43082     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43083   fi
43084 done
43085
43086 # Required to use basename.
43087 if expr a : '\(a\)' >/dev/null 2>&1 &&
43088    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43089   as_expr=expr
43090 else
43091   as_expr=false
43092 fi
43093
43094 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43095   as_basename=basename
43096 else
43097   as_basename=false
43098 fi
43099
43100
43101 # Name of the executable.
43102 as_me=`$as_basename -- "$0" ||
43103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43104          X"$0" : 'X\(//\)$' \| \
43105          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43106 echo X/"$0" |
43107     sed '/^.*\/\([^/][^/]*\)\/*$/{
43108             s//\1/
43109             q
43110           }
43111           /^X\/\(\/\/\)$/{
43112             s//\1/
43113             q
43114           }
43115           /^X\/\(\/\).*/{
43116             s//\1/
43117             q
43118           }
43119           s/.*/./; q'`
43120
43121 # CDPATH.
43122 $as_unset CDPATH
43123
43124
43125
43126   as_lineno_1=$LINENO
43127   as_lineno_2=$LINENO
43128   test "x$as_lineno_1" != "x$as_lineno_2" &&
43129   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43130
43131   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43132   # uniformly replaced by the line number.  The first 'sed' inserts a
43133   # line-number line after each line using $LINENO; the second 'sed'
43134   # does the real work.  The second script uses 'N' to pair each
43135   # line-number line with the line containing $LINENO, and appends
43136   # trailing '-' during substitution so that $LINENO is not a special
43137   # case at line end.
43138   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43139   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43140   # E. McMahon (1931-1989) for sed's syntax.  :-)
43141   sed -n '
43142     p
43143     /[$]LINENO/=
43144   ' <$as_myself |
43145     sed '
43146       s/[$]LINENO.*/&-/
43147       t lineno
43148       b
43149       :lineno
43150       N
43151       :loop
43152       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43153       t loop
43154       s/-\n.*//
43155     ' >$as_me.lineno &&
43156   chmod +x "$as_me.lineno" ||
43157     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43158    { (exit 1); exit 1; }; }
43159
43160   # Don't try to exec as it changes $[0], causing all sort of problems
43161   # (the dirname of $[0] is not the place where we might find the
43162   # original and so on.  Autoconf is especially sensitive to this).
43163   . "./$as_me.lineno"
43164   # Exit status is that of the last command.
43165   exit
43166 }
43167
43168
43169 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43170   as_dirname=dirname
43171 else
43172   as_dirname=false
43173 fi
43174
43175 ECHO_C= ECHO_N= ECHO_T=
43176 case `echo -n x` in
43177 -n*)
43178   case `echo 'x\c'` in
43179   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43180   *)   ECHO_C='\c';;
43181   esac;;
43182 *)
43183   ECHO_N='-n';;
43184 esac
43185
43186 if expr a : '\(a\)' >/dev/null 2>&1 &&
43187    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43188   as_expr=expr
43189 else
43190   as_expr=false
43191 fi
43192
43193 rm -f conf$$ conf$$.exe conf$$.file
43194 if test -d conf$$.dir; then
43195   rm -f conf$$.dir/conf$$.file
43196 else
43197   rm -f conf$$.dir
43198   mkdir conf$$.dir
43199 fi
43200 echo >conf$$.file
43201 if ln -s conf$$.file conf$$ 2>/dev/null; then
43202   as_ln_s='ln -s'
43203   # ... but there are two gotchas:
43204   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43205   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43206   # In both cases, we have to default to `cp -p'.
43207   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43208     as_ln_s='cp -p'
43209 elif ln conf$$.file conf$$ 2>/dev/null; then
43210   as_ln_s=ln
43211 else
43212   as_ln_s='cp -p'
43213 fi
43214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43215 rmdir conf$$.dir 2>/dev/null
43216
43217 if mkdir -p . 2>/dev/null; then
43218   as_mkdir_p=:
43219 else
43220   test -d ./-p && rmdir ./-p
43221   as_mkdir_p=false
43222 fi
43223
43224 if test -x / >/dev/null 2>&1; then
43225   as_test_x='test -x'
43226 else
43227   if ls -dL / >/dev/null 2>&1; then
43228     as_ls_L_option=L
43229   else
43230     as_ls_L_option=
43231   fi
43232   as_test_x='
43233     eval sh -c '\''
43234       if test -d "$1"; then
43235         test -d "$1/.";
43236       else
43237         case $1 in
43238         -*)set "./$1";;
43239         esac;
43240         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43241         ???[sx]*):;;*)false;;esac;fi
43242     '\'' sh
43243   '
43244 fi
43245 as_executable_p=$as_test_x
43246
43247 # Sed expression to map a string onto a valid CPP name.
43248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43249
43250 # Sed expression to map a string onto a valid variable name.
43251 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43252
43253
43254 exec 6>&1
43255
43256 # Save the log message, to keep $[0] and so on meaningful, and to
43257 # report actual input values of CONFIG_FILES etc. instead of their
43258 # values after options handling.
43259 ac_log="
43260 This file was extended by $as_me, which was
43261 generated by GNU Autoconf 2.61.  Invocation command line was
43262
43263   CONFIG_FILES    = $CONFIG_FILES
43264   CONFIG_HEADERS  = $CONFIG_HEADERS
43265   CONFIG_LINKS    = $CONFIG_LINKS
43266   CONFIG_COMMANDS = $CONFIG_COMMANDS
43267   $ $0 $@
43268
43269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43270 "
43271
43272 _ACEOF
43273
43274 cat >>$CONFIG_STATUS <<_ACEOF
43275 # Files that config.status was made for.
43276 config_files="$ac_config_files"
43277 config_headers="$ac_config_headers"
43278 config_commands="$ac_config_commands"
43279
43280 _ACEOF
43281
43282 cat >>$CONFIG_STATUS <<\_ACEOF
43283 ac_cs_usage="\
43284 \`$as_me' instantiates files from templates according to the
43285 current configuration.
43286
43287 Usage: $0 [OPTIONS] [FILE]...
43288
43289   -h, --help       print this help, then exit
43290   -V, --version    print version number and configuration settings, then exit
43291   -q, --quiet      do not print progress messages
43292   -d, --debug      don't remove temporary files
43293       --recheck    update $as_me by reconfiguring in the same conditions
43294   --file=FILE[:TEMPLATE]
43295                    instantiate the configuration file FILE
43296   --header=FILE[:TEMPLATE]
43297                    instantiate the configuration header FILE
43298
43299 Configuration files:
43300 $config_files
43301
43302 Configuration headers:
43303 $config_headers
43304
43305 Configuration commands:
43306 $config_commands
43307
43308 Report bugs to <bug-autoconf@gnu.org>."
43309
43310 _ACEOF
43311 cat >>$CONFIG_STATUS <<_ACEOF
43312 ac_cs_version="\\
43313 config.status
43314 configured by $0, generated by GNU Autoconf 2.61,
43315   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43316
43317 Copyright (C) 2006 Free Software Foundation, Inc.
43318 This config.status script is free software; the Free Software Foundation
43319 gives unlimited permission to copy, distribute and modify it."
43320
43321 ac_pwd='$ac_pwd'
43322 srcdir='$srcdir'
43323 INSTALL='$INSTALL'
43324 _ACEOF
43325
43326 cat >>$CONFIG_STATUS <<\_ACEOF
43327 # If no file are specified by the user, then we need to provide default
43328 # value.  By we need to know if files were specified by the user.
43329 ac_need_defaults=:
43330 while test $# != 0
43331 do
43332   case $1 in
43333   --*=*)
43334     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43335     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43336     ac_shift=:
43337     ;;
43338   *)
43339     ac_option=$1
43340     ac_optarg=$2
43341     ac_shift=shift
43342     ;;
43343   esac
43344
43345   case $ac_option in
43346   # Handling of the options.
43347   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43348     ac_cs_recheck=: ;;
43349   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43350     echo "$ac_cs_version"; exit ;;
43351   --debug | --debu | --deb | --de | --d | -d )
43352     debug=: ;;
43353   --file | --fil | --fi | --f )
43354     $ac_shift
43355     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43356     ac_need_defaults=false;;
43357   --header | --heade | --head | --hea )
43358     $ac_shift
43359     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43360     ac_need_defaults=false;;
43361   --he | --h)
43362     # Conflict between --help and --header
43363     { echo "$as_me: error: ambiguous option: $1
43364 Try \`$0 --help' for more information." >&2
43365    { (exit 1); exit 1; }; };;
43366   --help | --hel | -h )
43367     echo "$ac_cs_usage"; exit ;;
43368   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43369   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43370     ac_cs_silent=: ;;
43371
43372   # This is an error.
43373   -*) { echo "$as_me: error: unrecognized option: $1
43374 Try \`$0 --help' for more information." >&2
43375    { (exit 1); exit 1; }; } ;;
43376
43377   *) ac_config_targets="$ac_config_targets $1"
43378      ac_need_defaults=false ;;
43379
43380   esac
43381   shift
43382 done
43383
43384 ac_configure_extra_args=
43385
43386 if $ac_cs_silent; then
43387   exec 6>/dev/null
43388   ac_configure_extra_args="$ac_configure_extra_args --silent"
43389 fi
43390
43391 _ACEOF
43392 cat >>$CONFIG_STATUS <<_ACEOF
43393 if \$ac_cs_recheck; then
43394   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43395   CONFIG_SHELL=$SHELL
43396   export CONFIG_SHELL
43397   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43398 fi
43399
43400 _ACEOF
43401 cat >>$CONFIG_STATUS <<\_ACEOF
43402 exec 5>>config.log
43403 {
43404   echo
43405   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43406 ## Running $as_me. ##
43407 _ASBOX
43408   echo "$ac_log"
43409 } >&5
43410
43411 _ACEOF
43412 cat >>$CONFIG_STATUS <<_ACEOF
43413 #
43414 # INIT-COMMANDS
43415 #
43416
43417
43418 # The HP-UX ksh and POSIX shell print the target directory to stdout
43419 # if CDPATH is set.
43420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43421
43422 sed_quote_subst='$sed_quote_subst'
43423 double_quote_subst='$double_quote_subst'
43424 delay_variable_subst='$delay_variable_subst'
43425 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43426 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43427 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43428 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43429 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43430 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43431 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43432 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43433 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43434 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43435 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43436 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43437 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43438 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43439 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43440 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43441 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43442 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43443 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43444 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43445 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43446 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43447 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43448 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43449 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43450 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43451 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43452 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43453 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43454 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43455 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43456 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43457 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43458 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43459 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43460 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43461 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43462 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43463 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43464 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43465 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43466 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43467 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43468 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43469 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"`'
43470 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"`'
43471 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43472 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43473 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43474 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43475 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43476 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43477 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43478 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43479 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43480 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43481 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43482 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43483 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43484 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43485 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43486 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43487 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43488 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43489 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43490 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43491 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43492 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43493 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43494 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43495 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43496 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43497 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43498 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43499 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43500 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43501 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43502 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43503 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43504 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43505 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43506 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43507 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43508 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43509 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43510 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43511 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43512 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43513 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43514 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43515 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43516 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43517 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43518 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43519 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43520 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43521 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43522 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43523 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43524 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43525 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43526 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43527 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43528 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43529 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43530 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43531 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43532 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43533 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43534 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43535 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43536 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43537 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43538 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43539 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43540 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43541 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43542 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43543 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43544 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43545 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43546 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43547 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43548 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43549 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43550 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43551 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43552 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43553 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43554 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43555 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43556 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43557 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43558 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43559 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43560 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43561 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43562 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43563 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43564 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43565 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43566 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43567 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43568 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43569 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43570 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43571 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43572 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43573 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43574 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43575 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43576 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43577 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43578 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43579 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43580 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43581 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43582 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43583 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43584 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43585 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43586 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43587 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43588 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43589 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43590 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43591 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43592 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43593 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43594 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43595 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43596
43597 LTCC='$LTCC'
43598 LTCFLAGS='$LTCFLAGS'
43599 compiler='$compiler_DEFAULT'
43600
43601 # Quote evaled strings.
43602 for var in SED \
43603 GREP \
43604 EGREP \
43605 FGREP \
43606 LD \
43607 NM \
43608 LN_S \
43609 lt_SP2NL \
43610 lt_NL2SP \
43611 reload_flag \
43612 OBJDUMP \
43613 deplibs_check_method \
43614 file_magic_cmd \
43615 AR \
43616 AR_FLAGS \
43617 STRIP \
43618 RANLIB \
43619 CC \
43620 CFLAGS \
43621 compiler \
43622 lt_cv_sys_global_symbol_pipe \
43623 lt_cv_sys_global_symbol_to_cdecl \
43624 lt_cv_sys_global_symbol_to_c_name_address \
43625 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43626 SHELL \
43627 ECHO \
43628 lt_prog_compiler_no_builtin_flag \
43629 lt_prog_compiler_wl \
43630 lt_prog_compiler_pic \
43631 lt_prog_compiler_static \
43632 lt_cv_prog_compiler_c_o \
43633 need_locks \
43634 DSYMUTIL \
43635 NMEDIT \
43636 LIPO \
43637 OTOOL \
43638 OTOOL64 \
43639 shrext_cmds \
43640 export_dynamic_flag_spec \
43641 whole_archive_flag_spec \
43642 compiler_needs_object \
43643 with_gnu_ld \
43644 allow_undefined_flag \
43645 no_undefined_flag \
43646 hardcode_libdir_flag_spec \
43647 hardcode_libdir_flag_spec_ld \
43648 hardcode_libdir_separator \
43649 fix_srcfile_path \
43650 exclude_expsyms \
43651 include_expsyms \
43652 file_list_spec \
43653 variables_saved_for_relink \
43654 libname_spec \
43655 library_names_spec \
43656 soname_spec \
43657 finish_eval \
43658 old_striplib \
43659 striplib \
43660 compiler_lib_search_dirs \
43661 predep_objects \
43662 postdep_objects \
43663 predeps \
43664 postdeps \
43665 compiler_lib_search_path \
43666 LD_CXX \
43667 compiler_CXX \
43668 lt_prog_compiler_no_builtin_flag_CXX \
43669 lt_prog_compiler_wl_CXX \
43670 lt_prog_compiler_pic_CXX \
43671 lt_prog_compiler_static_CXX \
43672 lt_cv_prog_compiler_c_o_CXX \
43673 export_dynamic_flag_spec_CXX \
43674 whole_archive_flag_spec_CXX \
43675 compiler_needs_object_CXX \
43676 with_gnu_ld_CXX \
43677 allow_undefined_flag_CXX \
43678 no_undefined_flag_CXX \
43679 hardcode_libdir_flag_spec_CXX \
43680 hardcode_libdir_flag_spec_ld_CXX \
43681 hardcode_libdir_separator_CXX \
43682 fix_srcfile_path_CXX \
43683 exclude_expsyms_CXX \
43684 include_expsyms_CXX \
43685 file_list_spec_CXX \
43686 compiler_lib_search_dirs_CXX \
43687 predep_objects_CXX \
43688 postdep_objects_CXX \
43689 predeps_CXX \
43690 postdeps_CXX \
43691 compiler_lib_search_path_CXX; do
43692     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43693     *[\\\\\\\`\\"\\\$]*)
43694       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43695       ;;
43696     *)
43697       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43698       ;;
43699     esac
43700 done
43701
43702 # Double-quote double-evaled strings.
43703 for var in reload_cmds \
43704 old_postinstall_cmds \
43705 old_postuninstall_cmds \
43706 old_archive_cmds \
43707 extract_expsyms_cmds \
43708 old_archive_from_new_cmds \
43709 old_archive_from_expsyms_cmds \
43710 archive_cmds \
43711 archive_expsym_cmds \
43712 module_cmds \
43713 module_expsym_cmds \
43714 export_symbols_cmds \
43715 prelink_cmds \
43716 postinstall_cmds \
43717 postuninstall_cmds \
43718 finish_cmds \
43719 sys_lib_search_path_spec \
43720 sys_lib_dlsearch_path_spec \
43721 old_archive_cmds_CXX \
43722 old_archive_from_new_cmds_CXX \
43723 old_archive_from_expsyms_cmds_CXX \
43724 archive_cmds_CXX \
43725 archive_expsym_cmds_CXX \
43726 module_cmds_CXX \
43727 module_expsym_cmds_CXX \
43728 export_symbols_cmds_CXX \
43729 prelink_cmds_CXX; do
43730     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43731     *[\\\\\\\`\\"\\\$]*)
43732       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43733       ;;
43734     *)
43735       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43736       ;;
43737     esac
43738 done
43739
43740 # Fix-up fallback echo if it was mangled by the above quoting rules.
43741 case \$lt_ECHO in
43742 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43743   ;;
43744 esac
43745
43746 ac_aux_dir='$ac_aux_dir'
43747 xsi_shell='$xsi_shell'
43748 lt_shell_append='$lt_shell_append'
43749
43750 # See if we are running on zsh, and set the options which allow our
43751 # commands through without removal of \ escapes INIT.
43752 if test -n "\${ZSH_VERSION+set}" ; then
43753    setopt NO_GLOB_SUBST
43754 fi
43755
43756
43757     PACKAGE='$PACKAGE'
43758     VERSION='$VERSION'
43759     TIMESTAMP='$TIMESTAMP'
43760     RM='$RM'
43761     ofile='$ofile'
43762
43763
43764
43765
43766
43767 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43768     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43769     # from automake.
43770     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43771     # Capture the value of LINGUAS because we need it to compute CATALOGS.
43772     LINGUAS="${LINGUAS-%UNSET%}"
43773
43774
43775 _ACEOF
43776
43777 cat >>$CONFIG_STATUS <<\_ACEOF
43778
43779 # Handling of arguments.
43780 for ac_config_target in $ac_config_targets
43781 do
43782   case $ac_config_target in
43783     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43784     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43785     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43786     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43787     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43788     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43789     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43790     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43791     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43792     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43793     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43794     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43795     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43796     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43797     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43798     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43799     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43800     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43801     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43802     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43803     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43804     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43805     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43806     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43807     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43808     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43809     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43810     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43811     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43812     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43813     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43814     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43815     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43816     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43817     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43818     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43819     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43820     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43821     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43822     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43823     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43824     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43825     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43826     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43827     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43828     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43829     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43830     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43831     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43832     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43833     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43834     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43835     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43836     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43837     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43838     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43839     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43840     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43841     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43842     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43843     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43844     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43845     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43846     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43847     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43848     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43849     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43850     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43851     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43852     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43853     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43854     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43855     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43856     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43857     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43858     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43859     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43860     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43861     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43862     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43863     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43864     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43865     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43866     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43867     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43868     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43869     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43870     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43871     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43872     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43873     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43874     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43875     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43876     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43877     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43878     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43879     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43880     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43881     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43882     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43883     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43884     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43885     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43886     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43887     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43888     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43889     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43890     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43891     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43892     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43893     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43894     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43895     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43896     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43897     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43898     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43899     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43900     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43901     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43902     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43903
43904   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43905 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43906    { (exit 1); exit 1; }; };;
43907   esac
43908 done
43909
43910
43911 # If the user did not use the arguments to specify the items to instantiate,
43912 # then the envvar interface is used.  Set only those that are not.
43913 # We use the long form for the default assignment because of an extremely
43914 # bizarre bug on SunOS 4.1.3.
43915 if $ac_need_defaults; then
43916   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43917   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43918   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43919 fi
43920
43921 # Have a temporary directory for convenience.  Make it in the build tree
43922 # simply because there is no reason against having it here, and in addition,
43923 # creating and moving files from /tmp can sometimes cause problems.
43924 # Hook for its removal unless debugging.
43925 # Note that there is a small window in which the directory will not be cleaned:
43926 # after its creation but before its name has been assigned to `$tmp'.
43927 $debug ||
43928 {
43929   tmp=
43930   trap 'exit_status=$?
43931   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43932 ' 0
43933   trap '{ (exit 1); exit 1; }' 1 2 13 15
43934 }
43935 # Create a (secure) tmp directory for tmp files.
43936
43937 {
43938   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43939   test -n "$tmp" && test -d "$tmp"
43940 }  ||
43941 {
43942   tmp=./conf$$-$RANDOM
43943   (umask 077 && mkdir "$tmp")
43944 } ||
43945 {
43946    echo "$me: cannot create a temporary directory in ." >&2
43947    { (exit 1); exit 1; }
43948 }
43949
43950 #
43951 # Set up the sed scripts for CONFIG_FILES section.
43952 #
43953
43954 # No need to generate the scripts if there are no CONFIG_FILES.
43955 # This happens for instance when ./config.status config.h
43956 if test -n "$CONFIG_FILES"; then
43957
43958 _ACEOF
43959
43960 # Create sed commands to just substitute file output variables.
43961
43962 # Remaining file output variables are in a fragment that also has non-file
43963 # output varibles.
43964
43965
43966
43967 ac_delim='%!_!# '
43968 for ac_last_try in false false false false false :; do
43969   cat >conf$$subs.sed <<_ACEOF
43970 SHELL!$SHELL$ac_delim
43971 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43972 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43973 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43974 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43975 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43976 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43977 exec_prefix!$exec_prefix$ac_delim
43978 prefix!$prefix$ac_delim
43979 program_transform_name!$program_transform_name$ac_delim
43980 bindir!$bindir$ac_delim
43981 sbindir!$sbindir$ac_delim
43982 libexecdir!$libexecdir$ac_delim
43983 datarootdir!$datarootdir$ac_delim
43984 datadir!$datadir$ac_delim
43985 sysconfdir!$sysconfdir$ac_delim
43986 sharedstatedir!$sharedstatedir$ac_delim
43987 localstatedir!$localstatedir$ac_delim
43988 includedir!$includedir$ac_delim
43989 oldincludedir!$oldincludedir$ac_delim
43990 docdir!$docdir$ac_delim
43991 infodir!$infodir$ac_delim
43992 htmldir!$htmldir$ac_delim
43993 dvidir!$dvidir$ac_delim
43994 pdfdir!$pdfdir$ac_delim
43995 psdir!$psdir$ac_delim
43996 libdir!$libdir$ac_delim
43997 localedir!$localedir$ac_delim
43998 mandir!$mandir$ac_delim
43999 DEFS!$DEFS$ac_delim
44000 ECHO_C!$ECHO_C$ac_delim
44001 ECHO_N!$ECHO_N$ac_delim
44002 ECHO_T!$ECHO_T$ac_delim
44003 LIBS!$LIBS$ac_delim
44004 build_alias!$build_alias$ac_delim
44005 host_alias!$host_alias$ac_delim
44006 target_alias!$target_alias$ac_delim
44007 BUILD_DIR!$BUILD_DIR$ac_delim
44008 TOP_DIR!$TOP_DIR$ac_delim
44009 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44010 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44011 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44012 TRUEPRG!$TRUEPRG$ac_delim
44013 FALSEPRG!$FALSEPRG$ac_delim
44014 VERSION!$VERSION$ac_delim
44015 DATE!$DATE$ac_delim
44016 LSMDATE!$LSMDATE$ac_delim
44017 BACULA!$BACULA$ac_delim
44018 post_host!$post_host$ac_delim
44019 CC!$CC$ac_delim
44020 CFLAGS!$CFLAGS$ac_delim
44021 LDFLAGS!$LDFLAGS$ac_delim
44022 CPPFLAGS!$CPPFLAGS$ac_delim
44023 ac_ct_CC!$ac_ct_CC$ac_delim
44024 EXEEXT!$EXEEXT$ac_delim
44025 OBJEXT!$OBJEXT$ac_delim
44026 CXX!$CXX$ac_delim
44027 CXXFLAGS!$CXXFLAGS$ac_delim
44028 ac_ct_CXX!$ac_ct_CXX$ac_delim
44029 CPP!$CPP$ac_delim
44030 GREP!$GREP$ac_delim
44031 EGREP!$EGREP$ac_delim
44032 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44033 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44034 INSTALL_DATA!$INSTALL_DATA$ac_delim
44035 MV!$MV$ac_delim
44036 REMOVE!$REMOVE$ac_delim
44037 CP!$CP$ac_delim
44038 SED!$SED$ac_delim
44039 ECHO!$ECHO$ac_delim
44040 CMP!$CMP$ac_delim
44041 TBL!$TBL$ac_delim
44042 AR!$AR$ac_delim
44043 OPENSSL!$OPENSSL$ac_delim
44044 MTX!$MTX$ac_delim
44045 DD!$DD$ac_delim
44046 MKISOFS!$MKISOFS$ac_delim
44047 PYTHON!$PYTHON$ac_delim
44048 GROWISOFS!$GROWISOFS$ac_delim
44049 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44050 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44051 PKGCONFIG!$PKGCONFIG$ac_delim
44052 QMAKE!$QMAKE$ac_delim
44053 QMAKEQT4!$QMAKEQT4$ac_delim
44054 GMAKE!$GMAKE$ac_delim
44055 WXCONFIG!$WXCONFIG$ac_delim
44056 WXFLAGS!$WXFLAGS$ac_delim
44057 CDRECORD!$CDRECORD$ac_delim
44058 PIDOF!$PIDOF$ac_delim
44059 AWK!$AWK$ac_delim
44060 ARFLAGS!$ARFLAGS$ac_delim
44061 MAKE_SHELL!$MAKE_SHELL$ac_delim
44062 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44063 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44064 _ACEOF
44065
44066   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44067     break
44068   elif $ac_last_try; then
44069     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44070 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44071    { (exit 1); exit 1; }; }
44072   else
44073     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44074   fi
44075 done
44076
44077 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44078 if test -n "$ac_eof"; then
44079   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44080   ac_eof=`expr $ac_eof + 1`
44081 fi
44082
44083 cat >>$CONFIG_STATUS <<_ACEOF
44084 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44086 /^[      ]*@MCOMMON@[    ]*$/{
44087 r $MCOMMON
44088 d
44089 }
44090 _ACEOF
44091 sed '
44092 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44093 s/^/s,@/; s/!/@,|#_!!_#|/
44094 :n
44095 t n
44096 s/'"$ac_delim"'$/,g/; t
44097 s/$/\\/; p
44098 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44099 ' >>$CONFIG_STATUS <conf$$subs.sed
44100 rm -f conf$$subs.sed
44101 cat >>$CONFIG_STATUS <<_ACEOF
44102 CEOF$ac_eof
44103 _ACEOF
44104
44105
44106 ac_delim='%!_!# '
44107 for ac_last_try in false false false false false :; do
44108   cat >conf$$subs.sed <<_ACEOF
44109 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44110 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44111 LIBTOOL!$LIBTOOL$ac_delim
44112 build!$build$ac_delim
44113 build_cpu!$build_cpu$ac_delim
44114 build_vendor!$build_vendor$ac_delim
44115 build_os!$build_os$ac_delim
44116 host!$host$ac_delim
44117 host_cpu!$host_cpu$ac_delim
44118 host_vendor!$host_vendor$ac_delim
44119 host_os!$host_os$ac_delim
44120 FGREP!$FGREP$ac_delim
44121 LD!$LD$ac_delim
44122 DUMPBIN!$DUMPBIN$ac_delim
44123 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44124 NM!$NM$ac_delim
44125 LN_S!$LN_S$ac_delim
44126 OBJDUMP!$OBJDUMP$ac_delim
44127 STRIP!$STRIP$ac_delim
44128 RANLIB!$RANLIB$ac_delim
44129 lt_ECHO!$lt_ECHO$ac_delim
44130 DSYMUTIL!$DSYMUTIL$ac_delim
44131 NMEDIT!$NMEDIT$ac_delim
44132 LIPO!$LIPO$ac_delim
44133 OTOOL!$OTOOL$ac_delim
44134 OTOOL64!$OTOOL64$ac_delim
44135 CXXCPP!$CXXCPP$ac_delim
44136 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44137 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44138 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44139 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44140 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44141 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44142 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44143 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44144 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44145 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44146 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44147 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44148 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44149 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44150 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44151 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44152 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44153 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44154 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44155 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44156 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44157 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44158 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44159 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44160 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44161 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44162 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44163 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44164 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44165 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44166 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44167 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44168 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44169 SET_MAKE!$SET_MAKE$ac_delim
44170 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44171 USE_NLS!$USE_NLS$ac_delim
44172 MSGFMT!$MSGFMT$ac_delim
44173 GMSGFMT!$GMSGFMT$ac_delim
44174 XGETTEXT!$XGETTEXT$ac_delim
44175 MSGMERGE!$MSGMERGE$ac_delim
44176 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44177 LIBICONV!$LIBICONV$ac_delim
44178 LTLIBICONV!$LTLIBICONV$ac_delim
44179 INTLLIBS!$INTLLIBS$ac_delim
44180 LIBINTL!$LIBINTL$ac_delim
44181 LTLIBINTL!$LTLIBINTL$ac_delim
44182 POSUB!$POSUB$ac_delim
44183 GLIBC2!$GLIBC2$ac_delim
44184 ALLOCA!$ALLOCA$ac_delim
44185 GLIBC21!$GLIBC21$ac_delim
44186 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44187 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44188 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44189 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44190 INTLBISON!$INTLBISON$ac_delim
44191 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44192 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44193 CATOBJEXT!$CATOBJEXT$ac_delim
44194 DATADIRNAME!$DATADIRNAME$ac_delim
44195 INSTOBJEXT!$INSTOBJEXT$ac_delim
44196 GENCAT!$GENCAT$ac_delim
44197 INTLOBJS!$INTLOBJS$ac_delim
44198 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44199 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44200 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44201 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44202 GNOME_LIBS!$GNOME_LIBS$ac_delim
44203 GNOME_DIR!$GNOME_DIR$ac_delim
44204 BAT_DIR!$BAT_DIR$ac_delim
44205 QWT_INC!$QWT_INC$ac_delim
44206 _ACEOF
44207
44208   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44209     break
44210   elif $ac_last_try; then
44211     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44212 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44213    { (exit 1); exit 1; }; }
44214   else
44215     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44216   fi
44217 done
44218
44219 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44220 if test -n "$ac_eof"; then
44221   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44222   ac_eof=`expr $ac_eof + 1`
44223 fi
44224
44225 cat >>$CONFIG_STATUS <<_ACEOF
44226 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44228 _ACEOF
44229 sed '
44230 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44231 s/^/s,@/; s/!/@,|#_!!_#|/
44232 :n
44233 t n
44234 s/'"$ac_delim"'$/,g/; t
44235 s/$/\\/; p
44236 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44237 ' >>$CONFIG_STATUS <conf$$subs.sed
44238 rm -f conf$$subs.sed
44239 cat >>$CONFIG_STATUS <<_ACEOF
44240 CEOF$ac_eof
44241 _ACEOF
44242
44243
44244 ac_delim='%!_!# '
44245 for ac_last_try in false false false false false :; do
44246   cat >conf$$subs.sed <<_ACEOF
44247 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44248 QWT_LIB!$QWT_LIB$ac_delim
44249 QWT!$QWT$ac_delim
44250 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44251 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44252 WX_DIR!$WX_DIR$ac_delim
44253 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44254 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44255 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44256 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44257 STATIC_FD!$STATIC_FD$ac_delim
44258 STATIC_SD!$STATIC_SD$ac_delim
44259 STATIC_DIR!$STATIC_DIR$ac_delim
44260 STATIC_CONS!$STATIC_CONS$ac_delim
44261 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44262 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44263 ALL_DIRS!$ALL_DIRS$ac_delim
44264 DIRD_DIR!$DIRD_DIR$ac_delim
44265 DIR_TOOLS!$DIR_TOOLS$ac_delim
44266 STORED_DIR!$STORED_DIR$ac_delim
44267 CONS_INC!$CONS_INC$ac_delim
44268 CONS_OBJ!$CONS_OBJ$ac_delim
44269 CONS_SRC!$CONS_SRC$ac_delim
44270 CONS_LIBS!$CONS_LIBS$ac_delim
44271 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44272 READLINE_SRC!$READLINE_SRC$ac_delim
44273 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44274 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44275 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44276 OPENSSL_INC!$OPENSSL_INC$ac_delim
44277 working_dir!$working_dir$ac_delim
44278 archivedir!$archivedir$ac_delim
44279 basename!$basename$ac_delim
44280 scriptdir!$scriptdir$ac_delim
44281 bsrdir!$bsrdir$ac_delim
44282 logdir!$logdir$ac_delim
44283 plugindir!$plugindir$ac_delim
44284 dump_email!$dump_email$ac_delim
44285 job_email!$job_email$ac_delim
44286 smtp_host!$smtp_host$ac_delim
44287 piddir!$piddir$ac_delim
44288 subsysdir!$subsysdir$ac_delim
44289 baseport!$baseport$ac_delim
44290 dir_port!$dir_port$ac_delim
44291 fd_port!$fd_port$ac_delim
44292 sd_port!$sd_port$ac_delim
44293 dir_password!$dir_password$ac_delim
44294 fd_password!$fd_password$ac_delim
44295 sd_password!$sd_password$ac_delim
44296 mon_dir_password!$mon_dir_password$ac_delim
44297 mon_fd_password!$mon_fd_password$ac_delim
44298 mon_sd_password!$mon_sd_password$ac_delim
44299 db_name!$db_name$ac_delim
44300 db_user!$db_user$ac_delim
44301 db_password!$db_password$ac_delim
44302 db_port!$db_port$ac_delim
44303 dir_user!$dir_user$ac_delim
44304 dir_group!$dir_group$ac_delim
44305 sd_user!$sd_user$ac_delim
44306 sd_group!$sd_group$ac_delim
44307 fd_user!$fd_user$ac_delim
44308 fd_group!$fd_group$ac_delim
44309 SBINPERM!$SBINPERM$ac_delim
44310 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44311 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44312 SQL_BINDIR!$SQL_BINDIR$ac_delim
44313 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44314 uncomment_dbi!$uncomment_dbi$ac_delim
44315 DB_PROG!$DB_PROG$ac_delim
44316 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44317 cats!$cats$ac_delim
44318 DB_TYPE!$DB_TYPE$ac_delim
44319 GETCONF!$GETCONF$ac_delim
44320 XMKMF!$XMKMF$ac_delim
44321 X_CFLAGS!$X_CFLAGS$ac_delim
44322 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44323 X_LIBS!$X_LIBS$ac_delim
44324 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44325 LIBOBJS!$LIBOBJS$ac_delim
44326 FDLIBS!$FDLIBS$ac_delim
44327 DEBUG!$DEBUG$ac_delim
44328 DINCLUDE!$DINCLUDE$ac_delim
44329 DLIB!$DLIB$ac_delim
44330 DB_LIBS!$DB_LIBS$ac_delim
44331 WCFLAGS!$WCFLAGS$ac_delim
44332 WLDFLAGS!$WLDFLAGS$ac_delim
44333 WRAPLIBS!$WRAPLIBS$ac_delim
44334 OBJLIST!$OBJLIST$ac_delim
44335 hostname!$hostname$ac_delim
44336 TAPEDRIVE!$TAPEDRIVE$ac_delim
44337 PSCMD!$PSCMD$ac_delim
44338 WIN32!$WIN32$ac_delim
44339 MACOSX!$MACOSX$ac_delim
44340 DISTNAME!$DISTNAME$ac_delim
44341 DISTVER!$DISTVER$ac_delim
44342 LTLIBOBJS!$LTLIBOBJS$ac_delim
44343 _ACEOF
44344
44345   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
44346     break
44347   elif $ac_last_try; then
44348     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44349 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44350    { (exit 1); exit 1; }; }
44351   else
44352     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44353   fi
44354 done
44355
44356 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44357 if test -n "$ac_eof"; then
44358   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44359   ac_eof=`expr $ac_eof + 1`
44360 fi
44361
44362 cat >>$CONFIG_STATUS <<_ACEOF
44363 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44365 _ACEOF
44366 sed '
44367 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44368 s/^/s,@/; s/!/@,|#_!!_#|/
44369 :n
44370 t n
44371 s/'"$ac_delim"'$/,g/; t
44372 s/$/\\/; p
44373 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44374 ' >>$CONFIG_STATUS <conf$$subs.sed
44375 rm -f conf$$subs.sed
44376 cat >>$CONFIG_STATUS <<_ACEOF
44377 CEOF$ac_eof
44378 _ACEOF
44379
44380
44381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44383 # trailing colons and then remove the whole line if VPATH becomes empty
44384 # (actually we leave an empty line to preserve line numbers).
44385 if test "x$srcdir" = x.; then
44386   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44387 s/:*\$(srcdir):*/:/
44388 s/:*\${srcdir}:*/:/
44389 s/:*@srcdir@:*/:/
44390 s/^\([^=]*=[     ]*\):*/\1/
44391 s/:*$//
44392 s/^[^=]*=[       ]*$//
44393 }'
44394 fi
44395
44396 cat >>$CONFIG_STATUS <<\_ACEOF
44397 fi # test -n "$CONFIG_FILES"
44398
44399
44400 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44401 do
44402   case $ac_tag in
44403   :[FHLC]) ac_mode=$ac_tag; continue;;
44404   esac
44405   case $ac_mode$ac_tag in
44406   :[FHL]*:*);;
44407   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44408 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44409    { (exit 1); exit 1; }; };;
44410   :[FH]-) ac_tag=-:-;;
44411   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44412   esac
44413   ac_save_IFS=$IFS
44414   IFS=:
44415   set x $ac_tag
44416   IFS=$ac_save_IFS
44417   shift
44418   ac_file=$1
44419   shift
44420
44421   case $ac_mode in
44422   :L) ac_source=$1;;
44423   :[FH])
44424     ac_file_inputs=
44425     for ac_f
44426     do
44427       case $ac_f in
44428       -) ac_f="$tmp/stdin";;
44429       *) # Look for the file first in the build tree, then in the source tree
44430          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44431          # because $ac_f cannot contain `:'.
44432          test -f "$ac_f" ||
44433            case $ac_f in
44434            [\\/$]*) false;;
44435            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44436            esac ||
44437            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44438 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44439    { (exit 1); exit 1; }; };;
44440       esac
44441       ac_file_inputs="$ac_file_inputs $ac_f"
44442     done
44443
44444     # Let's still pretend it is `configure' which instantiates (i.e., don't
44445     # use $as_me), people would be surprised to read:
44446     #    /* config.h.  Generated by config.status.  */
44447     configure_input="Generated from "`IFS=:
44448           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44449     if test x"$ac_file" != x-; then
44450       configure_input="$ac_file.  $configure_input"
44451       { echo "$as_me:$LINENO: creating $ac_file" >&5
44452 echo "$as_me: creating $ac_file" >&6;}
44453     fi
44454
44455     case $ac_tag in
44456     *:-:* | *:-) cat >"$tmp/stdin";;
44457     esac
44458     ;;
44459   esac
44460
44461   ac_dir=`$as_dirname -- "$ac_file" ||
44462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44463          X"$ac_file" : 'X\(//\)[^/]' \| \
44464          X"$ac_file" : 'X\(//\)$' \| \
44465          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44466 echo X"$ac_file" |
44467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44468             s//\1/
44469             q
44470           }
44471           /^X\(\/\/\)[^/].*/{
44472             s//\1/
44473             q
44474           }
44475           /^X\(\/\/\)$/{
44476             s//\1/
44477             q
44478           }
44479           /^X\(\/\).*/{
44480             s//\1/
44481             q
44482           }
44483           s/.*/./; q'`
44484   { as_dir="$ac_dir"
44485   case $as_dir in #(
44486   -*) as_dir=./$as_dir;;
44487   esac
44488   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44489     as_dirs=
44490     while :; do
44491       case $as_dir in #(
44492       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44493       *) as_qdir=$as_dir;;
44494       esac
44495       as_dirs="'$as_qdir' $as_dirs"
44496       as_dir=`$as_dirname -- "$as_dir" ||
44497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44498          X"$as_dir" : 'X\(//\)[^/]' \| \
44499          X"$as_dir" : 'X\(//\)$' \| \
44500          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44501 echo X"$as_dir" |
44502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44503             s//\1/
44504             q
44505           }
44506           /^X\(\/\/\)[^/].*/{
44507             s//\1/
44508             q
44509           }
44510           /^X\(\/\/\)$/{
44511             s//\1/
44512             q
44513           }
44514           /^X\(\/\).*/{
44515             s//\1/
44516             q
44517           }
44518           s/.*/./; q'`
44519       test -d "$as_dir" && break
44520     done
44521     test -z "$as_dirs" || eval "mkdir $as_dirs"
44522   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44523 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44524    { (exit 1); exit 1; }; }; }
44525   ac_builddir=.
44526
44527 case "$ac_dir" in
44528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44529 *)
44530   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44531   # A ".." for each directory in $ac_dir_suffix.
44532   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44533   case $ac_top_builddir_sub in
44534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44536   esac ;;
44537 esac
44538 ac_abs_top_builddir=$ac_pwd
44539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44540 # for backward compatibility:
44541 ac_top_builddir=$ac_top_build_prefix
44542
44543 case $srcdir in
44544   .)  # We are building in place.
44545     ac_srcdir=.
44546     ac_top_srcdir=$ac_top_builddir_sub
44547     ac_abs_top_srcdir=$ac_pwd ;;
44548   [\\/]* | ?:[\\/]* )  # Absolute name.
44549     ac_srcdir=$srcdir$ac_dir_suffix;
44550     ac_top_srcdir=$srcdir
44551     ac_abs_top_srcdir=$srcdir ;;
44552   *) # Relative name.
44553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44554     ac_top_srcdir=$ac_top_build_prefix$srcdir
44555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44556 esac
44557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44558
44559
44560   case $ac_mode in
44561   :F)
44562   #
44563   # CONFIG_FILE
44564   #
44565
44566   case $INSTALL in
44567   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44568   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44569   esac
44570 _ACEOF
44571
44572 cat >>$CONFIG_STATUS <<\_ACEOF
44573 # If the template does not know about datarootdir, expand it.
44574 # FIXME: This hack should be removed a few years after 2.60.
44575 ac_datarootdir_hack=; ac_datarootdir_seen=
44576
44577 case `sed -n '/datarootdir/ {
44578   p
44579   q
44580 }
44581 /@datadir@/p
44582 /@docdir@/p
44583 /@infodir@/p
44584 /@localedir@/p
44585 /@mandir@/p
44586 ' $ac_file_inputs` in
44587 *datarootdir*) ac_datarootdir_seen=yes;;
44588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44589   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44590 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44591 _ACEOF
44592 cat >>$CONFIG_STATUS <<_ACEOF
44593   ac_datarootdir_hack='
44594   s&@datadir@&$datadir&g
44595   s&@docdir@&$docdir&g
44596   s&@infodir@&$infodir&g
44597   s&@localedir@&$localedir&g
44598   s&@mandir@&$mandir&g
44599     s&\\\${datarootdir}&$datarootdir&g' ;;
44600 esac
44601 _ACEOF
44602
44603 # Neutralize VPATH when `$srcdir' = `.'.
44604 # Shell code in configure.ac might set extrasub.
44605 # FIXME: do we really want to maintain this feature?
44606 cat >>$CONFIG_STATUS <<_ACEOF
44607   sed "$ac_vpsub
44608 $extrasub
44609 _ACEOF
44610 cat >>$CONFIG_STATUS <<\_ACEOF
44611 :t
44612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44613 s&@configure_input@&$configure_input&;t t
44614 s&@top_builddir@&$ac_top_builddir_sub&;t t
44615 s&@srcdir@&$ac_srcdir&;t t
44616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44617 s&@top_srcdir@&$ac_top_srcdir&;t t
44618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44619 s&@builddir@&$ac_builddir&;t t
44620 s&@abs_builddir@&$ac_abs_builddir&;t t
44621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44622 s&@INSTALL@&$ac_INSTALL&;t t
44623 $ac_datarootdir_hack
44624 " $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
44625
44626 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44627   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44628   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44629   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44630 which seems to be undefined.  Please make sure it is defined." >&5
44631 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44632 which seems to be undefined.  Please make sure it is defined." >&2;}
44633
44634   rm -f "$tmp/stdin"
44635   case $ac_file in
44636   -) cat "$tmp/out"; rm -f "$tmp/out";;
44637   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44638   esac
44639  ;;
44640   :H)
44641   #
44642   # CONFIG_HEADER
44643   #
44644 _ACEOF
44645
44646 # Transform confdefs.h into a sed script `conftest.defines', that
44647 # substitutes the proper values into config.h.in to produce config.h.
44648 rm -f conftest.defines conftest.tail
44649 # First, append a space to every undef/define line, to ease matching.
44650 echo 's/$/ /' >conftest.defines
44651 # Then, protect against being on the right side of a sed subst, or in
44652 # an unquoted here document, in config.status.  If some macros were
44653 # called several times there might be several #defines for the same
44654 # symbol, which is useless.  But do not sort them, since the last
44655 # AC_DEFINE must be honored.
44656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44657 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44658 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44659 # PARAMS is the parameter list in the macro definition--in most cases, it's
44660 # just an empty string.
44661 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44662 ac_dB='\\)[      (].*,\\1define\\2'
44663 ac_dC=' '
44664 ac_dD=' ,'
44665
44666 uniq confdefs.h |
44667   sed -n '
44668         t rset
44669         :rset
44670         s/^[     ]*#[    ]*define[       ][      ]*//
44671         t ok
44672         d
44673         :ok
44674         s/[\\&,]/\\&/g
44675         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44676         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44677   ' >>conftest.defines
44678
44679 # Remove the space that was appended to ease matching.
44680 # Then replace #undef with comments.  This is necessary, for
44681 # example, in the case of _POSIX_SOURCE, which is predefined and required
44682 # on some systems where configure will not decide to define it.
44683 # (The regexp can be short, since the line contains either #define or #undef.)
44684 echo 's/ $//
44685 s,^[     #]*u.*,/* & */,' >>conftest.defines
44686
44687 # Break up conftest.defines:
44688 ac_max_sed_lines=50
44689
44690 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44691 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44692 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44693 # et cetera.
44694 ac_in='$ac_file_inputs'
44695 ac_out='"$tmp/out1"'
44696 ac_nxt='"$tmp/out2"'
44697
44698 while :
44699 do
44700   # Write a here document:
44701     cat >>$CONFIG_STATUS <<_ACEOF
44702     # First, check the format of the line:
44703     cat >"\$tmp/defines.sed" <<\\CEOF
44704 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44705 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44706 b
44707 :def
44708 _ACEOF
44709   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44710   echo 'CEOF
44711     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44712   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44713   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44714   grep . conftest.tail >/dev/null || break
44715   rm -f conftest.defines
44716   mv conftest.tail conftest.defines
44717 done
44718 rm -f conftest.defines conftest.tail
44719
44720 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44721 cat >>$CONFIG_STATUS <<\_ACEOF
44722   if test x"$ac_file" != x-; then
44723     echo "/* $configure_input  */" >"$tmp/config.h"
44724     cat "$ac_result" >>"$tmp/config.h"
44725     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44726       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44727 echo "$as_me: $ac_file is unchanged" >&6;}
44728     else
44729       rm -f $ac_file
44730       mv "$tmp/config.h" $ac_file
44731     fi
44732   else
44733     echo "/* $configure_input  */"
44734     cat "$ac_result"
44735   fi
44736   rm -f "$tmp/out12"
44737  ;;
44738
44739   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44740 echo "$as_me: executing $ac_file commands" >&6;}
44741  ;;
44742   esac
44743
44744
44745   case $ac_file$ac_mode in
44746     "libtool":C)
44747
44748     # See if we are running on zsh, and set the options which allow our
44749     # commands through without removal of \ escapes.
44750     if test -n "${ZSH_VERSION+set}" ; then
44751       setopt NO_GLOB_SUBST
44752     fi
44753
44754     cfgfile="${ofile}T"
44755     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44756     $RM "$cfgfile"
44757
44758     cat <<_LT_EOF >> "$cfgfile"
44759 #! $SHELL
44760
44761 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44762 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44764 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44765 #
44766 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44767 #                 2006, 2007, 2008 Free Software Foundation, Inc.
44768 #   Written by Gordon Matzigkeit, 1996
44769 #
44770 #   This file is part of GNU Libtool.
44771 #
44772 # GNU Libtool is free software; you can redistribute it and/or
44773 # modify it under the terms of the GNU General Public License as
44774 # published by the Free Software Foundation; either version 2 of
44775 # the License, or (at your option) any later version.
44776 #
44777 # As a special exception to the GNU General Public License,
44778 # if you distribute this file as part of a program or library that
44779 # is built using GNU Libtool, you may include this file under the
44780 # same distribution terms that you use for the rest of that program.
44781 #
44782 # GNU Libtool is distributed in the hope that it will be useful,
44783 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44784 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44785 # GNU General Public License for more details.
44786 #
44787 # You should have received a copy of the GNU General Public License
44788 # along with GNU Libtool; see the file COPYING.  If not, a copy
44789 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44790 # obtained by writing to the Free Software Foundation, Inc.,
44791 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44792
44793
44794 # The names of the tagged configurations supported by this script.
44795 available_tags="CXX "
44796
44797 # ### BEGIN LIBTOOL CONFIG
44798
44799 # Which release of libtool.m4 was used?
44800 macro_version=$macro_version
44801 macro_revision=$macro_revision
44802
44803 # Whether or not to build shared libraries.
44804 build_libtool_libs=$enable_shared
44805
44806 # Whether or not to build static libraries.
44807 build_old_libs=$enable_static
44808
44809 # What type of objects to build.
44810 pic_mode=$pic_mode
44811
44812 # Whether or not to optimize for fast installation.
44813 fast_install=$enable_fast_install
44814
44815 # The host system.
44816 host_alias=$host_alias
44817 host=$host
44818 host_os=$host_os
44819
44820 # The build system.
44821 build_alias=$build_alias
44822 build=$build
44823 build_os=$build_os
44824
44825 # A sed program that does not truncate output.
44826 SED=$lt_SED
44827
44828 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44829 Xsed="\$SED -e 1s/^X//"
44830
44831 # A grep program that handles long lines.
44832 GREP=$lt_GREP
44833
44834 # An ERE matcher.
44835 EGREP=$lt_EGREP
44836
44837 # A literal string matcher.
44838 FGREP=$lt_FGREP
44839
44840 # A BSD- or MS-compatible name lister.
44841 NM=$lt_NM
44842
44843 # Whether we need soft or hard links.
44844 LN_S=$lt_LN_S
44845
44846 # What is the maximum length of a command?
44847 max_cmd_len=$max_cmd_len
44848
44849 # Object file suffix (normally "o").
44850 objext=$ac_objext
44851
44852 # Executable file suffix (normally "").
44853 exeext=$exeext
44854
44855 # whether the shell understands "unset".
44856 lt_unset=$lt_unset
44857
44858 # turn spaces into newlines.
44859 SP2NL=$lt_lt_SP2NL
44860
44861 # turn newlines into spaces.
44862 NL2SP=$lt_lt_NL2SP
44863
44864 # How to create reloadable object files.
44865 reload_flag=$lt_reload_flag
44866 reload_cmds=$lt_reload_cmds
44867
44868 # An object symbol dumper.
44869 OBJDUMP=$lt_OBJDUMP
44870
44871 # Method to check whether dependent libraries are shared objects.
44872 deplibs_check_method=$lt_deplibs_check_method
44873
44874 # Command to use when deplibs_check_method == "file_magic".
44875 file_magic_cmd=$lt_file_magic_cmd
44876
44877 # The archiver.
44878 AR=$lt_AR
44879 AR_FLAGS=$lt_AR_FLAGS
44880
44881 # A symbol stripping program.
44882 STRIP=$lt_STRIP
44883
44884 # Commands used to install an old-style archive.
44885 RANLIB=$lt_RANLIB
44886 old_postinstall_cmds=$lt_old_postinstall_cmds
44887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44888
44889 # A C compiler.
44890 LTCC=$lt_CC
44891
44892 # LTCC compiler flags.
44893 LTCFLAGS=$lt_CFLAGS
44894
44895 # Take the output of nm and produce a listing of raw symbols and C names.
44896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44897
44898 # Transform the output of nm in a proper C declaration.
44899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44900
44901 # Transform the output of nm in a C name address pair.
44902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44903
44904 # Transform the output of nm in a C name address pair when lib prefix is needed.
44905 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44906
44907 # The name of the directory that contains temporary libtool files.
44908 objdir=$objdir
44909
44910 # Shell to use when invoking shell scripts.
44911 SHELL=$lt_SHELL
44912
44913 # An echo program that does not interpret backslashes.
44914 ECHO=$lt_ECHO
44915
44916 # Used to examine libraries when file_magic_cmd begins with "file".
44917 MAGIC_CMD=$MAGIC_CMD
44918
44919 # Must we lock files when doing compilation?
44920 need_locks=$lt_need_locks
44921
44922 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44923 DSYMUTIL=$lt_DSYMUTIL
44924
44925 # Tool to change global to local symbols on Mac OS X.
44926 NMEDIT=$lt_NMEDIT
44927
44928 # Tool to manipulate fat objects and archives on Mac OS X.
44929 LIPO=$lt_LIPO
44930
44931 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44932 OTOOL=$lt_OTOOL
44933
44934 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44935 OTOOL64=$lt_OTOOL64
44936
44937 # Old archive suffix (normally "a").
44938 libext=$libext
44939
44940 # Shared library suffix (normally ".so").
44941 shrext_cmds=$lt_shrext_cmds
44942
44943 # The commands to extract the exported symbol list from a shared archive.
44944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44945
44946 # Variables whose values should be saved in libtool wrapper scripts and
44947 # restored at link time.
44948 variables_saved_for_relink=$lt_variables_saved_for_relink
44949
44950 # Do we need the "lib" prefix for modules?
44951 need_lib_prefix=$need_lib_prefix
44952
44953 # Do we need a version for libraries?
44954 need_version=$need_version
44955
44956 # Library versioning type.
44957 version_type=$version_type
44958
44959 # Shared library runtime path variable.
44960 runpath_var=$runpath_var
44961
44962 # Shared library path variable.
44963 shlibpath_var=$shlibpath_var
44964
44965 # Is shlibpath searched before the hard-coded library search path?
44966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44967
44968 # Format of library name prefix.
44969 libname_spec=$lt_libname_spec
44970
44971 # List of archive names.  First name is the real one, the rest are links.
44972 # The last name is the one that the linker finds with -lNAME
44973 library_names_spec=$lt_library_names_spec
44974
44975 # The coded name of the library, if different from the real name.
44976 soname_spec=$lt_soname_spec
44977
44978 # Command to use after installation of a shared archive.
44979 postinstall_cmds=$lt_postinstall_cmds
44980
44981 # Command to use after uninstallation of a shared archive.
44982 postuninstall_cmds=$lt_postuninstall_cmds
44983
44984 # Commands used to finish a libtool library installation in a directory.
44985 finish_cmds=$lt_finish_cmds
44986
44987 # As "finish_cmds", except a single script fragment to be evaled but
44988 # not shown.
44989 finish_eval=$lt_finish_eval
44990
44991 # Whether we should hardcode library paths into libraries.
44992 hardcode_into_libs=$hardcode_into_libs
44993
44994 # Compile-time system search path for libraries.
44995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44996
44997 # Run-time system search path for libraries.
44998 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44999
45000 # Whether dlopen is supported.
45001 dlopen_support=$enable_dlopen
45002
45003 # Whether dlopen of programs is supported.
45004 dlopen_self=$enable_dlopen_self
45005
45006 # Whether dlopen of statically linked programs is supported.
45007 dlopen_self_static=$enable_dlopen_self_static
45008
45009 # Commands to strip libraries.
45010 old_striplib=$lt_old_striplib
45011 striplib=$lt_striplib
45012
45013
45014 # The linker used to build libraries.
45015 LD=$lt_LD
45016
45017 # Commands used to build an old-style archive.
45018 old_archive_cmds=$lt_old_archive_cmds
45019
45020 # A language specific compiler.
45021 CC=$lt_compiler
45022
45023 # Is the compiler the GNU compiler?
45024 with_gcc=$GCC
45025
45026 # Compiler flag to turn off builtin functions.
45027 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45028
45029 # How to pass a linker flag through the compiler.
45030 wl=$lt_lt_prog_compiler_wl
45031
45032 # Additional compiler flags for building library objects.
45033 pic_flag=$lt_lt_prog_compiler_pic
45034
45035 # Compiler flag to prevent dynamic linking.
45036 link_static_flag=$lt_lt_prog_compiler_static
45037
45038 # Does compiler simultaneously support -c and -o options?
45039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45040
45041 # Whether or not to add -lc for building shared libraries.
45042 build_libtool_need_lc=$archive_cmds_need_lc
45043
45044 # Whether or not to disallow shared libs when runtime libs are static.
45045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45046
45047 # Compiler flag to allow reflexive dlopens.
45048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45049
45050 # Compiler flag to generate shared objects directly from archives.
45051 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45052
45053 # Whether the compiler copes with passing no objects directly.
45054 compiler_needs_object=$lt_compiler_needs_object
45055
45056 # Create an old-style archive from a shared archive.
45057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45058
45059 # Create a temporary old-style archive to link instead of a shared archive.
45060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45061
45062 # Commands used to build a shared archive.
45063 archive_cmds=$lt_archive_cmds
45064 archive_expsym_cmds=$lt_archive_expsym_cmds
45065
45066 # Commands used to build a loadable module if different from building
45067 # a shared archive.
45068 module_cmds=$lt_module_cmds
45069 module_expsym_cmds=$lt_module_expsym_cmds
45070
45071 # Whether we are building with GNU ld or not.
45072 with_gnu_ld=$lt_with_gnu_ld
45073
45074 # Flag that allows shared libraries with undefined symbols to be built.
45075 allow_undefined_flag=$lt_allow_undefined_flag
45076
45077 # Flag that enforces no undefined symbols.
45078 no_undefined_flag=$lt_no_undefined_flag
45079
45080 # Flag to hardcode \$libdir into a binary during linking.
45081 # This must work even if \$libdir does not exist
45082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45083
45084 # If ld is used when linking, flag to hardcode \$libdir into a binary
45085 # during linking.  This must work even if \$libdir does not exist.
45086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45087
45088 # Whether we need a single "-rpath" flag with a separated argument.
45089 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45090
45091 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45092 # DIR into the resulting binary.
45093 hardcode_direct=$hardcode_direct
45094
45095 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45096 # DIR into the resulting binary and the resulting library dependency is
45097 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45098 # library is relocated.
45099 hardcode_direct_absolute=$hardcode_direct_absolute
45100
45101 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45102 # into the resulting binary.
45103 hardcode_minus_L=$hardcode_minus_L
45104
45105 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45106 # into the resulting binary.
45107 hardcode_shlibpath_var=$hardcode_shlibpath_var
45108
45109 # Set to "yes" if building a shared library automatically hardcodes DIR
45110 # into the library and all subsequent libraries and executables linked
45111 # against it.
45112 hardcode_automatic=$hardcode_automatic
45113
45114 # Set to yes if linker adds runtime paths of dependent libraries
45115 # to runtime path list.
45116 inherit_rpath=$inherit_rpath
45117
45118 # Whether libtool must link a program against all its dependency libraries.
45119 link_all_deplibs=$link_all_deplibs
45120
45121 # Fix the shell variable \$srcfile for the compiler.
45122 fix_srcfile_path=$lt_fix_srcfile_path
45123
45124 # Set to "yes" if exported symbols are required.
45125 always_export_symbols=$always_export_symbols
45126
45127 # The commands to list exported symbols.
45128 export_symbols_cmds=$lt_export_symbols_cmds
45129
45130 # Symbols that should not be listed in the preloaded symbols.
45131 exclude_expsyms=$lt_exclude_expsyms
45132
45133 # Symbols that must always be exported.
45134 include_expsyms=$lt_include_expsyms
45135
45136 # Commands necessary for linking programs (against libraries) with templates.
45137 prelink_cmds=$lt_prelink_cmds
45138
45139 # Specify filename containing input files.
45140 file_list_spec=$lt_file_list_spec
45141
45142 # How to hardcode a shared library path into an executable.
45143 hardcode_action=$hardcode_action
45144
45145 # The directories searched by this compiler when creating a shared library.
45146 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45147
45148 # Dependencies to place before and after the objects being linked to
45149 # create a shared library.
45150 predep_objects=$lt_predep_objects
45151 postdep_objects=$lt_postdep_objects
45152 predeps=$lt_predeps
45153 postdeps=$lt_postdeps
45154
45155 # The library search path used internally by the compiler when linking
45156 # a shared library.
45157 compiler_lib_search_path=$lt_compiler_lib_search_path
45158
45159 # ### END LIBTOOL CONFIG
45160
45161 _LT_EOF
45162
45163   case $host_os in
45164   aix3*)
45165     cat <<\_LT_EOF >> "$cfgfile"
45166 # AIX sometimes has problems with the GCC collect2 program.  For some
45167 # reason, if we set the COLLECT_NAMES environment variable, the problems
45168 # vanish in a puff of smoke.
45169 if test "X${COLLECT_NAMES+set}" != Xset; then
45170   COLLECT_NAMES=
45171   export COLLECT_NAMES
45172 fi
45173 _LT_EOF
45174     ;;
45175   esac
45176
45177
45178 ltmain="$ac_aux_dir/ltmain.sh"
45179
45180
45181   # We use sed instead of cat because bash on DJGPP gets confused if
45182   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45183   # text mode, it properly converts lines to CR/LF.  This bash problem
45184   # is reportedly fixed, but why not run on old versions too?
45185   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45186     || (rm -f "$cfgfile"; exit 1)
45187
45188   case $xsi_shell in
45189   yes)
45190     cat << \_LT_EOF >> "$cfgfile"
45191
45192 # func_dirname file append nondir_replacement
45193 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45194 # otherwise set result to NONDIR_REPLACEMENT.
45195 func_dirname ()
45196 {
45197   case ${1} in
45198     */*) func_dirname_result="${1%/*}${2}" ;;
45199     *  ) func_dirname_result="${3}" ;;
45200   esac
45201 }
45202
45203 # func_basename file
45204 func_basename ()
45205 {
45206   func_basename_result="${1##*/}"
45207 }
45208
45209 # func_dirname_and_basename file append nondir_replacement
45210 # perform func_basename and func_dirname in a single function
45211 # call:
45212 #   dirname:  Compute the dirname of FILE.  If nonempty,
45213 #             add APPEND to the result, otherwise set result
45214 #             to NONDIR_REPLACEMENT.
45215 #             value returned in "$func_dirname_result"
45216 #   basename: Compute filename of FILE.
45217 #             value retuned in "$func_basename_result"
45218 # Implementation must be kept synchronized with func_dirname
45219 # and func_basename. For efficiency, we do not delegate to
45220 # those functions but instead duplicate the functionality here.
45221 func_dirname_and_basename ()
45222 {
45223   case ${1} in
45224     */*) func_dirname_result="${1%/*}${2}" ;;
45225     *  ) func_dirname_result="${3}" ;;
45226   esac
45227   func_basename_result="${1##*/}"
45228 }
45229
45230 # func_stripname prefix suffix name
45231 # strip PREFIX and SUFFIX off of NAME.
45232 # PREFIX and SUFFIX must not contain globbing or regex special
45233 # characters, hashes, percent signs, but SUFFIX may contain a leading
45234 # dot (in which case that matches only a dot).
45235 func_stripname ()
45236 {
45237   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45238   # positional parameters, so assign one to ordinary parameter first.
45239   func_stripname_result=${3}
45240   func_stripname_result=${func_stripname_result#"${1}"}
45241   func_stripname_result=${func_stripname_result%"${2}"}
45242 }
45243
45244 # func_opt_split
45245 func_opt_split ()
45246 {
45247   func_opt_split_opt=${1%%=*}
45248   func_opt_split_arg=${1#*=}
45249 }
45250
45251 # func_lo2o object
45252 func_lo2o ()
45253 {
45254   case ${1} in
45255     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45256     *)    func_lo2o_result=${1} ;;
45257   esac
45258 }
45259
45260 # func_xform libobj-or-source
45261 func_xform ()
45262 {
45263   func_xform_result=${1%.*}.lo
45264 }
45265
45266 # func_arith arithmetic-term...
45267 func_arith ()
45268 {
45269   func_arith_result=$(( $* ))
45270 }
45271
45272 # func_len string
45273 # STRING may not start with a hyphen.
45274 func_len ()
45275 {
45276   func_len_result=${#1}
45277 }
45278
45279 _LT_EOF
45280     ;;
45281   *) # Bourne compatible functions.
45282     cat << \_LT_EOF >> "$cfgfile"
45283
45284 # func_dirname file append nondir_replacement
45285 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45286 # otherwise set result to NONDIR_REPLACEMENT.
45287 func_dirname ()
45288 {
45289   # Extract subdirectory from the argument.
45290   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45291   if test "X$func_dirname_result" = "X${1}"; then
45292     func_dirname_result="${3}"
45293   else
45294     func_dirname_result="$func_dirname_result${2}"
45295   fi
45296 }
45297
45298 # func_basename file
45299 func_basename ()
45300 {
45301   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45302 }
45303
45304
45305 # func_stripname prefix suffix name
45306 # strip PREFIX and SUFFIX off of NAME.
45307 # PREFIX and SUFFIX must not contain globbing or regex special
45308 # characters, hashes, percent signs, but SUFFIX may contain a leading
45309 # dot (in which case that matches only a dot).
45310 # func_strip_suffix prefix name
45311 func_stripname ()
45312 {
45313   case ${2} in
45314     .*) func_stripname_result=`$ECHO "X${3}" \
45315            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45316     *)  func_stripname_result=`$ECHO "X${3}" \
45317            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45318   esac
45319 }
45320
45321 # sed scripts:
45322 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45323 my_sed_long_arg='1s/^-[^=]*=//'
45324
45325 # func_opt_split
45326 func_opt_split ()
45327 {
45328   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45329   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45330 }
45331
45332 # func_lo2o object
45333 func_lo2o ()
45334 {
45335   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45336 }
45337
45338 # func_xform libobj-or-source
45339 func_xform ()
45340 {
45341   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45342 }
45343
45344 # func_arith arithmetic-term...
45345 func_arith ()
45346 {
45347   func_arith_result=`expr "$@"`
45348 }
45349
45350 # func_len string
45351 # STRING may not start with a hyphen.
45352 func_len ()
45353 {
45354   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45355 }
45356
45357 _LT_EOF
45358 esac
45359
45360 case $lt_shell_append in
45361   yes)
45362     cat << \_LT_EOF >> "$cfgfile"
45363
45364 # func_append var value
45365 # Append VALUE to the end of shell variable VAR.
45366 func_append ()
45367 {
45368   eval "$1+=\$2"
45369 }
45370 _LT_EOF
45371     ;;
45372   *)
45373     cat << \_LT_EOF >> "$cfgfile"
45374
45375 # func_append var value
45376 # Append VALUE to the end of shell variable VAR.
45377 func_append ()
45378 {
45379   eval "$1=\$$1\$2"
45380 }
45381
45382 _LT_EOF
45383     ;;
45384   esac
45385
45386
45387   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45388     || (rm -f "$cfgfile"; exit 1)
45389
45390   mv -f "$cfgfile" "$ofile" ||
45391     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45392   chmod +x "$ofile"
45393
45394
45395     cat <<_LT_EOF >> "$ofile"
45396
45397 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45398
45399 # The linker used to build libraries.
45400 LD=$lt_LD_CXX
45401
45402 # Commands used to build an old-style archive.
45403 old_archive_cmds=$lt_old_archive_cmds_CXX
45404
45405 # A language specific compiler.
45406 CC=$lt_compiler_CXX
45407
45408 # Is the compiler the GNU compiler?
45409 with_gcc=$GCC_CXX
45410
45411 # Compiler flag to turn off builtin functions.
45412 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45413
45414 # How to pass a linker flag through the compiler.
45415 wl=$lt_lt_prog_compiler_wl_CXX
45416
45417 # Additional compiler flags for building library objects.
45418 pic_flag=$lt_lt_prog_compiler_pic_CXX
45419
45420 # Compiler flag to prevent dynamic linking.
45421 link_static_flag=$lt_lt_prog_compiler_static_CXX
45422
45423 # Does compiler simultaneously support -c and -o options?
45424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45425
45426 # Whether or not to add -lc for building shared libraries.
45427 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45428
45429 # Whether or not to disallow shared libs when runtime libs are static.
45430 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45431
45432 # Compiler flag to allow reflexive dlopens.
45433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45434
45435 # Compiler flag to generate shared objects directly from archives.
45436 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45437
45438 # Whether the compiler copes with passing no objects directly.
45439 compiler_needs_object=$lt_compiler_needs_object_CXX
45440
45441 # Create an old-style archive from a shared archive.
45442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45443
45444 # Create a temporary old-style archive to link instead of a shared archive.
45445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45446
45447 # Commands used to build a shared archive.
45448 archive_cmds=$lt_archive_cmds_CXX
45449 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45450
45451 # Commands used to build a loadable module if different from building
45452 # a shared archive.
45453 module_cmds=$lt_module_cmds_CXX
45454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45455
45456 # Whether we are building with GNU ld or not.
45457 with_gnu_ld=$lt_with_gnu_ld_CXX
45458
45459 # Flag that allows shared libraries with undefined symbols to be built.
45460 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45461
45462 # Flag that enforces no undefined symbols.
45463 no_undefined_flag=$lt_no_undefined_flag_CXX
45464
45465 # Flag to hardcode \$libdir into a binary during linking.
45466 # This must work even if \$libdir does not exist
45467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45468
45469 # If ld is used when linking, flag to hardcode \$libdir into a binary
45470 # during linking.  This must work even if \$libdir does not exist.
45471 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45472
45473 # Whether we need a single "-rpath" flag with a separated argument.
45474 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45475
45476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45477 # DIR into the resulting binary.
45478 hardcode_direct=$hardcode_direct_CXX
45479
45480 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45481 # DIR into the resulting binary and the resulting library dependency is
45482 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45483 # library is relocated.
45484 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45485
45486 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45487 # into the resulting binary.
45488 hardcode_minus_L=$hardcode_minus_L_CXX
45489
45490 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45491 # into the resulting binary.
45492 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45493
45494 # Set to "yes" if building a shared library automatically hardcodes DIR
45495 # into the library and all subsequent libraries and executables linked
45496 # against it.
45497 hardcode_automatic=$hardcode_automatic_CXX
45498
45499 # Set to yes if linker adds runtime paths of dependent libraries
45500 # to runtime path list.
45501 inherit_rpath=$inherit_rpath_CXX
45502
45503 # Whether libtool must link a program against all its dependency libraries.
45504 link_all_deplibs=$link_all_deplibs_CXX
45505
45506 # Fix the shell variable \$srcfile for the compiler.
45507 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45508
45509 # Set to "yes" if exported symbols are required.
45510 always_export_symbols=$always_export_symbols_CXX
45511
45512 # The commands to list exported symbols.
45513 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45514
45515 # Symbols that should not be listed in the preloaded symbols.
45516 exclude_expsyms=$lt_exclude_expsyms_CXX
45517
45518 # Symbols that must always be exported.
45519 include_expsyms=$lt_include_expsyms_CXX
45520
45521 # Commands necessary for linking programs (against libraries) with templates.
45522 prelink_cmds=$lt_prelink_cmds_CXX
45523
45524 # Specify filename containing input files.
45525 file_list_spec=$lt_file_list_spec_CXX
45526
45527 # How to hardcode a shared library path into an executable.
45528 hardcode_action=$hardcode_action_CXX
45529
45530 # The directories searched by this compiler when creating a shared library.
45531 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45532
45533 # Dependencies to place before and after the objects being linked to
45534 # create a shared library.
45535 predep_objects=$lt_predep_objects_CXX
45536 postdep_objects=$lt_postdep_objects_CXX
45537 predeps=$lt_predeps_CXX
45538 postdeps=$lt_postdeps_CXX
45539
45540 # The library search path used internally by the compiler when linking
45541 # a shared library.
45542 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45543
45544 # ### END LIBTOOL TAG CONFIG: CXX
45545 _LT_EOF
45546
45547  ;;
45548     "default-1":C)
45549     for ac_file in $CONFIG_FILES; do
45550       # Support "outfile[:infile[:infile...]]"
45551       case "$ac_file" in
45552         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45553       esac
45554       # PO directories have a Makefile.in generated from Makefile.in.in.
45555       case "$ac_file" in */Makefile.in)
45556         # Adjust a relative srcdir.
45557         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45558         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45559         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45560         # In autoconf-2.13 it is called $ac_given_srcdir.
45561         # In autoconf-2.50 it is called $srcdir.
45562         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45563         case "$ac_given_srcdir" in
45564           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45565           /*) top_srcdir="$ac_given_srcdir" ;;
45566           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45567         esac
45568         # Treat a directory as a PO directory if and only if it has a
45569         # POTFILES.in file. This allows packages to have multiple PO
45570         # directories under different names or in different locations.
45571         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45572           rm -f "$ac_dir/POTFILES"
45573           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45574           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45575           POMAKEFILEDEPS="POTFILES.in"
45576           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45577           # on $ac_dir but don't depend on user-specified configuration
45578           # parameters.
45579           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45580             # The LINGUAS file contains the set of available languages.
45581             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45582               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45583             fi
45584             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45585             # Hide the ALL_LINGUAS assigment from automake.
45586             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45587             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45588           else
45589             # The set of available languages was given in configure.in.
45590             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45591           fi
45592           # Compute POFILES
45593           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45594           # Compute UPDATEPOFILES
45595           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45596           # Compute DUMMYPOFILES
45597           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45598           # Compute GMOFILES
45599           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45600           case "$ac_given_srcdir" in
45601             .) srcdirpre= ;;
45602             *) srcdirpre='$(srcdir)/' ;;
45603           esac
45604           POFILES=
45605           UPDATEPOFILES=
45606           DUMMYPOFILES=
45607           GMOFILES=
45608           for lang in $ALL_LINGUAS; do
45609             POFILES="$POFILES $srcdirpre$lang.po"
45610             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45611             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45612             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45613           done
45614           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45615           # environment variable.
45616           INST_LINGUAS=
45617           if test -n "$ALL_LINGUAS"; then
45618             for presentlang in $ALL_LINGUAS; do
45619               useit=no
45620               if test "%UNSET%" != "$LINGUAS"; then
45621                 desiredlanguages="$LINGUAS"
45622               else
45623                 desiredlanguages="$ALL_LINGUAS"
45624               fi
45625               for desiredlang in $desiredlanguages; do
45626                 # Use the presentlang catalog if desiredlang is
45627                 #   a. equal to presentlang, or
45628                 #   b. a variant of presentlang (because in this case,
45629                 #      presentlang can be used as a fallback for messages
45630                 #      which are not translated in the desiredlang catalog).
45631                 case "$desiredlang" in
45632                   "$presentlang"*) useit=yes;;
45633                 esac
45634               done
45635               if test $useit = yes; then
45636                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45637               fi
45638             done
45639           fi
45640           CATALOGS=
45641           if test -n "$INST_LINGUAS"; then
45642             for lang in $INST_LINGUAS; do
45643               CATALOGS="$CATALOGS $lang.gmo"
45644             done
45645           fi
45646           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45647           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"
45648           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45649             if test -f "$f"; then
45650               case "$f" in
45651                 *.orig | *.bak | *~) ;;
45652                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45653               esac
45654             fi
45655           done
45656         fi
45657         ;;
45658       esac
45659     done ;;
45660     "default":C)
45661  ;;
45662
45663   esac
45664 done # for ac_tag
45665
45666
45667 { (exit 0); exit 0; }
45668 _ACEOF
45669 chmod +x $CONFIG_STATUS
45670 ac_clean_files=$ac_clean_files_save
45671
45672
45673 # configure is writing to config.log, and then calls config.status.
45674 # config.status does its own redirection, appending to config.log.
45675 # Unfortunately, on DOS this fails, as config.log is still kept open
45676 # by configure, so config.status won't be able to write to it; its
45677 # output is simply discarded.  So we exec the FD to /dev/null,
45678 # effectively closing config.log, so it can be properly (re)opened and
45679 # appended to by config.status.  When coming back to configure, we
45680 # need to make the FD available again.
45681 if test "$no_create" != yes; then
45682   ac_cs_success=:
45683   ac_config_status_args=
45684   test "$silent" = yes &&
45685     ac_config_status_args="$ac_config_status_args --quiet"
45686   exec 5>/dev/null
45687   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45688   exec 5>>config.log
45689   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45690   # would make configure fail if this is the last instruction.
45691   $ac_cs_success || { (exit 1); exit 1; }
45692 fi
45693
45694
45695 if test "${support_bat}" = "yes" ; then
45696    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45697       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
45698 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
45699    { (exit 1); exit 1; }; }
45700    fi
45701
45702    QMAKEBIN="qmake"
45703
45704    if test "x$QMAKEQT4" != "xnone"; then
45705        QMAKEBIN=qmake-qt4
45706    fi
45707
45708    cd src/qt-console
45709    echo "Creating bat Makefile"
45710    touch bat
45711    chmod 755 bat
45712    $QMAKEBIN
45713    make clean
45714    cd ${BUILD_DIR}
45715 fi
45716
45717 if test X"$GCC" = "Xyes" ; then
45718   echo "Doing make of dependencies"
45719   ${MAKE:-make} depend
45720 fi
45721
45722 cd src/qt-console
45723 chmod 755 install_conf_file build-depkgs-qt-console
45724 cd ${BUILD_DIR}
45725
45726 cd scripts
45727 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45728 chmod 755 dvd-handler dvd-simulator
45729 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45730 cd ..
45731
45732 c=updatedb
45733 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45734 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45735
45736 c=src/cats
45737
45738 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
45739 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
45740
45741 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
45742 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
45743
45744 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
45745 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
45746
45747 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
45748 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
45749
45750 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
45751 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
45752
45753 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
45754 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
45755
45756 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45757 chmod 755 $c/sqlite
45758 chmod 755 $c/mysql
45759
45760 chmod 755 src/win32/build-depkgs-mingw32
45761
45762 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45763    largefile_support="yes"
45764 fi
45765
45766 if test X"$GCC" = "Xyes" ; then
45767                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45768    if test "x${CCVERSION}" = "x" ; then
45769       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45770    fi
45771    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45772    if test x"${CXXVERSION}" = x ; then
45773       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45774    fi
45775 fi
45776
45777 # clean up any old junk
45778 echo " "
45779 echo "Cleaning up"
45780 echo " "
45781 make clean
45782
45783 if test "x${db_type}" = "xInternal" ; then
45784    echo " "
45785    echo " "
45786    echo "You have not specified either --enable-client-only or one of the"
45787    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45788    echo "  This is not permitted. Please reconfigure."
45789    echo " "
45790    echo "Aborting the configuration ..."
45791    echo " "
45792    echo " "
45793    exit 1
45794 fi
45795
45796 echo "
45797 Configuration on `date`:
45798
45799    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45800    Bacula version:          ${BACULA} ${VERSION} (${DATE})
45801    Source code location:    ${srcdir}
45802    Install binaries:        ${sbindir}
45803    Install libraries:       ${libdir}
45804    Install config files:    ${sysconfdir}
45805    Scripts directory:       ${scriptdir}
45806    Archive directory:       ${archivedir}
45807    Working directory:       ${working_dir}
45808    PID directory:           ${piddir}
45809    Subsys directory:        ${subsysdir}
45810    Man directory:           ${mandir}
45811    Data directory:          ${datarootdir}
45812    Plugin directory:        ${plugindir}
45813    C Compiler:              ${CC} ${CCVERSION}
45814    C++ Compiler:            ${CXX} ${CXXVERSION}
45815    Compiler flags:          ${WCFLAGS} ${CFLAGS}
45816    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
45817    Libraries:               ${LIBS}
45818    Statically Linked Tools: ${support_static_tools}
45819    Statically Linked FD:    ${support_static_fd}
45820    Statically Linked SD:    ${support_static_sd}
45821    Statically Linked DIR:   ${support_static_dir}
45822    Statically Linked CONS:  ${support_static_cons}
45823    Database type:           ${db_type}
45824    Database port:           ${db_port}
45825    Database lib:            ${DB_LIBS}
45826    Database name:           ${db_name}
45827    Database user:           ${db_user}
45828
45829    Job Output Email:        ${job_email}
45830    Traceback Email:         ${dump_email}
45831    SMTP Host Address:       ${smtp_host}
45832
45833    Director Port:           ${dir_port}
45834    File daemon Port:        ${fd_port}
45835    Storage daemon Port:     ${sd_port}
45836
45837    Director User:           ${dir_user}
45838    Director Group:          ${dir_group}
45839    Storage Daemon User:     ${sd_user}
45840    Storage DaemonGroup:     ${sd_group}
45841    File Daemon User:        ${fd_user}
45842    File Daemon Group:       ${fd_group}
45843
45844    SQL binaries Directory   ${SQL_BINDIR}
45845
45846    Large file support:      $largefile_support
45847    Bacula conio support:    ${got_conio} ${CONS_LIBS}
45848    readline support:        ${got_readline} ${PRTREADLINE_SRC}
45849    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
45850    TLS support:             ${support_tls}
45851    Encryption support:      ${support_crypto}
45852    ZLIB support:            ${have_zlib}
45853    enable-smartalloc:       ${support_smartalloc}
45854    enable-lockmgr:          ${support_lockmgr}
45855    bat support:             ${support_bat} ${QWT_LDFLAGS}
45856    enable-gnome:            ${support_gnome} ${gnome_version}
45857    enable-bwx-console:      ${support_wx_console} ${wx_version}
45858    enable-tray-monitor:     ${support_tray_monitor}
45859    client-only:             ${build_client_only}
45860    build-dird:              ${build_dird}
45861    build-stored:            ${build_stored}
45862    ACL support:             ${have_acl}
45863    XATTR support:           ${have_xattr}
45864    Python support:          ${support_python} ${PYTHON_LIBS}
45865    Batch insert enabled:    ${support_batch_insert}
45866
45867   " > config.out
45868
45869 cat config.out