]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Merge branch '3.0.3' of ssh://bacula.git.sourceforge.net/gitroot/bacula/bacula into...
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 GNOME_INCLUDEDIR
950 GNOMEUI_LIBS
951 GNOME_LIBDIR
952 GNOME_LIBS
953 GNOME_DIR
954 BAT_DIR
955 QWT_INC
956 QWT_LDFLAGS
957 QWT_LIB
958 QWT
959 WXCONS_CPPFLAGS
960 WXCONS_LDFLAGS
961 WX_DIR
962 TRAY_MONITOR_CPPFLAGS
963 TRAY_MONITOR_LDFLAGS
964 TRAY_MONITOR_DIR
965 TTOOL_LDFLAGS
966 STATIC_FD
967 STATIC_SD
968 STATIC_DIR
969 STATIC_CONS
970 STATIC_GNOME_CONS
971 STATIC_WX_CONS
972 ALL_DIRS
973 DIRD_DIR
974 DIR_TOOLS
975 STORED_DIR
976 CONS_INC
977 CONS_OBJ
978 CONS_SRC
979 CONS_LIBS
980 CONS_LDFLAGS
981 READLINE_SRC
982 PYTHON_LIBS
983 PYTHON_INCDIR
984 OPENSSL_LIBS
985 OPENSSL_INC
986 working_dir
987 archivedir
988 basename
989 hostname
990 scriptdir
991 bsrdir
992 logdir
993 plugindir
994 dump_email
995 job_email
996 smtp_host
997 piddir
998 subsysdir
999 baseport
1000 dir_port
1001 fd_port
1002 sd_port
1003 dir_password
1004 fd_password
1005 sd_password
1006 mon_dir_password
1007 mon_fd_password
1008 mon_sd_password
1009 db_name
1010 db_user
1011 db_password
1012 db_port
1013 dir_user
1014 dir_group
1015 sd_user
1016 sd_group
1017 fd_user
1018 fd_group
1019 SBINPERM
1020 SQL_LFLAGS
1021 SQL_INCLUDE
1022 SQL_BINDIR
1023 DBI_DBD_DRIVERDIR
1024 uncomment_dbi
1025 DB_PROG
1026 DB_PROG_LIB
1027 cats
1028 DB_TYPE
1029 GETCONF
1030 XMKMF
1031 X_CFLAGS
1032 X_PRE_LIBS
1033 X_LIBS
1034 X_EXTRA_LIBS
1035 LIBOBJS
1036 FDLIBS
1037 DEBUG
1038 DINCLUDE
1039 DLIB
1040 DB_LIBS
1041 WCFLAGS
1042 WLDFLAGS
1043 WRAPLIBS
1044 OBJLIST
1045 TAPEDRIVE
1046 PSCMD
1047 WIN32
1048 MACOSX
1049 DISTNAME
1050 DISTVER
1051 LTLIBOBJS'
1052 ac_subst_files='MCOMMON'
1053       ac_precious_vars='build_alias
1054 host_alias
1055 target_alias
1056 CC
1057 CFLAGS
1058 LDFLAGS
1059 LIBS
1060 CPPFLAGS
1061 CXX
1062 CXXFLAGS
1063 CCC
1064 CPP
1065 WXCONFIG
1066 WXFLAGS
1067 CXXCPP
1068 XMKMF'
1069
1070
1071 # Initialize some variables set by options.
1072 ac_init_help=
1073 ac_init_version=false
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1077 exec_prefix=NONE
1078 no_create=
1079 no_recursion=
1080 prefix=NONE
1081 program_prefix=NONE
1082 program_suffix=NONE
1083 program_transform_name=s,x,x,
1084 silent=
1085 site=
1086 srcdir=
1087 verbose=
1088 x_includes=NONE
1089 x_libraries=NONE
1090
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE}'
1108 infodir='${datarootdir}/info'
1109 htmldir='${docdir}'
1110 dvidir='${docdir}'
1111 pdfdir='${docdir}'
1112 psdir='${docdir}'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1116
1117 ac_prev=
1118 ac_dashdash=
1119 for ac_option
1120 do
1121   # If the previous option needs an argument, assign it.
1122   if test -n "$ac_prev"; then
1123     eval $ac_prev=\$ac_option
1124     ac_prev=
1125     continue
1126   fi
1127
1128   case $ac_option in
1129   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130   *)    ac_optarg=yes ;;
1131   esac
1132
1133   # Accept the important Cygnus configure options, so we can diagnose typos.
1134
1135   case $ac_dashdash$ac_option in
1136   --)
1137     ac_dashdash=yes ;;
1138
1139   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1140     ac_prev=bindir ;;
1141   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142     bindir=$ac_optarg ;;
1143
1144   -build | --build | --buil | --bui | --bu)
1145     ac_prev=build_alias ;;
1146   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147     build_alias=$ac_optarg ;;
1148
1149   -cache-file | --cache-file | --cache-fil | --cache-fi \
1150   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151     ac_prev=cache_file ;;
1152   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154     cache_file=$ac_optarg ;;
1155
1156   --config-cache | -C)
1157     cache_file=config.cache ;;
1158
1159   -datadir | --datadir | --datadi | --datad)
1160     ac_prev=datadir ;;
1161   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162     datadir=$ac_optarg ;;
1163
1164   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165   | --dataroo | --dataro | --datar)
1166     ac_prev=datarootdir ;;
1167   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169     datarootdir=$ac_optarg ;;
1170
1171   -disable-* | --disable-*)
1172     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1176    { (exit 1); exit 1; }; }
1177     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1178     eval enable_$ac_feature=no ;;
1179
1180   -docdir | --docdir | --docdi | --doc | --do)
1181     ac_prev=docdir ;;
1182   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183     docdir=$ac_optarg ;;
1184
1185   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1186     ac_prev=dvidir ;;
1187   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188     dvidir=$ac_optarg ;;
1189
1190   -enable-* | --enable-*)
1191     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1195    { (exit 1); exit 1; }; }
1196     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1197     eval enable_$ac_feature=\$ac_optarg ;;
1198
1199   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1200   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1201   | --exec | --exe | --ex)
1202     ac_prev=exec_prefix ;;
1203   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1204   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1205   | --exec=* | --exe=* | --ex=*)
1206     exec_prefix=$ac_optarg ;;
1207
1208   -gas | --gas | --ga | --g)
1209     # Obsolete; use --with-gas.
1210     with_gas=yes ;;
1211
1212   -help | --help | --hel | --he | -h)
1213     ac_init_help=long ;;
1214   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1215     ac_init_help=recursive ;;
1216   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1217     ac_init_help=short ;;
1218
1219   -host | --host | --hos | --ho)
1220     ac_prev=host_alias ;;
1221   -host=* | --host=* | --hos=* | --ho=*)
1222     host_alias=$ac_optarg ;;
1223
1224   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1225     ac_prev=htmldir ;;
1226   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1227   | --ht=*)
1228     htmldir=$ac_optarg ;;
1229
1230   -includedir | --includedir | --includedi | --included | --include \
1231   | --includ | --inclu | --incl | --inc)
1232     ac_prev=includedir ;;
1233   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1234   | --includ=* | --inclu=* | --incl=* | --inc=*)
1235     includedir=$ac_optarg ;;
1236
1237   -infodir | --infodir | --infodi | --infod | --info | --inf)
1238     ac_prev=infodir ;;
1239   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1240     infodir=$ac_optarg ;;
1241
1242   -libdir | --libdir | --libdi | --libd)
1243     ac_prev=libdir ;;
1244   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1245     libdir=$ac_optarg ;;
1246
1247   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1248   | --libexe | --libex | --libe)
1249     ac_prev=libexecdir ;;
1250   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1251   | --libexe=* | --libex=* | --libe=*)
1252     libexecdir=$ac_optarg ;;
1253
1254   -localedir | --localedir | --localedi | --localed | --locale)
1255     ac_prev=localedir ;;
1256   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1257     localedir=$ac_optarg ;;
1258
1259   -localstatedir | --localstatedir | --localstatedi | --localstated \
1260   | --localstate | --localstat | --localsta | --localst | --locals)
1261     ac_prev=localstatedir ;;
1262   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1263   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1264     localstatedir=$ac_optarg ;;
1265
1266   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1267     ac_prev=mandir ;;
1268   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1269     mandir=$ac_optarg ;;
1270
1271   -nfp | --nfp | --nf)
1272     # Obsolete; use --without-fp.
1273     with_fp=no ;;
1274
1275   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1276   | --no-cr | --no-c | -n)
1277     no_create=yes ;;
1278
1279   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1280   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1281     no_recursion=yes ;;
1282
1283   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1284   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1285   | --oldin | --oldi | --old | --ol | --o)
1286     ac_prev=oldincludedir ;;
1287   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1288   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1289   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1290     oldincludedir=$ac_optarg ;;
1291
1292   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1293     ac_prev=prefix ;;
1294   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1295     prefix=$ac_optarg ;;
1296
1297   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1298   | --program-pre | --program-pr | --program-p)
1299     ac_prev=program_prefix ;;
1300   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1301   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1302     program_prefix=$ac_optarg ;;
1303
1304   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1305   | --program-suf | --program-su | --program-s)
1306     ac_prev=program_suffix ;;
1307   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1308   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1309     program_suffix=$ac_optarg ;;
1310
1311   -program-transform-name | --program-transform-name \
1312   | --program-transform-nam | --program-transform-na \
1313   | --program-transform-n | --program-transform- \
1314   | --program-transform | --program-transfor \
1315   | --program-transfo | --program-transf \
1316   | --program-trans | --program-tran \
1317   | --progr-tra | --program-tr | --program-t)
1318     ac_prev=program_transform_name ;;
1319   -program-transform-name=* | --program-transform-name=* \
1320   | --program-transform-nam=* | --program-transform-na=* \
1321   | --program-transform-n=* | --program-transform-=* \
1322   | --program-transform=* | --program-transfor=* \
1323   | --program-transfo=* | --program-transf=* \
1324   | --program-trans=* | --program-tran=* \
1325   | --progr-tra=* | --program-tr=* | --program-t=*)
1326     program_transform_name=$ac_optarg ;;
1327
1328   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1329     ac_prev=pdfdir ;;
1330   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1331     pdfdir=$ac_optarg ;;
1332
1333   -psdir | --psdir | --psdi | --psd | --ps)
1334     ac_prev=psdir ;;
1335   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1336     psdir=$ac_optarg ;;
1337
1338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339   | -silent | --silent | --silen | --sile | --sil)
1340     silent=yes ;;
1341
1342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1343     ac_prev=sbindir ;;
1344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1345   | --sbi=* | --sb=*)
1346     sbindir=$ac_optarg ;;
1347
1348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1350   | --sharedst | --shareds | --shared | --share | --shar \
1351   | --sha | --sh)
1352     ac_prev=sharedstatedir ;;
1353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1356   | --sha=* | --sh=*)
1357     sharedstatedir=$ac_optarg ;;
1358
1359   -site | --site | --sit)
1360     ac_prev=site ;;
1361   -site=* | --site=* | --sit=*)
1362     site=$ac_optarg ;;
1363
1364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1365     ac_prev=srcdir ;;
1366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1367     srcdir=$ac_optarg ;;
1368
1369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1370   | --syscon | --sysco | --sysc | --sys | --sy)
1371     ac_prev=sysconfdir ;;
1372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1374     sysconfdir=$ac_optarg ;;
1375
1376   -target | --target | --targe | --targ | --tar | --ta | --t)
1377     ac_prev=target_alias ;;
1378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1379     target_alias=$ac_optarg ;;
1380
1381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1382     verbose=yes ;;
1383
1384   -version | --version | --versio | --versi | --vers | -V)
1385     ac_init_version=: ;;
1386
1387   -with-* | --with-*)
1388     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1389     # Reject names that are not valid shell variable names.
1390     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391       { echo "$as_me: error: invalid package name: $ac_package" >&2
1392    { (exit 1); exit 1; }; }
1393     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394     eval with_$ac_package=\$ac_optarg ;;
1395
1396   -without-* | --without-*)
1397     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=no ;;
1404
1405   --x)
1406     # Obsolete; use --with-x.
1407     with_x=yes ;;
1408
1409   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410   | --x-incl | --x-inc | --x-in | --x-i)
1411     ac_prev=x_includes ;;
1412   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414     x_includes=$ac_optarg ;;
1415
1416   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418     ac_prev=x_libraries ;;
1419   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421     x_libraries=$ac_optarg ;;
1422
1423   -*) { echo "$as_me: error: unrecognized option: $ac_option
1424 Try \`$0 --help' for more information." >&2
1425    { (exit 1); exit 1; }; }
1426     ;;
1427
1428   *=*)
1429     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430     # Reject names that are not valid shell variable names.
1431     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1432       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1433    { (exit 1); exit 1; }; }
1434     eval $ac_envvar=\$ac_optarg
1435     export $ac_envvar ;;
1436
1437   *)
1438     # FIXME: should be removed in autoconf 3.0.
1439     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1443     ;;
1444
1445   esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450   { echo "$as_me: error: missing argument to $ac_option" >&2
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 # Be sure to have absolute directory names.
1455 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456                 datadir sysconfdir sharedstatedir localstatedir includedir \
1457                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458                 libdir localedir mandir
1459 do
1460   eval ac_val=\$$ac_var
1461   case $ac_val in
1462     [\\/$]* | ?:[\\/]* )  continue;;
1463     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1464   esac
1465   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1466    { (exit 1); exit 1; }; }
1467 done
1468
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1472 build=$build_alias
1473 host=$host_alias
1474 target=$target_alias
1475
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478   if test "x$build_alias" = x; then
1479     cross_compiling=maybe
1480     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1481     If a cross compiler is detected then cross compile mode will be used." >&2
1482   elif test "x$build_alias" != "x$host_alias"; then
1483     cross_compiling=yes
1484   fi
1485 fi
1486
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490 test "$silent" = yes && exec 6>/dev/null
1491
1492
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496   { echo "$as_me: error: Working directory cannot be determined" >&2
1497    { (exit 1); exit 1; }; }
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499   { echo "$as_me: error: pwd does not report name of working directory" >&2
1500    { (exit 1); exit 1; }; }
1501
1502
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505   ac_srcdir_defaulted=yes
1506   # Try the directory containing this script, then the parent directory.
1507   ac_confdir=`$as_dirname -- "$0" ||
1508 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509          X"$0" : 'X\(//\)[^/]' \| \
1510          X"$0" : 'X\(//\)$' \| \
1511          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1512 echo X"$0" |
1513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)[^/].*/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\/\)$/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\).*/{
1526             s//\1/
1527             q
1528           }
1529           s/.*/./; q'`
1530   srcdir=$ac_confdir
1531   if test ! -r "$srcdir/$ac_unique_file"; then
1532     srcdir=..
1533   fi
1534 else
1535   ac_srcdir_defaulted=no
1536 fi
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1540    { (exit 1); exit 1; }; }
1541 fi
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1543 ac_abs_confdir=`(
1544         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1545    { (exit 1); exit 1; }; }
1546         pwd)`
1547 # When building in place, set srcdir=.
1548 if test "$ac_abs_confdir" = "$ac_pwd"; then
1549   srcdir=.
1550 fi
1551 # Remove unnecessary trailing slashes from srcdir.
1552 # Double slashes in file names in object file debugging info
1553 # mess up M-x gdb in Emacs.
1554 case $srcdir in
1555 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1556 esac
1557 for ac_var in $ac_precious_vars; do
1558   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1559   eval ac_env_${ac_var}_value=\$${ac_var}
1560   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1561   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 done
1563
1564 #
1565 # Report the --help message.
1566 #
1567 if test "$ac_init_help" = "long"; then
1568   # Omit some internal or obsolete options to make the list less imposing.
1569   # This message is too long to be a string in the A/UX 3.1 sh.
1570   cat <<_ACEOF
1571 \`configure' configures this package to adapt to many kinds of systems.
1572
1573 Usage: $0 [OPTION]... [VAR=VALUE]...
1574
1575 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1576 VAR=VALUE.  See below for descriptions of some of the useful variables.
1577
1578 Defaults for the options are specified in brackets.
1579
1580 Configuration:
1581   -h, --help              display this help and exit
1582       --help=short        display options specific to this package
1583       --help=recursive    display the short help of all the included packages
1584   -V, --version           display version information and exit
1585   -q, --quiet, --silent   do not print \`checking...' messages
1586       --cache-file=FILE   cache test results in FILE [disabled]
1587   -C, --config-cache      alias for \`--cache-file=config.cache'
1588   -n, --no-create         do not create output files
1589       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1590
1591 Installation directories:
1592   --prefix=PREFIX         install architecture-independent files in PREFIX
1593                           [$ac_default_prefix]
1594   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1595                           [PREFIX]
1596
1597 By default, \`make install' will install all the files in
1598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1600 for instance \`--prefix=\$HOME'.
1601
1602 For better control, use the options below.
1603
1604 Fine tuning of the installation directories:
1605   --bindir=DIR           user executables [EPREFIX/bin]
1606   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1607   --libexecdir=DIR       program executables [EPREFIX/libexec]
1608   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1609   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1610   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1611   --libdir=DIR           object code libraries [EPREFIX/lib]
1612   --includedir=DIR       C header files [PREFIX/include]
1613   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1614   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1615   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1616   --infodir=DIR          info documentation [DATAROOTDIR/info]
1617   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1618   --mandir=DIR           man documentation [DATAROOTDIR/man]
1619   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1620   --htmldir=DIR          html documentation [DOCDIR]
1621   --dvidir=DIR           dvi documentation [DOCDIR]
1622   --pdfdir=DIR           pdf documentation [DOCDIR]
1623   --psdir=DIR            ps documentation [DOCDIR]
1624 _ACEOF
1625
1626   cat <<\_ACEOF
1627
1628 X features:
1629   --x-includes=DIR    X include files are in DIR
1630   --x-libraries=DIR   X library files are in DIR
1631
1632 System types:
1633   --build=BUILD     configure for building on BUILD [guessed]
1634   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1635 _ACEOF
1636 fi
1637
1638 if test -n "$ac_init_help"; then
1639
1640   cat <<\_ACEOF
1641
1642 Optional Features:
1643   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1644   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1645   --enable-libtool        enable building using GNU libtool [default=yes]
1646   --enable-shared[=PKGS]  build shared libraries [default=yes]
1647   --enable-static[=PKGS]  build static libraries [default=no]
1648   --enable-fast-install[=PKGS]
1649                           optimize for fast installation [default=yes]
1650   --disable-libtool-lock  avoid locking (might break parallel builds)
1651   --enable-includes       enable installing of include files [default=no]
1652   --disable-nls           do not use Native Language Support
1653   --disable-rpath         do not hardcode runtime library paths
1654   --enable-gnome          enable build of bgnome-console GUI [default=no]
1655   --enable-bat            enable build of bat Qt4 GUI [default=no]
1656   --enable-bwx-console    enable build of wxWidgets console [default=no]
1657   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1658                           KDE [default=no]
1659   --enable-smartalloc     enable smartalloc debugging support [default=no]
1660   --enable-lockmgr        enable lock manager support [default=no]
1661   --enable-static-tools   enable static tape tools [default=no]
1662   --enable-static-fd      enable static File daemon [default=no]
1663   --enable-static-sd      enable static Storage daemon [default=no]
1664   --enable-static-dir     enable static Director [default=no]
1665   --enable-static-cons    enable static Console [default=no]
1666   --enable-client-only    build client (File daemon) only [default=no]
1667   --enable-build-dird     enable building of dird (Director) [default=yes]
1668   --enable-build-stored   enable building of stored (Storage daemon)
1669                           [default=yes]
1670   --disable-conio         disable conio support [default=no]
1671   --enable-ipv6           enable ipv6 support [default=yes]
1672   --disable-readline      disable readline support [default=yes]
1673   --enable-batch-insert   enable the DB batch insert code [default=no]
1674   --disable-largefile     omit support for large files
1675   --disable-acl           disable acl support [default=auto]
1676   --disable-xattr         disable xattr support [default=auto]
1677
1678 Optional Packages:
1679   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1681   --with-pic              try to use only PIC/non-PIC objects [default=use
1682                           both]
1683   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1684   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1685   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1686   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1687   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1688   --without-libintl-prefix     don't search for libintl in includedir and libdir
1689   --with-included-gettext use the GNU gettext library included here
1690   --with-qwt[=DIR]        specify qwt library directory
1691   --with-readline[=DIR]   specify readline library directory
1692   --with-python[=DIR]     Include Python support. DIR is the Python base
1693                           install directory, default is to search through a
1694                           number of common places for the Python files.
1695   --with-tcp-wrappers[=DIR]
1696                           enable tcpwrappers support
1697   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1698   --with-working-dir=PATH specify path of Bacula working directory
1699   --with-archivedir=PATH  specify path of SD archive directory
1700   --with-basename=RESNAME specify base resource name for daemons
1701   --with-hostname=RESNAME specify host name for daemons
1702   --with-scriptdir=PATH   specify path of Bacula scripts directory
1703   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1704   --with-logdir=PATH      specify path of Bacula logs directory
1705   --with-plugindir=PATH   specify path of Bacula plugins directory
1706   --with-dump-email=EMAIL dump email address
1707   --with-job-email=EMAIL  job output email address
1708   --with-smtp-host=HOST   SMTP mail host address
1709   --with-pid-dir=PATH     specify location of Bacula pid files
1710   --with-subsys-dir=PATH  specify location of Bacula subsys file
1711   --with-baseport=PORT    specify base port address for daemons
1712   --with-dir-password=PASSWORD
1713                           specify Director's password
1714   --with-fd-password=PASSWORD
1715                           specify Client's password
1716   --with-sd-password=PASSWORD
1717                           specify Storage daemon's password
1718   --with-mon-dir-password=PASSWORD
1719                           specify Director's password used by the monitor
1720   --with-mon-fd-password=PASSWORD
1721                           specify Client's password used by the monitor
1722   --with-mon-sd-password=PASSWORD
1723                           specify Storage daemon's password used by the
1724                           monitor
1725   --with-db-name=DBNAME   specify database name [default=bacula]
1726   --with-db-user=UNAME    specify database user [default=bacula]
1727   --with-db-password=PWD  specify database password [default=*none*]
1728   --with-db-port=DBPORT   specify a database port [default=null]
1729   --with-dir-user=USER    specify user for Director daemon
1730   --with-dir-group=GROUP  specify group for Director daemon
1731   --with-sd-user=USER     specify user for Storage daemon
1732   --with-sd-group=GROUP   specify group for Storage daemon
1733   --with-fd-user=USER     specify user for File daemon
1734   --with-fd-group=GROUP   specify group for File daemon
1735   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1736   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1737                           base install directory, [default=/usr/local/pgsql]
1738   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-embedded-mysql[=DIR]
1742                           Include MySQL support. DIR is the MySQL base install
1743                           directory, default is to search through a number of
1744                           common places for the MySQL files.
1745   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1746                           install directory, default is to search through a
1747                           number of common places for the SQLite3 files.
1748   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1749                           install directory, default is to search through a
1750                           number of common places for the SQLite files.
1751   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1752                           directory, default is to search through a number of
1753                           common places for the DBI files.
1754   --with-dbi-driver[=DRIVER]
1755                           Suport for DBI driver. DRIVER is the one DBI driver
1756                           like Mysql, Postgresql, others. Default is to not
1757                           configure any driver.
1758   --with-x                use the X Window System
1759
1760 Some influential environment variables:
1761   CC          C compiler command
1762   CFLAGS      C compiler flags
1763   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1764               nonstandard directory <lib dir>
1765   LIBS        libraries to pass to the linker, e.g. -l<library>
1766   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1767               you have headers in a nonstandard directory <include dir>
1768   CXX         C++ compiler command
1769   CXXFLAGS    C++ compiler flags
1770   CPP         C preprocessor
1771   WXCONFIG    wx-config command. On some systems, you must set it to
1772               wx-config-2.6 to use wxWidgets 2.6.
1773   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1774   CXXCPP      C++ preprocessor
1775   XMKMF       Path to xmkmf, Makefile generator for X Window System
1776
1777 Use these variables to override the choices made by `configure' or to help
1778 it to find libraries and programs with nonstandard names/locations.
1779
1780 _ACEOF
1781 ac_status=$?
1782 fi
1783
1784 if test "$ac_init_help" = "recursive"; then
1785   # If there are subdirs, report their specific --help.
1786   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1787     test -d "$ac_dir" || continue
1788     ac_builddir=.
1789
1790 case "$ac_dir" in
1791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *)
1793   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1794   # A ".." for each directory in $ac_dir_suffix.
1795   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1796   case $ac_top_builddir_sub in
1797   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1799   esac ;;
1800 esac
1801 ac_abs_top_builddir=$ac_pwd
1802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1803 # for backward compatibility:
1804 ac_top_builddir=$ac_top_build_prefix
1805
1806 case $srcdir in
1807   .)  # We are building in place.
1808     ac_srcdir=.
1809     ac_top_srcdir=$ac_top_builddir_sub
1810     ac_abs_top_srcdir=$ac_pwd ;;
1811   [\\/]* | ?:[\\/]* )  # Absolute name.
1812     ac_srcdir=$srcdir$ac_dir_suffix;
1813     ac_top_srcdir=$srcdir
1814     ac_abs_top_srcdir=$srcdir ;;
1815   *) # Relative name.
1816     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817     ac_top_srcdir=$ac_top_build_prefix$srcdir
1818     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 esac
1820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821
1822     cd "$ac_dir" || { ac_status=$?; continue; }
1823     # Check for guested configure.
1824     if test -f "$ac_srcdir/configure.gnu"; then
1825       echo &&
1826       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827     elif test -f "$ac_srcdir/configure"; then
1828       echo &&
1829       $SHELL "$ac_srcdir/configure" --help=recursive
1830     else
1831       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832     fi || ac_status=$?
1833     cd "$ac_pwd" || { ac_status=$?; break; }
1834   done
1835 fi
1836
1837 test -n "$ac_init_help" && exit $ac_status
1838 if $ac_init_version; then
1839   cat <<\_ACEOF
1840 configure
1841 generated by GNU Autoconf 2.61
1842
1843 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1844 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1845 This configure script is free software; the Free Software Foundation
1846 gives unlimited permission to copy, distribute and modify it.
1847 _ACEOF
1848   exit
1849 fi
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by $as_me, which was
1855 generated by GNU Autoconf 2.61.  Invocation command line was
1856
1857   $ $0 $@
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1875
1876 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1877 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1880 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1881 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1882 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   echo "PATH: $as_dir"
1892 done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918   for ac_arg
1919   do
1920     case $ac_arg in
1921     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923     | -silent | --silent | --silen | --sile | --sil)
1924       continue ;;
1925     *\'*)
1926       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927     esac
1928     case $ac_pass in
1929     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1930     2)
1931       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1932       if test $ac_must_keep_next = true; then
1933         ac_must_keep_next=false # Got value, back to normal.
1934       else
1935         case $ac_arg in
1936           *=* | --config-cache | -C | -disable-* | --disable-* \
1937           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939           | -with-* | --with-* | -without-* | --without-* | --x)
1940             case "$ac_configure_args0 " in
1941               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942             esac
1943             ;;
1944           -* ) ac_must_keep_next=true ;;
1945         esac
1946       fi
1947       ac_configure_args="$ac_configure_args '$ac_arg'"
1948       ;;
1949     esac
1950   done
1951 done
1952 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1953 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log.  We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961   # Save into config.log some information that might help in debugging.
1962   {
1963     echo
1964
1965     cat <<\_ASBOX
1966 ## ---------------- ##
1967 ## Cache variables. ##
1968 ## ---------------- ##
1969 _ASBOX
1970     echo
1971     # The following way of writing the cache mishandles newlines in values,
1972 (
1973   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974     eval ac_val=\$$ac_var
1975     case $ac_val in #(
1976     *${as_nl}*)
1977       case $ac_var in #(
1978       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1979 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1980       esac
1981       case $ac_var in #(
1982       _ | IFS | as_nl) ;; #(
1983       *) $as_unset $ac_var ;;
1984       esac ;;
1985     esac
1986   done
1987   (set) 2>&1 |
1988     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989     *${as_nl}ac_space=\ *)
1990       sed -n \
1991         "s/'\''/'\''\\\\'\'''\''/g;
1992           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993       ;; #(
1994     *)
1995       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996       ;;
1997     esac |
1998     sort
1999 )
2000     echo
2001
2002     cat <<\_ASBOX
2003 ## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##
2006 _ASBOX
2007     echo
2008     for ac_var in $ac_subst_vars
2009     do
2010       eval ac_val=\$$ac_var
2011       case $ac_val in
2012       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013       esac
2014       echo "$ac_var='\''$ac_val'\''"
2015     done | sort
2016     echo
2017
2018     if test -n "$ac_subst_files"; then
2019       cat <<\_ASBOX
2020 ## ------------------- ##
2021 ## File substitutions. ##
2022 ## ------------------- ##
2023 _ASBOX
2024       echo
2025       for ac_var in $ac_subst_files
2026       do
2027         eval ac_val=\$$ac_var
2028         case $ac_val in
2029         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030         esac
2031         echo "$ac_var='\''$ac_val'\''"
2032       done | sort
2033       echo
2034     fi
2035
2036     if test -s confdefs.h; then
2037       cat <<\_ASBOX
2038 ## ----------- ##
2039 ## confdefs.h. ##
2040 ## ----------- ##
2041 _ASBOX
2042       echo
2043       cat confdefs.h
2044       echo
2045     fi
2046     test "$ac_signal" != 0 &&
2047       echo "$as_me: caught signal $ac_signal"
2048     echo "$as_me: exit $exit_status"
2049   } >&5
2050   rm -f core *.core core.conftest.* &&
2051     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052     exit $exit_status
2053 ' 0
2054 for ac_signal in 1 2 13 15; do
2055   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2056 done
2057 ac_signal=0
2058
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest* confdefs.h
2061
2062 # Predefined preprocessor variables.
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 _ACEOF
2067
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2071 _ACEOF
2072
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 _ACEOF
2077
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2081 _ACEOF
2082
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 _ACEOF
2087
2088
2089 # Let the site file select an alternate cache file if it wants to.
2090 # Prefer explicitly selected file to automatically selected ones.
2091 if test -n "$CONFIG_SITE"; then
2092   set x "$CONFIG_SITE"
2093 elif test "x$prefix" != xNONE; then
2094   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2095 else
2096   set x "$ac_default_prefix/share/config.site" \
2097         "$ac_default_prefix/etc/config.site"
2098 fi
2099 shift
2100 for ac_site_file
2101 do
2102   if test -r "$ac_site_file"; then
2103     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2104 echo "$as_me: loading site script $ac_site_file" >&6;}
2105     sed 's/^/| /' "$ac_site_file" >&5
2106     . "$ac_site_file"
2107   fi
2108 done
2109
2110 if test -r "$cache_file"; then
2111   # Some versions of bash will fail to source /dev/null (special
2112   # files actually), so we avoid doing that.
2113   if test -f "$cache_file"; then
2114     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2115 echo "$as_me: loading cache $cache_file" >&6;}
2116     case $cache_file in
2117       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2118       *)                      . "./$cache_file";;
2119     esac
2120   fi
2121 else
2122   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2123 echo "$as_me: creating cache $cache_file" >&6;}
2124   >$cache_file
2125 fi
2126
2127 # Check that the precious variables saved in the cache have kept the same
2128 # value.
2129 ac_cache_corrupted=false
2130 for ac_var in $ac_precious_vars; do
2131   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2132   eval ac_new_set=\$ac_env_${ac_var}_set
2133   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2134   eval ac_new_val=\$ac_env_${ac_var}_value
2135   case $ac_old_set,$ac_new_set in
2136     set,)
2137       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2139       ac_cache_corrupted=: ;;
2140     ,set)
2141       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2142 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2143       ac_cache_corrupted=: ;;
2144     ,);;
2145     *)
2146       if test "x$ac_old_val" != "x$ac_new_val"; then
2147         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2148 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2150 echo "$as_me:   former value:  $ac_old_val" >&2;}
2151         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2152 echo "$as_me:   current value: $ac_new_val" >&2;}
2153         ac_cache_corrupted=:
2154       fi;;
2155   esac
2156   # Pass precious variables to config.status.
2157   if test "$ac_new_set" = set; then
2158     case $ac_new_val in
2159     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160     *) ac_arg=$ac_var=$ac_new_val ;;
2161     esac
2162     case " $ac_configure_args " in
2163       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2164       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2165     esac
2166   fi
2167 done
2168 if $ac_cache_corrupted; then
2169   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2170 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2171   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2172 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197
2198
2199 BUILD_DIR=`pwd`
2200 cd ..
2201 TOP_DIR=`pwd`
2202 cd ${BUILD_DIR}
2203
2204
2205 ac_aux_dir=
2206 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2207   if test -f "$ac_dir/install-sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install-sh -c"
2210     break
2211   elif test -f "$ac_dir/install.sh"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/install.sh -c"
2214     break
2215   elif test -f "$ac_dir/shtool"; then
2216     ac_aux_dir=$ac_dir
2217     ac_install_sh="$ac_aux_dir/shtool install -c"
2218     break
2219   fi
2220 done
2221 if test -z "$ac_aux_dir"; then
2222   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2223 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226
2227 # These three variables are undocumented and unsupported,
2228 # and are intended to be withdrawn in a future Autoconf release.
2229 # They can cause serious problems if a builder's source tree is in a directory
2230 # whose full name contains unusual characters.
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2233 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2234
2235
2236 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2237
2238
2239 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2240 WIN32MAINDIR=${BUILD_DIR}
2241 WIN32TOPDIR=${TOP_DIR}
2242
2243
2244
2245
2246
2247
2248
2249 for ac_prog in true
2250 do
2251   # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   case $TRUEPRG in
2259   [\\/]* | ?:[\\/]*)
2260   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2261   ;;
2262   *)
2263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2265 do
2266   IFS=$as_save_IFS
2267   test -z "$as_dir" && as_dir=.
2268   for ac_exec_ext in '' $ac_executable_extensions; do
2269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272     break 2
2273   fi
2274 done
2275 done
2276 IFS=$as_save_IFS
2277
2278   ;;
2279 esac
2280 fi
2281 TRUEPRG=$ac_cv_path_TRUEPRG
2282 if test -n "$TRUEPRG"; then
2283   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2284 echo "${ECHO_T}$TRUEPRG" >&6; }
2285 else
2286   { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2288 fi
2289
2290
2291   test -n "$TRUEPRG" && break
2292 done
2293 test -n "$TRUEPRG" || TRUEPRG=":"
2294
2295 for ac_prog in false
2296 do
2297   # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   case $FALSEPRG in
2305   [\\/]* | ?:[\\/]*)
2306   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2307   ;;
2308   *)
2309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318     break 2
2319   fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324   ;;
2325 esac
2326 fi
2327 FALSEPRG=$ac_cv_path_FALSEPRG
2328 if test -n "$FALSEPRG"; then
2329   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2330 echo "${ECHO_T}$FALSEPRG" >&6; }
2331 else
2332   { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2334 fi
2335
2336
2337   test -n "$FALSEPRG" && break
2338 done
2339 test -n "$FALSEPRG" || FALSEPRG=":"
2340
2341
2342
2343 post_host=
2344 if test "x$BACULA" != x; then
2345    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2346 fi
2347 BACULA=${BACULA:-Bacula}
2348 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2349 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2351 echo "configuring for ${BACULA} $VERSION ($DATE)"
2352
2353
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   if test -n "$CC"; then
2368   ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375   for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389   { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2391 else
2392   { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 fi
2395
2396
2397 fi
2398 if test -z "$ac_cv_prog_CC"; then
2399   ac_ct_CC=$CC
2400   # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417     ac_cv_prog_ac_ct_CC="gcc"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2431 else
2432   { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2434 fi
2435
2436   if test "x$ac_ct_CC" = x; then
2437     CC=""
2438   else
2439     case $cross_compiling:$ac_tool_warned in
2440 yes:)
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet.  If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet.  If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2448 esac
2449     CC=$ac_ct_CC
2450   fi
2451 else
2452   CC="$ac_cv_prog_CC"
2453 fi
2454
2455 if test -z "$CC"; then
2456           if test -n "$ac_tool_prefix"; then
2457     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CC"; then
2465   ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_CC="${ac_tool_prefix}cc"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486   { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   fi
2495 fi
2496 if test -z "$CC"; then
2497   # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$CC"; then
2505   ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507   ac_prog_rejected=no
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516        ac_prog_rejected=yes
2517        continue
2518      fi
2519     ac_cv_prog_CC="cc"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 if test $ac_prog_rejected = yes; then
2528   # We found a bogon in the path, so make sure we never use it.
2529   set dummy $ac_cv_prog_CC
2530   shift
2531   if test $# != 0; then
2532     # We chose a different compiler from the bogus one.
2533     # However, it has the same basename, so the bogon will be chosen
2534     # first if we set CC to just the basename; use the full file name.
2535     shift
2536     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2537   fi
2538 fi
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543   { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2545 else
2546   { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2549
2550
2551 fi
2552 if test -z "$CC"; then
2553   if test -n "$ac_tool_prefix"; then
2554   for ac_prog in cl.exe
2555   do
2556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   if test -n "$CC"; then
2564   ac_cv_prog_CC="$CC" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571   for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585   { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593     test -n "$CC" && break
2594   done
2595 fi
2596 if test -z "$CC"; then
2597   ac_ct_CC=$CC
2598   for ac_prog in cl.exe
2599 do
2600   # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$ac_ct_CC"; then
2608   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_ac_ct_CC="$ac_prog"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2631 else
2632   { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2634 fi
2635
2636
2637   test -n "$ac_ct_CC" && break
2638 done
2639
2640   if test "x$ac_ct_CC" = x; then
2641     CC=""
2642   else
2643     case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet.  If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet.  If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653     CC=$ac_ct_CC
2654   fi
2655 fi
2656
2657 fi
2658
2659
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664    { (exit 1); exit 1; }; }
2665
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_compiler --version >&5") 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_compiler -v >&5") 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&5"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compiler -V >&5") 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }
2699
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2719 # of exeext.
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723 #
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort.  b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728 #
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions.  Remove them first so a
2731 # subsequent execution test works.
2732 ac_rmfiles=
2733 for ac_file in $ac_files
2734 do
2735   case $ac_file in
2736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738   esac
2739 done
2740 rm -f $ac_rmfiles
2741
2742 if { (ac_try="$ac_link_default"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_link_default") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; then
2752   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2756 # Autoconf.
2757 for ac_file in $ac_files ''
2758 do
2759   test -f "$ac_file" || continue
2760   case $ac_file in
2761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2762         ;;
2763     [ab].out )
2764         # We found the default executable, but exeext='' is most
2765         # certainly right.
2766         break;;
2767     *.* )
2768         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769         then :; else
2770            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771         fi
2772         # We set ac_cv_exeext here because the later test for it is not
2773         # safe: cross compilers may not add the suffix if given an `-o'
2774         # argument, so we may need to know it at that point already.
2775         # Even if this section looks crufty: it has the advantage of
2776         # actually working.
2777         break;;
2778     * )
2779         break;;
2780   esac
2781 done
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
2784 else
2785   ac_file=''
2786 fi
2787
2788 { echo "$as_me:$LINENO: result: $ac_file" >&5
2789 echo "${ECHO_T}$ac_file" >&6; }
2790 if test -z "$ac_file"; then
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2795 See \`config.log' for more details." >&5
2796 echo "$as_me: error: C compiler cannot create executables
2797 See \`config.log' for more details." >&2;}
2798    { (exit 77); exit 77; }; }
2799 fi
2800
2801 ac_exeext=$ac_cv_exeext
2802
2803 # Check that the compiler produces executables we can run.  If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2806 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2807 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2808 # If not cross compiling, check that we can run a simple program.
2809 if test "$cross_compiling" != yes; then
2810   if { ac_try='./$ac_file'
2811   { (case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816   (eval "$ac_try") 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; }; then
2820     cross_compiling=no
2821   else
2822     if test "$cross_compiling" = maybe; then
2823         cross_compiling=yes
2824     else
2825         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&2;}
2831    { (exit 1); exit 1; }; }
2832     fi
2833   fi
2834 fi
2835 { echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6; }
2837
2838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2839 ac_clean_files=$ac_clean_files_save
2840 # Check that the compiler produces executables we can run.  If not, either
2841 # the compiler is broken, or we cross compile.
2842 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2844 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2845 echo "${ECHO_T}$cross_compiling" >&6; }
2846
2847 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2849 if { (ac_try="$ac_link"
2850 case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_link") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; then
2859   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2860 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2861 # work properly (i.e., refer to `conftest.exe'), while it won't with
2862 # `rm'.
2863 for ac_file in conftest.exe conftest conftest.*; do
2864   test -f "$ac_file" || continue
2865   case $ac_file in
2866     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2867     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2868           break;;
2869     * ) break;;
2870   esac
2871 done
2872 else
2873   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details." >&2;}
2877    { (exit 1); exit 1; }; }
2878 fi
2879
2880 rm -f conftest$ac_cv_exeext
2881 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2882 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2883
2884 rm -f conftest.$ac_ext
2885 EXEEXT=$ac_cv_exeext
2886 ac_exeext=$EXEEXT
2887 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2888 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2889 if test "${ac_cv_objext+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h.  */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h.  */
2898
2899 int
2900 main ()
2901 {
2902
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.o conftest.obj
2908 if { (ac_try="$ac_compile"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compile") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; then
2918   for ac_file in conftest.o conftest.obj conftest.*; do
2919   test -f "$ac_file" || continue;
2920   case $ac_file in
2921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2922     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923        break;;
2924   esac
2925 done
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2933 See \`config.log' for more details." >&2;}
2934    { (exit 1); exit 1; }; }
2935 fi
2936
2937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2938 fi
2939 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2940 echo "${ECHO_T}$ac_cv_objext" >&6; }
2941 OBJEXT=$ac_cv_objext
2942 ac_objext=$OBJEXT
2943 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954
2955 int
2956 main ()
2957 {
2958 #ifndef __GNUC__
2959        choke me
2960 #endif
2961
2962   ;
2963   return 0;
2964 }
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_compile") 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } && {
2980          test -z "$ac_c_werror_flag" ||
2981          test ! -s conftest.err
2982        } && test -s conftest.$ac_objext; then
2983   ac_compiler_gnu=yes
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988         ac_compiler_gnu=no
2989 fi
2990
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2993
2994 fi
2995 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2997 GCC=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CFLAGS=${CFLAGS+set}
2999 ac_save_CFLAGS=$CFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cc_g+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   ac_save_c_werror_flag=$ac_c_werror_flag
3006    ac_c_werror_flag=yes
3007    ac_cv_prog_cc_g=no
3008    CFLAGS="-g"
3009    cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } && {
3038          test -z "$ac_c_werror_flag" ||
3039          test ! -s conftest.err
3040        } && test -s conftest.$ac_objext; then
3041   ac_cv_prog_cc_g=yes
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046         CFLAGS=""
3047       cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053
3054 int
3055 main ()
3056 {
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069   (eval "$ac_compile") 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } && {
3076          test -z "$ac_c_werror_flag" ||
3077          test ! -s conftest.err
3078        } && test -s conftest.$ac_objext; then
3079   :
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084         ac_c_werror_flag=$ac_save_c_werror_flag
3085          CFLAGS="-g"
3086          cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092
3093 int
3094 main ()
3095 {
3096
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } && {
3115          test -z "$ac_c_werror_flag" ||
3116          test ! -s conftest.err
3117        } && test -s conftest.$ac_objext; then
3118   ac_cv_prog_cc_g=yes
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123
3124 fi
3125
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 fi
3128
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 fi
3131
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133    ac_c_werror_flag=$ac_save_c_werror_flag
3134 fi
3135 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3136 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3137 if test "$ac_test_CFLAGS" = set; then
3138   CFLAGS=$ac_save_CFLAGS
3139 elif test $ac_cv_prog_cc_g = yes; then
3140   if test "$GCC" = yes; then
3141     CFLAGS="-g -O2"
3142   else
3143     CFLAGS="-g"
3144   fi
3145 else
3146   if test "$GCC" = yes; then
3147     CFLAGS="-O2"
3148   else
3149     CFLAGS=
3150   fi
3151 fi
3152 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3153 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_c89+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   ac_cv_prog_cc_c89=no
3158 ac_save_CC=$CC
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <stdarg.h>
3166 #include <stdio.h>
3167 #include <sys/types.h>
3168 #include <sys/stat.h>
3169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3170 struct buf { int x; };
3171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172 static char *e (p, i)
3173      char **p;
3174      int i;
3175 {
3176   return p[i];
3177 }
3178 static char *f (char * (*g) (char **, int), char **p, ...)
3179 {
3180   char *s;
3181   va_list v;
3182   va_start (v,p);
3183   s = g (p, va_arg (v,int));
3184   va_end (v);
3185   return s;
3186 }
3187
3188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3189    function prototypes and stuff, but not '\xHH' hex character constants.
3190    These don't provoke an error unfortunately, instead are silently treated
3191    as 'x'.  The following induces an error, until -std is added to get
3192    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3193    array size at least.  It's necessary to write '\x00'==0 to get something
3194    that's true only with -std.  */
3195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196
3197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198    inside strings and character constants.  */
3199 #define FOO(x) 'x'
3200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206 int argc;
3207 char **argv;
3208 int
3209 main ()
3210 {
3211 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3212   ;
3213   return 0;
3214 }
3215 _ACEOF
3216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218 do
3219   CC="$ac_save_CC $ac_arg"
3220   rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_compile") 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } && {
3234          test -z "$ac_c_werror_flag" ||
3235          test ! -s conftest.err
3236        } && test -s conftest.$ac_objext; then
3237   ac_cv_prog_cc_c89=$ac_arg
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext
3246   test "x$ac_cv_prog_cc_c89" != "xno" && break
3247 done
3248 rm -f conftest.$ac_ext
3249 CC=$ac_save_CC
3250
3251 fi
3252 # AC_CACHE_VAL
3253 case "x$ac_cv_prog_cc_c89" in
3254   x)
3255     { echo "$as_me:$LINENO: result: none needed" >&5
3256 echo "${ECHO_T}none needed" >&6; } ;;
3257   xno)
3258     { echo "$as_me:$LINENO: result: unsupported" >&5
3259 echo "${ECHO_T}unsupported" >&6; } ;;
3260   *)
3261     CC="$CC $ac_cv_prog_cc_c89"
3262     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3264 esac
3265
3266
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272
3273 ac_ext=cpp
3274 ac_cpp='$CXXCPP $CPPFLAGS'
3275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3278 if test -z "$CXX"; then
3279   if test -n "$CCC"; then
3280     CXX=$CCC
3281   else
3282     if test -n "$ac_tool_prefix"; then
3283   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3284   do
3285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_CXX+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292   if test -n "$CXX"; then
3293   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300   for ac_exec_ext in '' $ac_executable_extensions; do
3301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CXX=$ac_cv_prog_CXX
3313 if test -n "$CXX"; then
3314   { echo "$as_me:$LINENO: result: $CXX" >&5
3315 echo "${ECHO_T}$CXX" >&6; }
3316 else
3317   { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3319 fi
3320
3321
3322     test -n "$CXX" && break
3323   done
3324 fi
3325 if test -z "$CXX"; then
3326   ac_ct_CXX=$CXX
3327   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3328 do
3329   # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3333 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3334   echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336   if test -n "$ac_ct_CXX"; then
3337   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344   for ac_exec_ext in '' $ac_executable_extensions; do
3345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346     ac_cv_prog_ac_ct_CXX="$ac_prog"
3347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3357 if test -n "$ac_ct_CXX"; then
3358   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3359 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3360 else
3361   { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3363 fi
3364
3365
3366   test -n "$ac_ct_CXX" && break
3367 done
3368
3369   if test "x$ac_ct_CXX" = x; then
3370     CXX="g++"
3371   else
3372     case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3375 whose name does not start with the host triplet.  If you think this
3376 configuration is useful to you, please write to autoconf@gnu.org." >&5
3377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3378 whose name does not start with the host triplet.  If you think this
3379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3380 ac_tool_warned=yes ;;
3381 esac
3382     CXX=$ac_ct_CXX
3383   fi
3384 fi
3385
3386   fi
3387 fi
3388 # Provide some information about the compiler.
3389 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3390 ac_compiler=`set X $ac_compile; echo $2`
3391 { (ac_try="$ac_compiler --version >&5"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397   (eval "$ac_compiler --version >&5") 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }
3401 { (ac_try="$ac_compiler -v >&5"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_compiler -v >&5") 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }
3411 { (ac_try="$ac_compiler -V >&5"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_compiler -V >&5") 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }
3421
3422 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3423 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3424 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437 #ifndef __GNUC__
3438        choke me
3439 #endif
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_compile") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } && {
3459          test -z "$ac_cxx_werror_flag" ||
3460          test ! -s conftest.err
3461        } && test -s conftest.$ac_objext; then
3462   ac_compiler_gnu=yes
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467         ac_compiler_gnu=no
3468 fi
3469
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3472
3473 fi
3474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3475 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3476 GXX=`test $ac_compiler_gnu = yes && echo yes`
3477 ac_test_CXXFLAGS=${CXXFLAGS+set}
3478 ac_save_CXXFLAGS=$CXXFLAGS
3479 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3480 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3481 if test "${ac_cv_prog_cxx_g+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3485    ac_cxx_werror_flag=yes
3486    ac_cv_prog_cxx_g=no
3487    CXXFLAGS="-g"
3488    cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_compile") 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } && {
3517          test -z "$ac_cxx_werror_flag" ||
3518          test ! -s conftest.err
3519        } && test -s conftest.$ac_objext; then
3520   ac_cv_prog_cxx_g=yes
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525         CXXFLAGS=""
3526       cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h.  */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548   (eval "$ac_compile") 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } && {
3555          test -z "$ac_cxx_werror_flag" ||
3556          test ! -s conftest.err
3557        } && test -s conftest.$ac_objext; then
3558   :
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3564          CXXFLAGS="-g"
3565          cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h.  */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h.  */
3571
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_compile") 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } && {
3594          test -z "$ac_cxx_werror_flag" ||
3595          test ! -s conftest.err
3596        } && test -s conftest.$ac_objext; then
3597   ac_cv_prog_cxx_g=yes
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602
3603 fi
3604
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3613 fi
3614 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3615 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3616 if test "$ac_test_CXXFLAGS" = set; then
3617   CXXFLAGS=$ac_save_CXXFLAGS
3618 elif test $ac_cv_prog_cxx_g = yes; then
3619   if test "$GXX" = yes; then
3620     CXXFLAGS="-g -O2"
3621   else
3622     CXXFLAGS="-g"
3623   fi
3624 else
3625   if test "$GXX" = yes; then
3626     CXXFLAGS="-O2"
3627   else
3628     CXXFLAGS=
3629   fi
3630 fi
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637 if test "x$CC" != xcc; then
3638   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3639 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3640 else
3641   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3642 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3643 fi
3644 set dummy $CC; ac_cc=`echo $2 |
3645                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3646 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 # Make sure it works both with $CC and with simple cc.
3665 # We do the test twice because some compilers refuse to overwrite an
3666 # existing .o file with -o, though they will create one.
3667 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3668 rm -f conftest2.*
3669 if { (case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_try") 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } &&
3678    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683   (eval "$ac_try") 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); };
3687 then
3688   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3689   if test "x$CC" != xcc; then
3690     # Test first that cc exists at all.
3691     if { ac_try='cc -c conftest.$ac_ext >&5'
3692   { (case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697   (eval "$ac_try") 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3702       rm -f conftest2.*
3703       if { (case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_try") 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } &&
3712          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714   *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717   (eval "$ac_try") 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); };
3721       then
3722         # cc works too.
3723         :
3724       else
3725         # cc exists but doesn't like -o.
3726         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3727       fi
3728     fi
3729   fi
3730 else
3731   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3732 fi
3733 rm -f core conftest*
3734
3735 fi
3736 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3737   { echo "$as_me:$LINENO: result: yes" >&5
3738 echo "${ECHO_T}yes" >&6; }
3739 else
3740   { echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6; }
3742
3743 cat >>confdefs.h <<\_ACEOF
3744 #define NO_MINUS_C_MINUS_O 1
3745 _ACEOF
3746
3747 fi
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3755 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3756 # On Suns, sometimes $CPP names a directory.
3757 if test -n "$CPP" && test -d "$CPP"; then
3758   CPP=
3759 fi
3760 if test -z "$CPP"; then
3761   if test "${ac_cv_prog_CPP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764       # Double quotes because CPP needs to be expanded
3765     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3766     do
3767       ac_preproc_ok=false
3768 for ac_c_preproc_warn_flag in '' yes
3769 do
3770   # Use a header file that comes with gcc, so configuring glibc
3771   # with a fresh cross-compiler works.
3772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773   # <limits.h> exists even on freestanding compilers.
3774   # On the NeXT, cc -E runs the code through the compiler's parser,
3775   # not just through cpp. "Syntax error" is here to catch this case.
3776   cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h.  */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h.  */
3782 #ifdef __STDC__
3783 # include <limits.h>
3784 #else
3785 # include <assert.h>
3786 #endif
3787                      Syntax error
3788 _ACEOF
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } >/dev/null && {
3802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3803          test ! -s conftest.err
3804        }; then
3805   :
3806 else
3807   echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810   # Broken: fails on valid input.
3811 continue
3812 fi
3813
3814 rm -f conftest.err conftest.$ac_ext
3815
3816   # OK, works on sane cases.  Now check whether nonexistent headers
3817   # can be detected and how.
3818   cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 #include <ac_nonexistent.h>
3825 _ACEOF
3826 if { (ac_try="$ac_cpp conftest.$ac_ext"
3827 case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } >/dev/null && {
3839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3840          test ! -s conftest.err
3841        }; then
3842   # Broken: success on invalid input.
3843 continue
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848   # Passes both tests.
3849 ac_preproc_ok=:
3850 break
3851 fi
3852
3853 rm -f conftest.err conftest.$ac_ext
3854
3855 done
3856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857 rm -f conftest.err conftest.$ac_ext
3858 if $ac_preproc_ok; then
3859   break
3860 fi
3861
3862     done
3863     ac_cv_prog_CPP=$CPP
3864
3865 fi
3866   CPP=$ac_cv_prog_CPP
3867 else
3868   ac_cv_prog_CPP=$CPP
3869 fi
3870 { echo "$as_me:$LINENO: result: $CPP" >&5
3871 echo "${ECHO_T}$CPP" >&6; }
3872 ac_preproc_ok=false
3873 for ac_c_preproc_warn_flag in '' yes
3874 do
3875   # Use a header file that comes with gcc, so configuring glibc
3876   # with a fresh cross-compiler works.
3877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878   # <limits.h> exists even on freestanding compilers.
3879   # On the NeXT, cc -E runs the code through the compiler's parser,
3880   # not just through cpp. "Syntax error" is here to catch this case.
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #ifdef __STDC__
3888 # include <limits.h>
3889 #else
3890 # include <assert.h>
3891 #endif
3892                      Syntax error
3893 _ACEOF
3894 if { (ac_try="$ac_cpp conftest.$ac_ext"
3895 case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } >/dev/null && {
3907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        }; then
3910   :
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915   # Broken: fails on valid input.
3916 continue
3917 fi
3918
3919 rm -f conftest.err conftest.$ac_ext
3920
3921   # OK, works on sane cases.  Now check whether nonexistent headers
3922   # can be detected and how.
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <ac_nonexistent.h>
3930 _ACEOF
3931 if { (ac_try="$ac_cpp conftest.$ac_ext"
3932 case "(($ac_try" in
3933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934   *) ac_try_echo=$ac_try;;
3935 esac
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3938   ac_status=$?
3939   grep -v '^ *+' conftest.er1 >conftest.err
3940   rm -f conftest.er1
3941   cat conftest.err >&5
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); } >/dev/null && {
3944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3945          test ! -s conftest.err
3946        }; then
3947   # Broken: success on invalid input.
3948 continue
3949 else
3950   echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953   # Passes both tests.
3954 ac_preproc_ok=:
3955 break
3956 fi
3957
3958 rm -f conftest.err conftest.$ac_ext
3959
3960 done
3961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3962 rm -f conftest.err conftest.$ac_ext
3963 if $ac_preproc_ok; then
3964   :
3965 else
3966   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&5
3968 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3969 See \`config.log' for more details." >&2;}
3970    { (exit 1); exit 1; }; }
3971 fi
3972
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978
3979
3980 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3981 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3982 if test "${ac_cv_path_GREP+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   # Extract the first word of "grep ggrep" to use in msg output
3986 if test -z "$GREP"; then
3987 set dummy grep ggrep; ac_prog_name=$2
3988 if test "${ac_cv_path_GREP+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   ac_path_GREP_found=false
3992 # Loop through the user's path and test for each of PROGNAME-LIST
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998   for ac_prog in grep ggrep; do
3999   for ac_exec_ext in '' $ac_executable_extensions; do
4000     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4001     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4002     # Check for GNU ac_path_GREP and select it if it is found.
4003   # Check for GNU $ac_path_GREP
4004 case `"$ac_path_GREP" --version 2>&1` in
4005 *GNU*)
4006   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4007 *)
4008   ac_count=0
4009   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4010   while :
4011   do
4012     cat "conftest.in" "conftest.in" >"conftest.tmp"
4013     mv "conftest.tmp" "conftest.in"
4014     cp "conftest.in" "conftest.nl"
4015     echo 'GREP' >> "conftest.nl"
4016     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4017     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4018     ac_count=`expr $ac_count + 1`
4019     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4020       # Best one so far, save it but keep looking for a better one
4021       ac_cv_path_GREP="$ac_path_GREP"
4022       ac_path_GREP_max=$ac_count
4023     fi
4024     # 10*(2^10) chars as input seems more than enough
4025     test $ac_count -gt 10 && break
4026   done
4027   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4028 esac
4029
4030
4031     $ac_path_GREP_found && break 3
4032   done
4033 done
4034
4035 done
4036 IFS=$as_save_IFS
4037
4038
4039 fi
4040
4041 GREP="$ac_cv_path_GREP"
4042 if test -z "$GREP"; then
4043   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4044 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4045    { (exit 1); exit 1; }; }
4046 fi
4047
4048 else
4049   ac_cv_path_GREP=$GREP
4050 fi
4051
4052
4053 fi
4054 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4055 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4056  GREP="$ac_cv_path_GREP"
4057
4058
4059 { echo "$as_me:$LINENO: checking for egrep" >&5
4060 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_EGREP+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4065    then ac_cv_path_EGREP="$GREP -E"
4066    else
4067      # Extract the first word of "egrep" to use in msg output
4068 if test -z "$EGREP"; then
4069 set dummy egrep; ac_prog_name=$2
4070 if test "${ac_cv_path_EGREP+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   ac_path_EGREP_found=false
4074 # Loop through the user's path and test for each of PROGNAME-LIST
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080   for ac_prog in egrep; do
4081   for ac_exec_ext in '' $ac_executable_extensions; do
4082     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4083     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4084     # Check for GNU ac_path_EGREP and select it if it is found.
4085   # Check for GNU $ac_path_EGREP
4086 case `"$ac_path_EGREP" --version 2>&1` in
4087 *GNU*)
4088   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4089 *)
4090   ac_count=0
4091   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4092   while :
4093   do
4094     cat "conftest.in" "conftest.in" >"conftest.tmp"
4095     mv "conftest.tmp" "conftest.in"
4096     cp "conftest.in" "conftest.nl"
4097     echo 'EGREP' >> "conftest.nl"
4098     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100     ac_count=`expr $ac_count + 1`
4101     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4102       # Best one so far, save it but keep looking for a better one
4103       ac_cv_path_EGREP="$ac_path_EGREP"
4104       ac_path_EGREP_max=$ac_count
4105     fi
4106     # 10*(2^10) chars as input seems more than enough
4107     test $ac_count -gt 10 && break
4108   done
4109   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 esac
4111
4112
4113     $ac_path_EGREP_found && break 3
4114   done
4115 done
4116
4117 done
4118 IFS=$as_save_IFS
4119
4120
4121 fi
4122
4123 EGREP="$ac_cv_path_EGREP"
4124 if test -z "$EGREP"; then
4125   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4126 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4127    { (exit 1); exit 1; }; }
4128 fi
4129
4130 else
4131   ac_cv_path_EGREP=$EGREP
4132 fi
4133
4134
4135    fi
4136 fi
4137 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4138 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4139  EGREP="$ac_cv_path_EGREP"
4140
4141
4142 if test $ac_cv_c_compiler_gnu = yes; then
4143     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4144 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4145 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148     ac_pattern="Autoconf.*'x'"
4149   cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <sgtty.h>
4156 Autoconf TIOCGETP
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4160   ac_cv_prog_gcc_traditional=yes
4161 else
4162   ac_cv_prog_gcc_traditional=no
4163 fi
4164 rm -f conftest*
4165
4166
4167   if test $ac_cv_prog_gcc_traditional = no; then
4168     cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174 #include <termio.h>
4175 Autoconf TCGETA
4176 _ACEOF
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4179   ac_cv_prog_gcc_traditional=yes
4180 fi
4181 rm -f conftest*
4182
4183   fi
4184 fi
4185 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4186 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4187   if test $ac_cv_prog_gcc_traditional = yes; then
4188     CC="$CC -traditional"
4189   fi
4190 fi
4191
4192 BASECC=`basename $CC`
4193 have_gcc=no
4194 if test "x$BASECC" = xgcc; then
4195    cat >>confdefs.h <<\_ACEOF
4196 #define HAVE_GCC 1
4197 _ACEOF
4198
4199    have_gcc=yes
4200 fi
4201 # Extract the first word of "$CXX", so it can be a program name with args.
4202 set dummy $CXX; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_path_CXX+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   case $CXX in
4209   [\\/]* | ?:[\\/]*)
4210   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4211   ;;
4212   *)
4213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4229   ;;
4230 esac
4231 fi
4232 CXX=$ac_cv_path_CXX
4233 if test -n "$CXX"; then
4234   { echo "$as_me:$LINENO: result: $CXX" >&5
4235 echo "${ECHO_T}$CXX" >&6; }
4236 else
4237   { echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6; }
4239 fi
4240
4241
4242 if test ! -e $CXX; then
4243    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4244 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4245    { (exit 1); exit 1; }; }
4246 fi
4247
4248 # Find a good install program.  We prefer a C program (faster),
4249 # so one script is as good as another.  But avoid the broken or
4250 # incompatible versions:
4251 # SysV /etc/install, /usr/sbin/install
4252 # SunOS /usr/etc/install
4253 # IRIX /sbin/install
4254 # AIX /bin/install
4255 # AmigaOS /C/install, which installs bootblocks on floppy discs
4256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4259 # OS/2's system install, which has a completely different semantic
4260 # ./install, which can be erroneously created by make from ./install.sh.
4261 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4262 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4263 if test -z "$INSTALL"; then
4264 if test "${ac_cv_path_install+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   # Account for people who put trailing slashes in PATH elements.
4273 case $as_dir/ in
4274   ./ | .// | /cC/* | \
4275   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4276   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4277   /usr/ucb/* ) ;;
4278   *)
4279     # OSF1 and SCO ODT 3.0 have their own names for install.
4280     # Don't use installbsd from OSF since it installs stuff as root
4281     # by default.
4282     for ac_prog in ginstall scoinst install; do
4283       for ac_exec_ext in '' $ac_executable_extensions; do
4284         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4285           if test $ac_prog = install &&
4286             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287             # AIX install.  It has an incompatible calling convention.
4288             :
4289           elif test $ac_prog = install &&
4290             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4291             # program-specific install script used by HP pwplus--don't use.
4292             :
4293           else
4294             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4295             break 3
4296           fi
4297         fi
4298       done
4299     done
4300     ;;
4301 esac
4302 done
4303 IFS=$as_save_IFS
4304
4305
4306 fi
4307   if test "${ac_cv_path_install+set}" = set; then
4308     INSTALL=$ac_cv_path_install
4309   else
4310     # As a last resort, use the slow shell script.  Don't cache a
4311     # value for INSTALL within a source directory, because that will
4312     # break other packages using the cache if that directory is
4313     # removed, or if the value is a relative name.
4314     INSTALL=$ac_install_sh
4315   fi
4316 fi
4317 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4318 echo "${ECHO_T}$INSTALL" >&6; }
4319
4320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4321 # It thinks the first close brace ends the variable substitution.
4322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4323
4324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4325
4326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4327
4328 # Extract the first word of "mv", so it can be a program name with args.
4329 set dummy mv; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_path_MV+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   case $MV in
4336   [\\/]* | ?:[\\/]*)
4337   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4338   ;;
4339   *)
4340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_exec_ext in '' $ac_executable_extensions; do
4346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4356   ;;
4357 esac
4358 fi
4359 MV=$ac_cv_path_MV
4360 if test -n "$MV"; then
4361   { echo "$as_me:$LINENO: result: $MV" >&5
4362 echo "${ECHO_T}$MV" >&6; }
4363 else
4364   { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4366 fi
4367
4368
4369 # Extract the first word of "rm", so it can be a program name with args.
4370 set dummy rm; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_path_REMOVE+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   case $REMOVE in
4377   [\\/]* | ?:[\\/]*)
4378   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4379   ;;
4380   *)
4381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4383 do
4384   IFS=$as_save_IFS
4385   test -z "$as_dir" && as_dir=.
4386   for ac_exec_ext in '' $ac_executable_extensions; do
4387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390     break 2
4391   fi
4392 done
4393 done
4394 IFS=$as_save_IFS
4395
4396   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4397   ;;
4398 esac
4399 fi
4400 REMOVE=$ac_cv_path_REMOVE
4401 if test -n "$REMOVE"; then
4402   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4403 echo "${ECHO_T}$REMOVE" >&6; }
4404 else
4405   { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4408
4409
4410 # Extract the first word of "cp", so it can be a program name with args.
4411 set dummy cp; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_path_CP+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   case $CP in
4418   [\\/]* | ?:[\\/]*)
4419   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4420   ;;
4421   *)
4422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427   for ac_exec_ext in '' $ac_executable_extensions; do
4428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4438   ;;
4439 esac
4440 fi
4441 CP=$ac_cv_path_CP
4442 if test -n "$CP"; then
4443   { echo "$as_me:$LINENO: result: $CP" >&5
4444 echo "${ECHO_T}$CP" >&6; }
4445 else
4446   { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4448 fi
4449
4450
4451 # Extract the first word of "sed", so it can be a program name with args.
4452 set dummy sed; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_path_SED+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   case $SED in
4459   [\\/]* | ?:[\\/]*)
4460   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4461   ;;
4462   *)
4463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468   for ac_exec_ext in '' $ac_executable_extensions; do
4469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472     break 2
4473   fi
4474 done
4475 done
4476 IFS=$as_save_IFS
4477
4478   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4479   ;;
4480 esac
4481 fi
4482 SED=$ac_cv_path_SED
4483 if test -n "$SED"; then
4484   { echo "$as_me:$LINENO: result: $SED" >&5
4485 echo "${ECHO_T}$SED" >&6; }
4486 else
4487   { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4489 fi
4490
4491
4492 # Extract the first word of "echo", so it can be a program name with args.
4493 set dummy echo; ac_word=$2
4494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4496 if test "${ac_cv_path_ECHO+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   case $ECHO in
4500   [\\/]* | ?:[\\/]*)
4501   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4502   ;;
4503   *)
4504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509   for ac_exec_ext in '' $ac_executable_extensions; do
4510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4520   ;;
4521 esac
4522 fi
4523 ECHO=$ac_cv_path_ECHO
4524 if test -n "$ECHO"; then
4525   { echo "$as_me:$LINENO: result: $ECHO" >&5
4526 echo "${ECHO_T}$ECHO" >&6; }
4527 else
4528   { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4530 fi
4531
4532
4533 # Extract the first word of "cmp", so it can be a program name with args.
4534 set dummy cmp; ac_word=$2
4535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_CMP+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   case $CMP in
4541   [\\/]* | ?:[\\/]*)
4542   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4543   ;;
4544   *)
4545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_exec_ext in '' $ac_executable_extensions; do
4551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554     break 2
4555   fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561   ;;
4562 esac
4563 fi
4564 CMP=$ac_cv_path_CMP
4565 if test -n "$CMP"; then
4566   { echo "$as_me:$LINENO: result: $CMP" >&5
4567 echo "${ECHO_T}$CMP" >&6; }
4568 else
4569   { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4571 fi
4572
4573
4574 # Extract the first word of "tbl", so it can be a program name with args.
4575 set dummy tbl; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_TBL+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   case $TBL in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4602   ;;
4603 esac
4604 fi
4605 TBL=$ac_cv_path_TBL
4606 if test -n "$TBL"; then
4607   { echo "$as_me:$LINENO: result: $TBL" >&5
4608 echo "${ECHO_T}$TBL" >&6; }
4609 else
4610   { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 fi
4613
4614
4615 # Extract the first word of "ar", so it can be a program name with args.
4616 set dummy ar; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_AR+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   case $AR in
4623   [\\/]* | ?:[\\/]*)
4624   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4625   ;;
4626   *)
4627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4643   ;;
4644 esac
4645 fi
4646 AR=$ac_cv_path_AR
4647 if test -n "$AR"; then
4648   { echo "$as_me:$LINENO: result: $AR" >&5
4649 echo "${ECHO_T}$AR" >&6; }
4650 else
4651   { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4654
4655
4656 # Extract the first word of "openssl", so it can be a program name with args.
4657 set dummy openssl; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_OPENSSL+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   case $OPENSSL in
4664   [\\/]* | ?:[\\/]*)
4665   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4666   ;;
4667   *)
4668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4684   ;;
4685 esac
4686 fi
4687 OPENSSL=$ac_cv_path_OPENSSL
4688 if test -n "$OPENSSL"; then
4689   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4690 echo "${ECHO_T}$OPENSSL" >&6; }
4691 else
4692   { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 fi
4695
4696
4697 # Extract the first word of "mtx", so it can be a program name with args.
4698 set dummy mtx; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_MTX+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $MTX in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4725   ;;
4726 esac
4727 fi
4728 MTX=$ac_cv_path_MTX
4729 if test -n "$MTX"; then
4730   { echo "$as_me:$LINENO: result: $MTX" >&5
4731 echo "${ECHO_T}$MTX" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736
4737
4738 # Extract the first word of "dd", so it can be a program name with args.
4739 set dummy dd; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_DD+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $DD in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4766   ;;
4767 esac
4768 fi
4769 DD=$ac_cv_path_DD
4770 if test -n "$DD"; then
4771   { echo "$as_me:$LINENO: result: $DD" >&5
4772 echo "${ECHO_T}$DD" >&6; }
4773 else
4774   { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776 fi
4777
4778
4779 # Extract the first word of "mkisofs", so it can be a program name with args.
4780 set dummy mkisofs; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_path_MKISOFS+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   case $MKISOFS in
4787   [\\/]* | ?:[\\/]*)
4788   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4789   ;;
4790   *)
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796   for ac_exec_ext in '' $ac_executable_extensions; do
4797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4807   ;;
4808 esac
4809 fi
4810 MKISOFS=$ac_cv_path_MKISOFS
4811 if test -n "$MKISOFS"; then
4812   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4813 echo "${ECHO_T}$MKISOFS" >&6; }
4814 else
4815   { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4817 fi
4818
4819
4820 # Extract the first word of "python", so it can be a program name with args.
4821 set dummy python; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_path_PYTHON+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   case $PYTHON in
4828   [\\/]* | ?:[\\/]*)
4829   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4830   ;;
4831   *)
4832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4848   ;;
4849 esac
4850 fi
4851 PYTHON=$ac_cv_path_PYTHON
4852 if test -n "$PYTHON"; then
4853   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4854 echo "${ECHO_T}$PYTHON" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860
4861 # Extract the first word of "growisofs", so it can be a program name with args.
4862 set dummy growisofs; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   case $GROWISOFS in
4869   [\\/]* | ?:[\\/]*)
4870   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4871   ;;
4872   *)
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4889   ;;
4890 esac
4891 fi
4892 GROWISOFS=$ac_cv_path_GROWISOFS
4893 if test -n "$GROWISOFS"; then
4894   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4895 echo "${ECHO_T}$GROWISOFS" >&6; }
4896 else
4897   { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4903 set dummy dvd+rw-mediainfo; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   case $DVDRWMEDIAINFO in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4930   ;;
4931 esac
4932 fi
4933 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4934 if test -n "$DVDRWMEDIAINFO"; then
4935   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4936 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4944 set dummy dvd+rw-format; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   case $DVDRWFORMAT in
4951   [\\/]* | ?:[\\/]*)
4952   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4953   ;;
4954   *)
4955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960   for ac_exec_ext in '' $ac_executable_extensions; do
4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4971   ;;
4972 esac
4973 fi
4974 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4975 if test -n "$DVDRWFORMAT"; then
4976   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4977 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4978 else
4979   { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4981 fi
4982
4983
4984 # Extract the first word of "pkg-config", so it can be a program name with args.
4985 set dummy pkg-config; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   case $PKGCONFIG in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001   for ac_exec_ext in '' $ac_executable_extensions; do
5002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5012   ;;
5013 esac
5014 fi
5015 PKGCONFIG=$ac_cv_path_PKGCONFIG
5016 if test -n "$PKGCONFIG"; then
5017   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5018 echo "${ECHO_T}$PKGCONFIG" >&6; }
5019 else
5020   { echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6; }
5022 fi
5023
5024
5025 # Extract the first word of "qmake", so it can be a program name with args.
5026 set dummy qmake; ac_word=$2
5027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5029 if test "${ac_cv_path_QMAKE+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   case $QMAKE in
5033   [\\/]* | ?:[\\/]*)
5034   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5035   ;;
5036   *)
5037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042   for ac_exec_ext in '' $ac_executable_extensions; do
5043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5053   ;;
5054 esac
5055 fi
5056 QMAKE=$ac_cv_path_QMAKE
5057 if test -n "$QMAKE"; then
5058   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5059 echo "${ECHO_T}$QMAKE" >&6; }
5060 else
5061   { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5064
5065
5066 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5067 set dummy qmake-qt4; ac_word=$2
5068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5070 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073   case $QMAKEQT4 in
5074   [\\/]* | ?:[\\/]*)
5075   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5076   ;;
5077   *)
5078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5094   ;;
5095 esac
5096 fi
5097 QMAKEQT4=$ac_cv_path_QMAKEQT4
5098 if test -n "$QMAKEQT4"; then
5099   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5100 echo "${ECHO_T}$QMAKEQT4" >&6; }
5101 else
5102   { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5104 fi
5105
5106
5107 # Extract the first word of "gmake", so it can be a program name with args.
5108 set dummy gmake; ac_word=$2
5109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5111 if test "${ac_cv_path_GMAKE+set}" = set; then
5112   echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114   case $GMAKE in
5115   [\\/]* | ?:[\\/]*)
5116   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5117   ;;
5118   *)
5119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122   IFS=$as_save_IFS
5123   test -z "$as_dir" && as_dir=.
5124   for ac_exec_ext in '' $ac_executable_extensions; do
5125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128     break 2
5129   fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5135   ;;
5136 esac
5137 fi
5138 GMAKE=$ac_cv_path_GMAKE
5139 if test -n "$GMAKE"; then
5140   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5141 echo "${ECHO_T}$GMAKE" >&6; }
5142 else
5143   { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5145 fi
5146
5147
5148
5149 if test "x$WXCONFIG" = x; then
5150    WXCONFIG=wx-config
5151 fi
5152 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5153 set dummy ${WXCONFIG}; ac_word=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   case $WXCONFIG in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for ac_exec_ext in '' $ac_executable_extensions; do
5170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5180   ;;
5181 esac
5182 fi
5183 WXCONFIG=$ac_cv_path_WXCONFIG
5184 if test -n "$WXCONFIG"; then
5185   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5186 echo "${ECHO_T}$WXCONFIG" >&6; }
5187 else
5188   { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5190 fi
5191
5192
5193
5194 # Extract the first word of "cdrecord", so it can be a program name with args.
5195 set dummy cdrecord; ac_word=$2
5196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5198 if test "${ac_cv_path_CDRECORD+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   case $CDRECORD in
5202   [\\/]* | ?:[\\/]*)
5203   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5204   ;;
5205   *)
5206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211   for ac_exec_ext in '' $ac_executable_extensions; do
5212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5222   ;;
5223 esac
5224 fi
5225 CDRECORD=$ac_cv_path_CDRECORD
5226 if test -n "$CDRECORD"; then
5227   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5228 echo "${ECHO_T}$CDRECORD" >&6; }
5229 else
5230   { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5232 fi
5233
5234
5235 # Extract the first word of "pidof", so it can be a program name with args.
5236 set dummy pidof; ac_word=$2
5237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5239 if test "${ac_cv_path_PIDOF+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   case $PIDOF in
5243   [\\/]* | ?:[\\/]*)
5244   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5245   ;;
5246   *)
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252   for ac_exec_ext in '' $ac_executable_extensions; do
5253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259 done
5260 IFS=$as_save_IFS
5261
5262   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5263   ;;
5264 esac
5265 fi
5266 PIDOF=$ac_cv_path_PIDOF
5267 if test -n "$PIDOF"; then
5268   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5269 echo "${ECHO_T}$PIDOF" >&6; }
5270 else
5271   { echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6; }
5273 fi
5274
5275
5276 for ac_prog in gawk mawk nawk awk
5277 do
5278   # Extract the first word of "$ac_prog", so it can be a program name with args.
5279 set dummy $ac_prog; ac_word=$2
5280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5282 if test "${ac_cv_prog_AWK+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   if test -n "$AWK"; then
5286   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293   for ac_exec_ext in '' $ac_executable_extensions; do
5294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295     ac_cv_prog_AWK="$ac_prog"
5296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 AWK=$ac_cv_prog_AWK
5306 if test -n "$AWK"; then
5307   { echo "$as_me:$LINENO: result: $AWK" >&5
5308 echo "${ECHO_T}$AWK" >&6; }
5309 else
5310   { echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6; }
5312 fi
5313
5314
5315   test -n "$AWK" && break
5316 done
5317
5318 # Some AWK programs fail, so test it and warn the user
5319 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5320       { if ((prog == $2) || (("(" prog ")") == $2) ||
5321       (("" prog "") == $2) ||
5322       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5323 else
5324   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325    The regex engine of $AWK is too broken to be used you
5326    might want to install GNU AWK.
5327    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5328 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5329    The regex engine of $AWK is too broken to be used you
5330    might want to install GNU AWK.
5331    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5332    { (exit 1); exit 1; }; }
5333 fi
5334 THE_AWK=$AWK
5335 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5336 set dummy $THE_AWK; ac_word=$2
5337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5339 if test "${ac_cv_path_AWK+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   case $AWK in
5343   [\\/]* | ?:[\\/]*)
5344   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5345   ;;
5346   *)
5347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350   IFS=$as_save_IFS
5351   test -z "$as_dir" && as_dir=.
5352   for ac_exec_ext in '' $ac_executable_extensions; do
5353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356     break 2
5357   fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5363   ;;
5364 esac
5365 fi
5366 AWK=$ac_cv_path_AWK
5367 if test -n "$AWK"; then
5368   { echo "$as_me:$LINENO: result: $AWK" >&5
5369 echo "${ECHO_T}$AWK" >&6; }
5370 else
5371   { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5373 fi
5374
5375
5376
5377
5378 test -n "$ARFLAG" || ARFLAGS="cr"
5379
5380
5381 MAKE_SHELL=/bin/sh
5382
5383
5384
5385
5386
5387
5388
5389 # Check whether --enable-libtool was given.
5390 if test "${enable_libtool+set}" = set; then
5391   enableval=$enable_libtool;
5392        if test x$enableval = xno; then
5393           use_libtool=no
5394        fi
5395
5396
5397 fi
5398
5399 case `pwd` in
5400   *\ * | *\     *)
5401     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5402 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5403 esac
5404
5405
5406
5407 macro_version='2.2.6'
5408 macro_revision='1.3012'
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 ltmain="$ac_aux_dir/ltmain.sh"
5423
5424 # Make sure we can run config.sub.
5425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5426   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5427 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5428    { (exit 1); exit 1; }; }
5429
5430 { echo "$as_me:$LINENO: checking build system type" >&5
5431 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5432 if test "${ac_cv_build+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   ac_build_alias=$build_alias
5436 test "x$ac_build_alias" = x &&
5437   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5438 test "x$ac_build_alias" = x &&
5439   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5440 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5441    { (exit 1); exit 1; }; }
5442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5443   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5444 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5445    { (exit 1); exit 1; }; }
5446
5447 fi
5448 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5449 echo "${ECHO_T}$ac_cv_build" >&6; }
5450 case $ac_cv_build in
5451 *-*-*) ;;
5452 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5453 echo "$as_me: error: invalid value of canonical build" >&2;}
5454    { (exit 1); exit 1; }; };;
5455 esac
5456 build=$ac_cv_build
5457 ac_save_IFS=$IFS; IFS='-'
5458 set x $ac_cv_build
5459 shift
5460 build_cpu=$1
5461 build_vendor=$2
5462 shift; shift
5463 # Remember, the first character of IFS is used to create $*,
5464 # except with old shells:
5465 build_os=$*
5466 IFS=$ac_save_IFS
5467 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5468
5469
5470 { echo "$as_me:$LINENO: checking host system type" >&5
5471 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5472 if test "${ac_cv_host+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   if test "x$host_alias" = x; then
5476   ac_cv_host=$ac_cv_build
5477 else
5478   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5479     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5480 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5481    { (exit 1); exit 1; }; }
5482 fi
5483
5484 fi
5485 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5486 echo "${ECHO_T}$ac_cv_host" >&6; }
5487 case $ac_cv_host in
5488 *-*-*) ;;
5489 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5490 echo "$as_me: error: invalid value of canonical host" >&2;}
5491    { (exit 1); exit 1; }; };;
5492 esac
5493 host=$ac_cv_host
5494 ac_save_IFS=$IFS; IFS='-'
5495 set x $ac_cv_host
5496 shift
5497 host_cpu=$1
5498 host_vendor=$2
5499 shift; shift
5500 # Remember, the first character of IFS is used to create $*,
5501 # except with old shells:
5502 host_os=$*
5503 IFS=$ac_save_IFS
5504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5505
5506
5507 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5508 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5509 if test "${ac_cv_path_SED+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5513      for ac_i in 1 2 3 4 5 6 7; do
5514        ac_script="$ac_script$as_nl$ac_script"
5515      done
5516      echo "$ac_script" | sed 99q >conftest.sed
5517      $as_unset ac_script || ac_script=
5518      # Extract the first word of "sed gsed" to use in msg output
5519 if test -z "$SED"; then
5520 set dummy sed gsed; ac_prog_name=$2
5521 if test "${ac_cv_path_SED+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   ac_path_SED_found=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529   IFS=$as_save_IFS
5530   test -z "$as_dir" && as_dir=.
5531   for ac_prog in sed gsed; do
5532   for ac_exec_ext in '' $ac_executable_extensions; do
5533     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5534     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5535     # Check for GNU ac_path_SED and select it if it is found.
5536   # Check for GNU $ac_path_SED
5537 case `"$ac_path_SED" --version 2>&1` in
5538 *GNU*)
5539   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5540 *)
5541   ac_count=0
5542   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5543   while :
5544   do
5545     cat "conftest.in" "conftest.in" >"conftest.tmp"
5546     mv "conftest.tmp" "conftest.in"
5547     cp "conftest.in" "conftest.nl"
5548     echo '' >> "conftest.nl"
5549     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5550     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5551     ac_count=`expr $ac_count + 1`
5552     if test $ac_count -gt ${ac_path_SED_max-0}; then
5553       # Best one so far, save it but keep looking for a better one
5554       ac_cv_path_SED="$ac_path_SED"
5555       ac_path_SED_max=$ac_count
5556     fi
5557     # 10*(2^10) chars as input seems more than enough
5558     test $ac_count -gt 10 && break
5559   done
5560   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 esac
5562
5563
5564     $ac_path_SED_found && break 3
5565   done
5566 done
5567
5568 done
5569 IFS=$as_save_IFS
5570
5571
5572 fi
5573
5574 SED="$ac_cv_path_SED"
5575 if test -z "$SED"; then
5576   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5577 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5578    { (exit 1); exit 1; }; }
5579 fi
5580
5581 else
5582   ac_cv_path_SED=$SED
5583 fi
5584
5585 fi
5586 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5587 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5588  SED="$ac_cv_path_SED"
5589   rm -f conftest.sed
5590
5591 test -z "$SED" && SED=sed
5592 Xsed="$SED -e 1s/^X//"
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 { echo "$as_me:$LINENO: checking for fgrep" >&5
5605 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5606 if test "${ac_cv_path_FGREP+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5610    then ac_cv_path_FGREP="$GREP -F"
5611    else
5612      # Extract the first word of "fgrep" to use in msg output
5613 if test -z "$FGREP"; then
5614 set dummy fgrep; ac_prog_name=$2
5615 if test "${ac_cv_path_FGREP+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   ac_path_FGREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625   for ac_prog in fgrep; do
5626   for ac_exec_ext in '' $ac_executable_extensions; do
5627     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5628     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5629     # Check for GNU ac_path_FGREP and select it if it is found.
5630   # Check for GNU $ac_path_FGREP
5631 case `"$ac_path_FGREP" --version 2>&1` in
5632 *GNU*)
5633   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5634 *)
5635   ac_count=0
5636   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5637   while :
5638   do
5639     cat "conftest.in" "conftest.in" >"conftest.tmp"
5640     mv "conftest.tmp" "conftest.in"
5641     cp "conftest.in" "conftest.nl"
5642     echo 'FGREP' >> "conftest.nl"
5643     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645     ac_count=`expr $ac_count + 1`
5646     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5647       # Best one so far, save it but keep looking for a better one
5648       ac_cv_path_FGREP="$ac_path_FGREP"
5649       ac_path_FGREP_max=$ac_count
5650     fi
5651     # 10*(2^10) chars as input seems more than enough
5652     test $ac_count -gt 10 && break
5653   done
5654   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 esac
5656
5657
5658     $ac_path_FGREP_found && break 3
5659   done
5660 done
5661
5662 done
5663 IFS=$as_save_IFS
5664
5665
5666 fi
5667
5668 FGREP="$ac_cv_path_FGREP"
5669 if test -z "$FGREP"; then
5670   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5672    { (exit 1); exit 1; }; }
5673 fi
5674
5675 else
5676   ac_cv_path_FGREP=$FGREP
5677 fi
5678
5679
5680    fi
5681 fi
5682 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5683 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5684  FGREP="$ac_cv_path_FGREP"
5685
5686
5687 test -z "$GREP" && GREP=grep
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 # Check whether --with-gnu-ld was given.
5708 if test "${with_gnu_ld+set}" = set; then
5709   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710 else
5711   with_gnu_ld=no
5712 fi
5713
5714 ac_prog=ld
5715 if test "$GCC" = yes; then
5716   # Check if gcc -print-prog-name=ld gives a path.
5717   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5718 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5719   case $host in
5720   *-*-mingw*)
5721     # gcc leaves a trailing carriage return which upsets mingw
5722     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723   *)
5724     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5725   esac
5726   case $ac_prog in
5727     # Accept absolute paths.
5728     [\\/]* | ?:[\\/]*)
5729       re_direlt='/[^/][^/]*/\.\./'
5730       # Canonicalize the pathname of ld
5731       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5732       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5733         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734       done
5735       test -z "$LD" && LD="$ac_prog"
5736       ;;
5737   "")
5738     # If it fails, then pretend we aren't using GCC.
5739     ac_prog=ld
5740     ;;
5741   *)
5742     # If it is relative, then search for the first ld in PATH.
5743     with_gnu_ld=unknown
5744     ;;
5745   esac
5746 elif test "$with_gnu_ld" = yes; then
5747   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5748 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5749 else
5750   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5751 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5752 fi
5753 if test "${lt_cv_path_LD+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   if test -z "$LD"; then
5757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758   for ac_dir in $PATH; do
5759     IFS="$lt_save_ifs"
5760     test -z "$ac_dir" && ac_dir=.
5761     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5762       lt_cv_path_LD="$ac_dir/$ac_prog"
5763       # Check to see if the program is GNU ld.  I'd rather use --version,
5764       # but apparently some variants of GNU ld only accept -v.
5765       # Break only if it was the GNU/non-GNU ld that we prefer.
5766       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5767       *GNU* | *'with BFD'*)
5768         test "$with_gnu_ld" != no && break
5769         ;;
5770       *)
5771         test "$with_gnu_ld" != yes && break
5772         ;;
5773       esac
5774     fi
5775   done
5776   IFS="$lt_save_ifs"
5777 else
5778   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5779 fi
5780 fi
5781
5782 LD="$lt_cv_path_LD"
5783 if test -n "$LD"; then
5784   { echo "$as_me:$LINENO: result: $LD" >&5
5785 echo "${ECHO_T}$LD" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5791 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5792    { (exit 1); exit 1; }; }
5793 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5794 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5795 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5799 case `$LD -v 2>&1 </dev/null` in
5800 *GNU* | *'with BFD'*)
5801   lt_cv_prog_gnu_ld=yes
5802   ;;
5803 *)
5804   lt_cv_prog_gnu_ld=no
5805   ;;
5806 esac
5807 fi
5808 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5809 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5810 with_gnu_ld=$lt_cv_prog_gnu_ld
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5821 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5822 if test "${lt_cv_path_NM+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$NM"; then
5826   # Let the user override the test.
5827   lt_cv_path_NM="$NM"
5828 else
5829   lt_nm_to_check="${ac_tool_prefix}nm"
5830   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5831     lt_nm_to_check="$lt_nm_to_check nm"
5832   fi
5833   for lt_tmp_nm in $lt_nm_to_check; do
5834     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5835     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5836       IFS="$lt_save_ifs"
5837       test -z "$ac_dir" && ac_dir=.
5838       tmp_nm="$ac_dir/$lt_tmp_nm"
5839       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5840         # Check to see if the nm accepts a BSD-compat flag.
5841         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5842         #   nm: unknown option "B" ignored
5843         # Tru64's nm complains that /dev/null is an invalid object file
5844         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5845         */dev/null* | *'Invalid file or object type'*)
5846           lt_cv_path_NM="$tmp_nm -B"
5847           break
5848           ;;
5849         *)
5850           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5851           */dev/null*)
5852             lt_cv_path_NM="$tmp_nm -p"
5853             break
5854             ;;
5855           *)
5856             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5857             continue # so that we can try to find one that supports BSD flags
5858             ;;
5859           esac
5860           ;;
5861         esac
5862       fi
5863     done
5864     IFS="$lt_save_ifs"
5865   done
5866   : ${lt_cv_path_NM=no}
5867 fi
5868 fi
5869 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5870 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5871 if test "$lt_cv_path_NM" != "no"; then
5872   NM="$lt_cv_path_NM"
5873 else
5874   # Didn't find any BSD compatible name lister, look for dumpbin.
5875   if test -n "$ac_tool_prefix"; then
5876   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5877   do
5878     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5882 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   if test -n "$DUMPBIN"; then
5886   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 DUMPBIN=$ac_cv_prog_DUMPBIN
5906 if test -n "$DUMPBIN"; then
5907   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5908 echo "${ECHO_T}$DUMPBIN" >&6; }
5909 else
5910   { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5913
5914
5915     test -n "$DUMPBIN" && break
5916   done
5917 fi
5918 if test -z "$DUMPBIN"; then
5919   ac_ct_DUMPBIN=$DUMPBIN
5920   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5921 do
5922   # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   if test -n "$ac_ct_DUMPBIN"; then
5930   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947 fi
5948 fi
5949 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5950 if test -n "$ac_ct_DUMPBIN"; then
5951   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5952 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5953 else
5954   { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5956 fi
5957
5958
5959   test -n "$ac_ct_DUMPBIN" && break
5960 done
5961
5962   if test "x$ac_ct_DUMPBIN" = x; then
5963     DUMPBIN=":"
5964   else
5965     case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet.  If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&5
5970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5971 whose name does not start with the host triplet.  If you think this
5972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5973 ac_tool_warned=yes ;;
5974 esac
5975     DUMPBIN=$ac_ct_DUMPBIN
5976   fi
5977 fi
5978
5979
5980   if test "$DUMPBIN" != ":"; then
5981     NM="$DUMPBIN"
5982   fi
5983 fi
5984 test -z "$NM" && NM=nm
5985
5986
5987
5988
5989
5990
5991 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5992 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5993 if test "${lt_cv_nm_interface+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   lt_cv_nm_interface="BSD nm"
5997   echo "int some_variable = 0;" > conftest.$ac_ext
5998   (eval echo "\"\$as_me:5998: $ac_compile\"" >&5)
5999   (eval "$ac_compile" 2>conftest.err)
6000   cat conftest.err >&5
6001   (eval echo "\"\$as_me:6001: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6002   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6003   cat conftest.err >&5
6004   (eval echo "\"\$as_me:6004: output\"" >&5)
6005   cat conftest.out >&5
6006   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6007     lt_cv_nm_interface="MS dumpbin"
6008   fi
6009   rm -f conftest*
6010 fi
6011 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6012 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6013
6014 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6015 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6016 LN_S=$as_ln_s
6017 if test "$LN_S" = "ln -s"; then
6018   { echo "$as_me:$LINENO: result: yes" >&5
6019 echo "${ECHO_T}yes" >&6; }
6020 else
6021   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6022 echo "${ECHO_T}no, using $LN_S" >&6; }
6023 fi
6024
6025 # find the maximum length of command line arguments
6026 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6027 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6028 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031     i=0
6032   teststring="ABCD"
6033
6034   case $build_os in
6035   msdosdjgpp*)
6036     # On DJGPP, this test can blow up pretty badly due to problems in libc
6037     # (any single argument exceeding 2000 bytes causes a buffer overrun
6038     # during glob expansion).  Even if it were fixed, the result of this
6039     # check would be larger than it should be.
6040     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6041     ;;
6042
6043   gnu*)
6044     # Under GNU Hurd, this test is not required because there is
6045     # no limit to the length of command line arguments.
6046     # Libtool will interpret -1 as no limit whatsoever
6047     lt_cv_sys_max_cmd_len=-1;
6048     ;;
6049
6050   cygwin* | mingw* | cegcc*)
6051     # On Win9x/ME, this test blows up -- it succeeds, but takes
6052     # about 5 minutes as the teststring grows exponentially.
6053     # Worse, since 9x/ME are not pre-emptively multitasking,
6054     # you end up with a "frozen" computer, even though with patience
6055     # the test eventually succeeds (with a max line length of 256k).
6056     # Instead, let's just punt: use the minimum linelength reported by
6057     # all of the supported platforms: 8192 (on NT/2K/XP).
6058     lt_cv_sys_max_cmd_len=8192;
6059     ;;
6060
6061   amigaos*)
6062     # On AmigaOS with pdksh, this test takes hours, literally.
6063     # So we just punt and use a minimum line length of 8192.
6064     lt_cv_sys_max_cmd_len=8192;
6065     ;;
6066
6067   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6068     # This has been around since 386BSD, at least.  Likely further.
6069     if test -x /sbin/sysctl; then
6070       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6071     elif test -x /usr/sbin/sysctl; then
6072       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6073     else
6074       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6075     fi
6076     # And add a safety zone
6077     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079     ;;
6080
6081   interix*)
6082     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6083     lt_cv_sys_max_cmd_len=196608
6084     ;;
6085
6086   osf*)
6087     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6088     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6089     # nice to cause kernel panics so lets avoid the loop below.
6090     # First set a reasonable default.
6091     lt_cv_sys_max_cmd_len=16384
6092     #
6093     if test -x /sbin/sysconfig; then
6094       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6095         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6096       esac
6097     fi
6098     ;;
6099   sco3.2v5*)
6100     lt_cv_sys_max_cmd_len=102400
6101     ;;
6102   sysv5* | sco5v6* | sysv4.2uw2*)
6103     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6104     if test -n "$kargmax"; then
6105       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6106     else
6107       lt_cv_sys_max_cmd_len=32768
6108     fi
6109     ;;
6110   *)
6111     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6112     if test -n "$lt_cv_sys_max_cmd_len"; then
6113       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6114       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6115     else
6116       # Make teststring a little bigger before we do anything with it.
6117       # a 1K string should be a reasonable start.
6118       for i in 1 2 3 4 5 6 7 8 ; do
6119         teststring=$teststring$teststring
6120       done
6121       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6122       # If test is not a shell built-in, we'll probably end up computing a
6123       # maximum length that is only half of the actual maximum length, but
6124       # we can't tell.
6125       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6126                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6127               test $i != 17 # 1/2 MB should be enough
6128       do
6129         i=`expr $i + 1`
6130         teststring=$teststring$teststring
6131       done
6132       # Only check the string length outside the loop.
6133       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6134       teststring=
6135       # Add a significant safety factor because C++ compilers can tack on
6136       # massive amounts of additional arguments before passing them to the
6137       # linker.  It appears as though 1/2 is a usable value.
6138       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6139     fi
6140     ;;
6141   esac
6142
6143 fi
6144
6145 if test -n $lt_cv_sys_max_cmd_len ; then
6146   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6148 else
6149   { echo "$as_me:$LINENO: result: none" >&5
6150 echo "${ECHO_T}none" >&6; }
6151 fi
6152 max_cmd_len=$lt_cv_sys_max_cmd_len
6153
6154
6155
6156
6157
6158
6159 : ${CP="cp -f"}
6160 : ${MV="mv -f"}
6161 : ${RM="rm -f"}
6162
6163 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6164 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6165 # Try some XSI features
6166 xsi_shell=no
6167 ( _lt_dummy="a/b/c"
6168   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6169       = c,a/b,, \
6170     && eval 'test $(( 1 + 1 )) -eq 2 \
6171     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6172   && xsi_shell=yes
6173 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6174 echo "${ECHO_T}$xsi_shell" >&6; }
6175
6176
6177 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6178 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6179 lt_shell_append=no
6180 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6181     >/dev/null 2>&1 \
6182   && lt_shell_append=yes
6183 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6184 echo "${ECHO_T}$lt_shell_append" >&6; }
6185
6186
6187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6188   lt_unset=unset
6189 else
6190   lt_unset=false
6191 fi
6192
6193
6194
6195
6196
6197 # test EBCDIC or ASCII
6198 case `echo X|tr X '\101'` in
6199  A) # ASCII based system
6200     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6201   lt_SP2NL='tr \040 \012'
6202   lt_NL2SP='tr \015\012 \040\040'
6203   ;;
6204  *) # EBCDIC based system
6205   lt_SP2NL='tr \100 \n'
6206   lt_NL2SP='tr \r\n \100\100'
6207   ;;
6208 esac
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6219 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6220 if test "${lt_cv_ld_reload_flag+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   lt_cv_ld_reload_flag='-r'
6224 fi
6225 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6226 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6227 reload_flag=$lt_cv_ld_reload_flag
6228 case $reload_flag in
6229 "" | " "*) ;;
6230 *) reload_flag=" $reload_flag" ;;
6231 esac
6232 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233 case $host_os in
6234   darwin*)
6235     if test "$GCC" = yes; then
6236       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6237     else
6238       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6239     fi
6240     ;;
6241 esac
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 if test -n "$ac_tool_prefix"; then
6252   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   if test -n "$OBJDUMP"; then
6260   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267   for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 OBJDUMP=$ac_cv_prog_OBJDUMP
6280 if test -n "$OBJDUMP"; then
6281   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6282 echo "${ECHO_T}$OBJDUMP" >&6; }
6283 else
6284   { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6287
6288
6289 fi
6290 if test -z "$ac_cv_prog_OBJDUMP"; then
6291   ac_ct_OBJDUMP=$OBJDUMP
6292   # Extract the first word of "objdump", so it can be a program name with args.
6293 set dummy objdump; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   if test -n "$ac_ct_OBJDUMP"; then
6300   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307   for ac_exec_ext in '' $ac_executable_extensions; do
6308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6320 if test -n "$ac_ct_OBJDUMP"; then
6321   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6322 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6323 else
6324   { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6326 fi
6327
6328   if test "x$ac_ct_OBJDUMP" = x; then
6329     OBJDUMP="false"
6330   else
6331     case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet.  If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&5
6336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet.  If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6339 ac_tool_warned=yes ;;
6340 esac
6341     OBJDUMP=$ac_ct_OBJDUMP
6342   fi
6343 else
6344   OBJDUMP="$ac_cv_prog_OBJDUMP"
6345 fi
6346
6347 test -z "$OBJDUMP" && OBJDUMP=objdump
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6358 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6359 if test "${lt_cv_deplibs_check_method+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   lt_cv_file_magic_cmd='$MAGIC_CMD'
6363 lt_cv_file_magic_test_file=
6364 lt_cv_deplibs_check_method='unknown'
6365 # Need to set the preceding variable on all platforms that support
6366 # interlibrary dependencies.
6367 # 'none' -- dependencies not supported.
6368 # `unknown' -- same as none, but documents that we really don't know.
6369 # 'pass_all' -- all dependencies passed with no checks.
6370 # 'test_compile' -- check by making test program.
6371 # 'file_magic [[regex]]' -- check by looking for files in library path
6372 # which responds to the $file_magic_cmd with a given extended regex.
6373 # If you have `file' or equivalent on your system and you're not sure
6374 # whether `pass_all' will *always* work, you probably want this one.
6375
6376 case $host_os in
6377 aix[4-9]*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 beos*)
6382   lt_cv_deplibs_check_method=pass_all
6383   ;;
6384
6385 bsdi[45]*)
6386   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6387   lt_cv_file_magic_cmd='/usr/bin/file -L'
6388   lt_cv_file_magic_test_file=/shlib/libc.so
6389   ;;
6390
6391 cygwin*)
6392   # func_win32_libid is a shell function defined in ltmain.sh
6393   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6394   lt_cv_file_magic_cmd='func_win32_libid'
6395   ;;
6396
6397 mingw* | pw32*)
6398   # Base MSYS/MinGW do not provide the 'file' command needed by
6399   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6400   # unless we find 'file', for example because we are cross-compiling.
6401   if ( file / ) >/dev/null 2>&1; then
6402     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6403     lt_cv_file_magic_cmd='func_win32_libid'
6404   else
6405     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6406     lt_cv_file_magic_cmd='$OBJDUMP -f'
6407   fi
6408   ;;
6409
6410 cegcc)
6411   # use the weaker test based on 'objdump'. See mingw*.
6412   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6413   lt_cv_file_magic_cmd='$OBJDUMP -f'
6414   ;;
6415
6416 darwin* | rhapsody*)
6417   lt_cv_deplibs_check_method=pass_all
6418   ;;
6419
6420 freebsd* | dragonfly*)
6421   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6422     case $host_cpu in
6423     i*86 )
6424       # Not sure whether the presence of OpenBSD here was a mistake.
6425       # Let's accept both of them until this is cleared up.
6426       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6427       lt_cv_file_magic_cmd=/usr/bin/file
6428       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6429       ;;
6430     esac
6431   else
6432     lt_cv_deplibs_check_method=pass_all
6433   fi
6434   ;;
6435
6436 gnu*)
6437   lt_cv_deplibs_check_method=pass_all
6438   ;;
6439
6440 hpux10.20* | hpux11*)
6441   lt_cv_file_magic_cmd=/usr/bin/file
6442   case $host_cpu in
6443   ia64*)
6444     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6445     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6446     ;;
6447   hppa*64*)
6448     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6449     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6450     ;;
6451   *)
6452     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6453     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6454     ;;
6455   esac
6456   ;;
6457
6458 interix[3-9]*)
6459   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6460   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6461   ;;
6462
6463 irix5* | irix6* | nonstopux*)
6464   case $LD in
6465   *-32|*"-32 ") libmagic=32-bit;;
6466   *-n32|*"-n32 ") libmagic=N32;;
6467   *-64|*"-64 ") libmagic=64-bit;;
6468   *) libmagic=never-match;;
6469   esac
6470   lt_cv_deplibs_check_method=pass_all
6471   ;;
6472
6473 # This must be Linux ELF.
6474 linux* | k*bsd*-gnu)
6475   lt_cv_deplibs_check_method=pass_all
6476   ;;
6477
6478 netbsd*)
6479   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6480     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6481   else
6482     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6483   fi
6484   ;;
6485
6486 newos6*)
6487   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6488   lt_cv_file_magic_cmd=/usr/bin/file
6489   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6490   ;;
6491
6492 *nto* | *qnx*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495
6496 openbsd*)
6497   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6498     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6499   else
6500     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6501   fi
6502   ;;
6503
6504 osf3* | osf4* | osf5*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 rdos*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511
6512 solaris*)
6513   lt_cv_deplibs_check_method=pass_all
6514   ;;
6515
6516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6517   lt_cv_deplibs_check_method=pass_all
6518   ;;
6519
6520 sysv4 | sysv4.3*)
6521   case $host_vendor in
6522   motorola)
6523     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6524     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6525     ;;
6526   ncr)
6527     lt_cv_deplibs_check_method=pass_all
6528     ;;
6529   sequent)
6530     lt_cv_file_magic_cmd='/bin/file'
6531     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6532     ;;
6533   sni)
6534     lt_cv_file_magic_cmd='/bin/file'
6535     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6536     lt_cv_file_magic_test_file=/lib/libc.so
6537     ;;
6538   siemens)
6539     lt_cv_deplibs_check_method=pass_all
6540     ;;
6541   pc)
6542     lt_cv_deplibs_check_method=pass_all
6543     ;;
6544   esac
6545   ;;
6546
6547 tpf*)
6548   lt_cv_deplibs_check_method=pass_all
6549   ;;
6550 esac
6551
6552 fi
6553 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6554 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6555 file_magic_cmd=$lt_cv_file_magic_cmd
6556 deplibs_check_method=$lt_cv_deplibs_check_method
6557 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 if test -n "$ac_tool_prefix"; then
6571   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}ar; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_AR+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   if test -n "$AR"; then
6579   ac_cv_prog_AR="$AR" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586   for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_AR="${ac_tool_prefix}ar"
6589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 AR=$ac_cv_prog_AR
6599 if test -n "$AR"; then
6600   { echo "$as_me:$LINENO: result: $AR" >&5
6601 echo "${ECHO_T}$AR" >&6; }
6602 else
6603   { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_AR"; then
6610   ac_ct_AR=$AR
6611   # Extract the first word of "ar", so it can be a program name with args.
6612 set dummy ar; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   if test -n "$ac_ct_AR"; then
6619   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626   for ac_exec_ext in '' $ac_executable_extensions; do
6627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628     ac_cv_prog_ac_ct_AR="ar"
6629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6639 if test -n "$ac_ct_AR"; then
6640   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6641 echo "${ECHO_T}$ac_ct_AR" >&6; }
6642 else
6643   { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6645 fi
6646
6647   if test "x$ac_ct_AR" = x; then
6648     AR="false"
6649   else
6650     case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet.  If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&5
6655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet.  If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660     AR=$ac_ct_AR
6661   fi
6662 else
6663   AR="$ac_cv_prog_AR"
6664 fi
6665
6666 test -z "$AR" && AR=ar
6667 test -z "$AR_FLAGS" && AR_FLAGS=cru
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679 if test -n "$ac_tool_prefix"; then
6680   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}strip; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_prog_STRIP+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   if test -n "$STRIP"; then
6688   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 STRIP=$ac_cv_prog_STRIP
6708 if test -n "$STRIP"; then
6709   { echo "$as_me:$LINENO: result: $STRIP" >&5
6710 echo "${ECHO_T}$STRIP" >&6; }
6711 else
6712   { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_STRIP"; then
6719   ac_ct_STRIP=$STRIP
6720   # Extract the first word of "strip", so it can be a program name with args.
6721 set dummy strip; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   if test -n "$ac_ct_STRIP"; then
6728   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_ac_ct_STRIP="strip"
6738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6748 if test -n "$ac_ct_STRIP"; then
6749   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6750 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756   if test "x$ac_ct_STRIP" = x; then
6757     STRIP=":"
6758   else
6759     case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet.  If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&5
6764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet.  If you think this
6766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6767 ac_tool_warned=yes ;;
6768 esac
6769     STRIP=$ac_ct_STRIP
6770   fi
6771 else
6772   STRIP="$ac_cv_prog_STRIP"
6773 fi
6774
6775 test -z "$STRIP" && STRIP=:
6776
6777
6778
6779
6780
6781
6782 if test -n "$ac_tool_prefix"; then
6783   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_prog_RANLIB+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   if test -n "$RANLIB"; then
6791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 RANLIB=$ac_cv_prog_RANLIB
6811 if test -n "$RANLIB"; then
6812   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6813 echo "${ECHO_T}$RANLIB" >&6; }
6814 else
6815   { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_RANLIB"; then
6822   ac_ct_RANLIB=$RANLIB
6823   # Extract the first word of "ranlib", so it can be a program name with args.
6824 set dummy ranlib; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   if test -n "$ac_ct_RANLIB"; then
6831   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_ac_ct_RANLIB="ranlib"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6851 if test -n "$ac_ct_RANLIB"; then
6852   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6853 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859   if test "x$ac_ct_RANLIB" = x; then
6860     RANLIB=":"
6861   else
6862     case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet.  If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&5
6867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872     RANLIB=$ac_ct_RANLIB
6873   fi
6874 else
6875   RANLIB="$ac_cv_prog_RANLIB"
6876 fi
6877
6878 test -z "$RANLIB" && RANLIB=:
6879
6880
6881
6882
6883
6884
6885 # Determine commands to create old-style static archives.
6886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6887 old_postinstall_cmds='chmod 644 $oldlib'
6888 old_postuninstall_cmds=
6889
6890 if test -n "$RANLIB"; then
6891   case $host_os in
6892   openbsd*)
6893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6894     ;;
6895   *)
6896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6897     ;;
6898   esac
6899   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6900 fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 # If no C compiler was specified, use CC.
6936 LTCC=${LTCC-"$CC"}
6937
6938 # If no C compiler flags were specified, use CFLAGS.
6939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6940
6941 # Allow CC to be a program name with arguments.
6942 compiler=$CC
6943
6944
6945 # Check for command to grab the raw symbol name followed by C symbol from nm.
6946 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6947 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6948 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951
6952 # These are sane defaults that work on at least a few old systems.
6953 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6954
6955 # Character class describing NM global symbol codes.
6956 symcode='[BCDEGRST]'
6957
6958 # Regexp to match symbols that can be accessed directly from C.
6959 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6960
6961 # Define system-specific variables.
6962 case $host_os in
6963 aix*)
6964   symcode='[BCDT]'
6965   ;;
6966 cygwin* | mingw* | pw32* | cegcc*)
6967   symcode='[ABCDGISTW]'
6968   ;;
6969 hpux*)
6970   if test "$host_cpu" = ia64; then
6971     symcode='[ABCDEGRST]'
6972   fi
6973   ;;
6974 irix* | nonstopux*)
6975   symcode='[BCDEGRST]'
6976   ;;
6977 osf*)
6978   symcode='[BCDEGQRST]'
6979   ;;
6980 solaris*)
6981   symcode='[BDRT]'
6982   ;;
6983 sco3.2v5*)
6984   symcode='[DT]'
6985   ;;
6986 sysv4.2uw2*)
6987   symcode='[DT]'
6988   ;;
6989 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6990   symcode='[ABDT]'
6991   ;;
6992 sysv4)
6993   symcode='[DFNSTU]'
6994   ;;
6995 esac
6996
6997 # If we're using GNU nm, then use its standard symbol codes.
6998 case `$NM -V 2>&1` in
6999 *GNU* | *'with BFD'*)
7000   symcode='[ABCDGIRSTW]' ;;
7001 esac
7002
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7007
7008 # Transform an extracted symbol line into symbol name and symbol address
7009 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7010 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7011
7012 # Handle CRLF in mingw tool chain
7013 opt_cr=
7014 case $build_os in
7015 mingw*)
7016   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017   ;;
7018 esac
7019
7020 # Try without a prefix underscore, then with it.
7021 for ac_symprfx in "" "_"; do
7022
7023   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7024   symxfrm="\\1 $ac_symprfx\\2 \\2"
7025
7026   # Write the raw and C identifiers.
7027   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7028     # Fake it for dumpbin and say T for any non-static function
7029     # and D for any global variable.
7030     # Also find C++ and __fastcall symbols from MSVC++,
7031     # which start with @ or ?.
7032     lt_cv_sys_global_symbol_pipe="$AWK '"\
7033 "     {last_section=section; section=\$ 3};"\
7034 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7035 "     \$ 0!~/External *\|/{next};"\
7036 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7037 "     {if(hide[section]) next};"\
7038 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7039 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7040 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7041 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7042 "     ' prfx=^$ac_symprfx"
7043   else
7044     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7045   fi
7046
7047   # Check to see that the pipe works correctly.
7048   pipe_works=no
7049
7050   rm -f conftest*
7051   cat > conftest.$ac_ext <<_LT_EOF
7052 #ifdef __cplusplus
7053 extern "C" {
7054 #endif
7055 char nm_test_var;
7056 void nm_test_func(void);
7057 void nm_test_func(void){}
7058 #ifdef __cplusplus
7059 }
7060 #endif
7061 int main(){nm_test_var='a';nm_test_func();return(0);}
7062 _LT_EOF
7063
7064   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065   (eval $ac_compile) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; then
7069     # Now try to grab the symbols.
7070     nlist=conftest.nm
7071     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7072   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } && test -s "$nlist"; then
7076       # Try sorting and uniquifying the output.
7077       if sort "$nlist" | uniq > "$nlist"T; then
7078         mv -f "$nlist"T "$nlist"
7079       else
7080         rm -f "$nlist"T
7081       fi
7082
7083       # Make sure that we snagged all the symbols we need.
7084       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7085         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7086           cat <<_LT_EOF > conftest.$ac_ext
7087 #ifdef __cplusplus
7088 extern "C" {
7089 #endif
7090
7091 _LT_EOF
7092           # Now generate the symbol file.
7093           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094
7095           cat <<_LT_EOF >> conftest.$ac_ext
7096
7097 /* The mapping between symbol names and symbols.  */
7098 const struct {
7099   const char *name;
7100   void       *address;
7101 }
7102 lt__PROGRAM__LTX_preloaded_symbols[] =
7103 {
7104   { "@PROGRAM@", (void *) 0 },
7105 _LT_EOF
7106           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7107           cat <<\_LT_EOF >> conftest.$ac_ext
7108   {0, (void *) 0}
7109 };
7110
7111 /* This works around a problem in FreeBSD linker */
7112 #ifdef FREEBSD_WORKAROUND
7113 static const void *lt_preloaded_setup() {
7114   return lt__PROGRAM__LTX_preloaded_symbols;
7115 }
7116 #endif
7117
7118 #ifdef __cplusplus
7119 }
7120 #endif
7121 _LT_EOF
7122           # Now try linking the two files.
7123           mv conftest.$ac_objext conftstm.$ac_objext
7124           lt_save_LIBS="$LIBS"
7125           lt_save_CFLAGS="$CFLAGS"
7126           LIBS="conftstm.$ac_objext"
7127           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7128           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129   (eval $ac_link) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7133             pipe_works=yes
7134           fi
7135           LIBS="$lt_save_LIBS"
7136           CFLAGS="$lt_save_CFLAGS"
7137         else
7138           echo "cannot find nm_test_func in $nlist" >&5
7139         fi
7140       else
7141         echo "cannot find nm_test_var in $nlist" >&5
7142       fi
7143     else
7144       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145     fi
7146   else
7147     echo "$progname: failed program was:" >&5
7148     cat conftest.$ac_ext >&5
7149   fi
7150   rm -rf conftest* conftst*
7151
7152   # Do not use the global_symbol_pipe unless it works.
7153   if test "$pipe_works" = yes; then
7154     break
7155   else
7156     lt_cv_sys_global_symbol_pipe=
7157   fi
7158 done
7159
7160 fi
7161
7162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7163   lt_cv_sys_global_symbol_to_cdecl=
7164 fi
7165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7166   { echo "$as_me:$LINENO: result: failed" >&5
7167 echo "${ECHO_T}failed" >&6; }
7168 else
7169   { echo "$as_me:$LINENO: result: ok" >&5
7170 echo "${ECHO_T}ok" >&6; }
7171 fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 # Check whether --enable-libtool-lock was given.
7195 if test "${enable_libtool_lock+set}" = set; then
7196   enableval=$enable_libtool_lock;
7197 fi
7198
7199 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7200
7201 # Some flags need to be propagated to the compiler or linker for good
7202 # libtool support.
7203 case $host in
7204 ia64-*-hpux*)
7205   # Find out which ABI we are using.
7206   echo 'int i;' > conftest.$ac_ext
7207   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208   (eval $ac_compile) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; then
7212     case `/usr/bin/file conftest.$ac_objext` in
7213       *ELF-32*)
7214         HPUX_IA64_MODE="32"
7215         ;;
7216       *ELF-64*)
7217         HPUX_IA64_MODE="64"
7218         ;;
7219     esac
7220   fi
7221   rm -rf conftest*
7222   ;;
7223 *-*-irix6*)
7224   # Find out which ABI we are using.
7225   echo '#line 7225 "configure"' > conftest.$ac_ext
7226   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227   (eval $ac_compile) 2>&5
7228   ac_status=$?
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }; then
7231     if test "$lt_cv_prog_gnu_ld" = yes; then
7232       case `/usr/bin/file conftest.$ac_objext` in
7233         *32-bit*)
7234           LD="${LD-ld} -melf32bsmip"
7235           ;;
7236         *N32*)
7237           LD="${LD-ld} -melf32bmipn32"
7238           ;;
7239         *64-bit*)
7240           LD="${LD-ld} -melf64bmip"
7241         ;;
7242       esac
7243     else
7244       case `/usr/bin/file conftest.$ac_objext` in
7245         *32-bit*)
7246           LD="${LD-ld} -32"
7247           ;;
7248         *N32*)
7249           LD="${LD-ld} -n32"
7250           ;;
7251         *64-bit*)
7252           LD="${LD-ld} -64"
7253           ;;
7254       esac
7255     fi
7256   fi
7257   rm -rf conftest*
7258   ;;
7259
7260 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7261 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7262   # Find out which ABI we are using.
7263   echo 'int i;' > conftest.$ac_ext
7264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265   (eval $ac_compile) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); }; then
7269     case `/usr/bin/file conftest.o` in
7270       *32-bit*)
7271         case $host in
7272           x86_64-*kfreebsd*-gnu)
7273             LD="${LD-ld} -m elf_i386_fbsd"
7274             ;;
7275           x86_64-*linux*)
7276             LD="${LD-ld} -m elf_i386"
7277             ;;
7278           ppc64-*linux*|powerpc64-*linux*)
7279             LD="${LD-ld} -m elf32ppclinux"
7280             ;;
7281           s390x-*linux*)
7282             LD="${LD-ld} -m elf_s390"
7283             ;;
7284           sparc64-*linux*)
7285             LD="${LD-ld} -m elf32_sparc"
7286             ;;
7287         esac
7288         ;;
7289       *64-bit*)
7290         case $host in
7291           x86_64-*kfreebsd*-gnu)
7292             LD="${LD-ld} -m elf_x86_64_fbsd"
7293             ;;
7294           x86_64-*linux*)
7295             LD="${LD-ld} -m elf_x86_64"
7296             ;;
7297           ppc*-*linux*|powerpc*-*linux*)
7298             LD="${LD-ld} -m elf64ppc"
7299             ;;
7300           s390*-*linux*|s390*-*tpf*)
7301             LD="${LD-ld} -m elf64_s390"
7302             ;;
7303           sparc*-*linux*)
7304             LD="${LD-ld} -m elf64_sparc"
7305             ;;
7306         esac
7307         ;;
7308     esac
7309   fi
7310   rm -rf conftest*
7311   ;;
7312
7313 *-*-sco3.2v5*)
7314   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7315   SAVE_CFLAGS="$CFLAGS"
7316   CFLAGS="$CFLAGS -belf"
7317   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7318 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7319 if test "${lt_cv_cc_needs_belf+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   ac_ext=c
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328      cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334
7335 int
7336 main ()
7337 {
7338
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (ac_try="$ac_link"
7345 case "(($ac_try" in
7346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347   *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350   (eval "$ac_link") 2>conftest.er1
7351   ac_status=$?
7352   grep -v '^ *+' conftest.er1 >conftest.err
7353   rm -f conftest.er1
7354   cat conftest.err >&5
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); } && {
7357          test -z "$ac_c_werror_flag" ||
7358          test ! -s conftest.err
7359        } && test -s conftest$ac_exeext &&
7360        $as_test_x conftest$ac_exeext; then
7361   lt_cv_cc_needs_belf=yes
7362 else
7363   echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366         lt_cv_cc_needs_belf=no
7367 fi
7368
7369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7370       conftest$ac_exeext conftest.$ac_ext
7371      ac_ext=c
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376
7377 fi
7378 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7379 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7380   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7381     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7382     CFLAGS="$SAVE_CFLAGS"
7383   fi
7384   ;;
7385 sparc*-*solaris*)
7386   # Find out which ABI we are using.
7387   echo 'int i;' > conftest.$ac_ext
7388   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389   (eval $ac_compile) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }; then
7393     case `/usr/bin/file conftest.o` in
7394     *64-bit*)
7395       case $lt_cv_prog_gnu_ld in
7396       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7397       *)
7398         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7399           LD="${LD-ld} -64"
7400         fi
7401         ;;
7402       esac
7403       ;;
7404     esac
7405   fi
7406   rm -rf conftest*
7407   ;;
7408 esac
7409
7410 need_locks="$enable_libtool_lock"
7411
7412
7413   case $host_os in
7414     rhapsody* | darwin*)
7415     if test -n "$ac_tool_prefix"; then
7416   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   if test -n "$DSYMUTIL"; then
7424   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431   for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7444 if test -n "$DSYMUTIL"; then
7445   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7446 echo "${ECHO_T}$DSYMUTIL" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_DSYMUTIL"; then
7455   ac_ct_DSYMUTIL=$DSYMUTIL
7456   # Extract the first word of "dsymutil", so it can be a program name with args.
7457 set dummy dsymutil; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   if test -n "$ac_ct_DSYMUTIL"; then
7464   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7484 if test -n "$ac_ct_DSYMUTIL"; then
7485   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7486 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7487 else
7488   { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7490 fi
7491
7492   if test "x$ac_ct_DSYMUTIL" = x; then
7493     DSYMUTIL=":"
7494   else
7495     case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet.  If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&5
7500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7501 whose name does not start with the host triplet.  If you think this
7502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7503 ac_tool_warned=yes ;;
7504 esac
7505     DSYMUTIL=$ac_ct_DSYMUTIL
7506   fi
7507 else
7508   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7509 fi
7510
7511     if test -n "$ac_tool_prefix"; then
7512   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   if test -n "$NMEDIT"; then
7520   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527   for ac_exec_ext in '' $ac_executable_extensions; do
7528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7542 echo "${ECHO_T}$NMEDIT" >&6; }
7543 else
7544   { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551   ac_ct_NMEDIT=$NMEDIT
7552   # Extract the first word of "nmedit", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   if test -n "$ac_ct_NMEDIT"; then
7560   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567   for ac_exec_ext in '' $ac_executable_extensions; do
7568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574 done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7582 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7583 else
7584   { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7586 fi
7587
7588   if test "x$ac_ct_NMEDIT" = x; then
7589     NMEDIT=":"
7590   else
7591     case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet.  If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&5
7596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7597 whose name does not start with the host triplet.  If you think this
7598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7599 ac_tool_warned=yes ;;
7600 esac
7601     NMEDIT=$ac_ct_NMEDIT
7602   fi
7603 else
7604   NMEDIT="$ac_cv_prog_NMEDIT"
7605 fi
7606
7607     if test -n "$ac_tool_prefix"; then
7608   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_prog_LIPO+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   if test -n "$LIPO"; then
7616   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623   for ac_exec_ext in '' $ac_executable_extensions; do
7624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 LIPO=$ac_cv_prog_LIPO
7636 if test -n "$LIPO"; then
7637   { echo "$as_me:$LINENO: result: $LIPO" >&5
7638 echo "${ECHO_T}$LIPO" >&6; }
7639 else
7640   { echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6; }
7642 fi
7643
7644
7645 fi
7646 if test -z "$ac_cv_prog_LIPO"; then
7647   ac_ct_LIPO=$LIPO
7648   # Extract the first word of "lipo", so it can be a program name with args.
7649 set dummy lipo; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   if test -n "$ac_ct_LIPO"; then
7656   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663   for ac_exec_ext in '' $ac_executable_extensions; do
7664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665     ac_cv_prog_ac_ct_LIPO="lipo"
7666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7676 if test -n "$ac_ct_LIPO"; then
7677   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7678 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7679 else
7680   { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7682 fi
7683
7684   if test "x$ac_ct_LIPO" = x; then
7685     LIPO=":"
7686   else
7687     case $cross_compiling:$ac_tool_warned in
7688 yes:)
7689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet.  If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&5
7692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7693 whose name does not start with the host triplet.  If you think this
7694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697     LIPO=$ac_ct_LIPO
7698   fi
7699 else
7700   LIPO="$ac_cv_prog_LIPO"
7701 fi
7702
7703     if test -n "$ac_tool_prefix"; then
7704   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}otool; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_prog_OTOOL+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   if test -n "$OTOOL"; then
7712   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719   for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 OTOOL=$ac_cv_prog_OTOOL
7732 if test -n "$OTOOL"; then
7733   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7734 echo "${ECHO_T}$OTOOL" >&6; }
7735 else
7736   { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_OTOOL"; then
7743   ac_ct_OTOOL=$OTOOL
7744   # Extract the first word of "otool", so it can be a program name with args.
7745 set dummy otool; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   if test -n "$ac_ct_OTOOL"; then
7752   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_ac_ct_OTOOL="otool"
7762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7772 if test -n "$ac_ct_OTOOL"; then
7773   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7774 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7775 else
7776   { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7778 fi
7779
7780   if test "x$ac_ct_OTOOL" = x; then
7781     OTOOL=":"
7782   else
7783     case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet.  If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&5
7788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7789 whose name does not start with the host triplet.  If you think this
7790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7791 ac_tool_warned=yes ;;
7792 esac
7793     OTOOL=$ac_ct_OTOOL
7794   fi
7795 else
7796   OTOOL="$ac_cv_prog_OTOOL"
7797 fi
7798
7799     if test -n "$ac_tool_prefix"; then
7800   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   if test -n "$OTOOL64"; then
7808   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815   for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 OTOOL64=$ac_cv_prog_OTOOL64
7828 if test -n "$OTOOL64"; then
7829   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7830 echo "${ECHO_T}$OTOOL64" >&6; }
7831 else
7832   { echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6; }
7834 fi
7835
7836
7837 fi
7838 if test -z "$ac_cv_prog_OTOOL64"; then
7839   ac_ct_OTOOL64=$OTOOL64
7840   # Extract the first word of "otool64", so it can be a program name with args.
7841 set dummy otool64; ac_word=$2
7842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7844 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   if test -n "$ac_ct_OTOOL64"; then
7848   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855   for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_prog_ac_ct_OTOOL64="otool64"
7858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7868 if test -n "$ac_ct_OTOOL64"; then
7869   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7870 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7871 else
7872   { echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6; }
7874 fi
7875
7876   if test "x$ac_ct_OTOOL64" = x; then
7877     OTOOL64=":"
7878   else
7879     case $cross_compiling:$ac_tool_warned in
7880 yes:)
7881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet.  If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&5
7884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7885 whose name does not start with the host triplet.  If you think this
7886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7887 ac_tool_warned=yes ;;
7888 esac
7889     OTOOL64=$ac_ct_OTOOL64
7890   fi
7891 else
7892   OTOOL64="$ac_cv_prog_OTOOL64"
7893 fi
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7922 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7923 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   lt_cv_apple_cc_single_mod=no
7927       if test -z "${LT_MULTI_MODULE}"; then
7928         # By default we will add the -single_module flag. You can override
7929         # by either setting the environment variable LT_MULTI_MODULE
7930         # non-empty at configure time, or by adding -multi_module to the
7931         # link flags.
7932         rm -rf libconftest.dylib*
7933         echo "int foo(void){return 1;}" > conftest.c
7934         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935 -dynamiclib -Wl,-single_module conftest.c" >&5
7936         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7937           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7938         _lt_result=$?
7939         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7940           lt_cv_apple_cc_single_mod=yes
7941         else
7942           cat conftest.err >&5
7943         fi
7944         rm -rf libconftest.dylib*
7945         rm -f conftest.*
7946       fi
7947 fi
7948 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7949 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7950     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7951 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7952 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   lt_cv_ld_exported_symbols_list=no
7956       save_LDFLAGS=$LDFLAGS
7957       echo "_main" > conftest.sym
7958       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7959       cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h.  */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h.  */
7965
7966 int
7967 main ()
7968 {
7969
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext conftest$ac_exeext
7975 if { (ac_try="$ac_link"
7976 case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_link") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } && {
7988          test -z "$ac_c_werror_flag" ||
7989          test ! -s conftest.err
7990        } && test -s conftest$ac_exeext &&
7991        $as_test_x conftest$ac_exeext; then
7992   lt_cv_ld_exported_symbols_list=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997         lt_cv_ld_exported_symbols_list=no
7998 fi
7999
8000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8001       conftest$ac_exeext conftest.$ac_ext
8002         LDFLAGS="$save_LDFLAGS"
8003
8004 fi
8005 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8006 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8007     case $host_os in
8008     rhapsody* | darwin1.[012])
8009       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8010     darwin1.*)
8011       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8012     darwin*) # darwin 5.x on
8013       # if running on 10.5 or later, the deployment target defaults
8014       # to the OS version, if on x86, and 10.4, the deployment
8015       # target defaults to 10.4. Don't you love it?
8016       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8017         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8018           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019         10.[012]*)
8020           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8021         10.*)
8022           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8023       esac
8024     ;;
8025   esac
8026     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8027       _lt_dar_single_mod='$single_module'
8028     fi
8029     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8030       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8031     else
8032       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8033     fi
8034     if test "$DSYMUTIL" != ":"; then
8035       _lt_dsymutil='~$DSYMUTIL $lib || :'
8036     else
8037       _lt_dsymutil=
8038     fi
8039     ;;
8040   esac
8041
8042 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8044 if test "${ac_cv_header_stdc+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 #include <stdlib.h>
8054 #include <stdarg.h>
8055 #include <string.h>
8056 #include <float.h>
8057
8058 int
8059 main ()
8060 {
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (ac_try="$ac_compile"
8068 case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_compile") 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } && {
8080          test -z "$ac_c_werror_flag" ||
8081          test ! -s conftest.err
8082        } && test -s conftest.$ac_objext; then
8083   ac_cv_header_stdc=yes
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         ac_cv_header_stdc=no
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092
8093 if test $ac_cv_header_stdc = yes; then
8094   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8095   cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 #include <string.h>
8102
8103 _ACEOF
8104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8105   $EGREP "memchr" >/dev/null 2>&1; then
8106   :
8107 else
8108   ac_cv_header_stdc=no
8109 fi
8110 rm -f conftest*
8111
8112 fi
8113
8114 if test $ac_cv_header_stdc = yes; then
8115   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <stdlib.h>
8123
8124 _ACEOF
8125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8126   $EGREP "free" >/dev/null 2>&1; then
8127   :
8128 else
8129   ac_cv_header_stdc=no
8130 fi
8131 rm -f conftest*
8132
8133 fi
8134
8135 if test $ac_cv_header_stdc = yes; then
8136   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8137   if test "$cross_compiling" = yes; then
8138   :
8139 else
8140   cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146 #include <ctype.h>
8147 #include <stdlib.h>
8148 #if ((' ' & 0x0FF) == 0x020)
8149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8151 #else
8152 # define ISLOWER(c) \
8153                    (('a' <= (c) && (c) <= 'i') \
8154                      || ('j' <= (c) && (c) <= 'r') \
8155                      || ('s' <= (c) && (c) <= 'z'))
8156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8157 #endif
8158
8159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8160 int
8161 main ()
8162 {
8163   int i;
8164   for (i = 0; i < 256; i++)
8165     if (XOR (islower (i), ISLOWER (i))
8166         || toupper (i) != TOUPPER (i))
8167       return 2;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest$ac_exeext
8172 if { (ac_try="$ac_link"
8173 case "(($ac_try" in
8174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175   *) ac_try_echo=$ac_try;;
8176 esac
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178   (eval "$ac_link") 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8182   { (case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187   (eval "$ac_try") 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   :
8192 else
8193   echo "$as_me: program exited with status $ac_status" >&5
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ( exit $ac_status )
8198 ac_cv_header_stdc=no
8199 fi
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8201 fi
8202
8203
8204 fi
8205 fi
8206 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8207 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8208 if test $ac_cv_header_stdc = yes; then
8209
8210 cat >>confdefs.h <<\_ACEOF
8211 #define STDC_HEADERS 1
8212 _ACEOF
8213
8214 fi
8215
8216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8227                   inttypes.h stdint.h unistd.h
8228 do
8229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 $ac_includes_default
8242
8243 #include <$ac_header>
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252   (eval "$ac_compile") 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } && {
8259          test -z "$ac_c_werror_flag" ||
8260          test ! -s conftest.err
8261        } && test -s conftest.$ac_objext; then
8262   eval "$as_ac_Header=yes"
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267         eval "$as_ac_Header=no"
8268 fi
8269
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 fi
8272 ac_res=`eval echo '${'$as_ac_Header'}'`
8273                { echo "$as_me:$LINENO: result: $ac_res" >&5
8274 echo "${ECHO_T}$ac_res" >&6; }
8275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8276   cat >>confdefs.h <<_ACEOF
8277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8278 _ACEOF
8279
8280 fi
8281
8282 done
8283
8284
8285
8286 for ac_header in dlfcn.h
8287 do
8288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294   cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h.  */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h.  */
8300 $ac_includes_default
8301
8302 #include <$ac_header>
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_compile") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest.$ac_objext; then
8321   eval "$as_ac_Header=yes"
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         eval "$as_ac_Header=no"
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 fi
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332                { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335   cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8337 _ACEOF
8338
8339 fi
8340
8341 done
8342
8343
8344
8345 ac_ext=cpp
8346 ac_cpp='$CXXCPP $CPPFLAGS'
8347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8350 if test -z "$CXX"; then
8351   if test -n "$CCC"; then
8352     CXX=$CCC
8353   else
8354     if test -n "$ac_tool_prefix"; then
8355   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8356   do
8357     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_prog_CXX+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   if test -n "$CXX"; then
8365   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372   for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 CXX=$ac_cv_prog_CXX
8385 if test -n "$CXX"; then
8386   { echo "$as_me:$LINENO: result: $CXX" >&5
8387 echo "${ECHO_T}$CXX" >&6; }
8388 else
8389   { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8391 fi
8392
8393
8394     test -n "$CXX" && break
8395   done
8396 fi
8397 if test -z "$CXX"; then
8398   ac_ct_CXX=$CXX
8399   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8400 do
8401   # Extract the first word of "$ac_prog", so it can be a program name with args.
8402 set dummy $ac_prog; ac_word=$2
8403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8405 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   if test -n "$ac_ct_CXX"; then
8409   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416   for ac_exec_ext in '' $ac_executable_extensions; do
8417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418     ac_cv_prog_ac_ct_CXX="$ac_prog"
8419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423 done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8429 if test -n "$ac_ct_CXX"; then
8430   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8431 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8432 else
8433   { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8435 fi
8436
8437
8438   test -n "$ac_ct_CXX" && break
8439 done
8440
8441   if test "x$ac_ct_CXX" = x; then
8442     CXX="g++"
8443   else
8444     case $cross_compiling:$ac_tool_warned in
8445 yes:)
8446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet.  If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&5
8449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet.  If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8452 ac_tool_warned=yes ;;
8453 esac
8454     CXX=$ac_ct_CXX
8455   fi
8456 fi
8457
8458   fi
8459 fi
8460 # Provide some information about the compiler.
8461 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8462 ac_compiler=`set X $ac_compile; echo $2`
8463 { (ac_try="$ac_compiler --version >&5"
8464 case "(($ac_try" in
8465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466   *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469   (eval "$ac_compiler --version >&5") 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }
8473 { (ac_try="$ac_compiler -v >&5"
8474 case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_compiler -v >&5") 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }
8483 { (ac_try="$ac_compiler -V >&5"
8484 case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_compiler -V >&5") 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }
8493
8494 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8495 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8496 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506 int
8507 main ()
8508 {
8509 #ifndef __GNUC__
8510        choke me
8511 #endif
8512
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8519 case "(($ac_try" in
8520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521   *) ac_try_echo=$ac_try;;
8522 esac
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524   (eval "$ac_compile") 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } && {
8531          test -z "$ac_cxx_werror_flag" ||
8532          test ! -s conftest.err
8533        } && test -s conftest.$ac_objext; then
8534   ac_compiler_gnu=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539         ac_compiler_gnu=no
8540 fi
8541
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8544
8545 fi
8546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8547 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8548 GXX=`test $ac_compiler_gnu = yes && echo yes`
8549 ac_test_CXXFLAGS=${CXXFLAGS+set}
8550 ac_save_CXXFLAGS=$CXXFLAGS
8551 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8552 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8553 if test "${ac_cv_prog_cxx_g+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8557    ac_cxx_werror_flag=yes
8558    ac_cv_prog_cxx_g=no
8559    CXXFLAGS="-g"
8560    cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h.  */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h.  */
8566
8567 int
8568 main ()
8569 {
8570
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_compile") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } && {
8589          test -z "$ac_cxx_werror_flag" ||
8590          test ! -s conftest.err
8591        } && test -s conftest.$ac_objext; then
8592   ac_cv_prog_cxx_g=yes
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597         CXXFLAGS=""
8598       cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h.  */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h.  */
8604
8605 int
8606 main ()
8607 {
8608
8609   ;
8610   return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8615 case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_compile") 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } && {
8627          test -z "$ac_cxx_werror_flag" ||
8628          test ! -s conftest.err
8629        } && test -s conftest.$ac_objext; then
8630   :
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8636          CXXFLAGS="-g"
8637          cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643
8644 int
8645 main ()
8646 {
8647
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8654 case "(($ac_try" in
8655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656   *) ac_try_echo=$ac_try;;
8657 esac
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659   (eval "$ac_compile") 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } && {
8666          test -z "$ac_cxx_werror_flag" ||
8667          test ! -s conftest.err
8668        } && test -s conftest.$ac_objext; then
8669   ac_cv_prog_cxx_g=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8685 fi
8686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8688 if test "$ac_test_CXXFLAGS" = set; then
8689   CXXFLAGS=$ac_save_CXXFLAGS
8690 elif test $ac_cv_prog_cxx_g = yes; then
8691   if test "$GXX" = yes; then
8692     CXXFLAGS="-g -O2"
8693   else
8694     CXXFLAGS="-g"
8695   fi
8696 else
8697   if test "$GXX" = yes; then
8698     CXXFLAGS="-O2"
8699   else
8700     CXXFLAGS=
8701   fi
8702 fi
8703 ac_ext=c
8704 ac_cpp='$CPP $CPPFLAGS'
8705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708
8709 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8710     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8711     (test "X$CXX" != "Xg++"))) ; then
8712   ac_ext=cpp
8713 ac_cpp='$CXXCPP $CPPFLAGS'
8714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8717 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8718 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8719 if test -z "$CXXCPP"; then
8720   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723       # Double quotes because CXXCPP needs to be expanded
8724     for CXXCPP in "$CXX -E" "/lib/cpp"
8725     do
8726       ac_preproc_ok=false
8727 for ac_cxx_preproc_warn_flag in '' yes
8728 do
8729   # Use a header file that comes with gcc, so configuring glibc
8730   # with a fresh cross-compiler works.
8731   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8732   # <limits.h> exists even on freestanding compilers.
8733   # On the NeXT, cc -E runs the code through the compiler's parser,
8734   # not just through cpp. "Syntax error" is here to catch this case.
8735   cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741 #ifdef __STDC__
8742 # include <limits.h>
8743 #else
8744 # include <assert.h>
8745 #endif
8746                      Syntax error
8747 _ACEOF
8748 if { (ac_try="$ac_cpp conftest.$ac_ext"
8749 case "(($ac_try" in
8750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751   *) ac_try_echo=$ac_try;;
8752 esac
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } >/dev/null && {
8761          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8762          test ! -s conftest.err
8763        }; then
8764   :
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769   # Broken: fails on valid input.
8770 continue
8771 fi
8772
8773 rm -f conftest.err conftest.$ac_ext
8774
8775   # OK, works on sane cases.  Now check whether nonexistent headers
8776   # can be detected and how.
8777   cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 #include <ac_nonexistent.h>
8784 _ACEOF
8785 if { (ac_try="$ac_cpp conftest.$ac_ext"
8786 case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8792   ac_status=$?
8793   grep -v '^ *+' conftest.er1 >conftest.err
8794   rm -f conftest.er1
8795   cat conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } >/dev/null && {
8798          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8799          test ! -s conftest.err
8800        }; then
8801   # Broken: success on invalid input.
8802 continue
8803 else
8804   echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8806
8807   # Passes both tests.
8808 ac_preproc_ok=:
8809 break
8810 fi
8811
8812 rm -f conftest.err conftest.$ac_ext
8813
8814 done
8815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8816 rm -f conftest.err conftest.$ac_ext
8817 if $ac_preproc_ok; then
8818   break
8819 fi
8820
8821     done
8822     ac_cv_prog_CXXCPP=$CXXCPP
8823
8824 fi
8825   CXXCPP=$ac_cv_prog_CXXCPP
8826 else
8827   ac_cv_prog_CXXCPP=$CXXCPP
8828 fi
8829 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8830 echo "${ECHO_T}$CXXCPP" >&6; }
8831 ac_preproc_ok=false
8832 for ac_cxx_preproc_warn_flag in '' yes
8833 do
8834   # Use a header file that comes with gcc, so configuring glibc
8835   # with a fresh cross-compiler works.
8836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837   # <limits.h> exists even on freestanding compilers.
8838   # On the NeXT, cc -E runs the code through the compiler's parser,
8839   # not just through cpp. "Syntax error" is here to catch this case.
8840   cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #ifdef __STDC__
8847 # include <limits.h>
8848 #else
8849 # include <assert.h>
8850 #endif
8851                      Syntax error
8852 _ACEOF
8853 if { (ac_try="$ac_cpp conftest.$ac_ext"
8854 case "(($ac_try" in
8855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856   *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8860   ac_status=$?
8861   grep -v '^ *+' conftest.er1 >conftest.err
8862   rm -f conftest.er1
8863   cat conftest.err >&5
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); } >/dev/null && {
8866          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8867          test ! -s conftest.err
8868        }; then
8869   :
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874   # Broken: fails on valid input.
8875 continue
8876 fi
8877
8878 rm -f conftest.err conftest.$ac_ext
8879
8880   # OK, works on sane cases.  Now check whether nonexistent headers
8881   # can be detected and how.
8882   cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888 #include <ac_nonexistent.h>
8889 _ACEOF
8890 if { (ac_try="$ac_cpp conftest.$ac_ext"
8891 case "(($ac_try" in
8892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893   *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } >/dev/null && {
8903          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8904          test ! -s conftest.err
8905        }; then
8906   # Broken: success on invalid input.
8907 continue
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912   # Passes both tests.
8913 ac_preproc_ok=:
8914 break
8915 fi
8916
8917 rm -f conftest.err conftest.$ac_ext
8918
8919 done
8920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8921 rm -f conftest.err conftest.$ac_ext
8922 if $ac_preproc_ok; then
8923   :
8924 else
8925   _lt_caught_CXX_error=yes
8926 fi
8927
8928 ac_ext=c
8929 ac_cpp='$CPP $CPPFLAGS'
8930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8933
8934 else
8935   _lt_caught_CXX_error=yes
8936 fi
8937
8938
8939
8940
8941
8942 # Set options
8943 # Check whether --enable-shared was given.
8944 if test "${enable_shared+set}" = set; then
8945   enableval=$enable_shared; p=${PACKAGE-default}
8946     case $enableval in
8947     yes) enable_shared=yes ;;
8948     no) enable_shared=no ;;
8949     *)
8950       enable_shared=no
8951       # Look at the argument we got.  We use all the common list separators.
8952       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8953       for pkg in $enableval; do
8954         IFS="$lt_save_ifs"
8955         if test "X$pkg" = "X$p"; then
8956           enable_shared=yes
8957         fi
8958       done
8959       IFS="$lt_save_ifs"
8960       ;;
8961     esac
8962 else
8963   enable_shared=yes
8964 fi
8965
8966
8967
8968
8969
8970
8971
8972 # Check whether --enable-static was given.
8973 if test "${enable_static+set}" = set; then
8974   enableval=$enable_static; p=${PACKAGE-default}
8975     case $enableval in
8976     yes) enable_static=yes ;;
8977     no) enable_static=no ;;
8978     *)
8979      enable_static=no
8980       # Look at the argument we got.  We use all the common list separators.
8981       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8982       for pkg in $enableval; do
8983         IFS="$lt_save_ifs"
8984         if test "X$pkg" = "X$p"; then
8985           enable_static=yes
8986         fi
8987       done
8988       IFS="$lt_save_ifs"
8989       ;;
8990     esac
8991 else
8992   enable_static=no
8993 fi
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004         enable_dlopen=no
9005
9006
9007   enable_win32_dll=no
9008
9009
9010
9011
9012
9013 # Check whether --with-pic was given.
9014 if test "${with_pic+set}" = set; then
9015   withval=$with_pic; pic_mode="$withval"
9016 else
9017   pic_mode=default
9018 fi
9019
9020
9021 test -z "$pic_mode" && pic_mode=default
9022
9023
9024
9025
9026
9027
9028
9029   # Check whether --enable-fast-install was given.
9030 if test "${enable_fast_install+set}" = set; then
9031   enableval=$enable_fast_install; p=${PACKAGE-default}
9032     case $enableval in
9033     yes) enable_fast_install=yes ;;
9034     no) enable_fast_install=no ;;
9035     *)
9036       enable_fast_install=no
9037       # Look at the argument we got.  We use all the common list separators.
9038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9039       for pkg in $enableval; do
9040         IFS="$lt_save_ifs"
9041         if test "X$pkg" = "X$p"; then
9042           enable_fast_install=yes
9043         fi
9044       done
9045       IFS="$lt_save_ifs"
9046       ;;
9047     esac
9048 else
9049   enable_fast_install=yes
9050 fi
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062 # This can be used to rebuild libtool when needed
9063 LIBTOOL_DEPS="$ltmain"
9064
9065 # Always use our own libtool.
9066 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 test -z "$LN_S" && LN_S="ln -s"
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 if test -n "${ZSH_VERSION+set}" ; then
9108    setopt NO_GLOB_SUBST
9109 fi
9110
9111 { echo "$as_me:$LINENO: checking for objdir" >&5
9112 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9113 if test "${lt_cv_objdir+set}" = set; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   rm -f .libs 2>/dev/null
9117 mkdir .libs 2>/dev/null
9118 if test -d .libs; then
9119   lt_cv_objdir=.libs
9120 else
9121   # MS-DOS does not allow filenames that begin with a dot.
9122   lt_cv_objdir=_libs
9123 fi
9124 rmdir .libs 2>/dev/null
9125 fi
9126 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9127 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9128 objdir=$lt_cv_objdir
9129
9130
9131
9132
9133
9134 cat >>confdefs.h <<_ACEOF
9135 #define LT_OBJDIR "$lt_cv_objdir/"
9136 _ACEOF
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154 case $host_os in
9155 aix3*)
9156   # AIX sometimes has problems with the GCC collect2 program.  For some
9157   # reason, if we set the COLLECT_NAMES environment variable, the problems
9158   # vanish in a puff of smoke.
9159   if test "X${COLLECT_NAMES+set}" != Xset; then
9160     COLLECT_NAMES=
9161     export COLLECT_NAMES
9162   fi
9163   ;;
9164 esac
9165
9166 # Sed substitution that helps us do robust quoting.  It backslashifies
9167 # metacharacters that are still active within double-quoted strings.
9168 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9169
9170 # Same as above, but do not quote variable references.
9171 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9172
9173 # Sed substitution to delay expansion of an escaped shell variable in a
9174 # double_quote_subst'ed string.
9175 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9176
9177 # Sed substitution to delay expansion of an escaped single quote.
9178 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9179
9180 # Sed substitution to avoid accidental globbing in evaled expressions
9181 no_glob_subst='s/\*/\\\*/g'
9182
9183 # Global variables:
9184 ofile=libtool
9185 can_build_shared=yes
9186
9187 # All known linkers require a `.a' archive for static linking (except MSVC,
9188 # which needs '.lib').
9189 libext=a
9190
9191 with_gnu_ld="$lt_cv_prog_gnu_ld"
9192
9193 old_CC="$CC"
9194 old_CFLAGS="$CFLAGS"
9195
9196 # Set sane defaults for various variables
9197 test -z "$CC" && CC=cc
9198 test -z "$LTCC" && LTCC=$CC
9199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9200 test -z "$LD" && LD=ld
9201 test -z "$ac_objext" && ac_objext=o
9202
9203 for cc_temp in $compiler""; do
9204   case $cc_temp in
9205     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9206     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9207     \-*) ;;
9208     *) break;;
9209   esac
9210 done
9211 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9212
9213
9214 # Only perform the check for file, if the check method requires it
9215 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9216 case $deplibs_check_method in
9217 file_magic*)
9218   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9219     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9220 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   case $MAGIC_CMD in
9225 [\\/*] |  ?:[\\/]*)
9226   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9227   ;;
9228 *)
9229   lt_save_MAGIC_CMD="$MAGIC_CMD"
9230   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9231   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9232   for ac_dir in $ac_dummy; do
9233     IFS="$lt_save_ifs"
9234     test -z "$ac_dir" && ac_dir=.
9235     if test -f $ac_dir/${ac_tool_prefix}file; then
9236       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9237       if test -n "$file_magic_test_file"; then
9238         case $deplibs_check_method in
9239         "file_magic "*)
9240           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9241           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9242           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9243             $EGREP "$file_magic_regex" > /dev/null; then
9244             :
9245           else
9246             cat <<_LT_EOF 1>&2
9247
9248 *** Warning: the command libtool uses to detect shared libraries,
9249 *** $file_magic_cmd, produces output that libtool cannot recognize.
9250 *** The result is that libtool may fail to recognize shared libraries
9251 *** as such.  This will affect the creation of libtool libraries that
9252 *** depend on shared libraries, but programs linked with such libtool
9253 *** libraries will work regardless of this problem.  Nevertheless, you
9254 *** may want to report the problem to your system manager and/or to
9255 *** bug-libtool@gnu.org
9256
9257 _LT_EOF
9258           fi ;;
9259         esac
9260       fi
9261       break
9262     fi
9263   done
9264   IFS="$lt_save_ifs"
9265   MAGIC_CMD="$lt_save_MAGIC_CMD"
9266   ;;
9267 esac
9268 fi
9269
9270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9271 if test -n "$MAGIC_CMD"; then
9272   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9273 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9274 else
9275   { echo "$as_me:$LINENO: result: no" >&5
9276 echo "${ECHO_T}no" >&6; }
9277 fi
9278
9279
9280
9281
9282
9283 if test -z "$lt_cv_path_MAGIC_CMD"; then
9284   if test -n "$ac_tool_prefix"; then
9285     { echo "$as_me:$LINENO: checking for file" >&5
9286 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9287 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   case $MAGIC_CMD in
9291 [\\/*] |  ?:[\\/]*)
9292   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9293   ;;
9294 *)
9295   lt_save_MAGIC_CMD="$MAGIC_CMD"
9296   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9297   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9298   for ac_dir in $ac_dummy; do
9299     IFS="$lt_save_ifs"
9300     test -z "$ac_dir" && ac_dir=.
9301     if test -f $ac_dir/file; then
9302       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9303       if test -n "$file_magic_test_file"; then
9304         case $deplibs_check_method in
9305         "file_magic "*)
9306           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9307           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9308           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9309             $EGREP "$file_magic_regex" > /dev/null; then
9310             :
9311           else
9312             cat <<_LT_EOF 1>&2
9313
9314 *** Warning: the command libtool uses to detect shared libraries,
9315 *** $file_magic_cmd, produces output that libtool cannot recognize.
9316 *** The result is that libtool may fail to recognize shared libraries
9317 *** as such.  This will affect the creation of libtool libraries that
9318 *** depend on shared libraries, but programs linked with such libtool
9319 *** libraries will work regardless of this problem.  Nevertheless, you
9320 *** may want to report the problem to your system manager and/or to
9321 *** bug-libtool@gnu.org
9322
9323 _LT_EOF
9324           fi ;;
9325         esac
9326       fi
9327       break
9328     fi
9329   done
9330   IFS="$lt_save_ifs"
9331   MAGIC_CMD="$lt_save_MAGIC_CMD"
9332   ;;
9333 esac
9334 fi
9335
9336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9337 if test -n "$MAGIC_CMD"; then
9338   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9339 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9340 else
9341   { echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6; }
9343 fi
9344
9345
9346   else
9347     MAGIC_CMD=:
9348   fi
9349 fi
9350
9351   fi
9352   ;;
9353 esac
9354
9355 # Use C for the default configuration in the libtool script
9356
9357 lt_save_CC="$CC"
9358 ac_ext=c
9359 ac_cpp='$CPP $CPPFLAGS'
9360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363
9364
9365 # Source file extension for C test sources.
9366 ac_ext=c
9367
9368 # Object file extension for compiled C test sources.
9369 objext=o
9370 objext=$objext
9371
9372 # Code to be used in simple compile tests
9373 lt_simple_compile_test_code="int some_variable = 0;"
9374
9375 # Code to be used in simple link tests
9376 lt_simple_link_test_code='int main(){return(0);}'
9377
9378
9379
9380
9381
9382
9383
9384 # If no C compiler was specified, use CC.
9385 LTCC=${LTCC-"$CC"}
9386
9387 # If no C compiler flags were specified, use CFLAGS.
9388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9389
9390 # Allow CC to be a program name with arguments.
9391 compiler=$CC
9392
9393 # Save the default compiler, since it gets overwritten when the other
9394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9395 compiler_DEFAULT=$CC
9396
9397 # save warnings/boilerplate of simple test code
9398 ac_outfile=conftest.$ac_objext
9399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401 _lt_compiler_boilerplate=`cat conftest.err`
9402 $RM conftest*
9403
9404 ac_outfile=conftest.$ac_objext
9405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9407 _lt_linker_boilerplate=`cat conftest.err`
9408 $RM -r conftest*
9409
9410
9411 ## CAVEAT EMPTOR:
9412 ## There is no encapsulation within the following macros, do not change
9413 ## the running order or otherwise move them around unless you know exactly
9414 ## what you are doing...
9415 if test -n "$compiler"; then
9416
9417 lt_prog_compiler_no_builtin_flag=
9418
9419 if test "$GCC" = yes; then
9420   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9421
9422   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   lt_cv_prog_compiler_rtti_exceptions=no
9428    ac_outfile=conftest.$ac_objext
9429    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9430    lt_compiler_flag="-fno-rtti -fno-exceptions"
9431    # Insert the option either (1) after the last *FLAGS variable, or
9432    # (2) before a word containing "conftest.", or (3) at the end.
9433    # Note that $ac_compile itself does not contain backslashes and begins
9434    # with a dollar sign (not a hyphen), so the echo should work correctly.
9435    # The option is referenced via a variable to avoid confusing sed.
9436    lt_compile=`echo "$ac_compile" | $SED \
9437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9439    -e 's:$: $lt_compiler_flag:'`
9440    (eval echo "\"\$as_me:9440: $lt_compile\"" >&5)
9441    (eval "$lt_compile" 2>conftest.err)
9442    ac_status=$?
9443    cat conftest.err >&5
9444    echo "$as_me:9444: \$? = $ac_status" >&5
9445    if (exit $ac_status) && test -s "$ac_outfile"; then
9446      # The compiler can only warn and ignore the option if not recognized
9447      # So say no if there are warnings other than the usual output.
9448      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9451        lt_cv_prog_compiler_rtti_exceptions=yes
9452      fi
9453    fi
9454    $RM conftest*
9455
9456 fi
9457 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9459
9460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9461     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9462 else
9463     :
9464 fi
9465
9466 fi
9467
9468
9469
9470
9471
9472
9473   lt_prog_compiler_wl=
9474 lt_prog_compiler_pic=
9475 lt_prog_compiler_static=
9476
9477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9479
9480   if test "$GCC" = yes; then
9481     lt_prog_compiler_wl='-Wl,'
9482     lt_prog_compiler_static='-static'
9483
9484     case $host_os in
9485       aix*)
9486       # All AIX code is PIC.
9487       if test "$host_cpu" = ia64; then
9488         # AIX 5 now supports IA64 processor
9489         lt_prog_compiler_static='-Bstatic'
9490       fi
9491       ;;
9492
9493     amigaos*)
9494       case $host_cpu in
9495       powerpc)
9496             # see comment about AmigaOS4 .so support
9497             lt_prog_compiler_pic='-fPIC'
9498         ;;
9499       m68k)
9500             # FIXME: we need at least 68020 code to build shared libraries, but
9501             # adding the `-m68020' flag to GCC prevents building anything better,
9502             # like `-m68040'.
9503             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9504         ;;
9505       esac
9506       ;;
9507
9508     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9509       # PIC is the default for these OSes.
9510       ;;
9511
9512     mingw* | cygwin* | pw32* | os2* | cegcc*)
9513       # This hack is so that the source file can tell whether it is being
9514       # built for inclusion in a dll (and should export symbols for example).
9515       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9516       # (--disable-auto-import) libraries
9517       lt_prog_compiler_pic='-DDLL_EXPORT'
9518       ;;
9519
9520     darwin* | rhapsody*)
9521       # PIC is the default on this platform
9522       # Common symbols not allowed in MH_DYLIB files
9523       lt_prog_compiler_pic='-fno-common'
9524       ;;
9525
9526     hpux*)
9527       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9528       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9529       # sets the default TLS model and affects inlining.
9530       case $host_cpu in
9531       hppa*64*)
9532         # +Z the default
9533         ;;
9534       *)
9535         lt_prog_compiler_pic='-fPIC'
9536         ;;
9537       esac
9538       ;;
9539
9540     interix[3-9]*)
9541       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9542       # Instead, we relocate shared libraries at runtime.
9543       ;;
9544
9545     msdosdjgpp*)
9546       # Just because we use GCC doesn't mean we suddenly get shared libraries
9547       # on systems that don't support them.
9548       lt_prog_compiler_can_build_shared=no
9549       enable_shared=no
9550       ;;
9551
9552     *nto* | *qnx*)
9553       # QNX uses GNU C++, but need to define -shared option too, otherwise
9554       # it will coredump.
9555       lt_prog_compiler_pic='-fPIC -shared'
9556       ;;
9557
9558     sysv4*MP*)
9559       if test -d /usr/nec; then
9560         lt_prog_compiler_pic=-Kconform_pic
9561       fi
9562       ;;
9563
9564     *)
9565       lt_prog_compiler_pic='-fPIC'
9566       ;;
9567     esac
9568   else
9569     # PORTME Check for flag to pass linker flags through the system compiler.
9570     case $host_os in
9571     aix*)
9572       lt_prog_compiler_wl='-Wl,'
9573       if test "$host_cpu" = ia64; then
9574         # AIX 5 now supports IA64 processor
9575         lt_prog_compiler_static='-Bstatic'
9576       else
9577         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9578       fi
9579       ;;
9580
9581     mingw* | cygwin* | pw32* | os2* | cegcc*)
9582       # This hack is so that the source file can tell whether it is being
9583       # built for inclusion in a dll (and should export symbols for example).
9584       lt_prog_compiler_pic='-DDLL_EXPORT'
9585       ;;
9586
9587     hpux9* | hpux10* | hpux11*)
9588       lt_prog_compiler_wl='-Wl,'
9589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9590       # not for PA HP-UX.
9591       case $host_cpu in
9592       hppa*64*|ia64*)
9593         # +Z the default
9594         ;;
9595       *)
9596         lt_prog_compiler_pic='+Z'
9597         ;;
9598       esac
9599       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9600       lt_prog_compiler_static='${wl}-a ${wl}archive'
9601       ;;
9602
9603     irix5* | irix6* | nonstopux*)
9604       lt_prog_compiler_wl='-Wl,'
9605       # PIC (with -KPIC) is the default.
9606       lt_prog_compiler_static='-non_shared'
9607       ;;
9608
9609     linux* | k*bsd*-gnu)
9610       case $cc_basename in
9611       # old Intel for x86_64 which still supported -KPIC.
9612       ecc*)
9613         lt_prog_compiler_wl='-Wl,'
9614         lt_prog_compiler_pic='-KPIC'
9615         lt_prog_compiler_static='-static'
9616         ;;
9617       # icc used to be incompatible with GCC.
9618       # ICC 10 doesn't accept -KPIC any more.
9619       icc* | ifort*)
9620         lt_prog_compiler_wl='-Wl,'
9621         lt_prog_compiler_pic='-fPIC'
9622         lt_prog_compiler_static='-static'
9623         ;;
9624       # Lahey Fortran 8.1.
9625       lf95*)
9626         lt_prog_compiler_wl='-Wl,'
9627         lt_prog_compiler_pic='--shared'
9628         lt_prog_compiler_static='--static'
9629         ;;
9630       pgcc* | pgf77* | pgf90* | pgf95*)
9631         # Portland Group compilers (*not* the Pentium gcc compiler,
9632         # which looks to be a dead project)
9633         lt_prog_compiler_wl='-Wl,'
9634         lt_prog_compiler_pic='-fpic'
9635         lt_prog_compiler_static='-Bstatic'
9636         ;;
9637       ccc*)
9638         lt_prog_compiler_wl='-Wl,'
9639         # All Alpha code is PIC.
9640         lt_prog_compiler_static='-non_shared'
9641         ;;
9642       xl*)
9643         # IBM XL C 8.0/Fortran 10.1 on PPC
9644         lt_prog_compiler_wl='-Wl,'
9645         lt_prog_compiler_pic='-qpic'
9646         lt_prog_compiler_static='-qstaticlink'
9647         ;;
9648       *)
9649         case `$CC -V 2>&1 | sed 5q` in
9650         *Sun\ C*)
9651           # Sun C 5.9
9652           lt_prog_compiler_pic='-KPIC'
9653           lt_prog_compiler_static='-Bstatic'
9654           lt_prog_compiler_wl='-Wl,'
9655           ;;
9656         *Sun\ F*)
9657           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9658           lt_prog_compiler_pic='-KPIC'
9659           lt_prog_compiler_static='-Bstatic'
9660           lt_prog_compiler_wl=''
9661           ;;
9662         esac
9663         ;;
9664       esac
9665       ;;
9666
9667     newsos6)
9668       lt_prog_compiler_pic='-KPIC'
9669       lt_prog_compiler_static='-Bstatic'
9670       ;;
9671
9672     *nto* | *qnx*)
9673       # QNX uses GNU C++, but need to define -shared option too, otherwise
9674       # it will coredump.
9675       lt_prog_compiler_pic='-fPIC -shared'
9676       ;;
9677
9678     osf3* | osf4* | osf5*)
9679       lt_prog_compiler_wl='-Wl,'
9680       # All OSF/1 code is PIC.
9681       lt_prog_compiler_static='-non_shared'
9682       ;;
9683
9684     rdos*)
9685       lt_prog_compiler_static='-non_shared'
9686       ;;
9687
9688     solaris*)
9689       lt_prog_compiler_pic='-KPIC'
9690       lt_prog_compiler_static='-Bstatic'
9691       case $cc_basename in
9692       f77* | f90* | f95*)
9693         lt_prog_compiler_wl='-Qoption ld ';;
9694       *)
9695         lt_prog_compiler_wl='-Wl,';;
9696       esac
9697       ;;
9698
9699     sunos4*)
9700       lt_prog_compiler_wl='-Qoption ld '
9701       lt_prog_compiler_pic='-PIC'
9702       lt_prog_compiler_static='-Bstatic'
9703       ;;
9704
9705     sysv4 | sysv4.2uw2* | sysv4.3*)
9706       lt_prog_compiler_wl='-Wl,'
9707       lt_prog_compiler_pic='-KPIC'
9708       lt_prog_compiler_static='-Bstatic'
9709       ;;
9710
9711     sysv4*MP*)
9712       if test -d /usr/nec ;then
9713         lt_prog_compiler_pic='-Kconform_pic'
9714         lt_prog_compiler_static='-Bstatic'
9715       fi
9716       ;;
9717
9718     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9719       lt_prog_compiler_wl='-Wl,'
9720       lt_prog_compiler_pic='-KPIC'
9721       lt_prog_compiler_static='-Bstatic'
9722       ;;
9723
9724     unicos*)
9725       lt_prog_compiler_wl='-Wl,'
9726       lt_prog_compiler_can_build_shared=no
9727       ;;
9728
9729     uts4*)
9730       lt_prog_compiler_pic='-pic'
9731       lt_prog_compiler_static='-Bstatic'
9732       ;;
9733
9734     *)
9735       lt_prog_compiler_can_build_shared=no
9736       ;;
9737     esac
9738   fi
9739
9740 case $host_os in
9741   # For platforms which do not support PIC, -DPIC is meaningless:
9742   *djgpp*)
9743     lt_prog_compiler_pic=
9744     ;;
9745   *)
9746     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9747     ;;
9748 esac
9749 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9750 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9751
9752
9753
9754
9755
9756
9757 #
9758 # Check to make sure the PIC flag actually works.
9759 #
9760 if test -n "$lt_prog_compiler_pic"; then
9761   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9763 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766   lt_cv_prog_compiler_pic_works=no
9767    ac_outfile=conftest.$ac_objext
9768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9770    # Insert the option either (1) after the last *FLAGS variable, or
9771    # (2) before a word containing "conftest.", or (3) at the end.
9772    # Note that $ac_compile itself does not contain backslashes and begins
9773    # with a dollar sign (not a hyphen), so the echo should work correctly.
9774    # The option is referenced via a variable to avoid confusing sed.
9775    lt_compile=`echo "$ac_compile" | $SED \
9776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9778    -e 's:$: $lt_compiler_flag:'`
9779    (eval echo "\"\$as_me:9779: $lt_compile\"" >&5)
9780    (eval "$lt_compile" 2>conftest.err)
9781    ac_status=$?
9782    cat conftest.err >&5
9783    echo "$as_me:9783: \$? = $ac_status" >&5
9784    if (exit $ac_status) && test -s "$ac_outfile"; then
9785      # The compiler can only warn and ignore the option if not recognized
9786      # So say no if there are warnings other than the usual output.
9787      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9790        lt_cv_prog_compiler_pic_works=yes
9791      fi
9792    fi
9793    $RM conftest*
9794
9795 fi
9796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9797 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9798
9799 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9800     case $lt_prog_compiler_pic in
9801      "" | " "*) ;;
9802      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9803      esac
9804 else
9805     lt_prog_compiler_pic=
9806      lt_prog_compiler_can_build_shared=no
9807 fi
9808
9809 fi
9810
9811
9812
9813
9814
9815
9816 #
9817 # Check to make sure the static flag actually works.
9818 #
9819 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9820 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9821 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9822 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   lt_cv_prog_compiler_static_works=no
9826    save_LDFLAGS="$LDFLAGS"
9827    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9828    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9829    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9830      # The linker can only warn and ignore the option if not recognized
9831      # So say no if there are warnings
9832      if test -s conftest.err; then
9833        # Append any errors to the config.log.
9834        cat conftest.err 1>&5
9835        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9836        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9837        if diff conftest.exp conftest.er2 >/dev/null; then
9838          lt_cv_prog_compiler_static_works=yes
9839        fi
9840      else
9841        lt_cv_prog_compiler_static_works=yes
9842      fi
9843    fi
9844    $RM -r conftest*
9845    LDFLAGS="$save_LDFLAGS"
9846
9847 fi
9848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9849 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9850
9851 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9852     :
9853 else
9854     lt_prog_compiler_static=
9855 fi
9856
9857
9858
9859
9860
9861
9862
9863   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   lt_cv_prog_compiler_c_o=no
9869    $RM -r conftest 2>/dev/null
9870    mkdir conftest
9871    cd conftest
9872    mkdir out
9873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9874
9875    lt_compiler_flag="-o out/conftest2.$ac_objext"
9876    # Insert the option either (1) after the last *FLAGS variable, or
9877    # (2) before a word containing "conftest.", or (3) at the end.
9878    # Note that $ac_compile itself does not contain backslashes and begins
9879    # with a dollar sign (not a hyphen), so the echo should work correctly.
9880    lt_compile=`echo "$ac_compile" | $SED \
9881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9883    -e 's:$: $lt_compiler_flag:'`
9884    (eval echo "\"\$as_me:9884: $lt_compile\"" >&5)
9885    (eval "$lt_compile" 2>out/conftest.err)
9886    ac_status=$?
9887    cat out/conftest.err >&5
9888    echo "$as_me:9888: \$? = $ac_status" >&5
9889    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9890    then
9891      # The compiler can only warn and ignore the option if not recognized
9892      # So say no if there are warnings
9893      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9894      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9895      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9896        lt_cv_prog_compiler_c_o=yes
9897      fi
9898    fi
9899    chmod u+w . 2>&5
9900    $RM conftest*
9901    # SGI C++ compiler will create directory out/ii_files/ for
9902    # template instantiation
9903    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9904    $RM out/* && rmdir out
9905    cd ..
9906    $RM -r conftest
9907    $RM conftest*
9908
9909 fi
9910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9912
9913
9914
9915
9916
9917
9918   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   lt_cv_prog_compiler_c_o=no
9924    $RM -r conftest 2>/dev/null
9925    mkdir conftest
9926    cd conftest
9927    mkdir out
9928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9929
9930    lt_compiler_flag="-o out/conftest2.$ac_objext"
9931    # Insert the option either (1) after the last *FLAGS variable, or
9932    # (2) before a word containing "conftest.", or (3) at the end.
9933    # Note that $ac_compile itself does not contain backslashes and begins
9934    # with a dollar sign (not a hyphen), so the echo should work correctly.
9935    lt_compile=`echo "$ac_compile" | $SED \
9936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9938    -e 's:$: $lt_compiler_flag:'`
9939    (eval echo "\"\$as_me:9939: $lt_compile\"" >&5)
9940    (eval "$lt_compile" 2>out/conftest.err)
9941    ac_status=$?
9942    cat out/conftest.err >&5
9943    echo "$as_me:9943: \$? = $ac_status" >&5
9944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9945    then
9946      # The compiler can only warn and ignore the option if not recognized
9947      # So say no if there are warnings
9948      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9949      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9950      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9951        lt_cv_prog_compiler_c_o=yes
9952      fi
9953    fi
9954    chmod u+w . 2>&5
9955    $RM conftest*
9956    # SGI C++ compiler will create directory out/ii_files/ for
9957    # template instantiation
9958    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9959    $RM out/* && rmdir out
9960    cd ..
9961    $RM -r conftest
9962    $RM conftest*
9963
9964 fi
9965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9967
9968
9969
9970
9971 hard_links="nottested"
9972 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9973   # do not overwrite the value of need_locks provided by the user
9974   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9976   hard_links=yes
9977   $RM conftest*
9978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979   touch conftest.a
9980   ln conftest.a conftest.b 2>&5 || hard_links=no
9981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9982   { echo "$as_me:$LINENO: result: $hard_links" >&5
9983 echo "${ECHO_T}$hard_links" >&6; }
9984   if test "$hard_links" = no; then
9985     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9987     need_locks=warn
9988   fi
9989 else
9990   need_locks=no
9991 fi
9992
9993
9994
9995
9996
9997
9998   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10000
10001   runpath_var=
10002   allow_undefined_flag=
10003   always_export_symbols=no
10004   archive_cmds=
10005   archive_expsym_cmds=
10006   compiler_needs_object=no
10007   enable_shared_with_static_runtimes=no
10008   export_dynamic_flag_spec=
10009   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10010   hardcode_automatic=no
10011   hardcode_direct=no
10012   hardcode_direct_absolute=no
10013   hardcode_libdir_flag_spec=
10014   hardcode_libdir_flag_spec_ld=
10015   hardcode_libdir_separator=
10016   hardcode_minus_L=no
10017   hardcode_shlibpath_var=unsupported
10018   inherit_rpath=no
10019   link_all_deplibs=unknown
10020   module_cmds=
10021   module_expsym_cmds=
10022   old_archive_from_new_cmds=
10023   old_archive_from_expsyms_cmds=
10024   thread_safe_flag_spec=
10025   whole_archive_flag_spec=
10026   # include_expsyms should be a list of space-separated symbols to be *always*
10027   # included in the symbol list
10028   include_expsyms=
10029   # exclude_expsyms can be an extended regexp of symbols to exclude
10030   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10031   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10032   # as well as any symbol that contains `d'.
10033   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10034   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10035   # platforms (ab)use it in PIC code, but their linkers get confused if
10036   # the symbol is explicitly referenced.  Since portable code cannot
10037   # rely on this symbol name, it's probably fine to never include it in
10038   # preloaded symbol tables.
10039   # Exclude shared library initialization/finalization symbols.
10040   extract_expsyms_cmds=
10041
10042   case $host_os in
10043   cygwin* | mingw* | pw32* | cegcc*)
10044     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10045     # When not using gcc, we currently assume that we are using
10046     # Microsoft Visual C++.
10047     if test "$GCC" != yes; then
10048       with_gnu_ld=no
10049     fi
10050     ;;
10051   interix*)
10052     # we just hope/assume this is gcc and not c89 (= MSVC++)
10053     with_gnu_ld=yes
10054     ;;
10055   openbsd*)
10056     with_gnu_ld=no
10057     ;;
10058   esac
10059
10060   ld_shlibs=yes
10061   if test "$with_gnu_ld" = yes; then
10062     # If archive_cmds runs LD, not CC, wlarc should be empty
10063     wlarc='${wl}'
10064
10065     # Set some defaults for GNU ld with shared library support. These
10066     # are reset later if shared libraries are not supported. Putting them
10067     # here allows them to be overridden if necessary.
10068     runpath_var=LD_RUN_PATH
10069     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070     export_dynamic_flag_spec='${wl}--export-dynamic'
10071     # ancient GNU ld didn't support --whole-archive et. al.
10072     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10073       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10074     else
10075       whole_archive_flag_spec=
10076     fi
10077     supports_anon_versioning=no
10078     case `$LD -v 2>&1` in
10079       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082       *\ 2.11.*) ;; # other 2.11 versions
10083       *) supports_anon_versioning=yes ;;
10084     esac
10085
10086     # See if GNU ld supports shared libraries.
10087     case $host_os in
10088     aix[3-9]*)
10089       # On AIX/PPC, the GNU linker is very broken
10090       if test "$host_cpu" != ia64; then
10091         ld_shlibs=no
10092         cat <<_LT_EOF 1>&2
10093
10094 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10095 *** to be unable to reliably create shared libraries on AIX.
10096 *** Therefore, libtool is disabling shared libraries support.  If you
10097 *** really care for shared libraries, you may want to modify your PATH
10098 *** so that a non-GNU linker is found, and then restart.
10099
10100 _LT_EOF
10101       fi
10102       ;;
10103
10104     amigaos*)
10105       case $host_cpu in
10106       powerpc)
10107             # see comment about AmigaOS4 .so support
10108             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109             archive_expsym_cmds=''
10110         ;;
10111       m68k)
10112             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10113             hardcode_libdir_flag_spec='-L$libdir'
10114             hardcode_minus_L=yes
10115         ;;
10116       esac
10117       ;;
10118
10119     beos*)
10120       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121         allow_undefined_flag=unsupported
10122         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10123         # support --undefined.  This deserves some investigation.  FIXME
10124         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10125       else
10126         ld_shlibs=no
10127       fi
10128       ;;
10129
10130     cygwin* | mingw* | pw32* | cegcc*)
10131       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10132       # as there is no search path for DLLs.
10133       hardcode_libdir_flag_spec='-L$libdir'
10134       allow_undefined_flag=unsupported
10135       always_export_symbols=no
10136       enable_shared_with_static_runtimes=yes
10137       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10138
10139       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10140         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10141         # If the export-symbols file already is a .def file (1st line
10142         # is EXPORTS), use it as is; otherwise, prepend...
10143         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10144           cp $export_symbols $output_objdir/$soname.def;
10145         else
10146           echo EXPORTS > $output_objdir/$soname.def;
10147           cat $export_symbols >> $output_objdir/$soname.def;
10148         fi~
10149         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10150       else
10151         ld_shlibs=no
10152       fi
10153       ;;
10154
10155     interix[3-9]*)
10156       hardcode_direct=no
10157       hardcode_shlibpath_var=no
10158       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10159       export_dynamic_flag_spec='${wl}-E'
10160       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10161       # Instead, shared libraries are loaded at an image base (0x10000000 by
10162       # default) and relocated if they conflict, which is a slow very memory
10163       # consuming and fragmenting process.  To avoid this, we pick a random,
10164       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10165       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10166       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10167       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10168       ;;
10169
10170     gnu* | linux* | tpf* | k*bsd*-gnu)
10171       tmp_diet=no
10172       if test "$host_os" = linux-dietlibc; then
10173         case $cc_basename in
10174           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10175         esac
10176       fi
10177       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10178          && test "$tmp_diet" = no
10179       then
10180         tmp_addflag=
10181         tmp_sharedflag='-shared'
10182         case $cc_basename,$host_cpu in
10183         pgcc*)                          # Portland Group C compiler
10184           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10185           tmp_addflag=' $pic_flag'
10186           ;;
10187         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10188           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10189           tmp_addflag=' $pic_flag -Mnomain' ;;
10190         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10191           tmp_addflag=' -i_dynamic' ;;
10192         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10193           tmp_addflag=' -i_dynamic -nofor_main' ;;
10194         ifc* | ifort*)                  # Intel Fortran compiler
10195           tmp_addflag=' -nofor_main' ;;
10196         lf95*)                          # Lahey Fortran 8.1
10197           whole_archive_flag_spec=
10198           tmp_sharedflag='--shared' ;;
10199         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10200           tmp_sharedflag='-qmkshrobj'
10201           tmp_addflag= ;;
10202         esac
10203         case `$CC -V 2>&1 | sed 5q` in
10204         *Sun\ C*)                       # Sun C 5.9
10205           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10206           compiler_needs_object=yes
10207           tmp_sharedflag='-G' ;;
10208         *Sun\ F*)                       # Sun Fortran 8.3
10209           tmp_sharedflag='-G' ;;
10210         esac
10211         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212
10213         if test "x$supports_anon_versioning" = xyes; then
10214           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10215             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10216             echo "local: *; };" >> $output_objdir/$libname.ver~
10217             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10218         fi
10219
10220         case $cc_basename in
10221         xlf*)
10222           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10223           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10224           hardcode_libdir_flag_spec=
10225           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10226           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10227           if test "x$supports_anon_versioning" = xyes; then
10228             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10229               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10230               echo "local: *; };" >> $output_objdir/$libname.ver~
10231               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10232           fi
10233           ;;
10234         esac
10235       else
10236         ld_shlibs=no
10237       fi
10238       ;;
10239
10240     netbsd*)
10241       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10242         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10243         wlarc=
10244       else
10245         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10247       fi
10248       ;;
10249
10250     solaris*)
10251       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10252         ld_shlibs=no
10253         cat <<_LT_EOF 1>&2
10254
10255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10256 *** create shared libraries on Solaris systems.  Therefore, libtool
10257 *** is disabling shared libraries support.  We urge you to upgrade GNU
10258 *** binutils to release 2.9.1 or newer.  Another option is to modify
10259 *** your PATH or compiler configuration so that the native linker is
10260 *** used, and then restart.
10261
10262 _LT_EOF
10263       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10264         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10265         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10266       else
10267         ld_shlibs=no
10268       fi
10269       ;;
10270
10271     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10272       case `$LD -v 2>&1` in
10273         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10274         ld_shlibs=no
10275         cat <<_LT_EOF 1>&2
10276
10277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10278 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10279 *** is disabling shared libraries support.  We urge you to upgrade GNU
10280 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10281 *** your PATH or compiler configuration so that the native linker is
10282 *** used, and then restart.
10283
10284 _LT_EOF
10285         ;;
10286         *)
10287           # For security reasons, it is highly recommended that you always
10288           # use absolute paths for naming shared libraries, and exclude the
10289           # DT_RUNPATH tag from executables and libraries.  But doing so
10290           # requires that you compile everything twice, which is a pain.
10291           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10293             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10294             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10295           else
10296             ld_shlibs=no
10297           fi
10298         ;;
10299       esac
10300       ;;
10301
10302     sunos4*)
10303       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10304       wlarc=
10305       hardcode_direct=yes
10306       hardcode_shlibpath_var=no
10307       ;;
10308
10309     *)
10310       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10311         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10312         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10313       else
10314         ld_shlibs=no
10315       fi
10316       ;;
10317     esac
10318
10319     if test "$ld_shlibs" = no; then
10320       runpath_var=
10321       hardcode_libdir_flag_spec=
10322       export_dynamic_flag_spec=
10323       whole_archive_flag_spec=
10324     fi
10325   else
10326     # PORTME fill in a description of your system's linker (not GNU ld)
10327     case $host_os in
10328     aix3*)
10329       allow_undefined_flag=unsupported
10330       always_export_symbols=yes
10331       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10332       # Note: this linker hardcodes the directories in LIBPATH if there
10333       # are no directories specified by -L.
10334       hardcode_minus_L=yes
10335       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10336         # Neither direct hardcoding nor static linking is supported with a
10337         # broken collect2.
10338         hardcode_direct=unsupported
10339       fi
10340       ;;
10341
10342     aix[4-9]*)
10343       if test "$host_cpu" = ia64; then
10344         # On IA64, the linker does run time linking by default, so we don't
10345         # have to do anything special.
10346         aix_use_runtimelinking=no
10347         exp_sym_flag='-Bexport'
10348         no_entry_flag=""
10349       else
10350         # If we're using GNU nm, then we don't want the "-C" option.
10351         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10352         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10353           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10354         else
10355           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10356         fi
10357         aix_use_runtimelinking=no
10358
10359         # Test if we are trying to use run time linking or normal
10360         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10361         # need to do runtime linking.
10362         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10363           for ld_flag in $LDFLAGS; do
10364           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10365             aix_use_runtimelinking=yes
10366             break
10367           fi
10368           done
10369           ;;
10370         esac
10371
10372         exp_sym_flag='-bexport'
10373         no_entry_flag='-bnoentry'
10374       fi
10375
10376       # When large executables or shared objects are built, AIX ld can
10377       # have problems creating the table of contents.  If linking a library
10378       # or program results in "error TOC overflow" add -mminimal-toc to
10379       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10380       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10381
10382       archive_cmds=''
10383       hardcode_direct=yes
10384       hardcode_direct_absolute=yes
10385       hardcode_libdir_separator=':'
10386       link_all_deplibs=yes
10387       file_list_spec='${wl}-f,'
10388
10389       if test "$GCC" = yes; then
10390         case $host_os in aix4.[012]|aix4.[012].*)
10391         # We only want to do this on AIX 4.2 and lower, the check
10392         # below for broken collect2 doesn't work under 4.3+
10393           collect2name=`${CC} -print-prog-name=collect2`
10394           if test -f "$collect2name" &&
10395            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10396           then
10397           # We have reworked collect2
10398           :
10399           else
10400           # We have old collect2
10401           hardcode_direct=unsupported
10402           # It fails to find uninstalled libraries when the uninstalled
10403           # path is not listed in the libpath.  Setting hardcode_minus_L
10404           # to unsupported forces relinking
10405           hardcode_minus_L=yes
10406           hardcode_libdir_flag_spec='-L$libdir'
10407           hardcode_libdir_separator=
10408           fi
10409           ;;
10410         esac
10411         shared_flag='-shared'
10412         if test "$aix_use_runtimelinking" = yes; then
10413           shared_flag="$shared_flag "'${wl}-G'
10414         fi
10415       else
10416         # not using gcc
10417         if test "$host_cpu" = ia64; then
10418         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10419         # chokes on -Wl,-G. The following line is correct:
10420           shared_flag='-G'
10421         else
10422           if test "$aix_use_runtimelinking" = yes; then
10423             shared_flag='${wl}-G'
10424           else
10425             shared_flag='${wl}-bM:SRE'
10426           fi
10427         fi
10428       fi
10429
10430       export_dynamic_flag_spec='${wl}-bexpall'
10431       # It seems that -bexpall does not export symbols beginning with
10432       # underscore (_), so it is better to generate a list of symbols to export.
10433       always_export_symbols=yes
10434       if test "$aix_use_runtimelinking" = yes; then
10435         # Warning - without using the other runtime loading flags (-brtl),
10436         # -berok will link without error, but may produce a broken library.
10437         allow_undefined_flag='-berok'
10438         # Determine the default libpath from the value encoded in an
10439         # empty executable.
10440         cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h.  */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h.  */
10446
10447 int
10448 main ()
10449 {
10450
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459   *) ac_try_echo=$ac_try;;
10460 esac
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462   (eval "$ac_link") 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } && {
10469          test -z "$ac_c_werror_flag" ||
10470          test ! -s conftest.err
10471        } && test -s conftest$ac_exeext &&
10472        $as_test_x conftest$ac_exeext; then
10473
10474 lt_aix_libpath_sed='
10475     /Import File Strings/,/^$/ {
10476         /^0/ {
10477             s/^0  *\(.*\)$/\1/
10478             p
10479         }
10480     }'
10481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 # Check for a 64-bit object if we didn't find anything.
10483 if test -z "$aix_libpath"; then
10484   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 fi
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490
10491 fi
10492
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494       conftest$ac_exeext conftest.$ac_ext
10495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10496
10497         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10498         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10499       else
10500         if test "$host_cpu" = ia64; then
10501           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10502           allow_undefined_flag="-z nodefs"
10503           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10504         else
10505          # Determine the default libpath from the value encoded in an
10506          # empty executable.
10507          cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513
10514 int
10515 main ()
10516 {
10517
10518   ;
10519   return 0;
10520 }
10521 _ACEOF
10522 rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_link") 2>conftest.er1
10530   ac_status=$?
10531   grep -v '^ *+' conftest.er1 >conftest.err
10532   rm -f conftest.er1
10533   cat conftest.err >&5
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } && {
10536          test -z "$ac_c_werror_flag" ||
10537          test ! -s conftest.err
10538        } && test -s conftest$ac_exeext &&
10539        $as_test_x conftest$ac_exeext; then
10540
10541 lt_aix_libpath_sed='
10542     /Import File Strings/,/^$/ {
10543         /^0/ {
10544             s/^0  *\(.*\)$/\1/
10545             p
10546         }
10547     }'
10548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 # Check for a 64-bit object if we didn't find anything.
10550 if test -z "$aix_libpath"; then
10551   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552 fi
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557
10558 fi
10559
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561       conftest$ac_exeext conftest.$ac_ext
10562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10563
10564          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10565           # Warning - without using the other run time loading flags,
10566           # -berok will link without error, but may produce a broken library.
10567           no_undefined_flag=' ${wl}-bernotok'
10568           allow_undefined_flag=' ${wl}-berok'
10569           # Exported symbols can be pulled into shared objects from archives
10570           whole_archive_flag_spec='$convenience'
10571           archive_cmds_need_lc=yes
10572           # This is similar to how AIX traditionally builds its shared libraries.
10573           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10574         fi
10575       fi
10576       ;;
10577
10578     amigaos*)
10579       case $host_cpu in
10580       powerpc)
10581             # see comment about AmigaOS4 .so support
10582             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10583             archive_expsym_cmds=''
10584         ;;
10585       m68k)
10586             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10587             hardcode_libdir_flag_spec='-L$libdir'
10588             hardcode_minus_L=yes
10589         ;;
10590       esac
10591       ;;
10592
10593     bsdi[45]*)
10594       export_dynamic_flag_spec=-rdynamic
10595       ;;
10596
10597     cygwin* | mingw* | pw32* | cegcc*)
10598       # When not using gcc, we currently assume that we are using
10599       # Microsoft Visual C++.
10600       # hardcode_libdir_flag_spec is actually meaningless, as there is
10601       # no search path for DLLs.
10602       hardcode_libdir_flag_spec=' '
10603       allow_undefined_flag=unsupported
10604       # Tell ltmain to make .lib files, not .a files.
10605       libext=lib
10606       # Tell ltmain to make .dll files, not .so files.
10607       shrext_cmds=".dll"
10608       # FIXME: Setting linknames here is a bad hack.
10609       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10610       # The linker will automatically build a .lib file if we build a DLL.
10611       old_archive_from_new_cmds='true'
10612       # FIXME: Should let the user specify the lib program.
10613       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10614       fix_srcfile_path='`cygpath -w "$srcfile"`'
10615       enable_shared_with_static_runtimes=yes
10616       ;;
10617
10618     darwin* | rhapsody*)
10619
10620
10621   archive_cmds_need_lc=no
10622   hardcode_direct=no
10623   hardcode_automatic=yes
10624   hardcode_shlibpath_var=unsupported
10625   whole_archive_flag_spec=''
10626   link_all_deplibs=yes
10627   allow_undefined_flag="$_lt_dar_allow_undefined"
10628   case $cc_basename in
10629      ifort*) _lt_dar_can_shared=yes ;;
10630      *) _lt_dar_can_shared=$GCC ;;
10631   esac
10632   if test "$_lt_dar_can_shared" = "yes"; then
10633     output_verbose_link_cmd=echo
10634     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10635     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10636     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10637     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10638
10639   else
10640   ld_shlibs=no
10641   fi
10642
10643       ;;
10644
10645     dgux*)
10646       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647       hardcode_libdir_flag_spec='-L$libdir'
10648       hardcode_shlibpath_var=no
10649       ;;
10650
10651     freebsd1*)
10652       ld_shlibs=no
10653       ;;
10654
10655     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10656     # support.  Future versions do this automatically, but an explicit c++rt0.o
10657     # does not break anything, and helps significantly (at the cost of a little
10658     # extra space).
10659     freebsd2.2*)
10660       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10661       hardcode_libdir_flag_spec='-R$libdir'
10662       hardcode_direct=yes
10663       hardcode_shlibpath_var=no
10664       ;;
10665
10666     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10667     freebsd2*)
10668       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10669       hardcode_direct=yes
10670       hardcode_minus_L=yes
10671       hardcode_shlibpath_var=no
10672       ;;
10673
10674     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10675     freebsd* | dragonfly*)
10676       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10677       hardcode_libdir_flag_spec='-R$libdir'
10678       hardcode_direct=yes
10679       hardcode_shlibpath_var=no
10680       ;;
10681
10682     hpux9*)
10683       if test "$GCC" = yes; then
10684         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10685       else
10686         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10687       fi
10688       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10689       hardcode_libdir_separator=:
10690       hardcode_direct=yes
10691
10692       # hardcode_minus_L: Not really in the search PATH,
10693       # but as the default location of the library.
10694       hardcode_minus_L=yes
10695       export_dynamic_flag_spec='${wl}-E'
10696       ;;
10697
10698     hpux10*)
10699       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10700         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701       else
10702         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10703       fi
10704       if test "$with_gnu_ld" = no; then
10705         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10706         hardcode_libdir_flag_spec_ld='+b $libdir'
10707         hardcode_libdir_separator=:
10708         hardcode_direct=yes
10709         hardcode_direct_absolute=yes
10710         export_dynamic_flag_spec='${wl}-E'
10711         # hardcode_minus_L: Not really in the search PATH,
10712         # but as the default location of the library.
10713         hardcode_minus_L=yes
10714       fi
10715       ;;
10716
10717     hpux11*)
10718       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10719         case $host_cpu in
10720         hppa*64*)
10721           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         ia64*)
10724           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         *)
10727           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         esac
10730       else
10731         case $host_cpu in
10732         hppa*64*)
10733           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10734           ;;
10735         ia64*)
10736           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10737           ;;
10738         *)
10739           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10740           ;;
10741         esac
10742       fi
10743       if test "$with_gnu_ld" = no; then
10744         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10745         hardcode_libdir_separator=:
10746
10747         case $host_cpu in
10748         hppa*64*|ia64*)
10749           hardcode_direct=no
10750           hardcode_shlibpath_var=no
10751           ;;
10752         *)
10753           hardcode_direct=yes
10754           hardcode_direct_absolute=yes
10755           export_dynamic_flag_spec='${wl}-E'
10756
10757           # hardcode_minus_L: Not really in the search PATH,
10758           # but as the default location of the library.
10759           hardcode_minus_L=yes
10760           ;;
10761         esac
10762       fi
10763       ;;
10764
10765     irix5* | irix6* | nonstopux*)
10766       if test "$GCC" = yes; then
10767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10768         # Try to use the -exported_symbol ld option, if it does not
10769         # work, assume that -exports_file does not work either and
10770         # implicitly export all symbols.
10771         save_LDFLAGS="$LDFLAGS"
10772         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10773         cat >conftest.$ac_ext <<_ACEOF
10774 int foo(void) {}
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_link") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && {
10790          test -z "$ac_c_werror_flag" ||
10791          test ! -s conftest.err
10792        } && test -s conftest$ac_exeext &&
10793        $as_test_x conftest$ac_exeext; then
10794   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10795
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800
10801 fi
10802
10803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10804       conftest$ac_exeext conftest.$ac_ext
10805         LDFLAGS="$save_LDFLAGS"
10806       else
10807         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10808         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10809       fi
10810       archive_cmds_need_lc='no'
10811       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10812       hardcode_libdir_separator=:
10813       inherit_rpath=yes
10814       link_all_deplibs=yes
10815       ;;
10816
10817     netbsd*)
10818       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10819         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10820       else
10821         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10822       fi
10823       hardcode_libdir_flag_spec='-R$libdir'
10824       hardcode_direct=yes
10825       hardcode_shlibpath_var=no
10826       ;;
10827
10828     newsos6)
10829       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830       hardcode_direct=yes
10831       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10832       hardcode_libdir_separator=:
10833       hardcode_shlibpath_var=no
10834       ;;
10835
10836     *nto* | *qnx*)
10837       ;;
10838
10839     openbsd*)
10840       if test -f /usr/libexec/ld.so; then
10841         hardcode_direct=yes
10842         hardcode_shlibpath_var=no
10843         hardcode_direct_absolute=yes
10844         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10845           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10847           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10848           export_dynamic_flag_spec='${wl}-E'
10849         else
10850           case $host_os in
10851            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10852              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10853              hardcode_libdir_flag_spec='-R$libdir'
10854              ;;
10855            *)
10856              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10857              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10858              ;;
10859           esac
10860         fi
10861       else
10862         ld_shlibs=no
10863       fi
10864       ;;
10865
10866     os2*)
10867       hardcode_libdir_flag_spec='-L$libdir'
10868       hardcode_minus_L=yes
10869       allow_undefined_flag=unsupported
10870       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10871       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10872       ;;
10873
10874     osf3*)
10875       if test "$GCC" = yes; then
10876         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10877         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10878       else
10879         allow_undefined_flag=' -expect_unresolved \*'
10880         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10881       fi
10882       archive_cmds_need_lc='no'
10883       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10884       hardcode_libdir_separator=:
10885       ;;
10886
10887     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10888       if test "$GCC" = yes; then
10889         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10890         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10891         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10892       else
10893         allow_undefined_flag=' -expect_unresolved \*'
10894         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10895         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10896         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10897
10898         # Both c and cxx compiler support -rpath directly
10899         hardcode_libdir_flag_spec='-rpath $libdir'
10900       fi
10901       archive_cmds_need_lc='no'
10902       hardcode_libdir_separator=:
10903       ;;
10904
10905     solaris*)
10906       no_undefined_flag=' -z defs'
10907       if test "$GCC" = yes; then
10908         wlarc='${wl}'
10909         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10910         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10912       else
10913         case `$CC -V 2>&1` in
10914         *"Compilers 5.0"*)
10915           wlarc=''
10916           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10918           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10919           ;;
10920         *)
10921           wlarc='${wl}'
10922           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10923           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10924           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10925           ;;
10926         esac
10927       fi
10928       hardcode_libdir_flag_spec='-R$libdir'
10929       hardcode_shlibpath_var=no
10930       case $host_os in
10931       solaris2.[0-5] | solaris2.[0-5].*) ;;
10932       *)
10933         # The compiler driver will combine and reorder linker options,
10934         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10935         # but is careful enough not to reorder.
10936         # Supported since Solaris 2.6 (maybe 2.5.1?)
10937         if test "$GCC" = yes; then
10938           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10939         else
10940           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10941         fi
10942         ;;
10943       esac
10944       link_all_deplibs=yes
10945       ;;
10946
10947     sunos4*)
10948       if test "x$host_vendor" = xsequent; then
10949         # Use $CC to link under sequent, because it throws in some extra .o
10950         # files that make .init and .fini sections work.
10951         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10952       else
10953         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10954       fi
10955       hardcode_libdir_flag_spec='-L$libdir'
10956       hardcode_direct=yes
10957       hardcode_minus_L=yes
10958       hardcode_shlibpath_var=no
10959       ;;
10960
10961     sysv4)
10962       case $host_vendor in
10963         sni)
10964           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965           hardcode_direct=yes # is this really true???
10966         ;;
10967         siemens)
10968           ## LD is ld it makes a PLAMLIB
10969           ## CC just makes a GrossModule.
10970           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10971           reload_cmds='$CC -r -o $output$reload_objs'
10972           hardcode_direct=no
10973         ;;
10974         motorola)
10975           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10977         ;;
10978       esac
10979       runpath_var='LD_RUN_PATH'
10980       hardcode_shlibpath_var=no
10981       ;;
10982
10983     sysv4.3*)
10984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985       hardcode_shlibpath_var=no
10986       export_dynamic_flag_spec='-Bexport'
10987       ;;
10988
10989     sysv4*MP*)
10990       if test -d /usr/nec; then
10991         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992         hardcode_shlibpath_var=no
10993         runpath_var=LD_RUN_PATH
10994         hardcode_runpath_var=yes
10995         ld_shlibs=yes
10996       fi
10997       ;;
10998
10999     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11000       no_undefined_flag='${wl}-z,text'
11001       archive_cmds_need_lc=no
11002       hardcode_shlibpath_var=no
11003       runpath_var='LD_RUN_PATH'
11004
11005       if test "$GCC" = yes; then
11006         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008       else
11009         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011       fi
11012       ;;
11013
11014     sysv5* | sco3.2v5* | sco5v6*)
11015       # Note: We can NOT use -z defs as we might desire, because we do not
11016       # link with -lc, and that would cause any symbols used from libc to
11017       # always be unresolved, which means just about no library would
11018       # ever link correctly.  If we're not using GNU ld we use -z text
11019       # though, which does catch some bad symbols but isn't as heavy-handed
11020       # as -z defs.
11021       no_undefined_flag='${wl}-z,text'
11022       allow_undefined_flag='${wl}-z,nodefs'
11023       archive_cmds_need_lc=no
11024       hardcode_shlibpath_var=no
11025       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11026       hardcode_libdir_separator=':'
11027       link_all_deplibs=yes
11028       export_dynamic_flag_spec='${wl}-Bexport'
11029       runpath_var='LD_RUN_PATH'
11030
11031       if test "$GCC" = yes; then
11032         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034       else
11035         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037       fi
11038       ;;
11039
11040     uts4*)
11041       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11042       hardcode_libdir_flag_spec='-L$libdir'
11043       hardcode_shlibpath_var=no
11044       ;;
11045
11046     *)
11047       ld_shlibs=no
11048       ;;
11049     esac
11050
11051     if test x$host_vendor = xsni; then
11052       case $host in
11053       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11054         export_dynamic_flag_spec='${wl}-Blargedynsym'
11055         ;;
11056       esac
11057     fi
11058   fi
11059
11060 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11061 echo "${ECHO_T}$ld_shlibs" >&6; }
11062 test "$ld_shlibs" = no && can_build_shared=no
11063
11064 with_gnu_ld=$with_gnu_ld
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 #
11081 # Do we need to explicitly link libc?
11082 #
11083 case "x$archive_cmds_need_lc" in
11084 x|xyes)
11085   # Assume -lc should be added
11086   archive_cmds_need_lc=yes
11087
11088   if test "$enable_shared" = yes && test "$GCC" = yes; then
11089     case $archive_cmds in
11090     *'~'*)
11091       # FIXME: we may have to deal with multi-command sequences.
11092       ;;
11093     '$CC '*)
11094       # Test whether the compiler implicitly links with -lc since on some
11095       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11096       # to ld, don't add -lc before -lgcc.
11097       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11098 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11099       $RM conftest*
11100       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11101
11102       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103   (eval $ac_compile) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } 2>conftest.err; then
11107         soname=conftest
11108         lib=conftest
11109         libobjs=conftest.$ac_objext
11110         deplibs=
11111         wl=$lt_prog_compiler_wl
11112         pic_flag=$lt_prog_compiler_pic
11113         compiler_flags=-v
11114         linker_flags=-v
11115         verstring=
11116         output_objdir=.
11117         libname=conftest
11118         lt_save_allow_undefined_flag=$allow_undefined_flag
11119         allow_undefined_flag=
11120         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11121   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }
11125         then
11126           archive_cmds_need_lc=no
11127         else
11128           archive_cmds_need_lc=yes
11129         fi
11130         allow_undefined_flag=$lt_save_allow_undefined_flag
11131       else
11132         cat conftest.err 1>&5
11133       fi
11134       $RM conftest*
11135       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11136 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11137       ;;
11138     esac
11139   fi
11140   ;;
11141 esac
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11301
11302 if test "$GCC" = yes; then
11303   case $host_os in
11304     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11305     *) lt_awk_arg="/^libraries:/" ;;
11306   esac
11307   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11308   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11309     # if the path contains ";" then we assume it to be the separator
11310     # otherwise default to the standard path separator (i.e. ":") - it is
11311     # assumed that no part of a normal pathname contains ";" but that should
11312     # okay in the real world where ";" in dirpaths is itself problematic.
11313     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11314   else
11315     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11316   fi
11317   # Ok, now we have the path, separated by spaces, we can step through it
11318   # and add multilib dir if necessary.
11319   lt_tmp_lt_search_path_spec=
11320   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11321   for lt_sys_path in $lt_search_path_spec; do
11322     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11323       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11324     else
11325       test -d "$lt_sys_path" && \
11326         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11327     fi
11328   done
11329   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11330 BEGIN {RS=" "; FS="/|\n";} {
11331   lt_foo="";
11332   lt_count=0;
11333   for (lt_i = NF; lt_i > 0; lt_i--) {
11334     if ($lt_i != "" && $lt_i != ".") {
11335       if ($lt_i == "..") {
11336         lt_count++;
11337       } else {
11338         if (lt_count == 0) {
11339           lt_foo="/" $lt_i lt_foo;
11340         } else {
11341           lt_count--;
11342         }
11343       }
11344     }
11345   }
11346   if (lt_foo != "") { lt_freq[lt_foo]++; }
11347   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11348 }'`
11349   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11350 else
11351   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11352 fi
11353 library_names_spec=
11354 libname_spec='lib$name'
11355 soname_spec=
11356 shrext_cmds=".so"
11357 postinstall_cmds=
11358 postuninstall_cmds=
11359 finish_cmds=
11360 finish_eval=
11361 shlibpath_var=
11362 shlibpath_overrides_runpath=unknown
11363 version_type=none
11364 dynamic_linker="$host_os ld.so"
11365 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11366 need_lib_prefix=unknown
11367 hardcode_into_libs=no
11368
11369 # when you set need_version to no, make sure it does not cause -set_version
11370 # flags to be left without arguments
11371 need_version=unknown
11372
11373 case $host_os in
11374 aix3*)
11375   version_type=linux
11376   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11377   shlibpath_var=LIBPATH
11378
11379   # AIX 3 has no versioning support, so we append a major version to the name.
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   ;;
11382
11383 aix[4-9]*)
11384   version_type=linux
11385   need_lib_prefix=no
11386   need_version=no
11387   hardcode_into_libs=yes
11388   if test "$host_cpu" = ia64; then
11389     # AIX 5 supports IA64
11390     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11391     shlibpath_var=LD_LIBRARY_PATH
11392   else
11393     # With GCC up to 2.95.x, collect2 would create an import file
11394     # for dependence libraries.  The import file would start with
11395     # the line `#! .'.  This would cause the generated library to
11396     # depend on `.', always an invalid library.  This was fixed in
11397     # development snapshots of GCC prior to 3.0.
11398     case $host_os in
11399       aix4 | aix4.[01] | aix4.[01].*)
11400       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11401            echo ' yes '
11402            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11403         :
11404       else
11405         can_build_shared=no
11406       fi
11407       ;;
11408     esac
11409     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11410     # soname into executable. Probably we can add versioning support to
11411     # collect2, so additional links can be useful in future.
11412     if test "$aix_use_runtimelinking" = yes; then
11413       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11414       # instead of lib<name>.a to let people know that these are not
11415       # typical AIX shared libraries.
11416       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417     else
11418       # We preserve .a as extension for shared libraries through AIX4.2
11419       # and later when we are not doing run time linking.
11420       library_names_spec='${libname}${release}.a $libname.a'
11421       soname_spec='${libname}${release}${shared_ext}$major'
11422     fi
11423     shlibpath_var=LIBPATH
11424   fi
11425   ;;
11426
11427 amigaos*)
11428   case $host_cpu in
11429   powerpc)
11430     # Since July 2007 AmigaOS4 officially supports .so libraries.
11431     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433     ;;
11434   m68k)
11435     library_names_spec='$libname.ixlibrary $libname.a'
11436     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11437     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11438     ;;
11439   esac
11440   ;;
11441
11442 beos*)
11443   library_names_spec='${libname}${shared_ext}'
11444   dynamic_linker="$host_os ld.so"
11445   shlibpath_var=LIBRARY_PATH
11446   ;;
11447
11448 bsdi[45]*)
11449   version_type=linux
11450   need_version=no
11451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452   soname_spec='${libname}${release}${shared_ext}$major'
11453   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11456   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11457   # the default ld.so.conf also contains /usr/contrib/lib and
11458   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11459   # libtool to hard-code these into programs
11460   ;;
11461
11462 cygwin* | mingw* | pw32* | cegcc*)
11463   version_type=windows
11464   shrext_cmds=".dll"
11465   need_version=no
11466   need_lib_prefix=no
11467
11468   case $GCC,$host_os in
11469   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11470     library_names_spec='$libname.dll.a'
11471     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11472     postinstall_cmds='base_file=`basename \${file}`~
11473       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11474       dldir=$destdir/`dirname \$dlpath`~
11475       test -d \$dldir || mkdir -p \$dldir~
11476       $install_prog $dir/$dlname \$dldir/$dlname~
11477       chmod a+x \$dldir/$dlname~
11478       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11479         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11480       fi'
11481     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11482       dlpath=$dir/\$dldll~
11483        $RM \$dlpath'
11484     shlibpath_overrides_runpath=yes
11485
11486     case $host_os in
11487     cygwin*)
11488       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11489       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11490       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11491       ;;
11492     mingw* | cegcc*)
11493       # MinGW DLLs use traditional 'lib' prefix
11494       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11495       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11496       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11497         # It is most probably a Windows format PATH printed by
11498         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11499         # path with ; separators, and with drive letters. We can handle the
11500         # drive letters (cygwin fileutils understands them), so leave them,
11501         # especially as we might pass files found there to a mingw objdump,
11502         # which wouldn't understand a cygwinified path. Ahh.
11503         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11504       else
11505         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11506       fi
11507       ;;
11508     pw32*)
11509       # pw32 DLLs use 'pw' prefix rather than 'lib'
11510       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11511       ;;
11512     esac
11513     ;;
11514
11515   *)
11516     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11517     ;;
11518   esac
11519   dynamic_linker='Win32 ld.exe'
11520   # FIXME: first we should search . and the directory the executable is in
11521   shlibpath_var=PATH
11522   ;;
11523
11524 darwin* | rhapsody*)
11525   dynamic_linker="$host_os dyld"
11526   version_type=darwin
11527   need_lib_prefix=no
11528   need_version=no
11529   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11530   soname_spec='${libname}${release}${major}$shared_ext'
11531   shlibpath_overrides_runpath=yes
11532   shlibpath_var=DYLD_LIBRARY_PATH
11533   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11534
11535   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11536   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11537   ;;
11538
11539 dgux*)
11540   version_type=linux
11541   need_lib_prefix=no
11542   need_version=no
11543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   ;;
11547
11548 freebsd1*)
11549   dynamic_linker=no
11550   ;;
11551
11552 freebsd* | dragonfly*)
11553   # DragonFly does not have aout.  When/if they implement a new
11554   # versioning mechanism, adjust this.
11555   if test -x /usr/bin/objformat; then
11556     objformat=`/usr/bin/objformat`
11557   else
11558     case $host_os in
11559     freebsd[123]*) objformat=aout ;;
11560     *) objformat=elf ;;
11561     esac
11562   fi
11563   version_type=freebsd-$objformat
11564   case $version_type in
11565     freebsd-elf*)
11566       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11567       need_version=no
11568       need_lib_prefix=no
11569       ;;
11570     freebsd-*)
11571       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11572       need_version=yes
11573       ;;
11574   esac
11575   shlibpath_var=LD_LIBRARY_PATH
11576   case $host_os in
11577   freebsd2*)
11578     shlibpath_overrides_runpath=yes
11579     ;;
11580   freebsd3.[01]* | freebsdelf3.[01]*)
11581     shlibpath_overrides_runpath=yes
11582     hardcode_into_libs=yes
11583     ;;
11584   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11585   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11586     shlibpath_overrides_runpath=no
11587     hardcode_into_libs=yes
11588     ;;
11589   *) # from 4.6 on, and DragonFly
11590     shlibpath_overrides_runpath=yes
11591     hardcode_into_libs=yes
11592     ;;
11593   esac
11594   ;;
11595
11596 gnu*)
11597   version_type=linux
11598   need_lib_prefix=no
11599   need_version=no
11600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11601   soname_spec='${libname}${release}${shared_ext}$major'
11602   shlibpath_var=LD_LIBRARY_PATH
11603   hardcode_into_libs=yes
11604   ;;
11605
11606 hpux9* | hpux10* | hpux11*)
11607   # Give a soname corresponding to the major version so that dld.sl refuses to
11608   # link against other versions.
11609   version_type=sunos
11610   need_lib_prefix=no
11611   need_version=no
11612   case $host_cpu in
11613   ia64*)
11614     shrext_cmds='.so'
11615     hardcode_into_libs=yes
11616     dynamic_linker="$host_os dld.so"
11617     shlibpath_var=LD_LIBRARY_PATH
11618     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620     soname_spec='${libname}${release}${shared_ext}$major'
11621     if test "X$HPUX_IA64_MODE" = X32; then
11622       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11623     else
11624       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11625     fi
11626     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627     ;;
11628   hppa*64*)
11629     shrext_cmds='.sl'
11630     hardcode_into_libs=yes
11631     dynamic_linker="$host_os dld.sl"
11632     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11633     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635     soname_spec='${libname}${release}${shared_ext}$major'
11636     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11637     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638     ;;
11639   *)
11640     shrext_cmds='.sl'
11641     dynamic_linker="$host_os dld.sl"
11642     shlibpath_var=SHLIB_PATH
11643     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645     soname_spec='${libname}${release}${shared_ext}$major'
11646     ;;
11647   esac
11648   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11649   postinstall_cmds='chmod 555 $lib'
11650   ;;
11651
11652 interix[3-9]*)
11653   version_type=linux
11654   need_lib_prefix=no
11655   need_version=no
11656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11657   soname_spec='${libname}${release}${shared_ext}$major'
11658   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11659   shlibpath_var=LD_LIBRARY_PATH
11660   shlibpath_overrides_runpath=no
11661   hardcode_into_libs=yes
11662   ;;
11663
11664 irix5* | irix6* | nonstopux*)
11665   case $host_os in
11666     nonstopux*) version_type=nonstopux ;;
11667     *)
11668         if test "$lt_cv_prog_gnu_ld" = yes; then
11669                 version_type=linux
11670         else
11671                 version_type=irix
11672         fi ;;
11673   esac
11674   need_lib_prefix=no
11675   need_version=no
11676   soname_spec='${libname}${release}${shared_ext}$major'
11677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11678   case $host_os in
11679   irix5* | nonstopux*)
11680     libsuff= shlibsuff=
11681     ;;
11682   *)
11683     case $LD in # libtool.m4 will add one of these switches to LD
11684     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11685       libsuff= shlibsuff= libmagic=32-bit;;
11686     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11687       libsuff=32 shlibsuff=N32 libmagic=N32;;
11688     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11689       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11690     *) libsuff= shlibsuff= libmagic=never-match;;
11691     esac
11692     ;;
11693   esac
11694   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11695   shlibpath_overrides_runpath=no
11696   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11697   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11698   hardcode_into_libs=yes
11699   ;;
11700
11701 # No shared lib support for Linux oldld, aout, or coff.
11702 linux*oldld* | linux*aout* | linux*coff*)
11703   dynamic_linker=no
11704   ;;
11705
11706 # This must be Linux ELF.
11707 linux* | k*bsd*-gnu)
11708   version_type=linux
11709   need_lib_prefix=no
11710   need_version=no
11711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712   soname_spec='${libname}${release}${shared_ext}$major'
11713   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11714   shlibpath_var=LD_LIBRARY_PATH
11715   shlibpath_overrides_runpath=no
11716   # Some binutils ld are patched to set DT_RUNPATH
11717   save_LDFLAGS=$LDFLAGS
11718   save_libdir=$libdir
11719   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11720        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11721   cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727
11728 int
11729 main ()
11730 {
11731
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (ac_try="$ac_link"
11738 case "(($ac_try" in
11739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740   *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743   (eval "$ac_link") 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } && {
11750          test -z "$ac_c_werror_flag" ||
11751          test ! -s conftest.err
11752        } && test -s conftest$ac_exeext &&
11753        $as_test_x conftest$ac_exeext; then
11754   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11755   shlibpath_overrides_runpath=yes
11756 fi
11757
11758 else
11759   echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11761
11762
11763 fi
11764
11765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11766       conftest$ac_exeext conftest.$ac_ext
11767   LDFLAGS=$save_LDFLAGS
11768   libdir=$save_libdir
11769
11770   # This implies no fast_install, which is unacceptable.
11771   # Some rework will be needed to allow for fast_install
11772   # before this can be enabled.
11773   hardcode_into_libs=yes
11774
11775   # Append ld.so.conf contents to the search path
11776   if test -f /etc/ld.so.conf; then
11777     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11778     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11779   fi
11780
11781   # We used to test for /lib/ld.so.1 and disable shared libraries on
11782   # powerpc, because MkLinux only supported shared libraries with the
11783   # GNU dynamic linker.  Since this was broken with cross compilers,
11784   # most powerpc-linux boxes support dynamic linking these days and
11785   # people can always --disable-shared, the test was removed, and we
11786   # assume the GNU/Linux dynamic linker is in use.
11787   dynamic_linker='GNU/Linux ld.so'
11788   ;;
11789
11790 netbsd*)
11791   version_type=sunos
11792   need_lib_prefix=no
11793   need_version=no
11794   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11796     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11797     dynamic_linker='NetBSD (a.out) ld.so'
11798   else
11799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11800     soname_spec='${libname}${release}${shared_ext}$major'
11801     dynamic_linker='NetBSD ld.elf_so'
11802   fi
11803   shlibpath_var=LD_LIBRARY_PATH
11804   shlibpath_overrides_runpath=yes
11805   hardcode_into_libs=yes
11806   ;;
11807
11808 newsos6)
11809   version_type=linux
11810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811   shlibpath_var=LD_LIBRARY_PATH
11812   shlibpath_overrides_runpath=yes
11813   ;;
11814
11815 *nto* | *qnx*)
11816   version_type=qnx
11817   need_lib_prefix=no
11818   need_version=no
11819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820   soname_spec='${libname}${release}${shared_ext}$major'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   shlibpath_overrides_runpath=no
11823   hardcode_into_libs=yes
11824   dynamic_linker='ldqnx.so'
11825   ;;
11826
11827 openbsd*)
11828   version_type=sunos
11829   sys_lib_dlsearch_path_spec="/usr/lib"
11830   need_lib_prefix=no
11831   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11832   case $host_os in
11833     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11834     *)                          need_version=no  ;;
11835   esac
11836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11837   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11838   shlibpath_var=LD_LIBRARY_PATH
11839   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11840     case $host_os in
11841       openbsd2.[89] | openbsd2.[89].*)
11842         shlibpath_overrides_runpath=no
11843         ;;
11844       *)
11845         shlibpath_overrides_runpath=yes
11846         ;;
11847       esac
11848   else
11849     shlibpath_overrides_runpath=yes
11850   fi
11851   ;;
11852
11853 os2*)
11854   libname_spec='$name'
11855   shrext_cmds=".dll"
11856   need_lib_prefix=no
11857   library_names_spec='$libname${shared_ext} $libname.a'
11858   dynamic_linker='OS/2 ld.exe'
11859   shlibpath_var=LIBPATH
11860   ;;
11861
11862 osf3* | osf4* | osf5*)
11863   version_type=osf
11864   need_lib_prefix=no
11865   need_version=no
11866   soname_spec='${libname}${release}${shared_ext}$major'
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868   shlibpath_var=LD_LIBRARY_PATH
11869   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11870   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11871   ;;
11872
11873 rdos*)
11874   dynamic_linker=no
11875   ;;
11876
11877 solaris*)
11878   version_type=linux
11879   need_lib_prefix=no
11880   need_version=no
11881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882   soname_spec='${libname}${release}${shared_ext}$major'
11883   shlibpath_var=LD_LIBRARY_PATH
11884   shlibpath_overrides_runpath=yes
11885   hardcode_into_libs=yes
11886   # ldd complains unless libraries are executable
11887   postinstall_cmds='chmod +x $lib'
11888   ;;
11889
11890 sunos4*)
11891   version_type=sunos
11892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11893   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11894   shlibpath_var=LD_LIBRARY_PATH
11895   shlibpath_overrides_runpath=yes
11896   if test "$with_gnu_ld" = yes; then
11897     need_lib_prefix=no
11898   fi
11899   need_version=yes
11900   ;;
11901
11902 sysv4 | sysv4.3*)
11903   version_type=linux
11904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905   soname_spec='${libname}${release}${shared_ext}$major'
11906   shlibpath_var=LD_LIBRARY_PATH
11907   case $host_vendor in
11908     sni)
11909       shlibpath_overrides_runpath=no
11910       need_lib_prefix=no
11911       runpath_var=LD_RUN_PATH
11912       ;;
11913     siemens)
11914       need_lib_prefix=no
11915       ;;
11916     motorola)
11917       need_lib_prefix=no
11918       need_version=no
11919       shlibpath_overrides_runpath=no
11920       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11921       ;;
11922   esac
11923   ;;
11924
11925 sysv4*MP*)
11926   if test -d /usr/nec ;then
11927     version_type=linux
11928     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11929     soname_spec='$libname${shared_ext}.$major'
11930     shlibpath_var=LD_LIBRARY_PATH
11931   fi
11932   ;;
11933
11934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11935   version_type=freebsd-elf
11936   need_lib_prefix=no
11937   need_version=no
11938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11939   soname_spec='${libname}${release}${shared_ext}$major'
11940   shlibpath_var=LD_LIBRARY_PATH
11941   shlibpath_overrides_runpath=yes
11942   hardcode_into_libs=yes
11943   if test "$with_gnu_ld" = yes; then
11944     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11945   else
11946     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11947     case $host_os in
11948       sco3.2v5*)
11949         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11950         ;;
11951     esac
11952   fi
11953   sys_lib_dlsearch_path_spec='/usr/lib'
11954   ;;
11955
11956 tpf*)
11957   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11958   version_type=linux
11959   need_lib_prefix=no
11960   need_version=no
11961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962   shlibpath_var=LD_LIBRARY_PATH
11963   shlibpath_overrides_runpath=no
11964   hardcode_into_libs=yes
11965   ;;
11966
11967 uts4*)
11968   version_type=linux
11969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11970   soname_spec='${libname}${release}${shared_ext}$major'
11971   shlibpath_var=LD_LIBRARY_PATH
11972   ;;
11973
11974 *)
11975   dynamic_linker=no
11976   ;;
11977 esac
11978 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11979 echo "${ECHO_T}$dynamic_linker" >&6; }
11980 test "$dynamic_linker" = no && can_build_shared=no
11981
11982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11983 if test "$GCC" = yes; then
11984   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11985 fi
11986
11987 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11988   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11989 fi
11990 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11991   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11992 fi
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12082 hardcode_action=
12083 if test -n "$hardcode_libdir_flag_spec" ||
12084    test -n "$runpath_var" ||
12085    test "X$hardcode_automatic" = "Xyes" ; then
12086
12087   # We can hardcode non-existent directories.
12088   if test "$hardcode_direct" != no &&
12089      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12090      # have to relink, otherwise we might link with an installed library
12091      # when we should be linking with a yet-to-be-installed one
12092      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12093      test "$hardcode_minus_L" != no; then
12094     # Linking always hardcodes the temporary library directory.
12095     hardcode_action=relink
12096   else
12097     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12098     hardcode_action=immediate
12099   fi
12100 else
12101   # We cannot hardcode anything, or else we can only hardcode existing
12102   # directories.
12103   hardcode_action=unsupported
12104 fi
12105 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12106 echo "${ECHO_T}$hardcode_action" >&6; }
12107
12108 if test "$hardcode_action" = relink ||
12109    test "$inherit_rpath" = yes; then
12110   # Fast installation is not supported
12111   enable_fast_install=no
12112 elif test "$shlibpath_overrides_runpath" = yes ||
12113      test "$enable_shared" = no; then
12114   # Fast installation is not necessary
12115   enable_fast_install=needless
12116 fi
12117
12118
12119
12120
12121
12122
12123   if test "x$enable_dlopen" != xyes; then
12124   enable_dlopen=unknown
12125   enable_dlopen_self=unknown
12126   enable_dlopen_self_static=unknown
12127 else
12128   lt_cv_dlopen=no
12129   lt_cv_dlopen_libs=
12130
12131   case $host_os in
12132   beos*)
12133     lt_cv_dlopen="load_add_on"
12134     lt_cv_dlopen_libs=
12135     lt_cv_dlopen_self=yes
12136     ;;
12137
12138   mingw* | pw32* | cegcc*)
12139     lt_cv_dlopen="LoadLibrary"
12140     lt_cv_dlopen_libs=
12141     ;;
12142
12143   cygwin*)
12144     lt_cv_dlopen="dlopen"
12145     lt_cv_dlopen_libs=
12146     ;;
12147
12148   darwin*)
12149   # if libdl is installed we need to link against it
12150     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-ldl  $LIBS"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h.  */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h.  */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165    Use char because int might match the return type of a GCC
12166    builtin and then its argument prototype would still apply.  */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 return dlopen ();
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183   *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186   (eval "$ac_link") 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } && {
12193          test -z "$ac_c_werror_flag" ||
12194          test ! -s conftest.err
12195        } && test -s conftest$ac_exeext &&
12196        $as_test_x conftest$ac_exeext; then
12197   ac_cv_lib_dl_dlopen=yes
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202         ac_cv_lib_dl_dlopen=no
12203 fi
12204
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206       conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12208 fi
12209 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12211 if test $ac_cv_lib_dl_dlopen = yes; then
12212   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12213 else
12214
12215     lt_cv_dlopen="dyld"
12216     lt_cv_dlopen_libs=
12217     lt_cv_dlopen_self=yes
12218
12219 fi
12220
12221     ;;
12222
12223   *)
12224     { echo "$as_me:$LINENO: checking for shl_load" >&5
12225 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12226 if test "${ac_cv_func_shl_load+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h.  */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h.  */
12235 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12237 #define shl_load innocuous_shl_load
12238
12239 /* System header to define __stub macros and hopefully few prototypes,
12240     which can conflict with char shl_load (); below.
12241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242     <limits.h> exists even on freestanding compilers.  */
12243
12244 #ifdef __STDC__
12245 # include <limits.h>
12246 #else
12247 # include <assert.h>
12248 #endif
12249
12250 #undef shl_load
12251
12252 /* Override any GCC internal prototype to avoid an error.
12253    Use char because int might match the return type of a GCC
12254    builtin and then its argument prototype would still apply.  */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char shl_load ();
12259 /* The GNU C library defines this for functions which it implements
12260     to always fail with ENOSYS.  Some functions are actually named
12261     something starting with __ and the normal name is an alias.  */
12262 #if defined __stub_shl_load || defined __stub___shl_load
12263 choke me
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269 return shl_load ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_link") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } && {
12288          test -z "$ac_c_werror_flag" ||
12289          test ! -s conftest.err
12290        } && test -s conftest$ac_exeext &&
12291        $as_test_x conftest$ac_exeext; then
12292   ac_cv_func_shl_load=yes
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297         ac_cv_func_shl_load=no
12298 fi
12299
12300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12301       conftest$ac_exeext conftest.$ac_ext
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12305 if test $ac_cv_func_shl_load = yes; then
12306   lt_cv_dlopen="shl_load"
12307 else
12308   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12309 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12310 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-ldld  $LIBS"
12315 cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321
12322 /* Override any GCC internal prototype to avoid an error.
12323    Use char because int might match the return type of a GCC
12324    builtin and then its argument prototype would still apply.  */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 char shl_load ();
12329 int
12330 main ()
12331 {
12332 return shl_load ();
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (ac_try="$ac_link"
12339 case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344   (eval "$ac_link") 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } && {
12351          test -z "$ac_c_werror_flag" ||
12352          test ! -s conftest.err
12353        } && test -s conftest$ac_exeext &&
12354        $as_test_x conftest$ac_exeext; then
12355   ac_cv_lib_dld_shl_load=yes
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360         ac_cv_lib_dld_shl_load=no
12361 fi
12362
12363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12364       conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12368 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12369 if test $ac_cv_lib_dld_shl_load = yes; then
12370   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12371 else
12372   { echo "$as_me:$LINENO: checking for dlopen" >&5
12373 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12374 if test "${ac_cv_func_dlopen+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12385 #define dlopen innocuous_dlopen
12386
12387 /* System header to define __stub macros and hopefully few prototypes,
12388     which can conflict with char dlopen (); below.
12389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390     <limits.h> exists even on freestanding compilers.  */
12391
12392 #ifdef __STDC__
12393 # include <limits.h>
12394 #else
12395 # include <assert.h>
12396 #endif
12397
12398 #undef dlopen
12399
12400 /* Override any GCC internal prototype to avoid an error.
12401    Use char because int might match the return type of a GCC
12402    builtin and then its argument prototype would still apply.  */
12403 #ifdef __cplusplus
12404 extern "C"
12405 #endif
12406 char dlopen ();
12407 /* The GNU C library defines this for functions which it implements
12408     to always fail with ENOSYS.  Some functions are actually named
12409     something starting with __ and the normal name is an alias.  */
12410 #if defined __stub_dlopen || defined __stub___dlopen
12411 choke me
12412 #endif
12413
12414 int
12415 main ()
12416 {
12417 return dlopen ();
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_link") 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } && {
12436          test -z "$ac_c_werror_flag" ||
12437          test ! -s conftest.err
12438        } && test -s conftest$ac_exeext &&
12439        $as_test_x conftest$ac_exeext; then
12440   ac_cv_func_dlopen=yes
12441 else
12442   echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445         ac_cv_func_dlopen=no
12446 fi
12447
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449       conftest$ac_exeext conftest.$ac_ext
12450 fi
12451 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12453 if test $ac_cv_func_dlopen = yes; then
12454   lt_cv_dlopen="dlopen"
12455 else
12456   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12457 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldl  $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h.  */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h.  */
12469
12470 /* Override any GCC internal prototype to avoid an error.
12471    Use char because int might match the return type of a GCC
12472    builtin and then its argument prototype would still apply.  */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 char dlopen ();
12477 int
12478 main ()
12479 {
12480 return dlopen ();
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492   (eval "$ac_link") 2>conftest.er1
12493   ac_status=$?
12494   grep -v '^ *+' conftest.er1 >conftest.err
12495   rm -f conftest.er1
12496   cat conftest.err >&5
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } && {
12499          test -z "$ac_c_werror_flag" ||
12500          test ! -s conftest.err
12501        } && test -s conftest$ac_exeext &&
12502        $as_test_x conftest$ac_exeext; then
12503   ac_cv_lib_dl_dlopen=yes
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508         ac_cv_lib_dl_dlopen=no
12509 fi
12510
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512       conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12514 fi
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12517 if test $ac_cv_lib_dl_dlopen = yes; then
12518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12519 else
12520   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12521 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lsvld  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535    Use char because int might match the return type of a GCC
12536    builtin and then its argument prototype would still apply.  */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char dlopen ();
12541 int
12542 main ()
12543 {
12544 return dlopen ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } && {
12563          test -z "$ac_c_werror_flag" ||
12564          test ! -s conftest.err
12565        } && test -s conftest$ac_exeext &&
12566        $as_test_x conftest$ac_exeext; then
12567   ac_cv_lib_svld_dlopen=yes
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         ac_cv_lib_svld_dlopen=no
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576       conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12580 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12581 if test $ac_cv_lib_svld_dlopen = yes; then
12582   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12583 else
12584   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12585 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12586 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12587   echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589   ac_check_lib_save_LIBS=$LIBS
12590 LIBS="-ldld  $LIBS"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599    Use char because int might match the return type of a GCC
12600    builtin and then its argument prototype would still apply.  */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char dld_link ();
12605 int
12606 main ()
12607 {
12608 return dld_link ();
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620   (eval "$ac_link") 2>conftest.er1
12621   ac_status=$?
12622   grep -v '^ *+' conftest.er1 >conftest.err
12623   rm -f conftest.er1
12624   cat conftest.err >&5
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } && {
12627          test -z "$ac_c_werror_flag" ||
12628          test ! -s conftest.err
12629        } && test -s conftest$ac_exeext &&
12630        $as_test_x conftest$ac_exeext; then
12631   ac_cv_lib_dld_dld_link=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636         ac_cv_lib_dld_dld_link=no
12637 fi
12638
12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640       conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12644 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12645 if test $ac_cv_lib_dld_dld_link = yes; then
12646   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12647 fi
12648
12649
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661
12662 fi
12663
12664     ;;
12665   esac
12666
12667   if test "x$lt_cv_dlopen" != xno; then
12668     enable_dlopen=yes
12669   else
12670     enable_dlopen=no
12671   fi
12672
12673   case $lt_cv_dlopen in
12674   dlopen)
12675     save_CPPFLAGS="$CPPFLAGS"
12676     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12677
12678     save_LDFLAGS="$LDFLAGS"
12679     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12680
12681     save_LIBS="$LIBS"
12682     LIBS="$lt_cv_dlopen_libs $LIBS"
12683
12684     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12685 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12686 if test "${lt_cv_dlopen_self+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689           if test "$cross_compiling" = yes; then :
12690   lt_cv_dlopen_self=cross
12691 else
12692   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12693   lt_status=$lt_dlunknown
12694   cat > conftest.$ac_ext <<_LT_EOF
12695 #line 12695 "configure"
12696 #include "confdefs.h"
12697
12698 #if HAVE_DLFCN_H
12699 #include <dlfcn.h>
12700 #endif
12701
12702 #include <stdio.h>
12703
12704 #ifdef RTLD_GLOBAL
12705 #  define LT_DLGLOBAL           RTLD_GLOBAL
12706 #else
12707 #  ifdef DL_GLOBAL
12708 #    define LT_DLGLOBAL         DL_GLOBAL
12709 #  else
12710 #    define LT_DLGLOBAL         0
12711 #  endif
12712 #endif
12713
12714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12715    find out it does not work in some platform. */
12716 #ifndef LT_DLLAZY_OR_NOW
12717 #  ifdef RTLD_LAZY
12718 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12719 #  else
12720 #    ifdef DL_LAZY
12721 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12722 #    else
12723 #      ifdef RTLD_NOW
12724 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12725 #      else
12726 #        ifdef DL_NOW
12727 #          define LT_DLLAZY_OR_NOW      DL_NOW
12728 #        else
12729 #          define LT_DLLAZY_OR_NOW      0
12730 #        endif
12731 #      endif
12732 #    endif
12733 #  endif
12734 #endif
12735
12736 void fnord() { int i=42;}
12737 int main ()
12738 {
12739   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12740   int status = $lt_dlunknown;
12741
12742   if (self)
12743     {
12744       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12745       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12746       /* dlclose (self); */
12747     }
12748   else
12749     puts (dlerror ());
12750
12751   return status;
12752 }
12753 _LT_EOF
12754   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755   (eval $ac_link) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12759     (./conftest; exit; ) >&5 2>/dev/null
12760     lt_status=$?
12761     case x$lt_status in
12762       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12763       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12764       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12765     esac
12766   else :
12767     # compilation failed
12768     lt_cv_dlopen_self=no
12769   fi
12770 fi
12771 rm -fr conftest*
12772
12773
12774 fi
12775 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12776 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12777
12778     if test "x$lt_cv_dlopen_self" = xyes; then
12779       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12780       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12781 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12782 if test "${lt_cv_dlopen_self_static+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785           if test "$cross_compiling" = yes; then :
12786   lt_cv_dlopen_self_static=cross
12787 else
12788   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12789   lt_status=$lt_dlunknown
12790   cat > conftest.$ac_ext <<_LT_EOF
12791 #line 12791 "configure"
12792 #include "confdefs.h"
12793
12794 #if HAVE_DLFCN_H
12795 #include <dlfcn.h>
12796 #endif
12797
12798 #include <stdio.h>
12799
12800 #ifdef RTLD_GLOBAL
12801 #  define LT_DLGLOBAL           RTLD_GLOBAL
12802 #else
12803 #  ifdef DL_GLOBAL
12804 #    define LT_DLGLOBAL         DL_GLOBAL
12805 #  else
12806 #    define LT_DLGLOBAL         0
12807 #  endif
12808 #endif
12809
12810 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12811    find out it does not work in some platform. */
12812 #ifndef LT_DLLAZY_OR_NOW
12813 #  ifdef RTLD_LAZY
12814 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12815 #  else
12816 #    ifdef DL_LAZY
12817 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12818 #    else
12819 #      ifdef RTLD_NOW
12820 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12821 #      else
12822 #        ifdef DL_NOW
12823 #          define LT_DLLAZY_OR_NOW      DL_NOW
12824 #        else
12825 #          define LT_DLLAZY_OR_NOW      0
12826 #        endif
12827 #      endif
12828 #    endif
12829 #  endif
12830 #endif
12831
12832 void fnord() { int i=42;}
12833 int main ()
12834 {
12835   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12836   int status = $lt_dlunknown;
12837
12838   if (self)
12839     {
12840       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12841       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12842       /* dlclose (self); */
12843     }
12844   else
12845     puts (dlerror ());
12846
12847   return status;
12848 }
12849 _LT_EOF
12850   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851   (eval $ac_link) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12855     (./conftest; exit; ) >&5 2>/dev/null
12856     lt_status=$?
12857     case x$lt_status in
12858       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12859       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12860       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12861     esac
12862   else :
12863     # compilation failed
12864     lt_cv_dlopen_self_static=no
12865   fi
12866 fi
12867 rm -fr conftest*
12868
12869
12870 fi
12871 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12872 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12873     fi
12874
12875     CPPFLAGS="$save_CPPFLAGS"
12876     LDFLAGS="$save_LDFLAGS"
12877     LIBS="$save_LIBS"
12878     ;;
12879   esac
12880
12881   case $lt_cv_dlopen_self in
12882   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12883   *) enable_dlopen_self=unknown ;;
12884   esac
12885
12886   case $lt_cv_dlopen_self_static in
12887   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12888   *) enable_dlopen_self_static=unknown ;;
12889   esac
12890 fi
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908 striplib=
12909 old_striplib=
12910 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12912 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12913   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12914   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12915   { echo "$as_me:$LINENO: result: yes" >&5
12916 echo "${ECHO_T}yes" >&6; }
12917 else
12918 # FIXME - insert some real tests, host_os isn't really good enough
12919   case $host_os in
12920   darwin*)
12921     if test -n "$STRIP" ; then
12922       striplib="$STRIP -x"
12923       old_striplib="$STRIP -S"
12924       { echo "$as_me:$LINENO: result: yes" >&5
12925 echo "${ECHO_T}yes" >&6; }
12926     else
12927       { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12929     fi
12930     ;;
12931   *)
12932     { echo "$as_me:$LINENO: result: no" >&5
12933 echo "${ECHO_T}no" >&6; }
12934     ;;
12935   esac
12936 fi
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949   # Report which library types will actually be built
12950   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12952   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12953 echo "${ECHO_T}$can_build_shared" >&6; }
12954
12955   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12956 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12957   test "$can_build_shared" = "no" && enable_shared=no
12958
12959   # On AIX, shared libraries and static libraries use the same namespace, and
12960   # are all built from PIC.
12961   case $host_os in
12962   aix3*)
12963     test "$enable_shared" = yes && enable_static=no
12964     if test -n "$RANLIB"; then
12965       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12966       postinstall_cmds='$RANLIB $lib'
12967     fi
12968     ;;
12969
12970   aix[4-9]*)
12971     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12972       test "$enable_shared" = yes && enable_static=no
12973     fi
12974     ;;
12975   esac
12976   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12977 echo "${ECHO_T}$enable_shared" >&6; }
12978
12979   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12980 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12981   # Make sure either enable_shared or enable_static is yes.
12982   test "$enable_shared" = yes || enable_static=yes
12983   { echo "$as_me:$LINENO: result: $enable_static" >&5
12984 echo "${ECHO_T}$enable_static" >&6; }
12985
12986
12987
12988
12989 fi
12990 ac_ext=c
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995
12996 CC="$lt_save_CC"
12997
12998
12999 ac_ext=cpp
13000 ac_cpp='$CXXCPP $CPPFLAGS'
13001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13004
13005 archive_cmds_need_lc_CXX=no
13006 allow_undefined_flag_CXX=
13007 always_export_symbols_CXX=no
13008 archive_expsym_cmds_CXX=
13009 compiler_needs_object_CXX=no
13010 export_dynamic_flag_spec_CXX=
13011 hardcode_direct_CXX=no
13012 hardcode_direct_absolute_CXX=no
13013 hardcode_libdir_flag_spec_CXX=
13014 hardcode_libdir_flag_spec_ld_CXX=
13015 hardcode_libdir_separator_CXX=
13016 hardcode_minus_L_CXX=no
13017 hardcode_shlibpath_var_CXX=unsupported
13018 hardcode_automatic_CXX=no
13019 inherit_rpath_CXX=no
13020 module_cmds_CXX=
13021 module_expsym_cmds_CXX=
13022 link_all_deplibs_CXX=unknown
13023 old_archive_cmds_CXX=$old_archive_cmds
13024 no_undefined_flag_CXX=
13025 whole_archive_flag_spec_CXX=
13026 enable_shared_with_static_runtimes_CXX=no
13027
13028 # Source file extension for C++ test sources.
13029 ac_ext=cpp
13030
13031 # Object file extension for compiled C++ test sources.
13032 objext=o
13033 objext_CXX=$objext
13034
13035 # No sense in running all these tests if we already determined that
13036 # the CXX compiler isn't working.  Some variables (like enable_shared)
13037 # are currently assumed to apply to all compilers on this platform,
13038 # and will be corrupted by setting them based on a non-working compiler.
13039 if test "$_lt_caught_CXX_error" != yes; then
13040   # Code to be used in simple compile tests
13041   lt_simple_compile_test_code="int some_variable = 0;"
13042
13043   # Code to be used in simple link tests
13044   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13045
13046   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13047
13048
13049
13050
13051
13052
13053 # If no C compiler was specified, use CC.
13054 LTCC=${LTCC-"$CC"}
13055
13056 # If no C compiler flags were specified, use CFLAGS.
13057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13058
13059 # Allow CC to be a program name with arguments.
13060 compiler=$CC
13061
13062
13063   # save warnings/boilerplate of simple test code
13064   ac_outfile=conftest.$ac_objext
13065 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13067 _lt_compiler_boilerplate=`cat conftest.err`
13068 $RM conftest*
13069
13070   ac_outfile=conftest.$ac_objext
13071 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13073 _lt_linker_boilerplate=`cat conftest.err`
13074 $RM -r conftest*
13075
13076
13077   # Allow CC to be a program name with arguments.
13078   lt_save_CC=$CC
13079   lt_save_LD=$LD
13080   lt_save_GCC=$GCC
13081   GCC=$GXX
13082   lt_save_with_gnu_ld=$with_gnu_ld
13083   lt_save_path_LD=$lt_cv_path_LD
13084   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13085     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13086   else
13087     $as_unset lt_cv_prog_gnu_ld
13088   fi
13089   if test -n "${lt_cv_path_LDCXX+set}"; then
13090     lt_cv_path_LD=$lt_cv_path_LDCXX
13091   else
13092     $as_unset lt_cv_path_LD
13093   fi
13094   test -z "${LDCXX+set}" || LD=$LDCXX
13095   CC=${CXX-"c++"}
13096   compiler=$CC
13097   compiler_CXX=$CC
13098   for cc_temp in $compiler""; do
13099   case $cc_temp in
13100     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13101     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13102     \-*) ;;
13103     *) break;;
13104   esac
13105 done
13106 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13107
13108
13109   if test -n "$compiler"; then
13110     # We don't want -fno-exception when compiling C++ code, so set the
13111     # no_builtin_flag separately
13112     if test "$GXX" = yes; then
13113       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13114     else
13115       lt_prog_compiler_no_builtin_flag_CXX=
13116     fi
13117
13118     if test "$GXX" = yes; then
13119       # Set up default GNU C++ configuration
13120
13121
13122
13123 # Check whether --with-gnu-ld was given.
13124 if test "${with_gnu_ld+set}" = set; then
13125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13126 else
13127   with_gnu_ld=no
13128 fi
13129
13130 ac_prog=ld
13131 if test "$GCC" = yes; then
13132   # Check if gcc -print-prog-name=ld gives a path.
13133   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13135   case $host in
13136   *-*-mingw*)
13137     # gcc leaves a trailing carriage return which upsets mingw
13138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13139   *)
13140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13141   esac
13142   case $ac_prog in
13143     # Accept absolute paths.
13144     [\\/]* | ?:[\\/]*)
13145       re_direlt='/[^/][^/]*/\.\./'
13146       # Canonicalize the pathname of ld
13147       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13148       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13149         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13150       done
13151       test -z "$LD" && LD="$ac_prog"
13152       ;;
13153   "")
13154     # If it fails, then pretend we aren't using GCC.
13155     ac_prog=ld
13156     ;;
13157   *)
13158     # If it is relative, then search for the first ld in PATH.
13159     with_gnu_ld=unknown
13160     ;;
13161   esac
13162 elif test "$with_gnu_ld" = yes; then
13163   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13165 else
13166   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13168 fi
13169 if test "${lt_cv_path_LD+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   if test -z "$LD"; then
13173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13174   for ac_dir in $PATH; do
13175     IFS="$lt_save_ifs"
13176     test -z "$ac_dir" && ac_dir=.
13177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13178       lt_cv_path_LD="$ac_dir/$ac_prog"
13179       # Check to see if the program is GNU ld.  I'd rather use --version,
13180       # but apparently some variants of GNU ld only accept -v.
13181       # Break only if it was the GNU/non-GNU ld that we prefer.
13182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13183       *GNU* | *'with BFD'*)
13184         test "$with_gnu_ld" != no && break
13185         ;;
13186       *)
13187         test "$with_gnu_ld" != yes && break
13188         ;;
13189       esac
13190     fi
13191   done
13192   IFS="$lt_save_ifs"
13193 else
13194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13195 fi
13196 fi
13197
13198 LD="$lt_cv_path_LD"
13199 if test -n "$LD"; then
13200   { echo "$as_me:$LINENO: result: $LD" >&5
13201 echo "${ECHO_T}$LD" >&6; }
13202 else
13203   { echo "$as_me:$LINENO: result: no" >&5
13204 echo "${ECHO_T}no" >&6; }
13205 fi
13206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13208    { (exit 1); exit 1; }; }
13209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13215 case `$LD -v 2>&1 </dev/null` in
13216 *GNU* | *'with BFD'*)
13217   lt_cv_prog_gnu_ld=yes
13218   ;;
13219 *)
13220   lt_cv_prog_gnu_ld=no
13221   ;;
13222 esac
13223 fi
13224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13226 with_gnu_ld=$lt_cv_prog_gnu_ld
13227
13228
13229
13230
13231
13232
13233
13234       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13235       # archiving commands below assume that GNU ld is being used.
13236       if test "$with_gnu_ld" = yes; then
13237         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13239
13240         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13242
13243         # If archive_cmds runs LD, not CC, wlarc should be empty
13244         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13245         #     investigate it a little bit more. (MM)
13246         wlarc='${wl}'
13247
13248         # ancient GNU ld didn't support --whole-archive et. al.
13249         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13250           $GREP 'no-whole-archive' > /dev/null; then
13251           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13252         else
13253           whole_archive_flag_spec_CXX=
13254         fi
13255       else
13256         with_gnu_ld=no
13257         wlarc=
13258
13259         # A generic and very simple default shared library creation
13260         # command for GNU C++ for the case where it uses the native
13261         # linker, instead of GNU ld.  If possible, this setting should
13262         # overridden to take advantage of the native linker features on
13263         # the platform it is being used on.
13264         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13265       fi
13266
13267       # Commands to make compiler produce verbose output that lists
13268       # what "hidden" libraries, object files and flags are used when
13269       # linking a shared library.
13270       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13271
13272     else
13273       GXX=no
13274       with_gnu_ld=no
13275       wlarc=
13276     fi
13277
13278     # PORTME: fill in a description of your system's C++ link characteristics
13279     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13281     ld_shlibs_CXX=yes
13282     case $host_os in
13283       aix3*)
13284         # FIXME: insert proper C++ library support
13285         ld_shlibs_CXX=no
13286         ;;
13287       aix[4-9]*)
13288         if test "$host_cpu" = ia64; then
13289           # On IA64, the linker does run time linking by default, so we don't
13290           # have to do anything special.
13291           aix_use_runtimelinking=no
13292           exp_sym_flag='-Bexport'
13293           no_entry_flag=""
13294         else
13295           aix_use_runtimelinking=no
13296
13297           # Test if we are trying to use run time linking or normal
13298           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13299           # need to do runtime linking.
13300           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13301             for ld_flag in $LDFLAGS; do
13302               case $ld_flag in
13303               *-brtl*)
13304                 aix_use_runtimelinking=yes
13305                 break
13306                 ;;
13307               esac
13308             done
13309             ;;
13310           esac
13311
13312           exp_sym_flag='-bexport'
13313           no_entry_flag='-bnoentry'
13314         fi
13315
13316         # When large executables or shared objects are built, AIX ld can
13317         # have problems creating the table of contents.  If linking a library
13318         # or program results in "error TOC overflow" add -mminimal-toc to
13319         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13320         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13321
13322         archive_cmds_CXX=''
13323         hardcode_direct_CXX=yes
13324         hardcode_direct_absolute_CXX=yes
13325         hardcode_libdir_separator_CXX=':'
13326         link_all_deplibs_CXX=yes
13327         file_list_spec_CXX='${wl}-f,'
13328
13329         if test "$GXX" = yes; then
13330           case $host_os in aix4.[012]|aix4.[012].*)
13331           # We only want to do this on AIX 4.2 and lower, the check
13332           # below for broken collect2 doesn't work under 4.3+
13333           collect2name=`${CC} -print-prog-name=collect2`
13334           if test -f "$collect2name" &&
13335              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13336           then
13337             # We have reworked collect2
13338             :
13339           else
13340             # We have old collect2
13341             hardcode_direct_CXX=unsupported
13342             # It fails to find uninstalled libraries when the uninstalled
13343             # path is not listed in the libpath.  Setting hardcode_minus_L
13344             # to unsupported forces relinking
13345             hardcode_minus_L_CXX=yes
13346             hardcode_libdir_flag_spec_CXX='-L$libdir'
13347             hardcode_libdir_separator_CXX=
13348           fi
13349           esac
13350           shared_flag='-shared'
13351           if test "$aix_use_runtimelinking" = yes; then
13352             shared_flag="$shared_flag "'${wl}-G'
13353           fi
13354         else
13355           # not using gcc
13356           if test "$host_cpu" = ia64; then
13357           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13358           # chokes on -Wl,-G. The following line is correct:
13359           shared_flag='-G'
13360           else
13361             if test "$aix_use_runtimelinking" = yes; then
13362               shared_flag='${wl}-G'
13363             else
13364               shared_flag='${wl}-bM:SRE'
13365             fi
13366           fi
13367         fi
13368
13369         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13370         # It seems that -bexpall does not export symbols beginning with
13371         # underscore (_), so it is better to generate a list of symbols to
13372         # export.
13373         always_export_symbols_CXX=yes
13374         if test "$aix_use_runtimelinking" = yes; then
13375           # Warning - without using the other runtime loading flags (-brtl),
13376           # -berok will link without error, but may produce a broken library.
13377           allow_undefined_flag_CXX='-berok'
13378           # Determine the default libpath from the value encoded in an empty
13379           # executable.
13380           cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h.  */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h.  */
13386
13387 int
13388 main ()
13389 {
13390
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402   (eval "$ac_link") 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } && {
13409          test -z "$ac_cxx_werror_flag" ||
13410          test ! -s conftest.err
13411        } && test -s conftest$ac_exeext &&
13412        $as_test_x conftest$ac_exeext; then
13413
13414 lt_aix_libpath_sed='
13415     /Import File Strings/,/^$/ {
13416         /^0/ {
13417             s/^0  *\(.*\)$/\1/
13418             p
13419         }
13420     }'
13421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13422 # Check for a 64-bit object if we didn't find anything.
13423 if test -z "$aix_libpath"; then
13424   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13425 fi
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13434       conftest$ac_exeext conftest.$ac_ext
13435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13436
13437           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13438
13439           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13440         else
13441           if test "$host_cpu" = ia64; then
13442             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13443             allow_undefined_flag_CXX="-z nodefs"
13444             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13445           else
13446             # Determine the default libpath from the value encoded in an
13447             # empty executable.
13448             cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454
13455 int
13456 main ()
13457 {
13458
13459   ;
13460   return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (ac_try="$ac_link"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470   (eval "$ac_link") 2>conftest.er1
13471   ac_status=$?
13472   grep -v '^ *+' conftest.er1 >conftest.err
13473   rm -f conftest.er1
13474   cat conftest.err >&5
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); } && {
13477          test -z "$ac_cxx_werror_flag" ||
13478          test ! -s conftest.err
13479        } && test -s conftest$ac_exeext &&
13480        $as_test_x conftest$ac_exeext; then
13481
13482 lt_aix_libpath_sed='
13483     /Import File Strings/,/^$/ {
13484         /^0/ {
13485             s/^0  *\(.*\)$/\1/
13486             p
13487         }
13488     }'
13489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13490 # Check for a 64-bit object if we didn't find anything.
13491 if test -z "$aix_libpath"; then
13492   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13493 fi
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498
13499 fi
13500
13501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502       conftest$ac_exeext conftest.$ac_ext
13503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13504
13505             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13506             # Warning - without using the other run time loading flags,
13507             # -berok will link without error, but may produce a broken library.
13508             no_undefined_flag_CXX=' ${wl}-bernotok'
13509             allow_undefined_flag_CXX=' ${wl}-berok'
13510             # Exported symbols can be pulled into shared objects from archives
13511             whole_archive_flag_spec_CXX='$convenience'
13512             archive_cmds_need_lc_CXX=yes
13513             # This is similar to how AIX traditionally builds its shared
13514             # libraries.
13515             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13516           fi
13517         fi
13518         ;;
13519
13520       beos*)
13521         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13522           allow_undefined_flag_CXX=unsupported
13523           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13524           # support --undefined.  This deserves some investigation.  FIXME
13525           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13526         else
13527           ld_shlibs_CXX=no
13528         fi
13529         ;;
13530
13531       chorus*)
13532         case $cc_basename in
13533           *)
13534           # FIXME: insert proper C++ library support
13535           ld_shlibs_CXX=no
13536           ;;
13537         esac
13538         ;;
13539
13540       cygwin* | mingw* | pw32* | cegcc*)
13541         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13542         # as there is no search path for DLLs.
13543         hardcode_libdir_flag_spec_CXX='-L$libdir'
13544         allow_undefined_flag_CXX=unsupported
13545         always_export_symbols_CXX=no
13546         enable_shared_with_static_runtimes_CXX=yes
13547
13548         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13549           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13550           # If the export-symbols file already is a .def file (1st line
13551           # is EXPORTS), use it as is; otherwise, prepend...
13552           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13553             cp $export_symbols $output_objdir/$soname.def;
13554           else
13555             echo EXPORTS > $output_objdir/$soname.def;
13556             cat $export_symbols >> $output_objdir/$soname.def;
13557           fi~
13558           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13559         else
13560           ld_shlibs_CXX=no
13561         fi
13562         ;;
13563       darwin* | rhapsody*)
13564
13565
13566   archive_cmds_need_lc_CXX=no
13567   hardcode_direct_CXX=no
13568   hardcode_automatic_CXX=yes
13569   hardcode_shlibpath_var_CXX=unsupported
13570   whole_archive_flag_spec_CXX=''
13571   link_all_deplibs_CXX=yes
13572   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13573   case $cc_basename in
13574      ifort*) _lt_dar_can_shared=yes ;;
13575      *) _lt_dar_can_shared=$GCC ;;
13576   esac
13577   if test "$_lt_dar_can_shared" = "yes"; then
13578     output_verbose_link_cmd=echo
13579     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13580     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13581     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13582     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13583        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13584       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13585       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13586     fi
13587
13588   else
13589   ld_shlibs_CXX=no
13590   fi
13591
13592         ;;
13593
13594       dgux*)
13595         case $cc_basename in
13596           ec++*)
13597             # FIXME: insert proper C++ library support
13598             ld_shlibs_CXX=no
13599             ;;
13600           ghcx*)
13601             # Green Hills C++ Compiler
13602             # FIXME: insert proper C++ library support
13603             ld_shlibs_CXX=no
13604             ;;
13605           *)
13606             # FIXME: insert proper C++ library support
13607             ld_shlibs_CXX=no
13608             ;;
13609         esac
13610         ;;
13611
13612       freebsd[12]*)
13613         # C++ shared libraries reported to be fairly broken before
13614         # switch to ELF
13615         ld_shlibs_CXX=no
13616         ;;
13617
13618       freebsd-elf*)
13619         archive_cmds_need_lc_CXX=no
13620         ;;
13621
13622       freebsd* | dragonfly*)
13623         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13624         # conventions
13625         ld_shlibs_CXX=yes
13626         ;;
13627
13628       gnu*)
13629         ;;
13630
13631       hpux9*)
13632         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13633         hardcode_libdir_separator_CXX=:
13634         export_dynamic_flag_spec_CXX='${wl}-E'
13635         hardcode_direct_CXX=yes
13636         hardcode_minus_L_CXX=yes # Not in the search PATH,
13637                                              # but as the default
13638                                              # location of the library.
13639
13640         case $cc_basename in
13641           CC*)
13642             # FIXME: insert proper C++ library support
13643             ld_shlibs_CXX=no
13644             ;;
13645           aCC*)
13646             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13647             # Commands to make compiler produce verbose output that lists
13648             # what "hidden" libraries, object files and flags are used when
13649             # linking a shared library.
13650             #
13651             # There doesn't appear to be a way to prevent this compiler from
13652             # explicitly linking system object files so we need to strip them
13653             # from the output so that they don't get included in the library
13654             # dependencies.
13655             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13656             ;;
13657           *)
13658             if test "$GXX" = yes; then
13659               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13660             else
13661               # FIXME: insert proper C++ library support
13662               ld_shlibs_CXX=no
13663             fi
13664             ;;
13665         esac
13666         ;;
13667
13668       hpux10*|hpux11*)
13669         if test $with_gnu_ld = no; then
13670           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13671           hardcode_libdir_separator_CXX=:
13672
13673           case $host_cpu in
13674             hppa*64*|ia64*)
13675               ;;
13676             *)
13677               export_dynamic_flag_spec_CXX='${wl}-E'
13678               ;;
13679           esac
13680         fi
13681         case $host_cpu in
13682           hppa*64*|ia64*)
13683             hardcode_direct_CXX=no
13684             hardcode_shlibpath_var_CXX=no
13685             ;;
13686           *)
13687             hardcode_direct_CXX=yes
13688             hardcode_direct_absolute_CXX=yes
13689             hardcode_minus_L_CXX=yes # Not in the search PATH,
13690                                                  # but as the default
13691                                                  # location of the library.
13692             ;;
13693         esac
13694
13695         case $cc_basename in
13696           CC*)
13697             # FIXME: insert proper C++ library support
13698             ld_shlibs_CXX=no
13699             ;;
13700           aCC*)
13701             case $host_cpu in
13702               hppa*64*)
13703                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13704                 ;;
13705               ia64*)
13706                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707                 ;;
13708               *)
13709                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13710                 ;;
13711             esac
13712             # Commands to make compiler produce verbose output that lists
13713             # what "hidden" libraries, object files and flags are used when
13714             # linking a shared library.
13715             #
13716             # There doesn't appear to be a way to prevent this compiler from
13717             # explicitly linking system object files so we need to strip them
13718             # from the output so that they don't get included in the library
13719             # dependencies.
13720             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13721             ;;
13722           *)
13723             if test "$GXX" = yes; then
13724               if test $with_gnu_ld = no; then
13725                 case $host_cpu in
13726                   hppa*64*)
13727                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13728                     ;;
13729                   ia64*)
13730                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731                     ;;
13732                   *)
13733                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13734                     ;;
13735                 esac
13736               fi
13737             else
13738               # FIXME: insert proper C++ library support
13739               ld_shlibs_CXX=no
13740             fi
13741             ;;
13742         esac
13743         ;;
13744
13745       interix[3-9]*)
13746         hardcode_direct_CXX=no
13747         hardcode_shlibpath_var_CXX=no
13748         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13749         export_dynamic_flag_spec_CXX='${wl}-E'
13750         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13751         # Instead, shared libraries are loaded at an image base (0x10000000 by
13752         # default) and relocated if they conflict, which is a slow very memory
13753         # consuming and fragmenting process.  To avoid this, we pick a random,
13754         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13755         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13756         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13757         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13758         ;;
13759       irix5* | irix6*)
13760         case $cc_basename in
13761           CC*)
13762             # SGI C++
13763             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13764
13765             # Archives containing C++ object files must be created using
13766             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13767             # necessary to make sure instantiated templates are included
13768             # in the archive.
13769             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13770             ;;
13771           *)
13772             if test "$GXX" = yes; then
13773               if test "$with_gnu_ld" = no; then
13774                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13775               else
13776                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13777               fi
13778             fi
13779             link_all_deplibs_CXX=yes
13780             ;;
13781         esac
13782         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13783         hardcode_libdir_separator_CXX=:
13784         inherit_rpath_CXX=yes
13785         ;;
13786
13787       linux* | k*bsd*-gnu)
13788         case $cc_basename in
13789           KCC*)
13790             # Kuck and Associates, Inc. (KAI) C++ Compiler
13791
13792             # KCC will only create a shared library if the output file
13793             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13794             # to its proper name (with version) after linking.
13795             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13796             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13797             # Commands to make compiler produce verbose output that lists
13798             # what "hidden" libraries, object files and flags are used when
13799             # linking a shared library.
13800             #
13801             # There doesn't appear to be a way to prevent this compiler from
13802             # explicitly linking system object files so we need to strip them
13803             # from the output so that they don't get included in the library
13804             # dependencies.
13805             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13806
13807             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13808             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809
13810             # Archives containing C++ object files must be created using
13811             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13812             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13813             ;;
13814           icpc* | ecpc* )
13815             # Intel C++
13816             with_gnu_ld=yes
13817             # version 8.0 and above of icpc choke on multiply defined symbols
13818             # if we add $predep_objects and $postdep_objects, however 7.1 and
13819             # earlier do not add the objects themselves.
13820             case `$CC -V 2>&1` in
13821               *"Version 7."*)
13822                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13824                 ;;
13825               *)  # Version 8.0 or newer
13826                 tmp_idyn=
13827                 case $host_cpu in
13828                   ia64*) tmp_idyn=' -i_dynamic';;
13829                 esac
13830                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13832                 ;;
13833             esac
13834             archive_cmds_need_lc_CXX=no
13835             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13836             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13837             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13838             ;;
13839           pgCC* | pgcpp*)
13840             # Portland Group C++ compiler
13841             case `$CC -V` in
13842             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13843               prelink_cmds_CXX='tpldir=Template.dir~
13844                 rm -rf $tpldir~
13845                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13846                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13847               old_archive_cmds_CXX='tpldir=Template.dir~
13848                 rm -rf $tpldir~
13849                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13850                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13851                 $RANLIB $oldlib'
13852               archive_cmds_CXX='tpldir=Template.dir~
13853                 rm -rf $tpldir~
13854                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13855                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13856               archive_expsym_cmds_CXX='tpldir=Template.dir~
13857                 rm -rf $tpldir~
13858                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13859                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13860               ;;
13861             *) # Version 6 will use weak symbols
13862               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13863               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13864               ;;
13865             esac
13866
13867             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13868             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13869             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13870             ;;
13871           cxx*)
13872             # Compaq C++
13873             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13875
13876             runpath_var=LD_RUN_PATH
13877             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13878             hardcode_libdir_separator_CXX=:
13879
13880             # Commands to make compiler produce verbose output that lists
13881             # what "hidden" libraries, object files and flags are used when
13882             # linking a shared library.
13883             #
13884             # There doesn't appear to be a way to prevent this compiler from
13885             # explicitly linking system object files so we need to strip them
13886             # from the output so that they don't get included in the library
13887             # dependencies.
13888             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13889             ;;
13890           xl*)
13891             # IBM XL 8.0 on PPC, with GNU ld
13892             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13893             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13894             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13895             if test "x$supports_anon_versioning" = xyes; then
13896               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13897                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13898                 echo "local: *; };" >> $output_objdir/$libname.ver~
13899                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13900             fi
13901             ;;
13902           *)
13903             case `$CC -V 2>&1 | sed 5q` in
13904             *Sun\ C*)
13905               # Sun C++ 5.9
13906               no_undefined_flag_CXX=' -zdefs'
13907               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13908               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13909               hardcode_libdir_flag_spec_CXX='-R$libdir'
13910               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13911               compiler_needs_object_CXX=yes
13912
13913               # Not sure whether something based on
13914               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13915               # would be better.
13916               output_verbose_link_cmd='echo'
13917
13918               # Archives containing C++ object files must be created using
13919               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13920               # necessary to make sure instantiated templates are included
13921               # in the archive.
13922               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13923               ;;
13924             esac
13925             ;;
13926         esac
13927         ;;
13928
13929       lynxos*)
13930         # FIXME: insert proper C++ library support
13931         ld_shlibs_CXX=no
13932         ;;
13933
13934       m88k*)
13935         # FIXME: insert proper C++ library support
13936         ld_shlibs_CXX=no
13937         ;;
13938
13939       mvs*)
13940         case $cc_basename in
13941           cxx*)
13942             # FIXME: insert proper C++ library support
13943             ld_shlibs_CXX=no
13944             ;;
13945           *)
13946             # FIXME: insert proper C++ library support
13947             ld_shlibs_CXX=no
13948             ;;
13949         esac
13950         ;;
13951
13952       netbsd*)
13953         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13954           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13955           wlarc=
13956           hardcode_libdir_flag_spec_CXX='-R$libdir'
13957           hardcode_direct_CXX=yes
13958           hardcode_shlibpath_var_CXX=no
13959         fi
13960         # Workaround some broken pre-1.5 toolchains
13961         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13962         ;;
13963
13964       *nto* | *qnx*)
13965         ld_shlibs_CXX=yes
13966         ;;
13967
13968       openbsd2*)
13969         # C++ shared libraries are fairly broken
13970         ld_shlibs_CXX=no
13971         ;;
13972
13973       openbsd*)
13974         if test -f /usr/libexec/ld.so; then
13975           hardcode_direct_CXX=yes
13976           hardcode_shlibpath_var_CXX=no
13977           hardcode_direct_absolute_CXX=yes
13978           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13979           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13980           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13981             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13982             export_dynamic_flag_spec_CXX='${wl}-E'
13983             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13984           fi
13985           output_verbose_link_cmd=echo
13986         else
13987           ld_shlibs_CXX=no
13988         fi
13989         ;;
13990
13991       osf3* | osf4* | osf5*)
13992         case $cc_basename in
13993           KCC*)
13994             # Kuck and Associates, Inc. (KAI) C++ Compiler
13995
13996             # KCC will only create a shared library if the output file
13997             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13998             # to its proper name (with version) after linking.
13999             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14000
14001             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14002             hardcode_libdir_separator_CXX=:
14003
14004             # Archives containing C++ object files must be created using
14005             # the KAI C++ compiler.
14006             case $host in
14007               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14008               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14009             esac
14010             ;;
14011           RCC*)
14012             # Rational C++ 2.4.1
14013             # FIXME: insert proper C++ library support
14014             ld_shlibs_CXX=no
14015             ;;
14016           cxx*)
14017             case $host in
14018               osf3*)
14019                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14020                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14021                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14022                 ;;
14023               *)
14024                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14025                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14026                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14027                   echo "-hidden">> $lib.exp~
14028                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14029                   $RM $lib.exp'
14030                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14031                 ;;
14032             esac
14033
14034             hardcode_libdir_separator_CXX=:
14035
14036             # Commands to make compiler produce verbose output that lists
14037             # what "hidden" libraries, object files and flags are used when
14038             # linking a shared library.
14039             #
14040             # There doesn't appear to be a way to prevent this compiler from
14041             # explicitly linking system object files so we need to strip them
14042             # from the output so that they don't get included in the library
14043             # dependencies.
14044             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14045             ;;
14046           *)
14047             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14048               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14049               case $host in
14050                 osf3*)
14051                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14052                   ;;
14053                 *)
14054                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14055                   ;;
14056               esac
14057
14058               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14059               hardcode_libdir_separator_CXX=:
14060
14061               # Commands to make compiler produce verbose output that lists
14062               # what "hidden" libraries, object files and flags are used when
14063               # linking a shared library.
14064               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14065
14066             else
14067               # FIXME: insert proper C++ library support
14068               ld_shlibs_CXX=no
14069             fi
14070             ;;
14071         esac
14072         ;;
14073
14074       psos*)
14075         # FIXME: insert proper C++ library support
14076         ld_shlibs_CXX=no
14077         ;;
14078
14079       sunos4*)
14080         case $cc_basename in
14081           CC*)
14082             # Sun C++ 4.x
14083             # FIXME: insert proper C++ library support
14084             ld_shlibs_CXX=no
14085             ;;
14086           lcc*)
14087             # Lucid
14088             # FIXME: insert proper C++ library support
14089             ld_shlibs_CXX=no
14090             ;;
14091           *)
14092             # FIXME: insert proper C++ library support
14093             ld_shlibs_CXX=no
14094             ;;
14095         esac
14096         ;;
14097
14098       solaris*)
14099         case $cc_basename in
14100           CC*)
14101             # Sun C++ 4.2, 5.x and Centerline C++
14102             archive_cmds_need_lc_CXX=yes
14103             no_undefined_flag_CXX=' -zdefs'
14104             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14105             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14106               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14107
14108             hardcode_libdir_flag_spec_CXX='-R$libdir'
14109             hardcode_shlibpath_var_CXX=no
14110             case $host_os in
14111               solaris2.[0-5] | solaris2.[0-5].*) ;;
14112               *)
14113                 # The compiler driver will combine and reorder linker options,
14114                 # but understands `-z linker_flag'.
14115                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14116                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14117                 ;;
14118             esac
14119             link_all_deplibs_CXX=yes
14120
14121             output_verbose_link_cmd='echo'
14122
14123             # Archives containing C++ object files must be created using
14124             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14125             # necessary to make sure instantiated templates are included
14126             # in the archive.
14127             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14128             ;;
14129           gcx*)
14130             # Green Hills C++ Compiler
14131             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14132
14133             # The C++ compiler must be used to create the archive.
14134             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14135             ;;
14136           *)
14137             # GNU C++ compiler with Solaris linker
14138             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14139               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14140               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14141                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14142                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14143                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14144
14145                 # Commands to make compiler produce verbose output that lists
14146                 # what "hidden" libraries, object files and flags are used when
14147                 # linking a shared library.
14148                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14149               else
14150                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14151                 # platform.
14152                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14153                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14154                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14155
14156                 # Commands to make compiler produce verbose output that lists
14157                 # what "hidden" libraries, object files and flags are used when
14158                 # linking a shared library.
14159                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14160               fi
14161
14162               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14163               case $host_os in
14164                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14165                 *)
14166                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14167                   ;;
14168               esac
14169             fi
14170             ;;
14171         esac
14172         ;;
14173
14174     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14175       no_undefined_flag_CXX='${wl}-z,text'
14176       archive_cmds_need_lc_CXX=no
14177       hardcode_shlibpath_var_CXX=no
14178       runpath_var='LD_RUN_PATH'
14179
14180       case $cc_basename in
14181         CC*)
14182           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           ;;
14185         *)
14186           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14188           ;;
14189       esac
14190       ;;
14191
14192       sysv5* | sco3.2v5* | sco5v6*)
14193         # Note: We can NOT use -z defs as we might desire, because we do not
14194         # link with -lc, and that would cause any symbols used from libc to
14195         # always be unresolved, which means just about no library would
14196         # ever link correctly.  If we're not using GNU ld we use -z text
14197         # though, which does catch some bad symbols but isn't as heavy-handed
14198         # as -z defs.
14199         no_undefined_flag_CXX='${wl}-z,text'
14200         allow_undefined_flag_CXX='${wl}-z,nodefs'
14201         archive_cmds_need_lc_CXX=no
14202         hardcode_shlibpath_var_CXX=no
14203         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14204         hardcode_libdir_separator_CXX=':'
14205         link_all_deplibs_CXX=yes
14206         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14207         runpath_var='LD_RUN_PATH'
14208
14209         case $cc_basename in
14210           CC*)
14211             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             ;;
14214           *)
14215             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14217             ;;
14218         esac
14219       ;;
14220
14221       tandem*)
14222         case $cc_basename in
14223           NCC*)
14224             # NonStop-UX NCC 3.20
14225             # FIXME: insert proper C++ library support
14226             ld_shlibs_CXX=no
14227             ;;
14228           *)
14229             # FIXME: insert proper C++ library support
14230             ld_shlibs_CXX=no
14231             ;;
14232         esac
14233         ;;
14234
14235       vxworks*)
14236         # FIXME: insert proper C++ library support
14237         ld_shlibs_CXX=no
14238         ;;
14239
14240       *)
14241         # FIXME: insert proper C++ library support
14242         ld_shlibs_CXX=no
14243         ;;
14244     esac
14245
14246     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14247 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14248     test "$ld_shlibs_CXX" = no && can_build_shared=no
14249
14250     GCC_CXX="$GXX"
14251     LD_CXX="$LD"
14252
14253     ## CAVEAT EMPTOR:
14254     ## There is no encapsulation within the following macros, do not change
14255     ## the running order or otherwise move them around unless you know exactly
14256     ## what you are doing...
14257     # Dependencies to place before and after the object being linked:
14258 predep_objects_CXX=
14259 postdep_objects_CXX=
14260 predeps_CXX=
14261 postdeps_CXX=
14262 compiler_lib_search_path_CXX=
14263
14264 cat > conftest.$ac_ext <<_LT_EOF
14265 class Foo
14266 {
14267 public:
14268   Foo (void) { a = 0; }
14269 private:
14270   int a;
14271 };
14272 _LT_EOF
14273
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275   (eval $ac_compile) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; then
14279   # Parse the compiler output and extract the necessary
14280   # objects, libraries and library flags.
14281
14282   # Sentinel used to keep track of whether or not we are before
14283   # the conftest object file.
14284   pre_test_object_deps_done=no
14285
14286   for p in `eval "$output_verbose_link_cmd"`; do
14287     case $p in
14288
14289     -L* | -R* | -l*)
14290        # Some compilers place space between "-{L,R}" and the path.
14291        # Remove the space.
14292        if test $p = "-L" ||
14293           test $p = "-R"; then
14294          prev=$p
14295          continue
14296        else
14297          prev=
14298        fi
14299
14300        if test "$pre_test_object_deps_done" = no; then
14301          case $p in
14302          -L* | -R*)
14303            # Internal compiler library paths should come after those
14304            # provided the user.  The postdeps already come after the
14305            # user supplied libs so there is no need to process them.
14306            if test -z "$compiler_lib_search_path_CXX"; then
14307              compiler_lib_search_path_CXX="${prev}${p}"
14308            else
14309              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14310            fi
14311            ;;
14312          # The "-l" case would never come before the object being
14313          # linked, so don't bother handling this case.
14314          esac
14315        else
14316          if test -z "$postdeps_CXX"; then
14317            postdeps_CXX="${prev}${p}"
14318          else
14319            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14320          fi
14321        fi
14322        ;;
14323
14324     *.$objext)
14325        # This assumes that the test object file only shows up
14326        # once in the compiler output.
14327        if test "$p" = "conftest.$objext"; then
14328          pre_test_object_deps_done=yes
14329          continue
14330        fi
14331
14332        if test "$pre_test_object_deps_done" = no; then
14333          if test -z "$predep_objects_CXX"; then
14334            predep_objects_CXX="$p"
14335          else
14336            predep_objects_CXX="$predep_objects_CXX $p"
14337          fi
14338        else
14339          if test -z "$postdep_objects_CXX"; then
14340            postdep_objects_CXX="$p"
14341          else
14342            postdep_objects_CXX="$postdep_objects_CXX $p"
14343          fi
14344        fi
14345        ;;
14346
14347     *) ;; # Ignore the rest.
14348
14349     esac
14350   done
14351
14352   # Clean up.
14353   rm -f a.out a.exe
14354 else
14355   echo "libtool.m4: error: problem compiling CXX test program"
14356 fi
14357
14358 $RM -f confest.$objext
14359
14360 # PORTME: override above test on systems where it is broken
14361 case $host_os in
14362 interix[3-9]*)
14363   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14364   # hack all around it, let's just trust "g++" to DTRT.
14365   predep_objects_CXX=
14366   postdep_objects_CXX=
14367   postdeps_CXX=
14368   ;;
14369
14370 linux*)
14371   case `$CC -V 2>&1 | sed 5q` in
14372   *Sun\ C*)
14373     # Sun C++ 5.9
14374
14375     # The more standards-conforming stlport4 library is
14376     # incompatible with the Cstd library. Avoid specifying
14377     # it if it's in CXXFLAGS. Ignore libCrun as
14378     # -library=stlport4 depends on it.
14379     case " $CXX $CXXFLAGS " in
14380     *" -library=stlport4 "*)
14381       solaris_use_stlport4=yes
14382       ;;
14383     esac
14384
14385     if test "$solaris_use_stlport4" != yes; then
14386       postdeps_CXX='-library=Cstd -library=Crun'
14387     fi
14388     ;;
14389   esac
14390   ;;
14391
14392 solaris*)
14393   case $cc_basename in
14394   CC*)
14395     # The more standards-conforming stlport4 library is
14396     # incompatible with the Cstd library. Avoid specifying
14397     # it if it's in CXXFLAGS. Ignore libCrun as
14398     # -library=stlport4 depends on it.
14399     case " $CXX $CXXFLAGS " in
14400     *" -library=stlport4 "*)
14401       solaris_use_stlport4=yes
14402       ;;
14403     esac
14404
14405     # Adding this requires a known-good setup of shared libraries for
14406     # Sun compiler versions before 5.6, else PIC objects from an old
14407     # archive will be linked into the output, leading to subtle bugs.
14408     if test "$solaris_use_stlport4" != yes; then
14409       postdeps_CXX='-library=Cstd -library=Crun'
14410     fi
14411     ;;
14412   esac
14413   ;;
14414 esac
14415
14416
14417 case " $postdeps_CXX " in
14418 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14419 esac
14420  compiler_lib_search_dirs_CXX=
14421 if test -n "${compiler_lib_search_path_CXX}"; then
14422  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14423 fi
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455     lt_prog_compiler_wl_CXX=
14456 lt_prog_compiler_pic_CXX=
14457 lt_prog_compiler_static_CXX=
14458
14459 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14461
14462   # C++ specific cases for pic, static, wl, etc.
14463   if test "$GXX" = yes; then
14464     lt_prog_compiler_wl_CXX='-Wl,'
14465     lt_prog_compiler_static_CXX='-static'
14466
14467     case $host_os in
14468     aix*)
14469       # All AIX code is PIC.
14470       if test "$host_cpu" = ia64; then
14471         # AIX 5 now supports IA64 processor
14472         lt_prog_compiler_static_CXX='-Bstatic'
14473       fi
14474       ;;
14475
14476     amigaos*)
14477       case $host_cpu in
14478       powerpc)
14479             # see comment about AmigaOS4 .so support
14480             lt_prog_compiler_pic_CXX='-fPIC'
14481         ;;
14482       m68k)
14483             # FIXME: we need at least 68020 code to build shared libraries, but
14484             # adding the `-m68020' flag to GCC prevents building anything better,
14485             # like `-m68040'.
14486             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14487         ;;
14488       esac
14489       ;;
14490
14491     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14492       # PIC is the default for these OSes.
14493       ;;
14494     mingw* | cygwin* | os2* | pw32* | cegcc*)
14495       # This hack is so that the source file can tell whether it is being
14496       # built for inclusion in a dll (and should export symbols for example).
14497       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14498       # (--disable-auto-import) libraries
14499       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14500       ;;
14501     darwin* | rhapsody*)
14502       # PIC is the default on this platform
14503       # Common symbols not allowed in MH_DYLIB files
14504       lt_prog_compiler_pic_CXX='-fno-common'
14505       ;;
14506     *djgpp*)
14507       # DJGPP does not support shared libraries at all
14508       lt_prog_compiler_pic_CXX=
14509       ;;
14510     interix[3-9]*)
14511       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14512       # Instead, we relocate shared libraries at runtime.
14513       ;;
14514     sysv4*MP*)
14515       if test -d /usr/nec; then
14516         lt_prog_compiler_pic_CXX=-Kconform_pic
14517       fi
14518       ;;
14519     hpux*)
14520       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14521       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14522       # sets the default TLS model and affects inlining.
14523       case $host_cpu in
14524       hppa*64*)
14525         ;;
14526       *)
14527         lt_prog_compiler_pic_CXX='-fPIC'
14528         ;;
14529       esac
14530       ;;
14531     *qnx* | *nto*)
14532       # QNX uses GNU C++, but need to define -shared option too, otherwise
14533       # it will coredump.
14534       lt_prog_compiler_pic_CXX='-fPIC -shared'
14535       ;;
14536     *)
14537       lt_prog_compiler_pic_CXX='-fPIC'
14538       ;;
14539     esac
14540   else
14541     case $host_os in
14542       aix[4-9]*)
14543         # All AIX code is PIC.
14544         if test "$host_cpu" = ia64; then
14545           # AIX 5 now supports IA64 processor
14546           lt_prog_compiler_static_CXX='-Bstatic'
14547         else
14548           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14549         fi
14550         ;;
14551       chorus*)
14552         case $cc_basename in
14553         cxch68*)
14554           # Green Hills C++ Compiler
14555           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14556           ;;
14557         esac
14558         ;;
14559       dgux*)
14560         case $cc_basename in
14561           ec++*)
14562             lt_prog_compiler_pic_CXX='-KPIC'
14563             ;;
14564           ghcx*)
14565             # Green Hills C++ Compiler
14566             lt_prog_compiler_pic_CXX='-pic'
14567             ;;
14568           *)
14569             ;;
14570         esac
14571         ;;
14572       freebsd* | dragonfly*)
14573         # FreeBSD uses GNU C++
14574         ;;
14575       hpux9* | hpux10* | hpux11*)
14576         case $cc_basename in
14577           CC*)
14578             lt_prog_compiler_wl_CXX='-Wl,'
14579             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14580             if test "$host_cpu" != ia64; then
14581               lt_prog_compiler_pic_CXX='+Z'
14582             fi
14583             ;;
14584           aCC*)
14585             lt_prog_compiler_wl_CXX='-Wl,'
14586             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14587             case $host_cpu in
14588             hppa*64*|ia64*)
14589               # +Z the default
14590               ;;
14591             *)
14592               lt_prog_compiler_pic_CXX='+Z'
14593               ;;
14594             esac
14595             ;;
14596           *)
14597             ;;
14598         esac
14599         ;;
14600       interix*)
14601         # This is c89, which is MS Visual C++ (no shared libs)
14602         # Anyone wants to do a port?
14603         ;;
14604       irix5* | irix6* | nonstopux*)
14605         case $cc_basename in
14606           CC*)
14607             lt_prog_compiler_wl_CXX='-Wl,'
14608             lt_prog_compiler_static_CXX='-non_shared'
14609             # CC pic flag -KPIC is the default.
14610             ;;
14611           *)
14612             ;;
14613         esac
14614         ;;
14615       linux* | k*bsd*-gnu)
14616         case $cc_basename in
14617           KCC*)
14618             # KAI C++ Compiler
14619             lt_prog_compiler_wl_CXX='--backend -Wl,'
14620             lt_prog_compiler_pic_CXX='-fPIC'
14621             ;;
14622           ecpc* )
14623             # old Intel C++ for x86_64 which still supported -KPIC.
14624             lt_prog_compiler_wl_CXX='-Wl,'
14625             lt_prog_compiler_pic_CXX='-KPIC'
14626             lt_prog_compiler_static_CXX='-static'
14627             ;;
14628           icpc* )
14629             # Intel C++, used to be incompatible with GCC.
14630             # ICC 10 doesn't accept -KPIC any more.
14631             lt_prog_compiler_wl_CXX='-Wl,'
14632             lt_prog_compiler_pic_CXX='-fPIC'
14633             lt_prog_compiler_static_CXX='-static'
14634             ;;
14635           pgCC* | pgcpp*)
14636             # Portland Group C++ compiler
14637             lt_prog_compiler_wl_CXX='-Wl,'
14638             lt_prog_compiler_pic_CXX='-fpic'
14639             lt_prog_compiler_static_CXX='-Bstatic'
14640             ;;
14641           cxx*)
14642             # Compaq C++
14643             # Make sure the PIC flag is empty.  It appears that all Alpha
14644             # Linux and Compaq Tru64 Unix objects are PIC.
14645             lt_prog_compiler_pic_CXX=
14646             lt_prog_compiler_static_CXX='-non_shared'
14647             ;;
14648           xlc* | xlC*)
14649             # IBM XL 8.0 on PPC
14650             lt_prog_compiler_wl_CXX='-Wl,'
14651             lt_prog_compiler_pic_CXX='-qpic'
14652             lt_prog_compiler_static_CXX='-qstaticlink'
14653             ;;
14654           *)
14655             case `$CC -V 2>&1 | sed 5q` in
14656             *Sun\ C*)
14657               # Sun C++ 5.9
14658               lt_prog_compiler_pic_CXX='-KPIC'
14659               lt_prog_compiler_static_CXX='-Bstatic'
14660               lt_prog_compiler_wl_CXX='-Qoption ld '
14661               ;;
14662             esac
14663             ;;
14664         esac
14665         ;;
14666       lynxos*)
14667         ;;
14668       m88k*)
14669         ;;
14670       mvs*)
14671         case $cc_basename in
14672           cxx*)
14673             lt_prog_compiler_pic_CXX='-W c,exportall'
14674             ;;
14675           *)
14676             ;;
14677         esac
14678         ;;
14679       netbsd*)
14680         ;;
14681       *qnx* | *nto*)
14682         # QNX uses GNU C++, but need to define -shared option too, otherwise
14683         # it will coredump.
14684         lt_prog_compiler_pic_CXX='-fPIC -shared'
14685         ;;
14686       osf3* | osf4* | osf5*)
14687         case $cc_basename in
14688           KCC*)
14689             lt_prog_compiler_wl_CXX='--backend -Wl,'
14690             ;;
14691           RCC*)
14692             # Rational C++ 2.4.1
14693             lt_prog_compiler_pic_CXX='-pic'
14694             ;;
14695           cxx*)
14696             # Digital/Compaq C++
14697             lt_prog_compiler_wl_CXX='-Wl,'
14698             # Make sure the PIC flag is empty.  It appears that all Alpha
14699             # Linux and Compaq Tru64 Unix objects are PIC.
14700             lt_prog_compiler_pic_CXX=
14701             lt_prog_compiler_static_CXX='-non_shared'
14702             ;;
14703           *)
14704             ;;
14705         esac
14706         ;;
14707       psos*)
14708         ;;
14709       solaris*)
14710         case $cc_basename in
14711           CC*)
14712             # Sun C++ 4.2, 5.x and Centerline C++
14713             lt_prog_compiler_pic_CXX='-KPIC'
14714             lt_prog_compiler_static_CXX='-Bstatic'
14715             lt_prog_compiler_wl_CXX='-Qoption ld '
14716             ;;
14717           gcx*)
14718             # Green Hills C++ Compiler
14719             lt_prog_compiler_pic_CXX='-PIC'
14720             ;;
14721           *)
14722             ;;
14723         esac
14724         ;;
14725       sunos4*)
14726         case $cc_basename in
14727           CC*)
14728             # Sun C++ 4.x
14729             lt_prog_compiler_pic_CXX='-pic'
14730             lt_prog_compiler_static_CXX='-Bstatic'
14731             ;;
14732           lcc*)
14733             # Lucid
14734             lt_prog_compiler_pic_CXX='-pic'
14735             ;;
14736           *)
14737             ;;
14738         esac
14739         ;;
14740       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14741         case $cc_basename in
14742           CC*)
14743             lt_prog_compiler_wl_CXX='-Wl,'
14744             lt_prog_compiler_pic_CXX='-KPIC'
14745             lt_prog_compiler_static_CXX='-Bstatic'
14746             ;;
14747         esac
14748         ;;
14749       tandem*)
14750         case $cc_basename in
14751           NCC*)
14752             # NonStop-UX NCC 3.20
14753             lt_prog_compiler_pic_CXX='-KPIC'
14754             ;;
14755           *)
14756             ;;
14757         esac
14758         ;;
14759       vxworks*)
14760         ;;
14761       *)
14762         lt_prog_compiler_can_build_shared_CXX=no
14763         ;;
14764     esac
14765   fi
14766
14767 case $host_os in
14768   # For platforms which do not support PIC, -DPIC is meaningless:
14769   *djgpp*)
14770     lt_prog_compiler_pic_CXX=
14771     ;;
14772   *)
14773     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14774     ;;
14775 esac
14776 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14777 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14778
14779
14780
14781 #
14782 # Check to make sure the PIC flag actually works.
14783 #
14784 if test -n "$lt_prog_compiler_pic_CXX"; then
14785   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14786 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14787 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14788   echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790   lt_cv_prog_compiler_pic_works_CXX=no
14791    ac_outfile=conftest.$ac_objext
14792    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14793    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14794    # Insert the option either (1) after the last *FLAGS variable, or
14795    # (2) before a word containing "conftest.", or (3) at the end.
14796    # Note that $ac_compile itself does not contain backslashes and begins
14797    # with a dollar sign (not a hyphen), so the echo should work correctly.
14798    # The option is referenced via a variable to avoid confusing sed.
14799    lt_compile=`echo "$ac_compile" | $SED \
14800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14802    -e 's:$: $lt_compiler_flag:'`
14803    (eval echo "\"\$as_me:14803: $lt_compile\"" >&5)
14804    (eval "$lt_compile" 2>conftest.err)
14805    ac_status=$?
14806    cat conftest.err >&5
14807    echo "$as_me:14807: \$? = $ac_status" >&5
14808    if (exit $ac_status) && test -s "$ac_outfile"; then
14809      # The compiler can only warn and ignore the option if not recognized
14810      # So say no if there are warnings other than the usual output.
14811      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14812      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14813      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14814        lt_cv_prog_compiler_pic_works_CXX=yes
14815      fi
14816    fi
14817    $RM conftest*
14818
14819 fi
14820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14821 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14822
14823 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14824     case $lt_prog_compiler_pic_CXX in
14825      "" | " "*) ;;
14826      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14827      esac
14828 else
14829     lt_prog_compiler_pic_CXX=
14830      lt_prog_compiler_can_build_shared_CXX=no
14831 fi
14832
14833 fi
14834
14835
14836
14837 #
14838 # Check to make sure the static flag actually works.
14839 #
14840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14841 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14843 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14844   echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846   lt_cv_prog_compiler_static_works_CXX=no
14847    save_LDFLAGS="$LDFLAGS"
14848    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14849    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14850    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14851      # The linker can only warn and ignore the option if not recognized
14852      # So say no if there are warnings
14853      if test -s conftest.err; then
14854        # Append any errors to the config.log.
14855        cat conftest.err 1>&5
14856        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14857        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14858        if diff conftest.exp conftest.er2 >/dev/null; then
14859          lt_cv_prog_compiler_static_works_CXX=yes
14860        fi
14861      else
14862        lt_cv_prog_compiler_static_works_CXX=yes
14863      fi
14864    fi
14865    $RM -r conftest*
14866    LDFLAGS="$save_LDFLAGS"
14867
14868 fi
14869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14870 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14871
14872 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14873     :
14874 else
14875     lt_prog_compiler_static_CXX=
14876 fi
14877
14878
14879
14880
14881     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   lt_cv_prog_compiler_c_o_CXX=no
14887    $RM -r conftest 2>/dev/null
14888    mkdir conftest
14889    cd conftest
14890    mkdir out
14891    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14892
14893    lt_compiler_flag="-o out/conftest2.$ac_objext"
14894    # Insert the option either (1) after the last *FLAGS variable, or
14895    # (2) before a word containing "conftest.", or (3) at the end.
14896    # Note that $ac_compile itself does not contain backslashes and begins
14897    # with a dollar sign (not a hyphen), so the echo should work correctly.
14898    lt_compile=`echo "$ac_compile" | $SED \
14899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14901    -e 's:$: $lt_compiler_flag:'`
14902    (eval echo "\"\$as_me:14902: $lt_compile\"" >&5)
14903    (eval "$lt_compile" 2>out/conftest.err)
14904    ac_status=$?
14905    cat out/conftest.err >&5
14906    echo "$as_me:14906: \$? = $ac_status" >&5
14907    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14908    then
14909      # The compiler can only warn and ignore the option if not recognized
14910      # So say no if there are warnings
14911      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14912      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14913      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14914        lt_cv_prog_compiler_c_o_CXX=yes
14915      fi
14916    fi
14917    chmod u+w . 2>&5
14918    $RM conftest*
14919    # SGI C++ compiler will create directory out/ii_files/ for
14920    # template instantiation
14921    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14922    $RM out/* && rmdir out
14923    cd ..
14924    $RM -r conftest
14925    $RM conftest*
14926
14927 fi
14928 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14930
14931
14932
14933     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14934 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14935 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14936   echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938   lt_cv_prog_compiler_c_o_CXX=no
14939    $RM -r conftest 2>/dev/null
14940    mkdir conftest
14941    cd conftest
14942    mkdir out
14943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944
14945    lt_compiler_flag="-o out/conftest2.$ac_objext"
14946    # Insert the option either (1) after the last *FLAGS variable, or
14947    # (2) before a word containing "conftest.", or (3) at the end.
14948    # Note that $ac_compile itself does not contain backslashes and begins
14949    # with a dollar sign (not a hyphen), so the echo should work correctly.
14950    lt_compile=`echo "$ac_compile" | $SED \
14951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953    -e 's:$: $lt_compiler_flag:'`
14954    (eval echo "\"\$as_me:14954: $lt_compile\"" >&5)
14955    (eval "$lt_compile" 2>out/conftest.err)
14956    ac_status=$?
14957    cat out/conftest.err >&5
14958    echo "$as_me:14958: \$? = $ac_status" >&5
14959    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14960    then
14961      # The compiler can only warn and ignore the option if not recognized
14962      # So say no if there are warnings
14963      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14964      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14965      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14966        lt_cv_prog_compiler_c_o_CXX=yes
14967      fi
14968    fi
14969    chmod u+w . 2>&5
14970    $RM conftest*
14971    # SGI C++ compiler will create directory out/ii_files/ for
14972    # template instantiation
14973    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14974    $RM out/* && rmdir out
14975    cd ..
14976    $RM -r conftest
14977    $RM conftest*
14978
14979 fi
14980 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14982
14983
14984
14985
14986 hard_links="nottested"
14987 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14988   # do not overwrite the value of need_locks provided by the user
14989   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14991   hard_links=yes
14992   $RM conftest*
14993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994   touch conftest.a
14995   ln conftest.a conftest.b 2>&5 || hard_links=no
14996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14997   { echo "$as_me:$LINENO: result: $hard_links" >&5
14998 echo "${ECHO_T}$hard_links" >&6; }
14999   if test "$hard_links" = no; then
15000     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15002     need_locks=warn
15003   fi
15004 else
15005   need_locks=no
15006 fi
15007
15008
15009
15010     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15011 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15012
15013   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15014   case $host_os in
15015   aix[4-9]*)
15016     # If we're using GNU nm, then we don't want the "-C" option.
15017     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15018     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15019       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15020     else
15021       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15022     fi
15023     ;;
15024   pw32*)
15025     export_symbols_cmds_CXX="$ltdll_cmds"
15026   ;;
15027   cygwin* | mingw* | cegcc*)
15028     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15029   ;;
15030   *)
15031     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15032   ;;
15033   esac
15034   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15035
15036 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15037 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15038 test "$ld_shlibs_CXX" = no && can_build_shared=no
15039
15040 with_gnu_ld_CXX=$with_gnu_ld
15041
15042
15043
15044
15045
15046
15047 #
15048 # Do we need to explicitly link libc?
15049 #
15050 case "x$archive_cmds_need_lc_CXX" in
15051 x|xyes)
15052   # Assume -lc should be added
15053   archive_cmds_need_lc_CXX=yes
15054
15055   if test "$enable_shared" = yes && test "$GCC" = yes; then
15056     case $archive_cmds_CXX in
15057     *'~'*)
15058       # FIXME: we may have to deal with multi-command sequences.
15059       ;;
15060     '$CC '*)
15061       # Test whether the compiler implicitly links with -lc since on some
15062       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15063       # to ld, don't add -lc before -lgcc.
15064       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15065 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15066       $RM conftest*
15067       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068
15069       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070   (eval $ac_compile) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } 2>conftest.err; then
15074         soname=conftest
15075         lib=conftest
15076         libobjs=conftest.$ac_objext
15077         deplibs=
15078         wl=$lt_prog_compiler_wl_CXX
15079         pic_flag=$lt_prog_compiler_pic_CXX
15080         compiler_flags=-v
15081         linker_flags=-v
15082         verstring=
15083         output_objdir=.
15084         libname=conftest
15085         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15086         allow_undefined_flag_CXX=
15087         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15088   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }
15092         then
15093           archive_cmds_need_lc_CXX=no
15094         else
15095           archive_cmds_need_lc_CXX=yes
15096         fi
15097         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15098       else
15099         cat conftest.err 1>&5
15100       fi
15101       $RM conftest*
15102       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15103 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15104       ;;
15105     esac
15106   fi
15107   ;;
15108 esac
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15174 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15175
15176 library_names_spec=
15177 libname_spec='lib$name'
15178 soname_spec=
15179 shrext_cmds=".so"
15180 postinstall_cmds=
15181 postuninstall_cmds=
15182 finish_cmds=
15183 finish_eval=
15184 shlibpath_var=
15185 shlibpath_overrides_runpath=unknown
15186 version_type=none
15187 dynamic_linker="$host_os ld.so"
15188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15189 need_lib_prefix=unknown
15190 hardcode_into_libs=no
15191
15192 # when you set need_version to no, make sure it does not cause -set_version
15193 # flags to be left without arguments
15194 need_version=unknown
15195
15196 case $host_os in
15197 aix3*)
15198   version_type=linux
15199   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15200   shlibpath_var=LIBPATH
15201
15202   # AIX 3 has no versioning support, so we append a major version to the name.
15203   soname_spec='${libname}${release}${shared_ext}$major'
15204   ;;
15205
15206 aix[4-9]*)
15207   version_type=linux
15208   need_lib_prefix=no
15209   need_version=no
15210   hardcode_into_libs=yes
15211   if test "$host_cpu" = ia64; then
15212     # AIX 5 supports IA64
15213     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15214     shlibpath_var=LD_LIBRARY_PATH
15215   else
15216     # With GCC up to 2.95.x, collect2 would create an import file
15217     # for dependence libraries.  The import file would start with
15218     # the line `#! .'.  This would cause the generated library to
15219     # depend on `.', always an invalid library.  This was fixed in
15220     # development snapshots of GCC prior to 3.0.
15221     case $host_os in
15222       aix4 | aix4.[01] | aix4.[01].*)
15223       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15224            echo ' yes '
15225            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15226         :
15227       else
15228         can_build_shared=no
15229       fi
15230       ;;
15231     esac
15232     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15233     # soname into executable. Probably we can add versioning support to
15234     # collect2, so additional links can be useful in future.
15235     if test "$aix_use_runtimelinking" = yes; then
15236       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15237       # instead of lib<name>.a to let people know that these are not
15238       # typical AIX shared libraries.
15239       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240     else
15241       # We preserve .a as extension for shared libraries through AIX4.2
15242       # and later when we are not doing run time linking.
15243       library_names_spec='${libname}${release}.a $libname.a'
15244       soname_spec='${libname}${release}${shared_ext}$major'
15245     fi
15246     shlibpath_var=LIBPATH
15247   fi
15248   ;;
15249
15250 amigaos*)
15251   case $host_cpu in
15252   powerpc)
15253     # Since July 2007 AmigaOS4 officially supports .so libraries.
15254     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256     ;;
15257   m68k)
15258     library_names_spec='$libname.ixlibrary $libname.a'
15259     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15260     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15261     ;;
15262   esac
15263   ;;
15264
15265 beos*)
15266   library_names_spec='${libname}${shared_ext}'
15267   dynamic_linker="$host_os ld.so"
15268   shlibpath_var=LIBRARY_PATH
15269   ;;
15270
15271 bsdi[45]*)
15272   version_type=linux
15273   need_version=no
15274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275   soname_spec='${libname}${release}${shared_ext}$major'
15276   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15277   shlibpath_var=LD_LIBRARY_PATH
15278   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15279   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15280   # the default ld.so.conf also contains /usr/contrib/lib and
15281   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15282   # libtool to hard-code these into programs
15283   ;;
15284
15285 cygwin* | mingw* | pw32* | cegcc*)
15286   version_type=windows
15287   shrext_cmds=".dll"
15288   need_version=no
15289   need_lib_prefix=no
15290
15291   case $GCC,$host_os in
15292   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15293     library_names_spec='$libname.dll.a'
15294     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15295     postinstall_cmds='base_file=`basename \${file}`~
15296       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15297       dldir=$destdir/`dirname \$dlpath`~
15298       test -d \$dldir || mkdir -p \$dldir~
15299       $install_prog $dir/$dlname \$dldir/$dlname~
15300       chmod a+x \$dldir/$dlname~
15301       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15302         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15303       fi'
15304     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15305       dlpath=$dir/\$dldll~
15306        $RM \$dlpath'
15307     shlibpath_overrides_runpath=yes
15308
15309     case $host_os in
15310     cygwin*)
15311       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15312       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15313       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15314       ;;
15315     mingw* | cegcc*)
15316       # MinGW DLLs use traditional 'lib' prefix
15317       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15318       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15319       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15320         # It is most probably a Windows format PATH printed by
15321         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15322         # path with ; separators, and with drive letters. We can handle the
15323         # drive letters (cygwin fileutils understands them), so leave them,
15324         # especially as we might pass files found there to a mingw objdump,
15325         # which wouldn't understand a cygwinified path. Ahh.
15326         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15327       else
15328         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15329       fi
15330       ;;
15331     pw32*)
15332       # pw32 DLLs use 'pw' prefix rather than 'lib'
15333       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15334       ;;
15335     esac
15336     ;;
15337
15338   *)
15339     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15340     ;;
15341   esac
15342   dynamic_linker='Win32 ld.exe'
15343   # FIXME: first we should search . and the directory the executable is in
15344   shlibpath_var=PATH
15345   ;;
15346
15347 darwin* | rhapsody*)
15348   dynamic_linker="$host_os dyld"
15349   version_type=darwin
15350   need_lib_prefix=no
15351   need_version=no
15352   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15353   soname_spec='${libname}${release}${major}$shared_ext'
15354   shlibpath_overrides_runpath=yes
15355   shlibpath_var=DYLD_LIBRARY_PATH
15356   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15357
15358   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15359   ;;
15360
15361 dgux*)
15362   version_type=linux
15363   need_lib_prefix=no
15364   need_version=no
15365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15366   soname_spec='${libname}${release}${shared_ext}$major'
15367   shlibpath_var=LD_LIBRARY_PATH
15368   ;;
15369
15370 freebsd1*)
15371   dynamic_linker=no
15372   ;;
15373
15374 freebsd* | dragonfly*)
15375   # DragonFly does not have aout.  When/if they implement a new
15376   # versioning mechanism, adjust this.
15377   if test -x /usr/bin/objformat; then
15378     objformat=`/usr/bin/objformat`
15379   else
15380     case $host_os in
15381     freebsd[123]*) objformat=aout ;;
15382     *) objformat=elf ;;
15383     esac
15384   fi
15385   version_type=freebsd-$objformat
15386   case $version_type in
15387     freebsd-elf*)
15388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15389       need_version=no
15390       need_lib_prefix=no
15391       ;;
15392     freebsd-*)
15393       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15394       need_version=yes
15395       ;;
15396   esac
15397   shlibpath_var=LD_LIBRARY_PATH
15398   case $host_os in
15399   freebsd2*)
15400     shlibpath_overrides_runpath=yes
15401     ;;
15402   freebsd3.[01]* | freebsdelf3.[01]*)
15403     shlibpath_overrides_runpath=yes
15404     hardcode_into_libs=yes
15405     ;;
15406   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15407   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15408     shlibpath_overrides_runpath=no
15409     hardcode_into_libs=yes
15410     ;;
15411   *) # from 4.6 on, and DragonFly
15412     shlibpath_overrides_runpath=yes
15413     hardcode_into_libs=yes
15414     ;;
15415   esac
15416   ;;
15417
15418 gnu*)
15419   version_type=linux
15420   need_lib_prefix=no
15421   need_version=no
15422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15423   soname_spec='${libname}${release}${shared_ext}$major'
15424   shlibpath_var=LD_LIBRARY_PATH
15425   hardcode_into_libs=yes
15426   ;;
15427
15428 hpux9* | hpux10* | hpux11*)
15429   # Give a soname corresponding to the major version so that dld.sl refuses to
15430   # link against other versions.
15431   version_type=sunos
15432   need_lib_prefix=no
15433   need_version=no
15434   case $host_cpu in
15435   ia64*)
15436     shrext_cmds='.so'
15437     hardcode_into_libs=yes
15438     dynamic_linker="$host_os dld.so"
15439     shlibpath_var=LD_LIBRARY_PATH
15440     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442     soname_spec='${libname}${release}${shared_ext}$major'
15443     if test "X$HPUX_IA64_MODE" = X32; then
15444       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15445     else
15446       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15447     fi
15448     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15449     ;;
15450   hppa*64*)
15451     shrext_cmds='.sl'
15452     hardcode_into_libs=yes
15453     dynamic_linker="$host_os dld.sl"
15454     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15455     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457     soname_spec='${libname}${release}${shared_ext}$major'
15458     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15459     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15460     ;;
15461   *)
15462     shrext_cmds='.sl'
15463     dynamic_linker="$host_os dld.sl"
15464     shlibpath_var=SHLIB_PATH
15465     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467     soname_spec='${libname}${release}${shared_ext}$major'
15468     ;;
15469   esac
15470   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15471   postinstall_cmds='chmod 555 $lib'
15472   ;;
15473
15474 interix[3-9]*)
15475   version_type=linux
15476   need_lib_prefix=no
15477   need_version=no
15478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15479   soname_spec='${libname}${release}${shared_ext}$major'
15480   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15481   shlibpath_var=LD_LIBRARY_PATH
15482   shlibpath_overrides_runpath=no
15483   hardcode_into_libs=yes
15484   ;;
15485
15486 irix5* | irix6* | nonstopux*)
15487   case $host_os in
15488     nonstopux*) version_type=nonstopux ;;
15489     *)
15490         if test "$lt_cv_prog_gnu_ld" = yes; then
15491                 version_type=linux
15492         else
15493                 version_type=irix
15494         fi ;;
15495   esac
15496   need_lib_prefix=no
15497   need_version=no
15498   soname_spec='${libname}${release}${shared_ext}$major'
15499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15500   case $host_os in
15501   irix5* | nonstopux*)
15502     libsuff= shlibsuff=
15503     ;;
15504   *)
15505     case $LD in # libtool.m4 will add one of these switches to LD
15506     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15507       libsuff= shlibsuff= libmagic=32-bit;;
15508     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15509       libsuff=32 shlibsuff=N32 libmagic=N32;;
15510     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15511       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15512     *) libsuff= shlibsuff= libmagic=never-match;;
15513     esac
15514     ;;
15515   esac
15516   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15517   shlibpath_overrides_runpath=no
15518   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15519   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15520   hardcode_into_libs=yes
15521   ;;
15522
15523 # No shared lib support for Linux oldld, aout, or coff.
15524 linux*oldld* | linux*aout* | linux*coff*)
15525   dynamic_linker=no
15526   ;;
15527
15528 # This must be Linux ELF.
15529 linux* | k*bsd*-gnu)
15530   version_type=linux
15531   need_lib_prefix=no
15532   need_version=no
15533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534   soname_spec='${libname}${release}${shared_ext}$major'
15535   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15536   shlibpath_var=LD_LIBRARY_PATH
15537   shlibpath_overrides_runpath=no
15538   # Some binutils ld are patched to set DT_RUNPATH
15539   save_LDFLAGS=$LDFLAGS
15540   save_libdir=$libdir
15541   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15542        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15543   cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549
15550 int
15551 main ()
15552 {
15553
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562   *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565   (eval "$ac_link") 2>conftest.er1
15566   ac_status=$?
15567   grep -v '^ *+' conftest.er1 >conftest.err
15568   rm -f conftest.er1
15569   cat conftest.err >&5
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } && {
15572          test -z "$ac_cxx_werror_flag" ||
15573          test ! -s conftest.err
15574        } && test -s conftest$ac_exeext &&
15575        $as_test_x conftest$ac_exeext; then
15576   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15577   shlibpath_overrides_runpath=yes
15578 fi
15579
15580 else
15581   echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584
15585 fi
15586
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588       conftest$ac_exeext conftest.$ac_ext
15589   LDFLAGS=$save_LDFLAGS
15590   libdir=$save_libdir
15591
15592   # This implies no fast_install, which is unacceptable.
15593   # Some rework will be needed to allow for fast_install
15594   # before this can be enabled.
15595   hardcode_into_libs=yes
15596
15597   # Append ld.so.conf contents to the search path
15598   if test -f /etc/ld.so.conf; then
15599     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15600     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15601   fi
15602
15603   # We used to test for /lib/ld.so.1 and disable shared libraries on
15604   # powerpc, because MkLinux only supported shared libraries with the
15605   # GNU dynamic linker.  Since this was broken with cross compilers,
15606   # most powerpc-linux boxes support dynamic linking these days and
15607   # people can always --disable-shared, the test was removed, and we
15608   # assume the GNU/Linux dynamic linker is in use.
15609   dynamic_linker='GNU/Linux ld.so'
15610   ;;
15611
15612 netbsd*)
15613   version_type=sunos
15614   need_lib_prefix=no
15615   need_version=no
15616   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15618     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15619     dynamic_linker='NetBSD (a.out) ld.so'
15620   else
15621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15622     soname_spec='${libname}${release}${shared_ext}$major'
15623     dynamic_linker='NetBSD ld.elf_so'
15624   fi
15625   shlibpath_var=LD_LIBRARY_PATH
15626   shlibpath_overrides_runpath=yes
15627   hardcode_into_libs=yes
15628   ;;
15629
15630 newsos6)
15631   version_type=linux
15632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633   shlibpath_var=LD_LIBRARY_PATH
15634   shlibpath_overrides_runpath=yes
15635   ;;
15636
15637 *nto* | *qnx*)
15638   version_type=qnx
15639   need_lib_prefix=no
15640   need_version=no
15641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642   soname_spec='${libname}${release}${shared_ext}$major'
15643   shlibpath_var=LD_LIBRARY_PATH
15644   shlibpath_overrides_runpath=no
15645   hardcode_into_libs=yes
15646   dynamic_linker='ldqnx.so'
15647   ;;
15648
15649 openbsd*)
15650   version_type=sunos
15651   sys_lib_dlsearch_path_spec="/usr/lib"
15652   need_lib_prefix=no
15653   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15654   case $host_os in
15655     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15656     *)                          need_version=no  ;;
15657   esac
15658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660   shlibpath_var=LD_LIBRARY_PATH
15661   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15662     case $host_os in
15663       openbsd2.[89] | openbsd2.[89].*)
15664         shlibpath_overrides_runpath=no
15665         ;;
15666       *)
15667         shlibpath_overrides_runpath=yes
15668         ;;
15669       esac
15670   else
15671     shlibpath_overrides_runpath=yes
15672   fi
15673   ;;
15674
15675 os2*)
15676   libname_spec='$name'
15677   shrext_cmds=".dll"
15678   need_lib_prefix=no
15679   library_names_spec='$libname${shared_ext} $libname.a'
15680   dynamic_linker='OS/2 ld.exe'
15681   shlibpath_var=LIBPATH
15682   ;;
15683
15684 osf3* | osf4* | osf5*)
15685   version_type=osf
15686   need_lib_prefix=no
15687   need_version=no
15688   soname_spec='${libname}${release}${shared_ext}$major'
15689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690   shlibpath_var=LD_LIBRARY_PATH
15691   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15692   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15693   ;;
15694
15695 rdos*)
15696   dynamic_linker=no
15697   ;;
15698
15699 solaris*)
15700   version_type=linux
15701   need_lib_prefix=no
15702   need_version=no
15703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704   soname_spec='${libname}${release}${shared_ext}$major'
15705   shlibpath_var=LD_LIBRARY_PATH
15706   shlibpath_overrides_runpath=yes
15707   hardcode_into_libs=yes
15708   # ldd complains unless libraries are executable
15709   postinstall_cmds='chmod +x $lib'
15710   ;;
15711
15712 sunos4*)
15713   version_type=sunos
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15716   shlibpath_var=LD_LIBRARY_PATH
15717   shlibpath_overrides_runpath=yes
15718   if test "$with_gnu_ld" = yes; then
15719     need_lib_prefix=no
15720   fi
15721   need_version=yes
15722   ;;
15723
15724 sysv4 | sysv4.3*)
15725   version_type=linux
15726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727   soname_spec='${libname}${release}${shared_ext}$major'
15728   shlibpath_var=LD_LIBRARY_PATH
15729   case $host_vendor in
15730     sni)
15731       shlibpath_overrides_runpath=no
15732       need_lib_prefix=no
15733       runpath_var=LD_RUN_PATH
15734       ;;
15735     siemens)
15736       need_lib_prefix=no
15737       ;;
15738     motorola)
15739       need_lib_prefix=no
15740       need_version=no
15741       shlibpath_overrides_runpath=no
15742       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15743       ;;
15744   esac
15745   ;;
15746
15747 sysv4*MP*)
15748   if test -d /usr/nec ;then
15749     version_type=linux
15750     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15751     soname_spec='$libname${shared_ext}.$major'
15752     shlibpath_var=LD_LIBRARY_PATH
15753   fi
15754   ;;
15755
15756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15757   version_type=freebsd-elf
15758   need_lib_prefix=no
15759   need_version=no
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15761   soname_spec='${libname}${release}${shared_ext}$major'
15762   shlibpath_var=LD_LIBRARY_PATH
15763   shlibpath_overrides_runpath=yes
15764   hardcode_into_libs=yes
15765   if test "$with_gnu_ld" = yes; then
15766     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15767   else
15768     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15769     case $host_os in
15770       sco3.2v5*)
15771         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772         ;;
15773     esac
15774   fi
15775   sys_lib_dlsearch_path_spec='/usr/lib'
15776   ;;
15777
15778 tpf*)
15779   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15780   version_type=linux
15781   need_lib_prefix=no
15782   need_version=no
15783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784   shlibpath_var=LD_LIBRARY_PATH
15785   shlibpath_overrides_runpath=no
15786   hardcode_into_libs=yes
15787   ;;
15788
15789 uts4*)
15790   version_type=linux
15791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792   soname_spec='${libname}${release}${shared_ext}$major'
15793   shlibpath_var=LD_LIBRARY_PATH
15794   ;;
15795
15796 *)
15797   dynamic_linker=no
15798   ;;
15799 esac
15800 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15801 echo "${ECHO_T}$dynamic_linker" >&6; }
15802 test "$dynamic_linker" = no && can_build_shared=no
15803
15804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805 if test "$GCC" = yes; then
15806   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15807 fi
15808
15809 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15810   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811 fi
15812 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15813   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15814 fi
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15852 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15853 hardcode_action_CXX=
15854 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15855    test -n "$runpath_var_CXX" ||
15856    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15857
15858   # We can hardcode non-existent directories.
15859   if test "$hardcode_direct_CXX" != no &&
15860      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15861      # have to relink, otherwise we might link with an installed library
15862      # when we should be linking with a yet-to-be-installed one
15863      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15864      test "$hardcode_minus_L_CXX" != no; then
15865     # Linking always hardcodes the temporary library directory.
15866     hardcode_action_CXX=relink
15867   else
15868     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15869     hardcode_action_CXX=immediate
15870   fi
15871 else
15872   # We cannot hardcode anything, or else we can only hardcode existing
15873   # directories.
15874   hardcode_action_CXX=unsupported
15875 fi
15876 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15877 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15878
15879 if test "$hardcode_action_CXX" = relink ||
15880    test "$inherit_rpath_CXX" = yes; then
15881   # Fast installation is not supported
15882   enable_fast_install=no
15883 elif test "$shlibpath_overrides_runpath" = yes ||
15884      test "$enable_shared" = no; then
15885   # Fast installation is not necessary
15886   enable_fast_install=needless
15887 fi
15888
15889
15890
15891
15892
15893
15894
15895   fi # test -n "$compiler"
15896
15897   CC=$lt_save_CC
15898   LDCXX=$LD
15899   LD=$lt_save_LD
15900   GCC=$lt_save_GCC
15901   with_gnu_ld=$lt_save_with_gnu_ld
15902   lt_cv_path_LDCXX=$lt_cv_path_LD
15903   lt_cv_path_LD=$lt_save_path_LD
15904   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15905   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15906 fi # test "$_lt_caught_CXX_error" != yes
15907
15908 ac_ext=c
15909 ac_cpp='$CPP $CPPFLAGS'
15910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926         ac_config_commands="$ac_config_commands libtool"
15927
15928
15929
15930
15931 # Only expand once:
15932
15933
15934
15935
15936 if test x$use_libtool != xno; then
15937    DEFAULT_OBJECT_TYPE=".lo"
15938    DEFAULT_ARCHIVE_TYPE=".la"
15939    DEFAULT_SHARED_OBJECT_TYPE=".la"
15940    LIBTOOL="\$(LIBTOOL)"
15941    LIBTOOL_INSTALL_TARGET="libtool-install"
15942    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15943    LIBTOOL_CLEAN_TARGET="libtool-clean"
15944    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15945 else
15946    DEFAULT_OBJECT_TYPE=".o"
15947    DEFAULT_ARCHIVE_TYPE=".a"
15948    DEFAULT_SHARED_OBJECT_TYPE=".so"
15949    LIBTOOL="# \$(LIBTOOL)"
15950    LIBTOOL_INSTALL_TARGET=""
15951    LIBTOOL_UNINSTALL_TARGET=""
15952    LIBTOOL_CLEAN_TARGET=""
15953    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15954 fi
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965 # Check whether --enable-includes was given.
15966 if test "${enable_includes+set}" = set; then
15967   enableval=$enable_includes;
15968        if test x$enableval = xyes; then
15969           install_includes=yes
15970        fi
15971
15972
15973 fi
15974
15975
15976
15977 if test x$use_libtool != xno -a x$install_includes = xyes; then
15978    INCLUDE_INSTALL_TARGET="install-includes"
15979    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15980 else
15981    INCLUDE_INSTALL_TARGET=""
15982    INCLUDE_UNINSTALL_TARGET=""
15983 fi
15984
15985
15986
15987
15988 { echo "$as_me:$LINENO: checking host system type" >&5
15989 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15990 if test "${ac_cv_host+set}" = set; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993   if test "x$host_alias" = x; then
15994   ac_cv_host=$ac_cv_build
15995 else
15996   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15997     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15998 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15999    { (exit 1); exit 1; }; }
16000 fi
16001
16002 fi
16003 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16004 echo "${ECHO_T}$ac_cv_host" >&6; }
16005 case $ac_cv_host in
16006 *-*-*) ;;
16007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16008 echo "$as_me: error: invalid value of canonical host" >&2;}
16009    { (exit 1); exit 1; }; };;
16010 esac
16011 host=$ac_cv_host
16012 ac_save_IFS=$IFS; IFS='-'
16013 set x $ac_cv_host
16014 shift
16015 host_cpu=$1
16016 host_vendor=$2
16017 shift; shift
16018 # Remember, the first character of IFS is used to create $*,
16019 # except with old shells:
16020 host_os=$*
16021 IFS=$ac_save_IFS
16022 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16023
16024
16025 case $host_os in
16026   *cygwin* ) CYGWIN=yes;;
16027          * ) CYGWIN=no;;
16028 esac
16029
16030 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16031 then
16032
16033
16034 if $TRUEPRG; then
16035   HAVE_SUN_OS_TRUE=
16036   HAVE_SUN_OS_FALSE='#'
16037 else
16038   HAVE_SUN_OS_TRUE='#'
16039   HAVE_SUN_OS_FALSE=
16040 fi
16041         cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_SUN_OS 1
16043 _ACEOF
16044
16045 else
16046
16047
16048 if $FALSEPRG; then
16049   HAVE_SUN_OS_TRUE=
16050   HAVE_SUN_OS_FALSE='#'
16051 else
16052   HAVE_SUN_OS_TRUE='#'
16053   HAVE_SUN_OS_FALSE=
16054 fi
16055 fi
16056
16057 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16058 then
16059
16060
16061 if $TRUEPRG; then
16062   HAVE_OSF1_OS_TRUE=
16063   HAVE_OSF1_OS_FALSE='#'
16064 else
16065   HAVE_OSF1_OS_TRUE='#'
16066   HAVE_OSF1_OS_FALSE=
16067 fi
16068         cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_OSF1_OS 1
16070 _ACEOF
16071
16072 else
16073
16074
16075 if $FALSEPRG; then
16076   HAVE_OSF1_OS_TRUE=
16077   HAVE_OSF1_OS_FALSE='#'
16078 else
16079   HAVE_OSF1_OS_TRUE='#'
16080   HAVE_OSF1_OS_FALSE=
16081 fi
16082 fi
16083
16084 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16085 then
16086
16087
16088 if $TRUEPRG; then
16089   HAVE_AIX_OS_TRUE=
16090   HAVE_AIX_OS_FALSE='#'
16091 else
16092   HAVE_AIX_OS_TRUE='#'
16093   HAVE_AIX_OS_FALSE=
16094 fi
16095         cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_AIX_OS 1
16097 _ACEOF
16098
16099 else
16100
16101
16102 if $FALSEPRG; then
16103   HAVE_AIX_OS_TRUE=
16104   HAVE_AIX_OS_FALSE='#'
16105 else
16106   HAVE_AIX_OS_TRUE='#'
16107   HAVE_AIX_OS_FALSE=
16108 fi
16109 fi
16110
16111 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16112 then
16113
16114
16115 if $TRUEPRG; then
16116   HAVE_HPUX_OS_TRUE=
16117   HAVE_HPUX_OS_FALSE='#'
16118 else
16119   HAVE_HPUX_OS_TRUE='#'
16120   HAVE_HPUX_OS_FALSE=
16121 fi
16122         cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_HPUX_OS 1
16124 _ACEOF
16125
16126 else
16127
16128
16129 if $FALSEPRG; then
16130   HAVE_HPUX_OS_TRUE=
16131   HAVE_HPUX_OS_FALSE='#'
16132 else
16133   HAVE_HPUX_OS_TRUE='#'
16134   HAVE_HPUX_OS_FALSE=
16135 fi
16136 fi
16137
16138 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16139 then
16140
16141
16142 if $TRUEPRG; then
16143   HAVE_LINUX_OS_TRUE=
16144   HAVE_LINUX_OS_FALSE='#'
16145 else
16146   HAVE_LINUX_OS_TRUE='#'
16147   HAVE_LINUX_OS_FALSE=
16148 fi
16149         cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_LINUX_OS 1
16151 _ACEOF
16152
16153 else
16154
16155
16156 if $FALSEPRG; then
16157   HAVE_LINUX_OS_TRUE=
16158   HAVE_LINUX_OS_FALSE='#'
16159 else
16160   HAVE_LINUX_OS_TRUE='#'
16161   HAVE_LINUX_OS_FALSE=
16162 fi
16163 fi
16164
16165 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16166 then
16167
16168
16169 if $TRUEPRG; then
16170   HAVE_FREEBSD_OS_TRUE=
16171   HAVE_FREEBSD_OS_FALSE='#'
16172 else
16173   HAVE_FREEBSD_OS_TRUE='#'
16174   HAVE_FREEBSD_OS_FALSE=
16175 fi
16176         cat >>confdefs.h <<\_ACEOF
16177 #define HAVE_FREEBSD_OS 1
16178 _ACEOF
16179
16180 else
16181
16182
16183 if $FALSEPRG; then
16184   HAVE_FREEBSD_OS_TRUE=
16185   HAVE_FREEBSD_OS_FALSE='#'
16186 else
16187   HAVE_FREEBSD_OS_TRUE='#'
16188   HAVE_FREEBSD_OS_FALSE=
16189 fi
16190 fi
16191
16192 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16193 then
16194
16195
16196 if $TRUEPRG; then
16197   HAVE_NETBSD_OS_TRUE=
16198   HAVE_NETBSD_OS_FALSE='#'
16199 else
16200   HAVE_NETBSD_OS_TRUE='#'
16201   HAVE_NETBSD_OS_FALSE=
16202 fi
16203         cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_NETBSD_OS 1
16205 _ACEOF
16206
16207 else
16208
16209
16210 if $FALSEPRG; then
16211   HAVE_NETBSD_OS_TRUE=
16212   HAVE_NETBSD_OS_FALSE='#'
16213 else
16214   HAVE_NETBSD_OS_TRUE='#'
16215   HAVE_NETBSD_OS_FALSE=
16216 fi
16217 fi
16218
16219 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16220 then
16221
16222
16223 if $TRUEPRG; then
16224   HAVE_OPENBSD_OS_TRUE=
16225   HAVE_OPENBSD_OS_FALSE='#'
16226 else
16227   HAVE_OPENBSD_OS_TRUE='#'
16228   HAVE_OPENBSD_OS_FALSE=
16229 fi
16230         cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_OPENBSD_OS 1
16232 _ACEOF
16233
16234 else
16235
16236
16237 if $FALSEPRG; then
16238   HAVE_OPENBSD_OS_TRUE=
16239   HAVE_OPENBSD_OS_FALSE='#'
16240 else
16241   HAVE_OPENBSD_OS_TRUE='#'
16242   HAVE_OPENBSD_OS_FALSE=
16243 fi
16244 fi
16245
16246 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16247 then
16248
16249
16250 if $TRUEPRG; then
16251   HAVE_BSDI_OS_TRUE=
16252   HAVE_BSDI_OS_FALSE='#'
16253 else
16254   HAVE_BSDI_OS_TRUE='#'
16255   HAVE_BSDI_OS_FALSE=
16256 fi
16257         cat >>confdefs.h <<\_ACEOF
16258 #define HAVE_BSDI_OS 1
16259 _ACEOF
16260
16261 else
16262
16263
16264 if $FALSEPRG; then
16265   HAVE_BSDI_OS_TRUE=
16266   HAVE_BSDI_OS_FALSE='#'
16267 else
16268   HAVE_BSDI_OS_TRUE='#'
16269   HAVE_BSDI_OS_FALSE=
16270 fi
16271 fi
16272
16273 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16274 then
16275
16276
16277 if $TRUEPRG; then
16278   HAVE_SGI_OS_TRUE=
16279   HAVE_SGI_OS_FALSE='#'
16280 else
16281   HAVE_SGI_OS_TRUE='#'
16282   HAVE_SGI_OS_FALSE=
16283 fi
16284         cat >>confdefs.h <<\_ACEOF
16285 #define HAVE_SGI_OS 1
16286 _ACEOF
16287
16288 else
16289
16290
16291 if $FALSEPRG; then
16292   HAVE_SGI_OS_TRUE=
16293   HAVE_SGI_OS_FALSE='#'
16294 else
16295   HAVE_SGI_OS_TRUE='#'
16296   HAVE_SGI_OS_FALSE=
16297 fi
16298 fi
16299
16300 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16301 then
16302
16303
16304 if $TRUEPRG; then
16305   HAVE_IRIX_OS_TRUE=
16306   HAVE_IRIX_OS_FALSE='#'
16307 else
16308   HAVE_IRIX_OS_TRUE='#'
16309   HAVE_IRIX_OS_FALSE=
16310 fi
16311         cat >>confdefs.h <<\_ACEOF
16312 #define HAVE_IRIX_OS 1
16313 _ACEOF
16314
16315 else
16316
16317
16318 if $FALSEPRG; then
16319   HAVE_IRIX_OS_TRUE=
16320   HAVE_IRIX_OS_FALSE='#'
16321 else
16322   HAVE_IRIX_OS_TRUE='#'
16323   HAVE_IRIX_OS_FALSE=
16324 fi
16325 fi
16326
16327 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16328 then
16329
16330
16331 if $TRUEPRG; then
16332   HAVE_DARWIN_OS_TRUE=
16333   HAVE_DARWIN_OS_FALSE='#'
16334 else
16335   HAVE_DARWIN_OS_TRUE='#'
16336   HAVE_DARWIN_OS_FALSE=
16337 fi
16338     cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_DARWIN_OS 1
16340 _ACEOF
16341
16342 else
16343
16344
16345 if $FALSEPRG; then
16346   HAVE_DARWIN_OS_TRUE=
16347   HAVE_DARWIN_OS_FALSE='#'
16348 else
16349   HAVE_DARWIN_OS_TRUE='#'
16350   HAVE_DARWIN_OS_FALSE=
16351 fi
16352 fi
16353
16354
16355 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16356 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16357 if test "x$DISTNAME" != "x"
16358 then
16359         echo "distname set to $DISTNAME"
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16361 then
16362         DISTNAME=alpha
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16364 then
16365         DISTNAME=aix
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16367 then
16368         DISTNAME=hpux
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16370 then
16371         DISTNAME=solaris
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16373 then
16374         DISTNAME=freebsd
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16376 then
16377         DISTNAME=netbsd
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16379 then
16380         DISTNAME=openbsd
16381 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16382 then
16383         DISTNAME=irix
16384 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16385 then
16386         DISTNAME=bsdi
16387 elif test -f /etc/SuSE-release
16388 then
16389         DISTNAME=suse
16390 elif test -d /etc/SuSEconfig
16391 then
16392         DISTNAME=suse5
16393 elif test -f /etc/mandrake-release
16394 then
16395         DISTNAME=mandrake
16396 elif test -f /etc/whitebox-release
16397 then
16398        DISTNAME=redhat
16399 elif test -f /etc/redhat-release
16400 then
16401         DISTNAME=redhat
16402 elif test -f /etc/gentoo-release
16403 then
16404         DISTNAME=gentoo
16405 elif test -f /etc/debian_version
16406 then
16407         DISTNAME=debian
16408 elif test -f /etc/slackware-version
16409 then
16410         DISTNAME=slackware
16411 elif test x$host_vendor = xapple
16412 then
16413     DISTNAME=osx
16414 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16415 then
16416     DISTNAME=darwin
16417 elif test -f /etc/engarde-version
16418 then
16419         DISTNAME=engarde
16420 elif test "$CYGWIN" = yes
16421 then
16422         DISTNAME=cygwin
16423         cat >>confdefs.h <<\_ACEOF
16424 #define HAVE_CYGWIN 1
16425 _ACEOF
16426
16427 else
16428         DISTNAME=unknown
16429 fi
16430 { echo "$as_me:$LINENO: result: done" >&5
16431 echo "${ECHO_T}done" >&6; }
16432
16433
16434 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16435 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16436 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16437 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16438   echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440   cat >conftest.make <<\_ACEOF
16441 SHELL = /bin/sh
16442 all:
16443         @echo '@@@%%%=$(MAKE)=@@@%%%'
16444 _ACEOF
16445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16447   *@@@%%%=?*=@@@%%%*)
16448     eval ac_cv_prog_make_${ac_make}_set=yes;;
16449   *)
16450     eval ac_cv_prog_make_${ac_make}_set=no;;
16451 esac
16452 rm -f conftest.make
16453 fi
16454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16455   { echo "$as_me:$LINENO: result: yes" >&5
16456 echo "${ECHO_T}yes" >&6; }
16457   SET_MAKE=
16458 else
16459   { echo "$as_me:$LINENO: result: no" >&5
16460 echo "${ECHO_T}no" >&6; }
16461   SET_MAKE="MAKE=${MAKE-make}"
16462 fi
16463
16464
16465
16466         MKINSTALLDIRS=
16467   if test -n "$ac_aux_dir"; then
16468     case "$ac_aux_dir" in
16469       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16470       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16471     esac
16472   fi
16473   if test -z "$MKINSTALLDIRS"; then
16474     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16475   fi
16476
16477
16478
16479   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16480 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16481     # Check whether --enable-nls was given.
16482 if test "${enable_nls+set}" = set; then
16483   enableval=$enable_nls; USE_NLS=$enableval
16484 else
16485   USE_NLS=yes
16486 fi
16487
16488   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16489 echo "${ECHO_T}$USE_NLS" >&6; }
16490
16491
16492
16493
16494
16495
16496 # Prepare PATH_SEPARATOR.
16497 # The user is always right.
16498 if test "${PATH_SEPARATOR+set}" != set; then
16499   echo "#! /bin/sh" >conf$$.sh
16500   echo  "exit 0"   >>conf$$.sh
16501   chmod +x conf$$.sh
16502   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16503     PATH_SEPARATOR=';'
16504   else
16505     PATH_SEPARATOR=:
16506   fi
16507   rm -f conf$$.sh
16508 fi
16509
16510 # Find out how to test for executable files. Don't use a zero-byte file,
16511 # as systems may use methods other than mode bits to determine executability.
16512 cat >conf$$.file <<_ASEOF
16513 #! /bin/sh
16514 exit 0
16515 _ASEOF
16516 chmod +x conf$$.file
16517 if test -x conf$$.file >/dev/null 2>&1; then
16518   ac_executable_p="test -x"
16519 else
16520   ac_executable_p="test -f"
16521 fi
16522 rm -f conf$$.file
16523
16524 # Extract the first word of "msgfmt", so it can be a program name with args.
16525 set dummy msgfmt; ac_word=$2
16526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16528 if test "${ac_cv_path_MSGFMT+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   case "$MSGFMT" in
16532   [\\/]* | ?:[\\/]*)
16533     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16534     ;;
16535   *)
16536     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16537     for ac_dir in $PATH; do
16538       IFS="$ac_save_IFS"
16539       test -z "$ac_dir" && ac_dir=.
16540       for ac_exec_ext in '' $ac_executable_extensions; do
16541         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16542           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16543           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16544      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16545             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16546             break 2
16547           fi
16548         fi
16549       done
16550     done
16551     IFS="$ac_save_IFS"
16552   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16553     ;;
16554 esac
16555 fi
16556 MSGFMT="$ac_cv_path_MSGFMT"
16557 if test "$MSGFMT" != ":"; then
16558   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16559 echo "${ECHO_T}$MSGFMT" >&6; }
16560 else
16561   { echo "$as_me:$LINENO: result: no" >&5
16562 echo "${ECHO_T}no" >&6; }
16563 fi
16564
16565   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16566 set dummy gmsgfmt; ac_word=$2
16567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16569 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   case $GMSGFMT in
16573   [\\/]* | ?:[\\/]*)
16574   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16575   ;;
16576   *)
16577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16578 for as_dir in $PATH
16579 do
16580   IFS=$as_save_IFS
16581   test -z "$as_dir" && as_dir=.
16582   for ac_exec_ext in '' $ac_executable_extensions; do
16583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16584     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16586     break 2
16587   fi
16588 done
16589 done
16590 IFS=$as_save_IFS
16591
16592   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16593   ;;
16594 esac
16595 fi
16596 GMSGFMT=$ac_cv_path_GMSGFMT
16597 if test -n "$GMSGFMT"; then
16598   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16599 echo "${ECHO_T}$GMSGFMT" >&6; }
16600 else
16601   { echo "$as_me:$LINENO: result: no" >&5
16602 echo "${ECHO_T}no" >&6; }
16603 fi
16604
16605
16606
16607
16608 # Prepare PATH_SEPARATOR.
16609 # The user is always right.
16610 if test "${PATH_SEPARATOR+set}" != set; then
16611   echo "#! /bin/sh" >conf$$.sh
16612   echo  "exit 0"   >>conf$$.sh
16613   chmod +x conf$$.sh
16614   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16615     PATH_SEPARATOR=';'
16616   else
16617     PATH_SEPARATOR=:
16618   fi
16619   rm -f conf$$.sh
16620 fi
16621
16622 # Find out how to test for executable files. Don't use a zero-byte file,
16623 # as systems may use methods other than mode bits to determine executability.
16624 cat >conf$$.file <<_ASEOF
16625 #! /bin/sh
16626 exit 0
16627 _ASEOF
16628 chmod +x conf$$.file
16629 if test -x conf$$.file >/dev/null 2>&1; then
16630   ac_executable_p="test -x"
16631 else
16632   ac_executable_p="test -f"
16633 fi
16634 rm -f conf$$.file
16635
16636 # Extract the first word of "xgettext", so it can be a program name with args.
16637 set dummy xgettext; ac_word=$2
16638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16640 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   case "$XGETTEXT" in
16644   [\\/]* | ?:[\\/]*)
16645     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16646     ;;
16647   *)
16648     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16649     for ac_dir in $PATH; do
16650       IFS="$ac_save_IFS"
16651       test -z "$ac_dir" && ac_dir=.
16652       for ac_exec_ext in '' $ac_executable_extensions; do
16653         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16654           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16655           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16656      (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
16657             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16658             break 2
16659           fi
16660         fi
16661       done
16662     done
16663     IFS="$ac_save_IFS"
16664   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16665     ;;
16666 esac
16667 fi
16668 XGETTEXT="$ac_cv_path_XGETTEXT"
16669 if test "$XGETTEXT" != ":"; then
16670   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16671 echo "${ECHO_T}$XGETTEXT" >&6; }
16672 else
16673   { echo "$as_me:$LINENO: result: no" >&5
16674 echo "${ECHO_T}no" >&6; }
16675 fi
16676
16677     rm -f messages.po
16678
16679
16680 # Prepare PATH_SEPARATOR.
16681 # The user is always right.
16682 if test "${PATH_SEPARATOR+set}" != set; then
16683   echo "#! /bin/sh" >conf$$.sh
16684   echo  "exit 0"   >>conf$$.sh
16685   chmod +x conf$$.sh
16686   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16687     PATH_SEPARATOR=';'
16688   else
16689     PATH_SEPARATOR=:
16690   fi
16691   rm -f conf$$.sh
16692 fi
16693
16694 # Find out how to test for executable files. Don't use a zero-byte file,
16695 # as systems may use methods other than mode bits to determine executability.
16696 cat >conf$$.file <<_ASEOF
16697 #! /bin/sh
16698 exit 0
16699 _ASEOF
16700 chmod +x conf$$.file
16701 if test -x conf$$.file >/dev/null 2>&1; then
16702   ac_executable_p="test -x"
16703 else
16704   ac_executable_p="test -f"
16705 fi
16706 rm -f conf$$.file
16707
16708 # Extract the first word of "msgmerge", so it can be a program name with args.
16709 set dummy msgmerge; ac_word=$2
16710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16712 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715   case "$MSGMERGE" in
16716   [\\/]* | ?:[\\/]*)
16717     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16718     ;;
16719   *)
16720     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16721     for ac_dir in $PATH; do
16722       IFS="$ac_save_IFS"
16723       test -z "$ac_dir" && ac_dir=.
16724       for ac_exec_ext in '' $ac_executable_extensions; do
16725         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16726           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16727           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16728             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16729             break 2
16730           fi
16731         fi
16732       done
16733     done
16734     IFS="$ac_save_IFS"
16735   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16736     ;;
16737 esac
16738 fi
16739 MSGMERGE="$ac_cv_path_MSGMERGE"
16740 if test "$MSGMERGE" != ":"; then
16741   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16742 echo "${ECHO_T}$MSGMERGE" >&6; }
16743 else
16744   { echo "$as_me:$LINENO: result: no" >&5
16745 echo "${ECHO_T}no" >&6; }
16746 fi
16747
16748
16749       if test "$GMSGFMT" != ":"; then
16750             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16751        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16752       : ;
16753     else
16754       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16755       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16756 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16757       GMSGFMT=":"
16758     fi
16759   fi
16760
16761       if test "$XGETTEXT" != ":"; then
16762             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16763        (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
16764       : ;
16765     else
16766       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16767 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16768       XGETTEXT=":"
16769     fi
16770         rm -f messages.po
16771   fi
16772
16773   ac_config_commands="$ac_config_commands default-1"
16774
16775
16776
16777       if test "X$prefix" = "XNONE"; then
16778     acl_final_prefix="$ac_default_prefix"
16779   else
16780     acl_final_prefix="$prefix"
16781   fi
16782   if test "X$exec_prefix" = "XNONE"; then
16783     acl_final_exec_prefix='${prefix}'
16784   else
16785     acl_final_exec_prefix="$exec_prefix"
16786   fi
16787   acl_save_prefix="$prefix"
16788   prefix="$acl_final_prefix"
16789   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16790   prefix="$acl_save_prefix"
16791
16792
16793 # Check whether --with-gnu-ld was given.
16794 if test "${with_gnu_ld+set}" = set; then
16795   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16796 else
16797   with_gnu_ld=no
16798 fi
16799
16800 # Prepare PATH_SEPARATOR.
16801 # The user is always right.
16802 if test "${PATH_SEPARATOR+set}" != set; then
16803   echo "#! /bin/sh" >conf$$.sh
16804   echo  "exit 0"   >>conf$$.sh
16805   chmod +x conf$$.sh
16806   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16807     PATH_SEPARATOR=';'
16808   else
16809     PATH_SEPARATOR=:
16810   fi
16811   rm -f conf$$.sh
16812 fi
16813 ac_prog=ld
16814 if test "$GCC" = yes; then
16815   # Check if gcc -print-prog-name=ld gives a path.
16816   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16817 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16818   case $host in
16819   *-*-mingw*)
16820     # gcc leaves a trailing carriage return which upsets mingw
16821     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16822   *)
16823     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16824   esac
16825   case $ac_prog in
16826     # Accept absolute paths.
16827     [\\/]* | [A-Za-z]:[\\/]*)
16828       re_direlt='/[^/][^/]*/\.\./'
16829       # Canonicalize the path of ld
16830       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16831       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16832         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16833       done
16834       test -z "$LD" && LD="$ac_prog"
16835       ;;
16836   "")
16837     # If it fails, then pretend we aren't using GCC.
16838     ac_prog=ld
16839     ;;
16840   *)
16841     # If it is relative, then search for the first ld in PATH.
16842     with_gnu_ld=unknown
16843     ;;
16844   esac
16845 elif test "$with_gnu_ld" = yes; then
16846   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16847 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16848 else
16849   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16850 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16851 fi
16852 if test "${acl_cv_path_LD+set}" = set; then
16853   echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855   if test -z "$LD"; then
16856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16857   for ac_dir in $PATH; do
16858     test -z "$ac_dir" && ac_dir=.
16859     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16860       acl_cv_path_LD="$ac_dir/$ac_prog"
16861       # Check to see if the program is GNU ld.  I'd rather use --version,
16862       # but apparently some GNU ld's only accept -v.
16863       # Break only if it was the GNU/non-GNU ld that we prefer.
16864       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16865       *GNU* | *'with BFD'*)
16866         test "$with_gnu_ld" != no && break ;;
16867       *)
16868         test "$with_gnu_ld" != yes && break ;;
16869       esac
16870     fi
16871   done
16872   IFS="$ac_save_ifs"
16873 else
16874   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16875 fi
16876 fi
16877
16878 LD="$acl_cv_path_LD"
16879 if test -n "$LD"; then
16880   { echo "$as_me:$LINENO: result: $LD" >&5
16881 echo "${ECHO_T}$LD" >&6; }
16882 else
16883   { echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6; }
16885 fi
16886 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16887 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16888    { (exit 1); exit 1; }; }
16889 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16890 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16891 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16895 case `$LD -v 2>&1 </dev/null` in
16896 *GNU* | *'with BFD'*)
16897   acl_cv_prog_gnu_ld=yes ;;
16898 *)
16899   acl_cv_prog_gnu_ld=no ;;
16900 esac
16901 fi
16902 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16903 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16904 with_gnu_ld=$acl_cv_prog_gnu_ld
16905
16906
16907
16908
16909                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16910 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16911 if test "${acl_cv_rpath+set}" = set; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914
16915     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16916     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16917     . ./conftest.sh
16918     rm -f ./conftest.sh
16919     acl_cv_rpath=done
16920
16921 fi
16922 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16923 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16924   wl="$acl_cv_wl"
16925   libext="$acl_cv_libext"
16926   shlibext="$acl_cv_shlibext"
16927   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16928   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16929   hardcode_direct="$acl_cv_hardcode_direct"
16930   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16931     # Check whether --enable-rpath was given.
16932 if test "${enable_rpath+set}" = set; then
16933   enableval=$enable_rpath; :
16934 else
16935   enable_rpath=yes
16936 fi
16937
16938
16939
16940
16941
16942
16943
16944
16945     use_additional=yes
16946
16947   acl_save_prefix="$prefix"
16948   prefix="$acl_final_prefix"
16949   acl_save_exec_prefix="$exec_prefix"
16950   exec_prefix="$acl_final_exec_prefix"
16951
16952     eval additional_includedir=\"$includedir\"
16953     eval additional_libdir=\"$libdir\"
16954
16955   exec_prefix="$acl_save_exec_prefix"
16956   prefix="$acl_save_prefix"
16957
16958
16959 # Check whether --with-libiconv-prefix was given.
16960 if test "${with_libiconv_prefix+set}" = set; then
16961   withval=$with_libiconv_prefix;
16962     if test "X$withval" = "Xno"; then
16963       use_additional=no
16964     else
16965       if test "X$withval" = "X"; then
16966
16967   acl_save_prefix="$prefix"
16968   prefix="$acl_final_prefix"
16969   acl_save_exec_prefix="$exec_prefix"
16970   exec_prefix="$acl_final_exec_prefix"
16971
16972           eval additional_includedir=\"$includedir\"
16973           eval additional_libdir=\"$libdir\"
16974
16975   exec_prefix="$acl_save_exec_prefix"
16976   prefix="$acl_save_prefix"
16977
16978       else
16979         additional_includedir="$withval/include"
16980         additional_libdir="$withval/lib"
16981       fi
16982     fi
16983
16984 fi
16985
16986       LIBICONV=
16987   LTLIBICONV=
16988   INCICONV=
16989   rpathdirs=
16990   ltrpathdirs=
16991   names_already_handled=
16992   names_next_round='iconv '
16993   while test -n "$names_next_round"; do
16994     names_this_round="$names_next_round"
16995     names_next_round=
16996     for name in $names_this_round; do
16997       already_handled=
16998       for n in $names_already_handled; do
16999         if test "$n" = "$name"; then
17000           already_handled=yes
17001           break
17002         fi
17003       done
17004       if test -z "$already_handled"; then
17005         names_already_handled="$names_already_handled $name"
17006                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17007         eval value=\"\$HAVE_LIB$uppername\"
17008         if test -n "$value"; then
17009           if test "$value" = yes; then
17010             eval value=\"\$LIB$uppername\"
17011             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17012             eval value=\"\$LTLIB$uppername\"
17013             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17014           else
17015                                     :
17016           fi
17017         else
17018                               found_dir=
17019           found_la=
17020           found_so=
17021           found_a=
17022           if test $use_additional = yes; then
17023             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17024               found_dir="$additional_libdir"
17025               found_so="$additional_libdir/lib$name.$shlibext"
17026               if test -f "$additional_libdir/lib$name.la"; then
17027                 found_la="$additional_libdir/lib$name.la"
17028               fi
17029             else
17030               if test -f "$additional_libdir/lib$name.$libext"; then
17031                 found_dir="$additional_libdir"
17032                 found_a="$additional_libdir/lib$name.$libext"
17033                 if test -f "$additional_libdir/lib$name.la"; then
17034                   found_la="$additional_libdir/lib$name.la"
17035                 fi
17036               fi
17037             fi
17038           fi
17039           if test "X$found_dir" = "X"; then
17040             for x in $LDFLAGS $LTLIBICONV; do
17041
17042   acl_save_prefix="$prefix"
17043   prefix="$acl_final_prefix"
17044   acl_save_exec_prefix="$exec_prefix"
17045   exec_prefix="$acl_final_exec_prefix"
17046   eval x=\"$x\"
17047   exec_prefix="$acl_save_exec_prefix"
17048   prefix="$acl_save_prefix"
17049
17050               case "$x" in
17051                 -L*)
17052                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17053                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17054                     found_dir="$dir"
17055                     found_so="$dir/lib$name.$shlibext"
17056                     if test -f "$dir/lib$name.la"; then
17057                       found_la="$dir/lib$name.la"
17058                     fi
17059                   else
17060                     if test -f "$dir/lib$name.$libext"; then
17061                       found_dir="$dir"
17062                       found_a="$dir/lib$name.$libext"
17063                       if test -f "$dir/lib$name.la"; then
17064                         found_la="$dir/lib$name.la"
17065                       fi
17066                     fi
17067                   fi
17068                   ;;
17069               esac
17070               if test "X$found_dir" != "X"; then
17071                 break
17072               fi
17073             done
17074           fi
17075           if test "X$found_dir" != "X"; then
17076                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17077             if test "X$found_so" != "X"; then
17078                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17079                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17080               else
17081                                                                                 haveit=
17082                 for x in $ltrpathdirs; do
17083                   if test "X$x" = "X$found_dir"; then
17084                     haveit=yes
17085                     break
17086                   fi
17087                 done
17088                 if test -z "$haveit"; then
17089                   ltrpathdirs="$ltrpathdirs $found_dir"
17090                 fi
17091                                 if test "$hardcode_direct" = yes; then
17092                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093                 else
17094                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17095                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17096                                                             haveit=
17097                     for x in $rpathdirs; do
17098                       if test "X$x" = "X$found_dir"; then
17099                         haveit=yes
17100                         break
17101                       fi
17102                     done
17103                     if test -z "$haveit"; then
17104                       rpathdirs="$rpathdirs $found_dir"
17105                     fi
17106                   else
17107                                                                                 haveit=
17108                     for x in $LDFLAGS $LIBICONV; do
17109
17110   acl_save_prefix="$prefix"
17111   prefix="$acl_final_prefix"
17112   acl_save_exec_prefix="$exec_prefix"
17113   exec_prefix="$acl_final_exec_prefix"
17114   eval x=\"$x\"
17115   exec_prefix="$acl_save_exec_prefix"
17116   prefix="$acl_save_prefix"
17117
17118                       if test "X$x" = "X-L$found_dir"; then
17119                         haveit=yes
17120                         break
17121                       fi
17122                     done
17123                     if test -z "$haveit"; then
17124                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17125                     fi
17126                     if test "$hardcode_minus_L" != no; then
17127                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17128                     else
17129                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17130                     fi
17131                   fi
17132                 fi
17133               fi
17134             else
17135               if test "X$found_a" != "X"; then
17136                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17137               else
17138                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17139               fi
17140             fi
17141                         additional_includedir=
17142             case "$found_dir" in
17143               */lib | */lib/)
17144                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17145                 additional_includedir="$basedir/include"
17146                 ;;
17147             esac
17148             if test "X$additional_includedir" != "X"; then
17149                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17150                 haveit=
17151                 if test "X$additional_includedir" = "X/usr/local/include"; then
17152                   if test -n "$GCC"; then
17153                     case $host_os in
17154                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17155                     esac
17156                   fi
17157                 fi
17158                 if test -z "$haveit"; then
17159                   for x in $CPPFLAGS $INCICONV; do
17160
17161   acl_save_prefix="$prefix"
17162   prefix="$acl_final_prefix"
17163   acl_save_exec_prefix="$exec_prefix"
17164   exec_prefix="$acl_final_exec_prefix"
17165   eval x=\"$x\"
17166   exec_prefix="$acl_save_exec_prefix"
17167   prefix="$acl_save_prefix"
17168
17169                     if test "X$x" = "X-I$additional_includedir"; then
17170                       haveit=yes
17171                       break
17172                     fi
17173                   done
17174                   if test -z "$haveit"; then
17175                     if test -d "$additional_includedir"; then
17176                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17177                     fi
17178                   fi
17179                 fi
17180               fi
17181             fi
17182                         if test -n "$found_la"; then
17183                                                         save_libdir="$libdir"
17184               case "$found_la" in
17185                 */* | *\\*) . "$found_la" ;;
17186                 *) . "./$found_la" ;;
17187               esac
17188               libdir="$save_libdir"
17189                             for dep in $dependency_libs; do
17190                 case "$dep" in
17191                   -L*)
17192                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17193                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17194                       haveit=
17195                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17196                         if test -n "$GCC"; then
17197                           case $host_os in
17198                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17199                           esac
17200                         fi
17201                       fi
17202                       if test -z "$haveit"; then
17203                         haveit=
17204                         for x in $LDFLAGS $LIBICONV; do
17205
17206   acl_save_prefix="$prefix"
17207   prefix="$acl_final_prefix"
17208   acl_save_exec_prefix="$exec_prefix"
17209   exec_prefix="$acl_final_exec_prefix"
17210   eval x=\"$x\"
17211   exec_prefix="$acl_save_exec_prefix"
17212   prefix="$acl_save_prefix"
17213
17214                           if test "X$x" = "X-L$additional_libdir"; then
17215                             haveit=yes
17216                             break
17217                           fi
17218                         done
17219                         if test -z "$haveit"; then
17220                           if test -d "$additional_libdir"; then
17221                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17222                           fi
17223                         fi
17224                         haveit=
17225                         for x in $LDFLAGS $LTLIBICONV; do
17226
17227   acl_save_prefix="$prefix"
17228   prefix="$acl_final_prefix"
17229   acl_save_exec_prefix="$exec_prefix"
17230   exec_prefix="$acl_final_exec_prefix"
17231   eval x=\"$x\"
17232   exec_prefix="$acl_save_exec_prefix"
17233   prefix="$acl_save_prefix"
17234
17235                           if test "X$x" = "X-L$additional_libdir"; then
17236                             haveit=yes
17237                             break
17238                           fi
17239                         done
17240                         if test -z "$haveit"; then
17241                           if test -d "$additional_libdir"; then
17242                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17243                           fi
17244                         fi
17245                       fi
17246                     fi
17247                     ;;
17248                   -R*)
17249                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17250                     if test "$enable_rpath" != no; then
17251                                                                   haveit=
17252                       for x in $rpathdirs; do
17253                         if test "X$x" = "X$dir"; then
17254                           haveit=yes
17255                           break
17256                         fi
17257                       done
17258                       if test -z "$haveit"; then
17259                         rpathdirs="$rpathdirs $dir"
17260                       fi
17261                                                                   haveit=
17262                       for x in $ltrpathdirs; do
17263                         if test "X$x" = "X$dir"; then
17264                           haveit=yes
17265                           break
17266                         fi
17267                       done
17268                       if test -z "$haveit"; then
17269                         ltrpathdirs="$ltrpathdirs $dir"
17270                       fi
17271                     fi
17272                     ;;
17273                   -l*)
17274                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17275                     ;;
17276                   *.la)
17277                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17278                     ;;
17279                   *)
17280                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17281                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17282                     ;;
17283                 esac
17284               done
17285             fi
17286           else
17287                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17288             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17289           fi
17290         fi
17291       fi
17292     done
17293   done
17294   if test "X$rpathdirs" != "X"; then
17295     if test -n "$hardcode_libdir_separator"; then
17296                         alldirs=
17297       for found_dir in $rpathdirs; do
17298         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17299       done
17300             acl_save_libdir="$libdir"
17301       libdir="$alldirs"
17302       eval flag=\"$hardcode_libdir_flag_spec\"
17303       libdir="$acl_save_libdir"
17304       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17305     else
17306             for found_dir in $rpathdirs; do
17307         acl_save_libdir="$libdir"
17308         libdir="$found_dir"
17309         eval flag=\"$hardcode_libdir_flag_spec\"
17310         libdir="$acl_save_libdir"
17311         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17312       done
17313     fi
17314   fi
17315   if test "X$ltrpathdirs" != "X"; then
17316             for found_dir in $ltrpathdirs; do
17317       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17318     done
17319   fi
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17339 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17340 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   gt_save_CPPFLAGS="$CPPFLAGS"
17344      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17345      gt_save_LIBS="$LIBS"
17346      LIBS="$LIBS -framework CoreFoundation"
17347      cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h.  */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h.  */
17353 #include <CFPreferences.h>
17354 int
17355 main ()
17356 {
17357 CFPreferencesCopyAppValue(NULL, NULL)
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_link") 2>conftest.er1
17370   ac_status=$?
17371   grep -v '^ *+' conftest.er1 >conftest.err
17372   rm -f conftest.er1
17373   cat conftest.err >&5
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } && {
17376          test -z "$ac_c_werror_flag" ||
17377          test ! -s conftest.err
17378        } && test -s conftest$ac_exeext &&
17379        $as_test_x conftest$ac_exeext; then
17380   gt_cv_func_CFPreferencesCopyAppValue=yes
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385         gt_cv_func_CFPreferencesCopyAppValue=no
17386 fi
17387
17388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17389       conftest$ac_exeext conftest.$ac_ext
17390      CPPFLAGS="$gt_save_CPPFLAGS"
17391      LIBS="$gt_save_LIBS"
17392 fi
17393 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17394 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17395   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17396
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17399 _ACEOF
17400
17401   fi
17402     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17403 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17404 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17405   echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407   gt_save_CPPFLAGS="$CPPFLAGS"
17408      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17409      gt_save_LIBS="$LIBS"
17410      LIBS="$LIBS -framework CoreFoundation"
17411      cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h.  */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h.  */
17417 #include <CFLocale.h>
17418 int
17419 main ()
17420 {
17421 CFLocaleCopyCurrent();
17422   ;
17423   return 0;
17424 }
17425 _ACEOF
17426 rm -f conftest.$ac_objext conftest$ac_exeext
17427 if { (ac_try="$ac_link"
17428 case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_link") 2>conftest.er1
17434   ac_status=$?
17435   grep -v '^ *+' conftest.er1 >conftest.err
17436   rm -f conftest.er1
17437   cat conftest.err >&5
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); } && {
17440          test -z "$ac_c_werror_flag" ||
17441          test ! -s conftest.err
17442        } && test -s conftest$ac_exeext &&
17443        $as_test_x conftest$ac_exeext; then
17444   gt_cv_func_CFLocaleCopyCurrent=yes
17445 else
17446   echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17448
17449         gt_cv_func_CFLocaleCopyCurrent=no
17450 fi
17451
17452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17453       conftest$ac_exeext conftest.$ac_ext
17454      CPPFLAGS="$gt_save_CPPFLAGS"
17455      LIBS="$gt_save_LIBS"
17456 fi
17457 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17458 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17459   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17460
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_CFLOCALECOPYCURRENT 1
17463 _ACEOF
17464
17465   fi
17466   INTL_MACOSX_LIBS=
17467   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17468     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17469   fi
17470
17471
17472
17473
17474   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17475 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17476     # Check whether --enable-nls was given.
17477 if test "${enable_nls+set}" = set; then
17478   enableval=$enable_nls; USE_NLS=$enableval
17479 else
17480   USE_NLS=yes
17481 fi
17482
17483   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17484 echo "${ECHO_T}$USE_NLS" >&6; }
17485
17486
17487
17488
17489   LIBINTL=
17490   LTLIBINTL=
17491   POSUB=
17492
17493     if test "$USE_NLS" = "yes"; then
17494     gt_use_preinstalled_gnugettext=no
17495
17496
17497
17498
17499
17500
17501         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17502 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17503 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17504   echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506   cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512 #include <libintl.h>
17513 extern int _nl_msg_cat_cntr;
17514 extern int *_nl_domain_bindings;
17515 int
17516 main ()
17517 {
17518 bindtextdomain ("", "");
17519 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (ac_try="$ac_link"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_link") 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } && {
17538          test -z "$ac_c_werror_flag" ||
17539          test ! -s conftest.err
17540        } && test -s conftest$ac_exeext &&
17541        $as_test_x conftest$ac_exeext; then
17542   gt_cv_func_gnugettext1_libc=yes
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         gt_cv_func_gnugettext1_libc=no
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17551       conftest$ac_exeext conftest.$ac_ext
17552 fi
17553 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17554 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17555
17556         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17557
17558
17559
17560
17561
17562           am_save_CPPFLAGS="$CPPFLAGS"
17563
17564   for element in $INCICONV; do
17565     haveit=
17566     for x in $CPPFLAGS; do
17567
17568   acl_save_prefix="$prefix"
17569   prefix="$acl_final_prefix"
17570   acl_save_exec_prefix="$exec_prefix"
17571   exec_prefix="$acl_final_exec_prefix"
17572   eval x=\"$x\"
17573   exec_prefix="$acl_save_exec_prefix"
17574   prefix="$acl_save_prefix"
17575
17576       if test "X$x" = "X$element"; then
17577         haveit=yes
17578         break
17579       fi
17580     done
17581     if test -z "$haveit"; then
17582       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17583     fi
17584   done
17585
17586
17587   { echo "$as_me:$LINENO: checking for iconv" >&5
17588 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17589 if test "${am_cv_func_iconv+set}" = set; then
17590   echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592
17593     am_cv_func_iconv="no, consider installing GNU libiconv"
17594     am_cv_lib_iconv=no
17595     cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601 #include <stdlib.h>
17602 #include <iconv.h>
17603 int
17604 main ()
17605 {
17606 iconv_t cd = iconv_open("","");
17607        iconv(cd,NULL,NULL,NULL,NULL);
17608        iconv_close(cd);
17609   ;
17610   return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617   *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620   (eval "$ac_link") 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } && {
17627          test -z "$ac_c_werror_flag" ||
17628          test ! -s conftest.err
17629        } && test -s conftest$ac_exeext &&
17630        $as_test_x conftest$ac_exeext; then
17631   am_cv_func_iconv=yes
17632 else
17633   echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636
17637 fi
17638
17639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640       conftest$ac_exeext conftest.$ac_ext
17641     if test "$am_cv_func_iconv" != yes; then
17642       am_save_LIBS="$LIBS"
17643       LIBS="$LIBS $LIBICONV"
17644       cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h.  */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h.  */
17650 #include <stdlib.h>
17651 #include <iconv.h>
17652 int
17653 main ()
17654 {
17655 iconv_t cd = iconv_open("","");
17656          iconv(cd,NULL,NULL,NULL,NULL);
17657          iconv_close(cd);
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 rm -f conftest.$ac_objext conftest$ac_exeext
17663 if { (ac_try="$ac_link"
17664 case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669   (eval "$ac_link") 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } && {
17676          test -z "$ac_c_werror_flag" ||
17677          test ! -s conftest.err
17678        } && test -s conftest$ac_exeext &&
17679        $as_test_x conftest$ac_exeext; then
17680   am_cv_lib_iconv=yes
17681         am_cv_func_iconv=yes
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17690       conftest$ac_exeext conftest.$ac_ext
17691       LIBS="$am_save_LIBS"
17692     fi
17693
17694 fi
17695 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17696 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17697   if test "$am_cv_func_iconv" = yes; then
17698
17699 cat >>confdefs.h <<\_ACEOF
17700 #define HAVE_ICONV 1
17701 _ACEOF
17702
17703   fi
17704   if test "$am_cv_lib_iconv" = yes; then
17705     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17706 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17707     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17708 echo "${ECHO_T}$LIBICONV" >&6; }
17709   else
17710             CPPFLAGS="$am_save_CPPFLAGS"
17711     LIBICONV=
17712     LTLIBICONV=
17713   fi
17714
17715
17716
17717
17718
17719
17720     use_additional=yes
17721
17722   acl_save_prefix="$prefix"
17723   prefix="$acl_final_prefix"
17724   acl_save_exec_prefix="$exec_prefix"
17725   exec_prefix="$acl_final_exec_prefix"
17726
17727     eval additional_includedir=\"$includedir\"
17728     eval additional_libdir=\"$libdir\"
17729
17730   exec_prefix="$acl_save_exec_prefix"
17731   prefix="$acl_save_prefix"
17732
17733
17734 # Check whether --with-libintl-prefix was given.
17735 if test "${with_libintl_prefix+set}" = set; then
17736   withval=$with_libintl_prefix;
17737     if test "X$withval" = "Xno"; then
17738       use_additional=no
17739     else
17740       if test "X$withval" = "X"; then
17741
17742   acl_save_prefix="$prefix"
17743   prefix="$acl_final_prefix"
17744   acl_save_exec_prefix="$exec_prefix"
17745   exec_prefix="$acl_final_exec_prefix"
17746
17747           eval additional_includedir=\"$includedir\"
17748           eval additional_libdir=\"$libdir\"
17749
17750   exec_prefix="$acl_save_exec_prefix"
17751   prefix="$acl_save_prefix"
17752
17753       else
17754         additional_includedir="$withval/include"
17755         additional_libdir="$withval/lib"
17756       fi
17757     fi
17758
17759 fi
17760
17761       LIBINTL=
17762   LTLIBINTL=
17763   INCINTL=
17764   rpathdirs=
17765   ltrpathdirs=
17766   names_already_handled=
17767   names_next_round='intl '
17768   while test -n "$names_next_round"; do
17769     names_this_round="$names_next_round"
17770     names_next_round=
17771     for name in $names_this_round; do
17772       already_handled=
17773       for n in $names_already_handled; do
17774         if test "$n" = "$name"; then
17775           already_handled=yes
17776           break
17777         fi
17778       done
17779       if test -z "$already_handled"; then
17780         names_already_handled="$names_already_handled $name"
17781                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17782         eval value=\"\$HAVE_LIB$uppername\"
17783         if test -n "$value"; then
17784           if test "$value" = yes; then
17785             eval value=\"\$LIB$uppername\"
17786             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17787             eval value=\"\$LTLIB$uppername\"
17788             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17789           else
17790                                     :
17791           fi
17792         else
17793                               found_dir=
17794           found_la=
17795           found_so=
17796           found_a=
17797           if test $use_additional = yes; then
17798             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17799               found_dir="$additional_libdir"
17800               found_so="$additional_libdir/lib$name.$shlibext"
17801               if test -f "$additional_libdir/lib$name.la"; then
17802                 found_la="$additional_libdir/lib$name.la"
17803               fi
17804             else
17805               if test -f "$additional_libdir/lib$name.$libext"; then
17806                 found_dir="$additional_libdir"
17807                 found_a="$additional_libdir/lib$name.$libext"
17808                 if test -f "$additional_libdir/lib$name.la"; then
17809                   found_la="$additional_libdir/lib$name.la"
17810                 fi
17811               fi
17812             fi
17813           fi
17814           if test "X$found_dir" = "X"; then
17815             for x in $LDFLAGS $LTLIBINTL; do
17816
17817   acl_save_prefix="$prefix"
17818   prefix="$acl_final_prefix"
17819   acl_save_exec_prefix="$exec_prefix"
17820   exec_prefix="$acl_final_exec_prefix"
17821   eval x=\"$x\"
17822   exec_prefix="$acl_save_exec_prefix"
17823   prefix="$acl_save_prefix"
17824
17825               case "$x" in
17826                 -L*)
17827                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17828                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17829                     found_dir="$dir"
17830                     found_so="$dir/lib$name.$shlibext"
17831                     if test -f "$dir/lib$name.la"; then
17832                       found_la="$dir/lib$name.la"
17833                     fi
17834                   else
17835                     if test -f "$dir/lib$name.$libext"; then
17836                       found_dir="$dir"
17837                       found_a="$dir/lib$name.$libext"
17838                       if test -f "$dir/lib$name.la"; then
17839                         found_la="$dir/lib$name.la"
17840                       fi
17841                     fi
17842                   fi
17843                   ;;
17844               esac
17845               if test "X$found_dir" != "X"; then
17846                 break
17847               fi
17848             done
17849           fi
17850           if test "X$found_dir" != "X"; then
17851                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17852             if test "X$found_so" != "X"; then
17853                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17854                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17855               else
17856                                                                                 haveit=
17857                 for x in $ltrpathdirs; do
17858                   if test "X$x" = "X$found_dir"; then
17859                     haveit=yes
17860                     break
17861                   fi
17862                 done
17863                 if test -z "$haveit"; then
17864                   ltrpathdirs="$ltrpathdirs $found_dir"
17865                 fi
17866                                 if test "$hardcode_direct" = yes; then
17867                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868                 else
17869                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17870                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17871                                                             haveit=
17872                     for x in $rpathdirs; do
17873                       if test "X$x" = "X$found_dir"; then
17874                         haveit=yes
17875                         break
17876                       fi
17877                     done
17878                     if test -z "$haveit"; then
17879                       rpathdirs="$rpathdirs $found_dir"
17880                     fi
17881                   else
17882                                                                                 haveit=
17883                     for x in $LDFLAGS $LIBINTL; do
17884
17885   acl_save_prefix="$prefix"
17886   prefix="$acl_final_prefix"
17887   acl_save_exec_prefix="$exec_prefix"
17888   exec_prefix="$acl_final_exec_prefix"
17889   eval x=\"$x\"
17890   exec_prefix="$acl_save_exec_prefix"
17891   prefix="$acl_save_prefix"
17892
17893                       if test "X$x" = "X-L$found_dir"; then
17894                         haveit=yes
17895                         break
17896                       fi
17897                     done
17898                     if test -z "$haveit"; then
17899                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17900                     fi
17901                     if test "$hardcode_minus_L" != no; then
17902                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17903                     else
17904                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17905                     fi
17906                   fi
17907                 fi
17908               fi
17909             else
17910               if test "X$found_a" != "X"; then
17911                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17912               else
17913                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17914               fi
17915             fi
17916                         additional_includedir=
17917             case "$found_dir" in
17918               */lib | */lib/)
17919                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17920                 additional_includedir="$basedir/include"
17921                 ;;
17922             esac
17923             if test "X$additional_includedir" != "X"; then
17924                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17925                 haveit=
17926                 if test "X$additional_includedir" = "X/usr/local/include"; then
17927                   if test -n "$GCC"; then
17928                     case $host_os in
17929                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17930                     esac
17931                   fi
17932                 fi
17933                 if test -z "$haveit"; then
17934                   for x in $CPPFLAGS $INCINTL; do
17935
17936   acl_save_prefix="$prefix"
17937   prefix="$acl_final_prefix"
17938   acl_save_exec_prefix="$exec_prefix"
17939   exec_prefix="$acl_final_exec_prefix"
17940   eval x=\"$x\"
17941   exec_prefix="$acl_save_exec_prefix"
17942   prefix="$acl_save_prefix"
17943
17944                     if test "X$x" = "X-I$additional_includedir"; then
17945                       haveit=yes
17946                       break
17947                     fi
17948                   done
17949                   if test -z "$haveit"; then
17950                     if test -d "$additional_includedir"; then
17951                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17952                     fi
17953                   fi
17954                 fi
17955               fi
17956             fi
17957                         if test -n "$found_la"; then
17958                                                         save_libdir="$libdir"
17959               case "$found_la" in
17960                 */* | *\\*) . "$found_la" ;;
17961                 *) . "./$found_la" ;;
17962               esac
17963               libdir="$save_libdir"
17964                             for dep in $dependency_libs; do
17965                 case "$dep" in
17966                   -L*)
17967                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17968                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17969                       haveit=
17970                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17971                         if test -n "$GCC"; then
17972                           case $host_os in
17973                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17974                           esac
17975                         fi
17976                       fi
17977                       if test -z "$haveit"; then
17978                         haveit=
17979                         for x in $LDFLAGS $LIBINTL; do
17980
17981   acl_save_prefix="$prefix"
17982   prefix="$acl_final_prefix"
17983   acl_save_exec_prefix="$exec_prefix"
17984   exec_prefix="$acl_final_exec_prefix"
17985   eval x=\"$x\"
17986   exec_prefix="$acl_save_exec_prefix"
17987   prefix="$acl_save_prefix"
17988
17989                           if test "X$x" = "X-L$additional_libdir"; then
17990                             haveit=yes
17991                             break
17992                           fi
17993                         done
17994                         if test -z "$haveit"; then
17995                           if test -d "$additional_libdir"; then
17996                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17997                           fi
17998                         fi
17999                         haveit=
18000                         for x in $LDFLAGS $LTLIBINTL; do
18001
18002   acl_save_prefix="$prefix"
18003   prefix="$acl_final_prefix"
18004   acl_save_exec_prefix="$exec_prefix"
18005   exec_prefix="$acl_final_exec_prefix"
18006   eval x=\"$x\"
18007   exec_prefix="$acl_save_exec_prefix"
18008   prefix="$acl_save_prefix"
18009
18010                           if test "X$x" = "X-L$additional_libdir"; then
18011                             haveit=yes
18012                             break
18013                           fi
18014                         done
18015                         if test -z "$haveit"; then
18016                           if test -d "$additional_libdir"; then
18017                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18018                           fi
18019                         fi
18020                       fi
18021                     fi
18022                     ;;
18023                   -R*)
18024                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18025                     if test "$enable_rpath" != no; then
18026                                                                   haveit=
18027                       for x in $rpathdirs; do
18028                         if test "X$x" = "X$dir"; then
18029                           haveit=yes
18030                           break
18031                         fi
18032                       done
18033                       if test -z "$haveit"; then
18034                         rpathdirs="$rpathdirs $dir"
18035                       fi
18036                                                                   haveit=
18037                       for x in $ltrpathdirs; do
18038                         if test "X$x" = "X$dir"; then
18039                           haveit=yes
18040                           break
18041                         fi
18042                       done
18043                       if test -z "$haveit"; then
18044                         ltrpathdirs="$ltrpathdirs $dir"
18045                       fi
18046                     fi
18047                     ;;
18048                   -l*)
18049                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18050                     ;;
18051                   *.la)
18052                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18053                     ;;
18054                   *)
18055                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18056                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18057                     ;;
18058                 esac
18059               done
18060             fi
18061           else
18062                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18063             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18064           fi
18065         fi
18066       fi
18067     done
18068   done
18069   if test "X$rpathdirs" != "X"; then
18070     if test -n "$hardcode_libdir_separator"; then
18071                         alldirs=
18072       for found_dir in $rpathdirs; do
18073         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18074       done
18075             acl_save_libdir="$libdir"
18076       libdir="$alldirs"
18077       eval flag=\"$hardcode_libdir_flag_spec\"
18078       libdir="$acl_save_libdir"
18079       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18080     else
18081             for found_dir in $rpathdirs; do
18082         acl_save_libdir="$libdir"
18083         libdir="$found_dir"
18084         eval flag=\"$hardcode_libdir_flag_spec\"
18085         libdir="$acl_save_libdir"
18086         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18087       done
18088     fi
18089   fi
18090   if test "X$ltrpathdirs" != "X"; then
18091             for found_dir in $ltrpathdirs; do
18092       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18093     done
18094   fi
18095
18096           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18097 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18098 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18099   echo $ECHO_N "(cached) $ECHO_C" >&6
18100 else
18101   gt_save_CPPFLAGS="$CPPFLAGS"
18102             CPPFLAGS="$CPPFLAGS $INCINTL"
18103             gt_save_LIBS="$LIBS"
18104             LIBS="$LIBS $LIBINTL"
18105                         cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111 #include <libintl.h>
18112 extern int _nl_msg_cat_cntr;
18113 extern
18114 #ifdef __cplusplus
18115 "C"
18116 #endif
18117 const char *_nl_expand_alias (const char *);
18118 int
18119 main ()
18120 {
18121 bindtextdomain ("", "");
18122 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18123   ;
18124   return 0;
18125 }
18126 _ACEOF
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_link") 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } && {
18141          test -z "$ac_c_werror_flag" ||
18142          test ! -s conftest.err
18143        } && test -s conftest$ac_exeext &&
18144        $as_test_x conftest$ac_exeext; then
18145   gt_cv_func_gnugettext1_libintl=yes
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150         gt_cv_func_gnugettext1_libintl=no
18151 fi
18152
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18154       conftest$ac_exeext conftest.$ac_ext
18155                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18156               LIBS="$LIBS $LIBICONV"
18157               cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h.  */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h.  */
18163 #include <libintl.h>
18164 extern int _nl_msg_cat_cntr;
18165 extern
18166 #ifdef __cplusplus
18167 "C"
18168 #endif
18169 const char *_nl_expand_alias (const char *);
18170 int
18171 main ()
18172 {
18173 bindtextdomain ("", "");
18174 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18175   ;
18176   return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183   *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186   (eval "$ac_link") 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && {
18193          test -z "$ac_c_werror_flag" ||
18194          test ! -s conftest.err
18195        } && test -s conftest$ac_exeext &&
18196        $as_test_x conftest$ac_exeext; then
18197   LIBINTL="$LIBINTL $LIBICONV"
18198                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18199                 gt_cv_func_gnugettext1_libintl=yes
18200
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205
18206 fi
18207
18208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18209       conftest$ac_exeext conftest.$ac_ext
18210             fi
18211             CPPFLAGS="$gt_save_CPPFLAGS"
18212             LIBS="$gt_save_LIBS"
18213 fi
18214 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18215 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18216         fi
18217
18218                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18219            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18220                 && test "$PACKAGE" != gettext-runtime \
18221                 && test "$PACKAGE" != gettext-tools; }; then
18222           gt_use_preinstalled_gnugettext=yes
18223         else
18224                     LIBINTL=
18225           LTLIBINTL=
18226           INCINTL=
18227         fi
18228
18229
18230
18231     if test -n "$INTL_MACOSX_LIBS"; then
18232       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18233          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18234                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18235         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18236       fi
18237     fi
18238
18239     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18240        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18241
18242 cat >>confdefs.h <<\_ACEOF
18243 #define ENABLE_NLS 1
18244 _ACEOF
18245
18246     else
18247       USE_NLS=no
18248     fi
18249   fi
18250
18251   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18252 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18253   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18254 echo "${ECHO_T}$USE_NLS" >&6; }
18255   if test "$USE_NLS" = "yes"; then
18256     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18257 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18258     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18259       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18260         gt_source="external libintl"
18261       else
18262         gt_source="libc"
18263       fi
18264     else
18265       gt_source="included intl directory"
18266     fi
18267     { echo "$as_me:$LINENO: result: $gt_source" >&5
18268 echo "${ECHO_T}$gt_source" >&6; }
18269   fi
18270
18271   if test "$USE_NLS" = "yes"; then
18272
18273     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18274       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18275         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18276 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18277         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18278 echo "${ECHO_T}$LIBINTL" >&6; }
18279
18280   for element in $INCINTL; do
18281     haveit=
18282     for x in $CPPFLAGS; do
18283
18284   acl_save_prefix="$prefix"
18285   prefix="$acl_final_prefix"
18286   acl_save_exec_prefix="$exec_prefix"
18287   exec_prefix="$acl_final_exec_prefix"
18288   eval x=\"$x\"
18289   exec_prefix="$acl_save_exec_prefix"
18290   prefix="$acl_save_prefix"
18291
18292       if test "X$x" = "X$element"; then
18293         haveit=yes
18294         break
18295       fi
18296     done
18297     if test -z "$haveit"; then
18298       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18299     fi
18300   done
18301
18302       fi
18303
18304
18305 cat >>confdefs.h <<\_ACEOF
18306 #define HAVE_GETTEXT 1
18307 _ACEOF
18308
18309
18310 cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_DCGETTEXT 1
18312 _ACEOF
18313
18314     fi
18315
18316         POSUB=po
18317   fi
18318
18319
18320
18321     INTLLIBS="$LIBINTL"
18322
18323
18324
18325
18326
18327
18328
18329 if test x${prefix} = xNONE ; then
18330    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18331       sysconfdir=/etc/bacula
18332    fi
18333
18334    if test `eval echo ${libdir}` = NONE/lib ; then
18335       libdir=/usr/lib
18336    fi
18337
18338    if test `eval echo ${includedir}` = NONE/include ; then
18339       includedir=/usr/include
18340    fi
18341
18342    if test `eval echo ${datarootdir}` = NONE/share ; then
18343       datarootdir=/usr/share
18344    fi
18345    prefix=
18346 fi
18347
18348 if test x${exec_prefix} = xNONE ; then
18349    exec_prefix=${prefix}
18350 fi
18351
18352 sysconfdir=`eval echo ${sysconfdir}`
18353 datarootdir=`eval echo ${datarootdir}`
18354 docdir=`eval echo ${docdir}`
18355 htmldir=`eval echo ${htmldir}`
18356 libdir=`eval echo ${libdir}`
18357 includedir=`eval echo ${includedir}`
18358 localedir=`eval echo ${datarootdir}/locale`
18359 cat >>confdefs.h <<_ACEOF
18360 #define SYSCONFDIR "$sysconfdir"
18361 _ACEOF
18362
18363 cat >>confdefs.h <<_ACEOF
18364 #define LOCALEDIR "$localedir"
18365 _ACEOF
18366
18367
18368 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18369    sbindir=${exec_prefix}/sbin
18370 fi
18371 sbindir=`eval echo ${sbindir}`
18372
18373 if test x$mandir = x'${prefix}/man' ; then
18374    mandir=/usr/share/man
18375 fi
18376
18377 if test x$htmldir = x${docdir} ; then
18378    htmldir=`eval echo ${docdir}bacula/html`
18379 fi
18380
18381 if test x$docdir = x'/usr/share/doc/' ; then
18382    docdir=`eval echo ${docdir}bacula`
18383 fi
18384
18385
18386 for ac_prog in msgfmt
18387 do
18388   # Extract the first word of "$ac_prog", so it can be a program name with args.
18389 set dummy $ac_prog; ac_word=$2
18390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18392 if test "${ac_cv_path_MSGFMT+set}" = set; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   case $MSGFMT in
18396   [\\/]* | ?:[\\/]*)
18397   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18398   ;;
18399   *)
18400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18401 for as_dir in $PATH
18402 do
18403   IFS=$as_save_IFS
18404   test -z "$as_dir" && as_dir=.
18405   for ac_exec_ext in '' $ac_executable_extensions; do
18406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18407     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18409     break 2
18410   fi
18411 done
18412 done
18413 IFS=$as_save_IFS
18414
18415   ;;
18416 esac
18417 fi
18418 MSGFMT=$ac_cv_path_MSGFMT
18419 if test -n "$MSGFMT"; then
18420   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18421 echo "${ECHO_T}$MSGFMT" >&6; }
18422 else
18423   { echo "$as_me:$LINENO: result: no" >&5
18424 echo "${ECHO_T}no" >&6; }
18425 fi
18426
18427
18428   test -n "$MSGFMT" && break
18429 done
18430 test -n "$MSGFMT" || MSGFMT="no"
18431
18432 if test "$MSGFMT" = "no"
18433 then
18434    echo 'msgfmt program not found, disabling NLS !'
18435    USE_NLS=no
18436    USE_INCLUDED_LIBINTL=no
18437 #else
18438
18439     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18440 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18441 if test "${ac_cv_gnu_library_2+set}" = set; then
18442   echo $ECHO_N "(cached) $ECHO_C" >&6
18443 else
18444   cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450
18451 #include <features.h>
18452 #ifdef __GNU_LIBRARY__
18453  #if (__GLIBC__ >= 2)
18454   Lucky GNU user
18455  #endif
18456 #endif
18457
18458 _ACEOF
18459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18460   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18461   ac_cv_gnu_library_2=yes
18462 else
18463   ac_cv_gnu_library_2=no
18464 fi
18465 rm -f conftest*
18466
18467
18468
18469 fi
18470 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18471 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18472
18473     GLIBC2="$ac_cv_gnu_library_2"
18474
18475
18476 if test -n "$ac_tool_prefix"; then
18477   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18481 if test "${ac_cv_prog_RANLIB+set}" = set; then
18482   echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484   if test -n "$RANLIB"; then
18485   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18486 else
18487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488 for as_dir in $PATH
18489 do
18490   IFS=$as_save_IFS
18491   test -z "$as_dir" && as_dir=.
18492   for ac_exec_ext in '' $ac_executable_extensions; do
18493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18494     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18496     break 2
18497   fi
18498 done
18499 done
18500 IFS=$as_save_IFS
18501
18502 fi
18503 fi
18504 RANLIB=$ac_cv_prog_RANLIB
18505 if test -n "$RANLIB"; then
18506   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18507 echo "${ECHO_T}$RANLIB" >&6; }
18508 else
18509   { echo "$as_me:$LINENO: result: no" >&5
18510 echo "${ECHO_T}no" >&6; }
18511 fi
18512
18513
18514 fi
18515 if test -z "$ac_cv_prog_RANLIB"; then
18516   ac_ct_RANLIB=$RANLIB
18517   # Extract the first word of "ranlib", so it can be a program name with args.
18518 set dummy ranlib; ac_word=$2
18519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18522   echo $ECHO_N "(cached) $ECHO_C" >&6
18523 else
18524   if test -n "$ac_ct_RANLIB"; then
18525   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18526 else
18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18528 for as_dir in $PATH
18529 do
18530   IFS=$as_save_IFS
18531   test -z "$as_dir" && as_dir=.
18532   for ac_exec_ext in '' $ac_executable_extensions; do
18533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18534     ac_cv_prog_ac_ct_RANLIB="ranlib"
18535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18536     break 2
18537   fi
18538 done
18539 done
18540 IFS=$as_save_IFS
18541
18542 fi
18543 fi
18544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18545 if test -n "$ac_ct_RANLIB"; then
18546   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18547 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18548 else
18549   { echo "$as_me:$LINENO: result: no" >&5
18550 echo "${ECHO_T}no" >&6; }
18551 fi
18552
18553   if test "x$ac_ct_RANLIB" = x; then
18554     RANLIB=":"
18555   else
18556     case $cross_compiling:$ac_tool_warned in
18557 yes:)
18558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18559 whose name does not start with the host triplet.  If you think this
18560 configuration is useful to you, please write to autoconf@gnu.org." >&5
18561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18562 whose name does not start with the host triplet.  If you think this
18563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18564 ac_tool_warned=yes ;;
18565 esac
18566     RANLIB=$ac_ct_RANLIB
18567   fi
18568 else
18569   RANLIB="$ac_cv_prog_RANLIB"
18570 fi
18571
18572
18573         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18574 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18575 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578   ac_check_lib_save_LIBS=$LIBS
18579 LIBS="-lcposix  $LIBS"
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586
18587 /* Override any GCC internal prototype to avoid an error.
18588    Use char because int might match the return type of a GCC
18589    builtin and then its argument prototype would still apply.  */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 char strerror ();
18594 int
18595 main ()
18596 {
18597 return strerror ();
18598   ;
18599   return 0;
18600 }
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606   *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609   (eval "$ac_link") 2>conftest.er1
18610   ac_status=$?
18611   grep -v '^ *+' conftest.er1 >conftest.err
18612   rm -f conftest.er1
18613   cat conftest.err >&5
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); } && {
18616          test -z "$ac_c_werror_flag" ||
18617          test ! -s conftest.err
18618        } && test -s conftest$ac_exeext &&
18619        $as_test_x conftest$ac_exeext; then
18620   ac_cv_lib_cposix_strerror=yes
18621 else
18622   echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18624
18625         ac_cv_lib_cposix_strerror=no
18626 fi
18627
18628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18629       conftest$ac_exeext conftest.$ac_ext
18630 LIBS=$ac_check_lib_save_LIBS
18631 fi
18632 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18633 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18634 if test $ac_cv_lib_cposix_strerror = yes; then
18635   LIBS="$LIBS -lcposix"
18636 fi
18637
18638
18639
18640 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18641 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18642 if test "${ac_cv_c_const+set}" = set; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645   cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h.  */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h.  */
18651
18652 int
18653 main ()
18654 {
18655 /* FIXME: Include the comments suggested by Paul. */
18656 #ifndef __cplusplus
18657   /* Ultrix mips cc rejects this.  */
18658   typedef int charset[2];
18659   const charset cs;
18660   /* SunOS 4.1.1 cc rejects this.  */
18661   char const *const *pcpcc;
18662   char **ppc;
18663   /* NEC SVR4.0.2 mips cc rejects this.  */
18664   struct point {int x, y;};
18665   static struct point const zero = {0,0};
18666   /* AIX XL C 1.02.0.0 rejects this.
18667      It does not let you subtract one const X* pointer from another in
18668      an arm of an if-expression whose if-part is not a constant
18669      expression */
18670   const char *g = "string";
18671   pcpcc = &g + (g ? g-g : 0);
18672   /* HPUX 7.0 cc rejects these. */
18673   ++pcpcc;
18674   ppc = (char**) pcpcc;
18675   pcpcc = (char const *const *) ppc;
18676   { /* SCO 3.2v4 cc rejects this.  */
18677     char *t;
18678     char const *s = 0 ? (char *) 0 : (char const *) 0;
18679
18680     *t++ = 0;
18681     if (s) return 0;
18682   }
18683   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18684     int x[] = {25, 17};
18685     const int *foo = &x[0];
18686     ++foo;
18687   }
18688   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18689     typedef const int *iptr;
18690     iptr p = 0;
18691     ++p;
18692   }
18693   { /* AIX XL C 1.02.0.0 rejects this saying
18694        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18695     struct s { int j; const int *ap[3]; };
18696     struct s *b; b->j = 5;
18697   }
18698   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18699     const int foo = 10;
18700     if (!foo) return 0;
18701   }
18702   return !cs[0] && !zero.x;
18703 #endif
18704
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext
18710 if { (ac_try="$ac_compile"
18711 case "(($ac_try" in
18712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713   *) ac_try_echo=$ac_try;;
18714 esac
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716   (eval "$ac_compile") 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } && {
18723          test -z "$ac_c_werror_flag" ||
18724          test ! -s conftest.err
18725        } && test -s conftest.$ac_objext; then
18726   ac_cv_c_const=yes
18727 else
18728   echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731         ac_cv_c_const=no
18732 fi
18733
18734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18735 fi
18736 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18737 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18738 if test $ac_cv_c_const = no; then
18739
18740 cat >>confdefs.h <<\_ACEOF
18741 #define const
18742 _ACEOF
18743
18744 fi
18745
18746
18747   { echo "$as_me:$LINENO: checking for signed" >&5
18748 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18749 if test "${bh_cv_c_signed+set}" = set; then
18750   echo $ECHO_N "(cached) $ECHO_C" >&6
18751 else
18752   cat >conftest.$ac_ext <<_ACEOF
18753 /* confdefs.h.  */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h.  */
18758
18759 int
18760 main ()
18761 {
18762 signed char x;
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext
18768 if { (ac_try="$ac_compile"
18769 case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_compile") 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } && {
18781          test -z "$ac_c_werror_flag" ||
18782          test ! -s conftest.err
18783        } && test -s conftest.$ac_objext; then
18784   bh_cv_c_signed=yes
18785 else
18786   echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789         bh_cv_c_signed=no
18790 fi
18791
18792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793 fi
18794 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18795 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18796   if test $bh_cv_c_signed = no; then
18797
18798 cat >>confdefs.h <<\_ACEOF
18799 #define signed
18800 _ACEOF
18801
18802   fi
18803
18804 { echo "$as_me:$LINENO: checking for inline" >&5
18805 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18806 if test "${ac_cv_c_inline+set}" = set; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809   ac_cv_c_inline=no
18810 for ac_kw in inline __inline__ __inline; do
18811   cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h.  */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h.  */
18817 #ifndef __cplusplus
18818 typedef int foo_t;
18819 static $ac_kw foo_t static_foo () {return 0; }
18820 $ac_kw foo_t foo () {return 0; }
18821 #endif
18822
18823 _ACEOF
18824 rm -f conftest.$ac_objext
18825 if { (ac_try="$ac_compile"
18826 case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831   (eval "$ac_compile") 2>conftest.er1
18832   ac_status=$?
18833   grep -v '^ *+' conftest.er1 >conftest.err
18834   rm -f conftest.er1
18835   cat conftest.err >&5
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); } && {
18838          test -z "$ac_c_werror_flag" ||
18839          test ! -s conftest.err
18840        } && test -s conftest.$ac_objext; then
18841   ac_cv_c_inline=$ac_kw
18842 else
18843   echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846
18847 fi
18848
18849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850   test "$ac_cv_c_inline" != no && break
18851 done
18852
18853 fi
18854 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18855 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18856
18857
18858 case $ac_cv_c_inline in
18859   inline | yes) ;;
18860   *)
18861     case $ac_cv_c_inline in
18862       no) ac_val=;;
18863       *) ac_val=$ac_cv_c_inline;;
18864     esac
18865     cat >>confdefs.h <<_ACEOF
18866 #ifndef __cplusplus
18867 #define inline $ac_val
18868 #endif
18869 _ACEOF
18870     ;;
18871 esac
18872
18873 { echo "$as_me:$LINENO: checking for off_t" >&5
18874 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18875 if test "${ac_cv_type_off_t+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h.  */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h.  */
18884 $ac_includes_default
18885 typedef off_t ac__type_new_;
18886 int
18887 main ()
18888 {
18889 if ((ac__type_new_ *) 0)
18890   return 0;
18891 if (sizeof (ac__type_new_))
18892   return 0;
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext
18898 if { (ac_try="$ac_compile"
18899 case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_compile") 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } && {
18911          test -z "$ac_c_werror_flag" ||
18912          test ! -s conftest.err
18913        } && test -s conftest.$ac_objext; then
18914   ac_cv_type_off_t=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919         ac_cv_type_off_t=no
18920 fi
18921
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 fi
18924 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18925 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18926 if test $ac_cv_type_off_t = yes; then
18927   :
18928 else
18929
18930 cat >>confdefs.h <<_ACEOF
18931 #define off_t long int
18932 _ACEOF
18933
18934 fi
18935
18936 { echo "$as_me:$LINENO: checking for size_t" >&5
18937 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18938 if test "${ac_cv_type_size_t+set}" = set; then
18939   echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941   cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947 $ac_includes_default
18948 typedef size_t ac__type_new_;
18949 int
18950 main ()
18951 {
18952 if ((ac__type_new_ *) 0)
18953   return 0;
18954 if (sizeof (ac__type_new_))
18955   return 0;
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (ac_try="$ac_compile"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_compile") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest.$ac_objext; then
18977   ac_cv_type_size_t=yes
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         ac_cv_type_size_t=no
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18986 fi
18987 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18988 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18989 if test $ac_cv_type_size_t = yes; then
18990   :
18991 else
18992
18993 cat >>confdefs.h <<_ACEOF
18994 #define size_t unsigned int
18995 _ACEOF
18996
18997 fi
18998
18999
19000   { echo "$as_me:$LINENO: checking for long long" >&5
19001 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19002 if test "${ac_cv_type_long_long+set}" = set; then
19003   echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005   cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h.  */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h.  */
19011 long long ll = 1LL; int i = 63;
19012 int
19013 main ()
19014 {
19015 long long llmax = (long long) -1;
19016      return ll << i | ll >> i | llmax / ll | llmax % ll;
19017   ;
19018   return 0;
19019 }
19020 _ACEOF
19021 rm -f conftest.$ac_objext conftest$ac_exeext
19022 if { (ac_try="$ac_link"
19023 case "(($ac_try" in
19024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025   *) ac_try_echo=$ac_try;;
19026 esac
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028   (eval "$ac_link") 2>conftest.er1
19029   ac_status=$?
19030   grep -v '^ *+' conftest.er1 >conftest.err
19031   rm -f conftest.er1
19032   cat conftest.err >&5
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); } && {
19035          test -z "$ac_c_werror_flag" ||
19036          test ! -s conftest.err
19037        } && test -s conftest$ac_exeext &&
19038        $as_test_x conftest$ac_exeext; then
19039   ac_cv_type_long_long=yes
19040 else
19041   echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044         ac_cv_type_long_long=no
19045 fi
19046
19047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19048       conftest$ac_exeext conftest.$ac_ext
19049 fi
19050 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19051 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19052   if test $ac_cv_type_long_long = yes; then
19053
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE_LONG_LONG 1
19056 _ACEOF
19057
19058   fi
19059
19060
19061   { echo "$as_me:$LINENO: checking for long double" >&5
19062 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19063 if test "${gt_cv_c_long_double+set}" = set; then
19064   echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066   if test "$GCC" = yes; then
19067        gt_cv_c_long_double=yes
19068      else
19069        cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h.  */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h.  */
19075
19076          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19077          long double foo = 0.0;
19078          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19079          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19080
19081 int
19082 main ()
19083 {
19084
19085   ;
19086   return 0;
19087 }
19088 _ACEOF
19089 rm -f conftest.$ac_objext
19090 if { (ac_try="$ac_compile"
19091 case "(($ac_try" in
19092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093   *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096   (eval "$ac_compile") 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } && {
19103          test -z "$ac_c_werror_flag" ||
19104          test ! -s conftest.err
19105        } && test -s conftest.$ac_objext; then
19106   gt_cv_c_long_double=yes
19107 else
19108   echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111         gt_cv_c_long_double=no
19112 fi
19113
19114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19115      fi
19116 fi
19117 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19118 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19119   if test $gt_cv_c_long_double = yes; then
19120
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_LONG_DOUBLE 1
19123 _ACEOF
19124
19125   fi
19126
19127
19128   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19129 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19130 if test "${gt_cv_c_wchar_t+set}" = set; then
19131   echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133   cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h.  */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h.  */
19139 #include <stddef.h>
19140        wchar_t foo = (wchar_t)'\0';
19141 int
19142 main ()
19143 {
19144
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext
19150 if { (ac_try="$ac_compile"
19151 case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_compile") 2>conftest.er1
19157   ac_status=$?
19158   grep -v '^ *+' conftest.er1 >conftest.err
19159   rm -f conftest.er1
19160   cat conftest.err >&5
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); } && {
19163          test -z "$ac_c_werror_flag" ||
19164          test ! -s conftest.err
19165        } && test -s conftest.$ac_objext; then
19166   gt_cv_c_wchar_t=yes
19167 else
19168   echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171         gt_cv_c_wchar_t=no
19172 fi
19173
19174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19175 fi
19176 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19177 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19178   if test $gt_cv_c_wchar_t = yes; then
19179
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE_WCHAR_T 1
19182 _ACEOF
19183
19184   fi
19185
19186
19187   { echo "$as_me:$LINENO: checking for wint_t" >&5
19188 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19189 if test "${gt_cv_c_wint_t+set}" = set; then
19190   echo $ECHO_N "(cached) $ECHO_C" >&6
19191 else
19192   cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198 #include <wchar.h>
19199        wint_t foo = (wchar_t)'\0';
19200 int
19201 main ()
19202 {
19203
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 rm -f conftest.$ac_objext
19209 if { (ac_try="$ac_compile"
19210 case "(($ac_try" in
19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212   *) ac_try_echo=$ac_try;;
19213 esac
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215   (eval "$ac_compile") 2>conftest.er1
19216   ac_status=$?
19217   grep -v '^ *+' conftest.er1 >conftest.err
19218   rm -f conftest.er1
19219   cat conftest.err >&5
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } && {
19222          test -z "$ac_c_werror_flag" ||
19223          test ! -s conftest.err
19224        } && test -s conftest.$ac_objext; then
19225   gt_cv_c_wint_t=yes
19226 else
19227   echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230         gt_cv_c_wint_t=no
19231 fi
19232
19233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19234 fi
19235 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19236 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19237   if test $gt_cv_c_wint_t = yes; then
19238
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_WINT_T 1
19241 _ACEOF
19242
19243   fi
19244
19245
19246   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19247 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19248 if test "${gl_cv_header_inttypes_h+set}" = set; then
19249   echo $ECHO_N "(cached) $ECHO_C" >&6
19250 else
19251   cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h.  */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h.  */
19257 #include <sys/types.h>
19258 #include <inttypes.h>
19259 int
19260 main ()
19261 {
19262 uintmax_t i = (uintmax_t) -1;
19263   ;
19264   return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext
19268 if { (ac_try="$ac_compile"
19269 case "(($ac_try" in
19270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271   *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274   (eval "$ac_compile") 2>conftest.er1
19275   ac_status=$?
19276   grep -v '^ *+' conftest.er1 >conftest.err
19277   rm -f conftest.er1
19278   cat conftest.err >&5
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); } && {
19281          test -z "$ac_c_werror_flag" ||
19282          test ! -s conftest.err
19283        } && test -s conftest.$ac_objext; then
19284   gl_cv_header_inttypes_h=yes
19285 else
19286   echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289         gl_cv_header_inttypes_h=no
19290 fi
19291
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293 fi
19294 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19295 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19296   if test $gl_cv_header_inttypes_h = yes; then
19297
19298 cat >>confdefs.h <<_ACEOF
19299 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19300 _ACEOF
19301
19302   fi
19303
19304
19305   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19306 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19307 if test "${gl_cv_header_stdint_h+set}" = set; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316 #include <sys/types.h>
19317 #include <stdint.h>
19318 int
19319 main ()
19320 {
19321 uintmax_t i = (uintmax_t) -1;
19322   ;
19323   return 0;
19324 }
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333   (eval "$ac_compile") 2>conftest.er1
19334   ac_status=$?
19335   grep -v '^ *+' conftest.er1 >conftest.err
19336   rm -f conftest.er1
19337   cat conftest.err >&5
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); } && {
19340          test -z "$ac_c_werror_flag" ||
19341          test ! -s conftest.err
19342        } && test -s conftest.$ac_objext; then
19343   gl_cv_header_stdint_h=yes
19344 else
19345   echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19347
19348         gl_cv_header_stdint_h=no
19349 fi
19350
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352 fi
19353 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19354 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19355   if test $gl_cv_header_stdint_h = yes; then
19356
19357 cat >>confdefs.h <<_ACEOF
19358 #define HAVE_STDINT_H_WITH_UINTMAX 1
19359 _ACEOF
19360
19361   fi
19362
19363
19364
19365
19366   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19367 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19368 if test "${gt_cv_c_intmax_t+set}" = set; then
19369   echo $ECHO_N "(cached) $ECHO_C" >&6
19370 else
19371   cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h.  */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h.  */
19377
19378 #include <stddef.h>
19379 #include <stdlib.h>
19380 #if HAVE_STDINT_H_WITH_UINTMAX
19381 #include <stdint.h>
19382 #endif
19383 #if HAVE_INTTYPES_H_WITH_UINTMAX
19384 #include <inttypes.h>
19385 #endif
19386
19387 int
19388 main ()
19389 {
19390 intmax_t x = -1;
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_compile") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } && {
19409          test -z "$ac_c_werror_flag" ||
19410          test ! -s conftest.err
19411        } && test -s conftest.$ac_objext; then
19412   gt_cv_c_intmax_t=yes
19413 else
19414   echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417         gt_cv_c_intmax_t=no
19418 fi
19419
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 fi
19422 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19423 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19424   if test $gt_cv_c_intmax_t = yes; then
19425
19426 cat >>confdefs.h <<\_ACEOF
19427 #define HAVE_INTMAX_T 1
19428 _ACEOF
19429
19430   fi
19431
19432
19433
19434   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19435 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19436 if test "${gt_cv_func_printf_posix+set}" = set; then
19437   echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439
19440       if test "$cross_compiling" = yes; then
19441
19442         cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h.  */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h.  */
19448
19449 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19450   notposix
19451 #endif
19452
19453 _ACEOF
19454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19455   $EGREP "notposix" >/dev/null 2>&1; then
19456   gt_cv_func_printf_posix="guessing no"
19457 else
19458   gt_cv_func_printf_posix="guessing yes"
19459 fi
19460 rm -f conftest*
19461
19462
19463 else
19464   cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470
19471 #include <stdio.h>
19472 #include <string.h>
19473 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19474    dollar expansion (possibly an autoconf bug).  */
19475 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19476 static char buf[100];
19477 int main ()
19478 {
19479   sprintf (buf, format, 33, 55);
19480   return (strcmp (buf, "55 33") != 0);
19481 }
19482 _ACEOF
19483 rm -f conftest$ac_exeext
19484 if { (ac_try="$ac_link"
19485 case "(($ac_try" in
19486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487   *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490   (eval "$ac_link") 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19494   { (case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_try") 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   gt_cv_func_printf_posix=yes
19504 else
19505   echo "$as_me: program exited with status $ac_status" >&5
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ( exit $ac_status )
19510 gt_cv_func_printf_posix=no
19511 fi
19512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19513 fi
19514
19515
19516
19517 fi
19518 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19519 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19520   case $gt_cv_func_printf_posix in
19521     *yes)
19522
19523 cat >>confdefs.h <<\_ACEOF
19524 #define HAVE_POSIX_PRINTF 1
19525 _ACEOF
19526
19527       ;;
19528   esac
19529
19530 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19531 # for constant arguments.  Useless!
19532 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19533 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19534 if test "${ac_cv_working_alloca_h+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 #include <alloca.h>
19544 int
19545 main ()
19546 {
19547 char *p = (char *) alloca (2 * sizeof (int));
19548                           if (p) return 0;
19549   ;
19550   return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557   *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560   (eval "$ac_link") 2>conftest.er1
19561   ac_status=$?
19562   grep -v '^ *+' conftest.er1 >conftest.err
19563   rm -f conftest.er1
19564   cat conftest.err >&5
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); } && {
19567          test -z "$ac_c_werror_flag" ||
19568          test ! -s conftest.err
19569        } && test -s conftest$ac_exeext &&
19570        $as_test_x conftest$ac_exeext; then
19571   ac_cv_working_alloca_h=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576         ac_cv_working_alloca_h=no
19577 fi
19578
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580       conftest$ac_exeext conftest.$ac_ext
19581 fi
19582 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19583 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19584 if test $ac_cv_working_alloca_h = yes; then
19585
19586 cat >>confdefs.h <<\_ACEOF
19587 #define HAVE_ALLOCA_H 1
19588 _ACEOF
19589
19590 fi
19591
19592 { echo "$as_me:$LINENO: checking for alloca" >&5
19593 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19594 if test "${ac_cv_func_alloca_works+set}" = set; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597   cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603 #ifdef __GNUC__
19604 # define alloca __builtin_alloca
19605 #else
19606 # ifdef _MSC_VER
19607 #  include <malloc.h>
19608 #  define alloca _alloca
19609 # else
19610 #  ifdef HAVE_ALLOCA_H
19611 #   include <alloca.h>
19612 #  else
19613 #   ifdef _AIX
19614  #pragma alloca
19615 #   else
19616 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19617 char *alloca ();
19618 #    endif
19619 #   endif
19620 #  endif
19621 # endif
19622 #endif
19623
19624 int
19625 main ()
19626 {
19627 char *p = (char *) alloca (1);
19628                                     if (p) return 0;
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 rm -f conftest.$ac_objext conftest$ac_exeext
19634 if { (ac_try="$ac_link"
19635 case "(($ac_try" in
19636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637   *) ac_try_echo=$ac_try;;
19638 esac
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640   (eval "$ac_link") 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } && {
19647          test -z "$ac_c_werror_flag" ||
19648          test ! -s conftest.err
19649        } && test -s conftest$ac_exeext &&
19650        $as_test_x conftest$ac_exeext; then
19651   ac_cv_func_alloca_works=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656         ac_cv_func_alloca_works=no
19657 fi
19658
19659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19660       conftest$ac_exeext conftest.$ac_ext
19661 fi
19662 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19663 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19664
19665 if test $ac_cv_func_alloca_works = yes; then
19666
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE_ALLOCA 1
19669 _ACEOF
19670
19671 else
19672   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19673 # that cause trouble.  Some versions do not even contain alloca or
19674 # contain a buggy version.  If you still want to use their alloca,
19675 # use ar to extract alloca.o from them instead of compiling alloca.c.
19676
19677 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19678
19679 cat >>confdefs.h <<\_ACEOF
19680 #define C_ALLOCA 1
19681 _ACEOF
19682
19683
19684 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19685 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19686 if test "${ac_cv_os_cray+set}" = set; then
19687   echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689   cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695 #if defined CRAY && ! defined CRAY2
19696 webecray
19697 #else
19698 wenotbecray
19699 #endif
19700
19701 _ACEOF
19702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19703   $EGREP "webecray" >/dev/null 2>&1; then
19704   ac_cv_os_cray=yes
19705 else
19706   ac_cv_os_cray=no
19707 fi
19708 rm -f conftest*
19709
19710 fi
19711 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19712 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19713 if test $ac_cv_os_cray = yes; then
19714   for ac_func in _getb67 GETB67 getb67; do
19715     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19729 #define $ac_func innocuous_$ac_func
19730
19731 /* System header to define __stub macros and hopefully few prototypes,
19732     which can conflict with char $ac_func (); below.
19733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19734     <limits.h> exists even on freestanding compilers.  */
19735
19736 #ifdef __STDC__
19737 # include <limits.h>
19738 #else
19739 # include <assert.h>
19740 #endif
19741
19742 #undef $ac_func
19743
19744 /* Override any GCC internal prototype to avoid an error.
19745    Use char because int might match the return type of a GCC
19746    builtin and then its argument prototype would still apply.  */
19747 #ifdef __cplusplus
19748 extern "C"
19749 #endif
19750 char $ac_func ();
19751 /* The GNU C library defines this for functions which it implements
19752     to always fail with ENOSYS.  Some functions are actually named
19753     something starting with __ and the normal name is an alias.  */
19754 #if defined __stub_$ac_func || defined __stub___$ac_func
19755 choke me
19756 #endif
19757
19758 int
19759 main ()
19760 {
19761 return $ac_func ();
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_link") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } && {
19780          test -z "$ac_c_werror_flag" ||
19781          test ! -s conftest.err
19782        } && test -s conftest$ac_exeext &&
19783        $as_test_x conftest$ac_exeext; then
19784   eval "$as_ac_var=yes"
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789         eval "$as_ac_var=no"
19790 fi
19791
19792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19793       conftest$ac_exeext conftest.$ac_ext
19794 fi
19795 ac_res=`eval echo '${'$as_ac_var'}'`
19796                { echo "$as_me:$LINENO: result: $ac_res" >&5
19797 echo "${ECHO_T}$ac_res" >&6; }
19798 if test `eval echo '${'$as_ac_var'}'` = yes; then
19799
19800 cat >>confdefs.h <<_ACEOF
19801 #define CRAY_STACKSEG_END $ac_func
19802 _ACEOF
19803
19804     break
19805 fi
19806
19807   done
19808 fi
19809
19810 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19811 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19812 if test "${ac_cv_c_stack_direction+set}" = set; then
19813   echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815   if test "$cross_compiling" = yes; then
19816   ac_cv_c_stack_direction=0
19817 else
19818   cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824 $ac_includes_default
19825 int
19826 find_stack_direction ()
19827 {
19828   static char *addr = 0;
19829   auto char dummy;
19830   if (addr == 0)
19831     {
19832       addr = &dummy;
19833       return find_stack_direction ();
19834     }
19835   else
19836     return (&dummy > addr) ? 1 : -1;
19837 }
19838
19839 int
19840 main ()
19841 {
19842   return find_stack_direction () < 0;
19843 }
19844 _ACEOF
19845 rm -f conftest$ac_exeext
19846 if { (ac_try="$ac_link"
19847 case "(($ac_try" in
19848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849   *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852   (eval "$ac_link") 2>&5
19853   ac_status=$?
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19856   { (case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_try") 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; }; then
19865   ac_cv_c_stack_direction=1
19866 else
19867   echo "$as_me: program exited with status $ac_status" >&5
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871 ( exit $ac_status )
19872 ac_cv_c_stack_direction=-1
19873 fi
19874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19875 fi
19876
19877
19878 fi
19879 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19880 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19881
19882 cat >>confdefs.h <<_ACEOF
19883 #define STACK_DIRECTION $ac_cv_c_stack_direction
19884 _ACEOF
19885
19886
19887 fi
19888
19889
19890
19891 for ac_header in stdlib.h unistd.h
19892 do
19893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19895   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 fi
19900 ac_res=`eval echo '${'$as_ac_Header'}'`
19901                { echo "$as_me:$LINENO: result: $ac_res" >&5
19902 echo "${ECHO_T}$ac_res" >&6; }
19903 else
19904   # Is the header compilable?
19905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h.  */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h.  */
19913 $ac_includes_default
19914 #include <$ac_header>
19915 _ACEOF
19916 rm -f conftest.$ac_objext
19917 if { (ac_try="$ac_compile"
19918 case "(($ac_try" in
19919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920   *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923   (eval "$ac_compile") 2>conftest.er1
19924   ac_status=$?
19925   grep -v '^ *+' conftest.er1 >conftest.err
19926   rm -f conftest.er1
19927   cat conftest.err >&5
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); } && {
19930          test -z "$ac_c_werror_flag" ||
19931          test ! -s conftest.err
19932        } && test -s conftest.$ac_objext; then
19933   ac_header_compiler=yes
19934 else
19935   echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938         ac_header_compiler=no
19939 fi
19940
19941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19943 echo "${ECHO_T}$ac_header_compiler" >&6; }
19944
19945 # Is the header present?
19946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <$ac_header>
19955 _ACEOF
19956 if { (ac_try="$ac_cpp conftest.$ac_ext"
19957 case "(($ac_try" in
19958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959   *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
19966   cat conftest.err >&5
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } >/dev/null && {
19969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19970          test ! -s conftest.err
19971        }; then
19972   ac_header_preproc=yes
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977   ac_header_preproc=no
19978 fi
19979
19980 rm -f conftest.err conftest.$ac_ext
19981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19982 echo "${ECHO_T}$ac_header_preproc" >&6; }
19983
19984 # So?  What about this header?
19985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19986   yes:no: )
19987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19991     ac_header_preproc=yes
19992     ;;
19993   no:yes:* )
19994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20006
20007     ;;
20008 esac
20009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20012   echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014   eval "$as_ac_Header=\$ac_header_preproc"
20015 fi
20016 ac_res=`eval echo '${'$as_ac_Header'}'`
20017                { echo "$as_me:$LINENO: result: $ac_res" >&5
20018 echo "${ECHO_T}$ac_res" >&6; }
20019
20020 fi
20021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20022   cat >>confdefs.h <<_ACEOF
20023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20024 _ACEOF
20025
20026 fi
20027
20028 done
20029
20030
20031 for ac_func in getpagesize
20032 do
20033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20037   echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039   cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20047 #define $ac_func innocuous_$ac_func
20048
20049 /* System header to define __stub macros and hopefully few prototypes,
20050     which can conflict with char $ac_func (); below.
20051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20052     <limits.h> exists even on freestanding compilers.  */
20053
20054 #ifdef __STDC__
20055 # include <limits.h>
20056 #else
20057 # include <assert.h>
20058 #endif
20059
20060 #undef $ac_func
20061
20062 /* Override any GCC internal prototype to avoid an error.
20063    Use char because int might match the return type of a GCC
20064    builtin and then its argument prototype would still apply.  */
20065 #ifdef __cplusplus
20066 extern "C"
20067 #endif
20068 char $ac_func ();
20069 /* The GNU C library defines this for functions which it implements
20070     to always fail with ENOSYS.  Some functions are actually named
20071     something starting with __ and the normal name is an alias.  */
20072 #if defined __stub_$ac_func || defined __stub___$ac_func
20073 choke me
20074 #endif
20075
20076 int
20077 main ()
20078 {
20079 return $ac_func ();
20080   ;
20081   return 0;
20082 }
20083 _ACEOF
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (ac_try="$ac_link"
20086 case "(($ac_try" in
20087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088   *) ac_try_echo=$ac_try;;
20089 esac
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091   (eval "$ac_link") 2>conftest.er1
20092   ac_status=$?
20093   grep -v '^ *+' conftest.er1 >conftest.err
20094   rm -f conftest.er1
20095   cat conftest.err >&5
20096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097   (exit $ac_status); } && {
20098          test -z "$ac_c_werror_flag" ||
20099          test ! -s conftest.err
20100        } && test -s conftest$ac_exeext &&
20101        $as_test_x conftest$ac_exeext; then
20102   eval "$as_ac_var=yes"
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107         eval "$as_ac_var=no"
20108 fi
20109
20110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20111       conftest$ac_exeext conftest.$ac_ext
20112 fi
20113 ac_res=`eval echo '${'$as_ac_var'}'`
20114                { echo "$as_me:$LINENO: result: $ac_res" >&5
20115 echo "${ECHO_T}$ac_res" >&6; }
20116 if test `eval echo '${'$as_ac_var'}'` = yes; then
20117   cat >>confdefs.h <<_ACEOF
20118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20119 _ACEOF
20120
20121 fi
20122 done
20123
20124 { echo "$as_me:$LINENO: checking for working mmap" >&5
20125 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20126 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   if test "$cross_compiling" = yes; then
20130   ac_cv_func_mmap_fixed_mapped=no
20131 else
20132   cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h.  */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h.  */
20138 $ac_includes_default
20139 /* malloc might have been renamed as rpl_malloc. */
20140 #undef malloc
20141
20142 /* Thanks to Mike Haertel and Jim Avera for this test.
20143    Here is a matrix of mmap possibilities:
20144         mmap private not fixed
20145         mmap private fixed at somewhere currently unmapped
20146         mmap private fixed at somewhere already mapped
20147         mmap shared not fixed
20148         mmap shared fixed at somewhere currently unmapped
20149         mmap shared fixed at somewhere already mapped
20150    For private mappings, we should verify that changes cannot be read()
20151    back from the file, nor mmap's back from the file at a different
20152    address.  (There have been systems where private was not correctly
20153    implemented like the infamous i386 svr4.0, and systems where the
20154    VM page cache was not coherent with the file system buffer cache
20155    like early versions of FreeBSD and possibly contemporary NetBSD.)
20156    For shared mappings, we should conversely verify that changes get
20157    propagated back to all the places they're supposed to be.
20158
20159    Grep wants private fixed already mapped.
20160    The main things grep needs to know about mmap are:
20161    * does it exist and is it safe to write into the mmap'd area
20162    * how to use it (BSD variants)  */
20163
20164 #include <fcntl.h>
20165 #include <sys/mman.h>
20166
20167 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20168 char *malloc ();
20169 #endif
20170
20171 /* This mess was copied from the GNU getpagesize.h.  */
20172 #ifndef HAVE_GETPAGESIZE
20173 /* Assume that all systems that can run configure have sys/param.h.  */
20174 # ifndef HAVE_SYS_PARAM_H
20175 #  define HAVE_SYS_PARAM_H 1
20176 # endif
20177
20178 # ifdef _SC_PAGESIZE
20179 #  define getpagesize() sysconf(_SC_PAGESIZE)
20180 # else /* no _SC_PAGESIZE */
20181 #  ifdef HAVE_SYS_PARAM_H
20182 #   include <sys/param.h>
20183 #   ifdef EXEC_PAGESIZE
20184 #    define getpagesize() EXEC_PAGESIZE
20185 #   else /* no EXEC_PAGESIZE */
20186 #    ifdef NBPG
20187 #     define getpagesize() NBPG * CLSIZE
20188 #     ifndef CLSIZE
20189 #      define CLSIZE 1
20190 #     endif /* no CLSIZE */
20191 #    else /* no NBPG */
20192 #     ifdef NBPC
20193 #      define getpagesize() NBPC
20194 #     else /* no NBPC */
20195 #      ifdef PAGESIZE
20196 #       define getpagesize() PAGESIZE
20197 #      endif /* PAGESIZE */
20198 #     endif /* no NBPC */
20199 #    endif /* no NBPG */
20200 #   endif /* no EXEC_PAGESIZE */
20201 #  else /* no HAVE_SYS_PARAM_H */
20202 #   define getpagesize() 8192   /* punt totally */
20203 #  endif /* no HAVE_SYS_PARAM_H */
20204 # endif /* no _SC_PAGESIZE */
20205
20206 #endif /* no HAVE_GETPAGESIZE */
20207
20208 int
20209 main ()
20210 {
20211   char *data, *data2, *data3;
20212   int i, pagesize;
20213   int fd;
20214
20215   pagesize = getpagesize ();
20216
20217   /* First, make a file with some known garbage in it. */
20218   data = (char *) malloc (pagesize);
20219   if (!data)
20220     return 1;
20221   for (i = 0; i < pagesize; ++i)
20222     *(data + i) = rand ();
20223   umask (0);
20224   fd = creat ("conftest.mmap", 0600);
20225   if (fd < 0)
20226     return 1;
20227   if (write (fd, data, pagesize) != pagesize)
20228     return 1;
20229   close (fd);
20230
20231   /* Next, try to mmap the file at a fixed address which already has
20232      something else allocated at it.  If we can, also make sure that
20233      we see the same garbage.  */
20234   fd = open ("conftest.mmap", O_RDWR);
20235   if (fd < 0)
20236     return 1;
20237   data2 = (char *) malloc (2 * pagesize);
20238   if (!data2)
20239     return 1;
20240   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20241   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20242                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20243     return 1;
20244   for (i = 0; i < pagesize; ++i)
20245     if (*(data + i) != *(data2 + i))
20246       return 1;
20247
20248   /* Finally, make sure that changes to the mapped area do not
20249      percolate back to the file as seen by read().  (This is a bug on
20250      some variants of i386 svr4.0.)  */
20251   for (i = 0; i < pagesize; ++i)
20252     *(data2 + i) = *(data2 + i) + 1;
20253   data3 = (char *) malloc (pagesize);
20254   if (!data3)
20255     return 1;
20256   if (read (fd, data3, pagesize) != pagesize)
20257     return 1;
20258   for (i = 0; i < pagesize; ++i)
20259     if (*(data + i) != *(data3 + i))
20260       return 1;
20261   close (fd);
20262   return 0;
20263 }
20264 _ACEOF
20265 rm -f conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269   *) ac_try_echo=$ac_try;;
20270 esac
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272   (eval "$ac_link") 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20276   { (case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281   (eval "$ac_try") 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   ac_cv_func_mmap_fixed_mapped=yes
20286 else
20287   echo "$as_me: program exited with status $ac_status" >&5
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ( exit $ac_status )
20292 ac_cv_func_mmap_fixed_mapped=no
20293 fi
20294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20295 fi
20296
20297
20298 fi
20299 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20300 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20301 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20302
20303 cat >>confdefs.h <<\_ACEOF
20304 #define HAVE_MMAP 1
20305 _ACEOF
20306
20307 fi
20308 rm -f conftest.mmap
20309
20310
20311     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20312 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20313 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20314   echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316   cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322
20323 #include <features.h>
20324 #ifdef __GNU_LIBRARY__
20325  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20326   Lucky GNU user
20327  #endif
20328 #endif
20329
20330 _ACEOF
20331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20332   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20333   ac_cv_gnu_library_2_1=yes
20334 else
20335   ac_cv_gnu_library_2_1=no
20336 fi
20337 rm -f conftest*
20338
20339
20340
20341 fi
20342 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20343 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20344
20345     GLIBC21="$ac_cv_gnu_library_2_1"
20346
20347
20348
20349
20350   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20351 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20352 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20353   echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355
20356       if test "$cross_compiling" = yes; then
20357
20358           # Guess based on the CPU.
20359           case "$host_cpu" in
20360             alpha* | i3456786 | m68k | s390*)
20361               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20362             *)
20363               gt_cv_int_divbyzero_sigfpe="guessing no";;
20364           esac
20365
20366 else
20367   cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h.  */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h.  */
20373
20374 #include <stdlib.h>
20375 #include <signal.h>
20376
20377 static void
20378 #ifdef __cplusplus
20379 sigfpe_handler (int sig)
20380 #else
20381 sigfpe_handler (sig) int sig;
20382 #endif
20383 {
20384   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20385   exit (sig != SIGFPE);
20386 }
20387
20388 int x = 1;
20389 int y = 0;
20390 int z;
20391 int nan;
20392
20393 int main ()
20394 {
20395   signal (SIGFPE, sigfpe_handler);
20396 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20397 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20398   signal (SIGTRAP, sigfpe_handler);
20399 #endif
20400 /* Linux/SPARC yields signal SIGILL.  */
20401 #if defined (__sparc__) && defined (__linux__)
20402   signal (SIGILL, sigfpe_handler);
20403 #endif
20404
20405   z = x / y;
20406   nan = y / y;
20407   exit (1);
20408 }
20409
20410 _ACEOF
20411 rm -f conftest$ac_exeext
20412 if { (ac_try="$ac_link"
20413 case "(($ac_try" in
20414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415   *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418   (eval "$ac_link") 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20422   { (case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427   (eval "$ac_try") 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); }; }; then
20431   gt_cv_int_divbyzero_sigfpe=yes
20432 else
20433   echo "$as_me: program exited with status $ac_status" >&5
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20436
20437 ( exit $ac_status )
20438 gt_cv_int_divbyzero_sigfpe=no
20439 fi
20440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20441 fi
20442
20443
20444
20445 fi
20446 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20447 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20448   case "$gt_cv_int_divbyzero_sigfpe" in
20449     *yes) value=1;;
20450     *) value=0;;
20451   esac
20452
20453 cat >>confdefs.h <<_ACEOF
20454 #define INTDIV0_RAISES_SIGFPE $value
20455 _ACEOF
20456
20457
20458
20459   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20460 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20461 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470 unsigned long long ull = 1ULL; int i = 63;
20471 int
20472 main ()
20473 {
20474 unsigned long long ullmax = (unsigned long long) -1;
20475      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20476   ;
20477   return 0;
20478 }
20479 _ACEOF
20480 rm -f conftest.$ac_objext conftest$ac_exeext
20481 if { (ac_try="$ac_link"
20482 case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_link") 2>conftest.er1
20488   ac_status=$?
20489   grep -v '^ *+' conftest.er1 >conftest.err
20490   rm -f conftest.er1
20491   cat conftest.err >&5
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); } && {
20494          test -z "$ac_c_werror_flag" ||
20495          test ! -s conftest.err
20496        } && test -s conftest$ac_exeext &&
20497        $as_test_x conftest$ac_exeext; then
20498   ac_cv_type_unsigned_long_long=yes
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503         ac_cv_type_unsigned_long_long=no
20504 fi
20505
20506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20507       conftest$ac_exeext conftest.$ac_ext
20508 fi
20509 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20510 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20511   if test $ac_cv_type_unsigned_long_long = yes; then
20512
20513 cat >>confdefs.h <<\_ACEOF
20514 #define HAVE_UNSIGNED_LONG_LONG 1
20515 _ACEOF
20516
20517   fi
20518
20519
20520
20521
20522   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20523
20524     test $ac_cv_type_unsigned_long_long = yes \
20525       && ac_type='unsigned long long' \
20526       || ac_type='unsigned long'
20527
20528 cat >>confdefs.h <<_ACEOF
20529 #define uintmax_t $ac_type
20530 _ACEOF
20531
20532   else
20533
20534 cat >>confdefs.h <<\_ACEOF
20535 #define HAVE_UINTMAX_T 1
20536 _ACEOF
20537
20538   fi
20539
20540
20541   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20542 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20543 if test "${gt_cv_header_inttypes_h+set}" = set; then
20544   echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546
20547     cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h.  */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h.  */
20553 #include <sys/types.h>
20554 #include <inttypes.h>
20555 int
20556 main ()
20557 {
20558
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext
20564 if { (ac_try="$ac_compile"
20565 case "(($ac_try" in
20566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567   *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570   (eval "$ac_compile") 2>conftest.er1
20571   ac_status=$?
20572   grep -v '^ *+' conftest.er1 >conftest.err
20573   rm -f conftest.er1
20574   cat conftest.err >&5
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); } && {
20577          test -z "$ac_c_werror_flag" ||
20578          test ! -s conftest.err
20579        } && test -s conftest.$ac_objext; then
20580   gt_cv_header_inttypes_h=yes
20581 else
20582   echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585         gt_cv_header_inttypes_h=no
20586 fi
20587
20588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20589
20590 fi
20591 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20592 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20593   if test $gt_cv_header_inttypes_h = yes; then
20594
20595 cat >>confdefs.h <<_ACEOF
20596 #define HAVE_INTTYPES_H 1
20597 _ACEOF
20598
20599   fi
20600
20601
20602
20603   if test $gt_cv_header_inttypes_h = yes; then
20604     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20605 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20606 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20607   echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609
20610         cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 #include <inttypes.h>
20617 #ifdef PRId32
20618 char *p = PRId32;
20619 #endif
20620
20621 int
20622 main ()
20623 {
20624
20625   ;
20626   return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_compile") 2>conftest.er1
20637   ac_status=$?
20638   grep -v '^ *+' conftest.er1 >conftest.err
20639   rm -f conftest.er1
20640   cat conftest.err >&5
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } && {
20643          test -z "$ac_c_werror_flag" ||
20644          test ! -s conftest.err
20645        } && test -s conftest.$ac_objext; then
20646   gt_cv_inttypes_pri_broken=no
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651         gt_cv_inttypes_pri_broken=yes
20652 fi
20653
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655
20656 fi
20657 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20658 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20659   fi
20660   if test "$gt_cv_inttypes_pri_broken" = yes; then
20661
20662 cat >>confdefs.h <<_ACEOF
20663 #define PRI_MACROS_BROKEN 1
20664 _ACEOF
20665
20666   fi
20667
20668
20669
20670 for ac_header in stdint.h
20671 do
20672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20677   echo $ECHO_N "(cached) $ECHO_C" >&6
20678 fi
20679 ac_res=`eval echo '${'$as_ac_Header'}'`
20680                { echo "$as_me:$LINENO: result: $ac_res" >&5
20681 echo "${ECHO_T}$ac_res" >&6; }
20682 else
20683   # Is the header compilable?
20684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20686 cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h.  */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h.  */
20692 $ac_includes_default
20693 #include <$ac_header>
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_compile") 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } && {
20709          test -z "$ac_c_werror_flag" ||
20710          test ! -s conftest.err
20711        } && test -s conftest.$ac_objext; then
20712   ac_header_compiler=yes
20713 else
20714   echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20716
20717         ac_header_compiler=no
20718 fi
20719
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20722 echo "${ECHO_T}$ac_header_compiler" >&6; }
20723
20724 # Is the header present?
20725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20727 cat >conftest.$ac_ext <<_ACEOF
20728 /* confdefs.h.  */
20729 _ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h.  */
20733 #include <$ac_header>
20734 _ACEOF
20735 if { (ac_try="$ac_cpp conftest.$ac_ext"
20736 case "(($ac_try" in
20737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738   *) ac_try_echo=$ac_try;;
20739 esac
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } >/dev/null && {
20748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20749          test ! -s conftest.err
20750        }; then
20751   ac_header_preproc=yes
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756   ac_header_preproc=no
20757 fi
20758
20759 rm -f conftest.err conftest.$ac_ext
20760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20761 echo "${ECHO_T}$ac_header_preproc" >&6; }
20762
20763 # So?  What about this header?
20764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20765   yes:no: )
20766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20770     ac_header_preproc=yes
20771     ;;
20772   no:yes:* )
20773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20785
20786     ;;
20787 esac
20788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793   eval "$as_ac_Header=\$ac_header_preproc"
20794 fi
20795 ac_res=`eval echo '${'$as_ac_Header'}'`
20796                { echo "$as_me:$LINENO: result: $ac_res" >&5
20797 echo "${ECHO_T}$ac_res" >&6; }
20798
20799 fi
20800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20801   cat >>confdefs.h <<_ACEOF
20802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20803 _ACEOF
20804
20805 fi
20806
20807 done
20808
20809     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20810 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20811   result=
20812   cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818
20819 #include <limits.h>
20820 #if HAVE_STDINT_H
20821 #include <stdint.h>
20822 #endif
20823 #ifdef SIZE_MAX
20824 Found it
20825 #endif
20826
20827 _ACEOF
20828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20829   $EGREP "Found it" >/dev/null 2>&1; then
20830   result=yes
20831 fi
20832 rm -f conftest*
20833
20834   if test -z "$result"; then
20835                     if test "$cross_compiling" = yes; then
20836   # Depending upon the size, compute the lo and hi bounds.
20837 cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 #include <stddef.h>
20844 int
20845 main ()
20846 {
20847 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20848 test_array [0] = 0
20849
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (ac_try="$ac_compile"
20856 case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_compile") 2>conftest.er1
20862   ac_status=$?
20863   grep -v '^ *+' conftest.er1 >conftest.err
20864   rm -f conftest.er1
20865   cat conftest.err >&5
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } && {
20868          test -z "$ac_c_werror_flag" ||
20869          test ! -s conftest.err
20870        } && test -s conftest.$ac_objext; then
20871   ac_lo=0 ac_mid=0
20872   while :; do
20873     cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 #include <stddef.h>
20880 int
20881 main ()
20882 {
20883 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20884 test_array [0] = 0
20885
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 rm -f conftest.$ac_objext
20891 if { (ac_try="$ac_compile"
20892 case "(($ac_try" in
20893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894   *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897   (eval "$ac_compile") 2>conftest.er1
20898   ac_status=$?
20899   grep -v '^ *+' conftest.er1 >conftest.err
20900   rm -f conftest.er1
20901   cat conftest.err >&5
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); } && {
20904          test -z "$ac_c_werror_flag" ||
20905          test ! -s conftest.err
20906        } && test -s conftest.$ac_objext; then
20907   ac_hi=$ac_mid; break
20908 else
20909   echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912         ac_lo=`expr $ac_mid + 1`
20913                         if test $ac_lo -le $ac_mid; then
20914                           ac_lo= ac_hi=
20915                           break
20916                         fi
20917                         ac_mid=`expr 2 '*' $ac_mid + 1`
20918 fi
20919
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921   done
20922 else
20923   echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20925
20926         cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h.  */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h.  */
20932 #include <stddef.h>
20933 int
20934 main ()
20935 {
20936 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20937 test_array [0] = 0
20938
20939   ;
20940   return 0;
20941 }
20942 _ACEOF
20943 rm -f conftest.$ac_objext
20944 if { (ac_try="$ac_compile"
20945 case "(($ac_try" in
20946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947   *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950   (eval "$ac_compile") 2>conftest.er1
20951   ac_status=$?
20952   grep -v '^ *+' conftest.er1 >conftest.err
20953   rm -f conftest.er1
20954   cat conftest.err >&5
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } && {
20957          test -z "$ac_c_werror_flag" ||
20958          test ! -s conftest.err
20959        } && test -s conftest.$ac_objext; then
20960   ac_hi=-1 ac_mid=-1
20961   while :; do
20962     cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h.  */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h.  */
20968 #include <stddef.h>
20969 int
20970 main ()
20971 {
20972 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20973 test_array [0] = 0
20974
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest.$ac_objext
20980 if { (ac_try="$ac_compile"
20981 case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_compile") 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } && {
20993          test -z "$ac_c_werror_flag" ||
20994          test ! -s conftest.err
20995        } && test -s conftest.$ac_objext; then
20996   ac_lo=$ac_mid; break
20997 else
20998   echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001         ac_hi=`expr '(' $ac_mid ')' - 1`
21002                         if test $ac_mid -le $ac_hi; then
21003                           ac_lo= ac_hi=
21004                           break
21005                         fi
21006                         ac_mid=`expr 2 '*' $ac_mid`
21007 fi
21008
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010   done
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015         ac_lo= ac_hi=
21016 fi
21017
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 fi
21020
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022 # Binary search between lo and hi bounds.
21023 while test "x$ac_lo" != "x$ac_hi"; do
21024   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21025   cat >conftest.$ac_ext <<_ACEOF
21026 /* confdefs.h.  */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h.  */
21031 #include <stddef.h>
21032 int
21033 main ()
21034 {
21035 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21036 test_array [0] = 0
21037
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_compile") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && {
21056          test -z "$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        } && test -s conftest.$ac_objext; then
21059   ac_hi=$ac_mid
21060 else
21061   echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064         ac_lo=`expr '(' $ac_mid ')' + 1`
21065 fi
21066
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068 done
21069 case $ac_lo in
21070 ?*) res_hi=$ac_lo;;
21071 '') result=? ;;
21072 esac
21073 else
21074   cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 #include <stddef.h>
21081 static long int longval () { return ~(size_t)0 / 10; }
21082 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21083 #include <stdio.h>
21084 #include <stdlib.h>
21085 int
21086 main ()
21087 {
21088
21089   FILE *f = fopen ("conftest.val", "w");
21090   if (! f)
21091     return 1;
21092   if ((~(size_t)0 / 10) < 0)
21093     {
21094       long int i = longval ();
21095       if (i != (~(size_t)0 / 10))
21096         return 1;
21097       fprintf (f, "%ld\n", i);
21098     }
21099   else
21100     {
21101       unsigned long int i = ulongval ();
21102       if (i != (~(size_t)0 / 10))
21103         return 1;
21104       fprintf (f, "%lu\n", i);
21105     }
21106   return ferror (f) || fclose (f) != 0;
21107
21108   ;
21109   return 0;
21110 }
21111 _ACEOF
21112 rm -f conftest$ac_exeext
21113 if { (ac_try="$ac_link"
21114 case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_link") 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21123   { (case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_try") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; }; then
21132   res_hi=`cat conftest.val`
21133 else
21134   echo "$as_me: program exited with status $ac_status" >&5
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 ( exit $ac_status )
21139 result=?
21140 fi
21141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142 fi
21143 rm -f conftest.val
21144
21145     if test "$cross_compiling" = yes; then
21146   # Depending upon the size, compute the lo and hi bounds.
21147 cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153 #include <stddef.h>
21154 int
21155 main ()
21156 {
21157 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21158 test_array [0] = 0
21159
21160   ;
21161   return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (ac_try="$ac_compile"
21166 case "(($ac_try" in
21167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168   *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171   (eval "$ac_compile") 2>conftest.er1
21172   ac_status=$?
21173   grep -v '^ *+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } && {
21178          test -z "$ac_c_werror_flag" ||
21179          test ! -s conftest.err
21180        } && test -s conftest.$ac_objext; then
21181   ac_lo=0 ac_mid=0
21182   while :; do
21183     cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189 #include <stddef.h>
21190 int
21191 main ()
21192 {
21193 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21194 test_array [0] = 0
21195
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext
21201 if { (ac_try="$ac_compile"
21202 case "(($ac_try" in
21203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204   *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207   (eval "$ac_compile") 2>conftest.er1
21208   ac_status=$?
21209   grep -v '^ *+' conftest.er1 >conftest.err
21210   rm -f conftest.er1
21211   cat conftest.err >&5
21212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213   (exit $ac_status); } && {
21214          test -z "$ac_c_werror_flag" ||
21215          test ! -s conftest.err
21216        } && test -s conftest.$ac_objext; then
21217   ac_hi=$ac_mid; break
21218 else
21219   echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222         ac_lo=`expr $ac_mid + 1`
21223                         if test $ac_lo -le $ac_mid; then
21224                           ac_lo= ac_hi=
21225                           break
21226                         fi
21227                         ac_mid=`expr 2 '*' $ac_mid + 1`
21228 fi
21229
21230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231   done
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236         cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242 #include <stddef.h>
21243 int
21244 main ()
21245 {
21246 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21247 test_array [0] = 0
21248
21249   ;
21250   return 0;
21251 }
21252 _ACEOF
21253 rm -f conftest.$ac_objext
21254 if { (ac_try="$ac_compile"
21255 case "(($ac_try" in
21256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257   *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260   (eval "$ac_compile") 2>conftest.er1
21261   ac_status=$?
21262   grep -v '^ *+' conftest.er1 >conftest.err
21263   rm -f conftest.er1
21264   cat conftest.err >&5
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); } && {
21267          test -z "$ac_c_werror_flag" ||
21268          test ! -s conftest.err
21269        } && test -s conftest.$ac_objext; then
21270   ac_hi=-1 ac_mid=-1
21271   while :; do
21272     cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h.  */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h.  */
21278 #include <stddef.h>
21279 int
21280 main ()
21281 {
21282 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21283 test_array [0] = 0
21284
21285   ;
21286   return 0;
21287 }
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293   *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296   (eval "$ac_compile") 2>conftest.er1
21297   ac_status=$?
21298   grep -v '^ *+' conftest.er1 >conftest.err
21299   rm -f conftest.er1
21300   cat conftest.err >&5
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } && {
21303          test -z "$ac_c_werror_flag" ||
21304          test ! -s conftest.err
21305        } && test -s conftest.$ac_objext; then
21306   ac_lo=$ac_mid; break
21307 else
21308   echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311         ac_hi=`expr '(' $ac_mid ')' - 1`
21312                         if test $ac_mid -le $ac_hi; then
21313                           ac_lo= ac_hi=
21314                           break
21315                         fi
21316                         ac_mid=`expr 2 '*' $ac_mid`
21317 fi
21318
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320   done
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325         ac_lo= ac_hi=
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 # Binary search between lo and hi bounds.
21333 while test "x$ac_lo" != "x$ac_hi"; do
21334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21335   cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 #include <stddef.h>
21342 int
21343 main ()
21344 {
21345 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21346 test_array [0] = 0
21347
21348   ;
21349   return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356   *) ac_try_echo=$ac_try;;
21357 esac
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359   (eval "$ac_compile") 2>conftest.er1
21360   ac_status=$?
21361   grep -v '^ *+' conftest.er1 >conftest.err
21362   rm -f conftest.er1
21363   cat conftest.err >&5
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); } && {
21366          test -z "$ac_c_werror_flag" ||
21367          test ! -s conftest.err
21368        } && test -s conftest.$ac_objext; then
21369   ac_hi=$ac_mid
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374         ac_lo=`expr '(' $ac_mid ')' + 1`
21375 fi
21376
21377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378 done
21379 case $ac_lo in
21380 ?*) res_lo=$ac_lo;;
21381 '') result=? ;;
21382 esac
21383 else
21384   cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h.  */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h.  */
21390 #include <stddef.h>
21391 static long int longval () { return ~(size_t)0 % 10; }
21392 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21393 #include <stdio.h>
21394 #include <stdlib.h>
21395 int
21396 main ()
21397 {
21398
21399   FILE *f = fopen ("conftest.val", "w");
21400   if (! f)
21401     return 1;
21402   if ((~(size_t)0 % 10) < 0)
21403     {
21404       long int i = longval ();
21405       if (i != (~(size_t)0 % 10))
21406         return 1;
21407       fprintf (f, "%ld\n", i);
21408     }
21409   else
21410     {
21411       unsigned long int i = ulongval ();
21412       if (i != (~(size_t)0 % 10))
21413         return 1;
21414       fprintf (f, "%lu\n", i);
21415     }
21416   return ferror (f) || fclose (f) != 0;
21417
21418   ;
21419   return 0;
21420 }
21421 _ACEOF
21422 rm -f conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429   (eval "$ac_link") 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21433   { (case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_try") 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; }; then
21442   res_lo=`cat conftest.val`
21443 else
21444   echo "$as_me: program exited with status $ac_status" >&5
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448 ( exit $ac_status )
21449 result=?
21450 fi
21451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21452 fi
21453 rm -f conftest.val
21454
21455     if test "$cross_compiling" = yes; then
21456   # Depending upon the size, compute the lo and hi bounds.
21457 cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h.  */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h.  */
21463 #include <stddef.h>
21464 int
21465 main ()
21466 {
21467 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21468 test_array [0] = 0
21469
21470   ;
21471   return 0;
21472 }
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478   *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481   (eval "$ac_compile") 2>conftest.er1
21482   ac_status=$?
21483   grep -v '^ *+' conftest.er1 >conftest.err
21484   rm -f conftest.er1
21485   cat conftest.err >&5
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } && {
21488          test -z "$ac_c_werror_flag" ||
21489          test ! -s conftest.err
21490        } && test -s conftest.$ac_objext; then
21491   ac_lo=0 ac_mid=0
21492   while :; do
21493     cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h.  */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h.  */
21499 #include <stddef.h>
21500 int
21501 main ()
21502 {
21503 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21504 test_array [0] = 0
21505
21506   ;
21507   return 0;
21508 }
21509 _ACEOF
21510 rm -f conftest.$ac_objext
21511 if { (ac_try="$ac_compile"
21512 case "(($ac_try" in
21513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514   *) ac_try_echo=$ac_try;;
21515 esac
21516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21517   (eval "$ac_compile") 2>conftest.er1
21518   ac_status=$?
21519   grep -v '^ *+' conftest.er1 >conftest.err
21520   rm -f conftest.er1
21521   cat conftest.err >&5
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); } && {
21524          test -z "$ac_c_werror_flag" ||
21525          test ! -s conftest.err
21526        } && test -s conftest.$ac_objext; then
21527   ac_hi=$ac_mid; break
21528 else
21529   echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21531
21532         ac_lo=`expr $ac_mid + 1`
21533                         if test $ac_lo -le $ac_mid; then
21534                           ac_lo= ac_hi=
21535                           break
21536                         fi
21537                         ac_mid=`expr 2 '*' $ac_mid + 1`
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541   done
21542 else
21543   echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546         cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 #include <stddef.h>
21553 int
21554 main ()
21555 {
21556 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21557 test_array [0] = 0
21558
21559   ;
21560   return 0;
21561 }
21562 _ACEOF
21563 rm -f conftest.$ac_objext
21564 if { (ac_try="$ac_compile"
21565 case "(($ac_try" in
21566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567   *) ac_try_echo=$ac_try;;
21568 esac
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570   (eval "$ac_compile") 2>conftest.er1
21571   ac_status=$?
21572   grep -v '^ *+' conftest.er1 >conftest.err
21573   rm -f conftest.er1
21574   cat conftest.err >&5
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); } && {
21577          test -z "$ac_c_werror_flag" ||
21578          test ! -s conftest.err
21579        } && test -s conftest.$ac_objext; then
21580   ac_hi=-1 ac_mid=-1
21581   while :; do
21582     cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 #include <stddef.h>
21589 int
21590 main ()
21591 {
21592 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21593 test_array [0] = 0
21594
21595   ;
21596   return 0;
21597 }
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (ac_try="$ac_compile"
21601 case "(($ac_try" in
21602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603   *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606   (eval "$ac_compile") 2>conftest.er1
21607   ac_status=$?
21608   grep -v '^ *+' conftest.er1 >conftest.err
21609   rm -f conftest.er1
21610   cat conftest.err >&5
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); } && {
21613          test -z "$ac_c_werror_flag" ||
21614          test ! -s conftest.err
21615        } && test -s conftest.$ac_objext; then
21616   ac_lo=$ac_mid; break
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621         ac_hi=`expr '(' $ac_mid ')' - 1`
21622                         if test $ac_mid -le $ac_hi; then
21623                           ac_lo= ac_hi=
21624                           break
21625                         fi
21626                         ac_mid=`expr 2 '*' $ac_mid`
21627 fi
21628
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630   done
21631 else
21632   echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635         ac_lo= ac_hi=
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 fi
21640
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 # Binary search between lo and hi bounds.
21643 while test "x$ac_lo" != "x$ac_hi"; do
21644   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21645   cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651 #include <stddef.h>
21652 int
21653 main ()
21654 {
21655 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21656 test_array [0] = 0
21657
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_compile") 2>conftest.er1
21670   ac_status=$?
21671   grep -v '^ *+' conftest.er1 >conftest.err
21672   rm -f conftest.er1
21673   cat conftest.err >&5
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); } && {
21676          test -z "$ac_c_werror_flag" ||
21677          test ! -s conftest.err
21678        } && test -s conftest.$ac_objext; then
21679   ac_hi=$ac_mid
21680 else
21681   echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684         ac_lo=`expr '(' $ac_mid ')' + 1`
21685 fi
21686
21687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688 done
21689 case $ac_lo in
21690 ?*) fits_in_uint=$ac_lo;;
21691 '') result=? ;;
21692 esac
21693 else
21694   cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h.  */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h.  */
21700 #include <stddef.h>
21701 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21702 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21703 #include <stdio.h>
21704 #include <stdlib.h>
21705 int
21706 main ()
21707 {
21708
21709   FILE *f = fopen ("conftest.val", "w");
21710   if (! f)
21711     return 1;
21712   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21713     {
21714       long int i = longval ();
21715       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21716         return 1;
21717       fprintf (f, "%ld\n", i);
21718     }
21719   else
21720     {
21721       unsigned long int i = ulongval ();
21722       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21723         return 1;
21724       fprintf (f, "%lu\n", i);
21725     }
21726   return ferror (f) || fclose (f) != 0;
21727
21728   ;
21729   return 0;
21730 }
21731 _ACEOF
21732 rm -f conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736   *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739   (eval "$ac_link") 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21743   { (case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_try") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; }; then
21752   fits_in_uint=`cat conftest.val`
21753 else
21754   echo "$as_me: program exited with status $ac_status" >&5
21755 echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758 ( exit $ac_status )
21759 result=?
21760 fi
21761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21762 fi
21763 rm -f conftest.val
21764
21765     if test "$fits_in_uint" = 1; then
21766                   cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772 #include <stddef.h>
21773         extern size_t foo;
21774         extern unsigned long foo;
21775
21776 int
21777 main ()
21778 {
21779
21780   ;
21781   return 0;
21782 }
21783 _ACEOF
21784 rm -f conftest.$ac_objext
21785 if { (ac_try="$ac_compile"
21786 case "(($ac_try" in
21787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788   *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791   (eval "$ac_compile") 2>conftest.er1
21792   ac_status=$?
21793   grep -v '^ *+' conftest.er1 >conftest.err
21794   rm -f conftest.er1
21795   cat conftest.err >&5
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); } && {
21798          test -z "$ac_c_werror_flag" ||
21799          test ! -s conftest.err
21800        } && test -s conftest.$ac_objext; then
21801   fits_in_uint=0
21802 else
21803   echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21805
21806
21807 fi
21808
21809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810     fi
21811     if test -z "$result"; then
21812       if test "$fits_in_uint" = 1; then
21813         result="$res_hi$res_lo"U
21814       else
21815         result="$res_hi$res_lo"UL
21816       fi
21817     else
21818             result='~(size_t)0'
21819     fi
21820   fi
21821   { echo "$as_me:$LINENO: result: $result" >&5
21822 echo "${ECHO_T}$result" >&6; }
21823   if test "$result" != yes; then
21824
21825 cat >>confdefs.h <<_ACEOF
21826 #define SIZE_MAX $result
21827 _ACEOF
21828
21829   fi
21830
21831
21832
21833
21834
21835 for ac_header in stdint.h
21836 do
21837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21842   echo $ECHO_N "(cached) $ECHO_C" >&6
21843 fi
21844 ac_res=`eval echo '${'$as_ac_Header'}'`
21845                { echo "$as_me:$LINENO: result: $ac_res" >&5
21846 echo "${ECHO_T}$ac_res" >&6; }
21847 else
21848   # Is the header compilable?
21849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21851 cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h.  */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h.  */
21857 $ac_includes_default
21858 #include <$ac_header>
21859 _ACEOF
21860 rm -f conftest.$ac_objext
21861 if { (ac_try="$ac_compile"
21862 case "(($ac_try" in
21863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864   *) ac_try_echo=$ac_try;;
21865 esac
21866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21867   (eval "$ac_compile") 2>conftest.er1
21868   ac_status=$?
21869   grep -v '^ *+' conftest.er1 >conftest.err
21870   rm -f conftest.er1
21871   cat conftest.err >&5
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); } && {
21874          test -z "$ac_c_werror_flag" ||
21875          test ! -s conftest.err
21876        } && test -s conftest.$ac_objext; then
21877   ac_header_compiler=yes
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882         ac_header_compiler=no
21883 fi
21884
21885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21887 echo "${ECHO_T}$ac_header_compiler" >&6; }
21888
21889 # Is the header present?
21890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 #include <$ac_header>
21899 _ACEOF
21900 if { (ac_try="$ac_cpp conftest.$ac_ext"
21901 case "(($ac_try" in
21902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903   *) ac_try_echo=$ac_try;;
21904 esac
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } >/dev/null && {
21913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21914          test ! -s conftest.err
21915        }; then
21916   ac_header_preproc=yes
21917 else
21918   echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21920
21921   ac_header_preproc=no
21922 fi
21923
21924 rm -f conftest.err conftest.$ac_ext
21925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21926 echo "${ECHO_T}$ac_header_preproc" >&6; }
21927
21928 # So?  What about this header?
21929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21930   yes:no: )
21931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21935     ac_header_preproc=yes
21936     ;;
21937   no:yes:* )
21938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21950
21951     ;;
21952 esac
21953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956   echo $ECHO_N "(cached) $ECHO_C" >&6
21957 else
21958   eval "$as_ac_Header=\$ac_header_preproc"
21959 fi
21960 ac_res=`eval echo '${'$as_ac_Header'}'`
21961                { echo "$as_me:$LINENO: result: $ac_res" >&5
21962 echo "${ECHO_T}$ac_res" >&6; }
21963
21964 fi
21965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21966   cat >>confdefs.h <<_ACEOF
21967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21968 _ACEOF
21969
21970 fi
21971
21972 done
21973
21974
21975
21976
21977
21978
21979
21980
21981   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21982 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21983 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21984   echo $ECHO_N "(cached) $ECHO_C" >&6
21985 else
21986   cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21992 $ac_includes_default
21993 typedef ptrdiff_t ac__type_new_;
21994 int
21995 main ()
21996 {
21997 if ((ac__type_new_ *) 0)
21998   return 0;
21999 if (sizeof (ac__type_new_))
22000   return 0;
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012   (eval "$ac_compile") 2>conftest.er1
22013   ac_status=$?
22014   grep -v '^ *+' conftest.er1 >conftest.err
22015   rm -f conftest.er1
22016   cat conftest.err >&5
22017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018   (exit $ac_status); } && {
22019          test -z "$ac_c_werror_flag" ||
22020          test ! -s conftest.err
22021        } && test -s conftest.$ac_objext; then
22022   ac_cv_type_ptrdiff_t=yes
22023 else
22024   echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22026
22027         ac_cv_type_ptrdiff_t=no
22028 fi
22029
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 fi
22032 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22033 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22034 if test $ac_cv_type_ptrdiff_t = yes; then
22035   :
22036 else
22037
22038 cat >>confdefs.h <<\_ACEOF
22039 #define ptrdiff_t long
22040 _ACEOF
22041
22042
22043 fi
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22056 stdlib.h string.h unistd.h sys/param.h
22057 do
22058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22063   echo $ECHO_N "(cached) $ECHO_C" >&6
22064 fi
22065 ac_res=`eval echo '${'$as_ac_Header'}'`
22066                { echo "$as_me:$LINENO: result: $ac_res" >&5
22067 echo "${ECHO_T}$ac_res" >&6; }
22068 else
22069   # Is the header compilable?
22070 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22072 cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h.  */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h.  */
22078 $ac_includes_default
22079 #include <$ac_header>
22080 _ACEOF
22081 rm -f conftest.$ac_objext
22082 if { (ac_try="$ac_compile"
22083 case "(($ac_try" in
22084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085   *) ac_try_echo=$ac_try;;
22086 esac
22087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088   (eval "$ac_compile") 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } && {
22095          test -z "$ac_c_werror_flag" ||
22096          test ! -s conftest.err
22097        } && test -s conftest.$ac_objext; then
22098   ac_header_compiler=yes
22099 else
22100   echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103         ac_header_compiler=no
22104 fi
22105
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22108 echo "${ECHO_T}$ac_header_compiler" >&6; }
22109
22110 # Is the header present?
22111 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22113 cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h.  */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h.  */
22119 #include <$ac_header>
22120 _ACEOF
22121 if { (ac_try="$ac_cpp conftest.$ac_ext"
22122 case "(($ac_try" in
22123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124   *) ac_try_echo=$ac_try;;
22125 esac
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22128   ac_status=$?
22129   grep -v '^ *+' conftest.er1 >conftest.err
22130   rm -f conftest.er1
22131   cat conftest.err >&5
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); } >/dev/null && {
22134          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22135          test ! -s conftest.err
22136        }; then
22137   ac_header_preproc=yes
22138 else
22139   echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142   ac_header_preproc=no
22143 fi
22144
22145 rm -f conftest.err conftest.$ac_ext
22146 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22147 echo "${ECHO_T}$ac_header_preproc" >&6; }
22148
22149 # So?  What about this header?
22150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22151   yes:no: )
22152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22156     ac_header_preproc=yes
22157     ;;
22158   no:yes:* )
22159     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22161     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22162 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22165     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22166 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22169     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22171
22172     ;;
22173 esac
22174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179   eval "$as_ac_Header=\$ac_header_preproc"
22180 fi
22181 ac_res=`eval echo '${'$as_ac_Header'}'`
22182                { echo "$as_me:$LINENO: result: $ac_res" >&5
22183 echo "${ECHO_T}$ac_res" >&6; }
22184
22185 fi
22186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22187   cat >>confdefs.h <<_ACEOF
22188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22189 _ACEOF
22190
22191 fi
22192
22193 done
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22219 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22220 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22221 __fsetlocking
22222 do
22223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22227   echo $ECHO_N "(cached) $ECHO_C" >&6
22228 else
22229   cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h.  */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h.  */
22235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22237 #define $ac_func innocuous_$ac_func
22238
22239 /* System header to define __stub macros and hopefully few prototypes,
22240     which can conflict with char $ac_func (); below.
22241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22242     <limits.h> exists even on freestanding compilers.  */
22243
22244 #ifdef __STDC__
22245 # include <limits.h>
22246 #else
22247 # include <assert.h>
22248 #endif
22249
22250 #undef $ac_func
22251
22252 /* Override any GCC internal prototype to avoid an error.
22253    Use char because int might match the return type of a GCC
22254    builtin and then its argument prototype would still apply.  */
22255 #ifdef __cplusplus
22256 extern "C"
22257 #endif
22258 char $ac_func ();
22259 /* The GNU C library defines this for functions which it implements
22260     to always fail with ENOSYS.  Some functions are actually named
22261     something starting with __ and the normal name is an alias.  */
22262 #if defined __stub_$ac_func || defined __stub___$ac_func
22263 choke me
22264 #endif
22265
22266 int
22267 main ()
22268 {
22269 return $ac_func ();
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest.$ac_objext conftest$ac_exeext
22275 if { (ac_try="$ac_link"
22276 case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_link") 2>conftest.er1
22282   ac_status=$?
22283   grep -v '^ *+' conftest.er1 >conftest.err
22284   rm -f conftest.er1
22285   cat conftest.err >&5
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); } && {
22288          test -z "$ac_c_werror_flag" ||
22289          test ! -s conftest.err
22290        } && test -s conftest$ac_exeext &&
22291        $as_test_x conftest$ac_exeext; then
22292   eval "$as_ac_var=yes"
22293 else
22294   echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297         eval "$as_ac_var=no"
22298 fi
22299
22300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22301       conftest$ac_exeext conftest.$ac_ext
22302 fi
22303 ac_res=`eval echo '${'$as_ac_var'}'`
22304                { echo "$as_me:$LINENO: result: $ac_res" >&5
22305 echo "${ECHO_T}$ac_res" >&6; }
22306 if test `eval echo '${'$as_ac_var'}'` = yes; then
22307   cat >>confdefs.h <<_ACEOF
22308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22309 _ACEOF
22310
22311 fi
22312 done
22313
22314
22315
22316   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22317 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22318 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22319   echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321   cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h.  */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h.  */
22327 #include <stdio.h>
22328 int
22329 main ()
22330 {
22331
22332 #ifndef _snprintf
22333   char *p = (char *) _snprintf;
22334 #endif
22335
22336   ;
22337   return 0;
22338 }
22339 _ACEOF
22340 rm -f conftest.$ac_objext
22341 if { (ac_try="$ac_compile"
22342 case "(($ac_try" in
22343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344   *) ac_try_echo=$ac_try;;
22345 esac
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347   (eval "$ac_compile") 2>conftest.er1
22348   ac_status=$?
22349   grep -v '^ *+' conftest.er1 >conftest.err
22350   rm -f conftest.er1
22351   cat conftest.err >&5
22352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353   (exit $ac_status); } && {
22354          test -z "$ac_c_werror_flag" ||
22355          test ! -s conftest.err
22356        } && test -s conftest.$ac_objext; then
22357   ac_cv_have_decl__snprintf=yes
22358 else
22359   echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362         ac_cv_have_decl__snprintf=no
22363 fi
22364
22365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22366 fi
22367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22368 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22369   if test $ac_cv_have_decl__snprintf = yes; then
22370     gt_value=1
22371   else
22372     gt_value=0
22373   fi
22374
22375 cat >>confdefs.h <<_ACEOF
22376 #define HAVE_DECL__SNPRINTF $gt_value
22377 _ACEOF
22378
22379
22380
22381   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22382 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22383 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22384   echo $ECHO_N "(cached) $ECHO_C" >&6
22385 else
22386   cat >conftest.$ac_ext <<_ACEOF
22387 /* confdefs.h.  */
22388 _ACEOF
22389 cat confdefs.h >>conftest.$ac_ext
22390 cat >>conftest.$ac_ext <<_ACEOF
22391 /* end confdefs.h.  */
22392 #include <stdio.h>
22393 int
22394 main ()
22395 {
22396
22397 #ifndef _snwprintf
22398   char *p = (char *) _snwprintf;
22399 #endif
22400
22401   ;
22402   return 0;
22403 }
22404 _ACEOF
22405 rm -f conftest.$ac_objext
22406 if { (ac_try="$ac_compile"
22407 case "(($ac_try" in
22408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409   *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412   (eval "$ac_compile") 2>conftest.er1
22413   ac_status=$?
22414   grep -v '^ *+' conftest.er1 >conftest.err
22415   rm -f conftest.er1
22416   cat conftest.err >&5
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); } && {
22419          test -z "$ac_c_werror_flag" ||
22420          test ! -s conftest.err
22421        } && test -s conftest.$ac_objext; then
22422   ac_cv_have_decl__snwprintf=yes
22423 else
22424   echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427         ac_cv_have_decl__snwprintf=no
22428 fi
22429
22430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431 fi
22432 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22433 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22434   if test $ac_cv_have_decl__snwprintf = yes; then
22435     gt_value=1
22436   else
22437     gt_value=0
22438   fi
22439
22440 cat >>confdefs.h <<_ACEOF
22441 #define HAVE_DECL__SNWPRINTF $gt_value
22442 _ACEOF
22443
22444
22445
22446
22447   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22448 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22449 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22450   echo $ECHO_N "(cached) $ECHO_C" >&6
22451 else
22452   cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h.  */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h.  */
22458 #include <stdio.h>
22459 int
22460 main ()
22461 {
22462
22463 #ifndef feof_unlocked
22464   char *p = (char *) feof_unlocked;
22465 #endif
22466
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478   (eval "$ac_compile") 2>conftest.er1
22479   ac_status=$?
22480   grep -v '^ *+' conftest.er1 >conftest.err
22481   rm -f conftest.er1
22482   cat conftest.err >&5
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); } && {
22485          test -z "$ac_c_werror_flag" ||
22486          test ! -s conftest.err
22487        } && test -s conftest.$ac_objext; then
22488   ac_cv_have_decl_feof_unlocked=yes
22489 else
22490   echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22492
22493         ac_cv_have_decl_feof_unlocked=no
22494 fi
22495
22496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22497 fi
22498 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22499 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22500   if test $ac_cv_have_decl_feof_unlocked = yes; then
22501     gt_value=1
22502   else
22503     gt_value=0
22504   fi
22505
22506 cat >>confdefs.h <<_ACEOF
22507 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22508 _ACEOF
22509
22510
22511
22512   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22513 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22514 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22515   echo $ECHO_N "(cached) $ECHO_C" >&6
22516 else
22517   cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h.  */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h.  */
22523 #include <stdio.h>
22524 int
22525 main ()
22526 {
22527
22528 #ifndef fgets_unlocked
22529   char *p = (char *) fgets_unlocked;
22530 #endif
22531
22532   ;
22533   return 0;
22534 }
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540   *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543   (eval "$ac_compile") 2>conftest.er1
22544   ac_status=$?
22545   grep -v '^ *+' conftest.er1 >conftest.err
22546   rm -f conftest.er1
22547   cat conftest.err >&5
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); } && {
22550          test -z "$ac_c_werror_flag" ||
22551          test ! -s conftest.err
22552        } && test -s conftest.$ac_objext; then
22553   ac_cv_have_decl_fgets_unlocked=yes
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558         ac_cv_have_decl_fgets_unlocked=no
22559 fi
22560
22561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 fi
22563 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22564 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22565   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22566     gt_value=1
22567   else
22568     gt_value=0
22569   fi
22570
22571 cat >>confdefs.h <<_ACEOF
22572 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22573 _ACEOF
22574
22575
22576
22577   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22578 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22579 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 #include <stdio.h>
22589 int
22590 main ()
22591 {
22592
22593 #ifndef getc_unlocked
22594   char *p = (char *) getc_unlocked;
22595 #endif
22596
22597   ;
22598   return 0;
22599 }
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605   *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608   (eval "$ac_compile") 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } && {
22615          test -z "$ac_c_werror_flag" ||
22616          test ! -s conftest.err
22617        } && test -s conftest.$ac_objext; then
22618   ac_cv_have_decl_getc_unlocked=yes
22619 else
22620   echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623         ac_cv_have_decl_getc_unlocked=no
22624 fi
22625
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627 fi
22628 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22629 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22630   if test $ac_cv_have_decl_getc_unlocked = yes; then
22631     gt_value=1
22632   else
22633     gt_value=0
22634   fi
22635
22636 cat >>confdefs.h <<_ACEOF
22637 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22638 _ACEOF
22639
22640
22641
22642   case $gt_cv_func_printf_posix in
22643     *yes) HAVE_POSIX_PRINTF=1 ;;
22644     *) HAVE_POSIX_PRINTF=0 ;;
22645   esac
22646
22647   if test "$ac_cv_func_asprintf" = yes; then
22648     HAVE_ASPRINTF=1
22649   else
22650     HAVE_ASPRINTF=0
22651   fi
22652
22653   if test "$ac_cv_func_snprintf" = yes; then
22654     HAVE_SNPRINTF=1
22655   else
22656     HAVE_SNPRINTF=0
22657   fi
22658
22659   if test "$ac_cv_func_wprintf" = yes; then
22660     HAVE_WPRINTF=1
22661   else
22662     HAVE_WPRINTF=0
22663   fi
22664
22665
22666
22667
22668
22669
22670
22671           am_save_CPPFLAGS="$CPPFLAGS"
22672
22673   for element in $INCICONV; do
22674     haveit=
22675     for x in $CPPFLAGS; do
22676
22677   acl_save_prefix="$prefix"
22678   prefix="$acl_final_prefix"
22679   acl_save_exec_prefix="$exec_prefix"
22680   exec_prefix="$acl_final_exec_prefix"
22681   eval x=\"$x\"
22682   exec_prefix="$acl_save_exec_prefix"
22683   prefix="$acl_save_prefix"
22684
22685       if test "X$x" = "X$element"; then
22686         haveit=yes
22687         break
22688       fi
22689     done
22690     if test -z "$haveit"; then
22691       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22692     fi
22693   done
22694
22695
22696   { echo "$as_me:$LINENO: checking for iconv" >&5
22697 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22698 if test "${am_cv_func_iconv+set}" = set; then
22699   echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701
22702     am_cv_func_iconv="no, consider installing GNU libiconv"
22703     am_cv_lib_iconv=no
22704     cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h.  */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h.  */
22710 #include <stdlib.h>
22711 #include <iconv.h>
22712 int
22713 main ()
22714 {
22715 iconv_t cd = iconv_open("","");
22716        iconv(cd,NULL,NULL,NULL,NULL);
22717        iconv_close(cd);
22718   ;
22719   return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext conftest$ac_exeext
22723 if { (ac_try="$ac_link"
22724 case "(($ac_try" in
22725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726   *) ac_try_echo=$ac_try;;
22727 esac
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729   (eval "$ac_link") 2>conftest.er1
22730   ac_status=$?
22731   grep -v '^ *+' conftest.er1 >conftest.err
22732   rm -f conftest.er1
22733   cat conftest.err >&5
22734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); } && {
22736          test -z "$ac_c_werror_flag" ||
22737          test ! -s conftest.err
22738        } && test -s conftest$ac_exeext &&
22739        $as_test_x conftest$ac_exeext; then
22740   am_cv_func_iconv=yes
22741 else
22742   echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22744
22745
22746 fi
22747
22748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22749       conftest$ac_exeext conftest.$ac_ext
22750     if test "$am_cv_func_iconv" != yes; then
22751       am_save_LIBS="$LIBS"
22752       LIBS="$LIBS $LIBICONV"
22753       cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22759 #include <stdlib.h>
22760 #include <iconv.h>
22761 int
22762 main ()
22763 {
22764 iconv_t cd = iconv_open("","");
22765          iconv(cd,NULL,NULL,NULL,NULL);
22766          iconv_close(cd);
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (ac_try="$ac_link"
22773 case "(($ac_try" in
22774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775   *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778   (eval "$ac_link") 2>conftest.er1
22779   ac_status=$?
22780   grep -v '^ *+' conftest.er1 >conftest.err
22781   rm -f conftest.er1
22782   cat conftest.err >&5
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); } && {
22785          test -z "$ac_c_werror_flag" ||
22786          test ! -s conftest.err
22787        } && test -s conftest$ac_exeext &&
22788        $as_test_x conftest$ac_exeext; then
22789   am_cv_lib_iconv=yes
22790         am_cv_func_iconv=yes
22791 else
22792   echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795
22796 fi
22797
22798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22799       conftest$ac_exeext conftest.$ac_ext
22800       LIBS="$am_save_LIBS"
22801     fi
22802
22803 fi
22804 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22805 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22806   if test "$am_cv_func_iconv" = yes; then
22807
22808 cat >>confdefs.h <<\_ACEOF
22809 #define HAVE_ICONV 1
22810 _ACEOF
22811
22812   fi
22813   if test "$am_cv_lib_iconv" = yes; then
22814     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22815 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22816     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22817 echo "${ECHO_T}$LIBICONV" >&6; }
22818   else
22819             CPPFLAGS="$am_save_CPPFLAGS"
22820     LIBICONV=
22821     LTLIBICONV=
22822   fi
22823
22824
22825
22826   if test "$am_cv_func_iconv" = yes; then
22827     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22828 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22829     if test "${am_cv_proto_iconv+set}" = set; then
22830   echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832
22833       cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839
22840 #include <stdlib.h>
22841 #include <iconv.h>
22842 extern
22843 #ifdef __cplusplus
22844 "C"
22845 #endif
22846 #if defined(__STDC__) || defined(__cplusplus)
22847 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22848 #else
22849 size_t iconv();
22850 #endif
22851
22852 int
22853 main ()
22854 {
22855
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext
22861 if { (ac_try="$ac_compile"
22862 case "(($ac_try" in
22863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864   *) ac_try_echo=$ac_try;;
22865 esac
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867   (eval "$ac_compile") 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && {
22874          test -z "$ac_c_werror_flag" ||
22875          test ! -s conftest.err
22876        } && test -s conftest.$ac_objext; then
22877   am_cv_proto_iconv_arg1=""
22878 else
22879   echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22881
22882         am_cv_proto_iconv_arg1="const"
22883 fi
22884
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886       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);"
22887 fi
22888
22889     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22890     { echo "$as_me:$LINENO: result: ${ac_t:-
22891          }$am_cv_proto_iconv" >&5
22892 echo "${ECHO_T}${ac_t:-
22893          }$am_cv_proto_iconv" >&6; }
22894
22895 cat >>confdefs.h <<_ACEOF
22896 #define ICONV_CONST $am_cv_proto_iconv_arg1
22897 _ACEOF
22898
22899   fi
22900
22901
22902   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22903 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22904 if test "${am_cv_langinfo_codeset+set}" = set; then
22905   echo $ECHO_N "(cached) $ECHO_C" >&6
22906 else
22907   cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 #include <langinfo.h>
22914 int
22915 main ()
22916 {
22917 char* cs = nl_langinfo(CODESET);
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (ac_try="$ac_link"
22924 case "(($ac_try" in
22925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926   *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929   (eval "$ac_link") 2>conftest.er1
22930   ac_status=$?
22931   grep -v '^ *+' conftest.er1 >conftest.err
22932   rm -f conftest.er1
22933   cat conftest.err >&5
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); } && {
22936          test -z "$ac_c_werror_flag" ||
22937          test ! -s conftest.err
22938        } && test -s conftest$ac_exeext &&
22939        $as_test_x conftest$ac_exeext; then
22940   am_cv_langinfo_codeset=yes
22941 else
22942   echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22944
22945         am_cv_langinfo_codeset=no
22946 fi
22947
22948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22949       conftest$ac_exeext conftest.$ac_ext
22950
22951 fi
22952 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22953 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22954   if test $am_cv_langinfo_codeset = yes; then
22955
22956 cat >>confdefs.h <<\_ACEOF
22957 #define HAVE_LANGINFO_CODESET 1
22958 _ACEOF
22959
22960   fi
22961
22962   if test $ac_cv_header_locale_h = yes; then
22963
22964   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22965 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22966 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22967   echo $ECHO_N "(cached) $ECHO_C" >&6
22968 else
22969   cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h.  */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h.  */
22975 #include <locale.h>
22976 int
22977 main ()
22978 {
22979 return LC_MESSAGES
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 rm -f conftest.$ac_objext conftest$ac_exeext
22985 if { (ac_try="$ac_link"
22986 case "(($ac_try" in
22987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988   *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991   (eval "$ac_link") 2>conftest.er1
22992   ac_status=$?
22993   grep -v '^ *+' conftest.er1 >conftest.err
22994   rm -f conftest.er1
22995   cat conftest.err >&5
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); } && {
22998          test -z "$ac_c_werror_flag" ||
22999          test ! -s conftest.err
23000        } && test -s conftest$ac_exeext &&
23001        $as_test_x conftest$ac_exeext; then
23002   gt_cv_val_LC_MESSAGES=yes
23003 else
23004   echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23006
23007         gt_cv_val_LC_MESSAGES=no
23008 fi
23009
23010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23011       conftest$ac_exeext conftest.$ac_ext
23012 fi
23013 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23014 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23015   if test $gt_cv_val_LC_MESSAGES = yes; then
23016
23017 cat >>confdefs.h <<\_ACEOF
23018 #define HAVE_LC_MESSAGES 1
23019 _ACEOF
23020
23021   fi
23022
23023   fi
23024
23025   if test -n "$INTL_MACOSX_LIBS"; then
23026     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23027   fi
23028
23029                       for ac_prog in bison
23030 do
23031   # Extract the first word of "$ac_prog", so it can be a program name with args.
23032 set dummy $ac_prog; ac_word=$2
23033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23035 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23036   echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23038   if test -n "$INTLBISON"; then
23039   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23040 else
23041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23042 for as_dir in $PATH
23043 do
23044   IFS=$as_save_IFS
23045   test -z "$as_dir" && as_dir=.
23046   for ac_exec_ext in '' $ac_executable_extensions; do
23047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23048     ac_cv_prog_INTLBISON="$ac_prog"
23049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23050     break 2
23051   fi
23052 done
23053 done
23054 IFS=$as_save_IFS
23055
23056 fi
23057 fi
23058 INTLBISON=$ac_cv_prog_INTLBISON
23059 if test -n "$INTLBISON"; then
23060   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23061 echo "${ECHO_T}$INTLBISON" >&6; }
23062 else
23063   { echo "$as_me:$LINENO: result: no" >&5
23064 echo "${ECHO_T}no" >&6; }
23065 fi
23066
23067
23068   test -n "$INTLBISON" && break
23069 done
23070
23071   if test -z "$INTLBISON"; then
23072     ac_verc_fail=yes
23073   else
23074         { echo "$as_me:$LINENO: checking version of bison" >&5
23075 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23076     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23077     case $ac_prog_version in
23078       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23079       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23080          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23081       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23082     esac
23083     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23084 echo "${ECHO_T}$ac_prog_version" >&6; }
23085   fi
23086   if test $ac_verc_fail = yes; then
23087     INTLBISON=:
23088   fi
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23106 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23107 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23108   echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23110   gt_save_CPPFLAGS="$CPPFLAGS"
23111      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23112      gt_save_LIBS="$LIBS"
23113      LIBS="$LIBS -framework CoreFoundation"
23114      cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 #include <CFPreferences.h>
23121 int
23122 main ()
23123 {
23124 CFPreferencesCopyAppValue(NULL, NULL)
23125   ;
23126   return 0;
23127 }
23128 _ACEOF
23129 rm -f conftest.$ac_objext conftest$ac_exeext
23130 if { (ac_try="$ac_link"
23131 case "(($ac_try" in
23132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133   *) ac_try_echo=$ac_try;;
23134 esac
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136   (eval "$ac_link") 2>conftest.er1
23137   ac_status=$?
23138   grep -v '^ *+' conftest.er1 >conftest.err
23139   rm -f conftest.er1
23140   cat conftest.err >&5
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); } && {
23143          test -z "$ac_c_werror_flag" ||
23144          test ! -s conftest.err
23145        } && test -s conftest$ac_exeext &&
23146        $as_test_x conftest$ac_exeext; then
23147   gt_cv_func_CFPreferencesCopyAppValue=yes
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152         gt_cv_func_CFPreferencesCopyAppValue=no
23153 fi
23154
23155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23156       conftest$ac_exeext conftest.$ac_ext
23157      CPPFLAGS="$gt_save_CPPFLAGS"
23158      LIBS="$gt_save_LIBS"
23159 fi
23160 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23161 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23162   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23163
23164 cat >>confdefs.h <<\_ACEOF
23165 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23166 _ACEOF
23167
23168   fi
23169     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23170 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23171 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23172   echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174   gt_save_CPPFLAGS="$CPPFLAGS"
23175      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23176      gt_save_LIBS="$LIBS"
23177      LIBS="$LIBS -framework CoreFoundation"
23178      cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h.  */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h.  */
23184 #include <CFLocale.h>
23185 int
23186 main ()
23187 {
23188 CFLocaleCopyCurrent();
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (ac_try="$ac_link"
23195 case "(($ac_try" in
23196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197   *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200   (eval "$ac_link") 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } && {
23207          test -z "$ac_c_werror_flag" ||
23208          test ! -s conftest.err
23209        } && test -s conftest$ac_exeext &&
23210        $as_test_x conftest$ac_exeext; then
23211   gt_cv_func_CFLocaleCopyCurrent=yes
23212 else
23213   echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23215
23216         gt_cv_func_CFLocaleCopyCurrent=no
23217 fi
23218
23219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23220       conftest$ac_exeext conftest.$ac_ext
23221      CPPFLAGS="$gt_save_CPPFLAGS"
23222      LIBS="$gt_save_LIBS"
23223 fi
23224 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23225 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23226   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23227
23228 cat >>confdefs.h <<\_ACEOF
23229 #define HAVE_CFLOCALECOPYCURRENT 1
23230 _ACEOF
23231
23232   fi
23233   INTL_MACOSX_LIBS=
23234   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23235     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23236   fi
23237
23238
23239
23240
23241   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23242 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23243     # Check whether --enable-nls was given.
23244 if test "${enable_nls+set}" = set; then
23245   enableval=$enable_nls; USE_NLS=$enableval
23246 else
23247   USE_NLS=yes
23248 fi
23249
23250   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23251 echo "${ECHO_T}$USE_NLS" >&6; }
23252
23253
23254
23255
23256     BUILD_INCLUDED_LIBINTL=no
23257     USE_INCLUDED_LIBINTL=no
23258
23259   LIBINTL=
23260   LTLIBINTL=
23261   POSUB=
23262
23263     if test "$USE_NLS" = "yes"; then
23264     gt_use_preinstalled_gnugettext=no
23265
23266       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23267 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23268
23269 # Check whether --with-included-gettext was given.
23270 if test "${with_included_gettext+set}" = set; then
23271   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23272 else
23273   nls_cv_force_use_gnu_gettext=no
23274 fi
23275
23276       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23277 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23278
23279       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23280       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23281
23282
23283
23284
23285
23286
23287         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23288 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23289 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23290   echo $ECHO_N "(cached) $ECHO_C" >&6
23291 else
23292   cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h.  */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h.  */
23298 #include <libintl.h>
23299 extern int _nl_msg_cat_cntr;
23300 extern int *_nl_domain_bindings;
23301 int
23302 main ()
23303 {
23304 bindtextdomain ("", "");
23305 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23306   ;
23307   return 0;
23308 }
23309 _ACEOF
23310 rm -f conftest.$ac_objext conftest$ac_exeext
23311 if { (ac_try="$ac_link"
23312 case "(($ac_try" in
23313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314   *) ac_try_echo=$ac_try;;
23315 esac
23316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317   (eval "$ac_link") 2>conftest.er1
23318   ac_status=$?
23319   grep -v '^ *+' conftest.er1 >conftest.err
23320   rm -f conftest.er1
23321   cat conftest.err >&5
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); } && {
23324          test -z "$ac_c_werror_flag" ||
23325          test ! -s conftest.err
23326        } && test -s conftest$ac_exeext &&
23327        $as_test_x conftest$ac_exeext; then
23328   gt_cv_func_gnugettext1_libc=yes
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333         gt_cv_func_gnugettext1_libc=no
23334 fi
23335
23336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23337       conftest$ac_exeext conftest.$ac_ext
23338 fi
23339 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23340 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23341
23342         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23343
23344
23345
23346     use_additional=yes
23347
23348   acl_save_prefix="$prefix"
23349   prefix="$acl_final_prefix"
23350   acl_save_exec_prefix="$exec_prefix"
23351   exec_prefix="$acl_final_exec_prefix"
23352
23353     eval additional_includedir=\"$includedir\"
23354     eval additional_libdir=\"$libdir\"
23355
23356   exec_prefix="$acl_save_exec_prefix"
23357   prefix="$acl_save_prefix"
23358
23359
23360 # Check whether --with-libintl-prefix was given.
23361 if test "${with_libintl_prefix+set}" = set; then
23362   withval=$with_libintl_prefix;
23363     if test "X$withval" = "Xno"; then
23364       use_additional=no
23365     else
23366       if test "X$withval" = "X"; then
23367
23368   acl_save_prefix="$prefix"
23369   prefix="$acl_final_prefix"
23370   acl_save_exec_prefix="$exec_prefix"
23371   exec_prefix="$acl_final_exec_prefix"
23372
23373           eval additional_includedir=\"$includedir\"
23374           eval additional_libdir=\"$libdir\"
23375
23376   exec_prefix="$acl_save_exec_prefix"
23377   prefix="$acl_save_prefix"
23378
23379       else
23380         additional_includedir="$withval/include"
23381         additional_libdir="$withval/lib"
23382       fi
23383     fi
23384
23385 fi
23386
23387       LIBINTL=
23388   LTLIBINTL=
23389   INCINTL=
23390   rpathdirs=
23391   ltrpathdirs=
23392   names_already_handled=
23393   names_next_round='intl '
23394   while test -n "$names_next_round"; do
23395     names_this_round="$names_next_round"
23396     names_next_round=
23397     for name in $names_this_round; do
23398       already_handled=
23399       for n in $names_already_handled; do
23400         if test "$n" = "$name"; then
23401           already_handled=yes
23402           break
23403         fi
23404       done
23405       if test -z "$already_handled"; then
23406         names_already_handled="$names_already_handled $name"
23407                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23408         eval value=\"\$HAVE_LIB$uppername\"
23409         if test -n "$value"; then
23410           if test "$value" = yes; then
23411             eval value=\"\$LIB$uppername\"
23412             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23413             eval value=\"\$LTLIB$uppername\"
23414             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23415           else
23416                                     :
23417           fi
23418         else
23419                               found_dir=
23420           found_la=
23421           found_so=
23422           found_a=
23423           if test $use_additional = yes; then
23424             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23425               found_dir="$additional_libdir"
23426               found_so="$additional_libdir/lib$name.$shlibext"
23427               if test -f "$additional_libdir/lib$name.la"; then
23428                 found_la="$additional_libdir/lib$name.la"
23429               fi
23430             else
23431               if test -f "$additional_libdir/lib$name.$libext"; then
23432                 found_dir="$additional_libdir"
23433                 found_a="$additional_libdir/lib$name.$libext"
23434                 if test -f "$additional_libdir/lib$name.la"; then
23435                   found_la="$additional_libdir/lib$name.la"
23436                 fi
23437               fi
23438             fi
23439           fi
23440           if test "X$found_dir" = "X"; then
23441             for x in $LDFLAGS $LTLIBINTL; do
23442
23443   acl_save_prefix="$prefix"
23444   prefix="$acl_final_prefix"
23445   acl_save_exec_prefix="$exec_prefix"
23446   exec_prefix="$acl_final_exec_prefix"
23447   eval x=\"$x\"
23448   exec_prefix="$acl_save_exec_prefix"
23449   prefix="$acl_save_prefix"
23450
23451               case "$x" in
23452                 -L*)
23453                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23454                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23455                     found_dir="$dir"
23456                     found_so="$dir/lib$name.$shlibext"
23457                     if test -f "$dir/lib$name.la"; then
23458                       found_la="$dir/lib$name.la"
23459                     fi
23460                   else
23461                     if test -f "$dir/lib$name.$libext"; then
23462                       found_dir="$dir"
23463                       found_a="$dir/lib$name.$libext"
23464                       if test -f "$dir/lib$name.la"; then
23465                         found_la="$dir/lib$name.la"
23466                       fi
23467                     fi
23468                   fi
23469                   ;;
23470               esac
23471               if test "X$found_dir" != "X"; then
23472                 break
23473               fi
23474             done
23475           fi
23476           if test "X$found_dir" != "X"; then
23477                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23478             if test "X$found_so" != "X"; then
23479                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23480                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23481               else
23482                                                                                 haveit=
23483                 for x in $ltrpathdirs; do
23484                   if test "X$x" = "X$found_dir"; then
23485                     haveit=yes
23486                     break
23487                   fi
23488                 done
23489                 if test -z "$haveit"; then
23490                   ltrpathdirs="$ltrpathdirs $found_dir"
23491                 fi
23492                                 if test "$hardcode_direct" = yes; then
23493                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23494                 else
23495                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23496                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23497                                                             haveit=
23498                     for x in $rpathdirs; do
23499                       if test "X$x" = "X$found_dir"; then
23500                         haveit=yes
23501                         break
23502                       fi
23503                     done
23504                     if test -z "$haveit"; then
23505                       rpathdirs="$rpathdirs $found_dir"
23506                     fi
23507                   else
23508                                                                                 haveit=
23509                     for x in $LDFLAGS $LIBINTL; do
23510
23511   acl_save_prefix="$prefix"
23512   prefix="$acl_final_prefix"
23513   acl_save_exec_prefix="$exec_prefix"
23514   exec_prefix="$acl_final_exec_prefix"
23515   eval x=\"$x\"
23516   exec_prefix="$acl_save_exec_prefix"
23517   prefix="$acl_save_prefix"
23518
23519                       if test "X$x" = "X-L$found_dir"; then
23520                         haveit=yes
23521                         break
23522                       fi
23523                     done
23524                     if test -z "$haveit"; then
23525                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23526                     fi
23527                     if test "$hardcode_minus_L" != no; then
23528                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23529                     else
23530                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23531                     fi
23532                   fi
23533                 fi
23534               fi
23535             else
23536               if test "X$found_a" != "X"; then
23537                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23538               else
23539                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23540               fi
23541             fi
23542                         additional_includedir=
23543             case "$found_dir" in
23544               */lib | */lib/)
23545                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23546                 additional_includedir="$basedir/include"
23547                 ;;
23548             esac
23549             if test "X$additional_includedir" != "X"; then
23550                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23551                 haveit=
23552                 if test "X$additional_includedir" = "X/usr/local/include"; then
23553                   if test -n "$GCC"; then
23554                     case $host_os in
23555                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23556                     esac
23557                   fi
23558                 fi
23559                 if test -z "$haveit"; then
23560                   for x in $CPPFLAGS $INCINTL; do
23561
23562   acl_save_prefix="$prefix"
23563   prefix="$acl_final_prefix"
23564   acl_save_exec_prefix="$exec_prefix"
23565   exec_prefix="$acl_final_exec_prefix"
23566   eval x=\"$x\"
23567   exec_prefix="$acl_save_exec_prefix"
23568   prefix="$acl_save_prefix"
23569
23570                     if test "X$x" = "X-I$additional_includedir"; then
23571                       haveit=yes
23572                       break
23573                     fi
23574                   done
23575                   if test -z "$haveit"; then
23576                     if test -d "$additional_includedir"; then
23577                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23578                     fi
23579                   fi
23580                 fi
23581               fi
23582             fi
23583                         if test -n "$found_la"; then
23584                                                         save_libdir="$libdir"
23585               case "$found_la" in
23586                 */* | *\\*) . "$found_la" ;;
23587                 *) . "./$found_la" ;;
23588               esac
23589               libdir="$save_libdir"
23590                             for dep in $dependency_libs; do
23591                 case "$dep" in
23592                   -L*)
23593                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23594                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23595                       haveit=
23596                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23597                         if test -n "$GCC"; then
23598                           case $host_os in
23599                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23600                           esac
23601                         fi
23602                       fi
23603                       if test -z "$haveit"; then
23604                         haveit=
23605                         for x in $LDFLAGS $LIBINTL; do
23606
23607   acl_save_prefix="$prefix"
23608   prefix="$acl_final_prefix"
23609   acl_save_exec_prefix="$exec_prefix"
23610   exec_prefix="$acl_final_exec_prefix"
23611   eval x=\"$x\"
23612   exec_prefix="$acl_save_exec_prefix"
23613   prefix="$acl_save_prefix"
23614
23615                           if test "X$x" = "X-L$additional_libdir"; then
23616                             haveit=yes
23617                             break
23618                           fi
23619                         done
23620                         if test -z "$haveit"; then
23621                           if test -d "$additional_libdir"; then
23622                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23623                           fi
23624                         fi
23625                         haveit=
23626                         for x in $LDFLAGS $LTLIBINTL; do
23627
23628   acl_save_prefix="$prefix"
23629   prefix="$acl_final_prefix"
23630   acl_save_exec_prefix="$exec_prefix"
23631   exec_prefix="$acl_final_exec_prefix"
23632   eval x=\"$x\"
23633   exec_prefix="$acl_save_exec_prefix"
23634   prefix="$acl_save_prefix"
23635
23636                           if test "X$x" = "X-L$additional_libdir"; then
23637                             haveit=yes
23638                             break
23639                           fi
23640                         done
23641                         if test -z "$haveit"; then
23642                           if test -d "$additional_libdir"; then
23643                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23644                           fi
23645                         fi
23646                       fi
23647                     fi
23648                     ;;
23649                   -R*)
23650                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23651                     if test "$enable_rpath" != no; then
23652                                                                   haveit=
23653                       for x in $rpathdirs; do
23654                         if test "X$x" = "X$dir"; then
23655                           haveit=yes
23656                           break
23657                         fi
23658                       done
23659                       if test -z "$haveit"; then
23660                         rpathdirs="$rpathdirs $dir"
23661                       fi
23662                                                                   haveit=
23663                       for x in $ltrpathdirs; do
23664                         if test "X$x" = "X$dir"; then
23665                           haveit=yes
23666                           break
23667                         fi
23668                       done
23669                       if test -z "$haveit"; then
23670                         ltrpathdirs="$ltrpathdirs $dir"
23671                       fi
23672                     fi
23673                     ;;
23674                   -l*)
23675                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23676                     ;;
23677                   *.la)
23678                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23679                     ;;
23680                   *)
23681                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23682                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23683                     ;;
23684                 esac
23685               done
23686             fi
23687           else
23688                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23689             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23690           fi
23691         fi
23692       fi
23693     done
23694   done
23695   if test "X$rpathdirs" != "X"; then
23696     if test -n "$hardcode_libdir_separator"; then
23697                         alldirs=
23698       for found_dir in $rpathdirs; do
23699         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23700       done
23701             acl_save_libdir="$libdir"
23702       libdir="$alldirs"
23703       eval flag=\"$hardcode_libdir_flag_spec\"
23704       libdir="$acl_save_libdir"
23705       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23706     else
23707             for found_dir in $rpathdirs; do
23708         acl_save_libdir="$libdir"
23709         libdir="$found_dir"
23710         eval flag=\"$hardcode_libdir_flag_spec\"
23711         libdir="$acl_save_libdir"
23712         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23713       done
23714     fi
23715   fi
23716   if test "X$ltrpathdirs" != "X"; then
23717             for found_dir in $ltrpathdirs; do
23718       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23719     done
23720   fi
23721
23722           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23723 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23724 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23725   echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727   gt_save_CPPFLAGS="$CPPFLAGS"
23728             CPPFLAGS="$CPPFLAGS $INCINTL"
23729             gt_save_LIBS="$LIBS"
23730             LIBS="$LIBS $LIBINTL"
23731                         cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h.  */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h.  */
23737 #include <libintl.h>
23738 extern int _nl_msg_cat_cntr;
23739 extern
23740 #ifdef __cplusplus
23741 "C"
23742 #endif
23743 const char *_nl_expand_alias (const char *);
23744 int
23745 main ()
23746 {
23747 bindtextdomain ("", "");
23748 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23749   ;
23750   return 0;
23751 }
23752 _ACEOF
23753 rm -f conftest.$ac_objext conftest$ac_exeext
23754 if { (ac_try="$ac_link"
23755 case "(($ac_try" in
23756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757   *) ac_try_echo=$ac_try;;
23758 esac
23759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23760   (eval "$ac_link") 2>conftest.er1
23761   ac_status=$?
23762   grep -v '^ *+' conftest.er1 >conftest.err
23763   rm -f conftest.er1
23764   cat conftest.err >&5
23765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766   (exit $ac_status); } && {
23767          test -z "$ac_c_werror_flag" ||
23768          test ! -s conftest.err
23769        } && test -s conftest$ac_exeext &&
23770        $as_test_x conftest$ac_exeext; then
23771   gt_cv_func_gnugettext1_libintl=yes
23772 else
23773   echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776         gt_cv_func_gnugettext1_libintl=no
23777 fi
23778
23779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23780       conftest$ac_exeext conftest.$ac_ext
23781                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23782               LIBS="$LIBS $LIBICONV"
23783               cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h.  */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h.  */
23789 #include <libintl.h>
23790 extern int _nl_msg_cat_cntr;
23791 extern
23792 #ifdef __cplusplus
23793 "C"
23794 #endif
23795 const char *_nl_expand_alias (const char *);
23796 int
23797 main ()
23798 {
23799 bindtextdomain ("", "");
23800 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23801   ;
23802   return 0;
23803 }
23804 _ACEOF
23805 rm -f conftest.$ac_objext conftest$ac_exeext
23806 if { (ac_try="$ac_link"
23807 case "(($ac_try" in
23808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809   *) ac_try_echo=$ac_try;;
23810 esac
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812   (eval "$ac_link") 2>conftest.er1
23813   ac_status=$?
23814   grep -v '^ *+' conftest.er1 >conftest.err
23815   rm -f conftest.er1
23816   cat conftest.err >&5
23817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818   (exit $ac_status); } && {
23819          test -z "$ac_c_werror_flag" ||
23820          test ! -s conftest.err
23821        } && test -s conftest$ac_exeext &&
23822        $as_test_x conftest$ac_exeext; then
23823   LIBINTL="$LIBINTL $LIBICONV"
23824                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23825                 gt_cv_func_gnugettext1_libintl=yes
23826
23827 else
23828   echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23830
23831
23832 fi
23833
23834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23835       conftest$ac_exeext conftest.$ac_ext
23836             fi
23837             CPPFLAGS="$gt_save_CPPFLAGS"
23838             LIBS="$gt_save_LIBS"
23839 fi
23840 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23841 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23842         fi
23843
23844                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23845            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23846                 && test "$PACKAGE" != gettext-runtime \
23847                 && test "$PACKAGE" != gettext-tools; }; then
23848           gt_use_preinstalled_gnugettext=yes
23849         else
23850                     LIBINTL=
23851           LTLIBINTL=
23852           INCINTL=
23853         fi
23854
23855
23856         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23857                               nls_cv_use_gnu_gettext=yes
23858         fi
23859       fi
23860
23861       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23862                 BUILD_INCLUDED_LIBINTL=yes
23863         USE_INCLUDED_LIBINTL=yes
23864         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23865         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23866         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23867       fi
23868
23869       CATOBJEXT=
23870       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23871          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23872                 CATOBJEXT=.gmo
23873       fi
23874
23875
23876     if test -n "$INTL_MACOSX_LIBS"; then
23877       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23878          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23879                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23880         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23881       fi
23882     fi
23883
23884     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23885        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23886
23887 cat >>confdefs.h <<\_ACEOF
23888 #define ENABLE_NLS 1
23889 _ACEOF
23890
23891     else
23892       USE_NLS=no
23893     fi
23894   fi
23895
23896   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23897 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23898   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23899 echo "${ECHO_T}$USE_NLS" >&6; }
23900   if test "$USE_NLS" = "yes"; then
23901     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23902 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23903     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23904       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23905         gt_source="external libintl"
23906       else
23907         gt_source="libc"
23908       fi
23909     else
23910       gt_source="included intl directory"
23911     fi
23912     { echo "$as_me:$LINENO: result: $gt_source" >&5
23913 echo "${ECHO_T}$gt_source" >&6; }
23914   fi
23915
23916   if test "$USE_NLS" = "yes"; then
23917
23918     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23919       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23920         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23921 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23922         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23923 echo "${ECHO_T}$LIBINTL" >&6; }
23924
23925   for element in $INCINTL; do
23926     haveit=
23927     for x in $CPPFLAGS; do
23928
23929   acl_save_prefix="$prefix"
23930   prefix="$acl_final_prefix"
23931   acl_save_exec_prefix="$exec_prefix"
23932   exec_prefix="$acl_final_exec_prefix"
23933   eval x=\"$x\"
23934   exec_prefix="$acl_save_exec_prefix"
23935   prefix="$acl_save_prefix"
23936
23937       if test "X$x" = "X$element"; then
23938         haveit=yes
23939         break
23940       fi
23941     done
23942     if test -z "$haveit"; then
23943       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23944     fi
23945   done
23946
23947       fi
23948
23949
23950 cat >>confdefs.h <<\_ACEOF
23951 #define HAVE_GETTEXT 1
23952 _ACEOF
23953
23954
23955 cat >>confdefs.h <<\_ACEOF
23956 #define HAVE_DCGETTEXT 1
23957 _ACEOF
23958
23959     fi
23960
23961         POSUB=po
23962   fi
23963
23964
23965             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23966       BUILD_INCLUDED_LIBINTL=yes
23967     fi
23968
23969
23970
23971
23972
23973         nls_cv_header_intl=
23974     nls_cv_header_libgt=
23975
23976         DATADIRNAME=share
23977
23978
23979         INSTOBJEXT=.mo
23980
23981
23982         GENCAT=gencat
23983
23984
23985         INTLOBJS=
23986     if test "$USE_INCLUDED_LIBINTL" = yes; then
23987       INTLOBJS="\$(GETTOBJS)"
23988     fi
23989
23990
23991         INTL_LIBTOOL_SUFFIX_PREFIX=
23992
23993
23994
23995     INTLLIBS="$LIBINTL"
23996
23997
23998
23999
24000
24001
24002 fi
24003
24004 support_mysql=no
24005 support_sqlite=no
24006 support_sqlite3=no
24007 support_postgresql=no
24008 support_dbi=no
24009 support_smartalloc=yes
24010 support_readline=yes
24011 support_conio=yes
24012 support_gnome=no
24013 support_bat=no
24014 support_wx_console=no
24015 support_tray_monitor=no
24016 support_tls=no
24017 support_crypto=no
24018 gnome_version=
24019 wx_version=
24020 support_static_tools=no
24021 support_static_fd=no
24022 support_static_sd=no
24023 support_static_dir=no
24024 support_static_cons=no
24025 support_python=no
24026 build_client_only=no
24027 build_dird=yes
24028 build_stored=yes
24029 cats=
24030 db_type=Internal
24031 support_lockmgr=no
24032 DB_TYPE=bdb
24033
24034
24035 # Check whether --enable-gnome was given.
24036 if test "${enable_gnome+set}" = set; then
24037   enableval=$enable_gnome;
24038        if test x$enableval = xyes; then
24039           support_gnome=yes
24040        fi
24041
24042
24043 fi
24044
24045
24046 GNOME_DIR=
24047 if test x$support_gnome = xyes; then
24048    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24049    pkg=$?
24050    if test $pkg = 0; then
24051       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24052       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24053       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24054       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24055
24056
24057
24058
24059       GNOME_DIR=src/gnome2-console
24060       gnome_version="Version 2.x"
24061    else
24062       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24063 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24064    { (exit 1); exit 1; }; }
24065    fi
24066 fi
24067
24068
24069 # Check whether --enable-bat was given.
24070 if test "${enable_bat+set}" = set; then
24071   enableval=$enable_bat;
24072        if test x$enableval = xyes; then
24073
24074 cat >>confdefs.h <<\_ACEOF
24075 #define HAVE_BAT 1
24076 _ACEOF
24077
24078           support_bat=yes
24079        fi
24080
24081
24082 fi
24083
24084
24085 BAT_DIR=
24086 if test x$support_bat = xyes; then
24087    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24088    pkg=$?
24089    if test $pkg = 0; then
24090       BAT_DIR=src/qt-console
24091    else
24092       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24093 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24094    { (exit 1); exit 1; }; }
24095    fi
24096 fi
24097
24098 got_qwt=no
24099 QWT_INC=
24100 QWT_LDFLAGS=
24101 QWT_LIB=
24102 QWT=
24103 no_qwt=no
24104 if test x$support_bat = xyes; then
24105    { echo "$as_me:$LINENO: checking for qwt support" >&5
24106 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24107
24108 # Check whether --with-qwt was given.
24109 if test "${with_qwt+set}" = set; then
24110   withval=$with_qwt;
24111           case "$with_qwt" in
24112           no)
24113              no_qwt=yes
24114              ;;
24115           yes|*)
24116              if test -f ${with_qwt}/include/qwt.h; then
24117                 QWT_INC="${with_qwt}/include"
24118                 QWT_LDFLAGS="-L${with_qwt}/lib"
24119                 QWT_LIB="-lqwt"
24120                 QWT="qwt"
24121              fi
24122              ;;
24123           esac
24124
24125
24126 fi
24127
24128
24129             if test $no_qwt = no; then
24130       if test x$QWT_INC = x; then
24131          for root in /usr /usr/local; do
24132             for ver in qwt qwt5 qwt-qt4; do
24133                if test -f ${root}/include/${ver}/qwt.h; then
24134                   QWT_INC="${root}/include/${ver}"
24135                   if test -d ${root}/lib64/; then
24136                      QWT_LDFLAGS="-L${root}/lib64"
24137                   elif test -d ${root}/lib/64/; then
24138                      QWT_LDFLAGS="-L${root}/64"
24139                   else
24140                      QWT_LDFLAGS="-L${root}/lib"
24141                   fi
24142                   QWT_LIB="-lqwt"
24143                   QWT="qwt"
24144                   got_qwt=yes
24145                   break;
24146                fi
24147             done
24148          done
24149       fi
24150    fi
24151    if test x$QWT_INC = x; then
24152       { echo "$as_me:$LINENO: result: no" >&5
24153 echo "${ECHO_T}no" >&6; }
24154    else
24155
24156 cat >>confdefs.h <<\_ACEOF
24157 #define HAVE_QWT 1
24158 _ACEOF
24159
24160       { echo "$as_me:$LINENO: result: yes" >&5
24161 echo "${ECHO_T}yes" >&6; }
24162    fi
24163 fi
24164
24165
24166
24167
24168
24169
24170
24171 # Check whether --enable-bwx-console was given.
24172 if test "${enable_bwx_console+set}" = set; then
24173   enableval=$enable_bwx_console;
24174        if test x$enableval = xyes; then
24175           support_wx_console=yes
24176        fi
24177
24178
24179 fi
24180
24181
24182 WX_DIR=
24183 if test x$support_wx_console = xyes; then
24184    abc=`$WXCONFIG $WXFLAGS --cppflags`
24185    pkg=$?
24186    if test $pkg = 0; then
24187       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24188       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24189       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24190
24191
24192
24193       WX_DIR="src/wx-console"
24194    else
24195       echo " "
24196       echo "wx-config program not found. bwx-console disabled."
24197       echo " "
24198       support_wx_console=no
24199    fi
24200 fi
24201
24202
24203 # Check whether --enable-tray-monitor was given.
24204 if test "${enable_tray_monitor+set}" = set; then
24205   enableval=$enable_tray_monitor;
24206        if test x$enableval = xyes; then
24207           support_tray_monitor=yes
24208        fi
24209
24210
24211 fi
24212
24213
24214 TRAY_MONITOR_DIR=
24215 if test x$support_tray_monitor = xyes; then
24216    abc=`$PKGCONFIG --exists gtk+-2.0`
24217    pkg=$?
24218    if test $pkg = 0; then
24219       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24220       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24221
24222
24223       TRAY_MONITOR_DIR=src/tray-monitor
24224       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24225       pkg=$?
24226       if test $pkg = 0; then
24227
24228 cat >>confdefs.h <<\_ACEOF
24229 #define HAVE_GTK_2_4 1
24230 _ACEOF
24231
24232       fi
24233    fi
24234 fi
24235
24236
24237 # Check whether --enable-smartalloc was given.
24238 if test "${enable_smartalloc+set}" = set; then
24239   enableval=$enable_smartalloc;
24240        if test x$enableval = xno; then
24241           support_smartalloc=no
24242        fi
24243
24244
24245 fi
24246
24247
24248 if test x$support_smartalloc = xyes; then
24249
24250 cat >>confdefs.h <<\_ACEOF
24251 #define SMARTALLOC 1
24252 _ACEOF
24253
24254 fi
24255
24256 # Check whether --enable-lockmgr was given.
24257 if test "${enable_lockmgr+set}" = set; then
24258   enableval=$enable_lockmgr;
24259        if test x$enableval = xyes; then
24260           support_lockmgr=yes
24261        fi
24262
24263
24264 fi
24265
24266
24267 if test x$support_lockmgr = xyes; then
24268
24269 cat >>confdefs.h <<\_ACEOF
24270 #define _USE_LOCKMGR 1
24271 _ACEOF
24272
24273 fi
24274
24275
24276 # Check whether --enable-static-tools was given.
24277 if test "${enable_static_tools+set}" = set; then
24278   enableval=$enable_static_tools;
24279        if test x$enableval = xyes; then
24280           if test x$use_libtool = xyes; then
24281              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24282   please rerun configure with --disable-libtool" >&5
24283 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24284   please rerun configure with --disable-libtool" >&2;}
24285    { (exit 1); exit 1; }; }
24286           fi
24287           support_static_tools=yes
24288        fi
24289
24290
24291 fi
24292
24293
24294 TTOOL_LDFLAGS=
24295 if test x$support_static_tools = xyes; then
24296    TTOOL_LDFLAGS="-static"
24297 fi
24298
24299
24300 # Check whether --enable-static-fd was given.
24301 if test "${enable_static_fd+set}" = set; then
24302   enableval=$enable_static_fd;
24303        if test x$enableval = xyes; then
24304           if test x$use_libtool = xyes; then
24305              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24306   please rerun configure with --disable-libtool" >&5
24307 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24308   please rerun configure with --disable-libtool" >&2;}
24309    { (exit 1); exit 1; }; }
24310           fi
24311           support_static_fd=yes
24312        fi
24313
24314
24315 fi
24316
24317
24318 STATIC_FD=
24319 if test x$support_static_fd = xyes; then
24320    STATIC_FD="static-bacula-fd"
24321 fi
24322
24323
24324 # Check whether --enable-static-sd was given.
24325 if test "${enable_static_sd+set}" = set; then
24326   enableval=$enable_static_sd;
24327        if test x$enableval = xyes; then
24328           if test x$use_libtool = xyes; then
24329              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24330   please rerun configure with --disable-libtool" >&5
24331 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24332   please rerun configure with --disable-libtool" >&2;}
24333    { (exit 1); exit 1; }; }
24334           fi
24335           support_static_sd=yes
24336        fi
24337
24338
24339 fi
24340
24341
24342 STATIC_SD=
24343 if test x$support_static_sd = xyes; then
24344    STATIC_SD="static-bacula-sd"
24345 fi
24346
24347
24348 # Check whether --enable-static-dir was given.
24349 if test "${enable_static_dir+set}" = set; then
24350   enableval=$enable_static_dir;
24351        if test x$enableval = xyes; then
24352           if test x$use_libtool = xyes; then
24353              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24354   please rerun configure with --disable-libtool" >&5
24355 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24356   please rerun configure with --disable-libtool" >&2;}
24357    { (exit 1); exit 1; }; }
24358           fi
24359           support_static_dir=yes
24360        fi
24361
24362
24363 fi
24364
24365
24366 STATIC_DIR=
24367 if test x$support_static_dir = xyes; then
24368    STATIC_DIR="static-bacula-dir"
24369 fi
24370
24371
24372 # Check whether --enable-static-cons was given.
24373 if test "${enable_static_cons+set}" = set; then
24374   enableval=$enable_static_cons;
24375        if test x$enableval = xyes; then
24376           if test x$use_libtool = xyes; then
24377              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24378   please rerun configure with --disable-libtool" >&5
24379 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24380   please rerun configure with --disable-libtool" >&2;}
24381    { (exit 1); exit 1; }; }
24382           fi
24383           support_static_cons=yes
24384        fi
24385
24386
24387 fi
24388
24389
24390 STATIC_CONS=
24391 STATIC_GNOME_CONS=
24392 STATIC_WX_CONS=
24393 if test x$support_static_cons = xyes; then
24394    STATIC_CONS="static-bconsole"
24395    STATIC_GNOME_CONS="static-bgnome-console"
24396    STATIC_WX_CONS="static-bwx-console"
24397 fi
24398
24399
24400
24401
24402 # Check whether --enable-client-only was given.
24403 if test "${enable_client_only+set}" = set; then
24404   enableval=$enable_client_only;
24405        if test x$enableval = xyes; then
24406           build_client_only=yes
24407           db_type=None
24408           DB_TYPE=none
24409        fi
24410
24411
24412 fi
24413
24414 if test x$build_client_only = xno; then
24415    ALL_DIRS="subdirs"
24416 else
24417    ALL_DIRS=""
24418 fi
24419
24420
24421 # Check whether --enable-build-dird was given.
24422 if test "${enable_build_dird+set}" = set; then
24423   enableval=$enable_build_dird;
24424        if test x$enableval = xno; then
24425           build_dird=no
24426        fi
24427
24428
24429 fi
24430
24431 if test x$build_dird = xyes; then
24432    DIRD_DIR="src/dird"
24433    DIR_TOOLS="DIRTOOLS"
24434 else
24435    DIRD_DIR=""
24436    DIR_TOOLS="NODIRTOOLS"
24437 fi
24438
24439
24440
24441 # Check whether --enable-build-stored was given.
24442 if test "${enable_build_stored+set}" = set; then
24443   enableval=$enable_build_stored;
24444       if test x$enableval = xno; then
24445          build_stored=no
24446       fi
24447
24448
24449 fi
24450
24451 if test x$build_stored = xyes; then
24452    STORED_DIR="src/stored"
24453 else
24454    STORED_DIR=""
24455 fi
24456
24457
24458 # Check whether --enable-conio was given.
24459 if test "${enable_conio+set}" = set; then
24460   enableval=$enable_conio;
24461        if test x$enableval = xno; then
24462           support_conio=no
24463        fi
24464
24465
24466 fi
24467
24468
24469
24470 support_ipv6=yes
24471 # Check whether --enable-ipv6 was given.
24472 if test "${enable_ipv6+set}" = set; then
24473   enableval=$enable_ipv6;
24474        if test x$enableval = xno; then
24475           support_ipv6=no
24476        fi
24477
24478
24479 fi
24480
24481
24482 if test x$support_ipv6 = xyes; then
24483     cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489  #include <sys/types.h>
24490 #include <sys/socket.h>
24491 #include <netinet/in.h>
24492 int
24493 main ()
24494 {
24495 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24496   ;
24497   return 0;
24498 }
24499 _ACEOF
24500 rm -f conftest.$ac_objext conftest$ac_exeext
24501 if { (ac_try="$ac_link"
24502 case "(($ac_try" in
24503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504   *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507   (eval "$ac_link") 2>conftest.er1
24508   ac_status=$?
24509   grep -v '^ *+' conftest.er1 >conftest.err
24510   rm -f conftest.er1
24511   cat conftest.err >&5
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); } && {
24514          test -z "$ac_c_werror_flag" ||
24515          test ! -s conftest.err
24516        } && test -s conftest$ac_exeext &&
24517        $as_test_x conftest$ac_exeext; then
24518   support_ipv6=yes
24519 else
24520   echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24522
24523         support_ipv6=no
24524 fi
24525
24526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24527       conftest$ac_exeext conftest.$ac_ext
24528 fi
24529
24530 if test x$support_ipv6 = xyes; then
24531
24532 cat >>confdefs.h <<\_ACEOF
24533 #define HAVE_IPV6 1
24534 _ACEOF
24535
24536 fi
24537
24538 got_conio="no"
24539 if test x$support_conio = xyes; then
24540    if test "${ac_cv_header_termcap_h+set}" = set; then
24541   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24542 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24543 if test "${ac_cv_header_termcap_h+set}" = set; then
24544   echo $ECHO_N "(cached) $ECHO_C" >&6
24545 fi
24546 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24547 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24548 else
24549   # Is the header compilable?
24550 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24551 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h.  */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h.  */
24558 $ac_includes_default
24559 #include <termcap.h>
24560 _ACEOF
24561 rm -f conftest.$ac_objext
24562 if { (ac_try="$ac_compile"
24563 case "(($ac_try" in
24564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24565   *) ac_try_echo=$ac_try;;
24566 esac
24567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24568   (eval "$ac_compile") 2>conftest.er1
24569   ac_status=$?
24570   grep -v '^ *+' conftest.er1 >conftest.err
24571   rm -f conftest.er1
24572   cat conftest.err >&5
24573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574   (exit $ac_status); } && {
24575          test -z "$ac_c_werror_flag" ||
24576          test ! -s conftest.err
24577        } && test -s conftest.$ac_objext; then
24578   ac_header_compiler=yes
24579 else
24580   echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583         ac_header_compiler=no
24584 fi
24585
24586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24588 echo "${ECHO_T}$ac_header_compiler" >&6; }
24589
24590 # Is the header present?
24591 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24592 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24593 cat >conftest.$ac_ext <<_ACEOF
24594 /* confdefs.h.  */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h.  */
24599 #include <termcap.h>
24600 _ACEOF
24601 if { (ac_try="$ac_cpp conftest.$ac_ext"
24602 case "(($ac_try" in
24603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604   *) ac_try_echo=$ac_try;;
24605 esac
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24608   ac_status=$?
24609   grep -v '^ *+' conftest.er1 >conftest.err
24610   rm -f conftest.er1
24611   cat conftest.err >&5
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); } >/dev/null && {
24614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24615          test ! -s conftest.err
24616        }; then
24617   ac_header_preproc=yes
24618 else
24619   echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622   ac_header_preproc=no
24623 fi
24624
24625 rm -f conftest.err conftest.$ac_ext
24626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24627 echo "${ECHO_T}$ac_header_preproc" >&6; }
24628
24629 # So?  What about this header?
24630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24631   yes:no: )
24632     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24633 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24634     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24635 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24636     ac_header_preproc=yes
24637     ;;
24638   no:yes:* )
24639     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24640 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24641     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24642 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24643     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24644 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24645     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24646 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24647     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24648 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24649     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24650 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24651
24652     ;;
24653 esac
24654 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24655 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24656 if test "${ac_cv_header_termcap_h+set}" = set; then
24657   echo $ECHO_N "(cached) $ECHO_C" >&6
24658 else
24659   ac_cv_header_termcap_h=$ac_header_preproc
24660 fi
24661 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24662 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24663
24664 fi
24665 if test $ac_cv_header_termcap_h = yes; then
24666    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24667 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24668 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24669   echo $ECHO_N "(cached) $ECHO_C" >&6
24670 else
24671   ac_check_lib_save_LIBS=$LIBS
24672 LIBS="-ltermcap  $LIBS"
24673 cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h.  */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h.  */
24679
24680 /* Override any GCC internal prototype to avoid an error.
24681    Use char because int might match the return type of a GCC
24682    builtin and then its argument prototype would still apply.  */
24683 #ifdef __cplusplus
24684 extern "C"
24685 #endif
24686 char tgetent ();
24687 int
24688 main ()
24689 {
24690 return tgetent ();
24691   ;
24692   return 0;
24693 }
24694 _ACEOF
24695 rm -f conftest.$ac_objext conftest$ac_exeext
24696 if { (ac_try="$ac_link"
24697 case "(($ac_try" in
24698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699   *) ac_try_echo=$ac_try;;
24700 esac
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702   (eval "$ac_link") 2>conftest.er1
24703   ac_status=$?
24704   grep -v '^ *+' conftest.er1 >conftest.err
24705   rm -f conftest.er1
24706   cat conftest.err >&5
24707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708   (exit $ac_status); } && {
24709          test -z "$ac_c_werror_flag" ||
24710          test ! -s conftest.err
24711        } && test -s conftest$ac_exeext &&
24712        $as_test_x conftest$ac_exeext; then
24713   ac_cv_lib_termcap_tgetent=yes
24714 else
24715   echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24717
24718         ac_cv_lib_termcap_tgetent=no
24719 fi
24720
24721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24722       conftest$ac_exeext conftest.$ac_ext
24723 LIBS=$ac_check_lib_save_LIBS
24724 fi
24725 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24726 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24727 if test $ac_cv_lib_termcap_tgetent = yes; then
24728    CONS_LIBS="-ltermcap"
24729     CONS_OBJ="conio.o"
24730     CONS_SRC="conio.c"
24731     got_conio="yes"
24732     support_readline=no
24733
24734 cat >>confdefs.h <<\_ACEOF
24735 #define HAVE_CONIO 1
24736 _ACEOF
24737
24738
24739 else
24740    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24741 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24742 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24743   echo $ECHO_N "(cached) $ECHO_C" >&6
24744 else
24745   ac_check_lib_save_LIBS=$LIBS
24746 LIBS="-lncurses  $LIBS"
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h.  */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h.  */
24753
24754 /* Override any GCC internal prototype to avoid an error.
24755    Use char because int might match the return type of a GCC
24756    builtin and then its argument prototype would still apply.  */
24757 #ifdef __cplusplus
24758 extern "C"
24759 #endif
24760 char tgetent ();
24761 int
24762 main ()
24763 {
24764 return tgetent ();
24765   ;
24766   return 0;
24767 }
24768 _ACEOF
24769 rm -f conftest.$ac_objext conftest$ac_exeext
24770 if { (ac_try="$ac_link"
24771 case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_link") 2>conftest.er1
24777   ac_status=$?
24778   grep -v '^ *+' conftest.er1 >conftest.err
24779   rm -f conftest.er1
24780   cat conftest.err >&5
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } && {
24783          test -z "$ac_c_werror_flag" ||
24784          test ! -s conftest.err
24785        } && test -s conftest$ac_exeext &&
24786        $as_test_x conftest$ac_exeext; then
24787   ac_cv_lib_ncurses_tgetent=yes
24788 else
24789   echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24791
24792         ac_cv_lib_ncurses_tgetent=no
24793 fi
24794
24795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24796       conftest$ac_exeext conftest.$ac_ext
24797 LIBS=$ac_check_lib_save_LIBS
24798 fi
24799 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24800 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24801 if test $ac_cv_lib_ncurses_tgetent = yes; then
24802    CONS_LIBS="-lncurses"
24803       CONS_OBJ="conio.o"
24804       CONS_SRC="conio.c"
24805       got_conio="yes"
24806       support_readline=no
24807
24808 cat >>confdefs.h <<\_ACEOF
24809 #define HAVE_CONIO 1
24810 _ACEOF
24811
24812
24813 fi
24814
24815
24816 fi
24817
24818
24819 else
24820
24821
24822 for ac_header in curses.h
24823 do
24824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24826   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24829   echo $ECHO_N "(cached) $ECHO_C" >&6
24830 fi
24831 ac_res=`eval echo '${'$as_ac_Header'}'`
24832                { echo "$as_me:$LINENO: result: $ac_res" >&5
24833 echo "${ECHO_T}$ac_res" >&6; }
24834 else
24835   # Is the header compilable?
24836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24838 cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844 $ac_includes_default
24845 #include <$ac_header>
24846 _ACEOF
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851   *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854   (eval "$ac_compile") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest.$ac_objext; then
24864   ac_header_compiler=yes
24865 else
24866   echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869         ac_header_compiler=no
24870 fi
24871
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24874 echo "${ECHO_T}$ac_header_compiler" >&6; }
24875
24876 # Is the header present?
24877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24879 cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h.  */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h.  */
24885 #include <$ac_header>
24886 _ACEOF
24887 if { (ac_try="$ac_cpp conftest.$ac_ext"
24888 case "(($ac_try" in
24889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890   *) ac_try_echo=$ac_try;;
24891 esac
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24894   ac_status=$?
24895   grep -v '^ *+' conftest.er1 >conftest.err
24896   rm -f conftest.er1
24897   cat conftest.err >&5
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); } >/dev/null && {
24900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24901          test ! -s conftest.err
24902        }; then
24903   ac_header_preproc=yes
24904 else
24905   echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24907
24908   ac_header_preproc=no
24909 fi
24910
24911 rm -f conftest.err conftest.$ac_ext
24912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24913 echo "${ECHO_T}$ac_header_preproc" >&6; }
24914
24915 # So?  What about this header?
24916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24917   yes:no: )
24918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24922     ac_header_preproc=yes
24923     ;;
24924   no:yes:* )
24925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24937
24938     ;;
24939 esac
24940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24943   echo $ECHO_N "(cached) $ECHO_C" >&6
24944 else
24945   eval "$as_ac_Header=\$ac_header_preproc"
24946 fi
24947 ac_res=`eval echo '${'$as_ac_Header'}'`
24948                { echo "$as_me:$LINENO: result: $ac_res" >&5
24949 echo "${ECHO_T}$ac_res" >&6; }
24950
24951 fi
24952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24953   cat >>confdefs.h <<_ACEOF
24954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24955 _ACEOF
24956
24957 fi
24958
24959 done
24960
24961     { echo "$as_me:$LINENO: checking for term.h" >&5
24962 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24963 if test "${ac_cv_header_term_h+set}" = set; then
24964   echo $ECHO_N "(cached) $ECHO_C" >&6
24965 else
24966   cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h.  */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h.  */
24972 #if HAVE_CURSES_H
24973 #include <curses.h>
24974 #endif
24975
24976
24977 #include <term.h>
24978 _ACEOF
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983   *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986   (eval "$ac_compile") 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } && {
24993          test -z "$ac_c_werror_flag" ||
24994          test ! -s conftest.err
24995        } && test -s conftest.$ac_objext; then
24996   ac_cv_header_term_h=yes
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001         ac_cv_header_term_h=no
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 fi
25006 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25007 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25008 if test $ac_cv_header_term_h = yes; then
25009    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25010 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25011 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25012   echo $ECHO_N "(cached) $ECHO_C" >&6
25013 else
25014   ac_check_lib_save_LIBS=$LIBS
25015 LIBS="-lcurses  $LIBS"
25016 cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022
25023 /* Override any GCC internal prototype to avoid an error.
25024    Use char because int might match the return type of a GCC
25025    builtin and then its argument prototype would still apply.  */
25026 #ifdef __cplusplus
25027 extern "C"
25028 #endif
25029 char tgetent ();
25030 int
25031 main ()
25032 {
25033 return tgetent ();
25034   ;
25035   return 0;
25036 }
25037 _ACEOF
25038 rm -f conftest.$ac_objext conftest$ac_exeext
25039 if { (ac_try="$ac_link"
25040 case "(($ac_try" in
25041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042   *) ac_try_echo=$ac_try;;
25043 esac
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045   (eval "$ac_link") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_c_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest$ac_exeext &&
25055        $as_test_x conftest$ac_exeext; then
25056   ac_cv_lib_curses_tgetent=yes
25057 else
25058   echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061         ac_cv_lib_curses_tgetent=no
25062 fi
25063
25064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25065       conftest$ac_exeext conftest.$ac_ext
25066 LIBS=$ac_check_lib_save_LIBS
25067 fi
25068 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25069 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25070 if test $ac_cv_lib_curses_tgetent = yes; then
25071    CONS_LIBS="-lcurses"
25072          CONS_OBJ="conio.o"
25073          CONS_SRC="conio.c"
25074          got_conio="yes"
25075          support_readline=no
25076
25077 cat >>confdefs.h <<\_ACEOF
25078 #define HAVE_CONIO 1
25079 _ACEOF
25080
25081
25082 fi
25083
25084
25085 else
25086    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25087 fi
25088
25089
25090
25091 fi
25092
25093
25094 fi
25095
25096
25097 # Check whether --enable-readline was given.
25098 if test "${enable_readline+set}" = set; then
25099   enableval=$enable_readline;
25100        if test x$enableval = xno; then
25101           support_readline=no
25102        fi
25103
25104
25105 fi
25106
25107
25108 got_readline="no"
25109 READLINE_SRC=
25110 if test x$support_readline = xyes; then
25111
25112 # Check whether --with-readline was given.
25113 if test "${with_readline+set}" = set; then
25114   withval=$with_readline;
25115           case "$with_readline" in
25116           no)
25117              :
25118              ;;
25119           yes|*)
25120              if test -f ${with_readline}/readline.h; then
25121                 CONS_INC="-I${with_readline}"
25122                 CONS_LDFLAGS="-L$with_readline"
25123              elif test -f ${with_readline}/include/readline/readline.h; then
25124                 CONS_INC="-I${with_readline}/include/readline"
25125                 CONS_LDFLAGS="-L${with_readline}/lib"
25126                 with_readline="${with_readline}/include/readline"
25127              else
25128                 with_readline="/usr/include/readline"
25129              fi
25130
25131              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25133   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25134 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25136   echo $ECHO_N "(cached) $ECHO_C" >&6
25137 fi
25138 ac_res=`eval echo '${'$as_ac_Header'}'`
25139                { echo "$as_me:$LINENO: result: $ac_res" >&5
25140 echo "${ECHO_T}$ac_res" >&6; }
25141 else
25142   # Is the header compilable?
25143 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25144 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h.  */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h.  */
25151 $ac_includes_default
25152 #include <${with_readline}/readline.h>
25153 _ACEOF
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158   *) ac_try_echo=$ac_try;;
25159 esac
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161   (eval "$ac_compile") 2>conftest.er1
25162   ac_status=$?
25163   grep -v '^ *+' conftest.er1 >conftest.err
25164   rm -f conftest.er1
25165   cat conftest.err >&5
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); } && {
25168          test -z "$ac_c_werror_flag" ||
25169          test ! -s conftest.err
25170        } && test -s conftest.$ac_objext; then
25171   ac_header_compiler=yes
25172 else
25173   echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176         ac_header_compiler=no
25177 fi
25178
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25181 echo "${ECHO_T}$ac_header_compiler" >&6; }
25182
25183 # Is the header present?
25184 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25185 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25186 cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192 #include <${with_readline}/readline.h>
25193 _ACEOF
25194 if { (ac_try="$ac_cpp conftest.$ac_ext"
25195 case "(($ac_try" in
25196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197   *) ac_try_echo=$ac_try;;
25198 esac
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25201   ac_status=$?
25202   grep -v '^ *+' conftest.er1 >conftest.err
25203   rm -f conftest.er1
25204   cat conftest.err >&5
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); } >/dev/null && {
25207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25208          test ! -s conftest.err
25209        }; then
25210   ac_header_preproc=yes
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215   ac_header_preproc=no
25216 fi
25217
25218 rm -f conftest.err conftest.$ac_ext
25219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25220 echo "${ECHO_T}$ac_header_preproc" >&6; }
25221
25222 # So?  What about this header?
25223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25224   yes:no: )
25225     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25226 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25227     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25228 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25229     ac_header_preproc=yes
25230     ;;
25231   no:yes:* )
25232     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25233 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25234     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25236     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25243 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25244
25245     ;;
25246 esac
25247 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25248 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252   eval "$as_ac_Header=\$ac_header_preproc"
25253 fi
25254 ac_res=`eval echo '${'$as_ac_Header'}'`
25255                { echo "$as_me:$LINENO: result: $ac_res" >&5
25256 echo "${ECHO_T}$ac_res" >&6; }
25257
25258 fi
25259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25260
25261
25262 cat >>confdefs.h <<\_ACEOF
25263 #define HAVE_READLINE 1
25264 _ACEOF
25265
25266                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25267                     got_readline="yes"
25268
25269 else
25270
25271                     echo " "
25272                     echo "readline.h not found. readline turned off ..."
25273                     echo " "
25274
25275
25276 fi
25277
25278
25279              ;;
25280           esac
25281
25282 else
25283
25284                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25285   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25286 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25287 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25288   echo $ECHO_N "(cached) $ECHO_C" >&6
25289 fi
25290 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25291 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25292 else
25293   # Is the header compilable?
25294 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25295 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302 $ac_includes_default
25303 #include </usr/include/readline/readline.h>
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309   *) ac_try_echo=$ac_try;;
25310 esac
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312   (eval "$ac_compile") 2>conftest.er1
25313   ac_status=$?
25314   grep -v '^ *+' conftest.er1 >conftest.err
25315   rm -f conftest.er1
25316   cat conftest.err >&5
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); } && {
25319          test -z "$ac_c_werror_flag" ||
25320          test ! -s conftest.err
25321        } && test -s conftest.$ac_objext; then
25322   ac_header_compiler=yes
25323 else
25324   echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25326
25327         ac_header_compiler=no
25328 fi
25329
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6; }
25333
25334 # Is the header present?
25335 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25336 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343 #include </usr/include/readline/readline.h>
25344 _ACEOF
25345 if { (ac_try="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25348   *) ac_try_echo=$ac_try;;
25349 esac
25350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25352   ac_status=$?
25353   grep -v '^ *+' conftest.er1 >conftest.err
25354   rm -f conftest.er1
25355   cat conftest.err >&5
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); } >/dev/null && {
25358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25359          test ! -s conftest.err
25360        }; then
25361   ac_header_preproc=yes
25362 else
25363   echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25365
25366   ac_header_preproc=no
25367 fi
25368
25369 rm -f conftest.err conftest.$ac_ext
25370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25371 echo "${ECHO_T}$ac_header_preproc" >&6; }
25372
25373 # So?  What about this header?
25374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25375   yes:no: )
25376     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25377 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25378     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25379 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25380     ac_header_preproc=yes
25381     ;;
25382   no:yes:* )
25383     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25384 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25385     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25394 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25395
25396     ;;
25397 esac
25398 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25399 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25400 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25404 fi
25405 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25406 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25407
25408 fi
25409 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25410
25411
25412 cat >>confdefs.h <<\_ACEOF
25413 #define HAVE_READLINE 1
25414 _ACEOF
25415
25416                 got_readline="yes"
25417                 CONS_INC="-I/usr/include/readline"
25418                 CONS_LIBS="-lreadline -ltermcap"
25419
25420 else
25421
25422                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25424   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25425 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 fi
25429 ac_res=`eval echo '${'$as_ac_Header'}'`
25430                { echo "$as_me:$LINENO: result: $ac_res" >&5
25431 echo "${ECHO_T}$ac_res" >&6; }
25432 else
25433   # Is the header compilable?
25434 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25435 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25436 cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h.  */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h.  */
25442 $ac_includes_default
25443 #include <${TOP_DIR}/depkgs/readline/readline.h>
25444 _ACEOF
25445 rm -f conftest.$ac_objext
25446 if { (ac_try="$ac_compile"
25447 case "(($ac_try" in
25448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449   *) ac_try_echo=$ac_try;;
25450 esac
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452   (eval "$ac_compile") 2>conftest.er1
25453   ac_status=$?
25454   grep -v '^ *+' conftest.er1 >conftest.err
25455   rm -f conftest.er1
25456   cat conftest.err >&5
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); } && {
25459          test -z "$ac_c_werror_flag" ||
25460          test ! -s conftest.err
25461        } && test -s conftest.$ac_objext; then
25462   ac_header_compiler=yes
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467         ac_header_compiler=no
25468 fi
25469
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25472 echo "${ECHO_T}$ac_header_compiler" >&6; }
25473
25474 # Is the header present?
25475 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25476 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25477 cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h.  */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h.  */
25483 #include <${TOP_DIR}/depkgs/readline/readline.h>
25484 _ACEOF
25485 if { (ac_try="$ac_cpp conftest.$ac_ext"
25486 case "(($ac_try" in
25487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488   *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25492   ac_status=$?
25493   grep -v '^ *+' conftest.er1 >conftest.err
25494   rm -f conftest.er1
25495   cat conftest.err >&5
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); } >/dev/null && {
25498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25499          test ! -s conftest.err
25500        }; then
25501   ac_header_preproc=yes
25502 else
25503   echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506   ac_header_preproc=no
25507 fi
25508
25509 rm -f conftest.err conftest.$ac_ext
25510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25511 echo "${ECHO_T}$ac_header_preproc" >&6; }
25512
25513 # So?  What about this header?
25514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25515   yes:no: )
25516     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25517 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25518     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25519 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25520     ac_header_preproc=yes
25521     ;;
25522   no:yes:* )
25523     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25524 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25525     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25533     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25534 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25535
25536     ;;
25537 esac
25538 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25539 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543   eval "$as_ac_Header=\$ac_header_preproc"
25544 fi
25545 ac_res=`eval echo '${'$as_ac_Header'}'`
25546                { echo "$as_me:$LINENO: result: $ac_res" >&5
25547 echo "${ECHO_T}$ac_res" >&6; }
25548
25549 fi
25550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25551
25552
25553 cat >>confdefs.h <<\_ACEOF
25554 #define HAVE_READLINE 1
25555 _ACEOF
25556
25557                         got_readline="yes"
25558                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25559                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25560                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25561                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25562
25563 else
25564
25565                         echo " "
25566                         echo "readline.h not found. readline turned off ..."
25567                         echo " "
25568
25569
25570 fi
25571
25572
25573
25574
25575 fi
25576
25577
25578
25579
25580 fi
25581
25582 fi
25583
25584
25585
25586
25587
25588
25589
25590
25591 MAKE_SHELL=/bin/sh
25592
25593 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25594 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25595 if test "${ac_cv_header_stat_broken+set}" = set; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 else
25598   cat >conftest.$ac_ext <<_ACEOF
25599 /* confdefs.h.  */
25600 _ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h.  */
25604 #include <sys/types.h>
25605 #include <sys/stat.h>
25606
25607 #if defined S_ISBLK && defined S_IFDIR
25608 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25609 #endif
25610
25611 #if defined S_ISBLK && defined S_IFCHR
25612 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25613 #endif
25614
25615 #if defined S_ISLNK && defined S_IFREG
25616 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25617 #endif
25618
25619 #if defined S_ISSOCK && defined S_IFREG
25620 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25621 #endif
25622
25623 _ACEOF
25624 rm -f conftest.$ac_objext
25625 if { (ac_try="$ac_compile"
25626 case "(($ac_try" in
25627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628   *) ac_try_echo=$ac_try;;
25629 esac
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631   (eval "$ac_compile") 2>conftest.er1
25632   ac_status=$?
25633   grep -v '^ *+' conftest.er1 >conftest.err
25634   rm -f conftest.er1
25635   cat conftest.err >&5
25636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637   (exit $ac_status); } && {
25638          test -z "$ac_c_werror_flag" ||
25639          test ! -s conftest.err
25640        } && test -s conftest.$ac_objext; then
25641   ac_cv_header_stat_broken=no
25642 else
25643   echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25645
25646         ac_cv_header_stat_broken=yes
25647 fi
25648
25649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25650 fi
25651 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25652 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25653 if test $ac_cv_header_stat_broken = yes; then
25654
25655 cat >>confdefs.h <<\_ACEOF
25656 #define STAT_MACROS_BROKEN 1
25657 _ACEOF
25658
25659 fi
25660
25661
25662
25663
25664
25665
25666 ac_header_dirent=no
25667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25668   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25672   echo $ECHO_N "(cached) $ECHO_C" >&6
25673 else
25674   cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h.  */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h.  */
25680 #include <sys/types.h>
25681 #include <$ac_hdr>
25682
25683 int
25684 main ()
25685 {
25686 if ((DIR *) 0)
25687 return 0;
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696   *) ac_try_echo=$ac_try;;
25697 esac
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699   (eval "$ac_compile") 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } && {
25706          test -z "$ac_c_werror_flag" ||
25707          test ! -s conftest.err
25708        } && test -s conftest.$ac_objext; then
25709   eval "$as_ac_Header=yes"
25710 else
25711   echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25713
25714         eval "$as_ac_Header=no"
25715 fi
25716
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25718 fi
25719 ac_res=`eval echo '${'$as_ac_Header'}'`
25720                { echo "$as_me:$LINENO: result: $ac_res" >&5
25721 echo "${ECHO_T}$ac_res" >&6; }
25722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25723   cat >>confdefs.h <<_ACEOF
25724 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25725 _ACEOF
25726
25727 ac_header_dirent=$ac_hdr; break
25728 fi
25729
25730 done
25731 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25732 if test $ac_header_dirent = dirent.h; then
25733   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25735 if test "${ac_cv_search_opendir+set}" = set; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738   ac_func_search_save_LIBS=$LIBS
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745
25746 /* Override any GCC internal prototype to avoid an error.
25747    Use char because int might match the return type of a GCC
25748    builtin and then its argument prototype would still apply.  */
25749 #ifdef __cplusplus
25750 extern "C"
25751 #endif
25752 char opendir ();
25753 int
25754 main ()
25755 {
25756 return opendir ();
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 for ac_lib in '' dir; do
25762   if test -z "$ac_lib"; then
25763     ac_res="none required"
25764   else
25765     ac_res=-l$ac_lib
25766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25767   fi
25768   rm -f conftest.$ac_objext conftest$ac_exeext
25769 if { (ac_try="$ac_link"
25770 case "(($ac_try" in
25771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772   *) ac_try_echo=$ac_try;;
25773 esac
25774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25775   (eval "$ac_link") 2>conftest.er1
25776   ac_status=$?
25777   grep -v '^ *+' conftest.er1 >conftest.err
25778   rm -f conftest.er1
25779   cat conftest.err >&5
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); } && {
25782          test -z "$ac_c_werror_flag" ||
25783          test ! -s conftest.err
25784        } && test -s conftest$ac_exeext &&
25785        $as_test_x conftest$ac_exeext; then
25786   ac_cv_search_opendir=$ac_res
25787 else
25788   echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25790
25791
25792 fi
25793
25794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25795       conftest$ac_exeext
25796   if test "${ac_cv_search_opendir+set}" = set; then
25797   break
25798 fi
25799 done
25800 if test "${ac_cv_search_opendir+set}" = set; then
25801   :
25802 else
25803   ac_cv_search_opendir=no
25804 fi
25805 rm conftest.$ac_ext
25806 LIBS=$ac_func_search_save_LIBS
25807 fi
25808 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25809 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25810 ac_res=$ac_cv_search_opendir
25811 if test "$ac_res" != no; then
25812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25813
25814 fi
25815
25816 else
25817   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25818 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25819 if test "${ac_cv_search_opendir+set}" = set; then
25820   echo $ECHO_N "(cached) $ECHO_C" >&6
25821 else
25822   ac_func_search_save_LIBS=$LIBS
25823 cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829
25830 /* Override any GCC internal prototype to avoid an error.
25831    Use char because int might match the return type of a GCC
25832    builtin and then its argument prototype would still apply.  */
25833 #ifdef __cplusplus
25834 extern "C"
25835 #endif
25836 char opendir ();
25837 int
25838 main ()
25839 {
25840 return opendir ();
25841   ;
25842   return 0;
25843 }
25844 _ACEOF
25845 for ac_lib in '' x; do
25846   if test -z "$ac_lib"; then
25847     ac_res="none required"
25848   else
25849     ac_res=-l$ac_lib
25850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25851   fi
25852   rm -f conftest.$ac_objext conftest$ac_exeext
25853 if { (ac_try="$ac_link"
25854 case "(($ac_try" in
25855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856   *) ac_try_echo=$ac_try;;
25857 esac
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859   (eval "$ac_link") 2>conftest.er1
25860   ac_status=$?
25861   grep -v '^ *+' conftest.er1 >conftest.err
25862   rm -f conftest.er1
25863   cat conftest.err >&5
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); } && {
25866          test -z "$ac_c_werror_flag" ||
25867          test ! -s conftest.err
25868        } && test -s conftest$ac_exeext &&
25869        $as_test_x conftest$ac_exeext; then
25870   ac_cv_search_opendir=$ac_res
25871 else
25872   echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875
25876 fi
25877
25878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25879       conftest$ac_exeext
25880   if test "${ac_cv_search_opendir+set}" = set; then
25881   break
25882 fi
25883 done
25884 if test "${ac_cv_search_opendir+set}" = set; then
25885   :
25886 else
25887   ac_cv_search_opendir=no
25888 fi
25889 rm conftest.$ac_ext
25890 LIBS=$ac_func_search_save_LIBS
25891 fi
25892 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25893 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25894 ac_res=$ac_cv_search_opendir
25895 if test "$ac_res" != no; then
25896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25897
25898 fi
25899
25900 fi
25901
25902
25903
25904
25905
25906
25907
25908
25909 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25910 do
25911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25915   echo $ECHO_N "(cached) $ECHO_C" >&6
25916 else
25917   cat >conftest.$ac_ext <<_ACEOF
25918 /* confdefs.h.  */
25919 _ACEOF
25920 cat confdefs.h >>conftest.$ac_ext
25921 cat >>conftest.$ac_ext <<_ACEOF
25922 /* end confdefs.h.  */
25923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25925 #define $ac_func innocuous_$ac_func
25926
25927 /* System header to define __stub macros and hopefully few prototypes,
25928     which can conflict with char $ac_func (); below.
25929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25930     <limits.h> exists even on freestanding compilers.  */
25931
25932 #ifdef __STDC__
25933 # include <limits.h>
25934 #else
25935 # include <assert.h>
25936 #endif
25937
25938 #undef $ac_func
25939
25940 /* Override any GCC internal prototype to avoid an error.
25941    Use char because int might match the return type of a GCC
25942    builtin and then its argument prototype would still apply.  */
25943 #ifdef __cplusplus
25944 extern "C"
25945 #endif
25946 char $ac_func ();
25947 /* The GNU C library defines this for functions which it implements
25948     to always fail with ENOSYS.  Some functions are actually named
25949     something starting with __ and the normal name is an alias.  */
25950 #if defined __stub_$ac_func || defined __stub___$ac_func
25951 choke me
25952 #endif
25953
25954 int
25955 main ()
25956 {
25957 return $ac_func ();
25958   ;
25959   return 0;
25960 }
25961 _ACEOF
25962 rm -f conftest.$ac_objext conftest$ac_exeext
25963 if { (ac_try="$ac_link"
25964 case "(($ac_try" in
25965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966   *) ac_try_echo=$ac_try;;
25967 esac
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969   (eval "$ac_link") 2>conftest.er1
25970   ac_status=$?
25971   grep -v '^ *+' conftest.er1 >conftest.err
25972   rm -f conftest.er1
25973   cat conftest.err >&5
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); } && {
25976          test -z "$ac_c_werror_flag" ||
25977          test ! -s conftest.err
25978        } && test -s conftest$ac_exeext &&
25979        $as_test_x conftest$ac_exeext; then
25980   eval "$as_ac_var=yes"
25981 else
25982   echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25984
25985         eval "$as_ac_var=no"
25986 fi
25987
25988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25989       conftest$ac_exeext conftest.$ac_ext
25990 fi
25991 ac_res=`eval echo '${'$as_ac_var'}'`
25992                { echo "$as_me:$LINENO: result: $ac_res" >&5
25993 echo "${ECHO_T}$ac_res" >&6; }
25994 if test `eval echo '${'$as_ac_var'}'` = yes; then
25995   cat >>confdefs.h <<_ACEOF
25996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25997 _ACEOF
25998
25999 fi
26000 done
26001
26002
26003
26004 for ac_func in nanosleep nl_langinfo
26005 do
26006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26020 #define $ac_func innocuous_$ac_func
26021
26022 /* System header to define __stub macros and hopefully few prototypes,
26023     which can conflict with char $ac_func (); below.
26024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26025     <limits.h> exists even on freestanding compilers.  */
26026
26027 #ifdef __STDC__
26028 # include <limits.h>
26029 #else
26030 # include <assert.h>
26031 #endif
26032
26033 #undef $ac_func
26034
26035 /* Override any GCC internal prototype to avoid an error.
26036    Use char because int might match the return type of a GCC
26037    builtin and then its argument prototype would still apply.  */
26038 #ifdef __cplusplus
26039 extern "C"
26040 #endif
26041 char $ac_func ();
26042 /* The GNU C library defines this for functions which it implements
26043     to always fail with ENOSYS.  Some functions are actually named
26044     something starting with __ and the normal name is an alias.  */
26045 #if defined __stub_$ac_func || defined __stub___$ac_func
26046 choke me
26047 #endif
26048
26049 int
26050 main ()
26051 {
26052 return $ac_func ();
26053   ;
26054   return 0;
26055 }
26056 _ACEOF
26057 rm -f conftest.$ac_objext conftest$ac_exeext
26058 if { (ac_try="$ac_link"
26059 case "(($ac_try" in
26060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26061   *) ac_try_echo=$ac_try;;
26062 esac
26063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26064   (eval "$ac_link") 2>conftest.er1
26065   ac_status=$?
26066   grep -v '^ *+' conftest.er1 >conftest.err
26067   rm -f conftest.er1
26068   cat conftest.err >&5
26069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070   (exit $ac_status); } && {
26071          test -z "$ac_c_werror_flag" ||
26072          test ! -s conftest.err
26073        } && test -s conftest$ac_exeext &&
26074        $as_test_x conftest$ac_exeext; then
26075   eval "$as_ac_var=yes"
26076 else
26077   echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080         eval "$as_ac_var=no"
26081 fi
26082
26083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26084       conftest$ac_exeext conftest.$ac_ext
26085 fi
26086 ac_res=`eval echo '${'$as_ac_var'}'`
26087                { echo "$as_me:$LINENO: result: $ac_res" >&5
26088 echo "${ECHO_T}$ac_res" >&6; }
26089 if test `eval echo '${'$as_ac_var'}'` = yes; then
26090   cat >>confdefs.h <<_ACEOF
26091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26092 _ACEOF
26093
26094 fi
26095 done
26096
26097
26098 for ac_header in varargs.h
26099 do
26100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26102   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26105   echo $ECHO_N "(cached) $ECHO_C" >&6
26106 fi
26107 ac_res=`eval echo '${'$as_ac_Header'}'`
26108                { echo "$as_me:$LINENO: result: $ac_res" >&5
26109 echo "${ECHO_T}$ac_res" >&6; }
26110 else
26111   # Is the header compilable?
26112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26114 cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120 $ac_includes_default
26121 #include <$ac_header>
26122 _ACEOF
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127   *) ac_try_echo=$ac_try;;
26128 esac
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130   (eval "$ac_compile") 2>conftest.er1
26131   ac_status=$?
26132   grep -v '^ *+' conftest.er1 >conftest.err
26133   rm -f conftest.er1
26134   cat conftest.err >&5
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } && {
26137          test -z "$ac_c_werror_flag" ||
26138          test ! -s conftest.err
26139        } && test -s conftest.$ac_objext; then
26140   ac_header_compiler=yes
26141 else
26142   echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26144
26145         ac_header_compiler=no
26146 fi
26147
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26150 echo "${ECHO_T}$ac_header_compiler" >&6; }
26151
26152 # Is the header present?
26153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26155 cat >conftest.$ac_ext <<_ACEOF
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161 #include <$ac_header>
26162 _ACEOF
26163 if { (ac_try="$ac_cpp conftest.$ac_ext"
26164 case "(($ac_try" in
26165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166   *) ac_try_echo=$ac_try;;
26167 esac
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } >/dev/null && {
26176          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26177          test ! -s conftest.err
26178        }; then
26179   ac_header_preproc=yes
26180 else
26181   echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26183
26184   ac_header_preproc=no
26185 fi
26186
26187 rm -f conftest.err conftest.$ac_ext
26188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26189 echo "${ECHO_T}$ac_header_preproc" >&6; }
26190
26191 # So?  What about this header?
26192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26193   yes:no: )
26194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26198     ac_header_preproc=yes
26199     ;;
26200   no:yes:* )
26201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26213
26214     ;;
26215 esac
26216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26219   echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221   eval "$as_ac_Header=\$ac_header_preproc"
26222 fi
26223 ac_res=`eval echo '${'$as_ac_Header'}'`
26224                { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26226
26227 fi
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229   cat >>confdefs.h <<_ACEOF
26230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26231 _ACEOF
26232
26233 fi
26234
26235 done
26236
26237
26238
26239 { echo "$as_me:$LINENO: checking for Python support" >&5
26240 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26241
26242 # Check whether --with-python was given.
26243 if test "${with_python+set}" = set; then
26244   withval=$with_python;
26245        PYTHON_INCDIR=
26246        PYTHON_LIBS=
26247        if test "$withval" != "no"; then
26248           if test "$withval" = "yes"; then
26249              if test -e /usr/bin/python-config ; then
26250                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26251                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26252              else
26253                 for python_root in /usr /usr/local /usr/sfw; do
26254                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26255                       if test -f $python_root/include/${ver}/Python.h; then
26256                          PYTHON_INCDIR=-I$python_root/include/${ver}
26257                          if test -d $python_root/lib64/${ver}/config; then
26258                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26259                          else
26260                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26261                          fi
26262                          break
26263                       fi
26264                    done
26265                 done
26266
26267                 if test x$PYTHON_INCDIR = x; then
26268                    if test -f $prefix/include/Python.h; then
26269                       PYTHON_INCDIR=-I$prefix/include
26270                       if test -d $prefix/lib64/config; then
26271                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26272                       else
26273                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26274                       fi
26275                    else
26276                       { echo "$as_me:$LINENO: result: no" >&5
26277 echo "${ECHO_T}no" >&6; }
26278                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26279 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26280    { (exit 1); exit 1; }; }
26281                    fi
26282                 fi
26283              fi
26284           else
26285              if test -e $withval/bin/python-config ; then
26286                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26287                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26288              elif test -f $withval/Python.h; then
26289                 PYTHON_INCDIR=-I$withval
26290                 PYTHON_LIBS="-L$withval/config -lpython"
26291              elif test -f $withval/include/Python.h; then
26292                 PYTHON_INCDIR=-I$withval/include
26293                 if test -d $withval/lib64/config; then
26294                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26295                 else
26296                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26297                 fi
26298              elif test -f $withval/include/python/Python.h; then
26299                 PYTHON_INCDIR=-I$withval/include/python
26300                 if test -d $withval/lib64/python/config; then
26301                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26302                 else
26303                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26304                 fi
26305              else
26306                 { echo "$as_me:$LINENO: result: no" >&5
26307 echo "${ECHO_T}no" >&6; }
26308                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26309 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26310    { (exit 1); exit 1; }; }
26311              fi
26312           fi
26313
26314           cat >>confdefs.h <<\_ACEOF
26315 #define HAVE_PYTHON 1
26316 _ACEOF
26317
26318           { echo "$as_me:$LINENO: result: yes" >&5
26319 echo "${ECHO_T}yes" >&6; }
26320           support_python=yes
26321           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26322 echo "$as_me: checking for more Python libs" >&6;}
26323           saved_LIBS="$LIBS"; LIBS=
26324           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26325 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26326 if test "${ac_cv_search_shm_open+set}" = set; then
26327   echo $ECHO_N "(cached) $ECHO_C" >&6
26328 else
26329   ac_func_search_save_LIBS=$LIBS
26330 cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h.  */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h.  */
26336
26337 /* Override any GCC internal prototype to avoid an error.
26338    Use char because int might match the return type of a GCC
26339    builtin and then its argument prototype would still apply.  */
26340 #ifdef __cplusplus
26341 extern "C"
26342 #endif
26343 char shm_open ();
26344 int
26345 main ()
26346 {
26347 return shm_open ();
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 for ac_lib in '' rt; do
26353   if test -z "$ac_lib"; then
26354     ac_res="none required"
26355   else
26356     ac_res=-l$ac_lib
26357     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26358   fi
26359   rm -f conftest.$ac_objext conftest$ac_exeext
26360 if { (ac_try="$ac_link"
26361 case "(($ac_try" in
26362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363   *) ac_try_echo=$ac_try;;
26364 esac
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366   (eval "$ac_link") 2>conftest.er1
26367   ac_status=$?
26368   grep -v '^ *+' conftest.er1 >conftest.err
26369   rm -f conftest.er1
26370   cat conftest.err >&5
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); } && {
26373          test -z "$ac_c_werror_flag" ||
26374          test ! -s conftest.err
26375        } && test -s conftest$ac_exeext &&
26376        $as_test_x conftest$ac_exeext; then
26377   ac_cv_search_shm_open=$ac_res
26378 else
26379   echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26381
26382
26383 fi
26384
26385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26386       conftest$ac_exeext
26387   if test "${ac_cv_search_shm_open+set}" = set; then
26388   break
26389 fi
26390 done
26391 if test "${ac_cv_search_shm_open+set}" = set; then
26392   :
26393 else
26394   ac_cv_search_shm_open=no
26395 fi
26396 rm conftest.$ac_ext
26397 LIBS=$ac_func_search_save_LIBS
26398 fi
26399 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26400 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26401 ac_res=$ac_cv_search_shm_open
26402 if test "$ac_res" != no; then
26403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26404
26405 fi
26406
26407
26408 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26409 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26410 if test "${ac_cv_lib_util_openpty+set}" = set; then
26411   echo $ECHO_N "(cached) $ECHO_C" >&6
26412 else
26413   ac_check_lib_save_LIBS=$LIBS
26414 LIBS="-lutil  $LIBS"
26415 cat >conftest.$ac_ext <<_ACEOF
26416 /* confdefs.h.  */
26417 _ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h.  */
26421
26422 /* Override any GCC internal prototype to avoid an error.
26423    Use char because int might match the return type of a GCC
26424    builtin and then its argument prototype would still apply.  */
26425 #ifdef __cplusplus
26426 extern "C"
26427 #endif
26428 char openpty ();
26429 int
26430 main ()
26431 {
26432 return openpty ();
26433   ;
26434   return 0;
26435 }
26436 _ACEOF
26437 rm -f conftest.$ac_objext conftest$ac_exeext
26438 if { (ac_try="$ac_link"
26439 case "(($ac_try" in
26440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26441   *) ac_try_echo=$ac_try;;
26442 esac
26443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26444   (eval "$ac_link") 2>conftest.er1
26445   ac_status=$?
26446   grep -v '^ *+' conftest.er1 >conftest.err
26447   rm -f conftest.er1
26448   cat conftest.err >&5
26449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450   (exit $ac_status); } && {
26451          test -z "$ac_c_werror_flag" ||
26452          test ! -s conftest.err
26453        } && test -s conftest$ac_exeext &&
26454        $as_test_x conftest$ac_exeext; then
26455   ac_cv_lib_util_openpty=yes
26456 else
26457   echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460         ac_cv_lib_util_openpty=no
26461 fi
26462
26463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26464       conftest$ac_exeext conftest.$ac_ext
26465 LIBS=$ac_check_lib_save_LIBS
26466 fi
26467 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26468 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26469 if test $ac_cv_lib_util_openpty = yes; then
26470   cat >>confdefs.h <<_ACEOF
26471 #define HAVE_LIBUTIL 1
26472 _ACEOF
26473
26474   LIBS="-lutil $LIBS"
26475
26476 fi
26477
26478           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26479           LIBS="$saved_LIBS"
26480        else
26481           { echo "$as_me:$LINENO: result: no" >&5
26482 echo "${ECHO_T}no" >&6; }
26483        fi
26484
26485 else
26486
26487        { echo "$as_me:$LINENO: result: no" >&5
26488 echo "${ECHO_T}no" >&6; }
26489
26490
26491 fi
26492
26493
26494
26495
26496 { echo "$as_me:$LINENO: checking for socket" >&5
26497 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26498 if test "${ac_cv_func_socket+set}" = set; then
26499   echo $ECHO_N "(cached) $ECHO_C" >&6
26500 else
26501   cat >conftest.$ac_ext <<_ACEOF
26502 /* confdefs.h.  */
26503 _ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h.  */
26507 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26509 #define socket innocuous_socket
26510
26511 /* System header to define __stub macros and hopefully few prototypes,
26512     which can conflict with char socket (); below.
26513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26514     <limits.h> exists even on freestanding compilers.  */
26515
26516 #ifdef __STDC__
26517 # include <limits.h>
26518 #else
26519 # include <assert.h>
26520 #endif
26521
26522 #undef socket
26523
26524 /* Override any GCC internal prototype to avoid an error.
26525    Use char because int might match the return type of a GCC
26526    builtin and then its argument prototype would still apply.  */
26527 #ifdef __cplusplus
26528 extern "C"
26529 #endif
26530 char socket ();
26531 /* The GNU C library defines this for functions which it implements
26532     to always fail with ENOSYS.  Some functions are actually named
26533     something starting with __ and the normal name is an alias.  */
26534 #if defined __stub_socket || defined __stub___socket
26535 choke me
26536 #endif
26537
26538 int
26539 main ()
26540 {
26541 return socket ();
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_link") 2>conftest.er1
26554   ac_status=$?
26555   grep -v '^ *+' conftest.er1 >conftest.err
26556   rm -f conftest.er1
26557   cat conftest.err >&5
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); } && {
26560          test -z "$ac_c_werror_flag" ||
26561          test ! -s conftest.err
26562        } && test -s conftest$ac_exeext &&
26563        $as_test_x conftest$ac_exeext; then
26564   ac_cv_func_socket=yes
26565 else
26566   echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26568
26569         ac_cv_func_socket=no
26570 fi
26571
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573       conftest$ac_exeext conftest.$ac_ext
26574 fi
26575 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26576 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26577 if test $ac_cv_func_socket = yes; then
26578   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26579 echo "${ECHO_T}using libc's socket" >&6; }
26580 else
26581
26582 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26583 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26584 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26585   echo $ECHO_N "(cached) $ECHO_C" >&6
26586 else
26587   ac_check_lib_save_LIBS=$LIBS
26588 LIBS="-lxnet  $LIBS"
26589 cat >conftest.$ac_ext <<_ACEOF
26590 /* confdefs.h.  */
26591 _ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h.  */
26595
26596 /* Override any GCC internal prototype to avoid an error.
26597    Use char because int might match the return type of a GCC
26598    builtin and then its argument prototype would still apply.  */
26599 #ifdef __cplusplus
26600 extern "C"
26601 #endif
26602 char socket ();
26603 int
26604 main ()
26605 {
26606 return socket ();
26607   ;
26608   return 0;
26609 }
26610 _ACEOF
26611 rm -f conftest.$ac_objext conftest$ac_exeext
26612 if { (ac_try="$ac_link"
26613 case "(($ac_try" in
26614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26615   *) ac_try_echo=$ac_try;;
26616 esac
26617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26618   (eval "$ac_link") 2>conftest.er1
26619   ac_status=$?
26620   grep -v '^ *+' conftest.er1 >conftest.err
26621   rm -f conftest.er1
26622   cat conftest.err >&5
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); } && {
26625          test -z "$ac_c_werror_flag" ||
26626          test ! -s conftest.err
26627        } && test -s conftest$ac_exeext &&
26628        $as_test_x conftest$ac_exeext; then
26629   ac_cv_lib_xnet_socket=yes
26630 else
26631   echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26633
26634         ac_cv_lib_xnet_socket=no
26635 fi
26636
26637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26638       conftest$ac_exeext conftest.$ac_ext
26639 LIBS=$ac_check_lib_save_LIBS
26640 fi
26641 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26642 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26643 if test $ac_cv_lib_xnet_socket = yes; then
26644   cat >>confdefs.h <<_ACEOF
26645 #define HAVE_LIBXNET 1
26646 _ACEOF
26647
26648   LIBS="-lxnet $LIBS"
26649
26650 fi
26651
26652
26653 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26654 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26655 if test "${ac_cv_lib_socket_socket+set}" = set; then
26656   echo $ECHO_N "(cached) $ECHO_C" >&6
26657 else
26658   ac_check_lib_save_LIBS=$LIBS
26659 LIBS="-lsocket  $LIBS"
26660 cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h.  */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h.  */
26666
26667 /* Override any GCC internal prototype to avoid an error.
26668    Use char because int might match the return type of a GCC
26669    builtin and then its argument prototype would still apply.  */
26670 #ifdef __cplusplus
26671 extern "C"
26672 #endif
26673 char socket ();
26674 int
26675 main ()
26676 {
26677 return socket ();
26678   ;
26679   return 0;
26680 }
26681 _ACEOF
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (ac_try="$ac_link"
26684 case "(($ac_try" in
26685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686   *) ac_try_echo=$ac_try;;
26687 esac
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689   (eval "$ac_link") 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } && {
26696          test -z "$ac_c_werror_flag" ||
26697          test ! -s conftest.err
26698        } && test -s conftest$ac_exeext &&
26699        $as_test_x conftest$ac_exeext; then
26700   ac_cv_lib_socket_socket=yes
26701 else
26702   echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26704
26705         ac_cv_lib_socket_socket=no
26706 fi
26707
26708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26709       conftest$ac_exeext conftest.$ac_ext
26710 LIBS=$ac_check_lib_save_LIBS
26711 fi
26712 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26713 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26714 if test $ac_cv_lib_socket_socket = yes; then
26715   cat >>confdefs.h <<_ACEOF
26716 #define HAVE_LIBSOCKET 1
26717 _ACEOF
26718
26719   LIBS="-lsocket $LIBS"
26720
26721 fi
26722
26723
26724 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26725 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26726 if test "${ac_cv_lib_inet_socket+set}" = set; then
26727   echo $ECHO_N "(cached) $ECHO_C" >&6
26728 else
26729   ac_check_lib_save_LIBS=$LIBS
26730 LIBS="-linet  $LIBS"
26731 cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h.  */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h.  */
26737
26738 /* Override any GCC internal prototype to avoid an error.
26739    Use char because int might match the return type of a GCC
26740    builtin and then its argument prototype would still apply.  */
26741 #ifdef __cplusplus
26742 extern "C"
26743 #endif
26744 char socket ();
26745 int
26746 main ()
26747 {
26748 return socket ();
26749   ;
26750   return 0;
26751 }
26752 _ACEOF
26753 rm -f conftest.$ac_objext conftest$ac_exeext
26754 if { (ac_try="$ac_link"
26755 case "(($ac_try" in
26756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757   *) ac_try_echo=$ac_try;;
26758 esac
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760   (eval "$ac_link") 2>conftest.er1
26761   ac_status=$?
26762   grep -v '^ *+' conftest.er1 >conftest.err
26763   rm -f conftest.er1
26764   cat conftest.err >&5
26765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } && {
26767          test -z "$ac_c_werror_flag" ||
26768          test ! -s conftest.err
26769        } && test -s conftest$ac_exeext &&
26770        $as_test_x conftest$ac_exeext; then
26771   ac_cv_lib_inet_socket=yes
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776         ac_cv_lib_inet_socket=no
26777 fi
26778
26779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26780       conftest$ac_exeext conftest.$ac_ext
26781 LIBS=$ac_check_lib_save_LIBS
26782 fi
26783 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26784 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26785 if test $ac_cv_lib_inet_socket = yes; then
26786   cat >>confdefs.h <<_ACEOF
26787 #define HAVE_LIBINET 1
26788 _ACEOF
26789
26790   LIBS="-linet $LIBS"
26791
26792 fi
26793
26794 fi
26795
26796
26797 TCPW_MSG="no"
26798 WRAPLIBS=""
26799
26800 # Check whether --with-tcp-wrappers was given.
26801 if test "${with_tcp_wrappers+set}" = set; then
26802   withval=$with_tcp_wrappers;
26803        if test "x$withval" != "xno" ; then
26804           saved_LIBS="$LIBS"
26805           LIBS="$saved_LIBS -lwrap"
26806           { echo "$as_me:$LINENO: checking for libwrap" >&5
26807 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26808           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26809 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26810 if test "${ac_cv_search_nanosleep+set}" = set; then
26811   echo $ECHO_N "(cached) $ECHO_C" >&6
26812 else
26813   ac_func_search_save_LIBS=$LIBS
26814 cat >conftest.$ac_ext <<_ACEOF
26815 /* confdefs.h.  */
26816 _ACEOF
26817 cat confdefs.h >>conftest.$ac_ext
26818 cat >>conftest.$ac_ext <<_ACEOF
26819 /* end confdefs.h.  */
26820
26821 /* Override any GCC internal prototype to avoid an error.
26822    Use char because int might match the return type of a GCC
26823    builtin and then its argument prototype would still apply.  */
26824 #ifdef __cplusplus
26825 extern "C"
26826 #endif
26827 char nanosleep ();
26828 int
26829 main ()
26830 {
26831 return nanosleep ();
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 for ac_lib in '' rt; do
26837   if test -z "$ac_lib"; then
26838     ac_res="none required"
26839   else
26840     ac_res=-l$ac_lib
26841     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26842   fi
26843   rm -f conftest.$ac_objext conftest$ac_exeext
26844 if { (ac_try="$ac_link"
26845 case "(($ac_try" in
26846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847   *) ac_try_echo=$ac_try;;
26848 esac
26849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26850   (eval "$ac_link") 2>conftest.er1
26851   ac_status=$?
26852   grep -v '^ *+' conftest.er1 >conftest.err
26853   rm -f conftest.er1
26854   cat conftest.err >&5
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); } && {
26857          test -z "$ac_c_werror_flag" ||
26858          test ! -s conftest.err
26859        } && test -s conftest$ac_exeext &&
26860        $as_test_x conftest$ac_exeext; then
26861   ac_cv_search_nanosleep=$ac_res
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866
26867 fi
26868
26869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26870       conftest$ac_exeext
26871   if test "${ac_cv_search_nanosleep+set}" = set; then
26872   break
26873 fi
26874 done
26875 if test "${ac_cv_search_nanosleep+set}" = set; then
26876   :
26877 else
26878   ac_cv_search_nanosleep=no
26879 fi
26880 rm conftest.$ac_ext
26881 LIBS=$ac_func_search_save_LIBS
26882 fi
26883 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26884 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26885 ac_res=$ac_cv_search_nanosleep
26886 if test "$ac_res" != no; then
26887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26888
26889 fi
26890
26891           cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897
26898                #include <sys/types.h>
26899                #include <tcpd.h>
26900                int deny_severity = 0;
26901                int allow_severity = 0;
26902                struct request_info *req;
26903
26904 int
26905 main ()
26906 {
26907
26908                 hosts_access(req);
26909
26910   ;
26911   return 0;
26912 }
26913 _ACEOF
26914 rm -f conftest.$ac_objext conftest$ac_exeext
26915 if { (ac_try="$ac_link"
26916 case "(($ac_try" in
26917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918   *) ac_try_echo=$ac_try;;
26919 esac
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921   (eval "$ac_link") 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } && {
26928          test -z "$ac_c_werror_flag" ||
26929          test ! -s conftest.err
26930        } && test -s conftest$ac_exeext &&
26931        $as_test_x conftest$ac_exeext; then
26932
26933                  { echo "$as_me:$LINENO: result: yes" >&5
26934 echo "${ECHO_T}yes" >&6; }
26935
26936 cat >>confdefs.h <<\_ACEOF
26937 #define HAVE_LIBWRAP 1
26938 _ACEOF
26939
26940                  TCPW_MSG="yes"
26941                  LIBS="$saved_LIBS"
26942                  WRAPLIBS="-lwrap"
26943
26944 else
26945   echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948
26949                  LIBS="$saved_LIBS -lwrap -lnsl"
26950                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26951                  cat >conftest.$ac_ext <<_ACEOF
26952 /* confdefs.h.  */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h.  */
26957
26958                        #include <sys/types.h>
26959                        #include <tcpd.h>
26960                        int deny_severity = 0;
26961                        int allow_severity = 0;
26962                        struct request_info *req;
26963
26964 int
26965 main ()
26966 {
26967
26968                        hosts_access(req);
26969
26970   ;
26971   return 0;
26972 }
26973 _ACEOF
26974 rm -f conftest.$ac_objext conftest$ac_exeext
26975 if { (ac_try="$ac_link"
26976 case "(($ac_try" in
26977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978   *) ac_try_echo=$ac_try;;
26979 esac
26980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981   (eval "$ac_link") 2>conftest.er1
26982   ac_status=$?
26983   grep -v '^ *+' conftest.er1 >conftest.err
26984   rm -f conftest.er1
26985   cat conftest.err >&5
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); } && {
26988          test -z "$ac_c_werror_flag" ||
26989          test ! -s conftest.err
26990        } && test -s conftest$ac_exeext &&
26991        $as_test_x conftest$ac_exeext; then
26992
26993                       { echo "$as_me:$LINENO: result: yes" >&5
26994 echo "${ECHO_T}yes" >&6; }
26995
26996 cat >>confdefs.h <<\_ACEOF
26997 #define HAVE_LIBWRAP 1
26998 _ACEOF
26999
27000                       TCPW_MSG="yes"
27001                       LIBS="$saved_LIBS"
27002                       WRAPLIBS="-lwrap"
27003
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008
27009                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27010 echo "$as_me: error: *** libwrap missing" >&2;}
27011    { (exit 1); exit 1; }; }
27012
27013
27014 fi
27015
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017       conftest$ac_exeext conftest.$ac_ext
27018
27019
27020 fi
27021
27022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27023       conftest$ac_exeext conftest.$ac_ext
27024        fi
27025
27026
27027 fi
27028
27029
27030 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27031 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27032
27033 # Check whether --with-openssl was given.
27034 if test "${with_openssl+set}" = set; then
27035   withval=$with_openssl;
27036         with_openssl_directory=${withval}
27037
27038
27039 fi
27040
27041
27042 if test "x$with_openssl_directory" != "xno"; then
27043    OPENSSL_LIBS="-lssl -lcrypto"
27044    OPENSSL_INC=""
27045
27046    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27047       #
27048       # Make sure the $with_openssl_directory also makes sense
27049       #
27050       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27051          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27052          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27053       fi
27054    fi
27055
27056    saved_LIBS="${LIBS}"
27057    saved_CFLAGS="${CFLAGS}"
27058    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27059    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27060
27061    cat >conftest.$ac_ext <<_ACEOF
27062 /* confdefs.h.  */
27063 _ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h.  */
27067
27068           #include <openssl/ssl.h>
27069
27070 int
27071 main ()
27072 {
27073
27074            CRYPTO_set_id_callback(NULL);
27075
27076   ;
27077   return 0;
27078 }
27079 _ACEOF
27080 rm -f conftest.$ac_objext conftest$ac_exeext
27081 if { (ac_try="$ac_link"
27082 case "(($ac_try" in
27083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084   *) ac_try_echo=$ac_try;;
27085 esac
27086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087   (eval "$ac_link") 2>conftest.er1
27088   ac_status=$?
27089   grep -v '^ *+' conftest.er1 >conftest.err
27090   rm -f conftest.er1
27091   cat conftest.err >&5
27092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093   (exit $ac_status); } && {
27094          test -z "$ac_c_werror_flag" ||
27095          test ! -s conftest.err
27096        } && test -s conftest$ac_exeext &&
27097        $as_test_x conftest$ac_exeext; then
27098
27099           support_tls="yes"
27100           support_crypto="yes"
27101
27102 else
27103   echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27105
27106
27107           support_tls="no"
27108
27109
27110 fi
27111
27112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27113       conftest$ac_exeext conftest.$ac_ext
27114
27115    cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121
27122           #include <openssl/evp.h>
27123
27124 int
27125 main ()
27126 {
27127
27128           EVP_sha512();
27129
27130   ;
27131   return 0;
27132 }
27133 _ACEOF
27134 rm -f conftest.$ac_objext conftest$ac_exeext
27135 if { (ac_try="$ac_link"
27136 case "(($ac_try" in
27137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138   *) ac_try_echo=$ac_try;;
27139 esac
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141   (eval "$ac_link") 2>conftest.er1
27142   ac_status=$?
27143   grep -v '^ *+' conftest.er1 >conftest.err
27144   rm -f conftest.er1
27145   cat conftest.err >&5
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } && {
27148          test -z "$ac_c_werror_flag" ||
27149          test ! -s conftest.err
27150        } && test -s conftest$ac_exeext &&
27151        $as_test_x conftest$ac_exeext; then
27152
27153           ac_cv_openssl_sha2="yes"
27154
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27158
27159
27160           ac_cv_openssl_sha2="no"
27161
27162
27163 fi
27164
27165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27166       conftest$ac_exeext conftest.$ac_ext
27167
27168                cat >conftest.$ac_ext <<_ACEOF
27169 /* confdefs.h.  */
27170 _ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h.  */
27174
27175           #include <openssl/evp.h>
27176
27177 int
27178 main ()
27179 {
27180
27181           EVP_aes_192_cbc();
27182
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (ac_try="$ac_link"
27189 case "(($ac_try" in
27190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191   *) ac_try_echo=$ac_try;;
27192 esac
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194   (eval "$ac_link") 2>conftest.er1
27195   ac_status=$?
27196   grep -v '^ *+' conftest.er1 >conftest.err
27197   rm -f conftest.er1
27198   cat conftest.err >&5
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); } && {
27201          test -z "$ac_c_werror_flag" ||
27202          test ! -s conftest.err
27203        } && test -s conftest$ac_exeext &&
27204        $as_test_x conftest$ac_exeext; then
27205
27206           ac_cv_openssl_export="no"
27207
27208 else
27209   echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212
27213           ac_cv_openssl_export="yes"
27214
27215
27216 fi
27217
27218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27219       conftest$ac_exeext conftest.$ac_ext
27220
27221    LIBS="${saved_LIBS}"
27222    CFLAGS="${saved_CFLAGS}"
27223
27224    if test "$support_tls" = "yes"; then
27225
27226 cat >>confdefs.h <<\_ACEOF
27227 #define HAVE_OPENSSL 1
27228 _ACEOF
27229
27230
27231 cat >>confdefs.h <<\_ACEOF
27232 #define HAVE_TLS 1
27233 _ACEOF
27234
27235
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_CRYPTO 1
27238 _ACEOF
27239
27240    fi
27241
27242    if test "$ac_cv_openssl_sha2" = "yes"; then
27243
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_SHA2 1
27246 _ACEOF
27247
27248    fi
27249
27250    if test "$ac_cv_openssl_export" = "yes"; then
27251
27252 cat >>confdefs.h <<\_ACEOF
27253 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27254 _ACEOF
27255
27256    fi
27257 else
27258    support_tls="no"
27259    support_crypto="no"
27260    OPENSSL_LIBS=""
27261    OPENSSL_INC=""
27262 fi
27263
27264 { echo "$as_me:$LINENO: result: $support_tls" >&5
27265 echo "${ECHO_T}$support_tls" >&6; }
27266
27267
27268
27269 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27270 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27271 if test "${ac_cv_search_dlopen+set}" = set; then
27272   echo $ECHO_N "(cached) $ECHO_C" >&6
27273 else
27274   ac_func_search_save_LIBS=$LIBS
27275 cat >conftest.$ac_ext <<_ACEOF
27276 /* confdefs.h.  */
27277 _ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h.  */
27281
27282 /* Override any GCC internal prototype to avoid an error.
27283    Use char because int might match the return type of a GCC
27284    builtin and then its argument prototype would still apply.  */
27285 #ifdef __cplusplus
27286 extern "C"
27287 #endif
27288 char dlopen ();
27289 int
27290 main ()
27291 {
27292 return dlopen ();
27293   ;
27294   return 0;
27295 }
27296 _ACEOF
27297 for ac_lib in '' dl; do
27298   if test -z "$ac_lib"; then
27299     ac_res="none required"
27300   else
27301     ac_res=-l$ac_lib
27302     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27303   fi
27304   rm -f conftest.$ac_objext conftest$ac_exeext
27305 if { (ac_try="$ac_link"
27306 case "(($ac_try" in
27307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308   *) ac_try_echo=$ac_try;;
27309 esac
27310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311   (eval "$ac_link") 2>conftest.er1
27312   ac_status=$?
27313   grep -v '^ *+' conftest.er1 >conftest.err
27314   rm -f conftest.er1
27315   cat conftest.err >&5
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); } && {
27318          test -z "$ac_c_werror_flag" ||
27319          test ! -s conftest.err
27320        } && test -s conftest$ac_exeext &&
27321        $as_test_x conftest$ac_exeext; then
27322   ac_cv_search_dlopen=$ac_res
27323 else
27324   echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27326
27327
27328 fi
27329
27330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27331       conftest$ac_exeext
27332   if test "${ac_cv_search_dlopen+set}" = set; then
27333   break
27334 fi
27335 done
27336 if test "${ac_cv_search_dlopen+set}" = set; then
27337   :
27338 else
27339   ac_cv_search_dlopen=no
27340 fi
27341 rm conftest.$ac_ext
27342 LIBS=$ac_func_search_save_LIBS
27343 fi
27344 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27345 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27346 ac_res=$ac_cv_search_dlopen
27347 if test "$ac_res" != no; then
27348   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27349
27350 fi
27351
27352
27353 working_dir=`eval echo ${prefix}/var/bacula/working`
27354
27355 # Check whether --with-working-dir was given.
27356 if test "${with_working_dir+set}" = set; then
27357   withval=$with_working_dir;
27358        if test "x$withval" != "xno" ; then
27359          working_dir=$withval
27360        fi
27361
27362
27363 fi
27364
27365
27366
27367
27368 archivedir=/tmp
27369
27370 # Check whether --with-archivedir was given.
27371 if test "${with_archivedir+set}" = set; then
27372   withval=$with_archivedir;
27373        if test "x$withval" != "xno" ; then
27374           archivedir=$withval
27375        fi
27376
27377
27378 fi
27379
27380
27381
27382
27383 basename=`hostname`
27384
27385 # Check whether --with-basename was given.
27386 if test "${with_basename+set}" = set; then
27387   withval=$with_basename;
27388        if test "x$withval" != "xno" ; then
27389           basename=$withval
27390        fi
27391
27392
27393 fi
27394
27395
27396
27397
27398 hostname=`uname -n | cut -d '.' -f 1`
27399 if test x${hostname} = x ; then
27400   hostname="localhost"
27401 fi
27402
27403 # Check whether --with-hostname was given.
27404 if test "${with_hostname+set}" = set; then
27405   withval=$with_hostname;
27406        if test "x$withval" != "xno" ; then
27407          hostname=$withval
27408        fi
27409
27410
27411 fi
27412
27413
27414
27415
27416
27417 scriptdir=`eval echo ${sysconfdir}`
27418
27419 # Check whether --with-scriptdir was given.
27420 if test "${with_scriptdir+set}" = set; then
27421   withval=$with_scriptdir;
27422        if test "x$withval" != "xno" ; then
27423           scriptdir=$withval
27424        fi
27425
27426
27427 fi
27428
27429
27430
27431
27432
27433 bsrdir=/tmp
27434
27435 # Check whether --with-bsrdir was given.
27436 if test "${with_bsrdir+set}" = set; then
27437   withval=$with_bsrdir;
27438        if test "x$withval" != "xno" ; then
27439           bsrdir=$withval
27440        fi
27441
27442
27443 fi
27444
27445
27446
27447
27448 logdir=/tmp
27449
27450 # Check whether --with-logdir was given.
27451 if test "${with_logdir+set}" = set; then
27452   withval=$with_logdir;
27453        if test "x$withval" != "xno" ; then
27454           logdir=$withval
27455        fi
27456
27457
27458 fi
27459
27460
27461
27462
27463
27464 # ------------------------------------------
27465 # Where to place plugindir (plugin files)
27466 # ------------------------------------------
27467 plugindir=`eval echo ${libdir}`
27468
27469 # Check whether --with-plugindir was given.
27470 if test "${with_plugindir+set}" = set; then
27471   withval=$with_plugindir;
27472        if test "x$withval" != "xno" ; then
27473           plugindir=$withval
27474        fi
27475
27476
27477 fi
27478
27479
27480
27481
27482 dump_email=root@localhost
27483
27484 # Check whether --with-dump-email was given.
27485 if test "${with_dump_email+set}" = set; then
27486   withval=$with_dump_email;
27487        if test "x$withval" != "xno" ; then
27488           dump_email=$withval
27489        fi
27490
27491
27492 fi
27493
27494
27495
27496
27497 job_email=root@localhost
27498
27499 # Check whether --with-job-email was given.
27500 if test "${with_job_email+set}" = set; then
27501   withval=$with_job_email;
27502        if test "x$withval" != "xno" ; then
27503           job_email=$withval
27504        fi
27505
27506
27507 fi
27508
27509
27510
27511
27512 smtp_host=localhost
27513
27514 # Check whether --with-smtp_host was given.
27515 if test "${with_smtp_host+set}" = set; then
27516   withval=$with_smtp_host;
27517        if test "x$withval" != "xno" ; then
27518           smtp_host=$withval
27519        fi
27520
27521
27522 fi
27523
27524
27525
27526
27527 piddir=/var/run
27528
27529 # Check whether --with-pid-dir was given.
27530 if test "${with_pid_dir+set}" = set; then
27531   withval=$with_pid_dir;
27532        if test "x$withval" != "xno" ; then
27533           piddir=$withval
27534        fi
27535
27536
27537 fi
27538
27539
27540 cat >>confdefs.h <<_ACEOF
27541 #define _PATH_BACULA_PIDDIR "$piddir"
27542 _ACEOF
27543
27544
27545
27546 subsysdir=/var/run/subsys
27547 if test -d /var/run/subsys; then
27548    subsysdir=/var/run/subsys
27549 elif test -d /var/lock/subsys; then
27550    subsysdir=/var/lock/subsys
27551 else
27552    subsysdir=/var/run/subsys
27553 fi
27554
27555 # Check whether --with-subsys-dir was given.
27556 if test "${with_subsys_dir+set}" = set; then
27557   withval=$with_subsys_dir;
27558        if test "x$withval" != "xno" ; then
27559           subsysdir=$withval
27560        fi
27561
27562
27563 fi
27564
27565
27566
27567
27568 baseport=9101
27569
27570 # Check whether --with-baseport was given.
27571 if test "${with_baseport+set}" = set; then
27572   withval=$with_baseport;
27573        if test "x$withval" != "xno" ; then
27574           baseport=$withval
27575        fi
27576
27577
27578 fi
27579
27580
27581
27582 dir_port=`expr $baseport`
27583 fd_port=`expr $baseport + 1`
27584 sd_port=`expr $fd_port + 1`
27585
27586
27587
27588
27589
27590 dir_password=
27591
27592 # Check whether --with-dir-password was given.
27593 if test "${with_dir_password+set}" = set; then
27594   withval=$with_dir_password;
27595        if test "x$withval" != "xno" ; then
27596           dir_password=$withval
27597        fi
27598
27599
27600 fi
27601
27602
27603 if test "x$dir_password" = "x" ; then
27604    if test "x$OPENSSL" = "xnone" ; then
27605       key=`autoconf/randpass 33`
27606    else
27607       key=`openssl rand -base64 33`
27608    fi
27609    dir_password=$key
27610 fi
27611
27612 fd_password=
27613
27614 # Check whether --with-fd-password was given.
27615 if test "${with_fd_password+set}" = set; then
27616   withval=$with_fd_password;
27617        if test "x$withval" != "xno" ; then
27618           fd_password=$withval
27619        fi
27620
27621
27622 fi
27623
27624
27625 if test "x$fd_password" = "x" ; then
27626    if test "x$OPENSSL" = "xnone" ; then
27627       key=`autoconf/randpass 37`
27628    else
27629       key=`openssl rand -base64 33`
27630    fi
27631    fd_password=$key
27632 fi
27633
27634 sd_password=
27635
27636 # Check whether --with-sd-password was given.
27637 if test "${with_sd_password+set}" = set; then
27638   withval=$with_sd_password;
27639        if test "x$withval" != "xno" ; then
27640           sd_password=$withval
27641        fi
27642
27643
27644 fi
27645
27646
27647 if test "x$sd_password" = "x" ; then
27648    if test "x$OPENSSL" = "xnone" ; then
27649       key=`autoconf/randpass 41`
27650    else
27651       key=`openssl rand -base64 33`
27652    fi
27653    sd_password=$key
27654 fi
27655
27656 mon_dir_password=
27657
27658 # Check whether --with-mon-dir-password was given.
27659 if test "${with_mon_dir_password+set}" = set; then
27660   withval=$with_mon_dir_password;
27661        if test "x$withval" != "xno" ; then
27662           mon_dir_password=$withval
27663        fi
27664
27665
27666 fi
27667
27668
27669 if test "x$mon_dir_password" = "x" ; then
27670    if test "x$OPENSSL" = "xnone" ; then
27671       key=`autoconf/randpass 33`
27672    else
27673       key=`openssl rand -base64 33`
27674    fi
27675    mon_dir_password=$key
27676 fi
27677
27678 mon_fd_password=
27679
27680 # Check whether --with-mon-fd-password was given.
27681 if test "${with_mon_fd_password+set}" = set; then
27682   withval=$with_mon_fd_password;
27683        if test "x$withval" != "xno" ; then
27684           mon_fd_password=$withval
27685        fi
27686
27687
27688 fi
27689
27690
27691 if test "x$mon_fd_password" = "x" ; then
27692    if test "x$OPENSSL" = "xnone" ; then
27693       key=`autoconf/randpass 37`
27694    else
27695       key=`openssl rand -base64 33`
27696    fi
27697    mon_fd_password=$key
27698 fi
27699
27700 mon_sd_password=
27701
27702 # Check whether --with-mon-sd-password was given.
27703 if test "${with_mon_sd_password+set}" = set; then
27704   withval=$with_mon_sd_password;
27705        if test "x$withval" != "xno" ; then
27706           mon_sd_password=$withval
27707        fi
27708
27709
27710 fi
27711
27712
27713 if test "x$mon_sd_password" = "x" ; then
27714    if test "x$OPENSSL" = "xnone" ; then
27715       key=`autoconf/randpass 41`
27716    else
27717       key=`openssl rand -base64 33`
27718    fi
27719    mon_sd_password=$key
27720 fi
27721
27722
27723
27724
27725
27726
27727
27728
27729 db_name=bacula
27730
27731 # Check whether --with-db_name was given.
27732 if test "${with_db_name+set}" = set; then
27733   withval=$with_db_name;
27734        if test "x$withval" != "x" ; then
27735           db_name=$withval
27736        fi
27737
27738
27739 fi
27740
27741
27742
27743 db_user=bacula
27744
27745 # Check whether --with-db_user was given.
27746 if test "${with_db_user+set}" = set; then
27747   withval=$with_db_user;
27748        if test "x$withval" != "x" ; then
27749           db_user=$withval
27750        fi
27751
27752
27753 fi
27754
27755
27756
27757 db_password=
27758
27759 # Check whether --with-db_password was given.
27760 if test "${with_db_password+set}" = set; then
27761   withval=$with_db_password;
27762        if test "x$withval" != "x" ; then
27763           db_password=$withval
27764        fi
27765
27766
27767 fi
27768
27769
27770
27771 db_port=" "
27772
27773 # Check whether --with-db_port was given.
27774 if test "${with_db_port+set}" = set; then
27775   withval=$with_db_port;
27776        if test "x$withval" != "x" ; then
27777           db_port=$withval
27778        fi
27779
27780
27781 fi
27782
27783
27784
27785 #
27786 # Handle users and groups for each daemon
27787 #
27788 dir_user=
27789
27790 # Check whether --with-dir_user was given.
27791 if test "${with_dir_user+set}" = set; then
27792   withval=$with_dir_user;
27793        if test "x$withval" != "x" ; then
27794            dir_user=$withval
27795        fi
27796
27797
27798 fi
27799
27800
27801 dir_group=
27802
27803 # Check whether --with-dir_group was given.
27804 if test "${with_dir_group+set}" = set; then
27805   withval=$with_dir_group;
27806        if test "x$withval" != "x" ; then
27807           dir_group=$withval
27808        fi
27809
27810
27811 fi
27812
27813
27814 sd_user=
27815
27816 # Check whether --with-sd_user was given.
27817 if test "${with_sd_user+set}" = set; then
27818   withval=$with_sd_user;
27819        if test "x$withval" != "x" ; then
27820           sd_user=$withval
27821        fi
27822
27823
27824 fi
27825
27826
27827 sd_group=
27828
27829 # Check whether --with-sd_group was given.
27830 if test "${with_sd_group+set}" = set; then
27831   withval=$with_sd_group;
27832        if test "x$withval" != "x" ; then
27833           sd_group=$withval
27834        fi
27835
27836
27837 fi
27838
27839
27840 fd_user=
27841
27842 # Check whether --with-fd_user was given.
27843 if test "${with_fd_user+set}" = set; then
27844   withval=$with_fd_user;
27845        if test "x$withval" != "x" ; then
27846           fd_user=$withval
27847        fi
27848
27849
27850 fi
27851
27852
27853 fd_group=
27854
27855 # Check whether --with-fd_group was given.
27856 if test "${with_fd_group+set}" = set; then
27857   withval=$with_fd_group;
27858        if test "x$withval" != "x" ; then
27859           fd_group=$withval
27860        fi
27861
27862
27863 fi
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873 SBINPERM=0754
27874
27875 # Check whether --with-sbin-perm was given.
27876 if test "${with_sbin_perm+set}" = set; then
27877   withval=$with_sbin_perm;
27878        if test "x$withval" != "x" ; then
27879           SBINPERM=$withval
27880        fi
27881
27882
27883 fi
27884
27885
27886
27887
27888 SQL_LIB=
27889
27890 db_found=no
27891 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27892 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27893
27894 # Check whether --with-postgresql was given.
27895 if test "${with_postgresql+set}" = set; then
27896   withval=$with_postgresql;
27897   if test "$withval" != "no"; then
27898       if test "$db_found" = "yes"; then
27899           { echo "$as_me:$LINENO: result: error" >&5
27900 echo "${ECHO_T}error" >&6; }
27901           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27902 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27903    { (exit 1); exit 1; }; };
27904       fi
27905       if test "$withval" = "yes"; then
27906           PG_CONFIG=`which pg_config`
27907           if test -n "$PG_CONFIG";then
27908               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27909               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27910               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27911           elif test -f /usr/local/include/libpq-fe.h; then
27912               POSTGRESQL_INCDIR=/usr/local/include
27913               if test -d /usr/local/lib64; then
27914                  POSTGRESQL_LIBDIR=/usr/local/lib64
27915               else
27916                  POSTGRESQL_LIBDIR=/usr/local/lib
27917               fi
27918               POSTGRESQL_BINDIR=/usr/local/bin
27919           elif test -f /usr/include/libpq-fe.h; then
27920               POSTGRESQL_INCDIR=/usr/include
27921               if test -d /usr/lib64; then
27922                  POSTGRESQL_LIBDIR=/usr/lib64
27923               else
27924                  POSTGRESQL_LIBDIR=/usr/lib
27925               fi
27926               POSTGRESQL_BINDIR=/usr/bin
27927           elif test -f /usr/include/pgsql/libpq-fe.h; then
27928               POSTGRESQL_INCDIR=/usr/include/pgsql
27929               if test -d /usr/lib64/pgsql; then
27930                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27931               else
27932                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27933               fi
27934               POSTGRESQL_BINDIR=/usr/bin
27935           elif test -f /usr/include/postgresql/libpq-fe.h; then
27936               POSTGRESQL_INCDIR=/usr/include/postgresql
27937               if test -d /usr/lib64/postgresql; then
27938                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27939               else
27940                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27941               fi
27942               POSTGRESQL_BINDIR=/usr/bin
27943           else
27944               { echo "$as_me:$LINENO: result: no" >&5
27945 echo "${ECHO_T}no" >&6; }
27946               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27947 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27948    { (exit 1); exit 1; }; }
27949           fi
27950       elif test -f $withval/include/libpq-fe.h; then
27951           POSTGRESQL_INCDIR=$withval/include
27952           POSTGRESQL_LIBDIR=$withval/lib
27953           POSTGRESQL_BINDIR=$withval/bin
27954       elif test -f $withval/include/postgresql/libpq-fe.h; then
27955           POSTGRESQL_INCDIR=$withval/include/postgresql
27956      if test -d $withval/lib64; then
27957          POSTGRESQL_LIBDIR=$withval/lib64
27958      else
27959          POSTGRESQL_LIBDIR=$withval/lib
27960      fi
27961           POSTGRESQL_BINDIR=$withval/bin
27962       else
27963           { echo "$as_me:$LINENO: result: no" >&5
27964 echo "${ECHO_T}no" >&6; }
27965           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27966 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27967    { (exit 1); exit 1; }; }
27968       fi
27969       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27970       { echo "$as_me:$LINENO: checking for crypt" >&5
27971 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27972 if test "${ac_cv_func_crypt+set}" = set; then
27973   echo $ECHO_N "(cached) $ECHO_C" >&6
27974 else
27975   cat >conftest.$ac_ext <<_ACEOF
27976 /* confdefs.h.  */
27977 _ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h.  */
27981 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27983 #define crypt innocuous_crypt
27984
27985 /* System header to define __stub macros and hopefully few prototypes,
27986     which can conflict with char crypt (); below.
27987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27988     <limits.h> exists even on freestanding compilers.  */
27989
27990 #ifdef __STDC__
27991 # include <limits.h>
27992 #else
27993 # include <assert.h>
27994 #endif
27995
27996 #undef crypt
27997
27998 /* Override any GCC internal prototype to avoid an error.
27999    Use char because int might match the return type of a GCC
28000    builtin and then its argument prototype would still apply.  */
28001 #ifdef __cplusplus
28002 extern "C"
28003 #endif
28004 char crypt ();
28005 /* The GNU C library defines this for functions which it implements
28006     to always fail with ENOSYS.  Some functions are actually named
28007     something starting with __ and the normal name is an alias.  */
28008 #if defined __stub_crypt || defined __stub___crypt
28009 choke me
28010 #endif
28011
28012 int
28013 main ()
28014 {
28015 return crypt ();
28016   ;
28017   return 0;
28018 }
28019 _ACEOF
28020 rm -f conftest.$ac_objext conftest$ac_exeext
28021 if { (ac_try="$ac_link"
28022 case "(($ac_try" in
28023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024   *) ac_try_echo=$ac_try;;
28025 esac
28026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027   (eval "$ac_link") 2>conftest.er1
28028   ac_status=$?
28029   grep -v '^ *+' conftest.er1 >conftest.err
28030   rm -f conftest.er1
28031   cat conftest.err >&5
28032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); } && {
28034          test -z "$ac_c_werror_flag" ||
28035          test ! -s conftest.err
28036        } && test -s conftest$ac_exeext &&
28037        $as_test_x conftest$ac_exeext; then
28038   ac_cv_func_crypt=yes
28039 else
28040   echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28042
28043         ac_cv_func_crypt=no
28044 fi
28045
28046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28047       conftest$ac_exeext conftest.$ac_ext
28048 fi
28049 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28050 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28051 if test $ac_cv_func_crypt = yes; then
28052   :
28053 else
28054   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28055 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28056 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28057   echo $ECHO_N "(cached) $ECHO_C" >&6
28058 else
28059   ac_check_lib_save_LIBS=$LIBS
28060 LIBS="-lcrypt  $LIBS"
28061 cat >conftest.$ac_ext <<_ACEOF
28062 /* confdefs.h.  */
28063 _ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h.  */
28067
28068 /* Override any GCC internal prototype to avoid an error.
28069    Use char because int might match the return type of a GCC
28070    builtin and then its argument prototype would still apply.  */
28071 #ifdef __cplusplus
28072 extern "C"
28073 #endif
28074 char crypt ();
28075 int
28076 main ()
28077 {
28078 return crypt ();
28079   ;
28080   return 0;
28081 }
28082 _ACEOF
28083 rm -f conftest.$ac_objext conftest$ac_exeext
28084 if { (ac_try="$ac_link"
28085 case "(($ac_try" in
28086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087   *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090   (eval "$ac_link") 2>conftest.er1
28091   ac_status=$?
28092   grep -v '^ *+' conftest.er1 >conftest.err
28093   rm -f conftest.er1
28094   cat conftest.err >&5
28095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096   (exit $ac_status); } && {
28097          test -z "$ac_c_werror_flag" ||
28098          test ! -s conftest.err
28099        } && test -s conftest$ac_exeext &&
28100        $as_test_x conftest$ac_exeext; then
28101   ac_cv_lib_crypt_crypt=yes
28102 else
28103   echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28105
28106         ac_cv_lib_crypt_crypt=no
28107 fi
28108
28109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28110       conftest$ac_exeext conftest.$ac_ext
28111 LIBS=$ac_check_lib_save_LIBS
28112 fi
28113 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28114 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28115 if test $ac_cv_lib_crypt_crypt = yes; then
28116   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28117 fi
28118
28119 fi
28120
28121       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28122       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28123       SQL_BINDIR=$POSTGRESQL_BINDIR
28124       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28125
28126       cat >>confdefs.h <<\_ACEOF
28127 #define HAVE_POSTGRESQL 1
28128 _ACEOF
28129
28130       { echo "$as_me:$LINENO: result: yes" >&5
28131 echo "${ECHO_T}yes" >&6; }
28132       db_found=yes
28133       support_postgresql=yes
28134       db_type=PostgreSQL
28135       DB_TYPE=postgresql
28136   else
28137       { echo "$as_me:$LINENO: result: no" >&5
28138 echo "${ECHO_T}no" >&6; }
28139   fi
28140
28141 else
28142
28143   { echo "$as_me:$LINENO: result: no" >&5
28144 echo "${ECHO_T}no" >&6; }
28145
28146 fi
28147
28148
28149
28150
28151
28152
28153
28154
28155 db_found=no
28156 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28157 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28158
28159 # Check whether --with-mysql was given.
28160 if test "${with_mysql+set}" = set; then
28161   withval=$with_mysql;
28162   if test "$withval" != "no"; then
28163         if test "$withval" = "yes"; then
28164            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28165                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28166                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28167                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28168                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28169                    else
28170                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28171                    fi
28172                    MYSQL_BINDIR=/usr/local/mysql/bin
28173            elif test -f /usr/include/mysql/mysql.h; then
28174                    MYSQL_INCDIR=/usr/include/mysql
28175                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28176                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28177                            MYSQL_LIBDIR=/usr/lib64/mysql
28178                    elif test -f /usr/lib64/libmysqlclient_r.a \
28179                         -o -f /usr/lib64/libmysqlclient_r.so; then
28180                            MYSQL_LIBDIR=/usr/lib64
28181                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28182                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28183                            MYSQL_LIBDIR=/usr/lib/mysql
28184                    else
28185                            MYSQL_LIBDIR=/usr/lib
28186                    fi
28187                    MYSQL_BINDIR=/usr/bin
28188            elif test -f /usr/include/mysql.h; then
28189                    MYSQL_INCDIR=/usr/include
28190                    if test -f /usr/lib64/libmysqlclient_r.a \
28191                         -o -f /usr/lib64/libmysqlclient_r.so; then
28192                            MYSQL_LIBDIR=/usr/lib64
28193                    else
28194                            MYSQL_LIBDIR=/usr/lib
28195                    fi
28196                    MYSQL_BINDIR=/usr/bin
28197            elif test -f /usr/local/include/mysql/mysql.h; then
28198                    MYSQL_INCDIR=/usr/local/include/mysql
28199                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28200                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28201                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28202                    else
28203                            MYSQL_LIBDIR=/usr/local/lib/mysql
28204                    fi
28205                    MYSQL_BINDIR=/usr/local/bin
28206            elif test -f /usr/local/include/mysql.h; then
28207                    MYSQL_INCDIR=/usr/local/include
28208                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28209                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28210                            MYSQL_LIBDIR=/usr/local/lib64
28211                    else
28212                            MYSQL_LIBDIR=/usr/local/lib
28213                    fi
28214                    MYSQL_BINDIR=/usr/local/bin
28215            else
28216               { echo "$as_me:$LINENO: result: no" >&5
28217 echo "${ECHO_T}no" >&6; }
28218               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28219 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28220    { (exit 1); exit 1; }; }
28221            fi
28222         else
28223            if test -f $withval/include/mysql/mysql.h; then
28224               MYSQL_INCDIR=$withval/include/mysql
28225               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28226                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28227                  MYSQL_LIBDIR=$withval/lib64/mysql
28228               elif test -f $withval/lib64/libmysqlclient_r.a \
28229                    -o -f $withval/lib64/libmysqlclient_r.so; then
28230                  MYSQL_LIBDIR=$withval/lib64
28231               elif test -f $withval/lib/libmysqlclient_r.a \
28232                    -o -f $withval/lib/libmysqlclient_r.so; then
28233                  MYSQL_LIBDIR=$withval/lib
28234               else
28235                  MYSQL_LIBDIR=$withval/lib/mysql
28236               fi
28237               MYSQL_BINDIR=$withval/bin
28238            elif test -f $withval/include/mysql.h; then
28239               MYSQL_INCDIR=$withval/include
28240               if test -f $withval/lib64/libmysqlclient_r.a \
28241                    -o -f $withval/lib64/libmysqlclient_r.so; then
28242                  MYSQL_LIBDIR=$withval/lib64
28243               else
28244                  MYSQL_LIBDIR=$withval/lib
28245               fi
28246               MYSQL_BINDIR=$withval/bin
28247            else
28248               { echo "$as_me:$LINENO: result: no" >&5
28249 echo "${ECHO_T}no" >&6; }
28250               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28251 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28252    { (exit 1); exit 1; }; }
28253            fi
28254         fi
28255     SQL_INCLUDE=-I$MYSQL_INCDIR
28256     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28257          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28258        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28259        cat >>confdefs.h <<\_ACEOF
28260 #define HAVE_THREAD_SAFE_MYSQL 1
28261 _ACEOF
28262
28263     fi
28264     SQL_BINDIR=$MYSQL_BINDIR
28265     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28266
28267     cat >>confdefs.h <<\_ACEOF
28268 #define HAVE_MYSQL 1
28269 _ACEOF
28270
28271     { echo "$as_me:$LINENO: result: yes" >&5
28272 echo "${ECHO_T}yes" >&6; }
28273     db_found=yes
28274     support_mysql=yes
28275     db_type=MySQL
28276     DB_TYPE=mysql
28277
28278   else
28279         { echo "$as_me:$LINENO: result: no" >&5
28280 echo "${ECHO_T}no" >&6; }
28281   fi
28282
28283
28284 fi
28285
28286
28287
28288 # Check whether --with-embedded-mysql was given.
28289 if test "${with_embedded_mysql+set}" = set; then
28290   withval=$with_embedded_mysql;
28291   if test "$withval" != "no"; then
28292         if test "$withval" = "yes"; then
28293                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28294                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28295                         if test -d /usr/local/mysql/lib64/mysql; then
28296                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28297                         else
28298                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28299                         fi
28300                         MYSQL_BINDIR=/usr/local/mysql/bin
28301                 elif test -f /usr/include/mysql/mysql.h; then
28302                         MYSQL_INCDIR=/usr/include/mysql
28303                         if test -d /usr/lib64/mysql; then
28304                                 MYSQL_LIBDIR=/usr/lib64/mysql
28305                         else
28306                                 MYSQL_LIBDIR=/usr/lib/mysql
28307                         fi
28308                         MYSQL_BINDIR=/usr/bin
28309                 elif test -f /usr/include/mysql.h; then
28310                         MYSQL_INCDIR=/usr/include
28311                         if test -d /usr/lib64; then
28312                                 MYSQL_LIBDIR=/usr/lib64
28313                         else
28314                                 MYSQL_LIBDIR=/usr/lib
28315                         fi
28316                         MYSQL_BINDIR=/usr/bin
28317                 elif test -f /usr/local/include/mysql/mysql.h; then
28318                         MYSQL_INCDIR=/usr/local/include/mysql
28319                         if test -d /usr/local/lib64/mysql; then
28320                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28321                         else
28322                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28323                         fi
28324                         MYSQL_BINDIR=/usr/local/bin
28325                 elif test -f /usr/local/include/mysql.h; then
28326                         MYSQL_INCDIR=/usr/local/include
28327                         if test -d /usr/local/lib64; then
28328                                 MYSQL_LIBDIR=/usr/local/lib64
28329                         else
28330                                 MYSQL_LIBDIR=/usr/local/lib
28331                         fi
28332                         MYSQL_BINDIR=/usr/local/bin
28333                 else
28334                    { echo "$as_me:$LINENO: result: no" >&5
28335 echo "${ECHO_T}no" >&6; }
28336                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28337 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28338    { (exit 1); exit 1; }; }
28339                 fi
28340         else
28341                 if test -f $withval/include/mysql/mysql.h; then
28342                         MYSQL_INCDIR=$withval/include/mysql
28343                         if test -d $withval/lib64/mysql; then
28344                                 MYSQL_LIBDIR=$withval/lib64/mysql
28345                         else
28346                                 MYSQL_LIBDIR=$withval/lib/mysql
28347                         fi
28348                         MYSQL_BINDIR=$withval/bin
28349                 elif test -f $withval/include/mysql.h; then
28350                         MYSQL_INCDIR=$withval/include
28351                         if test -d $withval/lib64; then
28352                                 MYSQL_LIBDIR=$withval/lib64
28353                         else
28354                                 MYSQL_LIBDIR=$withval/lib
28355                         fi
28356                         MYSQL_BINDIR=$withval/bin
28357                 else
28358                    { echo "$as_me:$LINENO: result: no" >&5
28359 echo "${ECHO_T}no" >&6; }
28360                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28361 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28362    { (exit 1); exit 1; }; }
28363                 fi
28364         fi
28365     SQL_INCLUDE=-I$MYSQL_INCDIR
28366     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28367     SQL_BINDIR=$MYSQL_BINDIR
28368     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28369
28370     cat >>confdefs.h <<\_ACEOF
28371 #define HAVE_MYSQL 1
28372 _ACEOF
28373
28374     cat >>confdefs.h <<\_ACEOF
28375 #define HAVE_EMBEDDED_MYSQL 1
28376 _ACEOF
28377
28378     { echo "$as_me:$LINENO: result: yes" >&5
28379 echo "${ECHO_T}yes" >&6; }
28380     db_found=yes
28381     support_mysql=yes
28382     db_type=MySQL
28383     DB_TYPE=mysql
28384
28385   else
28386         { echo "$as_me:$LINENO: result: no" >&5
28387 echo "${ECHO_T}no" >&6; }
28388   fi
28389
28390
28391 fi
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402 db_found=no
28403 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28404 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28405
28406 # Check whether --with-sqlite3 was given.
28407 if test "${with_sqlite3+set}" = set; then
28408   withval=$with_sqlite3;
28409   if test "$withval" != "no"; then
28410      if test "$withval" = "yes"; then
28411         if test -f /usr/local/include/sqlite3.h; then
28412            SQLITE_INCDIR=/usr/local/include
28413            if test -d /usr/local/lib64; then
28414               SQLITE_LIBDIR=/usr/local/lib64
28415            else
28416               SQLITE_LIBDIR=/usr/local/lib
28417            fi
28418            SQLITE_BINDIR=/usr/local/bin
28419         elif test -f /usr/include/sqlite3.h; then
28420            SQLITE_INCDIR=/usr/include
28421            if test -d /usr/lib64; then
28422               SQLITE_LIBDIR=/usr/lib64
28423            else
28424               SQLITE_LIBDIR=/usr/lib
28425            fi
28426            SQLITE_BINDIR=/usr/bin
28427         elif test -f $prefix/include/sqlite3.h; then
28428            SQLITE_INCDIR=$prefix/include
28429            if test -d $prefix/lib64; then
28430               SQLITE_LIBDIR=$prefix/lib64
28431            else
28432               SQLITE_LIBDIR=$prefix/lib
28433            fi
28434            SQLITE_BINDIR=$prefix/bin
28435         else
28436            { echo "$as_me:$LINENO: result: no" >&5
28437 echo "${ECHO_T}no" >&6; }
28438            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28439 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28440    { (exit 1); exit 1; }; }
28441         fi
28442      else
28443         if test -f $withval/sqlite3.h; then
28444            SQLITE_INCDIR=$withval
28445            SQLITE_LIBDIR=$withval
28446            SQLITE_BINDIR=$withval
28447         elif test -f $withval/include/sqlite3.h; then
28448            SQLITE_INCDIR=$withval/include
28449            if test -d $withval/lib64; then
28450               SQLITE_LIBDIR=$withval/lib64
28451            else
28452               SQLITE_LIBDIR=$withval/lib
28453            fi
28454            SQLITE_BINDIR=$withval/bin
28455         else
28456            { echo "$as_me:$LINENO: result: no" >&5
28457 echo "${ECHO_T}no" >&6; }
28458            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28459 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28460    { (exit 1); exit 1; }; }
28461         fi
28462      fi
28463      SQL_INCLUDE=-I$SQLITE_INCDIR
28464      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28465      SQL_BINDIR=$SQLITE_BINDIR
28466      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28467
28468      cat >>confdefs.h <<\_ACEOF
28469 #define HAVE_SQLITE3 1
28470 _ACEOF
28471
28472      { echo "$as_me:$LINENO: result: yes" >&5
28473 echo "${ECHO_T}yes" >&6; }
28474      db_found=yes
28475      support_sqlite3=yes
28476      db_type=SQLite3
28477      DB_TYPE=sqlite3
28478
28479   else
28480      { echo "$as_me:$LINENO: result: no" >&5
28481 echo "${ECHO_T}no" >&6; }
28482   fi
28483
28484 else
28485
28486   { echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6; }
28488
28489 fi
28490
28491
28492
28493
28494
28495
28496
28497
28498 db_found=no
28499 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28500 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28501
28502 # Check whether --with-sqlite was given.
28503 if test "${with_sqlite+set}" = set; then
28504   withval=$with_sqlite;
28505   if test "$withval" != "no"; then
28506      if test "$withval" = "yes"; then
28507         if test -f /usr/local/include/sqlite.h; then
28508            SQLITE_INCDIR=/usr/local/include
28509            if test -d /usr/local/lib64; then
28510               SQLITE_LIBDIR=/usr/local/lib64
28511            else
28512               SQLITE_LIBDIR=/usr/local/lib
28513            fi
28514            SQLITE_BINDIR=/usr/local/bin
28515         elif test -f /usr/include/sqlite.h; then
28516            SQLITE_INCDIR=/usr/include
28517            if test -d /usr/lib64; then
28518               SQLITE_LIBDIR=/usr/lib64
28519            else
28520               SQLITE_LIBDIR=/usr/lib
28521            fi
28522            SQLITE_BINDIR=/usr/bin
28523         elif test -f $prefix/include/sqlite.h; then
28524            SQLITE_INCDIR=$prefix/include
28525            if test -d $prefix/lib64; then
28526               SQLITE_LIBDIR=$prefix/lib64
28527            else
28528               SQLITE_LIBDIR=$prefix/lib
28529            fi
28530            SQLITE_BINDIR=$prefix/bin
28531         else
28532            { echo "$as_me:$LINENO: result: no" >&5
28533 echo "${ECHO_T}no" >&6; }
28534            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28535 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28536    { (exit 1); exit 1; }; }
28537         fi
28538      else
28539         if test -f $withval/sqlite.h; then
28540            SQLITE_INCDIR=$withval
28541            SQLITE_LIBDIR=$withval
28542            SQLITE_BINDIR=$withval
28543         elif test -f $withval/include/sqlite.h; then
28544            SQLITE_INCDIR=$withval/include
28545            if test -d $withval/lib64; then
28546               SQLITE_LIBDIR=$withval/lib64
28547            else
28548               SQLITE_LIBDIR=$withval/lib
28549            fi
28550            SQLITE_BINDIR=$withval/bin
28551         else
28552            { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28554            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28555 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28556    { (exit 1); exit 1; }; }
28557         fi
28558      fi
28559      SQL_INCLUDE=-I$SQLITE_INCDIR
28560      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28561      SQL_BINDIR=$SQLITE_BINDIR
28562      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28563
28564      cat >>confdefs.h <<\_ACEOF
28565 #define HAVE_SQLITE 1
28566 _ACEOF
28567
28568      { echo "$as_me:$LINENO: result: yes" >&5
28569 echo "${ECHO_T}yes" >&6; }
28570      db_found=yes
28571      support_sqlite=yes
28572      db_type=SQLite
28573      DB_TYPE=sqlite
28574
28575   else
28576      { echo "$as_me:$LINENO: result: no" >&5
28577 echo "${ECHO_T}no" >&6; }
28578   fi
28579
28580 else
28581
28582   { echo "$as_me:$LINENO: result: no" >&5
28583 echo "${ECHO_T}no" >&6; }
28584
28585 fi
28586
28587
28588
28589
28590
28591
28592
28593
28594 db_found=no
28595 { echo "$as_me:$LINENO: checking for DBI support" >&5
28596 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28597
28598 # Check whether --with-dbi was given.
28599 if test "${with_dbi+set}" = set; then
28600   withval=$with_dbi;
28601   if test "$withval" != "no"; then
28602      if test "$withval" = "yes"; then
28603         if test -f /usr/local/include/dbi/dbi.h; then
28604            DBI_INCDIR=/usr/local/dbi/include
28605            if test -d /usr/local/lib64; then
28606               DBI_LIBDIR=/usr/local/lib64
28607            else
28608               DBI_LIBDIR=/usr/local/lib
28609            fi
28610            DBI_BINDIR=/usr/local/bin
28611         elif test -f /usr/include/dbi/dbi.h; then
28612            DBI_INCDIR=/usr/include
28613            if test -d /usr/lib64; then
28614               DBI_LIBDIR=/usr/lib64
28615            else
28616               DBI_LIBDIR=/usr/lib
28617            fi
28618            DBI_BINDIR=/usr/bin
28619         elif test -f $prefix/include/dbi/dbi.h; then
28620            DBI_INCDIR=$prefix/include
28621            if test -d $prefix/lib64; then
28622               DBI_LIBDIR=$prefix/lib64
28623            else
28624               DBI_LIBDIR=$prefix/lib
28625            fi
28626            DBI_BINDIR=$prefix/bin
28627         else
28628            { echo "$as_me:$LINENO: result: no" >&5
28629 echo "${ECHO_T}no" >&6; }
28630            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28631 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28632    { (exit 1); exit 1; }; }
28633         fi
28634         if test -d /usr/local/lib/dbd; then
28635            DRIVERDIR=/usr/local/lib/dbd
28636            if test -d /usr/local/lib64/dbd; then
28637               DRIVERDIR=/usr/local/lib64/dbd
28638            else
28639               DRIVERDIR=/usr/local/lib/dbd
28640            fi
28641         elif test -d /usr/lib/dbd; then
28642            DRIVERDIR=/usr/lib/dbd
28643            if test -d /usr/lib64/dbd; then
28644               DRIVERDIR=/usr/lib64/dbd
28645            else
28646               DRIVERDIR=/usr/lib/dbd
28647            fi
28648         elif test -d $prefix/lib/dbd; then
28649            if test -d $prefix/lib64/dbd; then
28650               DRIVERDIR=$prefix/lib64/dbd
28651            else
28652               DRIVERDIR=$prefix/lib/dbd
28653            fi
28654         else
28655            { echo "$as_me:$LINENO: result: no" >&5
28656 echo "${ECHO_T}no" >&6; }
28657            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28658 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28659    { (exit 1); exit 1; }; }
28660         fi
28661      else
28662         if test -f $withval/dbi.h; then
28663            DBI_INCDIR=$withval
28664            DBI_LIBDIR=$withval
28665            DBI_BINDIR=$withval
28666         elif test -f $withval/include/dbi/dbi.h; then
28667            DBI_INCDIR=$withval/include
28668            if test -d $withval/lib64; then
28669               DBI_LIBDIR=$withval/lib64
28670            else
28671               DBI_LIBDIR=$withval/lib
28672            fi
28673            DBI_BINDIR=$withval/bin
28674         else
28675            { echo "$as_me:$LINENO: result: no" >&5
28676 echo "${ECHO_T}no" >&6; }
28677            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28678 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28679    { (exit 1); exit 1; }; }
28680         fi
28681         if test -d $withval/dbd; then
28682            DRIVERDIR=$withval/dbd
28683         elif test -d $withval/lib/; then
28684            if test -d $withval/lib64/dbd; then
28685               DRIVERDIR=$withval/lib64/dbd
28686            else
28687               DRIVERDIR=$withval/lib/dbd
28688            fi
28689         else
28690            { echo "$as_me:$LINENO: result: no" >&5
28691 echo "${ECHO_T}no" >&6; }
28692            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28693 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28694    { (exit 1); exit 1; }; }
28695         fi
28696      fi
28697      SQL_INCLUDE=-I$DBI_INCDIR
28698      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28699      SQL_BINDIR=$DBI_BINDIR
28700      SQL_LIB=$DBI_LIBDIR/libdbi.a
28701      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28702
28703
28704 cat >>confdefs.h <<\_ACEOF
28705 #define HAVE_DBI 1
28706 _ACEOF
28707
28708      { echo "$as_me:$LINENO: result: yes" >&5
28709 echo "${ECHO_T}yes" >&6; }
28710      db_found=yes
28711      support_dbi=yes
28712      db_type=DBI
28713      DB_TYPE=dbi
28714      uncomment_dbi=" "
28715
28716   else
28717      { echo "$as_me:$LINENO: result: no" >&5
28718 echo "${ECHO_T}no" >&6; }
28719   fi
28720
28721 else
28722
28723   { echo "$as_me:$LINENO: result: no" >&5
28724 echo "${ECHO_T}no" >&6; }
28725
28726 fi
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737 db_found=no
28738 db_prog=no
28739 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28740 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28741
28742 # Check whether --with-dbi-driver was given.
28743 if test "${with_dbi_driver+set}" = set; then
28744   withval=$with_dbi_driver;
28745   if test "$withval" != "no"; then
28746      case $withval in
28747         "mysql")
28748            db_prog="mysql"
28749            if test -f /usr/local/mysql/bin/mysql; then
28750               SQL_BINDIR=/usr/local/mysql/bin
28751               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28752                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28753                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28754               else
28755                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28756               fi
28757            elif test -f /usr/bin/mysql; then
28758               SQL_BINDIR=/usr/bin
28759               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28760                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28761                   SQL_LIBDIR=/usr/lib64/mysql
28762               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28763                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28764                   SQL_LIBDIR=/usr/lib/mysql
28765               else
28766                   SQL_LIBDIR=/usr/lib
28767               fi
28768            elif test -f /usr/local/bin/mysql; then
28769               SQL_BINDIR=/usr/local/bin
28770               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28771                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28772                   SQL_LIBDIR=/usr/local/lib64/mysql
28773               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28774                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28775                   SQL_LIBDIR=/usr/local/lib/mysql
28776               else
28777                   SQL_LIBDIR=/usr/local/lib
28778               fi
28779            elif test -f $withval/bin/mysql; then
28780               SQL_BINDIR=$withval/bin
28781               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28782                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28783                   SQL_LIBDIR=$withval/lib64/mysql
28784               elif test -f $withval/lib64/libmysqlclient_r.a \
28785                   -o -f $withval/lib64/libmysqlclient_r.so; then
28786                   SQL_LIBDIR=$withval/lib64
28787               elif test -f $withval/lib/libmysqlclient_r.a \
28788                   -o -f $withval/lib/libmysqlclient_r.so; then
28789                   SQL_LIBDIR=$withval/lib/
28790               else
28791                   SQL_LIBDIR=$withval/lib/mysql
28792               fi
28793            else
28794               { echo "$as_me:$LINENO: result: no" >&5
28795 echo "${ECHO_T}no" >&6; }
28796               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28797 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28798    { (exit 1); exit 1; }; }
28799            fi
28800            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28801               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28802            else
28803               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28804            fi
28805         ;;
28806         "postgresql")
28807            db_prog="postgresql"
28808            PG_CONFIG=`which pg_config`
28809            if test -n "$PG_CONFIG"; then
28810               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28811               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28812            elif test -f /usr/local/bin/psql; then
28813               SQL_BINDIR=/usr/local/bin
28814               if test -d /usr/local/lib64; then
28815                  SQL_LIBDIR=/usr/local/lib64
28816               else
28817                  SQL_LIBDIR=/usr/local/lib
28818               fi
28819            elif test -f /usr/bin/psql; then
28820               SQL_BINDIR=/usr/local/bin
28821               if test -d /usr/lib64/postgresql; then
28822                  SQL_LIBDIR=/usr/lib64/postgresql
28823               elif test -d /usr/lib/postgresql; then
28824                  SQL_LIBDIR=/usr/lib/postgresql
28825               elif test -d /usr/lib64; then
28826                  SQL_LIBDIR=/usr/lib64
28827               else
28828                  SQL_LIBDIR=/usr/lib
28829               fi
28830            elif test -f $withval/bin/psql; then
28831               SQL_BINDIR=$withval/bin
28832               if test -d $withval/lib64; then
28833                  SQL_LIBDIR=$withval/lib64
28834               else
28835                  SQL_LIBDIR=$withval/lib
28836               fi
28837            else
28838               { echo "$as_me:$LINENO: result: no" >&5
28839 echo "${ECHO_T}no" >&6; }
28840               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28841 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28842    { (exit 1); exit 1; }; }
28843            fi
28844            if test -f $SQL_LIBDIR/libpq.so; then
28845               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28846            else
28847               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28848            fi
28849         ;;
28850         "sqlite")
28851            db_prog="sqlite"
28852            if test -f /usr/local/bin/sqlite; then
28853               SQL_BINDIR=/usr/local/bin
28854               if test -d /usr/local/lib64; then
28855                  SQL_LIBDIR=/usr/local/lib64
28856               else
28857                  SQL_LIBDIR=/usr/local/lib
28858               fi
28859            elif test -f /usr/bin/sqlite; then
28860               SQL_BINDIR=/usr/bin
28861               if test -d /usr/lib64; then
28862                  SQL_LIBDIR=/usr/lib64
28863               else
28864                  SQL_LIBDIR=/usr/lib
28865               fi
28866            elif test -f $withval/bin/sqlite; then
28867               SQL_BINDIR=$withval/bin
28868               if test -d $withval/lib64; then
28869                  SQL_LIBDIR=$withval/lib64
28870               else
28871                  SQL_LIBDIR=$withval/lib
28872               fi
28873            else
28874               { echo "$as_me:$LINENO: result: no" >&5
28875 echo "${ECHO_T}no" >&6; }
28876               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28877 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28878    { (exit 1); exit 1; }; }
28879            fi
28880            if test -f $SQL_LIBDIR/libsqlite.so; then
28881               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28882            else
28883               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28884            fi
28885         ;;
28886         "sqlite3")
28887            db_prog="sqlite3"
28888            if test -f /usr/local/bin/sqlite3; then
28889               SQL_BINDIR=/usr/local/bin
28890               if test -d /usr/local/lib64; then
28891                  SQL_LIBDIR=/usr/local/lib64
28892               else
28893                  SQL_LIBDIR=/usr/local/lib
28894               fi
28895            elif test -f /usr/bin/sqlite3; then
28896               SQL_BINDIR=/usr/bin
28897               if test -d /usr/lib64; then
28898                  SQL_LIBDIR=/usr/lib64
28899               else
28900                  SQL_LIBDIR=/usr/lib
28901               fi
28902            elif test -f $withval/bin/sqlite3; then
28903               SQL_BINDIR=$withval/bin
28904               if test -d $withval/lib64; then
28905                  SQL_LIBDIR=$withval/lib64
28906               else
28907                  SQL_LIBDIR=$withval/lib
28908               fi
28909            else
28910               { echo "$as_me:$LINENO: result: no" >&5
28911 echo "${ECHO_T}no" >&6; }
28912               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28913 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28914    { (exit 1); exit 1; }; }
28915            fi
28916            if test -f $SQL_LIBDIR/libsqlite3.so; then
28917               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28918            else
28919               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28920            fi
28921         ;;
28922         *)
28923            { echo "$as_me:$LINENO: result: no" >&5
28924 echo "${ECHO_T}no" >&6; }
28925            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28926 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28927    { (exit 1); exit 1; }; }
28928         ;;
28929      esac
28930
28931      { echo "$as_me:$LINENO: result: yes" >&5
28932 echo "${ECHO_T}yes" >&6; }
28933      DB_PROG=$db_prog
28934   else
28935      { echo "$as_me:$LINENO: result: no" >&5
28936 echo "${ECHO_T}no" >&6; }
28937   fi
28938
28939 else
28940
28941   { echo "$as_me:$LINENO: result: no" >&5
28942 echo "${ECHO_T}no" >&6; }
28943
28944 fi
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955 support_batch_insert=no
28956 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28957 pkg=$?
28958 if test $pkg = 0; then
28959    support_batch_insert=yes
28960    # Check whether --enable-batch-insert was given.
28961 if test "${enable_batch_insert+set}" = set; then
28962   enableval=$enable_batch_insert;
28963           if test x$enableval = xno; then
28964              support_batch_insert=no
28965           else
28966              support_batch_insert=yes
28967           fi
28968
28969
28970 fi
28971
28972 fi
28973
28974 if test x$DB_TYPE = xpostgresql; then
28975    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28976    pkg=$?
28977    if test $pkg != 0; then
28978       support_batch_insert=no
28979    fi
28980 fi
28981
28982 if test x$DB_TYPE = xdbi; then
28983    DB_TYPE=$DB_PROG
28984    db_type=$DB_PROG
28985    pkg=1
28986       if test $DB_PROG = postgresql; then
28987       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28988       pkg=$?
28989    fi
28990
28991    if test $DB_PROG = mysql; then
28992       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28993       pkg=$?
28994    fi
28995
28996    if test $DB_PROG = sqlite3; then
28997       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28998       pkg=$?
28999    fi
29000
29001    if test $pkg = 0; then
29002       # Check whether --enable-batch-insert was given.
29003 if test "${enable_batch_insert+set}" = set; then
29004   enableval=$enable_batch_insert;
29005              if test x$enableval = xno; then
29006                 support_batch_insert=no
29007              else
29008                 support_batch_insert=yes
29009              fi
29010
29011
29012 fi
29013
29014    fi
29015 else
29016       uncomment_dbi="#"
29017 fi
29018
29019
29020
29021 if test $support_batch_insert = yes ; then
29022
29023 cat >>confdefs.h <<\_ACEOF
29024 #define HAVE_BATCH_FILE_INSERT 1
29025 _ACEOF
29026
29027 fi
29028
29029 cat >>confdefs.h <<\_ACEOF
29030 #define PROTOTYPES 1
29031 _ACEOF
29032
29033
29034 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29035    if test -z "$CCOPTS"; then
29036       CCOPTS='-g -O2 -Wall'
29037    fi
29038    CFLAGS="$CCOPTS"
29039 fi
29040
29041
29042
29043 largefile_support="no"
29044
29045    # Check whether --enable-largefile was given.
29046 if test "${enable_largefile+set}" = set; then
29047   enableval=$enable_largefile;
29048 fi
29049
29050    if test "$enable_largefile" != no; then
29051      if test -n "$ac_tool_prefix"; then
29052   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29053 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29056 if test "${ac_cv_prog_GETCONF+set}" = set; then
29057   echo $ECHO_N "(cached) $ECHO_C" >&6
29058 else
29059   if test -n "$GETCONF"; then
29060   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29061 else
29062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29063 for as_dir in $PATH
29064 do
29065   IFS=$as_save_IFS
29066   test -z "$as_dir" && as_dir=.
29067   for ac_exec_ext in '' $ac_executable_extensions; do
29068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29069     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29071     break 2
29072   fi
29073 done
29074 done
29075 IFS=$as_save_IFS
29076
29077 fi
29078 fi
29079 GETCONF=$ac_cv_prog_GETCONF
29080 if test -n "$GETCONF"; then
29081   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29082 echo "${ECHO_T}$GETCONF" >&6; }
29083 else
29084   { echo "$as_me:$LINENO: result: no" >&5
29085 echo "${ECHO_T}no" >&6; }
29086 fi
29087
29088
29089 fi
29090 if test -z "$ac_cv_prog_GETCONF"; then
29091   ac_ct_GETCONF=$GETCONF
29092   # Extract the first word of "getconf", so it can be a program name with args.
29093 set dummy getconf; ac_word=$2
29094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29096 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29097   echo $ECHO_N "(cached) $ECHO_C" >&6
29098 else
29099   if test -n "$ac_ct_GETCONF"; then
29100   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29101 else
29102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29103 for as_dir in $PATH
29104 do
29105   IFS=$as_save_IFS
29106   test -z "$as_dir" && as_dir=.
29107   for ac_exec_ext in '' $ac_executable_extensions; do
29108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29109     ac_cv_prog_ac_ct_GETCONF="getconf"
29110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29111     break 2
29112   fi
29113 done
29114 done
29115 IFS=$as_save_IFS
29116
29117 fi
29118 fi
29119 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29120 if test -n "$ac_ct_GETCONF"; then
29121   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29122 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29123 else
29124   { echo "$as_me:$LINENO: result: no" >&5
29125 echo "${ECHO_T}no" >&6; }
29126 fi
29127
29128   if test "x$ac_ct_GETCONF" = x; then
29129     GETCONF=""
29130   else
29131     case $cross_compiling:$ac_tool_warned in
29132 yes:)
29133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29134 whose name does not start with the host triplet.  If you think this
29135 configuration is useful to you, please write to autoconf@gnu.org." >&5
29136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29137 whose name does not start with the host triplet.  If you think this
29138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29139 ac_tool_warned=yes ;;
29140 esac
29141     GETCONF=$ac_ct_GETCONF
29142   fi
29143 else
29144   GETCONF="$ac_cv_prog_GETCONF"
29145 fi
29146
29147      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29148 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29149 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29150   echo $ECHO_N "(cached) $ECHO_C" >&6
29151 else
29152   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29153         ac_cv_sys_largefile_CFLAGS=no
29154         case "$host_os" in
29155            # IRIX 6.2 and later require cc -n32.
29156            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29157              if test "$GCC" != yes; then
29158                ac_cv_sys_largefile_CFLAGS=-n32
29159              fi
29160              ac_save_CC="$CC"
29161              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29162              cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h.  */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h.  */
29168
29169 int
29170 main ()
29171 {
29172
29173   ;
29174   return 0;
29175 }
29176 _ACEOF
29177 rm -f conftest.$ac_objext conftest$ac_exeext
29178 if { (ac_try="$ac_link"
29179 case "(($ac_try" in
29180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181   *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184   (eval "$ac_link") 2>conftest.er1
29185   ac_status=$?
29186   grep -v '^ *+' conftest.er1 >conftest.err
29187   rm -f conftest.er1
29188   cat conftest.err >&5
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); } && {
29191          test -z "$ac_c_werror_flag" ||
29192          test ! -s conftest.err
29193        } && test -s conftest$ac_exeext &&
29194        $as_test_x conftest$ac_exeext; then
29195   :
29196 else
29197   echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29199
29200         ac_cv_sys_largefile_CFLAGS=no
29201 fi
29202
29203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29204       conftest$ac_exeext conftest.$ac_ext
29205              CC="$ac_save_CC"
29206            esac
29207       }
29208 fi
29209 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29210 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29211      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29212 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29213 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29214   echo $ECHO_N "(cached) $ECHO_C" >&6
29215 else
29216   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29217         ac_cv_sys_largefile_LDFLAGS=no
29218
29219       }
29220 fi
29221 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29222 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29223      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29224 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29225 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29226   echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29228   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29229         ac_cv_sys_largefile_LIBS=no
29230
29231       }
29232 fi
29233 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29234 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29235
29236      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29237        case "$ac_flag" in
29238        no) ;;
29239        -D_FILE_OFFSET_BITS=*) ;;
29240        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29241        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29242        -D?* | -I?*)
29243          case "$ac_flag" in
29244    no) ;;
29245    ?*)
29246      case "$CPPFLAGS" in
29247      '') CPPFLAGS="$ac_flag" ;;
29248      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29249      esac ;;
29250    esac ;;
29251        *)
29252          case "$ac_flag" in
29253    no) ;;
29254    ?*)
29255      case "$CFLAGS" in
29256      '') CFLAGS="$ac_flag" ;;
29257      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29258      esac ;;
29259    esac ;;
29260        esac
29261      done
29262      case "$ac_cv_sys_largefile_LDFLAGS" in
29263    no) ;;
29264    ?*)
29265      case "$LDFLAGS" in
29266      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29267      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29268      esac ;;
29269    esac
29270      case "$ac_cv_sys_largefile_LIBS" in
29271    no) ;;
29272    ?*)
29273      case "$LIBS" in
29274      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29275      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29276      esac ;;
29277    esac
29278      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29279 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29280 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283   ac_cv_sys_file_offset_bits=no
29284       ac_cv_sys_file_offset_bits=64
29285       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29286         case "$ac_flag" in
29287         -D_FILE_OFFSET_BITS)
29288           ac_cv_sys_file_offset_bits=1 ;;
29289         -D_FILE_OFFSET_BITS=*)
29290           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29291         esac
29292       done
29293
29294 fi
29295 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29296 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29297    if test "$ac_cv_sys_file_offset_bits" != no; then
29298
29299 cat >>confdefs.h <<_ACEOF
29300 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29301 _ACEOF
29302
29303    fi
29304      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29305 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29306 if test "${ac_cv_sys_largefile_source+set}" = set; then
29307   echo $ECHO_N "(cached) $ECHO_C" >&6
29308 else
29309   ac_cv_sys_largefile_source=no
29310       ac_cv_sys_largefile_source=1
29311       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29312         case "$ac_flag" in
29313         -D_LARGEFILE_SOURCE)
29314           ac_cv_sys_largefile_source=1 ;;
29315         -D_LARGEFILE_SOURCE=*)
29316           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29317         esac
29318       done
29319
29320 fi
29321 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29322 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29323    if test "$ac_cv_sys_largefile_source" != no; then
29324
29325 cat >>confdefs.h <<_ACEOF
29326 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29327 _ACEOF
29328
29329    fi
29330      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29331 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29332 if test "${ac_cv_sys_large_files+set}" = set; then
29333   echo $ECHO_N "(cached) $ECHO_C" >&6
29334 else
29335   ac_cv_sys_large_files=no
29336       ac_cv_sys_large_files=1
29337       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29338         case "$ac_flag" in
29339         -D_LARGE_FILES)
29340           ac_cv_sys_large_files=1 ;;
29341         -D_LARGE_FILES=*)
29342           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29343         esac
29344       done
29345
29346 fi
29347 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29348 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29349    if test "$ac_cv_sys_large_files" != no; then
29350
29351 cat >>confdefs.h <<_ACEOF
29352 #define _LARGE_FILES $ac_cv_sys_large_files
29353 _ACEOF
29354
29355    fi
29356    fi
29357
29358
29359 { echo "$as_me:$LINENO: checking for X" >&5
29360 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29361
29362
29363 # Check whether --with-x was given.
29364 if test "${with_x+set}" = set; then
29365   withval=$with_x;
29366 fi
29367
29368 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29369 if test "x$with_x" = xno; then
29370   # The user explicitly disabled X.
29371   have_x=disabled
29372 else
29373   case $x_includes,$x_libraries in #(
29374     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29375 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29376    { (exit 1); exit 1; }; };; #(
29377     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29378   echo $ECHO_N "(cached) $ECHO_C" >&6
29379 else
29380   # One or both of the vars are not set, and there is no cached value.
29381 ac_x_includes=no ac_x_libraries=no
29382 rm -f -r conftest.dir
29383 if mkdir conftest.dir; then
29384   cd conftest.dir
29385   cat >Imakefile <<'_ACEOF'
29386 incroot:
29387         @echo incroot='${INCROOT}'
29388 usrlibdir:
29389         @echo usrlibdir='${USRLIBDIR}'
29390 libdir:
29391         @echo libdir='${LIBDIR}'
29392 _ACEOF
29393   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29394     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29395     for ac_var in incroot usrlibdir libdir; do
29396       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29397     done
29398     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29399     for ac_extension in a so sl; do
29400       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29401          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29402         ac_im_usrlibdir=$ac_im_libdir; break
29403       fi
29404     done
29405     # Screen out bogus values from the imake configuration.  They are
29406     # bogus both because they are the default anyway, and because
29407     # using them would break gcc on systems where it needs fixed includes.
29408     case $ac_im_incroot in
29409         /usr/include) ac_x_includes= ;;
29410         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29411     esac
29412     case $ac_im_usrlibdir in
29413         /usr/lib | /lib) ;;
29414         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29415     esac
29416   fi
29417   cd ..
29418   rm -f -r conftest.dir
29419 fi
29420
29421 # Standard set of common directories for X headers.
29422 # Check X11 before X11Rn because it is often a symlink to the current release.
29423 ac_x_header_dirs='
29424 /usr/X11/include
29425 /usr/X11R6/include
29426 /usr/X11R5/include
29427 /usr/X11R4/include
29428
29429 /usr/include/X11
29430 /usr/include/X11R6
29431 /usr/include/X11R5
29432 /usr/include/X11R4
29433
29434 /usr/local/X11/include
29435 /usr/local/X11R6/include
29436 /usr/local/X11R5/include
29437 /usr/local/X11R4/include
29438
29439 /usr/local/include/X11
29440 /usr/local/include/X11R6
29441 /usr/local/include/X11R5
29442 /usr/local/include/X11R4
29443
29444 /usr/X386/include
29445 /usr/x386/include
29446 /usr/XFree86/include/X11
29447
29448 /usr/include
29449 /usr/local/include
29450 /usr/unsupported/include
29451 /usr/athena/include
29452 /usr/local/x11r5/include
29453 /usr/lpp/Xamples/include
29454
29455 /usr/openwin/include
29456 /usr/openwin/share/include'
29457
29458 if test "$ac_x_includes" = no; then
29459   # Guess where to find include files, by looking for Xlib.h.
29460   # First, try using that file with no special directory specified.
29461   cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h.  */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h.  */
29467 #include <X11/Xlib.h>
29468 _ACEOF
29469 if { (ac_try="$ac_cpp conftest.$ac_ext"
29470 case "(($ac_try" in
29471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472   *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29476   ac_status=$?
29477   grep -v '^ *+' conftest.er1 >conftest.err
29478   rm -f conftest.er1
29479   cat conftest.err >&5
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); } >/dev/null && {
29482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29483          test ! -s conftest.err
29484        }; then
29485   # We can compile using X headers with no special include directory.
29486 ac_x_includes=
29487 else
29488   echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29490
29491   for ac_dir in $ac_x_header_dirs; do
29492   if test -r "$ac_dir/X11/Xlib.h"; then
29493     ac_x_includes=$ac_dir
29494     break
29495   fi
29496 done
29497 fi
29498
29499 rm -f conftest.err conftest.$ac_ext
29500 fi # $ac_x_includes = no
29501
29502 if test "$ac_x_libraries" = no; then
29503   # Check for the libraries.
29504   # See if we find them without any special options.
29505   # Don't add to $LIBS permanently.
29506   ac_save_LIBS=$LIBS
29507   LIBS="-lX11 $LIBS"
29508   cat >conftest.$ac_ext <<_ACEOF
29509 /* confdefs.h.  */
29510 _ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h.  */
29514 #include <X11/Xlib.h>
29515 int
29516 main ()
29517 {
29518 XrmInitialize ()
29519   ;
29520   return 0;
29521 }
29522 _ACEOF
29523 rm -f conftest.$ac_objext conftest$ac_exeext
29524 if { (ac_try="$ac_link"
29525 case "(($ac_try" in
29526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527   *) ac_try_echo=$ac_try;;
29528 esac
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530   (eval "$ac_link") 2>conftest.er1
29531   ac_status=$?
29532   grep -v '^ *+' conftest.er1 >conftest.err
29533   rm -f conftest.er1
29534   cat conftest.err >&5
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); } && {
29537          test -z "$ac_c_werror_flag" ||
29538          test ! -s conftest.err
29539        } && test -s conftest$ac_exeext &&
29540        $as_test_x conftest$ac_exeext; then
29541   LIBS=$ac_save_LIBS
29542 # We can link X programs with no special library path.
29543 ac_x_libraries=
29544 else
29545   echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29547
29548         LIBS=$ac_save_LIBS
29549 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29550 do
29551   # Don't even attempt the hair of trying to link an X program!
29552   for ac_extension in a so sl; do
29553     if test -r "$ac_dir/libX11.$ac_extension"; then
29554       ac_x_libraries=$ac_dir
29555       break 2
29556     fi
29557   done
29558 done
29559 fi
29560
29561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29562       conftest$ac_exeext conftest.$ac_ext
29563 fi # $ac_x_libraries = no
29564
29565 case $ac_x_includes,$ac_x_libraries in #(
29566   no,* | *,no | *\'*)
29567     # Didn't find X, or a directory has "'" in its name.
29568     ac_cv_have_x="have_x=no";; #(
29569   *)
29570     # Record where we found X for the cache.
29571     ac_cv_have_x="have_x=yes\
29572         ac_x_includes='$ac_x_includes'\
29573         ac_x_libraries='$ac_x_libraries'"
29574 esac
29575 fi
29576 ;; #(
29577     *) have_x=yes;;
29578   esac
29579   eval "$ac_cv_have_x"
29580 fi # $with_x != no
29581
29582 if test "$have_x" != yes; then
29583   { echo "$as_me:$LINENO: result: $have_x" >&5
29584 echo "${ECHO_T}$have_x" >&6; }
29585   no_x=yes
29586 else
29587   # If each of the values was on the command line, it overrides each guess.
29588   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29589   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29590   # Update the cache value to reflect the command line values.
29591   ac_cv_have_x="have_x=yes\
29592         ac_x_includes='$x_includes'\
29593         ac_x_libraries='$x_libraries'"
29594   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29595 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29596 fi
29597
29598 if test "$no_x" = yes; then
29599   # Not all programs may use this symbol, but it does not hurt to define it.
29600
29601 cat >>confdefs.h <<\_ACEOF
29602 #define X_DISPLAY_MISSING 1
29603 _ACEOF
29604
29605   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29606 else
29607   if test -n "$x_includes"; then
29608     X_CFLAGS="$X_CFLAGS -I$x_includes"
29609   fi
29610
29611   # It would also be nice to do this for all -L options, not just this one.
29612   if test -n "$x_libraries"; then
29613     X_LIBS="$X_LIBS -L$x_libraries"
29614     # For Solaris; some versions of Sun CC require a space after -R and
29615     # others require no space.  Words are not sufficient . . . .
29616     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29617 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29618     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29619     ac_xsave_c_werror_flag=$ac_c_werror_flag
29620     ac_c_werror_flag=yes
29621     cat >conftest.$ac_ext <<_ACEOF
29622 /* confdefs.h.  */
29623 _ACEOF
29624 cat confdefs.h >>conftest.$ac_ext
29625 cat >>conftest.$ac_ext <<_ACEOF
29626 /* end confdefs.h.  */
29627
29628 int
29629 main ()
29630 {
29631
29632   ;
29633   return 0;
29634 }
29635 _ACEOF
29636 rm -f conftest.$ac_objext conftest$ac_exeext
29637 if { (ac_try="$ac_link"
29638 case "(($ac_try" in
29639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640   *) ac_try_echo=$ac_try;;
29641 esac
29642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643   (eval "$ac_link") 2>conftest.er1
29644   ac_status=$?
29645   grep -v '^ *+' conftest.er1 >conftest.err
29646   rm -f conftest.er1
29647   cat conftest.err >&5
29648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649   (exit $ac_status); } && {
29650          test -z "$ac_c_werror_flag" ||
29651          test ! -s conftest.err
29652        } && test -s conftest$ac_exeext &&
29653        $as_test_x conftest$ac_exeext; then
29654   { echo "$as_me:$LINENO: result: no" >&5
29655 echo "${ECHO_T}no" >&6; }
29656        X_LIBS="$X_LIBS -R$x_libraries"
29657 else
29658   echo "$as_me: failed program was:" >&5
29659 sed 's/^/| /' conftest.$ac_ext >&5
29660
29661         LIBS="$ac_xsave_LIBS -R $x_libraries"
29662        cat >conftest.$ac_ext <<_ACEOF
29663 /* confdefs.h.  */
29664 _ACEOF
29665 cat confdefs.h >>conftest.$ac_ext
29666 cat >>conftest.$ac_ext <<_ACEOF
29667 /* end confdefs.h.  */
29668
29669 int
29670 main ()
29671 {
29672
29673   ;
29674   return 0;
29675 }
29676 _ACEOF
29677 rm -f conftest.$ac_objext conftest$ac_exeext
29678 if { (ac_try="$ac_link"
29679 case "(($ac_try" in
29680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29681   *) ac_try_echo=$ac_try;;
29682 esac
29683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29684   (eval "$ac_link") 2>conftest.er1
29685   ac_status=$?
29686   grep -v '^ *+' conftest.er1 >conftest.err
29687   rm -f conftest.er1
29688   cat conftest.err >&5
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); } && {
29691          test -z "$ac_c_werror_flag" ||
29692          test ! -s conftest.err
29693        } && test -s conftest$ac_exeext &&
29694        $as_test_x conftest$ac_exeext; then
29695   { echo "$as_me:$LINENO: result: yes" >&5
29696 echo "${ECHO_T}yes" >&6; }
29697           X_LIBS="$X_LIBS -R $x_libraries"
29698 else
29699   echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29701
29702         { echo "$as_me:$LINENO: result: neither works" >&5
29703 echo "${ECHO_T}neither works" >&6; }
29704 fi
29705
29706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29707       conftest$ac_exeext conftest.$ac_ext
29708 fi
29709
29710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29711       conftest$ac_exeext conftest.$ac_ext
29712     ac_c_werror_flag=$ac_xsave_c_werror_flag
29713     LIBS=$ac_xsave_LIBS
29714   fi
29715
29716   # Check for system-dependent libraries X programs must link with.
29717   # Do this before checking for the system-independent R6 libraries
29718   # (-lICE), since we may need -lsocket or whatever for X linking.
29719
29720   if test "$ISC" = yes; then
29721     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29722   else
29723     # Martyn Johnson says this is needed for Ultrix, if the X
29724     # libraries were built with DECnet support.  And Karl Berry says
29725     # the Alpha needs dnet_stub (dnet does not exist).
29726     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29727     cat >conftest.$ac_ext <<_ACEOF
29728 /* confdefs.h.  */
29729 _ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h.  */
29733
29734 /* Override any GCC internal prototype to avoid an error.
29735    Use char because int might match the return type of a GCC
29736    builtin and then its argument prototype would still apply.  */
29737 #ifdef __cplusplus
29738 extern "C"
29739 #endif
29740 char XOpenDisplay ();
29741 int
29742 main ()
29743 {
29744 return XOpenDisplay ();
29745   ;
29746   return 0;
29747 }
29748 _ACEOF
29749 rm -f conftest.$ac_objext conftest$ac_exeext
29750 if { (ac_try="$ac_link"
29751 case "(($ac_try" in
29752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753   *) ac_try_echo=$ac_try;;
29754 esac
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756   (eval "$ac_link") 2>conftest.er1
29757   ac_status=$?
29758   grep -v '^ *+' conftest.er1 >conftest.err
29759   rm -f conftest.er1
29760   cat conftest.err >&5
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); } && {
29763          test -z "$ac_c_werror_flag" ||
29764          test ! -s conftest.err
29765        } && test -s conftest$ac_exeext &&
29766        $as_test_x conftest$ac_exeext; then
29767   :
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29773 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29774 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29775   echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777   ac_check_lib_save_LIBS=$LIBS
29778 LIBS="-ldnet  $LIBS"
29779 cat >conftest.$ac_ext <<_ACEOF
29780 /* confdefs.h.  */
29781 _ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h.  */
29785
29786 /* Override any GCC internal prototype to avoid an error.
29787    Use char because int might match the return type of a GCC
29788    builtin and then its argument prototype would still apply.  */
29789 #ifdef __cplusplus
29790 extern "C"
29791 #endif
29792 char dnet_ntoa ();
29793 int
29794 main ()
29795 {
29796 return dnet_ntoa ();
29797   ;
29798   return 0;
29799 }
29800 _ACEOF
29801 rm -f conftest.$ac_objext conftest$ac_exeext
29802 if { (ac_try="$ac_link"
29803 case "(($ac_try" in
29804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805   *) ac_try_echo=$ac_try;;
29806 esac
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808   (eval "$ac_link") 2>conftest.er1
29809   ac_status=$?
29810   grep -v '^ *+' conftest.er1 >conftest.err
29811   rm -f conftest.er1
29812   cat conftest.err >&5
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); } && {
29815          test -z "$ac_c_werror_flag" ||
29816          test ! -s conftest.err
29817        } && test -s conftest$ac_exeext &&
29818        $as_test_x conftest$ac_exeext; then
29819   ac_cv_lib_dnet_dnet_ntoa=yes
29820 else
29821   echo "$as_me: failed program was:" >&5
29822 sed 's/^/| /' conftest.$ac_ext >&5
29823
29824         ac_cv_lib_dnet_dnet_ntoa=no
29825 fi
29826
29827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29828       conftest$ac_exeext conftest.$ac_ext
29829 LIBS=$ac_check_lib_save_LIBS
29830 fi
29831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29832 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29833 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29834   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29835 fi
29836
29837     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29838       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29839 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29840 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29841   echo $ECHO_N "(cached) $ECHO_C" >&6
29842 else
29843   ac_check_lib_save_LIBS=$LIBS
29844 LIBS="-ldnet_stub  $LIBS"
29845 cat >conftest.$ac_ext <<_ACEOF
29846 /* confdefs.h.  */
29847 _ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h.  */
29851
29852 /* Override any GCC internal prototype to avoid an error.
29853    Use char because int might match the return type of a GCC
29854    builtin and then its argument prototype would still apply.  */
29855 #ifdef __cplusplus
29856 extern "C"
29857 #endif
29858 char dnet_ntoa ();
29859 int
29860 main ()
29861 {
29862 return dnet_ntoa ();
29863   ;
29864   return 0;
29865 }
29866 _ACEOF
29867 rm -f conftest.$ac_objext conftest$ac_exeext
29868 if { (ac_try="$ac_link"
29869 case "(($ac_try" in
29870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871   *) ac_try_echo=$ac_try;;
29872 esac
29873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874   (eval "$ac_link") 2>conftest.er1
29875   ac_status=$?
29876   grep -v '^ *+' conftest.er1 >conftest.err
29877   rm -f conftest.er1
29878   cat conftest.err >&5
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); } && {
29881          test -z "$ac_c_werror_flag" ||
29882          test ! -s conftest.err
29883        } && test -s conftest$ac_exeext &&
29884        $as_test_x conftest$ac_exeext; then
29885   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29886 else
29887   echo "$as_me: failed program was:" >&5
29888 sed 's/^/| /' conftest.$ac_ext >&5
29889
29890         ac_cv_lib_dnet_stub_dnet_ntoa=no
29891 fi
29892
29893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29894       conftest$ac_exeext conftest.$ac_ext
29895 LIBS=$ac_check_lib_save_LIBS
29896 fi
29897 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29898 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29899 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29900   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29901 fi
29902
29903     fi
29904 fi
29905
29906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29907       conftest$ac_exeext conftest.$ac_ext
29908     LIBS="$ac_xsave_LIBS"
29909
29910     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29911     # to get the SysV transport functions.
29912     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29913     # needs -lnsl.
29914     # The nsl library prevents programs from opening the X display
29915     # on Irix 5.2, according to T.E. Dickey.
29916     # The functions gethostbyname, getservbyname, and inet_addr are
29917     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29918     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29919 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29920 if test "${ac_cv_func_gethostbyname+set}" = set; then
29921   echo $ECHO_N "(cached) $ECHO_C" >&6
29922 else
29923   cat >conftest.$ac_ext <<_ACEOF
29924 /* confdefs.h.  */
29925 _ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h.  */
29929 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29931 #define gethostbyname innocuous_gethostbyname
29932
29933 /* System header to define __stub macros and hopefully few prototypes,
29934     which can conflict with char gethostbyname (); below.
29935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29936     <limits.h> exists even on freestanding compilers.  */
29937
29938 #ifdef __STDC__
29939 # include <limits.h>
29940 #else
29941 # include <assert.h>
29942 #endif
29943
29944 #undef gethostbyname
29945
29946 /* Override any GCC internal prototype to avoid an error.
29947    Use char because int might match the return type of a GCC
29948    builtin and then its argument prototype would still apply.  */
29949 #ifdef __cplusplus
29950 extern "C"
29951 #endif
29952 char gethostbyname ();
29953 /* The GNU C library defines this for functions which it implements
29954     to always fail with ENOSYS.  Some functions are actually named
29955     something starting with __ and the normal name is an alias.  */
29956 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29957 choke me
29958 #endif
29959
29960 int
29961 main ()
29962 {
29963 return gethostbyname ();
29964   ;
29965   return 0;
29966 }
29967 _ACEOF
29968 rm -f conftest.$ac_objext conftest$ac_exeext
29969 if { (ac_try="$ac_link"
29970 case "(($ac_try" in
29971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29972   *) ac_try_echo=$ac_try;;
29973 esac
29974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29975   (eval "$ac_link") 2>conftest.er1
29976   ac_status=$?
29977   grep -v '^ *+' conftest.er1 >conftest.err
29978   rm -f conftest.er1
29979   cat conftest.err >&5
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); } && {
29982          test -z "$ac_c_werror_flag" ||
29983          test ! -s conftest.err
29984        } && test -s conftest$ac_exeext &&
29985        $as_test_x conftest$ac_exeext; then
29986   ac_cv_func_gethostbyname=yes
29987 else
29988   echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29990
29991         ac_cv_func_gethostbyname=no
29992 fi
29993
29994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29995       conftest$ac_exeext conftest.$ac_ext
29996 fi
29997 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29998 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29999
30000     if test $ac_cv_func_gethostbyname = no; then
30001       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30002 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30003 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30004   echo $ECHO_N "(cached) $ECHO_C" >&6
30005 else
30006   ac_check_lib_save_LIBS=$LIBS
30007 LIBS="-lnsl  $LIBS"
30008 cat >conftest.$ac_ext <<_ACEOF
30009 /* confdefs.h.  */
30010 _ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h.  */
30014
30015 /* Override any GCC internal prototype to avoid an error.
30016    Use char because int might match the return type of a GCC
30017    builtin and then its argument prototype would still apply.  */
30018 #ifdef __cplusplus
30019 extern "C"
30020 #endif
30021 char gethostbyname ();
30022 int
30023 main ()
30024 {
30025 return gethostbyname ();
30026   ;
30027   return 0;
30028 }
30029 _ACEOF
30030 rm -f conftest.$ac_objext conftest$ac_exeext
30031 if { (ac_try="$ac_link"
30032 case "(($ac_try" in
30033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034   *) ac_try_echo=$ac_try;;
30035 esac
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037   (eval "$ac_link") 2>conftest.er1
30038   ac_status=$?
30039   grep -v '^ *+' conftest.er1 >conftest.err
30040   rm -f conftest.er1
30041   cat conftest.err >&5
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); } && {
30044          test -z "$ac_c_werror_flag" ||
30045          test ! -s conftest.err
30046        } && test -s conftest$ac_exeext &&
30047        $as_test_x conftest$ac_exeext; then
30048   ac_cv_lib_nsl_gethostbyname=yes
30049 else
30050   echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30052
30053         ac_cv_lib_nsl_gethostbyname=no
30054 fi
30055
30056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30057       conftest$ac_exeext conftest.$ac_ext
30058 LIBS=$ac_check_lib_save_LIBS
30059 fi
30060 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30061 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30062 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30063   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30064 fi
30065
30066       if test $ac_cv_lib_nsl_gethostbyname = no; then
30067         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30068 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30069 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30070   echo $ECHO_N "(cached) $ECHO_C" >&6
30071 else
30072   ac_check_lib_save_LIBS=$LIBS
30073 LIBS="-lbsd  $LIBS"
30074 cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h.  */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h.  */
30080
30081 /* Override any GCC internal prototype to avoid an error.
30082    Use char because int might match the return type of a GCC
30083    builtin and then its argument prototype would still apply.  */
30084 #ifdef __cplusplus
30085 extern "C"
30086 #endif
30087 char gethostbyname ();
30088 int
30089 main ()
30090 {
30091 return gethostbyname ();
30092   ;
30093   return 0;
30094 }
30095 _ACEOF
30096 rm -f conftest.$ac_objext conftest$ac_exeext
30097 if { (ac_try="$ac_link"
30098 case "(($ac_try" in
30099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100   *) ac_try_echo=$ac_try;;
30101 esac
30102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103   (eval "$ac_link") 2>conftest.er1
30104   ac_status=$?
30105   grep -v '^ *+' conftest.er1 >conftest.err
30106   rm -f conftest.er1
30107   cat conftest.err >&5
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); } && {
30110          test -z "$ac_c_werror_flag" ||
30111          test ! -s conftest.err
30112        } && test -s conftest$ac_exeext &&
30113        $as_test_x conftest$ac_exeext; then
30114   ac_cv_lib_bsd_gethostbyname=yes
30115 else
30116   echo "$as_me: failed program was:" >&5
30117 sed 's/^/| /' conftest.$ac_ext >&5
30118
30119         ac_cv_lib_bsd_gethostbyname=no
30120 fi
30121
30122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30123       conftest$ac_exeext conftest.$ac_ext
30124 LIBS=$ac_check_lib_save_LIBS
30125 fi
30126 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30127 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30128 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30129   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30130 fi
30131
30132       fi
30133     fi
30134
30135     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30136     # socket/setsockopt and other routines are undefined under SCO ODT
30137     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30138     # on later versions), says Simon Leinen: it contains gethostby*
30139     # variants that don't use the name server (or something).  -lsocket
30140     # must be given before -lnsl if both are needed.  We assume that
30141     # if connect needs -lnsl, so does gethostbyname.
30142     { echo "$as_me:$LINENO: checking for connect" >&5
30143 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30144 if test "${ac_cv_func_connect+set}" = set; then
30145   echo $ECHO_N "(cached) $ECHO_C" >&6
30146 else
30147   cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h.  */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h.  */
30153 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30155 #define connect innocuous_connect
30156
30157 /* System header to define __stub macros and hopefully few prototypes,
30158     which can conflict with char connect (); below.
30159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30160     <limits.h> exists even on freestanding compilers.  */
30161
30162 #ifdef __STDC__
30163 # include <limits.h>
30164 #else
30165 # include <assert.h>
30166 #endif
30167
30168 #undef connect
30169
30170 /* Override any GCC internal prototype to avoid an error.
30171    Use char because int might match the return type of a GCC
30172    builtin and then its argument prototype would still apply.  */
30173 #ifdef __cplusplus
30174 extern "C"
30175 #endif
30176 char connect ();
30177 /* The GNU C library defines this for functions which it implements
30178     to always fail with ENOSYS.  Some functions are actually named
30179     something starting with __ and the normal name is an alias.  */
30180 #if defined __stub_connect || defined __stub___connect
30181 choke me
30182 #endif
30183
30184 int
30185 main ()
30186 {
30187 return connect ();
30188   ;
30189   return 0;
30190 }
30191 _ACEOF
30192 rm -f conftest.$ac_objext conftest$ac_exeext
30193 if { (ac_try="$ac_link"
30194 case "(($ac_try" in
30195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30196   *) ac_try_echo=$ac_try;;
30197 esac
30198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30199   (eval "$ac_link") 2>conftest.er1
30200   ac_status=$?
30201   grep -v '^ *+' conftest.er1 >conftest.err
30202   rm -f conftest.er1
30203   cat conftest.err >&5
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); } && {
30206          test -z "$ac_c_werror_flag" ||
30207          test ! -s conftest.err
30208        } && test -s conftest$ac_exeext &&
30209        $as_test_x conftest$ac_exeext; then
30210   ac_cv_func_connect=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215         ac_cv_func_connect=no
30216 fi
30217
30218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30219       conftest$ac_exeext conftest.$ac_ext
30220 fi
30221 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30222 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30223
30224     if test $ac_cv_func_connect = no; then
30225       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30226 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30227 if test "${ac_cv_lib_socket_connect+set}" = set; then
30228   echo $ECHO_N "(cached) $ECHO_C" >&6
30229 else
30230   ac_check_lib_save_LIBS=$LIBS
30231 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30232 cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h.  */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h.  */
30238
30239 /* Override any GCC internal prototype to avoid an error.
30240    Use char because int might match the return type of a GCC
30241    builtin and then its argument prototype would still apply.  */
30242 #ifdef __cplusplus
30243 extern "C"
30244 #endif
30245 char connect ();
30246 int
30247 main ()
30248 {
30249 return connect ();
30250   ;
30251   return 0;
30252 }
30253 _ACEOF
30254 rm -f conftest.$ac_objext conftest$ac_exeext
30255 if { (ac_try="$ac_link"
30256 case "(($ac_try" in
30257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258   *) ac_try_echo=$ac_try;;
30259 esac
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261   (eval "$ac_link") 2>conftest.er1
30262   ac_status=$?
30263   grep -v '^ *+' conftest.er1 >conftest.err
30264   rm -f conftest.er1
30265   cat conftest.err >&5
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); } && {
30268          test -z "$ac_c_werror_flag" ||
30269          test ! -s conftest.err
30270        } && test -s conftest$ac_exeext &&
30271        $as_test_x conftest$ac_exeext; then
30272   ac_cv_lib_socket_connect=yes
30273 else
30274   echo "$as_me: failed program was:" >&5
30275 sed 's/^/| /' conftest.$ac_ext >&5
30276
30277         ac_cv_lib_socket_connect=no
30278 fi
30279
30280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30281       conftest$ac_exeext conftest.$ac_ext
30282 LIBS=$ac_check_lib_save_LIBS
30283 fi
30284 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30285 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30286 if test $ac_cv_lib_socket_connect = yes; then
30287   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30288 fi
30289
30290     fi
30291
30292     # Guillermo Gomez says -lposix is necessary on A/UX.
30293     { echo "$as_me:$LINENO: checking for remove" >&5
30294 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30295 if test "${ac_cv_func_remove+set}" = set; then
30296   echo $ECHO_N "(cached) $ECHO_C" >&6
30297 else
30298   cat >conftest.$ac_ext <<_ACEOF
30299 /* confdefs.h.  */
30300 _ACEOF
30301 cat confdefs.h >>conftest.$ac_ext
30302 cat >>conftest.$ac_ext <<_ACEOF
30303 /* end confdefs.h.  */
30304 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30306 #define remove innocuous_remove
30307
30308 /* System header to define __stub macros and hopefully few prototypes,
30309     which can conflict with char remove (); below.
30310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30311     <limits.h> exists even on freestanding compilers.  */
30312
30313 #ifdef __STDC__
30314 # include <limits.h>
30315 #else
30316 # include <assert.h>
30317 #endif
30318
30319 #undef remove
30320
30321 /* Override any GCC internal prototype to avoid an error.
30322    Use char because int might match the return type of a GCC
30323    builtin and then its argument prototype would still apply.  */
30324 #ifdef __cplusplus
30325 extern "C"
30326 #endif
30327 char remove ();
30328 /* The GNU C library defines this for functions which it implements
30329     to always fail with ENOSYS.  Some functions are actually named
30330     something starting with __ and the normal name is an alias.  */
30331 #if defined __stub_remove || defined __stub___remove
30332 choke me
30333 #endif
30334
30335 int
30336 main ()
30337 {
30338 return remove ();
30339   ;
30340   return 0;
30341 }
30342 _ACEOF
30343 rm -f conftest.$ac_objext conftest$ac_exeext
30344 if { (ac_try="$ac_link"
30345 case "(($ac_try" in
30346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347   *) ac_try_echo=$ac_try;;
30348 esac
30349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350   (eval "$ac_link") 2>conftest.er1
30351   ac_status=$?
30352   grep -v '^ *+' conftest.er1 >conftest.err
30353   rm -f conftest.er1
30354   cat conftest.err >&5
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); } && {
30357          test -z "$ac_c_werror_flag" ||
30358          test ! -s conftest.err
30359        } && test -s conftest$ac_exeext &&
30360        $as_test_x conftest$ac_exeext; then
30361   ac_cv_func_remove=yes
30362 else
30363   echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30365
30366         ac_cv_func_remove=no
30367 fi
30368
30369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30370       conftest$ac_exeext conftest.$ac_ext
30371 fi
30372 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30373 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30374
30375     if test $ac_cv_func_remove = no; then
30376       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30377 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30378 if test "${ac_cv_lib_posix_remove+set}" = set; then
30379   echo $ECHO_N "(cached) $ECHO_C" >&6
30380 else
30381   ac_check_lib_save_LIBS=$LIBS
30382 LIBS="-lposix  $LIBS"
30383 cat >conftest.$ac_ext <<_ACEOF
30384 /* confdefs.h.  */
30385 _ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h.  */
30389
30390 /* Override any GCC internal prototype to avoid an error.
30391    Use char because int might match the return type of a GCC
30392    builtin and then its argument prototype would still apply.  */
30393 #ifdef __cplusplus
30394 extern "C"
30395 #endif
30396 char remove ();
30397 int
30398 main ()
30399 {
30400 return remove ();
30401   ;
30402   return 0;
30403 }
30404 _ACEOF
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_link") 2>conftest.er1
30413   ac_status=$?
30414   grep -v '^ *+' conftest.er1 >conftest.err
30415   rm -f conftest.er1
30416   cat conftest.err >&5
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); } && {
30419          test -z "$ac_c_werror_flag" ||
30420          test ! -s conftest.err
30421        } && test -s conftest$ac_exeext &&
30422        $as_test_x conftest$ac_exeext; then
30423   ac_cv_lib_posix_remove=yes
30424 else
30425   echo "$as_me: failed program was:" >&5
30426 sed 's/^/| /' conftest.$ac_ext >&5
30427
30428         ac_cv_lib_posix_remove=no
30429 fi
30430
30431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30432       conftest$ac_exeext conftest.$ac_ext
30433 LIBS=$ac_check_lib_save_LIBS
30434 fi
30435 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30436 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30437 if test $ac_cv_lib_posix_remove = yes; then
30438   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30439 fi
30440
30441     fi
30442
30443     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30444     { echo "$as_me:$LINENO: checking for shmat" >&5
30445 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30446 if test "${ac_cv_func_shmat+set}" = set; then
30447   echo $ECHO_N "(cached) $ECHO_C" >&6
30448 else
30449   cat >conftest.$ac_ext <<_ACEOF
30450 /* confdefs.h.  */
30451 _ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h.  */
30455 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30457 #define shmat innocuous_shmat
30458
30459 /* System header to define __stub macros and hopefully few prototypes,
30460     which can conflict with char shmat (); below.
30461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30462     <limits.h> exists even on freestanding compilers.  */
30463
30464 #ifdef __STDC__
30465 # include <limits.h>
30466 #else
30467 # include <assert.h>
30468 #endif
30469
30470 #undef shmat
30471
30472 /* Override any GCC internal prototype to avoid an error.
30473    Use char because int might match the return type of a GCC
30474    builtin and then its argument prototype would still apply.  */
30475 #ifdef __cplusplus
30476 extern "C"
30477 #endif
30478 char shmat ();
30479 /* The GNU C library defines this for functions which it implements
30480     to always fail with ENOSYS.  Some functions are actually named
30481     something starting with __ and the normal name is an alias.  */
30482 #if defined __stub_shmat || defined __stub___shmat
30483 choke me
30484 #endif
30485
30486 int
30487 main ()
30488 {
30489 return shmat ();
30490   ;
30491   return 0;
30492 }
30493 _ACEOF
30494 rm -f conftest.$ac_objext conftest$ac_exeext
30495 if { (ac_try="$ac_link"
30496 case "(($ac_try" in
30497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498   *) ac_try_echo=$ac_try;;
30499 esac
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501   (eval "$ac_link") 2>conftest.er1
30502   ac_status=$?
30503   grep -v '^ *+' conftest.er1 >conftest.err
30504   rm -f conftest.er1
30505   cat conftest.err >&5
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); } && {
30508          test -z "$ac_c_werror_flag" ||
30509          test ! -s conftest.err
30510        } && test -s conftest$ac_exeext &&
30511        $as_test_x conftest$ac_exeext; then
30512   ac_cv_func_shmat=yes
30513 else
30514   echo "$as_me: failed program was:" >&5
30515 sed 's/^/| /' conftest.$ac_ext >&5
30516
30517         ac_cv_func_shmat=no
30518 fi
30519
30520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30521       conftest$ac_exeext conftest.$ac_ext
30522 fi
30523 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30524 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30525
30526     if test $ac_cv_func_shmat = no; then
30527       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30528 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30529 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30530   echo $ECHO_N "(cached) $ECHO_C" >&6
30531 else
30532   ac_check_lib_save_LIBS=$LIBS
30533 LIBS="-lipc  $LIBS"
30534 cat >conftest.$ac_ext <<_ACEOF
30535 /* confdefs.h.  */
30536 _ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h.  */
30540
30541 /* Override any GCC internal prototype to avoid an error.
30542    Use char because int might match the return type of a GCC
30543    builtin and then its argument prototype would still apply.  */
30544 #ifdef __cplusplus
30545 extern "C"
30546 #endif
30547 char shmat ();
30548 int
30549 main ()
30550 {
30551 return shmat ();
30552   ;
30553   return 0;
30554 }
30555 _ACEOF
30556 rm -f conftest.$ac_objext conftest$ac_exeext
30557 if { (ac_try="$ac_link"
30558 case "(($ac_try" in
30559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30560   *) ac_try_echo=$ac_try;;
30561 esac
30562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30563   (eval "$ac_link") 2>conftest.er1
30564   ac_status=$?
30565   grep -v '^ *+' conftest.er1 >conftest.err
30566   rm -f conftest.er1
30567   cat conftest.err >&5
30568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569   (exit $ac_status); } && {
30570          test -z "$ac_c_werror_flag" ||
30571          test ! -s conftest.err
30572        } && test -s conftest$ac_exeext &&
30573        $as_test_x conftest$ac_exeext; then
30574   ac_cv_lib_ipc_shmat=yes
30575 else
30576   echo "$as_me: failed program was:" >&5
30577 sed 's/^/| /' conftest.$ac_ext >&5
30578
30579         ac_cv_lib_ipc_shmat=no
30580 fi
30581
30582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30583       conftest$ac_exeext conftest.$ac_ext
30584 LIBS=$ac_check_lib_save_LIBS
30585 fi
30586 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30587 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30588 if test $ac_cv_lib_ipc_shmat = yes; then
30589   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30590 fi
30591
30592     fi
30593   fi
30594
30595   # Check for libraries that X11R6 Xt/Xaw programs need.
30596   ac_save_LDFLAGS=$LDFLAGS
30597   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30598   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30599   # check for ICE first), but we must link in the order -lSM -lICE or
30600   # we get undefined symbols.  So assume we have SM if we have ICE.
30601   # These have to be linked with before -lX11, unlike the other
30602   # libraries we check for below, so use a different variable.
30603   # John Interrante, Karl Berry
30604   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30605 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30606 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30607   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 else
30609   ac_check_lib_save_LIBS=$LIBS
30610 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30611 cat >conftest.$ac_ext <<_ACEOF
30612 /* confdefs.h.  */
30613 _ACEOF
30614 cat confdefs.h >>conftest.$ac_ext
30615 cat >>conftest.$ac_ext <<_ACEOF
30616 /* end confdefs.h.  */
30617
30618 /* Override any GCC internal prototype to avoid an error.
30619    Use char because int might match the return type of a GCC
30620    builtin and then its argument prototype would still apply.  */
30621 #ifdef __cplusplus
30622 extern "C"
30623 #endif
30624 char IceConnectionNumber ();
30625 int
30626 main ()
30627 {
30628 return IceConnectionNumber ();
30629   ;
30630   return 0;
30631 }
30632 _ACEOF
30633 rm -f conftest.$ac_objext conftest$ac_exeext
30634 if { (ac_try="$ac_link"
30635 case "(($ac_try" in
30636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30637   *) ac_try_echo=$ac_try;;
30638 esac
30639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30640   (eval "$ac_link") 2>conftest.er1
30641   ac_status=$?
30642   grep -v '^ *+' conftest.er1 >conftest.err
30643   rm -f conftest.er1
30644   cat conftest.err >&5
30645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646   (exit $ac_status); } && {
30647          test -z "$ac_c_werror_flag" ||
30648          test ! -s conftest.err
30649        } && test -s conftest$ac_exeext &&
30650        $as_test_x conftest$ac_exeext; then
30651   ac_cv_lib_ICE_IceConnectionNumber=yes
30652 else
30653   echo "$as_me: failed program was:" >&5
30654 sed 's/^/| /' conftest.$ac_ext >&5
30655
30656         ac_cv_lib_ICE_IceConnectionNumber=no
30657 fi
30658
30659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30660       conftest$ac_exeext conftest.$ac_ext
30661 LIBS=$ac_check_lib_save_LIBS
30662 fi
30663 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30664 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30665 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30666   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30667 fi
30668
30669   LDFLAGS=$ac_save_LDFLAGS
30670
30671 fi
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703 for ac_header in \
30704    assert.h \
30705    fcntl.h \
30706    grp.h \
30707    pwd.h \
30708    libc.h \
30709    limits.h \
30710    stdarg.h \
30711    stdlib.h \
30712    stdint.h \
30713    string.h \
30714    strings.h \
30715    termios.h \
30716    termcap.h \
30717    term.h \
30718    unistd.h \
30719    sys/bitypes.h \
30720    sys/byteorder.h \
30721    sys/ioctl.h \
30722    sys/select.h \
30723    sys/socket.h \
30724    sys/sockio.h \
30725    sys/stat.h \
30726    sys/time.h \
30727    sys/types.h \
30728    arpa/nameser.h \
30729    mtio.h \
30730    sys/mtio.h \
30731    sys/tape.h \
30732    regex.h \
30733
30734 do
30735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30737   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30740   echo $ECHO_N "(cached) $ECHO_C" >&6
30741 fi
30742 ac_res=`eval echo '${'$as_ac_Header'}'`
30743                { echo "$as_me:$LINENO: result: $ac_res" >&5
30744 echo "${ECHO_T}$ac_res" >&6; }
30745 else
30746   # Is the header compilable?
30747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30749 cat >conftest.$ac_ext <<_ACEOF
30750 /* confdefs.h.  */
30751 _ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h.  */
30755 $ac_includes_default
30756 #include <$ac_header>
30757 _ACEOF
30758 rm -f conftest.$ac_objext
30759 if { (ac_try="$ac_compile"
30760 case "(($ac_try" in
30761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762   *) ac_try_echo=$ac_try;;
30763 esac
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765   (eval "$ac_compile") 2>conftest.er1
30766   ac_status=$?
30767   grep -v '^ *+' conftest.er1 >conftest.err
30768   rm -f conftest.er1
30769   cat conftest.err >&5
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); } && {
30772          test -z "$ac_c_werror_flag" ||
30773          test ! -s conftest.err
30774        } && test -s conftest.$ac_objext; then
30775   ac_header_compiler=yes
30776 else
30777   echo "$as_me: failed program was:" >&5
30778 sed 's/^/| /' conftest.$ac_ext >&5
30779
30780         ac_header_compiler=no
30781 fi
30782
30783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30785 echo "${ECHO_T}$ac_header_compiler" >&6; }
30786
30787 # Is the header present?
30788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30790 cat >conftest.$ac_ext <<_ACEOF
30791 /* confdefs.h.  */
30792 _ACEOF
30793 cat confdefs.h >>conftest.$ac_ext
30794 cat >>conftest.$ac_ext <<_ACEOF
30795 /* end confdefs.h.  */
30796 #include <$ac_header>
30797 _ACEOF
30798 if { (ac_try="$ac_cpp conftest.$ac_ext"
30799 case "(($ac_try" in
30800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30801   *) ac_try_echo=$ac_try;;
30802 esac
30803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30805   ac_status=$?
30806   grep -v '^ *+' conftest.er1 >conftest.err
30807   rm -f conftest.er1
30808   cat conftest.err >&5
30809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810   (exit $ac_status); } >/dev/null && {
30811          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30812          test ! -s conftest.err
30813        }; then
30814   ac_header_preproc=yes
30815 else
30816   echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30818
30819   ac_header_preproc=no
30820 fi
30821
30822 rm -f conftest.err conftest.$ac_ext
30823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30824 echo "${ECHO_T}$ac_header_preproc" >&6; }
30825
30826 # So?  What about this header?
30827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30828   yes:no: )
30829     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30833     ac_header_preproc=yes
30834     ;;
30835   no:yes:* )
30836     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30838     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30839 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30840     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30842     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30843 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30846     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30848
30849     ;;
30850 esac
30851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30854   echo $ECHO_N "(cached) $ECHO_C" >&6
30855 else
30856   eval "$as_ac_Header=\$ac_header_preproc"
30857 fi
30858 ac_res=`eval echo '${'$as_ac_Header'}'`
30859                { echo "$as_me:$LINENO: result: $ac_res" >&5
30860 echo "${ECHO_T}$ac_res" >&6; }
30861
30862 fi
30863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30864   cat >>confdefs.h <<_ACEOF
30865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30866 _ACEOF
30867
30868 fi
30869
30870 done
30871
30872 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30873 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30874 if test "${ac_cv_header_stdc+set}" = set; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 else
30877   cat >conftest.$ac_ext <<_ACEOF
30878 /* confdefs.h.  */
30879 _ACEOF
30880 cat confdefs.h >>conftest.$ac_ext
30881 cat >>conftest.$ac_ext <<_ACEOF
30882 /* end confdefs.h.  */
30883 #include <stdlib.h>
30884 #include <stdarg.h>
30885 #include <string.h>
30886 #include <float.h>
30887
30888 int
30889 main ()
30890 {
30891
30892   ;
30893   return 0;
30894 }
30895 _ACEOF
30896 rm -f conftest.$ac_objext
30897 if { (ac_try="$ac_compile"
30898 case "(($ac_try" in
30899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900   *) ac_try_echo=$ac_try;;
30901 esac
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903   (eval "$ac_compile") 2>conftest.er1
30904   ac_status=$?
30905   grep -v '^ *+' conftest.er1 >conftest.err
30906   rm -f conftest.er1
30907   cat conftest.err >&5
30908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909   (exit $ac_status); } && {
30910          test -z "$ac_c_werror_flag" ||
30911          test ! -s conftest.err
30912        } && test -s conftest.$ac_objext; then
30913   ac_cv_header_stdc=yes
30914 else
30915   echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918         ac_cv_header_stdc=no
30919 fi
30920
30921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30922
30923 if test $ac_cv_header_stdc = yes; then
30924   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30925   cat >conftest.$ac_ext <<_ACEOF
30926 /* confdefs.h.  */
30927 _ACEOF
30928 cat confdefs.h >>conftest.$ac_ext
30929 cat >>conftest.$ac_ext <<_ACEOF
30930 /* end confdefs.h.  */
30931 #include <string.h>
30932
30933 _ACEOF
30934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30935   $EGREP "memchr" >/dev/null 2>&1; then
30936   :
30937 else
30938   ac_cv_header_stdc=no
30939 fi
30940 rm -f conftest*
30941
30942 fi
30943
30944 if test $ac_cv_header_stdc = yes; then
30945   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30946   cat >conftest.$ac_ext <<_ACEOF
30947 /* confdefs.h.  */
30948 _ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h.  */
30952 #include <stdlib.h>
30953
30954 _ACEOF
30955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30956   $EGREP "free" >/dev/null 2>&1; then
30957   :
30958 else
30959   ac_cv_header_stdc=no
30960 fi
30961 rm -f conftest*
30962
30963 fi
30964
30965 if test $ac_cv_header_stdc = yes; then
30966   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30967   if test "$cross_compiling" = yes; then
30968   :
30969 else
30970   cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h.  */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h.  */
30976 #include <ctype.h>
30977 #include <stdlib.h>
30978 #if ((' ' & 0x0FF) == 0x020)
30979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30981 #else
30982 # define ISLOWER(c) \
30983                    (('a' <= (c) && (c) <= 'i') \
30984                      || ('j' <= (c) && (c) <= 'r') \
30985                      || ('s' <= (c) && (c) <= 'z'))
30986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30987 #endif
30988
30989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30990 int
30991 main ()
30992 {
30993   int i;
30994   for (i = 0; i < 256; i++)
30995     if (XOR (islower (i), ISLOWER (i))
30996         || toupper (i) != TOUPPER (i))
30997       return 2;
30998   return 0;
30999 }
31000 _ACEOF
31001 rm -f conftest$ac_exeext
31002 if { (ac_try="$ac_link"
31003 case "(($ac_try" in
31004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005   *) ac_try_echo=$ac_try;;
31006 esac
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008   (eval "$ac_link") 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31012   { (case "(($ac_try" in
31013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014   *) ac_try_echo=$ac_try;;
31015 esac
31016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017   (eval "$ac_try") 2>&5
31018   ac_status=$?
31019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020   (exit $ac_status); }; }; then
31021   :
31022 else
31023   echo "$as_me: program exited with status $ac_status" >&5
31024 echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31026
31027 ( exit $ac_status )
31028 ac_cv_header_stdc=no
31029 fi
31030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31031 fi
31032
31033
31034 fi
31035 fi
31036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31038 if test $ac_cv_header_stdc = yes; then
31039
31040 cat >>confdefs.h <<\_ACEOF
31041 #define STDC_HEADERS 1
31042 _ACEOF
31043
31044 fi
31045
31046 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31047 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31048 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31049   echo $ECHO_N "(cached) $ECHO_C" >&6
31050 else
31051   cat >conftest.$ac_ext <<_ACEOF
31052 /* confdefs.h.  */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h.  */
31057 #include <sys/types.h>
31058 int
31059 main ()
31060 {
31061 return makedev(0, 0);
31062   ;
31063   return 0;
31064 }
31065 _ACEOF
31066 rm -f conftest.$ac_objext conftest$ac_exeext
31067 if { (ac_try="$ac_link"
31068 case "(($ac_try" in
31069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070   *) ac_try_echo=$ac_try;;
31071 esac
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073   (eval "$ac_link") 2>conftest.er1
31074   ac_status=$?
31075   grep -v '^ *+' conftest.er1 >conftest.err
31076   rm -f conftest.er1
31077   cat conftest.err >&5
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); } && {
31080          test -z "$ac_c_werror_flag" ||
31081          test ! -s conftest.err
31082        } && test -s conftest$ac_exeext &&
31083        $as_test_x conftest$ac_exeext; then
31084   ac_cv_header_sys_types_h_makedev=yes
31085 else
31086   echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31088
31089         ac_cv_header_sys_types_h_makedev=no
31090 fi
31091
31092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31093       conftest$ac_exeext conftest.$ac_ext
31094
31095 fi
31096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31097 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31098
31099 if test $ac_cv_header_sys_types_h_makedev = no; then
31100 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31101   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31102 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31103 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31104   echo $ECHO_N "(cached) $ECHO_C" >&6
31105 fi
31106 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31107 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31108 else
31109   # Is the header compilable?
31110 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31111 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31112 cat >conftest.$ac_ext <<_ACEOF
31113 /* confdefs.h.  */
31114 _ACEOF
31115 cat confdefs.h >>conftest.$ac_ext
31116 cat >>conftest.$ac_ext <<_ACEOF
31117 /* end confdefs.h.  */
31118 $ac_includes_default
31119 #include <sys/mkdev.h>
31120 _ACEOF
31121 rm -f conftest.$ac_objext
31122 if { (ac_try="$ac_compile"
31123 case "(($ac_try" in
31124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125   *) ac_try_echo=$ac_try;;
31126 esac
31127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128   (eval "$ac_compile") 2>conftest.er1
31129   ac_status=$?
31130   grep -v '^ *+' conftest.er1 >conftest.err
31131   rm -f conftest.er1
31132   cat conftest.err >&5
31133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); } && {
31135          test -z "$ac_c_werror_flag" ||
31136          test ! -s conftest.err
31137        } && test -s conftest.$ac_objext; then
31138   ac_header_compiler=yes
31139 else
31140   echo "$as_me: failed program was:" >&5
31141 sed 's/^/| /' conftest.$ac_ext >&5
31142
31143         ac_header_compiler=no
31144 fi
31145
31146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31148 echo "${ECHO_T}$ac_header_compiler" >&6; }
31149
31150 # Is the header present?
31151 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31152 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31153 cat >conftest.$ac_ext <<_ACEOF
31154 /* confdefs.h.  */
31155 _ACEOF
31156 cat confdefs.h >>conftest.$ac_ext
31157 cat >>conftest.$ac_ext <<_ACEOF
31158 /* end confdefs.h.  */
31159 #include <sys/mkdev.h>
31160 _ACEOF
31161 if { (ac_try="$ac_cpp conftest.$ac_ext"
31162 case "(($ac_try" in
31163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164   *) ac_try_echo=$ac_try;;
31165 esac
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31168   ac_status=$?
31169   grep -v '^ *+' conftest.er1 >conftest.err
31170   rm -f conftest.er1
31171   cat conftest.err >&5
31172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173   (exit $ac_status); } >/dev/null && {
31174          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31175          test ! -s conftest.err
31176        }; then
31177   ac_header_preproc=yes
31178 else
31179   echo "$as_me: failed program was:" >&5
31180 sed 's/^/| /' conftest.$ac_ext >&5
31181
31182   ac_header_preproc=no
31183 fi
31184
31185 rm -f conftest.err conftest.$ac_ext
31186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31187 echo "${ECHO_T}$ac_header_preproc" >&6; }
31188
31189 # So?  What about this header?
31190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31191   yes:no: )
31192     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31193 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31194     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31195 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31196     ac_header_preproc=yes
31197     ;;
31198   no:yes:* )
31199     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31200 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31201     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31202 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31203     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31204 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31205     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31206 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31207     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31208 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31209     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31210 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31211
31212     ;;
31213 esac
31214 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31215 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31216 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31217   echo $ECHO_N "(cached) $ECHO_C" >&6
31218 else
31219   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31220 fi
31221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31222 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31223
31224 fi
31225 if test $ac_cv_header_sys_mkdev_h = yes; then
31226
31227 cat >>confdefs.h <<\_ACEOF
31228 #define MAJOR_IN_MKDEV 1
31229 _ACEOF
31230
31231 fi
31232
31233
31234
31235   if test $ac_cv_header_sys_mkdev_h = no; then
31236     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31237   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31238 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31239 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31240   echo $ECHO_N "(cached) $ECHO_C" >&6
31241 fi
31242 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31243 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31244 else
31245   # Is the header compilable?
31246 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31247 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31248 cat >conftest.$ac_ext <<_ACEOF
31249 /* confdefs.h.  */
31250 _ACEOF
31251 cat confdefs.h >>conftest.$ac_ext
31252 cat >>conftest.$ac_ext <<_ACEOF
31253 /* end confdefs.h.  */
31254 $ac_includes_default
31255 #include <sys/sysmacros.h>
31256 _ACEOF
31257 rm -f conftest.$ac_objext
31258 if { (ac_try="$ac_compile"
31259 case "(($ac_try" in
31260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31261   *) ac_try_echo=$ac_try;;
31262 esac
31263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31264   (eval "$ac_compile") 2>conftest.er1
31265   ac_status=$?
31266   grep -v '^ *+' conftest.er1 >conftest.err
31267   rm -f conftest.er1
31268   cat conftest.err >&5
31269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270   (exit $ac_status); } && {
31271          test -z "$ac_c_werror_flag" ||
31272          test ! -s conftest.err
31273        } && test -s conftest.$ac_objext; then
31274   ac_header_compiler=yes
31275 else
31276   echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31278
31279         ac_header_compiler=no
31280 fi
31281
31282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31284 echo "${ECHO_T}$ac_header_compiler" >&6; }
31285
31286 # Is the header present?
31287 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31288 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31289 cat >conftest.$ac_ext <<_ACEOF
31290 /* confdefs.h.  */
31291 _ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h.  */
31295 #include <sys/sysmacros.h>
31296 _ACEOF
31297 if { (ac_try="$ac_cpp conftest.$ac_ext"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31304   ac_status=$?
31305   grep -v '^ *+' conftest.er1 >conftest.err
31306   rm -f conftest.er1
31307   cat conftest.err >&5
31308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309   (exit $ac_status); } >/dev/null && {
31310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31311          test ! -s conftest.err
31312        }; then
31313   ac_header_preproc=yes
31314 else
31315   echo "$as_me: failed program was:" >&5
31316 sed 's/^/| /' conftest.$ac_ext >&5
31317
31318   ac_header_preproc=no
31319 fi
31320
31321 rm -f conftest.err conftest.$ac_ext
31322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31323 echo "${ECHO_T}$ac_header_preproc" >&6; }
31324
31325 # So?  What about this header?
31326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31327   yes:no: )
31328     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31329 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31330     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31331 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31332     ac_header_preproc=yes
31333     ;;
31334   no:yes:* )
31335     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31336 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31337     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31338 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31339     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31340 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31341     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31342 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31343     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31344 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31345     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31346 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31347
31348     ;;
31349 esac
31350 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31351 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31352 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31353   echo $ECHO_N "(cached) $ECHO_C" >&6
31354 else
31355   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31356 fi
31357 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31358 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31359
31360 fi
31361 if test $ac_cv_header_sys_sysmacros_h = yes; then
31362
31363 cat >>confdefs.h <<\_ACEOF
31364 #define MAJOR_IN_SYSMACROS 1
31365 _ACEOF
31366
31367 fi
31368
31369
31370   fi
31371 fi
31372
31373
31374
31375
31376
31377
31378 ac_header_dirent=no
31379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31380   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31381 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31384   echo $ECHO_N "(cached) $ECHO_C" >&6
31385 else
31386   cat >conftest.$ac_ext <<_ACEOF
31387 /* confdefs.h.  */
31388 _ACEOF
31389 cat confdefs.h >>conftest.$ac_ext
31390 cat >>conftest.$ac_ext <<_ACEOF
31391 /* end confdefs.h.  */
31392 #include <sys/types.h>
31393 #include <$ac_hdr>
31394
31395 int
31396 main ()
31397 {
31398 if ((DIR *) 0)
31399 return 0;
31400   ;
31401   return 0;
31402 }
31403 _ACEOF
31404 rm -f conftest.$ac_objext
31405 if { (ac_try="$ac_compile"
31406 case "(($ac_try" in
31407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408   *) ac_try_echo=$ac_try;;
31409 esac
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411   (eval "$ac_compile") 2>conftest.er1
31412   ac_status=$?
31413   grep -v '^ *+' conftest.er1 >conftest.err
31414   rm -f conftest.er1
31415   cat conftest.err >&5
31416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417   (exit $ac_status); } && {
31418          test -z "$ac_c_werror_flag" ||
31419          test ! -s conftest.err
31420        } && test -s conftest.$ac_objext; then
31421   eval "$as_ac_Header=yes"
31422 else
31423   echo "$as_me: failed program was:" >&5
31424 sed 's/^/| /' conftest.$ac_ext >&5
31425
31426         eval "$as_ac_Header=no"
31427 fi
31428
31429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31430 fi
31431 ac_res=`eval echo '${'$as_ac_Header'}'`
31432                { echo "$as_me:$LINENO: result: $ac_res" >&5
31433 echo "${ECHO_T}$ac_res" >&6; }
31434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31435   cat >>confdefs.h <<_ACEOF
31436 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31437 _ACEOF
31438
31439 ac_header_dirent=$ac_hdr; break
31440 fi
31441
31442 done
31443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31444 if test $ac_header_dirent = dirent.h; then
31445   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31447 if test "${ac_cv_search_opendir+set}" = set; then
31448   echo $ECHO_N "(cached) $ECHO_C" >&6
31449 else
31450   ac_func_search_save_LIBS=$LIBS
31451 cat >conftest.$ac_ext <<_ACEOF
31452 /* confdefs.h.  */
31453 _ACEOF
31454 cat confdefs.h >>conftest.$ac_ext
31455 cat >>conftest.$ac_ext <<_ACEOF
31456 /* end confdefs.h.  */
31457
31458 /* Override any GCC internal prototype to avoid an error.
31459    Use char because int might match the return type of a GCC
31460    builtin and then its argument prototype would still apply.  */
31461 #ifdef __cplusplus
31462 extern "C"
31463 #endif
31464 char opendir ();
31465 int
31466 main ()
31467 {
31468 return opendir ();
31469   ;
31470   return 0;
31471 }
31472 _ACEOF
31473 for ac_lib in '' dir; do
31474   if test -z "$ac_lib"; then
31475     ac_res="none required"
31476   else
31477     ac_res=-l$ac_lib
31478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31479   fi
31480   rm -f conftest.$ac_objext conftest$ac_exeext
31481 if { (ac_try="$ac_link"
31482 case "(($ac_try" in
31483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484   *) ac_try_echo=$ac_try;;
31485 esac
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487   (eval "$ac_link") 2>conftest.er1
31488   ac_status=$?
31489   grep -v '^ *+' conftest.er1 >conftest.err
31490   rm -f conftest.er1
31491   cat conftest.err >&5
31492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); } && {
31494          test -z "$ac_c_werror_flag" ||
31495          test ! -s conftest.err
31496        } && test -s conftest$ac_exeext &&
31497        $as_test_x conftest$ac_exeext; then
31498   ac_cv_search_opendir=$ac_res
31499 else
31500   echo "$as_me: failed program was:" >&5
31501 sed 's/^/| /' conftest.$ac_ext >&5
31502
31503
31504 fi
31505
31506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31507       conftest$ac_exeext
31508   if test "${ac_cv_search_opendir+set}" = set; then
31509   break
31510 fi
31511 done
31512 if test "${ac_cv_search_opendir+set}" = set; then
31513   :
31514 else
31515   ac_cv_search_opendir=no
31516 fi
31517 rm conftest.$ac_ext
31518 LIBS=$ac_func_search_save_LIBS
31519 fi
31520 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31521 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31522 ac_res=$ac_cv_search_opendir
31523 if test "$ac_res" != no; then
31524   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31525
31526 fi
31527
31528 else
31529   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31531 if test "${ac_cv_search_opendir+set}" = set; then
31532   echo $ECHO_N "(cached) $ECHO_C" >&6
31533 else
31534   ac_func_search_save_LIBS=$LIBS
31535 cat >conftest.$ac_ext <<_ACEOF
31536 /* confdefs.h.  */
31537 _ACEOF
31538 cat confdefs.h >>conftest.$ac_ext
31539 cat >>conftest.$ac_ext <<_ACEOF
31540 /* end confdefs.h.  */
31541
31542 /* Override any GCC internal prototype to avoid an error.
31543    Use char because int might match the return type of a GCC
31544    builtin and then its argument prototype would still apply.  */
31545 #ifdef __cplusplus
31546 extern "C"
31547 #endif
31548 char opendir ();
31549 int
31550 main ()
31551 {
31552 return opendir ();
31553   ;
31554   return 0;
31555 }
31556 _ACEOF
31557 for ac_lib in '' x; do
31558   if test -z "$ac_lib"; then
31559     ac_res="none required"
31560   else
31561     ac_res=-l$ac_lib
31562     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31563   fi
31564   rm -f conftest.$ac_objext conftest$ac_exeext
31565 if { (ac_try="$ac_link"
31566 case "(($ac_try" in
31567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31568   *) ac_try_echo=$ac_try;;
31569 esac
31570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31571   (eval "$ac_link") 2>conftest.er1
31572   ac_status=$?
31573   grep -v '^ *+' conftest.er1 >conftest.err
31574   rm -f conftest.er1
31575   cat conftest.err >&5
31576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); } && {
31578          test -z "$ac_c_werror_flag" ||
31579          test ! -s conftest.err
31580        } && test -s conftest$ac_exeext &&
31581        $as_test_x conftest$ac_exeext; then
31582   ac_cv_search_opendir=$ac_res
31583 else
31584   echo "$as_me: failed program was:" >&5
31585 sed 's/^/| /' conftest.$ac_ext >&5
31586
31587
31588 fi
31589
31590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31591       conftest$ac_exeext
31592   if test "${ac_cv_search_opendir+set}" = set; then
31593   break
31594 fi
31595 done
31596 if test "${ac_cv_search_opendir+set}" = set; then
31597   :
31598 else
31599   ac_cv_search_opendir=no
31600 fi
31601 rm conftest.$ac_ext
31602 LIBS=$ac_func_search_save_LIBS
31603 fi
31604 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31605 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31606 ac_res=$ac_cv_search_opendir
31607 if test "$ac_res" != no; then
31608   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31609
31610 fi
31611
31612 fi
31613
31614 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31615 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31616 if test "${ac_cv_header_stat_broken+set}" = set; then
31617   echo $ECHO_N "(cached) $ECHO_C" >&6
31618 else
31619   cat >conftest.$ac_ext <<_ACEOF
31620 /* confdefs.h.  */
31621 _ACEOF
31622 cat confdefs.h >>conftest.$ac_ext
31623 cat >>conftest.$ac_ext <<_ACEOF
31624 /* end confdefs.h.  */
31625 #include <sys/types.h>
31626 #include <sys/stat.h>
31627
31628 #if defined S_ISBLK && defined S_IFDIR
31629 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31630 #endif
31631
31632 #if defined S_ISBLK && defined S_IFCHR
31633 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31634 #endif
31635
31636 #if defined S_ISLNK && defined S_IFREG
31637 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31638 #endif
31639
31640 #if defined S_ISSOCK && defined S_IFREG
31641 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31642 #endif
31643
31644 _ACEOF
31645 rm -f conftest.$ac_objext
31646 if { (ac_try="$ac_compile"
31647 case "(($ac_try" in
31648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649   *) ac_try_echo=$ac_try;;
31650 esac
31651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652   (eval "$ac_compile") 2>conftest.er1
31653   ac_status=$?
31654   grep -v '^ *+' conftest.er1 >conftest.err
31655   rm -f conftest.er1
31656   cat conftest.err >&5
31657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658   (exit $ac_status); } && {
31659          test -z "$ac_c_werror_flag" ||
31660          test ! -s conftest.err
31661        } && test -s conftest.$ac_objext; then
31662   ac_cv_header_stat_broken=no
31663 else
31664   echo "$as_me: failed program was:" >&5
31665 sed 's/^/| /' conftest.$ac_ext >&5
31666
31667         ac_cv_header_stat_broken=yes
31668 fi
31669
31670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31671 fi
31672 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31673 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31674 if test $ac_cv_header_stat_broken = yes; then
31675
31676 cat >>confdefs.h <<\_ACEOF
31677 #define STAT_MACROS_BROKEN 1
31678 _ACEOF
31679
31680 fi
31681
31682 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31683 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31684 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31685   echo $ECHO_N "(cached) $ECHO_C" >&6
31686 else
31687   cat >conftest.$ac_ext <<_ACEOF
31688 /* confdefs.h.  */
31689 _ACEOF
31690 cat confdefs.h >>conftest.$ac_ext
31691 cat >>conftest.$ac_ext <<_ACEOF
31692 /* end confdefs.h.  */
31693 #include <sys/types.h>
31694 #include <sys/wait.h>
31695 #ifndef WEXITSTATUS
31696 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31697 #endif
31698 #ifndef WIFEXITED
31699 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31700 #endif
31701
31702 int
31703 main ()
31704 {
31705   int s;
31706   wait (&s);
31707   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31708   ;
31709   return 0;
31710 }
31711 _ACEOF
31712 rm -f conftest.$ac_objext
31713 if { (ac_try="$ac_compile"
31714 case "(($ac_try" in
31715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31716   *) ac_try_echo=$ac_try;;
31717 esac
31718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31719   (eval "$ac_compile") 2>conftest.er1
31720   ac_status=$?
31721   grep -v '^ *+' conftest.er1 >conftest.err
31722   rm -f conftest.er1
31723   cat conftest.err >&5
31724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725   (exit $ac_status); } && {
31726          test -z "$ac_c_werror_flag" ||
31727          test ! -s conftest.err
31728        } && test -s conftest.$ac_objext; then
31729   ac_cv_header_sys_wait_h=yes
31730 else
31731   echo "$as_me: failed program was:" >&5
31732 sed 's/^/| /' conftest.$ac_ext >&5
31733
31734         ac_cv_header_sys_wait_h=no
31735 fi
31736
31737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31738 fi
31739 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31740 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31741 if test $ac_cv_header_sys_wait_h = yes; then
31742
31743 cat >>confdefs.h <<\_ACEOF
31744 #define HAVE_SYS_WAIT_H 1
31745 _ACEOF
31746
31747 fi
31748
31749 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31750 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31751 if test "${ac_cv_header_time+set}" = set; then
31752   echo $ECHO_N "(cached) $ECHO_C" >&6
31753 else
31754   cat >conftest.$ac_ext <<_ACEOF
31755 /* confdefs.h.  */
31756 _ACEOF
31757 cat confdefs.h >>conftest.$ac_ext
31758 cat >>conftest.$ac_ext <<_ACEOF
31759 /* end confdefs.h.  */
31760 #include <sys/types.h>
31761 #include <sys/time.h>
31762 #include <time.h>
31763
31764 int
31765 main ()
31766 {
31767 if ((struct tm *) 0)
31768 return 0;
31769   ;
31770   return 0;
31771 }
31772 _ACEOF
31773 rm -f conftest.$ac_objext
31774 if { (ac_try="$ac_compile"
31775 case "(($ac_try" in
31776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777   *) ac_try_echo=$ac_try;;
31778 esac
31779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780   (eval "$ac_compile") 2>conftest.er1
31781   ac_status=$?
31782   grep -v '^ *+' conftest.er1 >conftest.err
31783   rm -f conftest.er1
31784   cat conftest.err >&5
31785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786   (exit $ac_status); } && {
31787          test -z "$ac_c_werror_flag" ||
31788          test ! -s conftest.err
31789        } && test -s conftest.$ac_objext; then
31790   ac_cv_header_time=yes
31791 else
31792   echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31794
31795         ac_cv_header_time=no
31796 fi
31797
31798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31799 fi
31800 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31801 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31802 if test $ac_cv_header_time = yes; then
31803
31804 cat >>confdefs.h <<\_ACEOF
31805 #define TIME_WITH_SYS_TIME 1
31806 _ACEOF
31807
31808 fi
31809
31810 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31811 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31812 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31813   echo $ECHO_N "(cached) $ECHO_C" >&6
31814 else
31815   cat >conftest.$ac_ext <<_ACEOF
31816 /* confdefs.h.  */
31817 _ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h.  */
31821 $ac_includes_default
31822 int
31823 main ()
31824 {
31825 static struct stat ac_aggr;
31826 if (ac_aggr.st_blksize)
31827 return 0;
31828   ;
31829   return 0;
31830 }
31831 _ACEOF
31832 rm -f conftest.$ac_objext
31833 if { (ac_try="$ac_compile"
31834 case "(($ac_try" in
31835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836   *) ac_try_echo=$ac_try;;
31837 esac
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839   (eval "$ac_compile") 2>conftest.er1
31840   ac_status=$?
31841   grep -v '^ *+' conftest.er1 >conftest.err
31842   rm -f conftest.er1
31843   cat conftest.err >&5
31844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); } && {
31846          test -z "$ac_c_werror_flag" ||
31847          test ! -s conftest.err
31848        } && test -s conftest.$ac_objext; then
31849   ac_cv_member_struct_stat_st_blksize=yes
31850 else
31851   echo "$as_me: failed program was:" >&5
31852 sed 's/^/| /' conftest.$ac_ext >&5
31853
31854         cat >conftest.$ac_ext <<_ACEOF
31855 /* confdefs.h.  */
31856 _ACEOF
31857 cat confdefs.h >>conftest.$ac_ext
31858 cat >>conftest.$ac_ext <<_ACEOF
31859 /* end confdefs.h.  */
31860 $ac_includes_default
31861 int
31862 main ()
31863 {
31864 static struct stat ac_aggr;
31865 if (sizeof ac_aggr.st_blksize)
31866 return 0;
31867   ;
31868   return 0;
31869 }
31870 _ACEOF
31871 rm -f conftest.$ac_objext
31872 if { (ac_try="$ac_compile"
31873 case "(($ac_try" in
31874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875   *) ac_try_echo=$ac_try;;
31876 esac
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878   (eval "$ac_compile") 2>conftest.er1
31879   ac_status=$?
31880   grep -v '^ *+' conftest.er1 >conftest.err
31881   rm -f conftest.er1
31882   cat conftest.err >&5
31883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); } && {
31885          test -z "$ac_c_werror_flag" ||
31886          test ! -s conftest.err
31887        } && test -s conftest.$ac_objext; then
31888   ac_cv_member_struct_stat_st_blksize=yes
31889 else
31890   echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31892
31893         ac_cv_member_struct_stat_st_blksize=no
31894 fi
31895
31896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31897 fi
31898
31899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31900 fi
31901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31903 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31904
31905 cat >>confdefs.h <<_ACEOF
31906 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31907 _ACEOF
31908
31909
31910 cat >>confdefs.h <<\_ACEOF
31911 #define HAVE_ST_BLKSIZE 1
31912 _ACEOF
31913
31914 fi
31915
31916
31917 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31918 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31919 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31920   echo $ECHO_N "(cached) $ECHO_C" >&6
31921 else
31922   cat >conftest.$ac_ext <<_ACEOF
31923 /* confdefs.h.  */
31924 _ACEOF
31925 cat confdefs.h >>conftest.$ac_ext
31926 cat >>conftest.$ac_ext <<_ACEOF
31927 /* end confdefs.h.  */
31928 $ac_includes_default
31929 int
31930 main ()
31931 {
31932 static struct stat ac_aggr;
31933 if (ac_aggr.st_blocks)
31934 return 0;
31935   ;
31936   return 0;
31937 }
31938 _ACEOF
31939 rm -f conftest.$ac_objext
31940 if { (ac_try="$ac_compile"
31941 case "(($ac_try" in
31942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943   *) ac_try_echo=$ac_try;;
31944 esac
31945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946   (eval "$ac_compile") 2>conftest.er1
31947   ac_status=$?
31948   grep -v '^ *+' conftest.er1 >conftest.err
31949   rm -f conftest.er1
31950   cat conftest.err >&5
31951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952   (exit $ac_status); } && {
31953          test -z "$ac_c_werror_flag" ||
31954          test ! -s conftest.err
31955        } && test -s conftest.$ac_objext; then
31956   ac_cv_member_struct_stat_st_blocks=yes
31957 else
31958   echo "$as_me: failed program was:" >&5
31959 sed 's/^/| /' conftest.$ac_ext >&5
31960
31961         cat >conftest.$ac_ext <<_ACEOF
31962 /* confdefs.h.  */
31963 _ACEOF
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h.  */
31967 $ac_includes_default
31968 int
31969 main ()
31970 {
31971 static struct stat ac_aggr;
31972 if (sizeof ac_aggr.st_blocks)
31973 return 0;
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_compile") 2>conftest.er1
31986   ac_status=$?
31987   grep -v '^ *+' conftest.er1 >conftest.err
31988   rm -f conftest.er1
31989   cat conftest.err >&5
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } && {
31992          test -z "$ac_c_werror_flag" ||
31993          test ! -s conftest.err
31994        } && test -s conftest.$ac_objext; then
31995   ac_cv_member_struct_stat_st_blocks=yes
31996 else
31997   echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
31999
32000         ac_cv_member_struct_stat_st_blocks=no
32001 fi
32002
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32004 fi
32005
32006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32007 fi
32008 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32009 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32010 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32011
32012 cat >>confdefs.h <<_ACEOF
32013 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32014 _ACEOF
32015
32016
32017 cat >>confdefs.h <<\_ACEOF
32018 #define HAVE_ST_BLOCKS 1
32019 _ACEOF
32020
32021 else
32022   case " $LIBOBJS " in
32023   *" fileblocks.$ac_objext "* ) ;;
32024   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32025  ;;
32026 esac
32027
32028 fi
32029
32030
32031 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32033 if test "${ac_cv_struct_tm+set}" = set; then
32034   echo $ECHO_N "(cached) $ECHO_C" >&6
32035 else
32036   cat >conftest.$ac_ext <<_ACEOF
32037 /* confdefs.h.  */
32038 _ACEOF
32039 cat confdefs.h >>conftest.$ac_ext
32040 cat >>conftest.$ac_ext <<_ACEOF
32041 /* end confdefs.h.  */
32042 #include <sys/types.h>
32043 #include <time.h>
32044
32045 int
32046 main ()
32047 {
32048 struct tm tm;
32049                                      int *p = &tm.tm_sec;
32050                                      return !p;
32051   ;
32052   return 0;
32053 }
32054 _ACEOF
32055 rm -f conftest.$ac_objext
32056 if { (ac_try="$ac_compile"
32057 case "(($ac_try" in
32058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32059   *) ac_try_echo=$ac_try;;
32060 esac
32061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32062   (eval "$ac_compile") 2>conftest.er1
32063   ac_status=$?
32064   grep -v '^ *+' conftest.er1 >conftest.err
32065   rm -f conftest.er1
32066   cat conftest.err >&5
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); } && {
32069          test -z "$ac_c_werror_flag" ||
32070          test ! -s conftest.err
32071        } && test -s conftest.$ac_objext; then
32072   ac_cv_struct_tm=time.h
32073 else
32074   echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32076
32077         ac_cv_struct_tm=sys/time.h
32078 fi
32079
32080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32081 fi
32082 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32083 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32084 if test $ac_cv_struct_tm = sys/time.h; then
32085
32086 cat >>confdefs.h <<\_ACEOF
32087 #define TM_IN_SYS_TIME 1
32088 _ACEOF
32089
32090 fi
32091
32092 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32093 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32094 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32095   echo $ECHO_N "(cached) $ECHO_C" >&6
32096 else
32097   cat >conftest.$ac_ext <<_ACEOF
32098 /* confdefs.h.  */
32099 _ACEOF
32100 cat confdefs.h >>conftest.$ac_ext
32101 cat >>conftest.$ac_ext <<_ACEOF
32102 /* end confdefs.h.  */
32103 #include <sys/types.h>
32104 #include <$ac_cv_struct_tm>
32105
32106
32107 int
32108 main ()
32109 {
32110 static struct tm ac_aggr;
32111 if (ac_aggr.tm_zone)
32112 return 0;
32113   ;
32114   return 0;
32115 }
32116 _ACEOF
32117 rm -f conftest.$ac_objext
32118 if { (ac_try="$ac_compile"
32119 case "(($ac_try" in
32120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121   *) ac_try_echo=$ac_try;;
32122 esac
32123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124   (eval "$ac_compile") 2>conftest.er1
32125   ac_status=$?
32126   grep -v '^ *+' conftest.er1 >conftest.err
32127   rm -f conftest.er1
32128   cat conftest.err >&5
32129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130   (exit $ac_status); } && {
32131          test -z "$ac_c_werror_flag" ||
32132          test ! -s conftest.err
32133        } && test -s conftest.$ac_objext; then
32134   ac_cv_member_struct_tm_tm_zone=yes
32135 else
32136   echo "$as_me: failed program was:" >&5
32137 sed 's/^/| /' conftest.$ac_ext >&5
32138
32139         cat >conftest.$ac_ext <<_ACEOF
32140 /* confdefs.h.  */
32141 _ACEOF
32142 cat confdefs.h >>conftest.$ac_ext
32143 cat >>conftest.$ac_ext <<_ACEOF
32144 /* end confdefs.h.  */
32145 #include <sys/types.h>
32146 #include <$ac_cv_struct_tm>
32147
32148
32149 int
32150 main ()
32151 {
32152 static struct tm ac_aggr;
32153 if (sizeof ac_aggr.tm_zone)
32154 return 0;
32155   ;
32156   return 0;
32157 }
32158 _ACEOF
32159 rm -f conftest.$ac_objext
32160 if { (ac_try="$ac_compile"
32161 case "(($ac_try" in
32162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163   *) ac_try_echo=$ac_try;;
32164 esac
32165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166   (eval "$ac_compile") 2>conftest.er1
32167   ac_status=$?
32168   grep -v '^ *+' conftest.er1 >conftest.err
32169   rm -f conftest.er1
32170   cat conftest.err >&5
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); } && {
32173          test -z "$ac_c_werror_flag" ||
32174          test ! -s conftest.err
32175        } && test -s conftest.$ac_objext; then
32176   ac_cv_member_struct_tm_tm_zone=yes
32177 else
32178   echo "$as_me: failed program was:" >&5
32179 sed 's/^/| /' conftest.$ac_ext >&5
32180
32181         ac_cv_member_struct_tm_tm_zone=no
32182 fi
32183
32184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32185 fi
32186
32187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32188 fi
32189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32190 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32191 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32192
32193 cat >>confdefs.h <<_ACEOF
32194 #define HAVE_STRUCT_TM_TM_ZONE 1
32195 _ACEOF
32196
32197
32198 fi
32199
32200 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32201
32202 cat >>confdefs.h <<\_ACEOF
32203 #define HAVE_TM_ZONE 1
32204 _ACEOF
32205
32206 else
32207   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32208 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32209 if test "${ac_cv_have_decl_tzname+set}" = set; then
32210   echo $ECHO_N "(cached) $ECHO_C" >&6
32211 else
32212   cat >conftest.$ac_ext <<_ACEOF
32213 /* confdefs.h.  */
32214 _ACEOF
32215 cat confdefs.h >>conftest.$ac_ext
32216 cat >>conftest.$ac_ext <<_ACEOF
32217 /* end confdefs.h.  */
32218 #include <time.h>
32219
32220 int
32221 main ()
32222 {
32223 #ifndef tzname
32224   (void) tzname;
32225 #endif
32226
32227   ;
32228   return 0;
32229 }
32230 _ACEOF
32231 rm -f conftest.$ac_objext
32232 if { (ac_try="$ac_compile"
32233 case "(($ac_try" in
32234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235   *) ac_try_echo=$ac_try;;
32236 esac
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238   (eval "$ac_compile") 2>conftest.er1
32239   ac_status=$?
32240   grep -v '^ *+' conftest.er1 >conftest.err
32241   rm -f conftest.er1
32242   cat conftest.err >&5
32243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); } && {
32245          test -z "$ac_c_werror_flag" ||
32246          test ! -s conftest.err
32247        } && test -s conftest.$ac_objext; then
32248   ac_cv_have_decl_tzname=yes
32249 else
32250   echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32252
32253         ac_cv_have_decl_tzname=no
32254 fi
32255
32256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257 fi
32258 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32259 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32260 if test $ac_cv_have_decl_tzname = yes; then
32261
32262 cat >>confdefs.h <<_ACEOF
32263 #define HAVE_DECL_TZNAME 1
32264 _ACEOF
32265
32266
32267 else
32268   cat >>confdefs.h <<_ACEOF
32269 #define HAVE_DECL_TZNAME 0
32270 _ACEOF
32271
32272
32273 fi
32274
32275
32276   { echo "$as_me:$LINENO: checking for tzname" >&5
32277 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32278 if test "${ac_cv_var_tzname+set}" = set; then
32279   echo $ECHO_N "(cached) $ECHO_C" >&6
32280 else
32281   cat >conftest.$ac_ext <<_ACEOF
32282 /* confdefs.h.  */
32283 _ACEOF
32284 cat confdefs.h >>conftest.$ac_ext
32285 cat >>conftest.$ac_ext <<_ACEOF
32286 /* end confdefs.h.  */
32287 #include <time.h>
32288 #if !HAVE_DECL_TZNAME
32289 extern char *tzname[];
32290 #endif
32291
32292 int
32293 main ()
32294 {
32295 return tzname[0][0];
32296   ;
32297   return 0;
32298 }
32299 _ACEOF
32300 rm -f conftest.$ac_objext conftest$ac_exeext
32301 if { (ac_try="$ac_link"
32302 case "(($ac_try" in
32303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304   *) ac_try_echo=$ac_try;;
32305 esac
32306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307   (eval "$ac_link") 2>conftest.er1
32308   ac_status=$?
32309   grep -v '^ *+' conftest.er1 >conftest.err
32310   rm -f conftest.er1
32311   cat conftest.err >&5
32312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313   (exit $ac_status); } && {
32314          test -z "$ac_c_werror_flag" ||
32315          test ! -s conftest.err
32316        } && test -s conftest$ac_exeext &&
32317        $as_test_x conftest$ac_exeext; then
32318   ac_cv_var_tzname=yes
32319 else
32320   echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32322
32323         ac_cv_var_tzname=no
32324 fi
32325
32326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32327       conftest$ac_exeext conftest.$ac_ext
32328 fi
32329 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32330 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32331   if test $ac_cv_var_tzname = yes; then
32332
32333 cat >>confdefs.h <<\_ACEOF
32334 #define HAVE_TZNAME 1
32335 _ACEOF
32336
32337   fi
32338 fi
32339
32340
32341 { echo "$as_me:$LINENO: checking for utime.h" >&5
32342 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32343 if test "${ba_cv_header_utime_h+set}" = set; then
32344   echo $ECHO_N "(cached) $ECHO_C" >&6
32345 else
32346
32347        cat >conftest.$ac_ext <<_ACEOF
32348 /* confdefs.h.  */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h.  */
32353
32354               #include <sys/types.h>
32355               #include <utime.h>
32356
32357 int
32358 main ()
32359 {
32360
32361               struct utimbuf foo
32362
32363   ;
32364   return 0;
32365 }
32366 _ACEOF
32367 rm -f conftest.$ac_objext
32368 if { (ac_try="$ac_compile"
32369 case "(($ac_try" in
32370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371   *) ac_try_echo=$ac_try;;
32372 esac
32373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374   (eval "$ac_compile") 2>conftest.er1
32375   ac_status=$?
32376   grep -v '^ *+' conftest.er1 >conftest.err
32377   rm -f conftest.er1
32378   cat conftest.err >&5
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); } && {
32381          test -z "$ac_c_werror_flag" ||
32382          test ! -s conftest.err
32383        } && test -s conftest.$ac_objext; then
32384
32385               ba_cv_header_utime_h=yes
32386
32387 else
32388   echo "$as_me: failed program was:" >&5
32389 sed 's/^/| /' conftest.$ac_ext >&5
32390
32391
32392               ba_cv_header_utime_h=no
32393
32394
32395 fi
32396
32397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32398
32399
32400 fi
32401 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32402 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32403 test $ba_cv_header_utime_h = yes &&
32404 cat >>confdefs.h <<\_ACEOF
32405 #define HAVE_UTIME_H 1
32406 _ACEOF
32407
32408
32409 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32410 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32411 if test "${ba_cv_header_socklen_t+set}" = set; then
32412   echo $ECHO_N "(cached) $ECHO_C" >&6
32413 else
32414
32415        cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h.  */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h.  */
32421
32422               #include <sys/types.h>
32423               #include <sys/socket.h>
32424
32425 int
32426 main ()
32427 {
32428
32429               socklen_t x
32430
32431   ;
32432   return 0;
32433 }
32434 _ACEOF
32435 rm -f conftest.$ac_objext
32436 if { (ac_try="$ac_compile"
32437 case "(($ac_try" in
32438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439   *) ac_try_echo=$ac_try;;
32440 esac
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442   (eval "$ac_compile") 2>conftest.er1
32443   ac_status=$?
32444   grep -v '^ *+' conftest.er1 >conftest.err
32445   rm -f conftest.er1
32446   cat conftest.err >&5
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); } && {
32449          test -z "$ac_c_werror_flag" ||
32450          test ! -s conftest.err
32451        } && test -s conftest.$ac_objext; then
32452
32453              ba_cv_header_socklen_t=yes
32454
32455 else
32456   echo "$as_me: failed program was:" >&5
32457 sed 's/^/| /' conftest.$ac_ext >&5
32458
32459
32460              ba_cv_header_socklen_t=no
32461
32462
32463 fi
32464
32465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32466
32467
32468 fi
32469 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32470 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32471 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32472 #define HAVE_SOCKLEN_T 1
32473 _ACEOF
32474
32475
32476 { echo "$as_me:$LINENO: checking for bigendian" >&5
32477 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32478 if test "${ba_cv_bigendian+set}" = set; then
32479   echo $ECHO_N "(cached) $ECHO_C" >&6
32480 else
32481
32482        if test "$cross_compiling" = yes; then
32483
32484              ba_cv_bigendian=no
32485
32486
32487 else
32488   cat >conftest.$ac_ext <<_ACEOF
32489 /* confdefs.h.  */
32490 _ACEOF
32491 cat confdefs.h >>conftest.$ac_ext
32492 cat >>conftest.$ac_ext <<_ACEOF
32493 /* end confdefs.h.  */
32494
32495               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32496
32497 _ACEOF
32498 rm -f conftest$ac_exeext
32499 if { (ac_try="$ac_link"
32500 case "(($ac_try" in
32501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502   *) ac_try_echo=$ac_try;;
32503 esac
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505   (eval "$ac_link") 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32509   { (case "(($ac_try" in
32510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511   *) ac_try_echo=$ac_try;;
32512 esac
32513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514   (eval "$ac_try") 2>&5
32515   ac_status=$?
32516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517   (exit $ac_status); }; }; then
32518
32519              ba_cv_bigendian=yes
32520
32521 else
32522   echo "$as_me: program exited with status $ac_status" >&5
32523 echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32525
32526 ( exit $ac_status )
32527
32528              ba_cv_bigendian=no
32529
32530 fi
32531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32532 fi
32533
32534
32535
32536
32537 fi
32538 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32539 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32540 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32541 #define HAVE_BIGENDIAN 1
32542 _ACEOF
32543
32544
32545 ac_ext=cpp
32546 ac_cpp='$CXXCPP $CPPFLAGS'
32547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32550
32551 { echo "$as_me:$LINENO: checking for typeof" >&5
32552 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32553 if test "${ba_cv_have_typeof+set}" = set; then
32554   echo $ECHO_N "(cached) $ECHO_C" >&6
32555 else
32556
32557        if test "$cross_compiling" = yes; then
32558
32559               ba_cv_have_typeof=no
32560
32561
32562 else
32563   cat >conftest.$ac_ext <<_ACEOF
32564 /* confdefs.h.  */
32565 _ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h.  */
32569
32570               main(){char *a = 0; a = (typeof a)a;}
32571
32572 _ACEOF
32573 rm -f conftest$ac_exeext
32574 if { (ac_try="$ac_link"
32575 case "(($ac_try" in
32576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577   *) ac_try_echo=$ac_try;;
32578 esac
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580   (eval "$ac_link") 2>&5
32581   ac_status=$?
32582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32584   { (case "(($ac_try" in
32585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586   *) ac_try_echo=$ac_try;;
32587 esac
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589   (eval "$ac_try") 2>&5
32590   ac_status=$?
32591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592   (exit $ac_status); }; }; then
32593
32594               ba_cv_have_typeof=yes
32595
32596 else
32597   echo "$as_me: program exited with status $ac_status" >&5
32598 echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601 ( exit $ac_status )
32602
32603               ba_cv_have_typeof=no
32604
32605 fi
32606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32607 fi
32608
32609
32610
32611
32612 fi
32613 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32614 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32615 test $ba_cv_have_typeof = yes &&
32616 cat >>confdefs.h <<\_ACEOF
32617 #define HAVE_TYPEOF 1
32618 _ACEOF
32619
32620 ac_ext=c
32621 ac_cpp='$CPP $CPPFLAGS'
32622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32625
32626
32627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32629 if test "${ac_cv_c_const+set}" = set; then
32630   echo $ECHO_N "(cached) $ECHO_C" >&6
32631 else
32632   cat >conftest.$ac_ext <<_ACEOF
32633 /* confdefs.h.  */
32634 _ACEOF
32635 cat confdefs.h >>conftest.$ac_ext
32636 cat >>conftest.$ac_ext <<_ACEOF
32637 /* end confdefs.h.  */
32638
32639 int
32640 main ()
32641 {
32642 /* FIXME: Include the comments suggested by Paul. */
32643 #ifndef __cplusplus
32644   /* Ultrix mips cc rejects this.  */
32645   typedef int charset[2];
32646   const charset cs;
32647   /* SunOS 4.1.1 cc rejects this.  */
32648   char const *const *pcpcc;
32649   char **ppc;
32650   /* NEC SVR4.0.2 mips cc rejects this.  */
32651   struct point {int x, y;};
32652   static struct point const zero = {0,0};
32653   /* AIX XL C 1.02.0.0 rejects this.
32654      It does not let you subtract one const X* pointer from another in
32655      an arm of an if-expression whose if-part is not a constant
32656      expression */
32657   const char *g = "string";
32658   pcpcc = &g + (g ? g-g : 0);
32659   /* HPUX 7.0 cc rejects these. */
32660   ++pcpcc;
32661   ppc = (char**) pcpcc;
32662   pcpcc = (char const *const *) ppc;
32663   { /* SCO 3.2v4 cc rejects this.  */
32664     char *t;
32665     char const *s = 0 ? (char *) 0 : (char const *) 0;
32666
32667     *t++ = 0;
32668     if (s) return 0;
32669   }
32670   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32671     int x[] = {25, 17};
32672     const int *foo = &x[0];
32673     ++foo;
32674   }
32675   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32676     typedef const int *iptr;
32677     iptr p = 0;
32678     ++p;
32679   }
32680   { /* AIX XL C 1.02.0.0 rejects this saying
32681        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32682     struct s { int j; const int *ap[3]; };
32683     struct s *b; b->j = 5;
32684   }
32685   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32686     const int foo = 10;
32687     if (!foo) return 0;
32688   }
32689   return !cs[0] && !zero.x;
32690 #endif
32691
32692   ;
32693   return 0;
32694 }
32695 _ACEOF
32696 rm -f conftest.$ac_objext
32697 if { (ac_try="$ac_compile"
32698 case "(($ac_try" in
32699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700   *) ac_try_echo=$ac_try;;
32701 esac
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703   (eval "$ac_compile") 2>conftest.er1
32704   ac_status=$?
32705   grep -v '^ *+' conftest.er1 >conftest.err
32706   rm -f conftest.er1
32707   cat conftest.err >&5
32708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709   (exit $ac_status); } && {
32710          test -z "$ac_c_werror_flag" ||
32711          test ! -s conftest.err
32712        } && test -s conftest.$ac_objext; then
32713   ac_cv_c_const=yes
32714 else
32715   echo "$as_me: failed program was:" >&5
32716 sed 's/^/| /' conftest.$ac_ext >&5
32717
32718         ac_cv_c_const=no
32719 fi
32720
32721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32722 fi
32723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32725 if test $ac_cv_c_const = no; then
32726
32727 cat >>confdefs.h <<\_ACEOF
32728 #define const
32729 _ACEOF
32730
32731 fi
32732
32733
32734 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32735 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32736 fstype=no
32737 # The order of these tests is important.
32738 cat >conftest.$ac_ext <<_ACEOF
32739 /* confdefs.h.  */
32740 _ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h.  */
32744
32745        #include <sys/statvfs.h>
32746        #include <sys/fstyp.h>
32747
32748 _ACEOF
32749 if { (ac_try="$ac_cpp conftest.$ac_ext"
32750 case "(($ac_try" in
32751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752   *) ac_try_echo=$ac_try;;
32753 esac
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32756   ac_status=$?
32757   grep -v '^ *+' conftest.er1 >conftest.err
32758   rm -f conftest.er1
32759   cat conftest.err >&5
32760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761   (exit $ac_status); } >/dev/null && {
32762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32763          test ! -s conftest.err
32764        }; then
32765   cat >>confdefs.h <<\_ACEOF
32766 #define FSTYPE_STATVFS 1
32767 _ACEOF
32768  fstype=SVR4
32769
32770 else
32771   echo "$as_me: failed program was:" >&5
32772 sed 's/^/| /' conftest.$ac_ext >&5
32773
32774
32775 fi
32776
32777 rm -f conftest.err conftest.$ac_ext
32778 if test $fstype = no; then
32779    cat >conftest.$ac_ext <<_ACEOF
32780 /* confdefs.h.  */
32781 _ACEOF
32782 cat confdefs.h >>conftest.$ac_ext
32783 cat >>conftest.$ac_ext <<_ACEOF
32784 /* end confdefs.h.  */
32785
32786           #include <sys/statfs.h>
32787           #include <sys/fstyp.h>
32788
32789 _ACEOF
32790 if { (ac_try="$ac_cpp conftest.$ac_ext"
32791 case "(($ac_try" in
32792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793   *) ac_try_echo=$ac_try;;
32794 esac
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32797   ac_status=$?
32798   grep -v '^ *+' conftest.er1 >conftest.err
32799   rm -f conftest.er1
32800   cat conftest.err >&5
32801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802   (exit $ac_status); } >/dev/null && {
32803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32804          test ! -s conftest.err
32805        }; then
32806   cat >>confdefs.h <<\_ACEOF
32807 #define FSTYPE_USG_STATFS 1
32808 _ACEOF
32809  fstype=SVR3
32810
32811 else
32812   echo "$as_me: failed program was:" >&5
32813 sed 's/^/| /' conftest.$ac_ext >&5
32814
32815
32816 fi
32817
32818 rm -f conftest.err conftest.$ac_ext
32819 fi
32820 if test $fstype = no; then
32821    cat >conftest.$ac_ext <<_ACEOF
32822 /* confdefs.h.  */
32823 _ACEOF
32824 cat confdefs.h >>conftest.$ac_ext
32825 cat >>conftest.$ac_ext <<_ACEOF
32826 /* end confdefs.h.  */
32827
32828           #include <sys/statfs.h>
32829           #include <sys/vmount.h>
32830
32831 _ACEOF
32832 if { (ac_try="$ac_cpp conftest.$ac_ext"
32833 case "(($ac_try" in
32834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835   *) ac_try_echo=$ac_try;;
32836 esac
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32839   ac_status=$?
32840   grep -v '^ *+' conftest.er1 >conftest.err
32841   rm -f conftest.er1
32842   cat conftest.err >&5
32843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844   (exit $ac_status); } >/dev/null && {
32845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32846          test ! -s conftest.err
32847        }; then
32848   cat >>confdefs.h <<\_ACEOF
32849 #define FSTYPE_AIX_STATFS 1
32850 _ACEOF
32851  fstype=AIX
32852
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857
32858 fi
32859
32860 rm -f conftest.err conftest.$ac_ext
32861 fi
32862 if test $fstype = no; then
32863    cat >conftest.$ac_ext <<_ACEOF
32864 /* confdefs.h.  */
32865 _ACEOF
32866 cat confdefs.h >>conftest.$ac_ext
32867 cat >>conftest.$ac_ext <<_ACEOF
32868 /* end confdefs.h.  */
32869
32870           #include <mntent.h>
32871
32872 _ACEOF
32873 if { (ac_try="$ac_cpp conftest.$ac_ext"
32874 case "(($ac_try" in
32875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32876   *) ac_try_echo=$ac_try;;
32877 esac
32878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32880   ac_status=$?
32881   grep -v '^ *+' conftest.er1 >conftest.err
32882   rm -f conftest.er1
32883   cat conftest.err >&5
32884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885   (exit $ac_status); } >/dev/null && {
32886          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32887          test ! -s conftest.err
32888        }; then
32889   cat >>confdefs.h <<\_ACEOF
32890 #define FSTYPE_MNTENT 1
32891 _ACEOF
32892  fstype=4.3BSD
32893
32894 else
32895   echo "$as_me: failed program was:" >&5
32896 sed 's/^/| /' conftest.$ac_ext >&5
32897
32898
32899 fi
32900
32901 rm -f conftest.err conftest.$ac_ext
32902 fi
32903 if test $fstype = no; then
32904    cat >conftest.$ac_ext <<_ACEOF
32905 /* confdefs.h.  */
32906 _ACEOF
32907 cat confdefs.h >>conftest.$ac_ext
32908 cat >>conftest.$ac_ext <<_ACEOF
32909 /* end confdefs.h.  */
32910 #include <sys/mount.h>
32911
32912 _ACEOF
32913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32914   $EGREP "f_type;" >/dev/null 2>&1; then
32915   cat >>confdefs.h <<\_ACEOF
32916 #define FSTYPE_STATFS 1
32917 _ACEOF
32918  fstype=4.4BSD/OSF1
32919 fi
32920 rm -f conftest*
32921
32922 fi
32923 if test $fstype = no; then
32924    cat >conftest.$ac_ext <<_ACEOF
32925 /* confdefs.h.  */
32926 _ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h.  */
32930
32931           #include <sys/mount.h>
32932           #include <sys/fs_types.h>
32933
32934 _ACEOF
32935 if { (ac_try="$ac_cpp conftest.$ac_ext"
32936 case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32942   ac_status=$?
32943   grep -v '^ *+' conftest.er1 >conftest.err
32944   rm -f conftest.er1
32945   cat conftest.err >&5
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } >/dev/null && {
32948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32949          test ! -s conftest.err
32950        }; then
32951   cat >>confdefs.h <<\_ACEOF
32952 #define FSTYPE_GETMNT 1
32953 _ACEOF
32954  fstype=Ultrix
32955
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960
32961 fi
32962
32963 rm -f conftest.err conftest.$ac_ext
32964 fi
32965 { echo "$as_me:$LINENO: result: $fstype" >&5
32966 echo "${ECHO_T}$fstype" >&6; }
32967
32968 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32969   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32970 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32971 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32972   echo $ECHO_N "(cached) $ECHO_C" >&6
32973 fi
32974 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32975 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32976 else
32977   # Is the header compilable?
32978 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32979 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32980 cat >conftest.$ac_ext <<_ACEOF
32981 /* confdefs.h.  */
32982 _ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h.  */
32986 $ac_includes_default
32987 #include <sys/statvfs.h>
32988 _ACEOF
32989 rm -f conftest.$ac_objext
32990 if { (ac_try="$ac_compile"
32991 case "(($ac_try" in
32992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993   *) ac_try_echo=$ac_try;;
32994 esac
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996   (eval "$ac_compile") 2>conftest.er1
32997   ac_status=$?
32998   grep -v '^ *+' conftest.er1 >conftest.err
32999   rm -f conftest.er1
33000   cat conftest.err >&5
33001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002   (exit $ac_status); } && {
33003          test -z "$ac_c_werror_flag" ||
33004          test ! -s conftest.err
33005        } && test -s conftest.$ac_objext; then
33006   ac_header_compiler=yes
33007 else
33008   echo "$as_me: failed program was:" >&5
33009 sed 's/^/| /' conftest.$ac_ext >&5
33010
33011         ac_header_compiler=no
33012 fi
33013
33014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33016 echo "${ECHO_T}$ac_header_compiler" >&6; }
33017
33018 # Is the header present?
33019 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33020 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33021 cat >conftest.$ac_ext <<_ACEOF
33022 /* confdefs.h.  */
33023 _ACEOF
33024 cat confdefs.h >>conftest.$ac_ext
33025 cat >>conftest.$ac_ext <<_ACEOF
33026 /* end confdefs.h.  */
33027 #include <sys/statvfs.h>
33028 _ACEOF
33029 if { (ac_try="$ac_cpp conftest.$ac_ext"
33030 case "(($ac_try" in
33031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032   *) ac_try_echo=$ac_try;;
33033 esac
33034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33036   ac_status=$?
33037   grep -v '^ *+' conftest.er1 >conftest.err
33038   rm -f conftest.er1
33039   cat conftest.err >&5
33040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041   (exit $ac_status); } >/dev/null && {
33042          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33043          test ! -s conftest.err
33044        }; then
33045   ac_header_preproc=yes
33046 else
33047   echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33049
33050   ac_header_preproc=no
33051 fi
33052
33053 rm -f conftest.err conftest.$ac_ext
33054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33055 echo "${ECHO_T}$ac_header_preproc" >&6; }
33056
33057 # So?  What about this header?
33058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33059   yes:no: )
33060     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33061 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33062     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33063 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33064     ac_header_preproc=yes
33065     ;;
33066   no:yes:* )
33067     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33068 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33069     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33070 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33071     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33072 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33073     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33074 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33075     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33076 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33077     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33078 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33079
33080     ;;
33081 esac
33082 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33083 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33084 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33085   echo $ECHO_N "(cached) $ECHO_C" >&6
33086 else
33087   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33088 fi
33089 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33090 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33091
33092 fi
33093 if test $ac_cv_header_sys_statvfs_h = yes; then
33094
33095 cat >>confdefs.h <<\_ACEOF
33096 #define HAVE_SYS_STATVFS_H 1
33097 _ACEOF
33098
33099 fi
33100
33101
33102
33103 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33104 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33105 if test "${ac_cv_type_signal+set}" = set; then
33106   echo $ECHO_N "(cached) $ECHO_C" >&6
33107 else
33108   cat >conftest.$ac_ext <<_ACEOF
33109 /* confdefs.h.  */
33110 _ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h.  */
33114 #include <sys/types.h>
33115 #include <signal.h>
33116
33117 int
33118 main ()
33119 {
33120 return *(signal (0, 0)) (0) == 1;
33121   ;
33122   return 0;
33123 }
33124 _ACEOF
33125 rm -f conftest.$ac_objext
33126 if { (ac_try="$ac_compile"
33127 case "(($ac_try" in
33128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129   *) ac_try_echo=$ac_try;;
33130 esac
33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132   (eval "$ac_compile") 2>conftest.er1
33133   ac_status=$?
33134   grep -v '^ *+' conftest.er1 >conftest.err
33135   rm -f conftest.er1
33136   cat conftest.err >&5
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); } && {
33139          test -z "$ac_c_werror_flag" ||
33140          test ! -s conftest.err
33141        } && test -s conftest.$ac_objext; then
33142   ac_cv_type_signal=int
33143 else
33144   echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147         ac_cv_type_signal=void
33148 fi
33149
33150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33151 fi
33152 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33153 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33154
33155 cat >>confdefs.h <<_ACEOF
33156 #define RETSIGTYPE $ac_cv_type_signal
33157 _ACEOF
33158
33159
33160
33161   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33162 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33163   if test "${bash_cv_signal_vintage+set}" = set; then
33164   echo $ECHO_N "(cached) $ECHO_C" >&6
33165 else
33166
33167     cat >conftest.$ac_ext <<_ACEOF
33168 /* confdefs.h.  */
33169 _ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h.  */
33173 #include <signal.h>
33174 int
33175 main ()
33176 {
33177
33178       sigset_t ss;
33179       struct sigaction sa;
33180       sigemptyset(&ss); sigsuspend(&ss);
33181       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33182       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33183
33184   ;
33185   return 0;
33186 }
33187 _ACEOF
33188 rm -f conftest.$ac_objext conftest$ac_exeext
33189 if { (ac_try="$ac_link"
33190 case "(($ac_try" in
33191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192   *) ac_try_echo=$ac_try;;
33193 esac
33194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195   (eval "$ac_link") 2>conftest.er1
33196   ac_status=$?
33197   grep -v '^ *+' conftest.er1 >conftest.err
33198   rm -f conftest.er1
33199   cat conftest.err >&5
33200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201   (exit $ac_status); } && {
33202          test -z "$ac_c_werror_flag" ||
33203          test ! -s conftest.err
33204        } && test -s conftest$ac_exeext &&
33205        $as_test_x conftest$ac_exeext; then
33206   bash_cv_signal_vintage="posix"
33207 else
33208   echo "$as_me: failed program was:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33210
33211
33212       cat >conftest.$ac_ext <<_ACEOF
33213 /* confdefs.h.  */
33214 _ACEOF
33215 cat confdefs.h >>conftest.$ac_ext
33216 cat >>conftest.$ac_ext <<_ACEOF
33217 /* end confdefs.h.  */
33218 #include <signal.h>
33219 int
33220 main ()
33221 {
33222
33223           int mask = sigmask(SIGINT);
33224           sigsetmask(mask); sigblock(mask); sigpause(mask);
33225
33226   ;
33227   return 0;
33228 }
33229 _ACEOF
33230 rm -f conftest.$ac_objext conftest$ac_exeext
33231 if { (ac_try="$ac_link"
33232 case "(($ac_try" in
33233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234   *) ac_try_echo=$ac_try;;
33235 esac
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237   (eval "$ac_link") 2>conftest.er1
33238   ac_status=$?
33239   grep -v '^ *+' conftest.er1 >conftest.err
33240   rm -f conftest.er1
33241   cat conftest.err >&5
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); } && {
33244          test -z "$ac_c_werror_flag" ||
33245          test ! -s conftest.err
33246        } && test -s conftest$ac_exeext &&
33247        $as_test_x conftest$ac_exeext; then
33248   bash_cv_signal_vintage="4.2bsd"
33249 else
33250   echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33252
33253
33254         cat >conftest.$ac_ext <<_ACEOF
33255 /* confdefs.h.  */
33256 _ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h.  */
33260
33261           #include <signal.h>
33262           RETSIGTYPE foo() { }
33263 int
33264 main ()
33265 {
33266
33267                   int mask = sigmask(SIGINT);
33268                   sigset(SIGINT, foo); sigrelse(SIGINT);
33269                   sighold(SIGINT); sigpause(SIGINT);
33270
33271   ;
33272   return 0;
33273 }
33274 _ACEOF
33275 rm -f conftest.$ac_objext conftest$ac_exeext
33276 if { (ac_try="$ac_link"
33277 case "(($ac_try" in
33278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33279   *) ac_try_echo=$ac_try;;
33280 esac
33281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33282   (eval "$ac_link") 2>conftest.er1
33283   ac_status=$?
33284   grep -v '^ *+' conftest.er1 >conftest.err
33285   rm -f conftest.er1
33286   cat conftest.err >&5
33287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288   (exit $ac_status); } && {
33289          test -z "$ac_c_werror_flag" ||
33290          test ! -s conftest.err
33291        } && test -s conftest$ac_exeext &&
33292        $as_test_x conftest$ac_exeext; then
33293   bash_cv_signal_vintage="svr3"
33294 else
33295   echo "$as_me: failed program was:" >&5
33296 sed 's/^/| /' conftest.$ac_ext >&5
33297
33298         bash_cv_signal_vintage="v7"
33299
33300 fi
33301
33302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33303       conftest$ac_exeext conftest.$ac_ext
33304
33305 fi
33306
33307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33308       conftest$ac_exeext conftest.$ac_ext
33309
33310 fi
33311
33312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33313       conftest$ac_exeext conftest.$ac_ext
33314
33315 fi
33316
33317   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33318 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33319   if test "$bash_cv_signal_vintage" = "posix"; then
33320     cat >>confdefs.h <<\_ACEOF
33321 #define HAVE_POSIX_SIGNALS 1
33322 _ACEOF
33323
33324   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33325     cat >>confdefs.h <<\_ACEOF
33326 #define HAVE_BSD_SIGNALS 1
33327 _ACEOF
33328
33329   elif test "$bash_cv_signal_vintage" = "svr3"; then
33330     cat >>confdefs.h <<\_ACEOF
33331 #define HAVE_USG_SIGHOLD 1
33332 _ACEOF
33333
33334   fi
33335
33336 { echo "$as_me:$LINENO: checking for mode_t" >&5
33337 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33338 if test "${ac_cv_type_mode_t+set}" = set; then
33339   echo $ECHO_N "(cached) $ECHO_C" >&6
33340 else
33341   cat >conftest.$ac_ext <<_ACEOF
33342 /* confdefs.h.  */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h.  */
33347 $ac_includes_default
33348 typedef mode_t ac__type_new_;
33349 int
33350 main ()
33351 {
33352 if ((ac__type_new_ *) 0)
33353   return 0;
33354 if (sizeof (ac__type_new_))
33355   return 0;
33356   ;
33357   return 0;
33358 }
33359 _ACEOF
33360 rm -f conftest.$ac_objext
33361 if { (ac_try="$ac_compile"
33362 case "(($ac_try" in
33363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364   *) ac_try_echo=$ac_try;;
33365 esac
33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367   (eval "$ac_compile") 2>conftest.er1
33368   ac_status=$?
33369   grep -v '^ *+' conftest.er1 >conftest.err
33370   rm -f conftest.er1
33371   cat conftest.err >&5
33372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373   (exit $ac_status); } && {
33374          test -z "$ac_c_werror_flag" ||
33375          test ! -s conftest.err
33376        } && test -s conftest.$ac_objext; then
33377   ac_cv_type_mode_t=yes
33378 else
33379   echo "$as_me: failed program was:" >&5
33380 sed 's/^/| /' conftest.$ac_ext >&5
33381
33382         ac_cv_type_mode_t=no
33383 fi
33384
33385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33386 fi
33387 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33388 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33389 if test $ac_cv_type_mode_t = yes; then
33390   :
33391 else
33392
33393 cat >>confdefs.h <<_ACEOF
33394 #define mode_t int
33395 _ACEOF
33396
33397 fi
33398
33399 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33400 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33401 if test "${ac_cv_type_uid_t+set}" = set; then
33402   echo $ECHO_N "(cached) $ECHO_C" >&6
33403 else
33404   cat >conftest.$ac_ext <<_ACEOF
33405 /* confdefs.h.  */
33406 _ACEOF
33407 cat confdefs.h >>conftest.$ac_ext
33408 cat >>conftest.$ac_ext <<_ACEOF
33409 /* end confdefs.h.  */
33410 #include <sys/types.h>
33411
33412 _ACEOF
33413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33414   $EGREP "uid_t" >/dev/null 2>&1; then
33415   ac_cv_type_uid_t=yes
33416 else
33417   ac_cv_type_uid_t=no
33418 fi
33419 rm -f conftest*
33420
33421 fi
33422 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33423 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33424 if test $ac_cv_type_uid_t = no; then
33425
33426 cat >>confdefs.h <<\_ACEOF
33427 #define uid_t int
33428 _ACEOF
33429
33430
33431 cat >>confdefs.h <<\_ACEOF
33432 #define gid_t int
33433 _ACEOF
33434
33435 fi
33436
33437 { echo "$as_me:$LINENO: checking for size_t" >&5
33438 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33439 if test "${ac_cv_type_size_t+set}" = set; then
33440   echo $ECHO_N "(cached) $ECHO_C" >&6
33441 else
33442   cat >conftest.$ac_ext <<_ACEOF
33443 /* confdefs.h.  */
33444 _ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h.  */
33448 $ac_includes_default
33449 typedef size_t ac__type_new_;
33450 int
33451 main ()
33452 {
33453 if ((ac__type_new_ *) 0)
33454   return 0;
33455 if (sizeof (ac__type_new_))
33456   return 0;
33457   ;
33458   return 0;
33459 }
33460 _ACEOF
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465   *) ac_try_echo=$ac_try;;
33466 esac
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468   (eval "$ac_compile") 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } && {
33475          test -z "$ac_c_werror_flag" ||
33476          test ! -s conftest.err
33477        } && test -s conftest.$ac_objext; then
33478   ac_cv_type_size_t=yes
33479 else
33480   echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33482
33483         ac_cv_type_size_t=no
33484 fi
33485
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487 fi
33488 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33489 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33490 if test $ac_cv_type_size_t = yes; then
33491   :
33492 else
33493
33494 cat >>confdefs.h <<_ACEOF
33495 #define size_t unsigned int
33496 _ACEOF
33497
33498 fi
33499
33500 { echo "$as_me:$LINENO: checking for pid_t" >&5
33501 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33502 if test "${ac_cv_type_pid_t+set}" = set; then
33503   echo $ECHO_N "(cached) $ECHO_C" >&6
33504 else
33505   cat >conftest.$ac_ext <<_ACEOF
33506 /* confdefs.h.  */
33507 _ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h.  */
33511 $ac_includes_default
33512 typedef pid_t ac__type_new_;
33513 int
33514 main ()
33515 {
33516 if ((ac__type_new_ *) 0)
33517   return 0;
33518 if (sizeof (ac__type_new_))
33519   return 0;
33520   ;
33521   return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext
33525 if { (ac_try="$ac_compile"
33526 case "(($ac_try" in
33527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528   *) ac_try_echo=$ac_try;;
33529 esac
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531   (eval "$ac_compile") 2>conftest.er1
33532   ac_status=$?
33533   grep -v '^ *+' conftest.er1 >conftest.err
33534   rm -f conftest.er1
33535   cat conftest.err >&5
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); } && {
33538          test -z "$ac_c_werror_flag" ||
33539          test ! -s conftest.err
33540        } && test -s conftest.$ac_objext; then
33541   ac_cv_type_pid_t=yes
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546         ac_cv_type_pid_t=no
33547 fi
33548
33549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33550 fi
33551 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33552 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33553 if test $ac_cv_type_pid_t = yes; then
33554   :
33555 else
33556
33557 cat >>confdefs.h <<_ACEOF
33558 #define pid_t int
33559 _ACEOF
33560
33561 fi
33562
33563 { echo "$as_me:$LINENO: checking for off_t" >&5
33564 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33565 if test "${ac_cv_type_off_t+set}" = set; then
33566   echo $ECHO_N "(cached) $ECHO_C" >&6
33567 else
33568   cat >conftest.$ac_ext <<_ACEOF
33569 /* confdefs.h.  */
33570 _ACEOF
33571 cat confdefs.h >>conftest.$ac_ext
33572 cat >>conftest.$ac_ext <<_ACEOF
33573 /* end confdefs.h.  */
33574 $ac_includes_default
33575 typedef off_t ac__type_new_;
33576 int
33577 main ()
33578 {
33579 if ((ac__type_new_ *) 0)
33580   return 0;
33581 if (sizeof (ac__type_new_))
33582   return 0;
33583   ;
33584   return 0;
33585 }
33586 _ACEOF
33587 rm -f conftest.$ac_objext
33588 if { (ac_try="$ac_compile"
33589 case "(($ac_try" in
33590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591   *) ac_try_echo=$ac_try;;
33592 esac
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594   (eval "$ac_compile") 2>conftest.er1
33595   ac_status=$?
33596   grep -v '^ *+' conftest.er1 >conftest.err
33597   rm -f conftest.er1
33598   cat conftest.err >&5
33599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600   (exit $ac_status); } && {
33601          test -z "$ac_c_werror_flag" ||
33602          test ! -s conftest.err
33603        } && test -s conftest.$ac_objext; then
33604   ac_cv_type_off_t=yes
33605 else
33606   echo "$as_me: failed program was:" >&5
33607 sed 's/^/| /' conftest.$ac_ext >&5
33608
33609         ac_cv_type_off_t=no
33610 fi
33611
33612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33613 fi
33614 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33615 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33616 if test $ac_cv_type_off_t = yes; then
33617   :
33618 else
33619
33620 cat >>confdefs.h <<_ACEOF
33621 #define off_t long int
33622 _ACEOF
33623
33624 fi
33625
33626
33627   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33628 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33629 if test "${ac_cv_type_intptr_t+set}" = set; then
33630   echo $ECHO_N "(cached) $ECHO_C" >&6
33631 else
33632   cat >conftest.$ac_ext <<_ACEOF
33633 /* confdefs.h.  */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h.  */
33638 $ac_includes_default
33639 typedef intptr_t ac__type_new_;
33640 int
33641 main ()
33642 {
33643 if ((ac__type_new_ *) 0)
33644   return 0;
33645 if (sizeof (ac__type_new_))
33646   return 0;
33647   ;
33648   return 0;
33649 }
33650 _ACEOF
33651 rm -f conftest.$ac_objext
33652 if { (ac_try="$ac_compile"
33653 case "(($ac_try" in
33654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33655   *) ac_try_echo=$ac_try;;
33656 esac
33657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33658   (eval "$ac_compile") 2>conftest.er1
33659   ac_status=$?
33660   grep -v '^ *+' conftest.er1 >conftest.err
33661   rm -f conftest.er1
33662   cat conftest.err >&5
33663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664   (exit $ac_status); } && {
33665          test -z "$ac_c_werror_flag" ||
33666          test ! -s conftest.err
33667        } && test -s conftest.$ac_objext; then
33668   ac_cv_type_intptr_t=yes
33669 else
33670   echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33672
33673         ac_cv_type_intptr_t=no
33674 fi
33675
33676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33677 fi
33678 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33679 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33680 if test $ac_cv_type_intptr_t = yes; then
33681
33682 cat >>confdefs.h <<\_ACEOF
33683 #define HAVE_INTPTR_T 1
33684 _ACEOF
33685
33686 else
33687   for ac_type in 'int' 'long int' 'long long int'; do
33688        cat >conftest.$ac_ext <<_ACEOF
33689 /* confdefs.h.  */
33690 _ACEOF
33691 cat confdefs.h >>conftest.$ac_ext
33692 cat >>conftest.$ac_ext <<_ACEOF
33693 /* end confdefs.h.  */
33694 $ac_includes_default
33695 int
33696 main ()
33697 {
33698 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33699 test_array [0] = 0
33700
33701   ;
33702   return 0;
33703 }
33704 _ACEOF
33705 rm -f conftest.$ac_objext
33706 if { (ac_try="$ac_compile"
33707 case "(($ac_try" in
33708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33709   *) ac_try_echo=$ac_try;;
33710 esac
33711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33712   (eval "$ac_compile") 2>conftest.er1
33713   ac_status=$?
33714   grep -v '^ *+' conftest.er1 >conftest.err
33715   rm -f conftest.er1
33716   cat conftest.err >&5
33717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718   (exit $ac_status); } && {
33719          test -z "$ac_c_werror_flag" ||
33720          test ! -s conftest.err
33721        } && test -s conftest.$ac_objext; then
33722
33723 cat >>confdefs.h <<_ACEOF
33724 #define intptr_t $ac_type
33725 _ACEOF
33726
33727           ac_type=
33728 else
33729   echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33731
33732
33733 fi
33734
33735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33736        test -z "$ac_type" && break
33737      done
33738 fi
33739
33740
33741
33742   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33743 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33744 if test "${ac_cv_type_uintptr_t+set}" = set; then
33745   echo $ECHO_N "(cached) $ECHO_C" >&6
33746 else
33747   cat >conftest.$ac_ext <<_ACEOF
33748 /* confdefs.h.  */
33749 _ACEOF
33750 cat confdefs.h >>conftest.$ac_ext
33751 cat >>conftest.$ac_ext <<_ACEOF
33752 /* end confdefs.h.  */
33753 $ac_includes_default
33754 typedef uintptr_t ac__type_new_;
33755 int
33756 main ()
33757 {
33758 if ((ac__type_new_ *) 0)
33759   return 0;
33760 if (sizeof (ac__type_new_))
33761   return 0;
33762   ;
33763   return 0;
33764 }
33765 _ACEOF
33766 rm -f conftest.$ac_objext
33767 if { (ac_try="$ac_compile"
33768 case "(($ac_try" in
33769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770   *) ac_try_echo=$ac_try;;
33771 esac
33772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773   (eval "$ac_compile") 2>conftest.er1
33774   ac_status=$?
33775   grep -v '^ *+' conftest.er1 >conftest.err
33776   rm -f conftest.er1
33777   cat conftest.err >&5
33778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779   (exit $ac_status); } && {
33780          test -z "$ac_c_werror_flag" ||
33781          test ! -s conftest.err
33782        } && test -s conftest.$ac_objext; then
33783   ac_cv_type_uintptr_t=yes
33784 else
33785   echo "$as_me: failed program was:" >&5
33786 sed 's/^/| /' conftest.$ac_ext >&5
33787
33788         ac_cv_type_uintptr_t=no
33789 fi
33790
33791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33792 fi
33793 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33794 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33795 if test $ac_cv_type_uintptr_t = yes; then
33796
33797 cat >>confdefs.h <<\_ACEOF
33798 #define HAVE_UINTPTR_T 1
33799 _ACEOF
33800
33801 else
33802   for ac_type in 'unsigned int' 'unsigned long int' \
33803         'unsigned long long int'; do
33804        cat >conftest.$ac_ext <<_ACEOF
33805 /* confdefs.h.  */
33806 _ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h.  */
33810 $ac_includes_default
33811 int
33812 main ()
33813 {
33814 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33815 test_array [0] = 0
33816
33817   ;
33818   return 0;
33819 }
33820 _ACEOF
33821 rm -f conftest.$ac_objext
33822 if { (ac_try="$ac_compile"
33823 case "(($ac_try" in
33824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825   *) ac_try_echo=$ac_try;;
33826 esac
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828   (eval "$ac_compile") 2>conftest.er1
33829   ac_status=$?
33830   grep -v '^ *+' conftest.er1 >conftest.err
33831   rm -f conftest.er1
33832   cat conftest.err >&5
33833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834   (exit $ac_status); } && {
33835          test -z "$ac_c_werror_flag" ||
33836          test ! -s conftest.err
33837        } && test -s conftest.$ac_objext; then
33838
33839 cat >>confdefs.h <<_ACEOF
33840 #define uintptr_t $ac_type
33841 _ACEOF
33842
33843           ac_type=
33844 else
33845   echo "$as_me: failed program was:" >&5
33846 sed 's/^/| /' conftest.$ac_ext >&5
33847
33848
33849 fi
33850
33851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33852        test -z "$ac_type" && break
33853      done
33854 fi
33855
33856
33857 { echo "$as_me:$LINENO: checking for ino_t" >&5
33858 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33859 if test "${ac_cv_type_ino_t+set}" = set; then
33860   echo $ECHO_N "(cached) $ECHO_C" >&6
33861 else
33862   cat >conftest.$ac_ext <<_ACEOF
33863 /* confdefs.h.  */
33864 _ACEOF
33865 cat confdefs.h >>conftest.$ac_ext
33866 cat >>conftest.$ac_ext <<_ACEOF
33867 /* end confdefs.h.  */
33868 $ac_includes_default
33869 typedef ino_t ac__type_new_;
33870 int
33871 main ()
33872 {
33873 if ((ac__type_new_ *) 0)
33874   return 0;
33875 if (sizeof (ac__type_new_))
33876   return 0;
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885   *) ac_try_echo=$ac_try;;
33886 esac
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888   (eval "$ac_compile") 2>conftest.er1
33889   ac_status=$?
33890   grep -v '^ *+' conftest.er1 >conftest.err
33891   rm -f conftest.er1
33892   cat conftest.err >&5
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); } && {
33895          test -z "$ac_c_werror_flag" ||
33896          test ! -s conftest.err
33897        } && test -s conftest.$ac_objext; then
33898   ac_cv_type_ino_t=yes
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903         ac_cv_type_ino_t=no
33904 fi
33905
33906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33907 fi
33908 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33909 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33910 if test $ac_cv_type_ino_t = yes; then
33911   :
33912 else
33913
33914 cat >>confdefs.h <<_ACEOF
33915 #define ino_t unsigned long
33916 _ACEOF
33917
33918 fi
33919
33920 { echo "$as_me:$LINENO: checking for dev_t" >&5
33921 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33922 if test "${ac_cv_type_dev_t+set}" = set; then
33923   echo $ECHO_N "(cached) $ECHO_C" >&6
33924 else
33925   cat >conftest.$ac_ext <<_ACEOF
33926 /* confdefs.h.  */
33927 _ACEOF
33928 cat confdefs.h >>conftest.$ac_ext
33929 cat >>conftest.$ac_ext <<_ACEOF
33930 /* end confdefs.h.  */
33931 $ac_includes_default
33932 typedef dev_t ac__type_new_;
33933 int
33934 main ()
33935 {
33936 if ((ac__type_new_ *) 0)
33937   return 0;
33938 if (sizeof (ac__type_new_))
33939   return 0;
33940   ;
33941   return 0;
33942 }
33943 _ACEOF
33944 rm -f conftest.$ac_objext
33945 if { (ac_try="$ac_compile"
33946 case "(($ac_try" in
33947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948   *) ac_try_echo=$ac_try;;
33949 esac
33950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951   (eval "$ac_compile") 2>conftest.er1
33952   ac_status=$?
33953   grep -v '^ *+' conftest.er1 >conftest.err
33954   rm -f conftest.er1
33955   cat conftest.err >&5
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); } && {
33958          test -z "$ac_c_werror_flag" ||
33959          test ! -s conftest.err
33960        } && test -s conftest.$ac_objext; then
33961   ac_cv_type_dev_t=yes
33962 else
33963   echo "$as_me: failed program was:" >&5
33964 sed 's/^/| /' conftest.$ac_ext >&5
33965
33966         ac_cv_type_dev_t=no
33967 fi
33968
33969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33970 fi
33971 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33972 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33973 if test $ac_cv_type_dev_t = yes; then
33974   :
33975 else
33976
33977 cat >>confdefs.h <<_ACEOF
33978 #define dev_t unsigned long
33979 _ACEOF
33980
33981 fi
33982
33983 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33984 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33985 if test "${ac_cv_type_daddr_t+set}" = set; then
33986   echo $ECHO_N "(cached) $ECHO_C" >&6
33987 else
33988   cat >conftest.$ac_ext <<_ACEOF
33989 /* confdefs.h.  */
33990 _ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h.  */
33994 $ac_includes_default
33995 typedef daddr_t ac__type_new_;
33996 int
33997 main ()
33998 {
33999 if ((ac__type_new_ *) 0)
34000   return 0;
34001 if (sizeof (ac__type_new_))
34002   return 0;
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext
34008 if { (ac_try="$ac_compile"
34009 case "(($ac_try" in
34010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011   *) ac_try_echo=$ac_try;;
34012 esac
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014   (eval "$ac_compile") 2>conftest.er1
34015   ac_status=$?
34016   grep -v '^ *+' conftest.er1 >conftest.err
34017   rm -f conftest.er1
34018   cat conftest.err >&5
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } && {
34021          test -z "$ac_c_werror_flag" ||
34022          test ! -s conftest.err
34023        } && test -s conftest.$ac_objext; then
34024   ac_cv_type_daddr_t=yes
34025 else
34026   echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34028
34029         ac_cv_type_daddr_t=no
34030 fi
34031
34032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34033 fi
34034 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34035 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34036 if test $ac_cv_type_daddr_t = yes; then
34037   :
34038 else
34039
34040 cat >>confdefs.h <<_ACEOF
34041 #define daddr_t long
34042 _ACEOF
34043
34044 fi
34045
34046 { echo "$as_me:$LINENO: checking for major_t" >&5
34047 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34048 if test "${ac_cv_type_major_t+set}" = set; then
34049   echo $ECHO_N "(cached) $ECHO_C" >&6
34050 else
34051   cat >conftest.$ac_ext <<_ACEOF
34052 /* confdefs.h.  */
34053 _ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h.  */
34057 $ac_includes_default
34058 typedef major_t ac__type_new_;
34059 int
34060 main ()
34061 {
34062 if ((ac__type_new_ *) 0)
34063   return 0;
34064 if (sizeof (ac__type_new_))
34065   return 0;
34066   ;
34067   return 0;
34068 }
34069 _ACEOF
34070 rm -f conftest.$ac_objext
34071 if { (ac_try="$ac_compile"
34072 case "(($ac_try" in
34073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074   *) ac_try_echo=$ac_try;;
34075 esac
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077   (eval "$ac_compile") 2>conftest.er1
34078   ac_status=$?
34079   grep -v '^ *+' conftest.er1 >conftest.err
34080   rm -f conftest.er1
34081   cat conftest.err >&5
34082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083   (exit $ac_status); } && {
34084          test -z "$ac_c_werror_flag" ||
34085          test ! -s conftest.err
34086        } && test -s conftest.$ac_objext; then
34087   ac_cv_type_major_t=yes
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092         ac_cv_type_major_t=no
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 fi
34097 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34098 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34099 if test $ac_cv_type_major_t = yes; then
34100   :
34101 else
34102
34103 cat >>confdefs.h <<_ACEOF
34104 #define major_t int
34105 _ACEOF
34106
34107 fi
34108
34109 { echo "$as_me:$LINENO: checking for minor_t" >&5
34110 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34111 if test "${ac_cv_type_minor_t+set}" = set; then
34112   echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114   cat >conftest.$ac_ext <<_ACEOF
34115 /* confdefs.h.  */
34116 _ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h.  */
34120 $ac_includes_default
34121 typedef minor_t ac__type_new_;
34122 int
34123 main ()
34124 {
34125 if ((ac__type_new_ *) 0)
34126   return 0;
34127 if (sizeof (ac__type_new_))
34128   return 0;
34129   ;
34130   return 0;
34131 }
34132 _ACEOF
34133 rm -f conftest.$ac_objext
34134 if { (ac_try="$ac_compile"
34135 case "(($ac_try" in
34136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137   *) ac_try_echo=$ac_try;;
34138 esac
34139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34140   (eval "$ac_compile") 2>conftest.er1
34141   ac_status=$?
34142   grep -v '^ *+' conftest.er1 >conftest.err
34143   rm -f conftest.er1
34144   cat conftest.err >&5
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); } && {
34147          test -z "$ac_c_werror_flag" ||
34148          test ! -s conftest.err
34149        } && test -s conftest.$ac_objext; then
34150   ac_cv_type_minor_t=yes
34151 else
34152   echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34154
34155         ac_cv_type_minor_t=no
34156 fi
34157
34158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 fi
34160 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34161 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34162 if test $ac_cv_type_minor_t = yes; then
34163   :
34164 else
34165
34166 cat >>confdefs.h <<_ACEOF
34167 #define minor_t int
34168 _ACEOF
34169
34170 fi
34171
34172 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34173 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34174 if test "${ac_cv_type_ssize_t+set}" = set; then
34175   echo $ECHO_N "(cached) $ECHO_C" >&6
34176 else
34177   cat >conftest.$ac_ext <<_ACEOF
34178 /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183 $ac_includes_default
34184 typedef ssize_t ac__type_new_;
34185 int
34186 main ()
34187 {
34188 if ((ac__type_new_ *) 0)
34189   return 0;
34190 if (sizeof (ac__type_new_))
34191   return 0;
34192   ;
34193   return 0;
34194 }
34195 _ACEOF
34196 rm -f conftest.$ac_objext
34197 if { (ac_try="$ac_compile"
34198 case "(($ac_try" in
34199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34200   *) ac_try_echo=$ac_try;;
34201 esac
34202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34203   (eval "$ac_compile") 2>conftest.er1
34204   ac_status=$?
34205   grep -v '^ *+' conftest.er1 >conftest.err
34206   rm -f conftest.er1
34207   cat conftest.err >&5
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); } && {
34210          test -z "$ac_c_werror_flag" ||
34211          test ! -s conftest.err
34212        } && test -s conftest.$ac_objext; then
34213   ac_cv_type_ssize_t=yes
34214 else
34215   echo "$as_me: failed program was:" >&5
34216 sed 's/^/| /' conftest.$ac_ext >&5
34217
34218         ac_cv_type_ssize_t=no
34219 fi
34220
34221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222 fi
34223 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34224 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34225 if test $ac_cv_type_ssize_t = yes; then
34226   :
34227 else
34228
34229 cat >>confdefs.h <<_ACEOF
34230 #define ssize_t int
34231 _ACEOF
34232
34233 fi
34234
34235 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34236 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34237 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34238   echo $ECHO_N "(cached) $ECHO_C" >&6
34239 else
34240   cat >conftest.$ac_ext <<_ACEOF
34241 /* confdefs.h.  */
34242 _ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h.  */
34246 $ac_includes_default
34247 int
34248 main ()
34249 {
34250 static struct stat ac_aggr;
34251 if (ac_aggr.st_blocks)
34252 return 0;
34253   ;
34254   return 0;
34255 }
34256 _ACEOF
34257 rm -f conftest.$ac_objext
34258 if { (ac_try="$ac_compile"
34259 case "(($ac_try" in
34260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34261   *) ac_try_echo=$ac_try;;
34262 esac
34263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34264   (eval "$ac_compile") 2>conftest.er1
34265   ac_status=$?
34266   grep -v '^ *+' conftest.er1 >conftest.err
34267   rm -f conftest.er1
34268   cat conftest.err >&5
34269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270   (exit $ac_status); } && {
34271          test -z "$ac_c_werror_flag" ||
34272          test ! -s conftest.err
34273        } && test -s conftest.$ac_objext; then
34274   ac_cv_member_struct_stat_st_blocks=yes
34275 else
34276   echo "$as_me: failed program was:" >&5
34277 sed 's/^/| /' conftest.$ac_ext >&5
34278
34279         cat >conftest.$ac_ext <<_ACEOF
34280 /* confdefs.h.  */
34281 _ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h.  */
34285 $ac_includes_default
34286 int
34287 main ()
34288 {
34289 static struct stat ac_aggr;
34290 if (sizeof ac_aggr.st_blocks)
34291 return 0;
34292   ;
34293   return 0;
34294 }
34295 _ACEOF
34296 rm -f conftest.$ac_objext
34297 if { (ac_try="$ac_compile"
34298 case "(($ac_try" in
34299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34300   *) ac_try_echo=$ac_try;;
34301 esac
34302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34303   (eval "$ac_compile") 2>conftest.er1
34304   ac_status=$?
34305   grep -v '^ *+' conftest.er1 >conftest.err
34306   rm -f conftest.er1
34307   cat conftest.err >&5
34308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309   (exit $ac_status); } && {
34310          test -z "$ac_c_werror_flag" ||
34311          test ! -s conftest.err
34312        } && test -s conftest.$ac_objext; then
34313   ac_cv_member_struct_stat_st_blocks=yes
34314 else
34315   echo "$as_me: failed program was:" >&5
34316 sed 's/^/| /' conftest.$ac_ext >&5
34317
34318         ac_cv_member_struct_stat_st_blocks=no
34319 fi
34320
34321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34322 fi
34323
34324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34325 fi
34326 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34327 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34328 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34329
34330 cat >>confdefs.h <<_ACEOF
34331 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34332 _ACEOF
34333
34334
34335 cat >>confdefs.h <<\_ACEOF
34336 #define HAVE_ST_BLOCKS 1
34337 _ACEOF
34338
34339 else
34340   case " $LIBOBJS " in
34341   *" fileblocks.$ac_objext "* ) ;;
34342   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34343  ;;
34344 esac
34345
34346 fi
34347
34348
34349 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34350 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34351 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34352   echo $ECHO_N "(cached) $ECHO_C" >&6
34353 else
34354   cat >conftest.$ac_ext <<_ACEOF
34355 /* confdefs.h.  */
34356 _ACEOF
34357 cat confdefs.h >>conftest.$ac_ext
34358 cat >>conftest.$ac_ext <<_ACEOF
34359 /* end confdefs.h.  */
34360 $ac_includes_default
34361 int
34362 main ()
34363 {
34364 static struct stat ac_aggr;
34365 if (ac_aggr.st_rdev)
34366 return 0;
34367   ;
34368   return 0;
34369 }
34370 _ACEOF
34371 rm -f conftest.$ac_objext
34372 if { (ac_try="$ac_compile"
34373 case "(($ac_try" in
34374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375   *) ac_try_echo=$ac_try;;
34376 esac
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378   (eval "$ac_compile") 2>conftest.er1
34379   ac_status=$?
34380   grep -v '^ *+' conftest.er1 >conftest.err
34381   rm -f conftest.er1
34382   cat conftest.err >&5
34383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384   (exit $ac_status); } && {
34385          test -z "$ac_c_werror_flag" ||
34386          test ! -s conftest.err
34387        } && test -s conftest.$ac_objext; then
34388   ac_cv_member_struct_stat_st_rdev=yes
34389 else
34390   echo "$as_me: failed program was:" >&5
34391 sed 's/^/| /' conftest.$ac_ext >&5
34392
34393         cat >conftest.$ac_ext <<_ACEOF
34394 /* confdefs.h.  */
34395 _ACEOF
34396 cat confdefs.h >>conftest.$ac_ext
34397 cat >>conftest.$ac_ext <<_ACEOF
34398 /* end confdefs.h.  */
34399 $ac_includes_default
34400 int
34401 main ()
34402 {
34403 static struct stat ac_aggr;
34404 if (sizeof ac_aggr.st_rdev)
34405 return 0;
34406   ;
34407   return 0;
34408 }
34409 _ACEOF
34410 rm -f conftest.$ac_objext
34411 if { (ac_try="$ac_compile"
34412 case "(($ac_try" in
34413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34414   *) ac_try_echo=$ac_try;;
34415 esac
34416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34417   (eval "$ac_compile") 2>conftest.er1
34418   ac_status=$?
34419   grep -v '^ *+' conftest.er1 >conftest.err
34420   rm -f conftest.er1
34421   cat conftest.err >&5
34422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423   (exit $ac_status); } && {
34424          test -z "$ac_c_werror_flag" ||
34425          test ! -s conftest.err
34426        } && test -s conftest.$ac_objext; then
34427   ac_cv_member_struct_stat_st_rdev=yes
34428 else
34429   echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34431
34432         ac_cv_member_struct_stat_st_rdev=no
34433 fi
34434
34435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34436 fi
34437
34438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34439 fi
34440 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34441 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34442 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34443
34444 cat >>confdefs.h <<_ACEOF
34445 #define HAVE_STRUCT_STAT_ST_RDEV 1
34446 _ACEOF
34447
34448
34449 cat >>confdefs.h <<\_ACEOF
34450 #define HAVE_ST_RDEV 1
34451 _ACEOF
34452
34453 fi
34454
34455
34456 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34457 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34458 if test "${ac_cv_struct_tm+set}" = set; then
34459   echo $ECHO_N "(cached) $ECHO_C" >&6
34460 else
34461   cat >conftest.$ac_ext <<_ACEOF
34462 /* confdefs.h.  */
34463 _ACEOF
34464 cat confdefs.h >>conftest.$ac_ext
34465 cat >>conftest.$ac_ext <<_ACEOF
34466 /* end confdefs.h.  */
34467 #include <sys/types.h>
34468 #include <time.h>
34469
34470 int
34471 main ()
34472 {
34473 struct tm tm;
34474                                      int *p = &tm.tm_sec;
34475                                      return !p;
34476   ;
34477   return 0;
34478 }
34479 _ACEOF
34480 rm -f conftest.$ac_objext
34481 if { (ac_try="$ac_compile"
34482 case "(($ac_try" in
34483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34484   *) ac_try_echo=$ac_try;;
34485 esac
34486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34487   (eval "$ac_compile") 2>conftest.er1
34488   ac_status=$?
34489   grep -v '^ *+' conftest.er1 >conftest.err
34490   rm -f conftest.er1
34491   cat conftest.err >&5
34492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493   (exit $ac_status); } && {
34494          test -z "$ac_c_werror_flag" ||
34495          test ! -s conftest.err
34496        } && test -s conftest.$ac_objext; then
34497   ac_cv_struct_tm=time.h
34498 else
34499   echo "$as_me: failed program was:" >&5
34500 sed 's/^/| /' conftest.$ac_ext >&5
34501
34502         ac_cv_struct_tm=sys/time.h
34503 fi
34504
34505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34506 fi
34507 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34508 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34509 if test $ac_cv_struct_tm = sys/time.h; then
34510
34511 cat >>confdefs.h <<\_ACEOF
34512 #define TM_IN_SYS_TIME 1
34513 _ACEOF
34514
34515 fi
34516
34517 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34518 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34519 if test "${ac_cv_c_const+set}" = set; then
34520   echo $ECHO_N "(cached) $ECHO_C" >&6
34521 else
34522   cat >conftest.$ac_ext <<_ACEOF
34523 /* confdefs.h.  */
34524 _ACEOF
34525 cat confdefs.h >>conftest.$ac_ext
34526 cat >>conftest.$ac_ext <<_ACEOF
34527 /* end confdefs.h.  */
34528
34529 int
34530 main ()
34531 {
34532 /* FIXME: Include the comments suggested by Paul. */
34533 #ifndef __cplusplus
34534   /* Ultrix mips cc rejects this.  */
34535   typedef int charset[2];
34536   const charset cs;
34537   /* SunOS 4.1.1 cc rejects this.  */
34538   char const *const *pcpcc;
34539   char **ppc;
34540   /* NEC SVR4.0.2 mips cc rejects this.  */
34541   struct point {int x, y;};
34542   static struct point const zero = {0,0};
34543   /* AIX XL C 1.02.0.0 rejects this.
34544      It does not let you subtract one const X* pointer from another in
34545      an arm of an if-expression whose if-part is not a constant
34546      expression */
34547   const char *g = "string";
34548   pcpcc = &g + (g ? g-g : 0);
34549   /* HPUX 7.0 cc rejects these. */
34550   ++pcpcc;
34551   ppc = (char**) pcpcc;
34552   pcpcc = (char const *const *) ppc;
34553   { /* SCO 3.2v4 cc rejects this.  */
34554     char *t;
34555     char const *s = 0 ? (char *) 0 : (char const *) 0;
34556
34557     *t++ = 0;
34558     if (s) return 0;
34559   }
34560   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34561     int x[] = {25, 17};
34562     const int *foo = &x[0];
34563     ++foo;
34564   }
34565   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34566     typedef const int *iptr;
34567     iptr p = 0;
34568     ++p;
34569   }
34570   { /* AIX XL C 1.02.0.0 rejects this saying
34571        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34572     struct s { int j; const int *ap[3]; };
34573     struct s *b; b->j = 5;
34574   }
34575   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34576     const int foo = 10;
34577     if (!foo) return 0;
34578   }
34579   return !cs[0] && !zero.x;
34580 #endif
34581
34582   ;
34583   return 0;
34584 }
34585 _ACEOF
34586 rm -f conftest.$ac_objext
34587 if { (ac_try="$ac_compile"
34588 case "(($ac_try" in
34589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34590   *) ac_try_echo=$ac_try;;
34591 esac
34592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34593   (eval "$ac_compile") 2>conftest.er1
34594   ac_status=$?
34595   grep -v '^ *+' conftest.er1 >conftest.err
34596   rm -f conftest.er1
34597   cat conftest.err >&5
34598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599   (exit $ac_status); } && {
34600          test -z "$ac_c_werror_flag" ||
34601          test ! -s conftest.err
34602        } && test -s conftest.$ac_objext; then
34603   ac_cv_c_const=yes
34604 else
34605   echo "$as_me: failed program was:" >&5
34606 sed 's/^/| /' conftest.$ac_ext >&5
34607
34608         ac_cv_c_const=no
34609 fi
34610
34611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34612 fi
34613 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34614 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34615 if test $ac_cv_c_const = no; then
34616
34617 cat >>confdefs.h <<\_ACEOF
34618 #define const
34619 _ACEOF
34620
34621 fi
34622
34623
34624 { echo "$as_me:$LINENO: checking for char" >&5
34625 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34626 if test "${ac_cv_type_char+set}" = set; then
34627   echo $ECHO_N "(cached) $ECHO_C" >&6
34628 else
34629   cat >conftest.$ac_ext <<_ACEOF
34630 /* confdefs.h.  */
34631 _ACEOF
34632 cat confdefs.h >>conftest.$ac_ext
34633 cat >>conftest.$ac_ext <<_ACEOF
34634 /* end confdefs.h.  */
34635 $ac_includes_default
34636 typedef char ac__type_new_;
34637 int
34638 main ()
34639 {
34640 if ((ac__type_new_ *) 0)
34641   return 0;
34642 if (sizeof (ac__type_new_))
34643   return 0;
34644   ;
34645   return 0;
34646 }
34647 _ACEOF
34648 rm -f conftest.$ac_objext
34649 if { (ac_try="$ac_compile"
34650 case "(($ac_try" in
34651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34652   *) ac_try_echo=$ac_try;;
34653 esac
34654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34655   (eval "$ac_compile") 2>conftest.er1
34656   ac_status=$?
34657   grep -v '^ *+' conftest.er1 >conftest.err
34658   rm -f conftest.er1
34659   cat conftest.err >&5
34660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661   (exit $ac_status); } && {
34662          test -z "$ac_c_werror_flag" ||
34663          test ! -s conftest.err
34664        } && test -s conftest.$ac_objext; then
34665   ac_cv_type_char=yes
34666 else
34667   echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.$ac_ext >&5
34669
34670         ac_cv_type_char=no
34671 fi
34672
34673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34674 fi
34675 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34676 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34677
34678 # The cast to long int works around a bug in the HP C Compiler
34679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34681 # This bug is HP SR number 8606223364.
34682 { echo "$as_me:$LINENO: checking size of char" >&5
34683 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34684 if test "${ac_cv_sizeof_char+set}" = set; then
34685   echo $ECHO_N "(cached) $ECHO_C" >&6
34686 else
34687   if test "$cross_compiling" = yes; then
34688   # Depending upon the size, compute the lo and hi bounds.
34689 cat >conftest.$ac_ext <<_ACEOF
34690 /* confdefs.h.  */
34691 _ACEOF
34692 cat confdefs.h >>conftest.$ac_ext
34693 cat >>conftest.$ac_ext <<_ACEOF
34694 /* end confdefs.h.  */
34695 $ac_includes_default
34696    typedef char ac__type_sizeof_;
34697 int
34698 main ()
34699 {
34700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34701 test_array [0] = 0
34702
34703   ;
34704   return 0;
34705 }
34706 _ACEOF
34707 rm -f conftest.$ac_objext
34708 if { (ac_try="$ac_compile"
34709 case "(($ac_try" in
34710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34711   *) ac_try_echo=$ac_try;;
34712 esac
34713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34714   (eval "$ac_compile") 2>conftest.er1
34715   ac_status=$?
34716   grep -v '^ *+' conftest.er1 >conftest.err
34717   rm -f conftest.er1
34718   cat conftest.err >&5
34719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720   (exit $ac_status); } && {
34721          test -z "$ac_c_werror_flag" ||
34722          test ! -s conftest.err
34723        } && test -s conftest.$ac_objext; then
34724   ac_lo=0 ac_mid=0
34725   while :; do
34726     cat >conftest.$ac_ext <<_ACEOF
34727 /* confdefs.h.  */
34728 _ACEOF
34729 cat confdefs.h >>conftest.$ac_ext
34730 cat >>conftest.$ac_ext <<_ACEOF
34731 /* end confdefs.h.  */
34732 $ac_includes_default
34733    typedef char ac__type_sizeof_;
34734 int
34735 main ()
34736 {
34737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34738 test_array [0] = 0
34739
34740   ;
34741   return 0;
34742 }
34743 _ACEOF
34744 rm -f conftest.$ac_objext
34745 if { (ac_try="$ac_compile"
34746 case "(($ac_try" in
34747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34748   *) ac_try_echo=$ac_try;;
34749 esac
34750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34751   (eval "$ac_compile") 2>conftest.er1
34752   ac_status=$?
34753   grep -v '^ *+' conftest.er1 >conftest.err
34754   rm -f conftest.er1
34755   cat conftest.err >&5
34756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757   (exit $ac_status); } && {
34758          test -z "$ac_c_werror_flag" ||
34759          test ! -s conftest.err
34760        } && test -s conftest.$ac_objext; then
34761   ac_hi=$ac_mid; break
34762 else
34763   echo "$as_me: failed program was:" >&5
34764 sed 's/^/| /' conftest.$ac_ext >&5
34765
34766         ac_lo=`expr $ac_mid + 1`
34767                         if test $ac_lo -le $ac_mid; then
34768                           ac_lo= ac_hi=
34769                           break
34770                         fi
34771                         ac_mid=`expr 2 '*' $ac_mid + 1`
34772 fi
34773
34774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34775   done
34776 else
34777   echo "$as_me: failed program was:" >&5
34778 sed 's/^/| /' conftest.$ac_ext >&5
34779
34780         cat >conftest.$ac_ext <<_ACEOF
34781 /* confdefs.h.  */
34782 _ACEOF
34783 cat confdefs.h >>conftest.$ac_ext
34784 cat >>conftest.$ac_ext <<_ACEOF
34785 /* end confdefs.h.  */
34786 $ac_includes_default
34787    typedef char ac__type_sizeof_;
34788 int
34789 main ()
34790 {
34791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34792 test_array [0] = 0
34793
34794   ;
34795   return 0;
34796 }
34797 _ACEOF
34798 rm -f conftest.$ac_objext
34799 if { (ac_try="$ac_compile"
34800 case "(($ac_try" in
34801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34802   *) ac_try_echo=$ac_try;;
34803 esac
34804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34805   (eval "$ac_compile") 2>conftest.er1
34806   ac_status=$?
34807   grep -v '^ *+' conftest.er1 >conftest.err
34808   rm -f conftest.er1
34809   cat conftest.err >&5
34810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811   (exit $ac_status); } && {
34812          test -z "$ac_c_werror_flag" ||
34813          test ! -s conftest.err
34814        } && test -s conftest.$ac_objext; then
34815   ac_hi=-1 ac_mid=-1
34816   while :; do
34817     cat >conftest.$ac_ext <<_ACEOF
34818 /* confdefs.h.  */
34819 _ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h.  */
34823 $ac_includes_default
34824    typedef char ac__type_sizeof_;
34825 int
34826 main ()
34827 {
34828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34829 test_array [0] = 0
34830
34831   ;
34832   return 0;
34833 }
34834 _ACEOF
34835 rm -f conftest.$ac_objext
34836 if { (ac_try="$ac_compile"
34837 case "(($ac_try" in
34838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34839   *) ac_try_echo=$ac_try;;
34840 esac
34841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34842   (eval "$ac_compile") 2>conftest.er1
34843   ac_status=$?
34844   grep -v '^ *+' conftest.er1 >conftest.err
34845   rm -f conftest.er1
34846   cat conftest.err >&5
34847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848   (exit $ac_status); } && {
34849          test -z "$ac_c_werror_flag" ||
34850          test ! -s conftest.err
34851        } && test -s conftest.$ac_objext; then
34852   ac_lo=$ac_mid; break
34853 else
34854   echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34856
34857         ac_hi=`expr '(' $ac_mid ')' - 1`
34858                         if test $ac_mid -le $ac_hi; then
34859                           ac_lo= ac_hi=
34860                           break
34861                         fi
34862                         ac_mid=`expr 2 '*' $ac_mid`
34863 fi
34864
34865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34866   done
34867 else
34868   echo "$as_me: failed program was:" >&5
34869 sed 's/^/| /' conftest.$ac_ext >&5
34870
34871         ac_lo= ac_hi=
34872 fi
34873
34874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875 fi
34876
34877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34878 # Binary search between lo and hi bounds.
34879 while test "x$ac_lo" != "x$ac_hi"; do
34880   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34881   cat >conftest.$ac_ext <<_ACEOF
34882 /* confdefs.h.  */
34883 _ACEOF
34884 cat confdefs.h >>conftest.$ac_ext
34885 cat >>conftest.$ac_ext <<_ACEOF
34886 /* end confdefs.h.  */
34887 $ac_includes_default
34888    typedef char ac__type_sizeof_;
34889 int
34890 main ()
34891 {
34892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34893 test_array [0] = 0
34894
34895   ;
34896   return 0;
34897 }
34898 _ACEOF
34899 rm -f conftest.$ac_objext
34900 if { (ac_try="$ac_compile"
34901 case "(($ac_try" in
34902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903   *) ac_try_echo=$ac_try;;
34904 esac
34905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906   (eval "$ac_compile") 2>conftest.er1
34907   ac_status=$?
34908   grep -v '^ *+' conftest.er1 >conftest.err
34909   rm -f conftest.er1
34910   cat conftest.err >&5
34911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912   (exit $ac_status); } && {
34913          test -z "$ac_c_werror_flag" ||
34914          test ! -s conftest.err
34915        } && test -s conftest.$ac_objext; then
34916   ac_hi=$ac_mid
34917 else
34918   echo "$as_me: failed program was:" >&5
34919 sed 's/^/| /' conftest.$ac_ext >&5
34920
34921         ac_lo=`expr '(' $ac_mid ')' + 1`
34922 fi
34923
34924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34925 done
34926 case $ac_lo in
34927 ?*) ac_cv_sizeof_char=$ac_lo;;
34928 '') if test "$ac_cv_type_char" = yes; then
34929      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34930 See \`config.log' for more details." >&5
34931 echo "$as_me: error: cannot compute sizeof (char)
34932 See \`config.log' for more details." >&2;}
34933    { (exit 77); exit 77; }; }
34934    else
34935      ac_cv_sizeof_char=0
34936    fi ;;
34937 esac
34938 else
34939   cat >conftest.$ac_ext <<_ACEOF
34940 /* confdefs.h.  */
34941 _ACEOF
34942 cat confdefs.h >>conftest.$ac_ext
34943 cat >>conftest.$ac_ext <<_ACEOF
34944 /* end confdefs.h.  */
34945 $ac_includes_default
34946    typedef char ac__type_sizeof_;
34947 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34948 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34949 #include <stdio.h>
34950 #include <stdlib.h>
34951 int
34952 main ()
34953 {
34954
34955   FILE *f = fopen ("conftest.val", "w");
34956   if (! f)
34957     return 1;
34958   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34959     {
34960       long int i = longval ();
34961       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34962         return 1;
34963       fprintf (f, "%ld\n", i);
34964     }
34965   else
34966     {
34967       unsigned long int i = ulongval ();
34968       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34969         return 1;
34970       fprintf (f, "%lu\n", i);
34971     }
34972   return ferror (f) || fclose (f) != 0;
34973
34974   ;
34975   return 0;
34976 }
34977 _ACEOF
34978 rm -f conftest$ac_exeext
34979 if { (ac_try="$ac_link"
34980 case "(($ac_try" in
34981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34982   *) ac_try_echo=$ac_try;;
34983 esac
34984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34985   (eval "$ac_link") 2>&5
34986   ac_status=$?
34987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34989   { (case "(($ac_try" in
34990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34991   *) ac_try_echo=$ac_try;;
34992 esac
34993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34994   (eval "$ac_try") 2>&5
34995   ac_status=$?
34996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997   (exit $ac_status); }; }; then
34998   ac_cv_sizeof_char=`cat conftest.val`
34999 else
35000   echo "$as_me: program exited with status $ac_status" >&5
35001 echo "$as_me: failed program was:" >&5
35002 sed 's/^/| /' conftest.$ac_ext >&5
35003
35004 ( exit $ac_status )
35005 if test "$ac_cv_type_char" = yes; then
35006      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35007 See \`config.log' for more details." >&5
35008 echo "$as_me: error: cannot compute sizeof (char)
35009 See \`config.log' for more details." >&2;}
35010    { (exit 77); exit 77; }; }
35011    else
35012      ac_cv_sizeof_char=0
35013    fi
35014 fi
35015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35016 fi
35017 rm -f conftest.val
35018 fi
35019 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35020 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35021
35022
35023
35024 cat >>confdefs.h <<_ACEOF
35025 #define SIZEOF_CHAR $ac_cv_sizeof_char
35026 _ACEOF
35027
35028
35029 { echo "$as_me:$LINENO: checking for short int" >&5
35030 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35031 if test "${ac_cv_type_short_int+set}" = set; then
35032   echo $ECHO_N "(cached) $ECHO_C" >&6
35033 else
35034   cat >conftest.$ac_ext <<_ACEOF
35035 /* confdefs.h.  */
35036 _ACEOF
35037 cat confdefs.h >>conftest.$ac_ext
35038 cat >>conftest.$ac_ext <<_ACEOF
35039 /* end confdefs.h.  */
35040 $ac_includes_default
35041 typedef short int ac__type_new_;
35042 int
35043 main ()
35044 {
35045 if ((ac__type_new_ *) 0)
35046   return 0;
35047 if (sizeof (ac__type_new_))
35048   return 0;
35049   ;
35050   return 0;
35051 }
35052 _ACEOF
35053 rm -f conftest.$ac_objext
35054 if { (ac_try="$ac_compile"
35055 case "(($ac_try" in
35056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35057   *) ac_try_echo=$ac_try;;
35058 esac
35059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35060   (eval "$ac_compile") 2>conftest.er1
35061   ac_status=$?
35062   grep -v '^ *+' conftest.er1 >conftest.err
35063   rm -f conftest.er1
35064   cat conftest.err >&5
35065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066   (exit $ac_status); } && {
35067          test -z "$ac_c_werror_flag" ||
35068          test ! -s conftest.err
35069        } && test -s conftest.$ac_objext; then
35070   ac_cv_type_short_int=yes
35071 else
35072   echo "$as_me: failed program was:" >&5
35073 sed 's/^/| /' conftest.$ac_ext >&5
35074
35075         ac_cv_type_short_int=no
35076 fi
35077
35078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35079 fi
35080 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35081 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35082
35083 # The cast to long int works around a bug in the HP C Compiler
35084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35086 # This bug is HP SR number 8606223364.
35087 { echo "$as_me:$LINENO: checking size of short int" >&5
35088 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35089 if test "${ac_cv_sizeof_short_int+set}" = set; then
35090   echo $ECHO_N "(cached) $ECHO_C" >&6
35091 else
35092   if test "$cross_compiling" = yes; then
35093   # Depending upon the size, compute the lo and hi bounds.
35094 cat >conftest.$ac_ext <<_ACEOF
35095 /* confdefs.h.  */
35096 _ACEOF
35097 cat confdefs.h >>conftest.$ac_ext
35098 cat >>conftest.$ac_ext <<_ACEOF
35099 /* end confdefs.h.  */
35100 $ac_includes_default
35101    typedef short int ac__type_sizeof_;
35102 int
35103 main ()
35104 {
35105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35106 test_array [0] = 0
35107
35108   ;
35109   return 0;
35110 }
35111 _ACEOF
35112 rm -f conftest.$ac_objext
35113 if { (ac_try="$ac_compile"
35114 case "(($ac_try" in
35115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35116   *) ac_try_echo=$ac_try;;
35117 esac
35118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35119   (eval "$ac_compile") 2>conftest.er1
35120   ac_status=$?
35121   grep -v '^ *+' conftest.er1 >conftest.err
35122   rm -f conftest.er1
35123   cat conftest.err >&5
35124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125   (exit $ac_status); } && {
35126          test -z "$ac_c_werror_flag" ||
35127          test ! -s conftest.err
35128        } && test -s conftest.$ac_objext; then
35129   ac_lo=0 ac_mid=0
35130   while :; do
35131     cat >conftest.$ac_ext <<_ACEOF
35132 /* confdefs.h.  */
35133 _ACEOF
35134 cat confdefs.h >>conftest.$ac_ext
35135 cat >>conftest.$ac_ext <<_ACEOF
35136 /* end confdefs.h.  */
35137 $ac_includes_default
35138    typedef short int ac__type_sizeof_;
35139 int
35140 main ()
35141 {
35142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35143 test_array [0] = 0
35144
35145   ;
35146   return 0;
35147 }
35148 _ACEOF
35149 rm -f conftest.$ac_objext
35150 if { (ac_try="$ac_compile"
35151 case "(($ac_try" in
35152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35153   *) ac_try_echo=$ac_try;;
35154 esac
35155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35156   (eval "$ac_compile") 2>conftest.er1
35157   ac_status=$?
35158   grep -v '^ *+' conftest.er1 >conftest.err
35159   rm -f conftest.er1
35160   cat conftest.err >&5
35161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35162   (exit $ac_status); } && {
35163          test -z "$ac_c_werror_flag" ||
35164          test ! -s conftest.err
35165        } && test -s conftest.$ac_objext; then
35166   ac_hi=$ac_mid; break
35167 else
35168   echo "$as_me: failed program was:" >&5
35169 sed 's/^/| /' conftest.$ac_ext >&5
35170
35171         ac_lo=`expr $ac_mid + 1`
35172                         if test $ac_lo -le $ac_mid; then
35173                           ac_lo= ac_hi=
35174                           break
35175                         fi
35176                         ac_mid=`expr 2 '*' $ac_mid + 1`
35177 fi
35178
35179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35180   done
35181 else
35182   echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185         cat >conftest.$ac_ext <<_ACEOF
35186 /* confdefs.h.  */
35187 _ACEOF
35188 cat confdefs.h >>conftest.$ac_ext
35189 cat >>conftest.$ac_ext <<_ACEOF
35190 /* end confdefs.h.  */
35191 $ac_includes_default
35192    typedef short int ac__type_sizeof_;
35193 int
35194 main ()
35195 {
35196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35197 test_array [0] = 0
35198
35199   ;
35200   return 0;
35201 }
35202 _ACEOF
35203 rm -f conftest.$ac_objext
35204 if { (ac_try="$ac_compile"
35205 case "(($ac_try" in
35206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35207   *) ac_try_echo=$ac_try;;
35208 esac
35209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35210   (eval "$ac_compile") 2>conftest.er1
35211   ac_status=$?
35212   grep -v '^ *+' conftest.er1 >conftest.err
35213   rm -f conftest.er1
35214   cat conftest.err >&5
35215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216   (exit $ac_status); } && {
35217          test -z "$ac_c_werror_flag" ||
35218          test ! -s conftest.err
35219        } && test -s conftest.$ac_objext; then
35220   ac_hi=-1 ac_mid=-1
35221   while :; do
35222     cat >conftest.$ac_ext <<_ACEOF
35223 /* confdefs.h.  */
35224 _ACEOF
35225 cat confdefs.h >>conftest.$ac_ext
35226 cat >>conftest.$ac_ext <<_ACEOF
35227 /* end confdefs.h.  */
35228 $ac_includes_default
35229    typedef short int ac__type_sizeof_;
35230 int
35231 main ()
35232 {
35233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35234 test_array [0] = 0
35235
35236   ;
35237   return 0;
35238 }
35239 _ACEOF
35240 rm -f conftest.$ac_objext
35241 if { (ac_try="$ac_compile"
35242 case "(($ac_try" in
35243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35244   *) ac_try_echo=$ac_try;;
35245 esac
35246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35247   (eval "$ac_compile") 2>conftest.er1
35248   ac_status=$?
35249   grep -v '^ *+' conftest.er1 >conftest.err
35250   rm -f conftest.er1
35251   cat conftest.err >&5
35252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253   (exit $ac_status); } && {
35254          test -z "$ac_c_werror_flag" ||
35255          test ! -s conftest.err
35256        } && test -s conftest.$ac_objext; then
35257   ac_lo=$ac_mid; break
35258 else
35259   echo "$as_me: failed program was:" >&5
35260 sed 's/^/| /' conftest.$ac_ext >&5
35261
35262         ac_hi=`expr '(' $ac_mid ')' - 1`
35263                         if test $ac_mid -le $ac_hi; then
35264                           ac_lo= ac_hi=
35265                           break
35266                         fi
35267                         ac_mid=`expr 2 '*' $ac_mid`
35268 fi
35269
35270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35271   done
35272 else
35273   echo "$as_me: failed program was:" >&5
35274 sed 's/^/| /' conftest.$ac_ext >&5
35275
35276         ac_lo= ac_hi=
35277 fi
35278
35279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35280 fi
35281
35282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35283 # Binary search between lo and hi bounds.
35284 while test "x$ac_lo" != "x$ac_hi"; do
35285   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35286   cat >conftest.$ac_ext <<_ACEOF
35287 /* confdefs.h.  */
35288 _ACEOF
35289 cat confdefs.h >>conftest.$ac_ext
35290 cat >>conftest.$ac_ext <<_ACEOF
35291 /* end confdefs.h.  */
35292 $ac_includes_default
35293    typedef short int ac__type_sizeof_;
35294 int
35295 main ()
35296 {
35297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35298 test_array [0] = 0
35299
35300   ;
35301   return 0;
35302 }
35303 _ACEOF
35304 rm -f conftest.$ac_objext
35305 if { (ac_try="$ac_compile"
35306 case "(($ac_try" in
35307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35308   *) ac_try_echo=$ac_try;;
35309 esac
35310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35311   (eval "$ac_compile") 2>conftest.er1
35312   ac_status=$?
35313   grep -v '^ *+' conftest.er1 >conftest.err
35314   rm -f conftest.er1
35315   cat conftest.err >&5
35316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317   (exit $ac_status); } && {
35318          test -z "$ac_c_werror_flag" ||
35319          test ! -s conftest.err
35320        } && test -s conftest.$ac_objext; then
35321   ac_hi=$ac_mid
35322 else
35323   echo "$as_me: failed program was:" >&5
35324 sed 's/^/| /' conftest.$ac_ext >&5
35325
35326         ac_lo=`expr '(' $ac_mid ')' + 1`
35327 fi
35328
35329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35330 done
35331 case $ac_lo in
35332 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35333 '') if test "$ac_cv_type_short_int" = yes; then
35334      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35335 See \`config.log' for more details." >&5
35336 echo "$as_me: error: cannot compute sizeof (short int)
35337 See \`config.log' for more details." >&2;}
35338    { (exit 77); exit 77; }; }
35339    else
35340      ac_cv_sizeof_short_int=0
35341    fi ;;
35342 esac
35343 else
35344   cat >conftest.$ac_ext <<_ACEOF
35345 /* confdefs.h.  */
35346 _ACEOF
35347 cat confdefs.h >>conftest.$ac_ext
35348 cat >>conftest.$ac_ext <<_ACEOF
35349 /* end confdefs.h.  */
35350 $ac_includes_default
35351    typedef short int ac__type_sizeof_;
35352 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35353 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35354 #include <stdio.h>
35355 #include <stdlib.h>
35356 int
35357 main ()
35358 {
35359
35360   FILE *f = fopen ("conftest.val", "w");
35361   if (! f)
35362     return 1;
35363   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35364     {
35365       long int i = longval ();
35366       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35367         return 1;
35368       fprintf (f, "%ld\n", i);
35369     }
35370   else
35371     {
35372       unsigned long int i = ulongval ();
35373       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35374         return 1;
35375       fprintf (f, "%lu\n", i);
35376     }
35377   return ferror (f) || fclose (f) != 0;
35378
35379   ;
35380   return 0;
35381 }
35382 _ACEOF
35383 rm -f conftest$ac_exeext
35384 if { (ac_try="$ac_link"
35385 case "(($ac_try" in
35386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35387   *) ac_try_echo=$ac_try;;
35388 esac
35389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35390   (eval "$ac_link") 2>&5
35391   ac_status=$?
35392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35394   { (case "(($ac_try" in
35395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35396   *) ac_try_echo=$ac_try;;
35397 esac
35398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35399   (eval "$ac_try") 2>&5
35400   ac_status=$?
35401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402   (exit $ac_status); }; }; then
35403   ac_cv_sizeof_short_int=`cat conftest.val`
35404 else
35405   echo "$as_me: program exited with status $ac_status" >&5
35406 echo "$as_me: failed program was:" >&5
35407 sed 's/^/| /' conftest.$ac_ext >&5
35408
35409 ( exit $ac_status )
35410 if test "$ac_cv_type_short_int" = yes; then
35411      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35412 See \`config.log' for more details." >&5
35413 echo "$as_me: error: cannot compute sizeof (short int)
35414 See \`config.log' for more details." >&2;}
35415    { (exit 77); exit 77; }; }
35416    else
35417      ac_cv_sizeof_short_int=0
35418    fi
35419 fi
35420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35421 fi
35422 rm -f conftest.val
35423 fi
35424 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35425 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35426
35427
35428
35429 cat >>confdefs.h <<_ACEOF
35430 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35431 _ACEOF
35432
35433
35434 { echo "$as_me:$LINENO: checking for int" >&5
35435 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35436 if test "${ac_cv_type_int+set}" = set; then
35437   echo $ECHO_N "(cached) $ECHO_C" >&6
35438 else
35439   cat >conftest.$ac_ext <<_ACEOF
35440 /* confdefs.h.  */
35441 _ACEOF
35442 cat confdefs.h >>conftest.$ac_ext
35443 cat >>conftest.$ac_ext <<_ACEOF
35444 /* end confdefs.h.  */
35445 $ac_includes_default
35446 typedef int ac__type_new_;
35447 int
35448 main ()
35449 {
35450 if ((ac__type_new_ *) 0)
35451   return 0;
35452 if (sizeof (ac__type_new_))
35453   return 0;
35454   ;
35455   return 0;
35456 }
35457 _ACEOF
35458 rm -f conftest.$ac_objext
35459 if { (ac_try="$ac_compile"
35460 case "(($ac_try" in
35461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35462   *) ac_try_echo=$ac_try;;
35463 esac
35464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35465   (eval "$ac_compile") 2>conftest.er1
35466   ac_status=$?
35467   grep -v '^ *+' conftest.er1 >conftest.err
35468   rm -f conftest.er1
35469   cat conftest.err >&5
35470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35471   (exit $ac_status); } && {
35472          test -z "$ac_c_werror_flag" ||
35473          test ! -s conftest.err
35474        } && test -s conftest.$ac_objext; then
35475   ac_cv_type_int=yes
35476 else
35477   echo "$as_me: failed program was:" >&5
35478 sed 's/^/| /' conftest.$ac_ext >&5
35479
35480         ac_cv_type_int=no
35481 fi
35482
35483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35484 fi
35485 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35486 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35487
35488 # The cast to long int works around a bug in the HP C Compiler
35489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35491 # This bug is HP SR number 8606223364.
35492 { echo "$as_me:$LINENO: checking size of int" >&5
35493 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35494 if test "${ac_cv_sizeof_int+set}" = set; then
35495   echo $ECHO_N "(cached) $ECHO_C" >&6
35496 else
35497   if test "$cross_compiling" = yes; then
35498   # Depending upon the size, compute the lo and hi bounds.
35499 cat >conftest.$ac_ext <<_ACEOF
35500 /* confdefs.h.  */
35501 _ACEOF
35502 cat confdefs.h >>conftest.$ac_ext
35503 cat >>conftest.$ac_ext <<_ACEOF
35504 /* end confdefs.h.  */
35505 $ac_includes_default
35506    typedef int ac__type_sizeof_;
35507 int
35508 main ()
35509 {
35510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35511 test_array [0] = 0
35512
35513   ;
35514   return 0;
35515 }
35516 _ACEOF
35517 rm -f conftest.$ac_objext
35518 if { (ac_try="$ac_compile"
35519 case "(($ac_try" in
35520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35521   *) ac_try_echo=$ac_try;;
35522 esac
35523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35524   (eval "$ac_compile") 2>conftest.er1
35525   ac_status=$?
35526   grep -v '^ *+' conftest.er1 >conftest.err
35527   rm -f conftest.er1
35528   cat conftest.err >&5
35529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530   (exit $ac_status); } && {
35531          test -z "$ac_c_werror_flag" ||
35532          test ! -s conftest.err
35533        } && test -s conftest.$ac_objext; then
35534   ac_lo=0 ac_mid=0
35535   while :; do
35536     cat >conftest.$ac_ext <<_ACEOF
35537 /* confdefs.h.  */
35538 _ACEOF
35539 cat confdefs.h >>conftest.$ac_ext
35540 cat >>conftest.$ac_ext <<_ACEOF
35541 /* end confdefs.h.  */
35542 $ac_includes_default
35543    typedef int ac__type_sizeof_;
35544 int
35545 main ()
35546 {
35547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35548 test_array [0] = 0
35549
35550   ;
35551   return 0;
35552 }
35553 _ACEOF
35554 rm -f conftest.$ac_objext
35555 if { (ac_try="$ac_compile"
35556 case "(($ac_try" in
35557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35558   *) ac_try_echo=$ac_try;;
35559 esac
35560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35561   (eval "$ac_compile") 2>conftest.er1
35562   ac_status=$?
35563   grep -v '^ *+' conftest.er1 >conftest.err
35564   rm -f conftest.er1
35565   cat conftest.err >&5
35566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567   (exit $ac_status); } && {
35568          test -z "$ac_c_werror_flag" ||
35569          test ! -s conftest.err
35570        } && test -s conftest.$ac_objext; then
35571   ac_hi=$ac_mid; break
35572 else
35573   echo "$as_me: failed program was:" >&5
35574 sed 's/^/| /' conftest.$ac_ext >&5
35575
35576         ac_lo=`expr $ac_mid + 1`
35577                         if test $ac_lo -le $ac_mid; then
35578                           ac_lo= ac_hi=
35579                           break
35580                         fi
35581                         ac_mid=`expr 2 '*' $ac_mid + 1`
35582 fi
35583
35584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35585   done
35586 else
35587   echo "$as_me: failed program was:" >&5
35588 sed 's/^/| /' conftest.$ac_ext >&5
35589
35590         cat >conftest.$ac_ext <<_ACEOF
35591 /* confdefs.h.  */
35592 _ACEOF
35593 cat confdefs.h >>conftest.$ac_ext
35594 cat >>conftest.$ac_ext <<_ACEOF
35595 /* end confdefs.h.  */
35596 $ac_includes_default
35597    typedef int ac__type_sizeof_;
35598 int
35599 main ()
35600 {
35601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35602 test_array [0] = 0
35603
35604   ;
35605   return 0;
35606 }
35607 _ACEOF
35608 rm -f conftest.$ac_objext
35609 if { (ac_try="$ac_compile"
35610 case "(($ac_try" in
35611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35612   *) ac_try_echo=$ac_try;;
35613 esac
35614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35615   (eval "$ac_compile") 2>conftest.er1
35616   ac_status=$?
35617   grep -v '^ *+' conftest.er1 >conftest.err
35618   rm -f conftest.er1
35619   cat conftest.err >&5
35620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621   (exit $ac_status); } && {
35622          test -z "$ac_c_werror_flag" ||
35623          test ! -s conftest.err
35624        } && test -s conftest.$ac_objext; then
35625   ac_hi=-1 ac_mid=-1
35626   while :; do
35627     cat >conftest.$ac_ext <<_ACEOF
35628 /* confdefs.h.  */
35629 _ACEOF
35630 cat confdefs.h >>conftest.$ac_ext
35631 cat >>conftest.$ac_ext <<_ACEOF
35632 /* end confdefs.h.  */
35633 $ac_includes_default
35634    typedef int ac__type_sizeof_;
35635 int
35636 main ()
35637 {
35638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35639 test_array [0] = 0
35640
35641   ;
35642   return 0;
35643 }
35644 _ACEOF
35645 rm -f conftest.$ac_objext
35646 if { (ac_try="$ac_compile"
35647 case "(($ac_try" in
35648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35649   *) ac_try_echo=$ac_try;;
35650 esac
35651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35652   (eval "$ac_compile") 2>conftest.er1
35653   ac_status=$?
35654   grep -v '^ *+' conftest.er1 >conftest.err
35655   rm -f conftest.er1
35656   cat conftest.err >&5
35657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658   (exit $ac_status); } && {
35659          test -z "$ac_c_werror_flag" ||
35660          test ! -s conftest.err
35661        } && test -s conftest.$ac_objext; then
35662   ac_lo=$ac_mid; break
35663 else
35664   echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35666
35667         ac_hi=`expr '(' $ac_mid ')' - 1`
35668                         if test $ac_mid -le $ac_hi; then
35669                           ac_lo= ac_hi=
35670                           break
35671                         fi
35672                         ac_mid=`expr 2 '*' $ac_mid`
35673 fi
35674
35675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35676   done
35677 else
35678   echo "$as_me: failed program was:" >&5
35679 sed 's/^/| /' conftest.$ac_ext >&5
35680
35681         ac_lo= ac_hi=
35682 fi
35683
35684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35685 fi
35686
35687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35688 # Binary search between lo and hi bounds.
35689 while test "x$ac_lo" != "x$ac_hi"; do
35690   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35691   cat >conftest.$ac_ext <<_ACEOF
35692 /* confdefs.h.  */
35693 _ACEOF
35694 cat confdefs.h >>conftest.$ac_ext
35695 cat >>conftest.$ac_ext <<_ACEOF
35696 /* end confdefs.h.  */
35697 $ac_includes_default
35698    typedef int ac__type_sizeof_;
35699 int
35700 main ()
35701 {
35702 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35703 test_array [0] = 0
35704
35705   ;
35706   return 0;
35707 }
35708 _ACEOF
35709 rm -f conftest.$ac_objext
35710 if { (ac_try="$ac_compile"
35711 case "(($ac_try" in
35712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35713   *) ac_try_echo=$ac_try;;
35714 esac
35715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35716   (eval "$ac_compile") 2>conftest.er1
35717   ac_status=$?
35718   grep -v '^ *+' conftest.er1 >conftest.err
35719   rm -f conftest.er1
35720   cat conftest.err >&5
35721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35722   (exit $ac_status); } && {
35723          test -z "$ac_c_werror_flag" ||
35724          test ! -s conftest.err
35725        } && test -s conftest.$ac_objext; then
35726   ac_hi=$ac_mid
35727 else
35728   echo "$as_me: failed program was:" >&5
35729 sed 's/^/| /' conftest.$ac_ext >&5
35730
35731         ac_lo=`expr '(' $ac_mid ')' + 1`
35732 fi
35733
35734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35735 done
35736 case $ac_lo in
35737 ?*) ac_cv_sizeof_int=$ac_lo;;
35738 '') if test "$ac_cv_type_int" = yes; then
35739      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35740 See \`config.log' for more details." >&5
35741 echo "$as_me: error: cannot compute sizeof (int)
35742 See \`config.log' for more details." >&2;}
35743    { (exit 77); exit 77; }; }
35744    else
35745      ac_cv_sizeof_int=0
35746    fi ;;
35747 esac
35748 else
35749   cat >conftest.$ac_ext <<_ACEOF
35750 /* confdefs.h.  */
35751 _ACEOF
35752 cat confdefs.h >>conftest.$ac_ext
35753 cat >>conftest.$ac_ext <<_ACEOF
35754 /* end confdefs.h.  */
35755 $ac_includes_default
35756    typedef int ac__type_sizeof_;
35757 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35758 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35759 #include <stdio.h>
35760 #include <stdlib.h>
35761 int
35762 main ()
35763 {
35764
35765   FILE *f = fopen ("conftest.val", "w");
35766   if (! f)
35767     return 1;
35768   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35769     {
35770       long int i = longval ();
35771       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35772         return 1;
35773       fprintf (f, "%ld\n", i);
35774     }
35775   else
35776     {
35777       unsigned long int i = ulongval ();
35778       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35779         return 1;
35780       fprintf (f, "%lu\n", i);
35781     }
35782   return ferror (f) || fclose (f) != 0;
35783
35784   ;
35785   return 0;
35786 }
35787 _ACEOF
35788 rm -f conftest$ac_exeext
35789 if { (ac_try="$ac_link"
35790 case "(($ac_try" in
35791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35792   *) ac_try_echo=$ac_try;;
35793 esac
35794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35795   (eval "$ac_link") 2>&5
35796   ac_status=$?
35797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35799   { (case "(($ac_try" in
35800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35801   *) ac_try_echo=$ac_try;;
35802 esac
35803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35804   (eval "$ac_try") 2>&5
35805   ac_status=$?
35806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807   (exit $ac_status); }; }; then
35808   ac_cv_sizeof_int=`cat conftest.val`
35809 else
35810   echo "$as_me: program exited with status $ac_status" >&5
35811 echo "$as_me: failed program was:" >&5
35812 sed 's/^/| /' conftest.$ac_ext >&5
35813
35814 ( exit $ac_status )
35815 if test "$ac_cv_type_int" = yes; then
35816      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35817 See \`config.log' for more details." >&5
35818 echo "$as_me: error: cannot compute sizeof (int)
35819 See \`config.log' for more details." >&2;}
35820    { (exit 77); exit 77; }; }
35821    else
35822      ac_cv_sizeof_int=0
35823    fi
35824 fi
35825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35826 fi
35827 rm -f conftest.val
35828 fi
35829 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35830 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35831
35832
35833
35834 cat >>confdefs.h <<_ACEOF
35835 #define SIZEOF_INT $ac_cv_sizeof_int
35836 _ACEOF
35837
35838
35839 { echo "$as_me:$LINENO: checking for long int" >&5
35840 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35841 if test "${ac_cv_type_long_int+set}" = set; then
35842   echo $ECHO_N "(cached) $ECHO_C" >&6
35843 else
35844   cat >conftest.$ac_ext <<_ACEOF
35845 /* confdefs.h.  */
35846 _ACEOF
35847 cat confdefs.h >>conftest.$ac_ext
35848 cat >>conftest.$ac_ext <<_ACEOF
35849 /* end confdefs.h.  */
35850 $ac_includes_default
35851 typedef long int ac__type_new_;
35852 int
35853 main ()
35854 {
35855 if ((ac__type_new_ *) 0)
35856   return 0;
35857 if (sizeof (ac__type_new_))
35858   return 0;
35859   ;
35860   return 0;
35861 }
35862 _ACEOF
35863 rm -f conftest.$ac_objext
35864 if { (ac_try="$ac_compile"
35865 case "(($ac_try" in
35866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35867   *) ac_try_echo=$ac_try;;
35868 esac
35869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35870   (eval "$ac_compile") 2>conftest.er1
35871   ac_status=$?
35872   grep -v '^ *+' conftest.er1 >conftest.err
35873   rm -f conftest.er1
35874   cat conftest.err >&5
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); } && {
35877          test -z "$ac_c_werror_flag" ||
35878          test ! -s conftest.err
35879        } && test -s conftest.$ac_objext; then
35880   ac_cv_type_long_int=yes
35881 else
35882   echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35884
35885         ac_cv_type_long_int=no
35886 fi
35887
35888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35889 fi
35890 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35891 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35892
35893 # The cast to long int works around a bug in the HP C Compiler
35894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35896 # This bug is HP SR number 8606223364.
35897 { echo "$as_me:$LINENO: checking size of long int" >&5
35898 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35899 if test "${ac_cv_sizeof_long_int+set}" = set; then
35900   echo $ECHO_N "(cached) $ECHO_C" >&6
35901 else
35902   if test "$cross_compiling" = yes; then
35903   # Depending upon the size, compute the lo and hi bounds.
35904 cat >conftest.$ac_ext <<_ACEOF
35905 /* confdefs.h.  */
35906 _ACEOF
35907 cat confdefs.h >>conftest.$ac_ext
35908 cat >>conftest.$ac_ext <<_ACEOF
35909 /* end confdefs.h.  */
35910 $ac_includes_default
35911    typedef long int ac__type_sizeof_;
35912 int
35913 main ()
35914 {
35915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35916 test_array [0] = 0
35917
35918   ;
35919   return 0;
35920 }
35921 _ACEOF
35922 rm -f conftest.$ac_objext
35923 if { (ac_try="$ac_compile"
35924 case "(($ac_try" in
35925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35926   *) ac_try_echo=$ac_try;;
35927 esac
35928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35929   (eval "$ac_compile") 2>conftest.er1
35930   ac_status=$?
35931   grep -v '^ *+' conftest.er1 >conftest.err
35932   rm -f conftest.er1
35933   cat conftest.err >&5
35934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35935   (exit $ac_status); } && {
35936          test -z "$ac_c_werror_flag" ||
35937          test ! -s conftest.err
35938        } && test -s conftest.$ac_objext; then
35939   ac_lo=0 ac_mid=0
35940   while :; do
35941     cat >conftest.$ac_ext <<_ACEOF
35942 /* confdefs.h.  */
35943 _ACEOF
35944 cat confdefs.h >>conftest.$ac_ext
35945 cat >>conftest.$ac_ext <<_ACEOF
35946 /* end confdefs.h.  */
35947 $ac_includes_default
35948    typedef long int ac__type_sizeof_;
35949 int
35950 main ()
35951 {
35952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35953 test_array [0] = 0
35954
35955   ;
35956   return 0;
35957 }
35958 _ACEOF
35959 rm -f conftest.$ac_objext
35960 if { (ac_try="$ac_compile"
35961 case "(($ac_try" in
35962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35963   *) ac_try_echo=$ac_try;;
35964 esac
35965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35966   (eval "$ac_compile") 2>conftest.er1
35967   ac_status=$?
35968   grep -v '^ *+' conftest.er1 >conftest.err
35969   rm -f conftest.er1
35970   cat conftest.err >&5
35971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972   (exit $ac_status); } && {
35973          test -z "$ac_c_werror_flag" ||
35974          test ! -s conftest.err
35975        } && test -s conftest.$ac_objext; then
35976   ac_hi=$ac_mid; break
35977 else
35978   echo "$as_me: failed program was:" >&5
35979 sed 's/^/| /' conftest.$ac_ext >&5
35980
35981         ac_lo=`expr $ac_mid + 1`
35982                         if test $ac_lo -le $ac_mid; then
35983                           ac_lo= ac_hi=
35984                           break
35985                         fi
35986                         ac_mid=`expr 2 '*' $ac_mid + 1`
35987 fi
35988
35989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35990   done
35991 else
35992   echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35994
35995         cat >conftest.$ac_ext <<_ACEOF
35996 /* confdefs.h.  */
35997 _ACEOF
35998 cat confdefs.h >>conftest.$ac_ext
35999 cat >>conftest.$ac_ext <<_ACEOF
36000 /* end confdefs.h.  */
36001 $ac_includes_default
36002    typedef long int ac__type_sizeof_;
36003 int
36004 main ()
36005 {
36006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36007 test_array [0] = 0
36008
36009   ;
36010   return 0;
36011 }
36012 _ACEOF
36013 rm -f conftest.$ac_objext
36014 if { (ac_try="$ac_compile"
36015 case "(($ac_try" in
36016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36017   *) ac_try_echo=$ac_try;;
36018 esac
36019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36020   (eval "$ac_compile") 2>conftest.er1
36021   ac_status=$?
36022   grep -v '^ *+' conftest.er1 >conftest.err
36023   rm -f conftest.er1
36024   cat conftest.err >&5
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); } && {
36027          test -z "$ac_c_werror_flag" ||
36028          test ! -s conftest.err
36029        } && test -s conftest.$ac_objext; then
36030   ac_hi=-1 ac_mid=-1
36031   while :; do
36032     cat >conftest.$ac_ext <<_ACEOF
36033 /* confdefs.h.  */
36034 _ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h.  */
36038 $ac_includes_default
36039    typedef long int ac__type_sizeof_;
36040 int
36041 main ()
36042 {
36043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36044 test_array [0] = 0
36045
36046   ;
36047   return 0;
36048 }
36049 _ACEOF
36050 rm -f conftest.$ac_objext
36051 if { (ac_try="$ac_compile"
36052 case "(($ac_try" in
36053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36054   *) ac_try_echo=$ac_try;;
36055 esac
36056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36057   (eval "$ac_compile") 2>conftest.er1
36058   ac_status=$?
36059   grep -v '^ *+' conftest.er1 >conftest.err
36060   rm -f conftest.er1
36061   cat conftest.err >&5
36062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063   (exit $ac_status); } && {
36064          test -z "$ac_c_werror_flag" ||
36065          test ! -s conftest.err
36066        } && test -s conftest.$ac_objext; then
36067   ac_lo=$ac_mid; break
36068 else
36069   echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36071
36072         ac_hi=`expr '(' $ac_mid ')' - 1`
36073                         if test $ac_mid -le $ac_hi; then
36074                           ac_lo= ac_hi=
36075                           break
36076                         fi
36077                         ac_mid=`expr 2 '*' $ac_mid`
36078 fi
36079
36080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36081   done
36082 else
36083   echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36085
36086         ac_lo= ac_hi=
36087 fi
36088
36089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36090 fi
36091
36092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36093 # Binary search between lo and hi bounds.
36094 while test "x$ac_lo" != "x$ac_hi"; do
36095   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36096   cat >conftest.$ac_ext <<_ACEOF
36097 /* confdefs.h.  */
36098 _ACEOF
36099 cat confdefs.h >>conftest.$ac_ext
36100 cat >>conftest.$ac_ext <<_ACEOF
36101 /* end confdefs.h.  */
36102 $ac_includes_default
36103    typedef long int ac__type_sizeof_;
36104 int
36105 main ()
36106 {
36107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36108 test_array [0] = 0
36109
36110   ;
36111   return 0;
36112 }
36113 _ACEOF
36114 rm -f conftest.$ac_objext
36115 if { (ac_try="$ac_compile"
36116 case "(($ac_try" in
36117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36118   *) ac_try_echo=$ac_try;;
36119 esac
36120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36121   (eval "$ac_compile") 2>conftest.er1
36122   ac_status=$?
36123   grep -v '^ *+' conftest.er1 >conftest.err
36124   rm -f conftest.er1
36125   cat conftest.err >&5
36126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127   (exit $ac_status); } && {
36128          test -z "$ac_c_werror_flag" ||
36129          test ! -s conftest.err
36130        } && test -s conftest.$ac_objext; then
36131   ac_hi=$ac_mid
36132 else
36133   echo "$as_me: failed program was:" >&5
36134 sed 's/^/| /' conftest.$ac_ext >&5
36135
36136         ac_lo=`expr '(' $ac_mid ')' + 1`
36137 fi
36138
36139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36140 done
36141 case $ac_lo in
36142 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36143 '') if test "$ac_cv_type_long_int" = yes; then
36144      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36145 See \`config.log' for more details." >&5
36146 echo "$as_me: error: cannot compute sizeof (long int)
36147 See \`config.log' for more details." >&2;}
36148    { (exit 77); exit 77; }; }
36149    else
36150      ac_cv_sizeof_long_int=0
36151    fi ;;
36152 esac
36153 else
36154   cat >conftest.$ac_ext <<_ACEOF
36155 /* confdefs.h.  */
36156 _ACEOF
36157 cat confdefs.h >>conftest.$ac_ext
36158 cat >>conftest.$ac_ext <<_ACEOF
36159 /* end confdefs.h.  */
36160 $ac_includes_default
36161    typedef long int ac__type_sizeof_;
36162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36164 #include <stdio.h>
36165 #include <stdlib.h>
36166 int
36167 main ()
36168 {
36169
36170   FILE *f = fopen ("conftest.val", "w");
36171   if (! f)
36172     return 1;
36173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36174     {
36175       long int i = longval ();
36176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36177         return 1;
36178       fprintf (f, "%ld\n", i);
36179     }
36180   else
36181     {
36182       unsigned long int i = ulongval ();
36183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36184         return 1;
36185       fprintf (f, "%lu\n", i);
36186     }
36187   return ferror (f) || fclose (f) != 0;
36188
36189   ;
36190   return 0;
36191 }
36192 _ACEOF
36193 rm -f conftest$ac_exeext
36194 if { (ac_try="$ac_link"
36195 case "(($ac_try" in
36196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197   *) ac_try_echo=$ac_try;;
36198 esac
36199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36200   (eval "$ac_link") 2>&5
36201   ac_status=$?
36202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36204   { (case "(($ac_try" in
36205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36206   *) ac_try_echo=$ac_try;;
36207 esac
36208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36209   (eval "$ac_try") 2>&5
36210   ac_status=$?
36211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212   (exit $ac_status); }; }; then
36213   ac_cv_sizeof_long_int=`cat conftest.val`
36214 else
36215   echo "$as_me: program exited with status $ac_status" >&5
36216 echo "$as_me: failed program was:" >&5
36217 sed 's/^/| /' conftest.$ac_ext >&5
36218
36219 ( exit $ac_status )
36220 if test "$ac_cv_type_long_int" = yes; then
36221      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36222 See \`config.log' for more details." >&5
36223 echo "$as_me: error: cannot compute sizeof (long int)
36224 See \`config.log' for more details." >&2;}
36225    { (exit 77); exit 77; }; }
36226    else
36227      ac_cv_sizeof_long_int=0
36228    fi
36229 fi
36230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36231 fi
36232 rm -f conftest.val
36233 fi
36234 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36235 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36236
36237
36238
36239 cat >>confdefs.h <<_ACEOF
36240 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36241 _ACEOF
36242
36243
36244 { echo "$as_me:$LINENO: checking for long long int" >&5
36245 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36246 if test "${ac_cv_type_long_long_int+set}" = set; then
36247   echo $ECHO_N "(cached) $ECHO_C" >&6
36248 else
36249   cat >conftest.$ac_ext <<_ACEOF
36250 /* confdefs.h.  */
36251 _ACEOF
36252 cat confdefs.h >>conftest.$ac_ext
36253 cat >>conftest.$ac_ext <<_ACEOF
36254 /* end confdefs.h.  */
36255 $ac_includes_default
36256 typedef long long int ac__type_new_;
36257 int
36258 main ()
36259 {
36260 if ((ac__type_new_ *) 0)
36261   return 0;
36262 if (sizeof (ac__type_new_))
36263   return 0;
36264   ;
36265   return 0;
36266 }
36267 _ACEOF
36268 rm -f conftest.$ac_objext
36269 if { (ac_try="$ac_compile"
36270 case "(($ac_try" in
36271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36272   *) ac_try_echo=$ac_try;;
36273 esac
36274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36275   (eval "$ac_compile") 2>conftest.er1
36276   ac_status=$?
36277   grep -v '^ *+' conftest.er1 >conftest.err
36278   rm -f conftest.er1
36279   cat conftest.err >&5
36280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36281   (exit $ac_status); } && {
36282          test -z "$ac_c_werror_flag" ||
36283          test ! -s conftest.err
36284        } && test -s conftest.$ac_objext; then
36285   ac_cv_type_long_long_int=yes
36286 else
36287   echo "$as_me: failed program was:" >&5
36288 sed 's/^/| /' conftest.$ac_ext >&5
36289
36290         ac_cv_type_long_long_int=no
36291 fi
36292
36293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36294 fi
36295 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36296 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36297
36298 # The cast to long int works around a bug in the HP C Compiler
36299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36301 # This bug is HP SR number 8606223364.
36302 { echo "$as_me:$LINENO: checking size of long long int" >&5
36303 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36304 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36305   echo $ECHO_N "(cached) $ECHO_C" >&6
36306 else
36307   if test "$cross_compiling" = yes; then
36308   # Depending upon the size, compute the lo and hi bounds.
36309 cat >conftest.$ac_ext <<_ACEOF
36310 /* confdefs.h.  */
36311 _ACEOF
36312 cat confdefs.h >>conftest.$ac_ext
36313 cat >>conftest.$ac_ext <<_ACEOF
36314 /* end confdefs.h.  */
36315 $ac_includes_default
36316    typedef long long int ac__type_sizeof_;
36317 int
36318 main ()
36319 {
36320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36321 test_array [0] = 0
36322
36323   ;
36324   return 0;
36325 }
36326 _ACEOF
36327 rm -f conftest.$ac_objext
36328 if { (ac_try="$ac_compile"
36329 case "(($ac_try" in
36330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36331   *) ac_try_echo=$ac_try;;
36332 esac
36333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36334   (eval "$ac_compile") 2>conftest.er1
36335   ac_status=$?
36336   grep -v '^ *+' conftest.er1 >conftest.err
36337   rm -f conftest.er1
36338   cat conftest.err >&5
36339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340   (exit $ac_status); } && {
36341          test -z "$ac_c_werror_flag" ||
36342          test ! -s conftest.err
36343        } && test -s conftest.$ac_objext; then
36344   ac_lo=0 ac_mid=0
36345   while :; do
36346     cat >conftest.$ac_ext <<_ACEOF
36347 /* confdefs.h.  */
36348 _ACEOF
36349 cat confdefs.h >>conftest.$ac_ext
36350 cat >>conftest.$ac_ext <<_ACEOF
36351 /* end confdefs.h.  */
36352 $ac_includes_default
36353    typedef long long int ac__type_sizeof_;
36354 int
36355 main ()
36356 {
36357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36358 test_array [0] = 0
36359
36360   ;
36361   return 0;
36362 }
36363 _ACEOF
36364 rm -f conftest.$ac_objext
36365 if { (ac_try="$ac_compile"
36366 case "(($ac_try" in
36367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36368   *) ac_try_echo=$ac_try;;
36369 esac
36370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36371   (eval "$ac_compile") 2>conftest.er1
36372   ac_status=$?
36373   grep -v '^ *+' conftest.er1 >conftest.err
36374   rm -f conftest.er1
36375   cat conftest.err >&5
36376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377   (exit $ac_status); } && {
36378          test -z "$ac_c_werror_flag" ||
36379          test ! -s conftest.err
36380        } && test -s conftest.$ac_objext; then
36381   ac_hi=$ac_mid; break
36382 else
36383   echo "$as_me: failed program was:" >&5
36384 sed 's/^/| /' conftest.$ac_ext >&5
36385
36386         ac_lo=`expr $ac_mid + 1`
36387                         if test $ac_lo -le $ac_mid; then
36388                           ac_lo= ac_hi=
36389                           break
36390                         fi
36391                         ac_mid=`expr 2 '*' $ac_mid + 1`
36392 fi
36393
36394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36395   done
36396 else
36397   echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.$ac_ext >&5
36399
36400         cat >conftest.$ac_ext <<_ACEOF
36401 /* confdefs.h.  */
36402 _ACEOF
36403 cat confdefs.h >>conftest.$ac_ext
36404 cat >>conftest.$ac_ext <<_ACEOF
36405 /* end confdefs.h.  */
36406 $ac_includes_default
36407    typedef long long int ac__type_sizeof_;
36408 int
36409 main ()
36410 {
36411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36412 test_array [0] = 0
36413
36414   ;
36415   return 0;
36416 }
36417 _ACEOF
36418 rm -f conftest.$ac_objext
36419 if { (ac_try="$ac_compile"
36420 case "(($ac_try" in
36421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36422   *) ac_try_echo=$ac_try;;
36423 esac
36424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36425   (eval "$ac_compile") 2>conftest.er1
36426   ac_status=$?
36427   grep -v '^ *+' conftest.er1 >conftest.err
36428   rm -f conftest.er1
36429   cat conftest.err >&5
36430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431   (exit $ac_status); } && {
36432          test -z "$ac_c_werror_flag" ||
36433          test ! -s conftest.err
36434        } && test -s conftest.$ac_objext; then
36435   ac_hi=-1 ac_mid=-1
36436   while :; do
36437     cat >conftest.$ac_ext <<_ACEOF
36438 /* confdefs.h.  */
36439 _ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h.  */
36443 $ac_includes_default
36444    typedef long long int ac__type_sizeof_;
36445 int
36446 main ()
36447 {
36448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36449 test_array [0] = 0
36450
36451   ;
36452   return 0;
36453 }
36454 _ACEOF
36455 rm -f conftest.$ac_objext
36456 if { (ac_try="$ac_compile"
36457 case "(($ac_try" in
36458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36459   *) ac_try_echo=$ac_try;;
36460 esac
36461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36462   (eval "$ac_compile") 2>conftest.er1
36463   ac_status=$?
36464   grep -v '^ *+' conftest.er1 >conftest.err
36465   rm -f conftest.er1
36466   cat conftest.err >&5
36467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468   (exit $ac_status); } && {
36469          test -z "$ac_c_werror_flag" ||
36470          test ! -s conftest.err
36471        } && test -s conftest.$ac_objext; then
36472   ac_lo=$ac_mid; break
36473 else
36474   echo "$as_me: failed program was:" >&5
36475 sed 's/^/| /' conftest.$ac_ext >&5
36476
36477         ac_hi=`expr '(' $ac_mid ')' - 1`
36478                         if test $ac_mid -le $ac_hi; then
36479                           ac_lo= ac_hi=
36480                           break
36481                         fi
36482                         ac_mid=`expr 2 '*' $ac_mid`
36483 fi
36484
36485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36486   done
36487 else
36488   echo "$as_me: failed program was:" >&5
36489 sed 's/^/| /' conftest.$ac_ext >&5
36490
36491         ac_lo= ac_hi=
36492 fi
36493
36494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36495 fi
36496
36497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36498 # Binary search between lo and hi bounds.
36499 while test "x$ac_lo" != "x$ac_hi"; do
36500   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36501   cat >conftest.$ac_ext <<_ACEOF
36502 /* confdefs.h.  */
36503 _ACEOF
36504 cat confdefs.h >>conftest.$ac_ext
36505 cat >>conftest.$ac_ext <<_ACEOF
36506 /* end confdefs.h.  */
36507 $ac_includes_default
36508    typedef long long int ac__type_sizeof_;
36509 int
36510 main ()
36511 {
36512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36513 test_array [0] = 0
36514
36515   ;
36516   return 0;
36517 }
36518 _ACEOF
36519 rm -f conftest.$ac_objext
36520 if { (ac_try="$ac_compile"
36521 case "(($ac_try" in
36522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36523   *) ac_try_echo=$ac_try;;
36524 esac
36525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36526   (eval "$ac_compile") 2>conftest.er1
36527   ac_status=$?
36528   grep -v '^ *+' conftest.er1 >conftest.err
36529   rm -f conftest.er1
36530   cat conftest.err >&5
36531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532   (exit $ac_status); } && {
36533          test -z "$ac_c_werror_flag" ||
36534          test ! -s conftest.err
36535        } && test -s conftest.$ac_objext; then
36536   ac_hi=$ac_mid
36537 else
36538   echo "$as_me: failed program was:" >&5
36539 sed 's/^/| /' conftest.$ac_ext >&5
36540
36541         ac_lo=`expr '(' $ac_mid ')' + 1`
36542 fi
36543
36544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36545 done
36546 case $ac_lo in
36547 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36548 '') if test "$ac_cv_type_long_long_int" = yes; then
36549      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36550 See \`config.log' for more details." >&5
36551 echo "$as_me: error: cannot compute sizeof (long long int)
36552 See \`config.log' for more details." >&2;}
36553    { (exit 77); exit 77; }; }
36554    else
36555      ac_cv_sizeof_long_long_int=0
36556    fi ;;
36557 esac
36558 else
36559   cat >conftest.$ac_ext <<_ACEOF
36560 /* confdefs.h.  */
36561 _ACEOF
36562 cat confdefs.h >>conftest.$ac_ext
36563 cat >>conftest.$ac_ext <<_ACEOF
36564 /* end confdefs.h.  */
36565 $ac_includes_default
36566    typedef long long int ac__type_sizeof_;
36567 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36568 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36569 #include <stdio.h>
36570 #include <stdlib.h>
36571 int
36572 main ()
36573 {
36574
36575   FILE *f = fopen ("conftest.val", "w");
36576   if (! f)
36577     return 1;
36578   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36579     {
36580       long int i = longval ();
36581       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36582         return 1;
36583       fprintf (f, "%ld\n", i);
36584     }
36585   else
36586     {
36587       unsigned long int i = ulongval ();
36588       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36589         return 1;
36590       fprintf (f, "%lu\n", i);
36591     }
36592   return ferror (f) || fclose (f) != 0;
36593
36594   ;
36595   return 0;
36596 }
36597 _ACEOF
36598 rm -f conftest$ac_exeext
36599 if { (ac_try="$ac_link"
36600 case "(($ac_try" in
36601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36602   *) ac_try_echo=$ac_try;;
36603 esac
36604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36605   (eval "$ac_link") 2>&5
36606   ac_status=$?
36607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36609   { (case "(($ac_try" in
36610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36611   *) ac_try_echo=$ac_try;;
36612 esac
36613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36614   (eval "$ac_try") 2>&5
36615   ac_status=$?
36616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617   (exit $ac_status); }; }; then
36618   ac_cv_sizeof_long_long_int=`cat conftest.val`
36619 else
36620   echo "$as_me: program exited with status $ac_status" >&5
36621 echo "$as_me: failed program was:" >&5
36622 sed 's/^/| /' conftest.$ac_ext >&5
36623
36624 ( exit $ac_status )
36625 if test "$ac_cv_type_long_long_int" = yes; then
36626      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36627 See \`config.log' for more details." >&5
36628 echo "$as_me: error: cannot compute sizeof (long long int)
36629 See \`config.log' for more details." >&2;}
36630    { (exit 77); exit 77; }; }
36631    else
36632      ac_cv_sizeof_long_long_int=0
36633    fi
36634 fi
36635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36636 fi
36637 rm -f conftest.val
36638 fi
36639 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36640 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36641
36642
36643
36644 cat >>confdefs.h <<_ACEOF
36645 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36646 _ACEOF
36647
36648
36649 { echo "$as_me:$LINENO: checking for int *" >&5
36650 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36651 if test "${ac_cv_type_int_p+set}" = set; then
36652   echo $ECHO_N "(cached) $ECHO_C" >&6
36653 else
36654   cat >conftest.$ac_ext <<_ACEOF
36655 /* confdefs.h.  */
36656 _ACEOF
36657 cat confdefs.h >>conftest.$ac_ext
36658 cat >>conftest.$ac_ext <<_ACEOF
36659 /* end confdefs.h.  */
36660 $ac_includes_default
36661 typedef int * ac__type_new_;
36662 int
36663 main ()
36664 {
36665 if ((ac__type_new_ *) 0)
36666   return 0;
36667 if (sizeof (ac__type_new_))
36668   return 0;
36669   ;
36670   return 0;
36671 }
36672 _ACEOF
36673 rm -f conftest.$ac_objext
36674 if { (ac_try="$ac_compile"
36675 case "(($ac_try" in
36676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36677   *) ac_try_echo=$ac_try;;
36678 esac
36679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36680   (eval "$ac_compile") 2>conftest.er1
36681   ac_status=$?
36682   grep -v '^ *+' conftest.er1 >conftest.err
36683   rm -f conftest.er1
36684   cat conftest.err >&5
36685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36686   (exit $ac_status); } && {
36687          test -z "$ac_c_werror_flag" ||
36688          test ! -s conftest.err
36689        } && test -s conftest.$ac_objext; then
36690   ac_cv_type_int_p=yes
36691 else
36692   echo "$as_me: failed program was:" >&5
36693 sed 's/^/| /' conftest.$ac_ext >&5
36694
36695         ac_cv_type_int_p=no
36696 fi
36697
36698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36699 fi
36700 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36701 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36702
36703 # The cast to long int works around a bug in the HP C Compiler
36704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36706 # This bug is HP SR number 8606223364.
36707 { echo "$as_me:$LINENO: checking size of int *" >&5
36708 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36709 if test "${ac_cv_sizeof_int_p+set}" = set; then
36710   echo $ECHO_N "(cached) $ECHO_C" >&6
36711 else
36712   if test "$cross_compiling" = yes; then
36713   # Depending upon the size, compute the lo and hi bounds.
36714 cat >conftest.$ac_ext <<_ACEOF
36715 /* confdefs.h.  */
36716 _ACEOF
36717 cat confdefs.h >>conftest.$ac_ext
36718 cat >>conftest.$ac_ext <<_ACEOF
36719 /* end confdefs.h.  */
36720 $ac_includes_default
36721    typedef int * ac__type_sizeof_;
36722 int
36723 main ()
36724 {
36725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36726 test_array [0] = 0
36727
36728   ;
36729   return 0;
36730 }
36731 _ACEOF
36732 rm -f conftest.$ac_objext
36733 if { (ac_try="$ac_compile"
36734 case "(($ac_try" in
36735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36736   *) ac_try_echo=$ac_try;;
36737 esac
36738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36739   (eval "$ac_compile") 2>conftest.er1
36740   ac_status=$?
36741   grep -v '^ *+' conftest.er1 >conftest.err
36742   rm -f conftest.er1
36743   cat conftest.err >&5
36744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36745   (exit $ac_status); } && {
36746          test -z "$ac_c_werror_flag" ||
36747          test ! -s conftest.err
36748        } && test -s conftest.$ac_objext; then
36749   ac_lo=0 ac_mid=0
36750   while :; do
36751     cat >conftest.$ac_ext <<_ACEOF
36752 /* confdefs.h.  */
36753 _ACEOF
36754 cat confdefs.h >>conftest.$ac_ext
36755 cat >>conftest.$ac_ext <<_ACEOF
36756 /* end confdefs.h.  */
36757 $ac_includes_default
36758    typedef int * ac__type_sizeof_;
36759 int
36760 main ()
36761 {
36762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36763 test_array [0] = 0
36764
36765   ;
36766   return 0;
36767 }
36768 _ACEOF
36769 rm -f conftest.$ac_objext
36770 if { (ac_try="$ac_compile"
36771 case "(($ac_try" in
36772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36773   *) ac_try_echo=$ac_try;;
36774 esac
36775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36776   (eval "$ac_compile") 2>conftest.er1
36777   ac_status=$?
36778   grep -v '^ *+' conftest.er1 >conftest.err
36779   rm -f conftest.er1
36780   cat conftest.err >&5
36781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782   (exit $ac_status); } && {
36783          test -z "$ac_c_werror_flag" ||
36784          test ! -s conftest.err
36785        } && test -s conftest.$ac_objext; then
36786   ac_hi=$ac_mid; break
36787 else
36788   echo "$as_me: failed program was:" >&5
36789 sed 's/^/| /' conftest.$ac_ext >&5
36790
36791         ac_lo=`expr $ac_mid + 1`
36792                         if test $ac_lo -le $ac_mid; then
36793                           ac_lo= ac_hi=
36794                           break
36795                         fi
36796                         ac_mid=`expr 2 '*' $ac_mid + 1`
36797 fi
36798
36799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36800   done
36801 else
36802   echo "$as_me: failed program was:" >&5
36803 sed 's/^/| /' conftest.$ac_ext >&5
36804
36805         cat >conftest.$ac_ext <<_ACEOF
36806 /* confdefs.h.  */
36807 _ACEOF
36808 cat confdefs.h >>conftest.$ac_ext
36809 cat >>conftest.$ac_ext <<_ACEOF
36810 /* end confdefs.h.  */
36811 $ac_includes_default
36812    typedef int * ac__type_sizeof_;
36813 int
36814 main ()
36815 {
36816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36817 test_array [0] = 0
36818
36819   ;
36820   return 0;
36821 }
36822 _ACEOF
36823 rm -f conftest.$ac_objext
36824 if { (ac_try="$ac_compile"
36825 case "(($ac_try" in
36826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36827   *) ac_try_echo=$ac_try;;
36828 esac
36829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36830   (eval "$ac_compile") 2>conftest.er1
36831   ac_status=$?
36832   grep -v '^ *+' conftest.er1 >conftest.err
36833   rm -f conftest.er1
36834   cat conftest.err >&5
36835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36836   (exit $ac_status); } && {
36837          test -z "$ac_c_werror_flag" ||
36838          test ! -s conftest.err
36839        } && test -s conftest.$ac_objext; then
36840   ac_hi=-1 ac_mid=-1
36841   while :; do
36842     cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h.  */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h.  */
36848 $ac_includes_default
36849    typedef int * ac__type_sizeof_;
36850 int
36851 main ()
36852 {
36853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36854 test_array [0] = 0
36855
36856   ;
36857   return 0;
36858 }
36859 _ACEOF
36860 rm -f conftest.$ac_objext
36861 if { (ac_try="$ac_compile"
36862 case "(($ac_try" in
36863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36864   *) ac_try_echo=$ac_try;;
36865 esac
36866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36867   (eval "$ac_compile") 2>conftest.er1
36868   ac_status=$?
36869   grep -v '^ *+' conftest.er1 >conftest.err
36870   rm -f conftest.er1
36871   cat conftest.err >&5
36872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873   (exit $ac_status); } && {
36874          test -z "$ac_c_werror_flag" ||
36875          test ! -s conftest.err
36876        } && test -s conftest.$ac_objext; then
36877   ac_lo=$ac_mid; break
36878 else
36879   echo "$as_me: failed program was:" >&5
36880 sed 's/^/| /' conftest.$ac_ext >&5
36881
36882         ac_hi=`expr '(' $ac_mid ')' - 1`
36883                         if test $ac_mid -le $ac_hi; then
36884                           ac_lo= ac_hi=
36885                           break
36886                         fi
36887                         ac_mid=`expr 2 '*' $ac_mid`
36888 fi
36889
36890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36891   done
36892 else
36893   echo "$as_me: failed program was:" >&5
36894 sed 's/^/| /' conftest.$ac_ext >&5
36895
36896         ac_lo= ac_hi=
36897 fi
36898
36899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36900 fi
36901
36902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36903 # Binary search between lo and hi bounds.
36904 while test "x$ac_lo" != "x$ac_hi"; do
36905   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36906   cat >conftest.$ac_ext <<_ACEOF
36907 /* confdefs.h.  */
36908 _ACEOF
36909 cat confdefs.h >>conftest.$ac_ext
36910 cat >>conftest.$ac_ext <<_ACEOF
36911 /* end confdefs.h.  */
36912 $ac_includes_default
36913    typedef int * ac__type_sizeof_;
36914 int
36915 main ()
36916 {
36917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36918 test_array [0] = 0
36919
36920   ;
36921   return 0;
36922 }
36923 _ACEOF
36924 rm -f conftest.$ac_objext
36925 if { (ac_try="$ac_compile"
36926 case "(($ac_try" in
36927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36928   *) ac_try_echo=$ac_try;;
36929 esac
36930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36931   (eval "$ac_compile") 2>conftest.er1
36932   ac_status=$?
36933   grep -v '^ *+' conftest.er1 >conftest.err
36934   rm -f conftest.er1
36935   cat conftest.err >&5
36936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937   (exit $ac_status); } && {
36938          test -z "$ac_c_werror_flag" ||
36939          test ! -s conftest.err
36940        } && test -s conftest.$ac_objext; then
36941   ac_hi=$ac_mid
36942 else
36943   echo "$as_me: failed program was:" >&5
36944 sed 's/^/| /' conftest.$ac_ext >&5
36945
36946         ac_lo=`expr '(' $ac_mid ')' + 1`
36947 fi
36948
36949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36950 done
36951 case $ac_lo in
36952 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36953 '') if test "$ac_cv_type_int_p" = yes; then
36954      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36955 See \`config.log' for more details." >&5
36956 echo "$as_me: error: cannot compute sizeof (int *)
36957 See \`config.log' for more details." >&2;}
36958    { (exit 77); exit 77; }; }
36959    else
36960      ac_cv_sizeof_int_p=0
36961    fi ;;
36962 esac
36963 else
36964   cat >conftest.$ac_ext <<_ACEOF
36965 /* confdefs.h.  */
36966 _ACEOF
36967 cat confdefs.h >>conftest.$ac_ext
36968 cat >>conftest.$ac_ext <<_ACEOF
36969 /* end confdefs.h.  */
36970 $ac_includes_default
36971    typedef int * ac__type_sizeof_;
36972 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36973 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36974 #include <stdio.h>
36975 #include <stdlib.h>
36976 int
36977 main ()
36978 {
36979
36980   FILE *f = fopen ("conftest.val", "w");
36981   if (! f)
36982     return 1;
36983   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36984     {
36985       long int i = longval ();
36986       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36987         return 1;
36988       fprintf (f, "%ld\n", i);
36989     }
36990   else
36991     {
36992       unsigned long int i = ulongval ();
36993       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36994         return 1;
36995       fprintf (f, "%lu\n", i);
36996     }
36997   return ferror (f) || fclose (f) != 0;
36998
36999   ;
37000   return 0;
37001 }
37002 _ACEOF
37003 rm -f conftest$ac_exeext
37004 if { (ac_try="$ac_link"
37005 case "(($ac_try" in
37006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37007   *) ac_try_echo=$ac_try;;
37008 esac
37009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37010   (eval "$ac_link") 2>&5
37011   ac_status=$?
37012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37014   { (case "(($ac_try" in
37015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37016   *) ac_try_echo=$ac_try;;
37017 esac
37018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37019   (eval "$ac_try") 2>&5
37020   ac_status=$?
37021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022   (exit $ac_status); }; }; then
37023   ac_cv_sizeof_int_p=`cat conftest.val`
37024 else
37025   echo "$as_me: program exited with status $ac_status" >&5
37026 echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37028
37029 ( exit $ac_status )
37030 if test "$ac_cv_type_int_p" = yes; then
37031      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37032 See \`config.log' for more details." >&5
37033 echo "$as_me: error: cannot compute sizeof (int *)
37034 See \`config.log' for more details." >&2;}
37035    { (exit 77); exit 77; }; }
37036    else
37037      ac_cv_sizeof_int_p=0
37038    fi
37039 fi
37040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37041 fi
37042 rm -f conftest.val
37043 fi
37044 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37045 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37046
37047
37048
37049 cat >>confdefs.h <<_ACEOF
37050 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37051 _ACEOF
37052
37053
37054
37055 { echo "$as_me:$LINENO: checking for u_int type" >&5
37056 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37057 if test "${ac_cv_have_u_int+set}" = set; then
37058   echo $ECHO_N "(cached) $ECHO_C" >&6
37059 else
37060
37061        cat >conftest.$ac_ext <<_ACEOF
37062 /* confdefs.h.  */
37063 _ACEOF
37064 cat confdefs.h >>conftest.$ac_ext
37065 cat >>conftest.$ac_ext <<_ACEOF
37066 /* end confdefs.h.  */
37067
37068               #include <sys/types.h>
37069
37070 int
37071 main ()
37072 {
37073
37074               u_int a; a = 1;
37075
37076   ;
37077   return 0;
37078 }
37079 _ACEOF
37080 rm -f conftest.$ac_objext
37081 if { (ac_try="$ac_compile"
37082 case "(($ac_try" in
37083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37084   *) ac_try_echo=$ac_try;;
37085 esac
37086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37087   (eval "$ac_compile") 2>conftest.er1
37088   ac_status=$?
37089   grep -v '^ *+' conftest.er1 >conftest.err
37090   rm -f conftest.er1
37091   cat conftest.err >&5
37092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093   (exit $ac_status); } && {
37094          test -z "$ac_c_werror_flag" ||
37095          test ! -s conftest.err
37096        } && test -s conftest.$ac_objext; then
37097
37098               ac_cv_have_u_int="yes"
37099
37100 else
37101   echo "$as_me: failed program was:" >&5
37102 sed 's/^/| /' conftest.$ac_ext >&5
37103
37104
37105               ac_cv_have_u_int="no"
37106
37107
37108 fi
37109
37110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37111
37112
37113 fi
37114 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37115 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37116 if test "x$ac_cv_have_u_int" = "xyes" ; then
37117    cat >>confdefs.h <<\_ACEOF
37118 #define HAVE_U_INT 1
37119 _ACEOF
37120
37121    have_u_int=1
37122 fi
37123
37124 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37125 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37126 if test "${ac_cv_have_intmax_t+set}" = set; then
37127   echo $ECHO_N "(cached) $ECHO_C" >&6
37128 else
37129
37130        cat >conftest.$ac_ext <<_ACEOF
37131 /* confdefs.h.  */
37132 _ACEOF
37133 cat confdefs.h >>conftest.$ac_ext
37134 cat >>conftest.$ac_ext <<_ACEOF
37135 /* end confdefs.h.  */
37136
37137               #include <sys/types.h>
37138
37139 int
37140 main ()
37141 {
37142
37143               intmax_t a; a = 1;
37144
37145   ;
37146   return 0;
37147 }
37148 _ACEOF
37149 rm -f conftest.$ac_objext
37150 if { (ac_try="$ac_compile"
37151 case "(($ac_try" in
37152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37153   *) ac_try_echo=$ac_try;;
37154 esac
37155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37156   (eval "$ac_compile") 2>conftest.er1
37157   ac_status=$?
37158   grep -v '^ *+' conftest.er1 >conftest.err
37159   rm -f conftest.er1
37160   cat conftest.err >&5
37161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162   (exit $ac_status); } && {
37163          test -z "$ac_c_werror_flag" ||
37164          test ! -s conftest.err
37165        } && test -s conftest.$ac_objext; then
37166
37167               ac_cv_have_intmax_t="yes"
37168
37169 else
37170   echo "$as_me: failed program was:" >&5
37171 sed 's/^/| /' conftest.$ac_ext >&5
37172
37173
37174               cat >conftest.$ac_ext <<_ACEOF
37175 /* confdefs.h.  */
37176 _ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h.  */
37180
37181                      #include <stdint.h>
37182
37183 int
37184 main ()
37185 {
37186
37187                      intmax_t a; a = 1;
37188
37189   ;
37190   return 0;
37191 }
37192 _ACEOF
37193 rm -f conftest.$ac_objext
37194 if { (ac_try="$ac_compile"
37195 case "(($ac_try" in
37196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197   *) ac_try_echo=$ac_try;;
37198 esac
37199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37200   (eval "$ac_compile") 2>conftest.er1
37201   ac_status=$?
37202   grep -v '^ *+' conftest.er1 >conftest.err
37203   rm -f conftest.er1
37204   cat conftest.err >&5
37205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206   (exit $ac_status); } && {
37207          test -z "$ac_c_werror_flag" ||
37208          test ! -s conftest.err
37209        } && test -s conftest.$ac_objext; then
37210
37211                      ac_cv_have_intmax_t="yes"
37212
37213 else
37214   echo "$as_me: failed program was:" >&5
37215 sed 's/^/| /' conftest.$ac_ext >&5
37216
37217
37218                      ac_cv_have_intmax_t="no"
37219
37220
37221 fi
37222
37223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37224
37225
37226 fi
37227
37228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37229
37230
37231 fi
37232 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37233 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37234 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37235    cat >>confdefs.h <<\_ACEOF
37236 #define HAVE_INTMAX_T 1
37237 _ACEOF
37238
37239    have_intmax_t=1
37240 fi
37241
37242 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37243 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37244 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37245   echo $ECHO_N "(cached) $ECHO_C" >&6
37246 else
37247
37248        cat >conftest.$ac_ext <<_ACEOF
37249 /* confdefs.h.  */
37250 _ACEOF
37251 cat confdefs.h >>conftest.$ac_ext
37252 cat >>conftest.$ac_ext <<_ACEOF
37253 /* end confdefs.h.  */
37254
37255               #include <sys/types.h>
37256
37257 int
37258 main ()
37259 {
37260
37261               u_intmax_t a; a = 1;
37262
37263   ;
37264   return 0;
37265 }
37266 _ACEOF
37267 rm -f conftest.$ac_objext
37268 if { (ac_try="$ac_compile"
37269 case "(($ac_try" in
37270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37271   *) ac_try_echo=$ac_try;;
37272 esac
37273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37274   (eval "$ac_compile") 2>conftest.er1
37275   ac_status=$?
37276   grep -v '^ *+' conftest.er1 >conftest.err
37277   rm -f conftest.er1
37278   cat conftest.err >&5
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); } && {
37281          test -z "$ac_c_werror_flag" ||
37282          test ! -s conftest.err
37283        } && test -s conftest.$ac_objext; then
37284
37285               ac_cv_have_u_intmax_t="yes"
37286
37287 else
37288   echo "$as_me: failed program was:" >&5
37289 sed 's/^/| /' conftest.$ac_ext >&5
37290
37291
37292               cat >conftest.$ac_ext <<_ACEOF
37293 /* confdefs.h.  */
37294 _ACEOF
37295 cat confdefs.h >>conftest.$ac_ext
37296 cat >>conftest.$ac_ext <<_ACEOF
37297 /* end confdefs.h.  */
37298
37299                      #include <stdint.h>
37300
37301 int
37302 main ()
37303 {
37304
37305                     u_intmax_t a; a = 1;
37306
37307   ;
37308   return 0;
37309 }
37310 _ACEOF
37311 rm -f conftest.$ac_objext
37312 if { (ac_try="$ac_compile"
37313 case "(($ac_try" in
37314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37315   *) ac_try_echo=$ac_try;;
37316 esac
37317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37318   (eval "$ac_compile") 2>conftest.er1
37319   ac_status=$?
37320   grep -v '^ *+' conftest.er1 >conftest.err
37321   rm -f conftest.er1
37322   cat conftest.err >&5
37323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324   (exit $ac_status); } && {
37325          test -z "$ac_c_werror_flag" ||
37326          test ! -s conftest.err
37327        } && test -s conftest.$ac_objext; then
37328
37329                     ac_cv_have_u_intmax_t="yes"
37330
37331 else
37332   echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37334
37335
37336                     ac_cv_have_u_intmax_t="no"
37337
37338
37339 fi
37340
37341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37342
37343
37344 fi
37345
37346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37347
37348
37349 fi
37350 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37351 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37352 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37353    cat >>confdefs.h <<\_ACEOF
37354 #define HAVE_U_INTMAX_T 1
37355 _ACEOF
37356
37357    have_u_intmax_t=1
37358 fi
37359
37360 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37361 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37362 if test "${ac_cv_have_intxx_t+set}" = set; then
37363   echo $ECHO_N "(cached) $ECHO_C" >&6
37364 else
37365
37366        cat >conftest.$ac_ext <<_ACEOF
37367 /* confdefs.h.  */
37368 _ACEOF
37369 cat confdefs.h >>conftest.$ac_ext
37370 cat >>conftest.$ac_ext <<_ACEOF
37371 /* end confdefs.h.  */
37372
37373               #include <sys/types.h>
37374
37375 int
37376 main ()
37377 {
37378
37379               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37380
37381   ;
37382   return 0;
37383 }
37384 _ACEOF
37385 rm -f conftest.$ac_objext
37386 if { (ac_try="$ac_compile"
37387 case "(($ac_try" in
37388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37389   *) ac_try_echo=$ac_try;;
37390 esac
37391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37392   (eval "$ac_compile") 2>conftest.er1
37393   ac_status=$?
37394   grep -v '^ *+' conftest.er1 >conftest.err
37395   rm -f conftest.er1
37396   cat conftest.err >&5
37397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398   (exit $ac_status); } && {
37399          test -z "$ac_c_werror_flag" ||
37400          test ! -s conftest.err
37401        } && test -s conftest.$ac_objext; then
37402
37403               ac_cv_have_intxx_t="yes"
37404
37405 else
37406   echo "$as_me: failed program was:" >&5
37407 sed 's/^/| /' conftest.$ac_ext >&5
37408
37409
37410               ac_cv_have_intxx_t="no"
37411
37412
37413 fi
37414
37415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37416
37417
37418 fi
37419 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37420 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37421 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37422    cat >>confdefs.h <<\_ACEOF
37423 #define HAVE_INTXX_T 1
37424 _ACEOF
37425
37426    have_intxx_t=1
37427 fi
37428
37429 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37430 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37431 if test "${ac_cv_have_int64_t+set}" = set; then
37432   echo $ECHO_N "(cached) $ECHO_C" >&6
37433 else
37434
37435        cat >conftest.$ac_ext <<_ACEOF
37436 /* confdefs.h.  */
37437 _ACEOF
37438 cat confdefs.h >>conftest.$ac_ext
37439 cat >>conftest.$ac_ext <<_ACEOF
37440 /* end confdefs.h.  */
37441
37442               #include <sys/types.h>
37443
37444 int
37445 main ()
37446 {
37447
37448               int64_t a; a = 1;
37449
37450   ;
37451   return 0;
37452 }
37453 _ACEOF
37454 rm -f conftest.$ac_objext
37455 if { (ac_try="$ac_compile"
37456 case "(($ac_try" in
37457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37458   *) ac_try_echo=$ac_try;;
37459 esac
37460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37461   (eval "$ac_compile") 2>conftest.er1
37462   ac_status=$?
37463   grep -v '^ *+' conftest.er1 >conftest.err
37464   rm -f conftest.er1
37465   cat conftest.err >&5
37466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467   (exit $ac_status); } && {
37468          test -z "$ac_c_werror_flag" ||
37469          test ! -s conftest.err
37470        } && test -s conftest.$ac_objext; then
37471
37472               ac_cv_have_int64_t="yes"
37473
37474 else
37475   echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37477
37478
37479               ac_cv_have_int64_t="no"
37480
37481
37482 fi
37483
37484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37485
37486
37487 fi
37488 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37489 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37490 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37491    cat >>confdefs.h <<\_ACEOF
37492 #define HAVE_INT64_T 1
37493 _ACEOF
37494
37495    have_int64_t=1
37496 fi
37497
37498 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37499 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37500 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37501   echo $ECHO_N "(cached) $ECHO_C" >&6
37502 else
37503
37504        cat >conftest.$ac_ext <<_ACEOF
37505 /* confdefs.h.  */
37506 _ACEOF
37507 cat confdefs.h >>conftest.$ac_ext
37508 cat >>conftest.$ac_ext <<_ACEOF
37509 /* end confdefs.h.  */
37510
37511               #include <sys/types.h>
37512
37513 int
37514 main ()
37515 {
37516
37517               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37518
37519   ;
37520   return 0;
37521 }
37522 _ACEOF
37523 rm -f conftest.$ac_objext
37524 if { (ac_try="$ac_compile"
37525 case "(($ac_try" in
37526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37527   *) ac_try_echo=$ac_try;;
37528 esac
37529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37530   (eval "$ac_compile") 2>conftest.er1
37531   ac_status=$?
37532   grep -v '^ *+' conftest.er1 >conftest.err
37533   rm -f conftest.er1
37534   cat conftest.err >&5
37535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37536   (exit $ac_status); } && {
37537          test -z "$ac_c_werror_flag" ||
37538          test ! -s conftest.err
37539        } && test -s conftest.$ac_objext; then
37540
37541              ac_cv_have_u_intxx_t="yes"
37542
37543 else
37544   echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37546
37547
37548              ac_cv_have_u_intxx_t="no"
37549
37550
37551 fi
37552
37553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37554
37555
37556 fi
37557 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37558 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37559 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37560    cat >>confdefs.h <<\_ACEOF
37561 #define HAVE_U_INTXX_T 1
37562 _ACEOF
37563
37564    have_u_intxx_t=1
37565 fi
37566
37567 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37568 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37569 if test "${ac_cv_have_u_int64_t+set}" = set; then
37570   echo $ECHO_N "(cached) $ECHO_C" >&6
37571 else
37572
37573        cat >conftest.$ac_ext <<_ACEOF
37574 /* confdefs.h.  */
37575 _ACEOF
37576 cat confdefs.h >>conftest.$ac_ext
37577 cat >>conftest.$ac_ext <<_ACEOF
37578 /* end confdefs.h.  */
37579
37580               #include <sys/types.h>
37581
37582 int
37583 main ()
37584 {
37585
37586               u_int64_t a; a = 1;
37587
37588   ;
37589   return 0;
37590 }
37591 _ACEOF
37592 rm -f conftest.$ac_objext
37593 if { (ac_try="$ac_compile"
37594 case "(($ac_try" in
37595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37596   *) ac_try_echo=$ac_try;;
37597 esac
37598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37599   (eval "$ac_compile") 2>conftest.er1
37600   ac_status=$?
37601   grep -v '^ *+' conftest.er1 >conftest.err
37602   rm -f conftest.er1
37603   cat conftest.err >&5
37604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605   (exit $ac_status); } && {
37606          test -z "$ac_c_werror_flag" ||
37607          test ! -s conftest.err
37608        } && test -s conftest.$ac_objext; then
37609
37610              ac_cv_have_u_int64_t="yes"
37611
37612 else
37613   echo "$as_me: failed program was:" >&5
37614 sed 's/^/| /' conftest.$ac_ext >&5
37615
37616
37617              ac_cv_have_u_int64_t="no"
37618
37619
37620 fi
37621
37622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37623
37624
37625 fi
37626 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37627 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37628 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37629    cat >>confdefs.h <<\_ACEOF
37630 #define HAVE_U_INT64_T 1
37631 _ACEOF
37632
37633    have_u_int64_t=1
37634 fi
37635
37636 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37637     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37638 then
37639    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37640 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37641    cat >conftest.$ac_ext <<_ACEOF
37642 /* confdefs.h.  */
37643 _ACEOF
37644 cat confdefs.h >>conftest.$ac_ext
37645 cat >>conftest.$ac_ext <<_ACEOF
37646 /* end confdefs.h.  */
37647
37648           #include <sys/bitypes.h>
37649
37650 int
37651 main ()
37652 {
37653
37654           int8_t a; int16_t b; int32_t c;
37655           u_int8_t e; u_int16_t f; u_int32_t g;
37656           a = b = c = e = f = g = 1;
37657
37658   ;
37659   return 0;
37660 }
37661 _ACEOF
37662 rm -f conftest.$ac_objext
37663 if { (ac_try="$ac_compile"
37664 case "(($ac_try" in
37665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37666   *) ac_try_echo=$ac_try;;
37667 esac
37668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37669   (eval "$ac_compile") 2>conftest.er1
37670   ac_status=$?
37671   grep -v '^ *+' conftest.er1 >conftest.err
37672   rm -f conftest.er1
37673   cat conftest.err >&5
37674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37675   (exit $ac_status); } && {
37676          test -z "$ac_c_werror_flag" ||
37677          test ! -s conftest.err
37678        } && test -s conftest.$ac_objext; then
37679
37680           cat >>confdefs.h <<\_ACEOF
37681 #define HAVE_U_INTXX_T 1
37682 _ACEOF
37683
37684           cat >>confdefs.h <<\_ACEOF
37685 #define HAVE_INTXX_T 1
37686 _ACEOF
37687
37688           cat >>confdefs.h <<\_ACEOF
37689 #define HAVE_SYS_BITYPES_H 1
37690 _ACEOF
37691
37692           { echo "$as_me:$LINENO: result: yes" >&5
37693 echo "${ECHO_T}yes" >&6; }
37694
37695 else
37696   echo "$as_me: failed program was:" >&5
37697 sed 's/^/| /' conftest.$ac_ext >&5
37698
37699
37700           { echo "$as_me:$LINENO: result: no" >&5
37701 echo "${ECHO_T}no" >&6; }
37702
37703
37704 fi
37705
37706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37707 fi
37708
37709 if test -z "$have_u_intxx_t" ; then
37710    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37711 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37712 if test "${ac_cv_have_uintxx_t+set}" = set; then
37713   echo $ECHO_N "(cached) $ECHO_C" >&6
37714 else
37715
37716           cat >conftest.$ac_ext <<_ACEOF
37717 /* confdefs.h.  */
37718 _ACEOF
37719 cat confdefs.h >>conftest.$ac_ext
37720 cat >>conftest.$ac_ext <<_ACEOF
37721 /* end confdefs.h.  */
37722
37723                  #include <sys/types.h>
37724
37725 int
37726 main ()
37727 {
37728
37729                  uint8_t a; uint16_t b;
37730                  uint32_t c; a = b = c = 1;
37731
37732   ;
37733   return 0;
37734 }
37735 _ACEOF
37736 rm -f conftest.$ac_objext
37737 if { (ac_try="$ac_compile"
37738 case "(($ac_try" in
37739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37740   *) ac_try_echo=$ac_try;;
37741 esac
37742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37743   (eval "$ac_compile") 2>conftest.er1
37744   ac_status=$?
37745   grep -v '^ *+' conftest.er1 >conftest.err
37746   rm -f conftest.er1
37747   cat conftest.err >&5
37748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); } && {
37750          test -z "$ac_c_werror_flag" ||
37751          test ! -s conftest.err
37752        } && test -s conftest.$ac_objext; then
37753
37754                 ac_cv_have_uintxx_t="yes"
37755
37756 else
37757   echo "$as_me: failed program was:" >&5
37758 sed 's/^/| /' conftest.$ac_ext >&5
37759
37760
37761                 ac_cv_have_uintxx_t="no"
37762
37763
37764 fi
37765
37766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37767
37768
37769 fi
37770 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37771 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37772    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37773       cat >>confdefs.h <<\_ACEOF
37774 #define HAVE_UINTXX_T 1
37775 _ACEOF
37776
37777    fi
37778 fi
37779
37780 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37781     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37782 then
37783    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37784 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37785    cat >conftest.$ac_ext <<_ACEOF
37786 /* confdefs.h.  */
37787 _ACEOF
37788 cat confdefs.h >>conftest.$ac_ext
37789 cat >>conftest.$ac_ext <<_ACEOF
37790 /* end confdefs.h.  */
37791
37792           #include <sys/bitypes.h>
37793
37794 int
37795 main ()
37796 {
37797
37798           int64_t a; u_int64_t b;
37799           a = b = 1;
37800
37801   ;
37802   return 0;
37803 }
37804 _ACEOF
37805 rm -f conftest.$ac_objext
37806 if { (ac_try="$ac_compile"
37807 case "(($ac_try" in
37808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37809   *) ac_try_echo=$ac_try;;
37810 esac
37811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37812   (eval "$ac_compile") 2>conftest.er1
37813   ac_status=$?
37814   grep -v '^ *+' conftest.er1 >conftest.err
37815   rm -f conftest.er1
37816   cat conftest.err >&5
37817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37818   (exit $ac_status); } && {
37819          test -z "$ac_c_werror_flag" ||
37820          test ! -s conftest.err
37821        } && test -s conftest.$ac_objext; then
37822
37823           cat >>confdefs.h <<\_ACEOF
37824 #define HAVE_U_INT64_T 1
37825 _ACEOF
37826
37827           cat >>confdefs.h <<\_ACEOF
37828 #define HAVE_INT64_T 1
37829 _ACEOF
37830
37831           { echo "$as_me:$LINENO: result: yes" >&5
37832 echo "${ECHO_T}yes" >&6; }
37833
37834 else
37835   echo "$as_me: failed program was:" >&5
37836 sed 's/^/| /' conftest.$ac_ext >&5
37837
37838
37839           { echo "$as_me:$LINENO: result: no" >&5
37840 echo "${ECHO_T}no" >&6; }
37841
37842
37843 fi
37844
37845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37846 fi
37847
37848 if (test -z "$have_uintxx_t" && \
37849     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37850 then
37851    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37852 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37853    cat >conftest.$ac_ext <<_ACEOF
37854 /* confdefs.h.  */
37855 _ACEOF
37856 cat confdefs.h >>conftest.$ac_ext
37857 cat >>conftest.$ac_ext <<_ACEOF
37858 /* end confdefs.h.  */
37859
37860           #include <sys/bitypes.h>
37861
37862 int
37863 main ()
37864 {
37865
37866           uint8_t a; uint16_t b;
37867           uint32_t c; a = b = c = 1;
37868
37869   ;
37870   return 0;
37871 }
37872 _ACEOF
37873 rm -f conftest.$ac_objext
37874 if { (ac_try="$ac_compile"
37875 case "(($ac_try" in
37876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37877   *) ac_try_echo=$ac_try;;
37878 esac
37879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37880   (eval "$ac_compile") 2>conftest.er1
37881   ac_status=$?
37882   grep -v '^ *+' conftest.er1 >conftest.err
37883   rm -f conftest.er1
37884   cat conftest.err >&5
37885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); } && {
37887          test -z "$ac_c_werror_flag" ||
37888          test ! -s conftest.err
37889        } && test -s conftest.$ac_objext; then
37890
37891           cat >>confdefs.h <<\_ACEOF
37892 #define HAVE_UINTXX_T 1
37893 _ACEOF
37894
37895           { echo "$as_me:$LINENO: result: yes" >&5
37896 echo "${ECHO_T}yes" >&6; }
37897
37898 else
37899   echo "$as_me: failed program was:" >&5
37900 sed 's/^/| /' conftest.$ac_ext >&5
37901
37902
37903           { echo "$as_me:$LINENO: result: no" >&5
37904 echo "${ECHO_T}no" >&6; }
37905
37906
37907 fi
37908
37909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37910 fi
37911
37912
37913
37914
37915
37916
37917
37918
37919
37920
37921
37922
37923
37924
37925 for ac_func in \
37926    fork \
37927    getcwd \
37928    gethostname \
37929    getpid \
37930    gettimeofday \
37931    setpgid \
37932    setpgrp \
37933    setsid \
37934    signal \
37935    strerror \
37936    strncmp \
37937    strncpy \
37938    vfprintf \
37939
37940 do
37941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37945   echo $ECHO_N "(cached) $ECHO_C" >&6
37946 else
37947   cat >conftest.$ac_ext <<_ACEOF
37948 /* confdefs.h.  */
37949 _ACEOF
37950 cat confdefs.h >>conftest.$ac_ext
37951 cat >>conftest.$ac_ext <<_ACEOF
37952 /* end confdefs.h.  */
37953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37955 #define $ac_func innocuous_$ac_func
37956
37957 /* System header to define __stub macros and hopefully few prototypes,
37958     which can conflict with char $ac_func (); below.
37959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37960     <limits.h> exists even on freestanding compilers.  */
37961
37962 #ifdef __STDC__
37963 # include <limits.h>
37964 #else
37965 # include <assert.h>
37966 #endif
37967
37968 #undef $ac_func
37969
37970 /* Override any GCC internal prototype to avoid an error.
37971    Use char because int might match the return type of a GCC
37972    builtin and then its argument prototype would still apply.  */
37973 #ifdef __cplusplus
37974 extern "C"
37975 #endif
37976 char $ac_func ();
37977 /* The GNU C library defines this for functions which it implements
37978     to always fail with ENOSYS.  Some functions are actually named
37979     something starting with __ and the normal name is an alias.  */
37980 #if defined __stub_$ac_func || defined __stub___$ac_func
37981 choke me
37982 #endif
37983
37984 int
37985 main ()
37986 {
37987 return $ac_func ();
37988   ;
37989   return 0;
37990 }
37991 _ACEOF
37992 rm -f conftest.$ac_objext conftest$ac_exeext
37993 if { (ac_try="$ac_link"
37994 case "(($ac_try" in
37995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37996   *) ac_try_echo=$ac_try;;
37997 esac
37998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37999   (eval "$ac_link") 2>conftest.er1
38000   ac_status=$?
38001   grep -v '^ *+' conftest.er1 >conftest.err
38002   rm -f conftest.er1
38003   cat conftest.err >&5
38004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38005   (exit $ac_status); } && {
38006          test -z "$ac_c_werror_flag" ||
38007          test ! -s conftest.err
38008        } && test -s conftest$ac_exeext &&
38009        $as_test_x conftest$ac_exeext; then
38010   eval "$as_ac_var=yes"
38011 else
38012   echo "$as_me: failed program was:" >&5
38013 sed 's/^/| /' conftest.$ac_ext >&5
38014
38015         eval "$as_ac_var=no"
38016 fi
38017
38018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38019       conftest$ac_exeext conftest.$ac_ext
38020 fi
38021 ac_res=`eval echo '${'$as_ac_var'}'`
38022                { echo "$as_me:$LINENO: result: $ac_res" >&5
38023 echo "${ECHO_T}$ac_res" >&6; }
38024 if test `eval echo '${'$as_ac_var'}'` = yes; then
38025   cat >>confdefs.h <<_ACEOF
38026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38027 _ACEOF
38028
38029 else
38030   echo 'configure: cannot find needed function.'; exit 1
38031
38032 fi
38033 done
38034
38035
38036
38037 for ac_func in fchdir
38038 do
38039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38043   echo $ECHO_N "(cached) $ECHO_C" >&6
38044 else
38045   cat >conftest.$ac_ext <<_ACEOF
38046 /* confdefs.h.  */
38047 _ACEOF
38048 cat confdefs.h >>conftest.$ac_ext
38049 cat >>conftest.$ac_ext <<_ACEOF
38050 /* end confdefs.h.  */
38051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38053 #define $ac_func innocuous_$ac_func
38054
38055 /* System header to define __stub macros and hopefully few prototypes,
38056     which can conflict with char $ac_func (); below.
38057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38058     <limits.h> exists even on freestanding compilers.  */
38059
38060 #ifdef __STDC__
38061 # include <limits.h>
38062 #else
38063 # include <assert.h>
38064 #endif
38065
38066 #undef $ac_func
38067
38068 /* Override any GCC internal prototype to avoid an error.
38069    Use char because int might match the return type of a GCC
38070    builtin and then its argument prototype would still apply.  */
38071 #ifdef __cplusplus
38072 extern "C"
38073 #endif
38074 char $ac_func ();
38075 /* The GNU C library defines this for functions which it implements
38076     to always fail with ENOSYS.  Some functions are actually named
38077     something starting with __ and the normal name is an alias.  */
38078 #if defined __stub_$ac_func || defined __stub___$ac_func
38079 choke me
38080 #endif
38081
38082 int
38083 main ()
38084 {
38085 return $ac_func ();
38086   ;
38087   return 0;
38088 }
38089 _ACEOF
38090 rm -f conftest.$ac_objext conftest$ac_exeext
38091 if { (ac_try="$ac_link"
38092 case "(($ac_try" in
38093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38094   *) ac_try_echo=$ac_try;;
38095 esac
38096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38097   (eval "$ac_link") 2>conftest.er1
38098   ac_status=$?
38099   grep -v '^ *+' conftest.er1 >conftest.err
38100   rm -f conftest.er1
38101   cat conftest.err >&5
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); } && {
38104          test -z "$ac_c_werror_flag" ||
38105          test ! -s conftest.err
38106        } && test -s conftest$ac_exeext &&
38107        $as_test_x conftest$ac_exeext; then
38108   eval "$as_ac_var=yes"
38109 else
38110   echo "$as_me: failed program was:" >&5
38111 sed 's/^/| /' conftest.$ac_ext >&5
38112
38113         eval "$as_ac_var=no"
38114 fi
38115
38116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38117       conftest$ac_exeext conftest.$ac_ext
38118 fi
38119 ac_res=`eval echo '${'$as_ac_var'}'`
38120                { echo "$as_me:$LINENO: result: $ac_res" >&5
38121 echo "${ECHO_T}$ac_res" >&6; }
38122 if test `eval echo '${'$as_ac_var'}'` = yes; then
38123   cat >>confdefs.h <<_ACEOF
38124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38125 _ACEOF
38126  cat >>confdefs.h <<\_ACEOF
38127 #define HAVE_FCHDIR 1
38128 _ACEOF
38129
38130 fi
38131 done
38132
38133
38134 for ac_func in strtoll
38135 do
38136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38140   echo $ECHO_N "(cached) $ECHO_C" >&6
38141 else
38142   cat >conftest.$ac_ext <<_ACEOF
38143 /* confdefs.h.  */
38144 _ACEOF
38145 cat confdefs.h >>conftest.$ac_ext
38146 cat >>conftest.$ac_ext <<_ACEOF
38147 /* end confdefs.h.  */
38148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38150 #define $ac_func innocuous_$ac_func
38151
38152 /* System header to define __stub macros and hopefully few prototypes,
38153     which can conflict with char $ac_func (); below.
38154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38155     <limits.h> exists even on freestanding compilers.  */
38156
38157 #ifdef __STDC__
38158 # include <limits.h>
38159 #else
38160 # include <assert.h>
38161 #endif
38162
38163 #undef $ac_func
38164
38165 /* Override any GCC internal prototype to avoid an error.
38166    Use char because int might match the return type of a GCC
38167    builtin and then its argument prototype would still apply.  */
38168 #ifdef __cplusplus
38169 extern "C"
38170 #endif
38171 char $ac_func ();
38172 /* The GNU C library defines this for functions which it implements
38173     to always fail with ENOSYS.  Some functions are actually named
38174     something starting with __ and the normal name is an alias.  */
38175 #if defined __stub_$ac_func || defined __stub___$ac_func
38176 choke me
38177 #endif
38178
38179 int
38180 main ()
38181 {
38182 return $ac_func ();
38183   ;
38184   return 0;
38185 }
38186 _ACEOF
38187 rm -f conftest.$ac_objext conftest$ac_exeext
38188 if { (ac_try="$ac_link"
38189 case "(($ac_try" in
38190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38191   *) ac_try_echo=$ac_try;;
38192 esac
38193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38194   (eval "$ac_link") 2>conftest.er1
38195   ac_status=$?
38196   grep -v '^ *+' conftest.er1 >conftest.err
38197   rm -f conftest.er1
38198   cat conftest.err >&5
38199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200   (exit $ac_status); } && {
38201          test -z "$ac_c_werror_flag" ||
38202          test ! -s conftest.err
38203        } && test -s conftest$ac_exeext &&
38204        $as_test_x conftest$ac_exeext; then
38205   eval "$as_ac_var=yes"
38206 else
38207   echo "$as_me: failed program was:" >&5
38208 sed 's/^/| /' conftest.$ac_ext >&5
38209
38210         eval "$as_ac_var=no"
38211 fi
38212
38213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38214       conftest$ac_exeext conftest.$ac_ext
38215 fi
38216 ac_res=`eval echo '${'$as_ac_var'}'`
38217                { echo "$as_me:$LINENO: result: $ac_res" >&5
38218 echo "${ECHO_T}$ac_res" >&6; }
38219 if test `eval echo '${'$as_ac_var'}'` = yes; then
38220   cat >>confdefs.h <<_ACEOF
38221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38222 _ACEOF
38223  cat >>confdefs.h <<\_ACEOF
38224 #define HAVE_STRTOLL 1
38225 _ACEOF
38226
38227 fi
38228 done
38229
38230
38231 for ac_func in posix_fadvise
38232 do
38233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38237   echo $ECHO_N "(cached) $ECHO_C" >&6
38238 else
38239   cat >conftest.$ac_ext <<_ACEOF
38240 /* confdefs.h.  */
38241 _ACEOF
38242 cat confdefs.h >>conftest.$ac_ext
38243 cat >>conftest.$ac_ext <<_ACEOF
38244 /* end confdefs.h.  */
38245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38247 #define $ac_func innocuous_$ac_func
38248
38249 /* System header to define __stub macros and hopefully few prototypes,
38250     which can conflict with char $ac_func (); below.
38251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38252     <limits.h> exists even on freestanding compilers.  */
38253
38254 #ifdef __STDC__
38255 # include <limits.h>
38256 #else
38257 # include <assert.h>
38258 #endif
38259
38260 #undef $ac_func
38261
38262 /* Override any GCC internal prototype to avoid an error.
38263    Use char because int might match the return type of a GCC
38264    builtin and then its argument prototype would still apply.  */
38265 #ifdef __cplusplus
38266 extern "C"
38267 #endif
38268 char $ac_func ();
38269 /* The GNU C library defines this for functions which it implements
38270     to always fail with ENOSYS.  Some functions are actually named
38271     something starting with __ and the normal name is an alias.  */
38272 #if defined __stub_$ac_func || defined __stub___$ac_func
38273 choke me
38274 #endif
38275
38276 int
38277 main ()
38278 {
38279 return $ac_func ();
38280   ;
38281   return 0;
38282 }
38283 _ACEOF
38284 rm -f conftest.$ac_objext conftest$ac_exeext
38285 if { (ac_try="$ac_link"
38286 case "(($ac_try" in
38287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38288   *) ac_try_echo=$ac_try;;
38289 esac
38290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38291   (eval "$ac_link") 2>conftest.er1
38292   ac_status=$?
38293   grep -v '^ *+' conftest.er1 >conftest.err
38294   rm -f conftest.er1
38295   cat conftest.err >&5
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); } && {
38298          test -z "$ac_c_werror_flag" ||
38299          test ! -s conftest.err
38300        } && test -s conftest$ac_exeext &&
38301        $as_test_x conftest$ac_exeext; then
38302   eval "$as_ac_var=yes"
38303 else
38304   echo "$as_me: failed program was:" >&5
38305 sed 's/^/| /' conftest.$ac_ext >&5
38306
38307         eval "$as_ac_var=no"
38308 fi
38309
38310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38311       conftest$ac_exeext conftest.$ac_ext
38312 fi
38313 ac_res=`eval echo '${'$as_ac_var'}'`
38314                { echo "$as_me:$LINENO: result: $ac_res" >&5
38315 echo "${ECHO_T}$ac_res" >&6; }
38316 if test `eval echo '${'$as_ac_var'}'` = yes; then
38317   cat >>confdefs.h <<_ACEOF
38318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38319 _ACEOF
38320
38321 fi
38322 done
38323
38324
38325 for ac_func in fdatasync
38326 do
38327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38331   echo $ECHO_N "(cached) $ECHO_C" >&6
38332 else
38333   cat >conftest.$ac_ext <<_ACEOF
38334 /* confdefs.h.  */
38335 _ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h.  */
38339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38341 #define $ac_func innocuous_$ac_func
38342
38343 /* System header to define __stub macros and hopefully few prototypes,
38344     which can conflict with char $ac_func (); below.
38345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38346     <limits.h> exists even on freestanding compilers.  */
38347
38348 #ifdef __STDC__
38349 # include <limits.h>
38350 #else
38351 # include <assert.h>
38352 #endif
38353
38354 #undef $ac_func
38355
38356 /* Override any GCC internal prototype to avoid an error.
38357    Use char because int might match the return type of a GCC
38358    builtin and then its argument prototype would still apply.  */
38359 #ifdef __cplusplus
38360 extern "C"
38361 #endif
38362 char $ac_func ();
38363 /* The GNU C library defines this for functions which it implements
38364     to always fail with ENOSYS.  Some functions are actually named
38365     something starting with __ and the normal name is an alias.  */
38366 #if defined __stub_$ac_func || defined __stub___$ac_func
38367 choke me
38368 #endif
38369
38370 int
38371 main ()
38372 {
38373 return $ac_func ();
38374   ;
38375   return 0;
38376 }
38377 _ACEOF
38378 rm -f conftest.$ac_objext conftest$ac_exeext
38379 if { (ac_try="$ac_link"
38380 case "(($ac_try" in
38381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38382   *) ac_try_echo=$ac_try;;
38383 esac
38384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38385   (eval "$ac_link") 2>conftest.er1
38386   ac_status=$?
38387   grep -v '^ *+' conftest.er1 >conftest.err
38388   rm -f conftest.er1
38389   cat conftest.err >&5
38390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391   (exit $ac_status); } && {
38392          test -z "$ac_c_werror_flag" ||
38393          test ! -s conftest.err
38394        } && test -s conftest$ac_exeext &&
38395        $as_test_x conftest$ac_exeext; then
38396   eval "$as_ac_var=yes"
38397 else
38398   echo "$as_me: failed program was:" >&5
38399 sed 's/^/| /' conftest.$ac_ext >&5
38400
38401         eval "$as_ac_var=no"
38402 fi
38403
38404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38405       conftest$ac_exeext conftest.$ac_ext
38406 fi
38407 ac_res=`eval echo '${'$as_ac_var'}'`
38408                { echo "$as_me:$LINENO: result: $ac_res" >&5
38409 echo "${ECHO_T}$ac_res" >&6; }
38410 if test `eval echo '${'$as_ac_var'}'` = yes; then
38411   cat >>confdefs.h <<_ACEOF
38412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38413 _ACEOF
38414
38415 fi
38416 done
38417
38418
38419
38420 for ac_func in chflags
38421 do
38422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38426   echo $ECHO_N "(cached) $ECHO_C" >&6
38427 else
38428   cat >conftest.$ac_ext <<_ACEOF
38429 /* confdefs.h.  */
38430 _ACEOF
38431 cat confdefs.h >>conftest.$ac_ext
38432 cat >>conftest.$ac_ext <<_ACEOF
38433 /* end confdefs.h.  */
38434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38436 #define $ac_func innocuous_$ac_func
38437
38438 /* System header to define __stub macros and hopefully few prototypes,
38439     which can conflict with char $ac_func (); below.
38440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38441     <limits.h> exists even on freestanding compilers.  */
38442
38443 #ifdef __STDC__
38444 # include <limits.h>
38445 #else
38446 # include <assert.h>
38447 #endif
38448
38449 #undef $ac_func
38450
38451 /* Override any GCC internal prototype to avoid an error.
38452    Use char because int might match the return type of a GCC
38453    builtin and then its argument prototype would still apply.  */
38454 #ifdef __cplusplus
38455 extern "C"
38456 #endif
38457 char $ac_func ();
38458 /* The GNU C library defines this for functions which it implements
38459     to always fail with ENOSYS.  Some functions are actually named
38460     something starting with __ and the normal name is an alias.  */
38461 #if defined __stub_$ac_func || defined __stub___$ac_func
38462 choke me
38463 #endif
38464
38465 int
38466 main ()
38467 {
38468 return $ac_func ();
38469   ;
38470   return 0;
38471 }
38472 _ACEOF
38473 rm -f conftest.$ac_objext conftest$ac_exeext
38474 if { (ac_try="$ac_link"
38475 case "(($ac_try" in
38476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38477   *) ac_try_echo=$ac_try;;
38478 esac
38479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38480   (eval "$ac_link") 2>conftest.er1
38481   ac_status=$?
38482   grep -v '^ *+' conftest.er1 >conftest.err
38483   rm -f conftest.er1
38484   cat conftest.err >&5
38485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486   (exit $ac_status); } && {
38487          test -z "$ac_c_werror_flag" ||
38488          test ! -s conftest.err
38489        } && test -s conftest$ac_exeext &&
38490        $as_test_x conftest$ac_exeext; then
38491   eval "$as_ac_var=yes"
38492 else
38493   echo "$as_me: failed program was:" >&5
38494 sed 's/^/| /' conftest.$ac_ext >&5
38495
38496         eval "$as_ac_var=no"
38497 fi
38498
38499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38500       conftest$ac_exeext conftest.$ac_ext
38501 fi
38502 ac_res=`eval echo '${'$as_ac_var'}'`
38503                { echo "$as_me:$LINENO: result: $ac_res" >&5
38504 echo "${ECHO_T}$ac_res" >&6; }
38505 if test `eval echo '${'$as_ac_var'}'` = yes; then
38506   cat >>confdefs.h <<_ACEOF
38507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38508 _ACEOF
38509
38510 fi
38511 done
38512
38513
38514
38515
38516
38517
38518 for ac_func in snprintf vsnprintf gethostid fseeko
38519 do
38520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38524   echo $ECHO_N "(cached) $ECHO_C" >&6
38525 else
38526   cat >conftest.$ac_ext <<_ACEOF
38527 /* confdefs.h.  */
38528 _ACEOF
38529 cat confdefs.h >>conftest.$ac_ext
38530 cat >>conftest.$ac_ext <<_ACEOF
38531 /* end confdefs.h.  */
38532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38534 #define $ac_func innocuous_$ac_func
38535
38536 /* System header to define __stub macros and hopefully few prototypes,
38537     which can conflict with char $ac_func (); below.
38538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38539     <limits.h> exists even on freestanding compilers.  */
38540
38541 #ifdef __STDC__
38542 # include <limits.h>
38543 #else
38544 # include <assert.h>
38545 #endif
38546
38547 #undef $ac_func
38548
38549 /* Override any GCC internal prototype to avoid an error.
38550    Use char because int might match the return type of a GCC
38551    builtin and then its argument prototype would still apply.  */
38552 #ifdef __cplusplus
38553 extern "C"
38554 #endif
38555 char $ac_func ();
38556 /* The GNU C library defines this for functions which it implements
38557     to always fail with ENOSYS.  Some functions are actually named
38558     something starting with __ and the normal name is an alias.  */
38559 #if defined __stub_$ac_func || defined __stub___$ac_func
38560 choke me
38561 #endif
38562
38563 int
38564 main ()
38565 {
38566 return $ac_func ();
38567   ;
38568   return 0;
38569 }
38570 _ACEOF
38571 rm -f conftest.$ac_objext conftest$ac_exeext
38572 if { (ac_try="$ac_link"
38573 case "(($ac_try" in
38574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38575   *) ac_try_echo=$ac_try;;
38576 esac
38577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38578   (eval "$ac_link") 2>conftest.er1
38579   ac_status=$?
38580   grep -v '^ *+' conftest.er1 >conftest.err
38581   rm -f conftest.er1
38582   cat conftest.err >&5
38583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584   (exit $ac_status); } && {
38585          test -z "$ac_c_werror_flag" ||
38586          test ! -s conftest.err
38587        } && test -s conftest$ac_exeext &&
38588        $as_test_x conftest$ac_exeext; then
38589   eval "$as_ac_var=yes"
38590 else
38591   echo "$as_me: failed program was:" >&5
38592 sed 's/^/| /' conftest.$ac_ext >&5
38593
38594         eval "$as_ac_var=no"
38595 fi
38596
38597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38598       conftest$ac_exeext conftest.$ac_ext
38599 fi
38600 ac_res=`eval echo '${'$as_ac_var'}'`
38601                { echo "$as_me:$LINENO: result: $ac_res" >&5
38602 echo "${ECHO_T}$ac_res" >&6; }
38603 if test `eval echo '${'$as_ac_var'}'` = yes; then
38604   cat >>confdefs.h <<_ACEOF
38605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38606 _ACEOF
38607
38608 fi
38609 done
38610
38611
38612 { echo "$as_me:$LINENO: checking for va_copy" >&5
38613 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38614 if test "${ba_cv_va_copy+set}" = set; then
38615   echo $ECHO_N "(cached) $ECHO_C" >&6
38616 else
38617
38618        cat >conftest.$ac_ext <<_ACEOF
38619 /* confdefs.h.  */
38620 _ACEOF
38621 cat confdefs.h >>conftest.$ac_ext
38622 cat >>conftest.$ac_ext <<_ACEOF
38623 /* end confdefs.h.  */
38624
38625               #include <stdarg.h>
38626               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38627               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38628
38629 int
38630 main ()
38631 {
38632
38633               call_use_va_copy(1,2,3)
38634
38635   ;
38636   return 0;
38637 }
38638 _ACEOF
38639 rm -f conftest.$ac_objext conftest$ac_exeext
38640 if { (ac_try="$ac_link"
38641 case "(($ac_try" in
38642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38643   *) ac_try_echo=$ac_try;;
38644 esac
38645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38646   (eval "$ac_link") 2>conftest.er1
38647   ac_status=$?
38648   grep -v '^ *+' conftest.er1 >conftest.err
38649   rm -f conftest.er1
38650   cat conftest.err >&5
38651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38652   (exit $ac_status); } && {
38653          test -z "$ac_c_werror_flag" ||
38654          test ! -s conftest.err
38655        } && test -s conftest$ac_exeext &&
38656        $as_test_x conftest$ac_exeext; then
38657
38658               ba_cv_va_copy=yes,
38659
38660 else
38661   echo "$as_me: failed program was:" >&5
38662 sed 's/^/| /' conftest.$ac_ext >&5
38663
38664
38665               ba_cv_va_copy=no
38666
38667
38668 fi
38669
38670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38671       conftest$ac_exeext conftest.$ac_ext
38672
38673
38674 fi
38675 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38676 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38677 test $ba_cv_va_copy = yes &&
38678 cat >>confdefs.h <<\_ACEOF
38679 #define HAVE_VA_COPY 1
38680 _ACEOF
38681
38682
38683
38684
38685
38686
38687 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38688 do
38689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38693   echo $ECHO_N "(cached) $ECHO_C" >&6
38694 else
38695   cat >conftest.$ac_ext <<_ACEOF
38696 /* confdefs.h.  */
38697 _ACEOF
38698 cat confdefs.h >>conftest.$ac_ext
38699 cat >>conftest.$ac_ext <<_ACEOF
38700 /* end confdefs.h.  */
38701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38703 #define $ac_func innocuous_$ac_func
38704
38705 /* System header to define __stub macros and hopefully few prototypes,
38706     which can conflict with char $ac_func (); below.
38707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38708     <limits.h> exists even on freestanding compilers.  */
38709
38710 #ifdef __STDC__
38711 # include <limits.h>
38712 #else
38713 # include <assert.h>
38714 #endif
38715
38716 #undef $ac_func
38717
38718 /* Override any GCC internal prototype to avoid an error.
38719    Use char because int might match the return type of a GCC
38720    builtin and then its argument prototype would still apply.  */
38721 #ifdef __cplusplus
38722 extern "C"
38723 #endif
38724 char $ac_func ();
38725 /* The GNU C library defines this for functions which it implements
38726     to always fail with ENOSYS.  Some functions are actually named
38727     something starting with __ and the normal name is an alias.  */
38728 #if defined __stub_$ac_func || defined __stub___$ac_func
38729 choke me
38730 #endif
38731
38732 int
38733 main ()
38734 {
38735 return $ac_func ();
38736   ;
38737   return 0;
38738 }
38739 _ACEOF
38740 rm -f conftest.$ac_objext conftest$ac_exeext
38741 if { (ac_try="$ac_link"
38742 case "(($ac_try" in
38743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38744   *) ac_try_echo=$ac_try;;
38745 esac
38746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38747   (eval "$ac_link") 2>conftest.er1
38748   ac_status=$?
38749   grep -v '^ *+' conftest.er1 >conftest.err
38750   rm -f conftest.er1
38751   cat conftest.err >&5
38752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753   (exit $ac_status); } && {
38754          test -z "$ac_c_werror_flag" ||
38755          test ! -s conftest.err
38756        } && test -s conftest$ac_exeext &&
38757        $as_test_x conftest$ac_exeext; then
38758   eval "$as_ac_var=yes"
38759 else
38760   echo "$as_me: failed program was:" >&5
38761 sed 's/^/| /' conftest.$ac_ext >&5
38762
38763         eval "$as_ac_var=no"
38764 fi
38765
38766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38767       conftest$ac_exeext conftest.$ac_ext
38768 fi
38769 ac_res=`eval echo '${'$as_ac_var'}'`
38770                { echo "$as_me:$LINENO: result: $ac_res" >&5
38771 echo "${ECHO_T}$ac_res" >&6; }
38772 if test `eval echo '${'$as_ac_var'}'` = yes; then
38773   cat >>confdefs.h <<_ACEOF
38774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38775 _ACEOF
38776
38777 fi
38778 done
38779
38780
38781 # If resolver functions are not in libc check for -lnsl or -lresolv.
38782 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38783 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38784 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38785   echo $ECHO_N "(cached) $ECHO_C" >&6
38786 else
38787   cat >conftest.$ac_ext <<_ACEOF
38788 /* confdefs.h.  */
38789 _ACEOF
38790 cat confdefs.h >>conftest.$ac_ext
38791 cat >>conftest.$ac_ext <<_ACEOF
38792 /* end confdefs.h.  */
38793 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38795 #define gethostbyname_r innocuous_gethostbyname_r
38796
38797 /* System header to define __stub macros and hopefully few prototypes,
38798     which can conflict with char gethostbyname_r (); below.
38799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38800     <limits.h> exists even on freestanding compilers.  */
38801
38802 #ifdef __STDC__
38803 # include <limits.h>
38804 #else
38805 # include <assert.h>
38806 #endif
38807
38808 #undef gethostbyname_r
38809
38810 /* Override any GCC internal prototype to avoid an error.
38811    Use char because int might match the return type of a GCC
38812    builtin and then its argument prototype would still apply.  */
38813 #ifdef __cplusplus
38814 extern "C"
38815 #endif
38816 char gethostbyname_r ();
38817 /* The GNU C library defines this for functions which it implements
38818     to always fail with ENOSYS.  Some functions are actually named
38819     something starting with __ and the normal name is an alias.  */
38820 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38821 choke me
38822 #endif
38823
38824 int
38825 main ()
38826 {
38827 return gethostbyname_r ();
38828   ;
38829   return 0;
38830 }
38831 _ACEOF
38832 rm -f conftest.$ac_objext conftest$ac_exeext
38833 if { (ac_try="$ac_link"
38834 case "(($ac_try" in
38835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38836   *) ac_try_echo=$ac_try;;
38837 esac
38838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38839   (eval "$ac_link") 2>conftest.er1
38840   ac_status=$?
38841   grep -v '^ *+' conftest.er1 >conftest.err
38842   rm -f conftest.er1
38843   cat conftest.err >&5
38844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845   (exit $ac_status); } && {
38846          test -z "$ac_c_werror_flag" ||
38847          test ! -s conftest.err
38848        } && test -s conftest$ac_exeext &&
38849        $as_test_x conftest$ac_exeext; then
38850   ac_cv_func_gethostbyname_r=yes
38851 else
38852   echo "$as_me: failed program was:" >&5
38853 sed 's/^/| /' conftest.$ac_ext >&5
38854
38855         ac_cv_func_gethostbyname_r=no
38856 fi
38857
38858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38859       conftest$ac_exeext conftest.$ac_ext
38860 fi
38861 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38862 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38863 if test $ac_cv_func_gethostbyname_r = yes; then
38864   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38865 echo "${ECHO_T}using libc's resolver" >&6; }
38866 else
38867
38868 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38869 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38870 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38871   echo $ECHO_N "(cached) $ECHO_C" >&6
38872 else
38873   ac_check_lib_save_LIBS=$LIBS
38874 LIBS="-lnsl  $LIBS"
38875 cat >conftest.$ac_ext <<_ACEOF
38876 /* confdefs.h.  */
38877 _ACEOF
38878 cat confdefs.h >>conftest.$ac_ext
38879 cat >>conftest.$ac_ext <<_ACEOF
38880 /* end confdefs.h.  */
38881
38882 /* Override any GCC internal prototype to avoid an error.
38883    Use char because int might match the return type of a GCC
38884    builtin and then its argument prototype would still apply.  */
38885 #ifdef __cplusplus
38886 extern "C"
38887 #endif
38888 char gethostbyname_r ();
38889 int
38890 main ()
38891 {
38892 return gethostbyname_r ();
38893   ;
38894   return 0;
38895 }
38896 _ACEOF
38897 rm -f conftest.$ac_objext conftest$ac_exeext
38898 if { (ac_try="$ac_link"
38899 case "(($ac_try" in
38900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38901   *) ac_try_echo=$ac_try;;
38902 esac
38903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38904   (eval "$ac_link") 2>conftest.er1
38905   ac_status=$?
38906   grep -v '^ *+' conftest.er1 >conftest.err
38907   rm -f conftest.er1
38908   cat conftest.err >&5
38909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910   (exit $ac_status); } && {
38911          test -z "$ac_c_werror_flag" ||
38912          test ! -s conftest.err
38913        } && test -s conftest$ac_exeext &&
38914        $as_test_x conftest$ac_exeext; then
38915   ac_cv_lib_nsl_gethostbyname_r=yes
38916 else
38917   echo "$as_me: failed program was:" >&5
38918 sed 's/^/| /' conftest.$ac_ext >&5
38919
38920         ac_cv_lib_nsl_gethostbyname_r=no
38921 fi
38922
38923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38924       conftest$ac_exeext conftest.$ac_ext
38925 LIBS=$ac_check_lib_save_LIBS
38926 fi
38927 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38928 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38929 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38930   cat >>confdefs.h <<_ACEOF
38931 #define HAVE_LIBNSL 1
38932 _ACEOF
38933
38934   LIBS="-lnsl $LIBS"
38935
38936 fi
38937
38938
38939 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38940 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38941 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38942   echo $ECHO_N "(cached) $ECHO_C" >&6
38943 else
38944   ac_check_lib_save_LIBS=$LIBS
38945 LIBS="-lresolv  $LIBS"
38946 cat >conftest.$ac_ext <<_ACEOF
38947 /* confdefs.h.  */
38948 _ACEOF
38949 cat confdefs.h >>conftest.$ac_ext
38950 cat >>conftest.$ac_ext <<_ACEOF
38951 /* end confdefs.h.  */
38952
38953 /* Override any GCC internal prototype to avoid an error.
38954    Use char because int might match the return type of a GCC
38955    builtin and then its argument prototype would still apply.  */
38956 #ifdef __cplusplus
38957 extern "C"
38958 #endif
38959 char gethostbyname_r ();
38960 int
38961 main ()
38962 {
38963 return gethostbyname_r ();
38964   ;
38965   return 0;
38966 }
38967 _ACEOF
38968 rm -f conftest.$ac_objext conftest$ac_exeext
38969 if { (ac_try="$ac_link"
38970 case "(($ac_try" in
38971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38972   *) ac_try_echo=$ac_try;;
38973 esac
38974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38975   (eval "$ac_link") 2>conftest.er1
38976   ac_status=$?
38977   grep -v '^ *+' conftest.er1 >conftest.err
38978   rm -f conftest.er1
38979   cat conftest.err >&5
38980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38981   (exit $ac_status); } && {
38982          test -z "$ac_c_werror_flag" ||
38983          test ! -s conftest.err
38984        } && test -s conftest$ac_exeext &&
38985        $as_test_x conftest$ac_exeext; then
38986   ac_cv_lib_resolv_gethostbyname_r=yes
38987 else
38988   echo "$as_me: failed program was:" >&5
38989 sed 's/^/| /' conftest.$ac_ext >&5
38990
38991         ac_cv_lib_resolv_gethostbyname_r=no
38992 fi
38993
38994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38995       conftest$ac_exeext conftest.$ac_ext
38996 LIBS=$ac_check_lib_save_LIBS
38997 fi
38998 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38999 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39000 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39001   cat >>confdefs.h <<_ACEOF
39002 #define HAVE_LIBRESOLV 1
39003 _ACEOF
39004
39005   LIBS="-lresolv $LIBS"
39006
39007 fi
39008
39009 fi
39010
39011
39012
39013 for ac_func in inet_pton
39014 do
39015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39019   echo $ECHO_N "(cached) $ECHO_C" >&6
39020 else
39021   cat >conftest.$ac_ext <<_ACEOF
39022 /* confdefs.h.  */
39023 _ACEOF
39024 cat confdefs.h >>conftest.$ac_ext
39025 cat >>conftest.$ac_ext <<_ACEOF
39026 /* end confdefs.h.  */
39027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39029 #define $ac_func innocuous_$ac_func
39030
39031 /* System header to define __stub macros and hopefully few prototypes,
39032     which can conflict with char $ac_func (); below.
39033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39034     <limits.h> exists even on freestanding compilers.  */
39035
39036 #ifdef __STDC__
39037 # include <limits.h>
39038 #else
39039 # include <assert.h>
39040 #endif
39041
39042 #undef $ac_func
39043
39044 /* Override any GCC internal prototype to avoid an error.
39045    Use char because int might match the return type of a GCC
39046    builtin and then its argument prototype would still apply.  */
39047 #ifdef __cplusplus
39048 extern "C"
39049 #endif
39050 char $ac_func ();
39051 /* The GNU C library defines this for functions which it implements
39052     to always fail with ENOSYS.  Some functions are actually named
39053     something starting with __ and the normal name is an alias.  */
39054 #if defined __stub_$ac_func || defined __stub___$ac_func
39055 choke me
39056 #endif
39057
39058 int
39059 main ()
39060 {
39061 return $ac_func ();
39062   ;
39063   return 0;
39064 }
39065 _ACEOF
39066 rm -f conftest.$ac_objext conftest$ac_exeext
39067 if { (ac_try="$ac_link"
39068 case "(($ac_try" in
39069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39070   *) ac_try_echo=$ac_try;;
39071 esac
39072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39073   (eval "$ac_link") 2>conftest.er1
39074   ac_status=$?
39075   grep -v '^ *+' conftest.er1 >conftest.err
39076   rm -f conftest.er1
39077   cat conftest.err >&5
39078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079   (exit $ac_status); } && {
39080          test -z "$ac_c_werror_flag" ||
39081          test ! -s conftest.err
39082        } && test -s conftest$ac_exeext &&
39083        $as_test_x conftest$ac_exeext; then
39084   eval "$as_ac_var=yes"
39085 else
39086   echo "$as_me: failed program was:" >&5
39087 sed 's/^/| /' conftest.$ac_ext >&5
39088
39089         eval "$as_ac_var=no"
39090 fi
39091
39092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39093       conftest$ac_exeext conftest.$ac_ext
39094 fi
39095 ac_res=`eval echo '${'$as_ac_var'}'`
39096                { echo "$as_me:$LINENO: result: $ac_res" >&5
39097 echo "${ECHO_T}$ac_res" >&6; }
39098 if test `eval echo '${'$as_ac_var'}'` = yes; then
39099   cat >>confdefs.h <<_ACEOF
39100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39101 _ACEOF
39102  cat >>confdefs.h <<\_ACEOF
39103 #define HAVE_INET_PTON 1
39104 _ACEOF
39105
39106 fi
39107 done
39108
39109
39110 for ac_func in inet_ntop
39111 do
39112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39116   echo $ECHO_N "(cached) $ECHO_C" >&6
39117 else
39118   cat >conftest.$ac_ext <<_ACEOF
39119 /* confdefs.h.  */
39120 _ACEOF
39121 cat confdefs.h >>conftest.$ac_ext
39122 cat >>conftest.$ac_ext <<_ACEOF
39123 /* end confdefs.h.  */
39124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39126 #define $ac_func innocuous_$ac_func
39127
39128 /* System header to define __stub macros and hopefully few prototypes,
39129     which can conflict with char $ac_func (); below.
39130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39131     <limits.h> exists even on freestanding compilers.  */
39132
39133 #ifdef __STDC__
39134 # include <limits.h>
39135 #else
39136 # include <assert.h>
39137 #endif
39138
39139 #undef $ac_func
39140
39141 /* Override any GCC internal prototype to avoid an error.
39142    Use char because int might match the return type of a GCC
39143    builtin and then its argument prototype would still apply.  */
39144 #ifdef __cplusplus
39145 extern "C"
39146 #endif
39147 char $ac_func ();
39148 /* The GNU C library defines this for functions which it implements
39149     to always fail with ENOSYS.  Some functions are actually named
39150     something starting with __ and the normal name is an alias.  */
39151 #if defined __stub_$ac_func || defined __stub___$ac_func
39152 choke me
39153 #endif
39154
39155 int
39156 main ()
39157 {
39158 return $ac_func ();
39159   ;
39160   return 0;
39161 }
39162 _ACEOF
39163 rm -f conftest.$ac_objext conftest$ac_exeext
39164 if { (ac_try="$ac_link"
39165 case "(($ac_try" in
39166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39167   *) ac_try_echo=$ac_try;;
39168 esac
39169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39170   (eval "$ac_link") 2>conftest.er1
39171   ac_status=$?
39172   grep -v '^ *+' conftest.er1 >conftest.err
39173   rm -f conftest.er1
39174   cat conftest.err >&5
39175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176   (exit $ac_status); } && {
39177          test -z "$ac_c_werror_flag" ||
39178          test ! -s conftest.err
39179        } && test -s conftest$ac_exeext &&
39180        $as_test_x conftest$ac_exeext; then
39181   eval "$as_ac_var=yes"
39182 else
39183   echo "$as_me: failed program was:" >&5
39184 sed 's/^/| /' conftest.$ac_ext >&5
39185
39186         eval "$as_ac_var=no"
39187 fi
39188
39189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39190       conftest$ac_exeext conftest.$ac_ext
39191 fi
39192 ac_res=`eval echo '${'$as_ac_var'}'`
39193                { echo "$as_me:$LINENO: result: $ac_res" >&5
39194 echo "${ECHO_T}$ac_res" >&6; }
39195 if test `eval echo '${'$as_ac_var'}'` = yes; then
39196   cat >>confdefs.h <<_ACEOF
39197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39198 _ACEOF
39199  cat >>confdefs.h <<\_ACEOF
39200 #define HAVE_INET_NTOP 1
39201 _ACEOF
39202
39203 fi
39204 done
39205
39206
39207 for ac_func in gethostbyname2
39208 do
39209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39213   echo $ECHO_N "(cached) $ECHO_C" >&6
39214 else
39215   cat >conftest.$ac_ext <<_ACEOF
39216 /* confdefs.h.  */
39217 _ACEOF
39218 cat confdefs.h >>conftest.$ac_ext
39219 cat >>conftest.$ac_ext <<_ACEOF
39220 /* end confdefs.h.  */
39221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39223 #define $ac_func innocuous_$ac_func
39224
39225 /* System header to define __stub macros and hopefully few prototypes,
39226     which can conflict with char $ac_func (); below.
39227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39228     <limits.h> exists even on freestanding compilers.  */
39229
39230 #ifdef __STDC__
39231 # include <limits.h>
39232 #else
39233 # include <assert.h>
39234 #endif
39235
39236 #undef $ac_func
39237
39238 /* Override any GCC internal prototype to avoid an error.
39239    Use char because int might match the return type of a GCC
39240    builtin and then its argument prototype would still apply.  */
39241 #ifdef __cplusplus
39242 extern "C"
39243 #endif
39244 char $ac_func ();
39245 /* The GNU C library defines this for functions which it implements
39246     to always fail with ENOSYS.  Some functions are actually named
39247     something starting with __ and the normal name is an alias.  */
39248 #if defined __stub_$ac_func || defined __stub___$ac_func
39249 choke me
39250 #endif
39251
39252 int
39253 main ()
39254 {
39255 return $ac_func ();
39256   ;
39257   return 0;
39258 }
39259 _ACEOF
39260 rm -f conftest.$ac_objext conftest$ac_exeext
39261 if { (ac_try="$ac_link"
39262 case "(($ac_try" in
39263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39264   *) ac_try_echo=$ac_try;;
39265 esac
39266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39267   (eval "$ac_link") 2>conftest.er1
39268   ac_status=$?
39269   grep -v '^ *+' conftest.er1 >conftest.err
39270   rm -f conftest.er1
39271   cat conftest.err >&5
39272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273   (exit $ac_status); } && {
39274          test -z "$ac_c_werror_flag" ||
39275          test ! -s conftest.err
39276        } && test -s conftest$ac_exeext &&
39277        $as_test_x conftest$ac_exeext; then
39278   eval "$as_ac_var=yes"
39279 else
39280   echo "$as_me: failed program was:" >&5
39281 sed 's/^/| /' conftest.$ac_ext >&5
39282
39283         eval "$as_ac_var=no"
39284 fi
39285
39286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39287       conftest$ac_exeext conftest.$ac_ext
39288 fi
39289 ac_res=`eval echo '${'$as_ac_var'}'`
39290                { echo "$as_me:$LINENO: result: $ac_res" >&5
39291 echo "${ECHO_T}$ac_res" >&6; }
39292 if test `eval echo '${'$as_ac_var'}'` = yes; then
39293   cat >>confdefs.h <<_ACEOF
39294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39295 _ACEOF
39296  cat >>confdefs.h <<\_ACEOF
39297 #define HAVE_GETHOSTBYNAME2 1
39298 _ACEOF
39299
39300 fi
39301 done
39302
39303
39304 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39305 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39306 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39307   echo $ECHO_N "(cached) $ECHO_C" >&6
39308 else
39309
39310        cat >conftest.$ac_ext <<_ACEOF
39311 /* confdefs.h.  */
39312 _ACEOF
39313 cat confdefs.h >>conftest.$ac_ext
39314 cat >>conftest.$ac_ext <<_ACEOF
39315 /* end confdefs.h.  */
39316
39317               #include <sys/socket.h>
39318
39319 int
39320 main ()
39321 {
39322
39323               struct sockaddr s; s.sa_len;
39324
39325   ;
39326   return 0;
39327 }
39328 _ACEOF
39329 rm -f conftest.$ac_objext
39330 if { (ac_try="$ac_compile"
39331 case "(($ac_try" in
39332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39333   *) ac_try_echo=$ac_try;;
39334 esac
39335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39336   (eval "$ac_compile") 2>conftest.er1
39337   ac_status=$?
39338   grep -v '^ *+' conftest.er1 >conftest.err
39339   rm -f conftest.er1
39340   cat conftest.err >&5
39341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342   (exit $ac_status); } && {
39343          test -z "$ac_c_werror_flag" ||
39344          test ! -s conftest.err
39345        } && test -s conftest.$ac_objext; then
39346
39347              ac_cv_struct_sockaddr_sa_len=yes
39348
39349 else
39350   echo "$as_me: failed program was:" >&5
39351 sed 's/^/| /' conftest.$ac_ext >&5
39352
39353         ac_cv_struct_sockaddr_sa_len=no
39354
39355
39356 fi
39357
39358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39359
39360
39361 fi
39362 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39363 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39364
39365 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39366
39367 cat >>confdefs.h <<\_ACEOF
39368 #define HAVE_SA_LEN 1
39369 _ACEOF
39370
39371 fi
39372
39373
39374 for ac_func in strftime
39375 do
39376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39380   echo $ECHO_N "(cached) $ECHO_C" >&6
39381 else
39382   cat >conftest.$ac_ext <<_ACEOF
39383 /* confdefs.h.  */
39384 _ACEOF
39385 cat confdefs.h >>conftest.$ac_ext
39386 cat >>conftest.$ac_ext <<_ACEOF
39387 /* end confdefs.h.  */
39388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39390 #define $ac_func innocuous_$ac_func
39391
39392 /* System header to define __stub macros and hopefully few prototypes,
39393     which can conflict with char $ac_func (); below.
39394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39395     <limits.h> exists even on freestanding compilers.  */
39396
39397 #ifdef __STDC__
39398 # include <limits.h>
39399 #else
39400 # include <assert.h>
39401 #endif
39402
39403 #undef $ac_func
39404
39405 /* Override any GCC internal prototype to avoid an error.
39406    Use char because int might match the return type of a GCC
39407    builtin and then its argument prototype would still apply.  */
39408 #ifdef __cplusplus
39409 extern "C"
39410 #endif
39411 char $ac_func ();
39412 /* The GNU C library defines this for functions which it implements
39413     to always fail with ENOSYS.  Some functions are actually named
39414     something starting with __ and the normal name is an alias.  */
39415 #if defined __stub_$ac_func || defined __stub___$ac_func
39416 choke me
39417 #endif
39418
39419 int
39420 main ()
39421 {
39422 return $ac_func ();
39423   ;
39424   return 0;
39425 }
39426 _ACEOF
39427 rm -f conftest.$ac_objext conftest$ac_exeext
39428 if { (ac_try="$ac_link"
39429 case "(($ac_try" in
39430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39431   *) ac_try_echo=$ac_try;;
39432 esac
39433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39434   (eval "$ac_link") 2>conftest.er1
39435   ac_status=$?
39436   grep -v '^ *+' conftest.er1 >conftest.err
39437   rm -f conftest.er1
39438   cat conftest.err >&5
39439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440   (exit $ac_status); } && {
39441          test -z "$ac_c_werror_flag" ||
39442          test ! -s conftest.err
39443        } && test -s conftest$ac_exeext &&
39444        $as_test_x conftest$ac_exeext; then
39445   eval "$as_ac_var=yes"
39446 else
39447   echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39449
39450         eval "$as_ac_var=no"
39451 fi
39452
39453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39454       conftest$ac_exeext conftest.$ac_ext
39455 fi
39456 ac_res=`eval echo '${'$as_ac_var'}'`
39457                { echo "$as_me:$LINENO: result: $ac_res" >&5
39458 echo "${ECHO_T}$ac_res" >&6; }
39459 if test `eval echo '${'$as_ac_var'}'` = yes; then
39460   cat >>confdefs.h <<_ACEOF
39461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39462 _ACEOF
39463
39464 else
39465   # strftime is in -lintl on SCO UNIX.
39466 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39467 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39468 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39469   echo $ECHO_N "(cached) $ECHO_C" >&6
39470 else
39471   ac_check_lib_save_LIBS=$LIBS
39472 LIBS="-lintl  $LIBS"
39473 cat >conftest.$ac_ext <<_ACEOF
39474 /* confdefs.h.  */
39475 _ACEOF
39476 cat confdefs.h >>conftest.$ac_ext
39477 cat >>conftest.$ac_ext <<_ACEOF
39478 /* end confdefs.h.  */
39479
39480 /* Override any GCC internal prototype to avoid an error.
39481    Use char because int might match the return type of a GCC
39482    builtin and then its argument prototype would still apply.  */
39483 #ifdef __cplusplus
39484 extern "C"
39485 #endif
39486 char strftime ();
39487 int
39488 main ()
39489 {
39490 return strftime ();
39491   ;
39492   return 0;
39493 }
39494 _ACEOF
39495 rm -f conftest.$ac_objext conftest$ac_exeext
39496 if { (ac_try="$ac_link"
39497 case "(($ac_try" in
39498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39499   *) ac_try_echo=$ac_try;;
39500 esac
39501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39502   (eval "$ac_link") 2>conftest.er1
39503   ac_status=$?
39504   grep -v '^ *+' conftest.er1 >conftest.err
39505   rm -f conftest.er1
39506   cat conftest.err >&5
39507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508   (exit $ac_status); } && {
39509          test -z "$ac_c_werror_flag" ||
39510          test ! -s conftest.err
39511        } && test -s conftest$ac_exeext &&
39512        $as_test_x conftest$ac_exeext; then
39513   ac_cv_lib_intl_strftime=yes
39514 else
39515   echo "$as_me: failed program was:" >&5
39516 sed 's/^/| /' conftest.$ac_ext >&5
39517
39518         ac_cv_lib_intl_strftime=no
39519 fi
39520
39521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39522       conftest$ac_exeext conftest.$ac_ext
39523 LIBS=$ac_check_lib_save_LIBS
39524 fi
39525 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39526 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39527 if test $ac_cv_lib_intl_strftime = yes; then
39528   cat >>confdefs.h <<\_ACEOF
39529 #define HAVE_STRFTIME 1
39530 _ACEOF
39531
39532 LIBS="-lintl $LIBS"
39533 fi
39534
39535 fi
39536 done
39537
39538
39539 for ac_func in vprintf
39540 do
39541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39545   echo $ECHO_N "(cached) $ECHO_C" >&6
39546 else
39547   cat >conftest.$ac_ext <<_ACEOF
39548 /* confdefs.h.  */
39549 _ACEOF
39550 cat confdefs.h >>conftest.$ac_ext
39551 cat >>conftest.$ac_ext <<_ACEOF
39552 /* end confdefs.h.  */
39553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39555 #define $ac_func innocuous_$ac_func
39556
39557 /* System header to define __stub macros and hopefully few prototypes,
39558     which can conflict with char $ac_func (); below.
39559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39560     <limits.h> exists even on freestanding compilers.  */
39561
39562 #ifdef __STDC__
39563 # include <limits.h>
39564 #else
39565 # include <assert.h>
39566 #endif
39567
39568 #undef $ac_func
39569
39570 /* Override any GCC internal prototype to avoid an error.
39571    Use char because int might match the return type of a GCC
39572    builtin and then its argument prototype would still apply.  */
39573 #ifdef __cplusplus
39574 extern "C"
39575 #endif
39576 char $ac_func ();
39577 /* The GNU C library defines this for functions which it implements
39578     to always fail with ENOSYS.  Some functions are actually named
39579     something starting with __ and the normal name is an alias.  */
39580 #if defined __stub_$ac_func || defined __stub___$ac_func
39581 choke me
39582 #endif
39583
39584 int
39585 main ()
39586 {
39587 return $ac_func ();
39588   ;
39589   return 0;
39590 }
39591 _ACEOF
39592 rm -f conftest.$ac_objext conftest$ac_exeext
39593 if { (ac_try="$ac_link"
39594 case "(($ac_try" in
39595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39596   *) ac_try_echo=$ac_try;;
39597 esac
39598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39599   (eval "$ac_link") 2>conftest.er1
39600   ac_status=$?
39601   grep -v '^ *+' conftest.er1 >conftest.err
39602   rm -f conftest.er1
39603   cat conftest.err >&5
39604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605   (exit $ac_status); } && {
39606          test -z "$ac_c_werror_flag" ||
39607          test ! -s conftest.err
39608        } && test -s conftest$ac_exeext &&
39609        $as_test_x conftest$ac_exeext; then
39610   eval "$as_ac_var=yes"
39611 else
39612   echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39614
39615         eval "$as_ac_var=no"
39616 fi
39617
39618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39619       conftest$ac_exeext conftest.$ac_ext
39620 fi
39621 ac_res=`eval echo '${'$as_ac_var'}'`
39622                { echo "$as_me:$LINENO: result: $ac_res" >&5
39623 echo "${ECHO_T}$ac_res" >&6; }
39624 if test `eval echo '${'$as_ac_var'}'` = yes; then
39625   cat >>confdefs.h <<_ACEOF
39626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39627 _ACEOF
39628
39629 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39630 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39631 if test "${ac_cv_func__doprnt+set}" = set; then
39632   echo $ECHO_N "(cached) $ECHO_C" >&6
39633 else
39634   cat >conftest.$ac_ext <<_ACEOF
39635 /* confdefs.h.  */
39636 _ACEOF
39637 cat confdefs.h >>conftest.$ac_ext
39638 cat >>conftest.$ac_ext <<_ACEOF
39639 /* end confdefs.h.  */
39640 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39642 #define _doprnt innocuous__doprnt
39643
39644 /* System header to define __stub macros and hopefully few prototypes,
39645     which can conflict with char _doprnt (); below.
39646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39647     <limits.h> exists even on freestanding compilers.  */
39648
39649 #ifdef __STDC__
39650 # include <limits.h>
39651 #else
39652 # include <assert.h>
39653 #endif
39654
39655 #undef _doprnt
39656
39657 /* Override any GCC internal prototype to avoid an error.
39658    Use char because int might match the return type of a GCC
39659    builtin and then its argument prototype would still apply.  */
39660 #ifdef __cplusplus
39661 extern "C"
39662 #endif
39663 char _doprnt ();
39664 /* The GNU C library defines this for functions which it implements
39665     to always fail with ENOSYS.  Some functions are actually named
39666     something starting with __ and the normal name is an alias.  */
39667 #if defined __stub__doprnt || defined __stub____doprnt
39668 choke me
39669 #endif
39670
39671 int
39672 main ()
39673 {
39674 return _doprnt ();
39675   ;
39676   return 0;
39677 }
39678 _ACEOF
39679 rm -f conftest.$ac_objext conftest$ac_exeext
39680 if { (ac_try="$ac_link"
39681 case "(($ac_try" in
39682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39683   *) ac_try_echo=$ac_try;;
39684 esac
39685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39686   (eval "$ac_link") 2>conftest.er1
39687   ac_status=$?
39688   grep -v '^ *+' conftest.er1 >conftest.err
39689   rm -f conftest.er1
39690   cat conftest.err >&5
39691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692   (exit $ac_status); } && {
39693          test -z "$ac_c_werror_flag" ||
39694          test ! -s conftest.err
39695        } && test -s conftest$ac_exeext &&
39696        $as_test_x conftest$ac_exeext; then
39697   ac_cv_func__doprnt=yes
39698 else
39699   echo "$as_me: failed program was:" >&5
39700 sed 's/^/| /' conftest.$ac_ext >&5
39701
39702         ac_cv_func__doprnt=no
39703 fi
39704
39705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39706       conftest$ac_exeext conftest.$ac_ext
39707 fi
39708 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39709 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39710 if test $ac_cv_func__doprnt = yes; then
39711
39712 cat >>confdefs.h <<\_ACEOF
39713 #define HAVE_DOPRNT 1
39714 _ACEOF
39715
39716 fi
39717
39718 fi
39719 done
39720
39721
39722 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39723 # for constant arguments.  Useless!
39724 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39725 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39726 if test "${ac_cv_working_alloca_h+set}" = set; then
39727   echo $ECHO_N "(cached) $ECHO_C" >&6
39728 else
39729   cat >conftest.$ac_ext <<_ACEOF
39730 /* confdefs.h.  */
39731 _ACEOF
39732 cat confdefs.h >>conftest.$ac_ext
39733 cat >>conftest.$ac_ext <<_ACEOF
39734 /* end confdefs.h.  */
39735 #include <alloca.h>
39736 int
39737 main ()
39738 {
39739 char *p = (char *) alloca (2 * sizeof (int));
39740                           if (p) return 0;
39741   ;
39742   return 0;
39743 }
39744 _ACEOF
39745 rm -f conftest.$ac_objext conftest$ac_exeext
39746 if { (ac_try="$ac_link"
39747 case "(($ac_try" in
39748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749   *) ac_try_echo=$ac_try;;
39750 esac
39751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39752   (eval "$ac_link") 2>conftest.er1
39753   ac_status=$?
39754   grep -v '^ *+' conftest.er1 >conftest.err
39755   rm -f conftest.er1
39756   cat conftest.err >&5
39757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758   (exit $ac_status); } && {
39759          test -z "$ac_c_werror_flag" ||
39760          test ! -s conftest.err
39761        } && test -s conftest$ac_exeext &&
39762        $as_test_x conftest$ac_exeext; then
39763   ac_cv_working_alloca_h=yes
39764 else
39765   echo "$as_me: failed program was:" >&5
39766 sed 's/^/| /' conftest.$ac_ext >&5
39767
39768         ac_cv_working_alloca_h=no
39769 fi
39770
39771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39772       conftest$ac_exeext conftest.$ac_ext
39773 fi
39774 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39775 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39776 if test $ac_cv_working_alloca_h = yes; then
39777
39778 cat >>confdefs.h <<\_ACEOF
39779 #define HAVE_ALLOCA_H 1
39780 _ACEOF
39781
39782 fi
39783
39784 { echo "$as_me:$LINENO: checking for alloca" >&5
39785 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39786 if test "${ac_cv_func_alloca_works+set}" = set; then
39787   echo $ECHO_N "(cached) $ECHO_C" >&6
39788 else
39789   cat >conftest.$ac_ext <<_ACEOF
39790 /* confdefs.h.  */
39791 _ACEOF
39792 cat confdefs.h >>conftest.$ac_ext
39793 cat >>conftest.$ac_ext <<_ACEOF
39794 /* end confdefs.h.  */
39795 #ifdef __GNUC__
39796 # define alloca __builtin_alloca
39797 #else
39798 # ifdef _MSC_VER
39799 #  include <malloc.h>
39800 #  define alloca _alloca
39801 # else
39802 #  ifdef HAVE_ALLOCA_H
39803 #   include <alloca.h>
39804 #  else
39805 #   ifdef _AIX
39806  #pragma alloca
39807 #   else
39808 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39809 char *alloca ();
39810 #    endif
39811 #   endif
39812 #  endif
39813 # endif
39814 #endif
39815
39816 int
39817 main ()
39818 {
39819 char *p = (char *) alloca (1);
39820                                     if (p) return 0;
39821   ;
39822   return 0;
39823 }
39824 _ACEOF
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829   *) ac_try_echo=$ac_try;;
39830 esac
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832   (eval "$ac_link") 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } && {
39839          test -z "$ac_c_werror_flag" ||
39840          test ! -s conftest.err
39841        } && test -s conftest$ac_exeext &&
39842        $as_test_x conftest$ac_exeext; then
39843   ac_cv_func_alloca_works=yes
39844 else
39845   echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39847
39848         ac_cv_func_alloca_works=no
39849 fi
39850
39851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39852       conftest$ac_exeext conftest.$ac_ext
39853 fi
39854 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39855 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39856
39857 if test $ac_cv_func_alloca_works = yes; then
39858
39859 cat >>confdefs.h <<\_ACEOF
39860 #define HAVE_ALLOCA 1
39861 _ACEOF
39862
39863 else
39864   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39865 # that cause trouble.  Some versions do not even contain alloca or
39866 # contain a buggy version.  If you still want to use their alloca,
39867 # use ar to extract alloca.o from them instead of compiling alloca.c.
39868
39869 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39870
39871 cat >>confdefs.h <<\_ACEOF
39872 #define C_ALLOCA 1
39873 _ACEOF
39874
39875
39876 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39877 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39878 if test "${ac_cv_os_cray+set}" = set; then
39879   echo $ECHO_N "(cached) $ECHO_C" >&6
39880 else
39881   cat >conftest.$ac_ext <<_ACEOF
39882 /* confdefs.h.  */
39883 _ACEOF
39884 cat confdefs.h >>conftest.$ac_ext
39885 cat >>conftest.$ac_ext <<_ACEOF
39886 /* end confdefs.h.  */
39887 #if defined CRAY && ! defined CRAY2
39888 webecray
39889 #else
39890 wenotbecray
39891 #endif
39892
39893 _ACEOF
39894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39895   $EGREP "webecray" >/dev/null 2>&1; then
39896   ac_cv_os_cray=yes
39897 else
39898   ac_cv_os_cray=no
39899 fi
39900 rm -f conftest*
39901
39902 fi
39903 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39904 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39905 if test $ac_cv_os_cray = yes; then
39906   for ac_func in _getb67 GETB67 getb67; do
39907     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39911   echo $ECHO_N "(cached) $ECHO_C" >&6
39912 else
39913   cat >conftest.$ac_ext <<_ACEOF
39914 /* confdefs.h.  */
39915 _ACEOF
39916 cat confdefs.h >>conftest.$ac_ext
39917 cat >>conftest.$ac_ext <<_ACEOF
39918 /* end confdefs.h.  */
39919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39921 #define $ac_func innocuous_$ac_func
39922
39923 /* System header to define __stub macros and hopefully few prototypes,
39924     which can conflict with char $ac_func (); below.
39925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39926     <limits.h> exists even on freestanding compilers.  */
39927
39928 #ifdef __STDC__
39929 # include <limits.h>
39930 #else
39931 # include <assert.h>
39932 #endif
39933
39934 #undef $ac_func
39935
39936 /* Override any GCC internal prototype to avoid an error.
39937    Use char because int might match the return type of a GCC
39938    builtin and then its argument prototype would still apply.  */
39939 #ifdef __cplusplus
39940 extern "C"
39941 #endif
39942 char $ac_func ();
39943 /* The GNU C library defines this for functions which it implements
39944     to always fail with ENOSYS.  Some functions are actually named
39945     something starting with __ and the normal name is an alias.  */
39946 #if defined __stub_$ac_func || defined __stub___$ac_func
39947 choke me
39948 #endif
39949
39950 int
39951 main ()
39952 {
39953 return $ac_func ();
39954   ;
39955   return 0;
39956 }
39957 _ACEOF
39958 rm -f conftest.$ac_objext conftest$ac_exeext
39959 if { (ac_try="$ac_link"
39960 case "(($ac_try" in
39961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39962   *) ac_try_echo=$ac_try;;
39963 esac
39964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39965   (eval "$ac_link") 2>conftest.er1
39966   ac_status=$?
39967   grep -v '^ *+' conftest.er1 >conftest.err
39968   rm -f conftest.er1
39969   cat conftest.err >&5
39970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971   (exit $ac_status); } && {
39972          test -z "$ac_c_werror_flag" ||
39973          test ! -s conftest.err
39974        } && test -s conftest$ac_exeext &&
39975        $as_test_x conftest$ac_exeext; then
39976   eval "$as_ac_var=yes"
39977 else
39978   echo "$as_me: failed program was:" >&5
39979 sed 's/^/| /' conftest.$ac_ext >&5
39980
39981         eval "$as_ac_var=no"
39982 fi
39983
39984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39985       conftest$ac_exeext conftest.$ac_ext
39986 fi
39987 ac_res=`eval echo '${'$as_ac_var'}'`
39988                { echo "$as_me:$LINENO: result: $ac_res" >&5
39989 echo "${ECHO_T}$ac_res" >&6; }
39990 if test `eval echo '${'$as_ac_var'}'` = yes; then
39991
39992 cat >>confdefs.h <<_ACEOF
39993 #define CRAY_STACKSEG_END $ac_func
39994 _ACEOF
39995
39996     break
39997 fi
39998
39999   done
40000 fi
40001
40002 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40003 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40004 if test "${ac_cv_c_stack_direction+set}" = set; then
40005   echo $ECHO_N "(cached) $ECHO_C" >&6
40006 else
40007   if test "$cross_compiling" = yes; then
40008   ac_cv_c_stack_direction=0
40009 else
40010   cat >conftest.$ac_ext <<_ACEOF
40011 /* confdefs.h.  */
40012 _ACEOF
40013 cat confdefs.h >>conftest.$ac_ext
40014 cat >>conftest.$ac_ext <<_ACEOF
40015 /* end confdefs.h.  */
40016 $ac_includes_default
40017 int
40018 find_stack_direction ()
40019 {
40020   static char *addr = 0;
40021   auto char dummy;
40022   if (addr == 0)
40023     {
40024       addr = &dummy;
40025       return find_stack_direction ();
40026     }
40027   else
40028     return (&dummy > addr) ? 1 : -1;
40029 }
40030
40031 int
40032 main ()
40033 {
40034   return find_stack_direction () < 0;
40035 }
40036 _ACEOF
40037 rm -f conftest$ac_exeext
40038 if { (ac_try="$ac_link"
40039 case "(($ac_try" in
40040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40041   *) ac_try_echo=$ac_try;;
40042 esac
40043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40044   (eval "$ac_link") 2>&5
40045   ac_status=$?
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40048   { (case "(($ac_try" in
40049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40050   *) ac_try_echo=$ac_try;;
40051 esac
40052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40053   (eval "$ac_try") 2>&5
40054   ac_status=$?
40055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40056   (exit $ac_status); }; }; then
40057   ac_cv_c_stack_direction=1
40058 else
40059   echo "$as_me: program exited with status $ac_status" >&5
40060 echo "$as_me: failed program was:" >&5
40061 sed 's/^/| /' conftest.$ac_ext >&5
40062
40063 ( exit $ac_status )
40064 ac_cv_c_stack_direction=-1
40065 fi
40066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40067 fi
40068
40069
40070 fi
40071 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40072 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40073
40074 cat >>confdefs.h <<_ACEOF
40075 #define STACK_DIRECTION $ac_cv_c_stack_direction
40076 _ACEOF
40077
40078
40079 fi
40080
40081 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40082 # -lseq on Dynix/PTX, -lgen on Unixware.
40083 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40084 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40085 if test "${ac_cv_search_getmntent+set}" = set; then
40086   echo $ECHO_N "(cached) $ECHO_C" >&6
40087 else
40088   ac_func_search_save_LIBS=$LIBS
40089 cat >conftest.$ac_ext <<_ACEOF
40090 /* confdefs.h.  */
40091 _ACEOF
40092 cat confdefs.h >>conftest.$ac_ext
40093 cat >>conftest.$ac_ext <<_ACEOF
40094 /* end confdefs.h.  */
40095
40096 /* Override any GCC internal prototype to avoid an error.
40097    Use char because int might match the return type of a GCC
40098    builtin and then its argument prototype would still apply.  */
40099 #ifdef __cplusplus
40100 extern "C"
40101 #endif
40102 char getmntent ();
40103 int
40104 main ()
40105 {
40106 return getmntent ();
40107   ;
40108   return 0;
40109 }
40110 _ACEOF
40111 for ac_lib in '' sun seq gen; do
40112   if test -z "$ac_lib"; then
40113     ac_res="none required"
40114   else
40115     ac_res=-l$ac_lib
40116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40117   fi
40118   rm -f conftest.$ac_objext conftest$ac_exeext
40119 if { (ac_try="$ac_link"
40120 case "(($ac_try" in
40121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40122   *) ac_try_echo=$ac_try;;
40123 esac
40124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40125   (eval "$ac_link") 2>conftest.er1
40126   ac_status=$?
40127   grep -v '^ *+' conftest.er1 >conftest.err
40128   rm -f conftest.er1
40129   cat conftest.err >&5
40130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131   (exit $ac_status); } && {
40132          test -z "$ac_c_werror_flag" ||
40133          test ! -s conftest.err
40134        } && test -s conftest$ac_exeext &&
40135        $as_test_x conftest$ac_exeext; then
40136   ac_cv_search_getmntent=$ac_res
40137 else
40138   echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40140
40141
40142 fi
40143
40144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40145       conftest$ac_exeext
40146   if test "${ac_cv_search_getmntent+set}" = set; then
40147   break
40148 fi
40149 done
40150 if test "${ac_cv_search_getmntent+set}" = set; then
40151   :
40152 else
40153   ac_cv_search_getmntent=no
40154 fi
40155 rm conftest.$ac_ext
40156 LIBS=$ac_func_search_save_LIBS
40157 fi
40158 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40159 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40160 ac_res=$ac_cv_search_getmntent
40161 if test "$ac_res" != no; then
40162   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40163   ac_cv_func_getmntent=yes
40164
40165 cat >>confdefs.h <<\_ACEOF
40166 #define HAVE_GETMNTENT 1
40167 _ACEOF
40168
40169 else
40170   ac_cv_func_getmntent=no
40171 fi
40172
40173
40174 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40175 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40176 if test "${ac_cv_func_closedir_void+set}" = set; then
40177   echo $ECHO_N "(cached) $ECHO_C" >&6
40178 else
40179   if test "$cross_compiling" = yes; then
40180   ac_cv_func_closedir_void=yes
40181 else
40182   cat >conftest.$ac_ext <<_ACEOF
40183 /* confdefs.h.  */
40184 _ACEOF
40185 cat confdefs.h >>conftest.$ac_ext
40186 cat >>conftest.$ac_ext <<_ACEOF
40187 /* end confdefs.h.  */
40188 $ac_includes_default
40189 #include <$ac_header_dirent>
40190 #ifndef __cplusplus
40191 int closedir ();
40192 #endif
40193
40194 int
40195 main ()
40196 {
40197 return closedir (opendir (".")) != 0;
40198   ;
40199   return 0;
40200 }
40201 _ACEOF
40202 rm -f conftest$ac_exeext
40203 if { (ac_try="$ac_link"
40204 case "(($ac_try" in
40205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40206   *) ac_try_echo=$ac_try;;
40207 esac
40208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40209   (eval "$ac_link") 2>&5
40210   ac_status=$?
40211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40213   { (case "(($ac_try" in
40214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215   *) ac_try_echo=$ac_try;;
40216 esac
40217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40218   (eval "$ac_try") 2>&5
40219   ac_status=$?
40220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221   (exit $ac_status); }; }; then
40222   ac_cv_func_closedir_void=no
40223 else
40224   echo "$as_me: program exited with status $ac_status" >&5
40225 echo "$as_me: failed program was:" >&5
40226 sed 's/^/| /' conftest.$ac_ext >&5
40227
40228 ( exit $ac_status )
40229 ac_cv_func_closedir_void=yes
40230 fi
40231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40232 fi
40233
40234
40235 fi
40236 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40237 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40238 if test $ac_cv_func_closedir_void = yes; then
40239
40240 cat >>confdefs.h <<\_ACEOF
40241 #define CLOSEDIR_VOID 1
40242 _ACEOF
40243
40244 fi
40245
40246 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40247 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40248 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40249   echo $ECHO_N "(cached) $ECHO_C" >&6
40250 else
40251   if test "$cross_compiling" = yes; then
40252   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40253 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40254    { (exit 1); exit 1; }; }
40255 else
40256   cat >conftest.$ac_ext <<_ACEOF
40257 /* confdefs.h.  */
40258 _ACEOF
40259 cat confdefs.h >>conftest.$ac_ext
40260 cat >>conftest.$ac_ext <<_ACEOF
40261 /* end confdefs.h.  */
40262 $ac_includes_default
40263 int
40264 main ()
40265 {
40266 /* If this system has a BSD-style setpgrp which takes arguments,
40267   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40268   exit successfully. */
40269   return setpgrp (1,1) != -1;
40270   ;
40271   return 0;
40272 }
40273 _ACEOF
40274 rm -f conftest$ac_exeext
40275 if { (ac_try="$ac_link"
40276 case "(($ac_try" in
40277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40278   *) ac_try_echo=$ac_try;;
40279 esac
40280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40281   (eval "$ac_link") 2>&5
40282   ac_status=$?
40283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40285   { (case "(($ac_try" in
40286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40287   *) ac_try_echo=$ac_try;;
40288 esac
40289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40290   (eval "$ac_try") 2>&5
40291   ac_status=$?
40292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293   (exit $ac_status); }; }; then
40294   ac_cv_func_setpgrp_void=no
40295 else
40296   echo "$as_me: program exited with status $ac_status" >&5
40297 echo "$as_me: failed program was:" >&5
40298 sed 's/^/| /' conftest.$ac_ext >&5
40299
40300 ( exit $ac_status )
40301 ac_cv_func_setpgrp_void=yes
40302 fi
40303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40304 fi
40305
40306
40307 fi
40308 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40309 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40310 if test $ac_cv_func_setpgrp_void = yes; then
40311
40312 cat >>confdefs.h <<\_ACEOF
40313 #define SETPGRP_VOID 1
40314 _ACEOF
40315
40316 fi
40317             # AC_FUNC_FNMATCH    dnl use local version
40318
40319 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40320 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40321 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40322   echo $ECHO_N "(cached) $ECHO_C" >&6
40323 else
40324   ac_check_lib_save_LIBS=$LIBS
40325 LIBS="-lintl  $LIBS"
40326 cat >conftest.$ac_ext <<_ACEOF
40327 /* confdefs.h.  */
40328 _ACEOF
40329 cat confdefs.h >>conftest.$ac_ext
40330 cat >>conftest.$ac_ext <<_ACEOF
40331 /* end confdefs.h.  */
40332
40333 /* Override any GCC internal prototype to avoid an error.
40334    Use char because int might match the return type of a GCC
40335    builtin and then its argument prototype would still apply.  */
40336 #ifdef __cplusplus
40337 extern "C"
40338 #endif
40339 char gettext ();
40340 int
40341 main ()
40342 {
40343 return gettext ();
40344   ;
40345   return 0;
40346 }
40347 _ACEOF
40348 rm -f conftest.$ac_objext conftest$ac_exeext
40349 if { (ac_try="$ac_link"
40350 case "(($ac_try" in
40351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40352   *) ac_try_echo=$ac_try;;
40353 esac
40354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40355   (eval "$ac_link") 2>conftest.er1
40356   ac_status=$?
40357   grep -v '^ *+' conftest.er1 >conftest.err
40358   rm -f conftest.er1
40359   cat conftest.err >&5
40360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40361   (exit $ac_status); } && {
40362          test -z "$ac_c_werror_flag" ||
40363          test ! -s conftest.err
40364        } && test -s conftest$ac_exeext &&
40365        $as_test_x conftest$ac_exeext; then
40366   ac_cv_lib_intl_gettext=yes
40367 else
40368   echo "$as_me: failed program was:" >&5
40369 sed 's/^/| /' conftest.$ac_ext >&5
40370
40371         ac_cv_lib_intl_gettext=no
40372 fi
40373
40374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40375       conftest$ac_exeext conftest.$ac_ext
40376 LIBS=$ac_check_lib_save_LIBS
40377 fi
40378 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40379 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40380 if test $ac_cv_lib_intl_gettext = yes; then
40381   LIBS="$LIBS -lintl"
40382 fi
40383
40384
40385
40386 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40387 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40388 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40389   echo $ECHO_N "(cached) $ECHO_C" >&6
40390 else
40391   ac_check_lib_save_LIBS=$LIBS
40392 LIBS="-lsun  $LIBS"
40393 cat >conftest.$ac_ext <<_ACEOF
40394 /* confdefs.h.  */
40395 _ACEOF
40396 cat confdefs.h >>conftest.$ac_ext
40397 cat >>conftest.$ac_ext <<_ACEOF
40398 /* end confdefs.h.  */
40399
40400 /* Override any GCC internal prototype to avoid an error.
40401    Use char because int might match the return type of a GCC
40402    builtin and then its argument prototype would still apply.  */
40403 #ifdef __cplusplus
40404 extern "C"
40405 #endif
40406 char getpwnam ();
40407 int
40408 main ()
40409 {
40410 return getpwnam ();
40411   ;
40412   return 0;
40413 }
40414 _ACEOF
40415 rm -f conftest.$ac_objext conftest$ac_exeext
40416 if { (ac_try="$ac_link"
40417 case "(($ac_try" in
40418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40419   *) ac_try_echo=$ac_try;;
40420 esac
40421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40422   (eval "$ac_link") 2>conftest.er1
40423   ac_status=$?
40424   grep -v '^ *+' conftest.er1 >conftest.err
40425   rm -f conftest.er1
40426   cat conftest.err >&5
40427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40428   (exit $ac_status); } && {
40429          test -z "$ac_c_werror_flag" ||
40430          test ! -s conftest.err
40431        } && test -s conftest$ac_exeext &&
40432        $as_test_x conftest$ac_exeext; then
40433   ac_cv_lib_sun_getpwnam=yes
40434 else
40435   echo "$as_me: failed program was:" >&5
40436 sed 's/^/| /' conftest.$ac_ext >&5
40437
40438         ac_cv_lib_sun_getpwnam=no
40439 fi
40440
40441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40442       conftest$ac_exeext conftest.$ac_ext
40443 LIBS=$ac_check_lib_save_LIBS
40444 fi
40445 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40446 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40447 if test $ac_cv_lib_sun_getpwnam = yes; then
40448   cat >>confdefs.h <<_ACEOF
40449 #define HAVE_LIBSUN 1
40450 _ACEOF
40451
40452   LIBS="-lsun $LIBS"
40453
40454 fi
40455
40456
40457
40458 for ac_header in zlib.h
40459 do
40460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40462   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40465   echo $ECHO_N "(cached) $ECHO_C" >&6
40466 fi
40467 ac_res=`eval echo '${'$as_ac_Header'}'`
40468                { echo "$as_me:$LINENO: result: $ac_res" >&5
40469 echo "${ECHO_T}$ac_res" >&6; }
40470 else
40471   # Is the header compilable?
40472 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40474 cat >conftest.$ac_ext <<_ACEOF
40475 /* confdefs.h.  */
40476 _ACEOF
40477 cat confdefs.h >>conftest.$ac_ext
40478 cat >>conftest.$ac_ext <<_ACEOF
40479 /* end confdefs.h.  */
40480 $ac_includes_default
40481 #include <$ac_header>
40482 _ACEOF
40483 rm -f conftest.$ac_objext
40484 if { (ac_try="$ac_compile"
40485 case "(($ac_try" in
40486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40487   *) ac_try_echo=$ac_try;;
40488 esac
40489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40490   (eval "$ac_compile") 2>conftest.er1
40491   ac_status=$?
40492   grep -v '^ *+' conftest.er1 >conftest.err
40493   rm -f conftest.er1
40494   cat conftest.err >&5
40495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496   (exit $ac_status); } && {
40497          test -z "$ac_c_werror_flag" ||
40498          test ! -s conftest.err
40499        } && test -s conftest.$ac_objext; then
40500   ac_header_compiler=yes
40501 else
40502   echo "$as_me: failed program was:" >&5
40503 sed 's/^/| /' conftest.$ac_ext >&5
40504
40505         ac_header_compiler=no
40506 fi
40507
40508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40510 echo "${ECHO_T}$ac_header_compiler" >&6; }
40511
40512 # Is the header present?
40513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40515 cat >conftest.$ac_ext <<_ACEOF
40516 /* confdefs.h.  */
40517 _ACEOF
40518 cat confdefs.h >>conftest.$ac_ext
40519 cat >>conftest.$ac_ext <<_ACEOF
40520 /* end confdefs.h.  */
40521 #include <$ac_header>
40522 _ACEOF
40523 if { (ac_try="$ac_cpp conftest.$ac_ext"
40524 case "(($ac_try" in
40525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40526   *) ac_try_echo=$ac_try;;
40527 esac
40528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40530   ac_status=$?
40531   grep -v '^ *+' conftest.er1 >conftest.err
40532   rm -f conftest.er1
40533   cat conftest.err >&5
40534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535   (exit $ac_status); } >/dev/null && {
40536          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40537          test ! -s conftest.err
40538        }; then
40539   ac_header_preproc=yes
40540 else
40541   echo "$as_me: failed program was:" >&5
40542 sed 's/^/| /' conftest.$ac_ext >&5
40543
40544   ac_header_preproc=no
40545 fi
40546
40547 rm -f conftest.err conftest.$ac_ext
40548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40549 echo "${ECHO_T}$ac_header_preproc" >&6; }
40550
40551 # So?  What about this header?
40552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40553   yes:no: )
40554     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40558     ac_header_preproc=yes
40559     ;;
40560   no:yes:* )
40561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40563     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40564 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40565     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40567     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40568 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40571     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40573
40574     ;;
40575 esac
40576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40579   echo $ECHO_N "(cached) $ECHO_C" >&6
40580 else
40581   eval "$as_ac_Header=\$ac_header_preproc"
40582 fi
40583 ac_res=`eval echo '${'$as_ac_Header'}'`
40584                { echo "$as_me:$LINENO: result: $ac_res" >&5
40585 echo "${ECHO_T}$ac_res" >&6; }
40586
40587 fi
40588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40589   cat >>confdefs.h <<_ACEOF
40590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40591 _ACEOF
40592
40593 fi
40594
40595 done
40596
40597 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40598 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40599 if test "${ac_cv_lib_z_deflate+set}" = set; then
40600   echo $ECHO_N "(cached) $ECHO_C" >&6
40601 else
40602   ac_check_lib_save_LIBS=$LIBS
40603 LIBS="-lz  $LIBS"
40604 cat >conftest.$ac_ext <<_ACEOF
40605 /* confdefs.h.  */
40606 _ACEOF
40607 cat confdefs.h >>conftest.$ac_ext
40608 cat >>conftest.$ac_ext <<_ACEOF
40609 /* end confdefs.h.  */
40610
40611 /* Override any GCC internal prototype to avoid an error.
40612    Use char because int might match the return type of a GCC
40613    builtin and then its argument prototype would still apply.  */
40614 #ifdef __cplusplus
40615 extern "C"
40616 #endif
40617 char deflate ();
40618 int
40619 main ()
40620 {
40621 return deflate ();
40622   ;
40623   return 0;
40624 }
40625 _ACEOF
40626 rm -f conftest.$ac_objext conftest$ac_exeext
40627 if { (ac_try="$ac_link"
40628 case "(($ac_try" in
40629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40630   *) ac_try_echo=$ac_try;;
40631 esac
40632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40633   (eval "$ac_link") 2>conftest.er1
40634   ac_status=$?
40635   grep -v '^ *+' conftest.er1 >conftest.err
40636   rm -f conftest.er1
40637   cat conftest.err >&5
40638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639   (exit $ac_status); } && {
40640          test -z "$ac_c_werror_flag" ||
40641          test ! -s conftest.err
40642        } && test -s conftest$ac_exeext &&
40643        $as_test_x conftest$ac_exeext; then
40644   ac_cv_lib_z_deflate=yes
40645 else
40646   echo "$as_me: failed program was:" >&5
40647 sed 's/^/| /' conftest.$ac_ext >&5
40648
40649         ac_cv_lib_z_deflate=no
40650 fi
40651
40652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40653       conftest$ac_exeext conftest.$ac_ext
40654 LIBS=$ac_check_lib_save_LIBS
40655 fi
40656 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40657 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40658 if test $ac_cv_lib_z_deflate = yes; then
40659   FDLIBS="-lz"
40660 fi
40661
40662 have_zlib=no
40663 if test x$FDLIBS = x-lz; then
40664    cat >>confdefs.h <<\_ACEOF
40665 #define HAVE_LIBZ 1
40666 _ACEOF
40667
40668    have_zlib=yes
40669 fi
40670
40671 support_acl=auto
40672 # Check whether --enable-acl was given.
40673 if test "${enable_acl+set}" = set; then
40674   enableval=$enable_acl;
40675        if test x$enableval = xyes; then
40676           support_acl=yes
40677        elif test x$enableval = xno; then
40678           support_acl=no
40679        fi
40680
40681
40682 fi
40683
40684
40685 have_acl=no
40686 have_extended_acl=no
40687 if test x$support_acl = xyes -o x$support_acl = xauto; then
40688    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40689   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40690 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40691 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40692   echo $ECHO_N "(cached) $ECHO_C" >&6
40693 fi
40694 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40695 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40696 else
40697   # Is the header compilable?
40698 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40699 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40700 cat >conftest.$ac_ext <<_ACEOF
40701 /* confdefs.h.  */
40702 _ACEOF
40703 cat confdefs.h >>conftest.$ac_ext
40704 cat >>conftest.$ac_ext <<_ACEOF
40705 /* end confdefs.h.  */
40706 $ac_includes_default
40707 #include <sys/acl.h>
40708 _ACEOF
40709 rm -f conftest.$ac_objext
40710 if { (ac_try="$ac_compile"
40711 case "(($ac_try" in
40712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40713   *) ac_try_echo=$ac_try;;
40714 esac
40715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40716   (eval "$ac_compile") 2>conftest.er1
40717   ac_status=$?
40718   grep -v '^ *+' conftest.er1 >conftest.err
40719   rm -f conftest.er1
40720   cat conftest.err >&5
40721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40722   (exit $ac_status); } && {
40723          test -z "$ac_c_werror_flag" ||
40724          test ! -s conftest.err
40725        } && test -s conftest.$ac_objext; then
40726   ac_header_compiler=yes
40727 else
40728   echo "$as_me: failed program was:" >&5
40729 sed 's/^/| /' conftest.$ac_ext >&5
40730
40731         ac_header_compiler=no
40732 fi
40733
40734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40736 echo "${ECHO_T}$ac_header_compiler" >&6; }
40737
40738 # Is the header present?
40739 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40740 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40741 cat >conftest.$ac_ext <<_ACEOF
40742 /* confdefs.h.  */
40743 _ACEOF
40744 cat confdefs.h >>conftest.$ac_ext
40745 cat >>conftest.$ac_ext <<_ACEOF
40746 /* end confdefs.h.  */
40747 #include <sys/acl.h>
40748 _ACEOF
40749 if { (ac_try="$ac_cpp conftest.$ac_ext"
40750 case "(($ac_try" in
40751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40752   *) ac_try_echo=$ac_try;;
40753 esac
40754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40756   ac_status=$?
40757   grep -v '^ *+' conftest.er1 >conftest.err
40758   rm -f conftest.er1
40759   cat conftest.err >&5
40760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40761   (exit $ac_status); } >/dev/null && {
40762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40763          test ! -s conftest.err
40764        }; then
40765   ac_header_preproc=yes
40766 else
40767   echo "$as_me: failed program was:" >&5
40768 sed 's/^/| /' conftest.$ac_ext >&5
40769
40770   ac_header_preproc=no
40771 fi
40772
40773 rm -f conftest.err conftest.$ac_ext
40774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40775 echo "${ECHO_T}$ac_header_preproc" >&6; }
40776
40777 # So?  What about this header?
40778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40779   yes:no: )
40780     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40781 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40782     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40783 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40784     ac_header_preproc=yes
40785     ;;
40786   no:yes:* )
40787     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40788 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40789     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40790 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40791     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40792 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40793     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40794 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40795     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40796 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40797     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40798 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40799
40800     ;;
40801 esac
40802 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40803 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40804 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40805   echo $ECHO_N "(cached) $ECHO_C" >&6
40806 else
40807   ac_cv_header_sys_acl_h=$ac_header_preproc
40808 fi
40809 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40810 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40811
40812 fi
40813 if test $ac_cv_header_sys_acl_h = yes; then
40814
40815 cat >>confdefs.h <<\_ACEOF
40816 #define HAVE_SYS_ACL_H 1
40817 _ACEOF
40818
40819 fi
40820
40821
40822    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40823 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40824 if test "${ac_cv_func_acl_get_file+set}" = set; then
40825   echo $ECHO_N "(cached) $ECHO_C" >&6
40826 else
40827   cat >conftest.$ac_ext <<_ACEOF
40828 /* confdefs.h.  */
40829 _ACEOF
40830 cat confdefs.h >>conftest.$ac_ext
40831 cat >>conftest.$ac_ext <<_ACEOF
40832 /* end confdefs.h.  */
40833 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40835 #define acl_get_file innocuous_acl_get_file
40836
40837 /* System header to define __stub macros and hopefully few prototypes,
40838     which can conflict with char acl_get_file (); below.
40839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40840     <limits.h> exists even on freestanding compilers.  */
40841
40842 #ifdef __STDC__
40843 # include <limits.h>
40844 #else
40845 # include <assert.h>
40846 #endif
40847
40848 #undef acl_get_file
40849
40850 /* Override any GCC internal prototype to avoid an error.
40851    Use char because int might match the return type of a GCC
40852    builtin and then its argument prototype would still apply.  */
40853 #ifdef __cplusplus
40854 extern "C"
40855 #endif
40856 char acl_get_file ();
40857 /* The GNU C library defines this for functions which it implements
40858     to always fail with ENOSYS.  Some functions are actually named
40859     something starting with __ and the normal name is an alias.  */
40860 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40861 choke me
40862 #endif
40863
40864 int
40865 main ()
40866 {
40867 return acl_get_file ();
40868   ;
40869   return 0;
40870 }
40871 _ACEOF
40872 rm -f conftest.$ac_objext conftest$ac_exeext
40873 if { (ac_try="$ac_link"
40874 case "(($ac_try" in
40875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40876   *) ac_try_echo=$ac_try;;
40877 esac
40878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40879   (eval "$ac_link") 2>conftest.er1
40880   ac_status=$?
40881   grep -v '^ *+' conftest.er1 >conftest.err
40882   rm -f conftest.er1
40883   cat conftest.err >&5
40884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885   (exit $ac_status); } && {
40886          test -z "$ac_c_werror_flag" ||
40887          test ! -s conftest.err
40888        } && test -s conftest$ac_exeext &&
40889        $as_test_x conftest$ac_exeext; then
40890   ac_cv_func_acl_get_file=yes
40891 else
40892   echo "$as_me: failed program was:" >&5
40893 sed 's/^/| /' conftest.$ac_ext >&5
40894
40895         ac_cv_func_acl_get_file=no
40896 fi
40897
40898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40899       conftest$ac_exeext conftest.$ac_ext
40900 fi
40901 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40902 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40903 if test $ac_cv_func_acl_get_file = yes; then
40904
40905           have_acl=yes
40906
40907 else
40908
40909           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40910 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40911 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40912   echo $ECHO_N "(cached) $ECHO_C" >&6
40913 else
40914   ac_check_lib_save_LIBS=$LIBS
40915 LIBS="-lacl  $LIBS"
40916 cat >conftest.$ac_ext <<_ACEOF
40917 /* confdefs.h.  */
40918 _ACEOF
40919 cat confdefs.h >>conftest.$ac_ext
40920 cat >>conftest.$ac_ext <<_ACEOF
40921 /* end confdefs.h.  */
40922
40923 /* Override any GCC internal prototype to avoid an error.
40924    Use char because int might match the return type of a GCC
40925    builtin and then its argument prototype would still apply.  */
40926 #ifdef __cplusplus
40927 extern "C"
40928 #endif
40929 char acl_get_file ();
40930 int
40931 main ()
40932 {
40933 return acl_get_file ();
40934   ;
40935   return 0;
40936 }
40937 _ACEOF
40938 rm -f conftest.$ac_objext conftest$ac_exeext
40939 if { (ac_try="$ac_link"
40940 case "(($ac_try" in
40941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40942   *) ac_try_echo=$ac_try;;
40943 esac
40944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40945   (eval "$ac_link") 2>conftest.er1
40946   ac_status=$?
40947   grep -v '^ *+' conftest.er1 >conftest.err
40948   rm -f conftest.er1
40949   cat conftest.err >&5
40950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40951   (exit $ac_status); } && {
40952          test -z "$ac_c_werror_flag" ||
40953          test ! -s conftest.err
40954        } && test -s conftest$ac_exeext &&
40955        $as_test_x conftest$ac_exeext; then
40956   ac_cv_lib_acl_acl_get_file=yes
40957 else
40958   echo "$as_me: failed program was:" >&5
40959 sed 's/^/| /' conftest.$ac_ext >&5
40960
40961         ac_cv_lib_acl_acl_get_file=no
40962 fi
40963
40964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40965       conftest$ac_exeext conftest.$ac_ext
40966 LIBS=$ac_check_lib_save_LIBS
40967 fi
40968 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40969 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40970 if test $ac_cv_lib_acl_acl_get_file = yes; then
40971
40972                  have_acl=yes;
40973                  FDLIBS="-lacl $FDLIBS"
40974
40975 else
40976
40977                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40978 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40979 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40980   echo $ECHO_N "(cached) $ECHO_C" >&6
40981 else
40982   ac_check_lib_save_LIBS=$LIBS
40983 LIBS="-lpacl  $LIBS"
40984 cat >conftest.$ac_ext <<_ACEOF
40985 /* confdefs.h.  */
40986 _ACEOF
40987 cat confdefs.h >>conftest.$ac_ext
40988 cat >>conftest.$ac_ext <<_ACEOF
40989 /* end confdefs.h.  */
40990
40991 /* Override any GCC internal prototype to avoid an error.
40992    Use char because int might match the return type of a GCC
40993    builtin and then its argument prototype would still apply.  */
40994 #ifdef __cplusplus
40995 extern "C"
40996 #endif
40997 char acl_get_file ();
40998 int
40999 main ()
41000 {
41001 return acl_get_file ();
41002   ;
41003   return 0;
41004 }
41005 _ACEOF
41006 rm -f conftest.$ac_objext conftest$ac_exeext
41007 if { (ac_try="$ac_link"
41008 case "(($ac_try" in
41009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41010   *) ac_try_echo=$ac_try;;
41011 esac
41012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41013   (eval "$ac_link") 2>conftest.er1
41014   ac_status=$?
41015   grep -v '^ *+' conftest.er1 >conftest.err
41016   rm -f conftest.er1
41017   cat conftest.err >&5
41018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019   (exit $ac_status); } && {
41020          test -z "$ac_c_werror_flag" ||
41021          test ! -s conftest.err
41022        } && test -s conftest$ac_exeext &&
41023        $as_test_x conftest$ac_exeext; then
41024   ac_cv_lib_pacl_acl_get_file=yes
41025 else
41026   echo "$as_me: failed program was:" >&5
41027 sed 's/^/| /' conftest.$ac_ext >&5
41028
41029         ac_cv_lib_pacl_acl_get_file=no
41030 fi
41031
41032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41033       conftest$ac_exeext conftest.$ac_ext
41034 LIBS=$ac_check_lib_save_LIBS
41035 fi
41036 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41037 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41038 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41039
41040                         have_acl=yes;
41041                         FDLIBS="-lpacl $FDLIBS"
41042
41043 else
41044
41045                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41046 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41047 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41048   echo $ECHO_N "(cached) $ECHO_C" >&6
41049 else
41050   ac_check_lib_save_LIBS=$LIBS
41051 LIBS="-lsec  $LIBS"
41052 cat >conftest.$ac_ext <<_ACEOF
41053 /* confdefs.h.  */
41054 _ACEOF
41055 cat confdefs.h >>conftest.$ac_ext
41056 cat >>conftest.$ac_ext <<_ACEOF
41057 /* end confdefs.h.  */
41058
41059 /* Override any GCC internal prototype to avoid an error.
41060    Use char because int might match the return type of a GCC
41061    builtin and then its argument prototype would still apply.  */
41062 #ifdef __cplusplus
41063 extern "C"
41064 #endif
41065 char acltotext ();
41066 int
41067 main ()
41068 {
41069 return acltotext ();
41070   ;
41071   return 0;
41072 }
41073 _ACEOF
41074 rm -f conftest.$ac_objext conftest$ac_exeext
41075 if { (ac_try="$ac_link"
41076 case "(($ac_try" in
41077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41078   *) ac_try_echo=$ac_try;;
41079 esac
41080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41081   (eval "$ac_link") 2>conftest.er1
41082   ac_status=$?
41083   grep -v '^ *+' conftest.er1 >conftest.err
41084   rm -f conftest.er1
41085   cat conftest.err >&5
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); } && {
41088          test -z "$ac_c_werror_flag" ||
41089          test ! -s conftest.err
41090        } && test -s conftest$ac_exeext &&
41091        $as_test_x conftest$ac_exeext; then
41092   ac_cv_lib_sec_acltotext=yes
41093 else
41094   echo "$as_me: failed program was:" >&5
41095 sed 's/^/| /' conftest.$ac_ext >&5
41096
41097         ac_cv_lib_sec_acltotext=no
41098 fi
41099
41100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41101       conftest$ac_exeext conftest.$ac_ext
41102 LIBS=$ac_check_lib_save_LIBS
41103 fi
41104 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41105 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41106 if test $ac_cv_lib_sec_acltotext = yes; then
41107
41108                                have_acl=yes;
41109                                FDLIBS="-lsec $FDLIBS"
41110
41111                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41112 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41113 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41114   echo $ECHO_N "(cached) $ECHO_C" >&6
41115 else
41116   ac_check_lib_save_LIBS=$LIBS
41117 LIBS="-lsec  $LIBS"
41118 cat >conftest.$ac_ext <<_ACEOF
41119 /* confdefs.h.  */
41120 _ACEOF
41121 cat confdefs.h >>conftest.$ac_ext
41122 cat >>conftest.$ac_ext <<_ACEOF
41123 /* end confdefs.h.  */
41124
41125 /* Override any GCC internal prototype to avoid an error.
41126    Use char because int might match the return type of a GCC
41127    builtin and then its argument prototype would still apply.  */
41128 #ifdef __cplusplus
41129 extern "C"
41130 #endif
41131 char acl_totext ();
41132 int
41133 main ()
41134 {
41135 return acl_totext ();
41136   ;
41137   return 0;
41138 }
41139 _ACEOF
41140 rm -f conftest.$ac_objext conftest$ac_exeext
41141 if { (ac_try="$ac_link"
41142 case "(($ac_try" in
41143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41144   *) ac_try_echo=$ac_try;;
41145 esac
41146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41147   (eval "$ac_link") 2>conftest.er1
41148   ac_status=$?
41149   grep -v '^ *+' conftest.er1 >conftest.err
41150   rm -f conftest.er1
41151   cat conftest.err >&5
41152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41153   (exit $ac_status); } && {
41154          test -z "$ac_c_werror_flag" ||
41155          test ! -s conftest.err
41156        } && test -s conftest$ac_exeext &&
41157        $as_test_x conftest$ac_exeext; then
41158   ac_cv_lib_sec_acl_totext=yes
41159 else
41160   echo "$as_me: failed program was:" >&5
41161 sed 's/^/| /' conftest.$ac_ext >&5
41162
41163         ac_cv_lib_sec_acl_totext=no
41164 fi
41165
41166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41167       conftest$ac_exeext conftest.$ac_ext
41168 LIBS=$ac_check_lib_save_LIBS
41169 fi
41170 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41171 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41172 if test $ac_cv_lib_sec_acl_totext = yes; then
41173
41174                                       have_extended_acl=yes
41175
41176
41177 fi
41178
41179
41180
41181 fi
41182
41183
41184
41185 fi
41186
41187
41188
41189 fi
41190
41191
41192
41193 fi
41194
41195
41196    if test x$support_acl = xyes -a $have_acl != yes; then
41197       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41198   please either load the acl libraries or rerun configure without --enable-acl" >&5
41199 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41200   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41201    { (exit 1); exit 1; }; }
41202    else
41203       if test $have_acl = yes; then
41204
41205 cat >>confdefs.h <<\_ACEOF
41206 #define HAVE_ACL
41207 _ACEOF
41208
41209       fi
41210
41211       if test $have_extended_acl = yes; then
41212
41213 cat >>confdefs.h <<\_ACEOF
41214 #define HAVE_EXTENDED_ACL
41215 _ACEOF
41216
41217       fi
41218    fi
41219 fi
41220
41221 support_xattr=auto
41222 # Check whether --enable-xattr was given.
41223 if test "${enable_xattr+set}" = set; then
41224   enableval=$enable_xattr;
41225        if test x$enableval = xyes; then
41226           support_xattr=yes
41227        elif test x$enableval = xno; then
41228           support_xattr=no
41229        fi
41230
41231
41232 fi
41233
41234
41235 have_xattr=no
41236 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41237    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41238   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41239 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41240 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41241   echo $ECHO_N "(cached) $ECHO_C" >&6
41242 fi
41243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41244 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41245 else
41246   # Is the header compilable?
41247 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41248 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41249 cat >conftest.$ac_ext <<_ACEOF
41250 /* confdefs.h.  */
41251 _ACEOF
41252 cat confdefs.h >>conftest.$ac_ext
41253 cat >>conftest.$ac_ext <<_ACEOF
41254 /* end confdefs.h.  */
41255 $ac_includes_default
41256 #include <sys/xattr.h>
41257 _ACEOF
41258 rm -f conftest.$ac_objext
41259 if { (ac_try="$ac_compile"
41260 case "(($ac_try" in
41261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41262   *) ac_try_echo=$ac_try;;
41263 esac
41264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41265   (eval "$ac_compile") 2>conftest.er1
41266   ac_status=$?
41267   grep -v '^ *+' conftest.er1 >conftest.err
41268   rm -f conftest.er1
41269   cat conftest.err >&5
41270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41271   (exit $ac_status); } && {
41272          test -z "$ac_c_werror_flag" ||
41273          test ! -s conftest.err
41274        } && test -s conftest.$ac_objext; then
41275   ac_header_compiler=yes
41276 else
41277   echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41279
41280         ac_header_compiler=no
41281 fi
41282
41283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41285 echo "${ECHO_T}$ac_header_compiler" >&6; }
41286
41287 # Is the header present?
41288 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41289 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41290 cat >conftest.$ac_ext <<_ACEOF
41291 /* confdefs.h.  */
41292 _ACEOF
41293 cat confdefs.h >>conftest.$ac_ext
41294 cat >>conftest.$ac_ext <<_ACEOF
41295 /* end confdefs.h.  */
41296 #include <sys/xattr.h>
41297 _ACEOF
41298 if { (ac_try="$ac_cpp conftest.$ac_ext"
41299 case "(($ac_try" in
41300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41301   *) ac_try_echo=$ac_try;;
41302 esac
41303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41305   ac_status=$?
41306   grep -v '^ *+' conftest.er1 >conftest.err
41307   rm -f conftest.er1
41308   cat conftest.err >&5
41309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310   (exit $ac_status); } >/dev/null && {
41311          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41312          test ! -s conftest.err
41313        }; then
41314   ac_header_preproc=yes
41315 else
41316   echo "$as_me: failed program was:" >&5
41317 sed 's/^/| /' conftest.$ac_ext >&5
41318
41319   ac_header_preproc=no
41320 fi
41321
41322 rm -f conftest.err conftest.$ac_ext
41323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41324 echo "${ECHO_T}$ac_header_preproc" >&6; }
41325
41326 # So?  What about this header?
41327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41328   yes:no: )
41329     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41330 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41331     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41332 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41333     ac_header_preproc=yes
41334     ;;
41335   no:yes:* )
41336     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41337 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41338     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41339 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41340     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41341 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41342     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41343 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41344     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41345 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41346     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41347 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41348
41349     ;;
41350 esac
41351 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41352 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41353 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41354   echo $ECHO_N "(cached) $ECHO_C" >&6
41355 else
41356   ac_cv_header_sys_xattr_h=$ac_header_preproc
41357 fi
41358 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41359 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41360
41361 fi
41362 if test $ac_cv_header_sys_xattr_h = yes; then
41363
41364 cat >>confdefs.h <<\_ACEOF
41365 #define HAVE_SYS_XATTR_H 1
41366 _ACEOF
41367
41368 fi
41369
41370
41371
41372
41373
41374 for ac_func in llistxattr lgetxattr lsetxattr
41375 do
41376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41380   echo $ECHO_N "(cached) $ECHO_C" >&6
41381 else
41382   cat >conftest.$ac_ext <<_ACEOF
41383 /* confdefs.h.  */
41384 _ACEOF
41385 cat confdefs.h >>conftest.$ac_ext
41386 cat >>conftest.$ac_ext <<_ACEOF
41387 /* end confdefs.h.  */
41388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41390 #define $ac_func innocuous_$ac_func
41391
41392 /* System header to define __stub macros and hopefully few prototypes,
41393     which can conflict with char $ac_func (); below.
41394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41395     <limits.h> exists even on freestanding compilers.  */
41396
41397 #ifdef __STDC__
41398 # include <limits.h>
41399 #else
41400 # include <assert.h>
41401 #endif
41402
41403 #undef $ac_func
41404
41405 /* Override any GCC internal prototype to avoid an error.
41406    Use char because int might match the return type of a GCC
41407    builtin and then its argument prototype would still apply.  */
41408 #ifdef __cplusplus
41409 extern "C"
41410 #endif
41411 char $ac_func ();
41412 /* The GNU C library defines this for functions which it implements
41413     to always fail with ENOSYS.  Some functions are actually named
41414     something starting with __ and the normal name is an alias.  */
41415 #if defined __stub_$ac_func || defined __stub___$ac_func
41416 choke me
41417 #endif
41418
41419 int
41420 main ()
41421 {
41422 return $ac_func ();
41423   ;
41424   return 0;
41425 }
41426 _ACEOF
41427 rm -f conftest.$ac_objext conftest$ac_exeext
41428 if { (ac_try="$ac_link"
41429 case "(($ac_try" in
41430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41431   *) ac_try_echo=$ac_try;;
41432 esac
41433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41434   (eval "$ac_link") 2>conftest.er1
41435   ac_status=$?
41436   grep -v '^ *+' conftest.er1 >conftest.err
41437   rm -f conftest.er1
41438   cat conftest.err >&5
41439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440   (exit $ac_status); } && {
41441          test -z "$ac_c_werror_flag" ||
41442          test ! -s conftest.err
41443        } && test -s conftest$ac_exeext &&
41444        $as_test_x conftest$ac_exeext; then
41445   eval "$as_ac_var=yes"
41446 else
41447   echo "$as_me: failed program was:" >&5
41448 sed 's/^/| /' conftest.$ac_ext >&5
41449
41450         eval "$as_ac_var=no"
41451 fi
41452
41453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41454       conftest$ac_exeext conftest.$ac_ext
41455 fi
41456 ac_res=`eval echo '${'$as_ac_var'}'`
41457                { echo "$as_me:$LINENO: result: $ac_res" >&5
41458 echo "${ECHO_T}$ac_res" >&6; }
41459 if test `eval echo '${'$as_ac_var'}'` = yes; then
41460   cat >>confdefs.h <<_ACEOF
41461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41462 _ACEOF
41463
41464           have_xattr=yes
41465
41466 cat >>confdefs.h <<\_ACEOF
41467 #define HAVE_LLISTXATTR
41468 _ACEOF
41469
41470
41471 cat >>confdefs.h <<\_ACEOF
41472 #define HAVE_LGETXATTR
41473 _ACEOF
41474
41475
41476 cat >>confdefs.h <<\_ACEOF
41477 #define HAVE_LSETXATTR
41478 _ACEOF
41479
41480
41481
41482 fi
41483 done
41484
41485
41486    #
41487    # OSX specific
41488    #
41489    if test $have_xattr = no; then
41490
41491
41492
41493 for ac_func in listxattr getxattr setxattr
41494 do
41495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41499   echo $ECHO_N "(cached) $ECHO_C" >&6
41500 else
41501   cat >conftest.$ac_ext <<_ACEOF
41502 /* confdefs.h.  */
41503 _ACEOF
41504 cat confdefs.h >>conftest.$ac_ext
41505 cat >>conftest.$ac_ext <<_ACEOF
41506 /* end confdefs.h.  */
41507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41509 #define $ac_func innocuous_$ac_func
41510
41511 /* System header to define __stub macros and hopefully few prototypes,
41512     which can conflict with char $ac_func (); below.
41513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41514     <limits.h> exists even on freestanding compilers.  */
41515
41516 #ifdef __STDC__
41517 # include <limits.h>
41518 #else
41519 # include <assert.h>
41520 #endif
41521
41522 #undef $ac_func
41523
41524 /* Override any GCC internal prototype to avoid an error.
41525    Use char because int might match the return type of a GCC
41526    builtin and then its argument prototype would still apply.  */
41527 #ifdef __cplusplus
41528 extern "C"
41529 #endif
41530 char $ac_func ();
41531 /* The GNU C library defines this for functions which it implements
41532     to always fail with ENOSYS.  Some functions are actually named
41533     something starting with __ and the normal name is an alias.  */
41534 #if defined __stub_$ac_func || defined __stub___$ac_func
41535 choke me
41536 #endif
41537
41538 int
41539 main ()
41540 {
41541 return $ac_func ();
41542   ;
41543   return 0;
41544 }
41545 _ACEOF
41546 rm -f conftest.$ac_objext conftest$ac_exeext
41547 if { (ac_try="$ac_link"
41548 case "(($ac_try" in
41549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41550   *) ac_try_echo=$ac_try;;
41551 esac
41552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41553   (eval "$ac_link") 2>conftest.er1
41554   ac_status=$?
41555   grep -v '^ *+' conftest.er1 >conftest.err
41556   rm -f conftest.er1
41557   cat conftest.err >&5
41558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41559   (exit $ac_status); } && {
41560          test -z "$ac_c_werror_flag" ||
41561          test ! -s conftest.err
41562        } && test -s conftest$ac_exeext &&
41563        $as_test_x conftest$ac_exeext; then
41564   eval "$as_ac_var=yes"
41565 else
41566   echo "$as_me: failed program was:" >&5
41567 sed 's/^/| /' conftest.$ac_ext >&5
41568
41569         eval "$as_ac_var=no"
41570 fi
41571
41572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41573       conftest$ac_exeext conftest.$ac_ext
41574 fi
41575 ac_res=`eval echo '${'$as_ac_var'}'`
41576                { echo "$as_me:$LINENO: result: $ac_res" >&5
41577 echo "${ECHO_T}$ac_res" >&6; }
41578 if test `eval echo '${'$as_ac_var'}'` = yes; then
41579   cat >>confdefs.h <<_ACEOF
41580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41581 _ACEOF
41582
41583              have_xattr=yes
41584
41585 cat >>confdefs.h <<\_ACEOF
41586 #define HAVE_LLISTXATTR
41587 _ACEOF
41588
41589
41590 cat >>confdefs.h <<\_ACEOF
41591 #define HAVE_LGETXATTR
41592 _ACEOF
41593
41594
41595 cat >>confdefs.h <<\_ACEOF
41596 #define HAVE_LSETXATTR
41597 _ACEOF
41598
41599
41600
41601 fi
41602 done
41603
41604    fi
41605
41606    #
41607    # Solaris specific
41608    #
41609    if test $have_xattr = no; then
41610       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41611   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41612 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41613 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41614   echo $ECHO_N "(cached) $ECHO_C" >&6
41615 fi
41616 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41617 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41618 else
41619   # Is the header compilable?
41620 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41621 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41622 cat >conftest.$ac_ext <<_ACEOF
41623 /* confdefs.h.  */
41624 _ACEOF
41625 cat confdefs.h >>conftest.$ac_ext
41626 cat >>conftest.$ac_ext <<_ACEOF
41627 /* end confdefs.h.  */
41628 $ac_includes_default
41629 #include <sys/attr.h>
41630 _ACEOF
41631 rm -f conftest.$ac_objext
41632 if { (ac_try="$ac_compile"
41633 case "(($ac_try" in
41634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41635   *) ac_try_echo=$ac_try;;
41636 esac
41637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41638   (eval "$ac_compile") 2>conftest.er1
41639   ac_status=$?
41640   grep -v '^ *+' conftest.er1 >conftest.err
41641   rm -f conftest.er1
41642   cat conftest.err >&5
41643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644   (exit $ac_status); } && {
41645          test -z "$ac_c_werror_flag" ||
41646          test ! -s conftest.err
41647        } && test -s conftest.$ac_objext; then
41648   ac_header_compiler=yes
41649 else
41650   echo "$as_me: failed program was:" >&5
41651 sed 's/^/| /' conftest.$ac_ext >&5
41652
41653         ac_header_compiler=no
41654 fi
41655
41656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41658 echo "${ECHO_T}$ac_header_compiler" >&6; }
41659
41660 # Is the header present?
41661 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41662 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41663 cat >conftest.$ac_ext <<_ACEOF
41664 /* confdefs.h.  */
41665 _ACEOF
41666 cat confdefs.h >>conftest.$ac_ext
41667 cat >>conftest.$ac_ext <<_ACEOF
41668 /* end confdefs.h.  */
41669 #include <sys/attr.h>
41670 _ACEOF
41671 if { (ac_try="$ac_cpp conftest.$ac_ext"
41672 case "(($ac_try" in
41673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41674   *) ac_try_echo=$ac_try;;
41675 esac
41676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41678   ac_status=$?
41679   grep -v '^ *+' conftest.er1 >conftest.err
41680   rm -f conftest.er1
41681   cat conftest.err >&5
41682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683   (exit $ac_status); } >/dev/null && {
41684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41685          test ! -s conftest.err
41686        }; then
41687   ac_header_preproc=yes
41688 else
41689   echo "$as_me: failed program was:" >&5
41690 sed 's/^/| /' conftest.$ac_ext >&5
41691
41692   ac_header_preproc=no
41693 fi
41694
41695 rm -f conftest.err conftest.$ac_ext
41696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41697 echo "${ECHO_T}$ac_header_preproc" >&6; }
41698
41699 # So?  What about this header?
41700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41701   yes:no: )
41702     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41703 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41704     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41705 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41706     ac_header_preproc=yes
41707     ;;
41708   no:yes:* )
41709     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41710 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41711     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41712 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41713     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41714 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41715     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41716 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41717     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41718 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41719     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41720 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41721
41722     ;;
41723 esac
41724 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41725 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41726 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41727   echo $ECHO_N "(cached) $ECHO_C" >&6
41728 else
41729   ac_cv_header_sys_attr_h=$ac_header_preproc
41730 fi
41731 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41732 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41733
41734 fi
41735 if test $ac_cv_header_sys_attr_h = yes; then
41736
41737 cat >>confdefs.h <<\_ACEOF
41738 #define HAVE_SYS_ATTR_H 1
41739 _ACEOF
41740
41741 fi
41742
41743
41744       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41745   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41746 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41747 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41748   echo $ECHO_N "(cached) $ECHO_C" >&6
41749 fi
41750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41751 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41752 else
41753   # Is the header compilable?
41754 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41755 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41756 cat >conftest.$ac_ext <<_ACEOF
41757 /* confdefs.h.  */
41758 _ACEOF
41759 cat confdefs.h >>conftest.$ac_ext
41760 cat >>conftest.$ac_ext <<_ACEOF
41761 /* end confdefs.h.  */
41762 $ac_includes_default
41763 #include <sys/nvpair.h>
41764 _ACEOF
41765 rm -f conftest.$ac_objext
41766 if { (ac_try="$ac_compile"
41767 case "(($ac_try" in
41768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41769   *) ac_try_echo=$ac_try;;
41770 esac
41771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41772   (eval "$ac_compile") 2>conftest.er1
41773   ac_status=$?
41774   grep -v '^ *+' conftest.er1 >conftest.err
41775   rm -f conftest.er1
41776   cat conftest.err >&5
41777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41778   (exit $ac_status); } && {
41779          test -z "$ac_c_werror_flag" ||
41780          test ! -s conftest.err
41781        } && test -s conftest.$ac_objext; then
41782   ac_header_compiler=yes
41783 else
41784   echo "$as_me: failed program was:" >&5
41785 sed 's/^/| /' conftest.$ac_ext >&5
41786
41787         ac_header_compiler=no
41788 fi
41789
41790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41792 echo "${ECHO_T}$ac_header_compiler" >&6; }
41793
41794 # Is the header present?
41795 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41796 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41797 cat >conftest.$ac_ext <<_ACEOF
41798 /* confdefs.h.  */
41799 _ACEOF
41800 cat confdefs.h >>conftest.$ac_ext
41801 cat >>conftest.$ac_ext <<_ACEOF
41802 /* end confdefs.h.  */
41803 #include <sys/nvpair.h>
41804 _ACEOF
41805 if { (ac_try="$ac_cpp conftest.$ac_ext"
41806 case "(($ac_try" in
41807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41808   *) ac_try_echo=$ac_try;;
41809 esac
41810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41812   ac_status=$?
41813   grep -v '^ *+' conftest.er1 >conftest.err
41814   rm -f conftest.er1
41815   cat conftest.err >&5
41816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41817   (exit $ac_status); } >/dev/null && {
41818          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41819          test ! -s conftest.err
41820        }; then
41821   ac_header_preproc=yes
41822 else
41823   echo "$as_me: failed program was:" >&5
41824 sed 's/^/| /' conftest.$ac_ext >&5
41825
41826   ac_header_preproc=no
41827 fi
41828
41829 rm -f conftest.err conftest.$ac_ext
41830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41831 echo "${ECHO_T}$ac_header_preproc" >&6; }
41832
41833 # So?  What about this header?
41834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41835   yes:no: )
41836     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41837 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41838     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41839 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41840     ac_header_preproc=yes
41841     ;;
41842   no:yes:* )
41843     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41844 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41845     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41846 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41847     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41848 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41849     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41850 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41851     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41852 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41853     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41854 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41855
41856     ;;
41857 esac
41858 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41859 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41860 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41861   echo $ECHO_N "(cached) $ECHO_C" >&6
41862 else
41863   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41864 fi
41865 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41866 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41867
41868 fi
41869 if test $ac_cv_header_sys_nvpair_h = yes; then
41870
41871 cat >>confdefs.h <<\_ACEOF
41872 #define HAVE_SYS_NVPAIR_H 1
41873 _ACEOF
41874
41875 fi
41876
41877
41878       if test "${ac_cv_header_attr_h+set}" = set; then
41879   { echo "$as_me:$LINENO: checking for attr.h" >&5
41880 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41881 if test "${ac_cv_header_attr_h+set}" = set; then
41882   echo $ECHO_N "(cached) $ECHO_C" >&6
41883 fi
41884 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41885 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41886 else
41887   # Is the header compilable?
41888 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41889 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41890 cat >conftest.$ac_ext <<_ACEOF
41891 /* confdefs.h.  */
41892 _ACEOF
41893 cat confdefs.h >>conftest.$ac_ext
41894 cat >>conftest.$ac_ext <<_ACEOF
41895 /* end confdefs.h.  */
41896 $ac_includes_default
41897 #include <attr.h>
41898 _ACEOF
41899 rm -f conftest.$ac_objext
41900 if { (ac_try="$ac_compile"
41901 case "(($ac_try" in
41902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41903   *) ac_try_echo=$ac_try;;
41904 esac
41905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41906   (eval "$ac_compile") 2>conftest.er1
41907   ac_status=$?
41908   grep -v '^ *+' conftest.er1 >conftest.err
41909   rm -f conftest.er1
41910   cat conftest.err >&5
41911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912   (exit $ac_status); } && {
41913          test -z "$ac_c_werror_flag" ||
41914          test ! -s conftest.err
41915        } && test -s conftest.$ac_objext; then
41916   ac_header_compiler=yes
41917 else
41918   echo "$as_me: failed program was:" >&5
41919 sed 's/^/| /' conftest.$ac_ext >&5
41920
41921         ac_header_compiler=no
41922 fi
41923
41924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41926 echo "${ECHO_T}$ac_header_compiler" >&6; }
41927
41928 # Is the header present?
41929 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41930 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41931 cat >conftest.$ac_ext <<_ACEOF
41932 /* confdefs.h.  */
41933 _ACEOF
41934 cat confdefs.h >>conftest.$ac_ext
41935 cat >>conftest.$ac_ext <<_ACEOF
41936 /* end confdefs.h.  */
41937 #include <attr.h>
41938 _ACEOF
41939 if { (ac_try="$ac_cpp conftest.$ac_ext"
41940 case "(($ac_try" in
41941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41942   *) ac_try_echo=$ac_try;;
41943 esac
41944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41946   ac_status=$?
41947   grep -v '^ *+' conftest.er1 >conftest.err
41948   rm -f conftest.er1
41949   cat conftest.err >&5
41950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41951   (exit $ac_status); } >/dev/null && {
41952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41953          test ! -s conftest.err
41954        }; then
41955   ac_header_preproc=yes
41956 else
41957   echo "$as_me: failed program was:" >&5
41958 sed 's/^/| /' conftest.$ac_ext >&5
41959
41960   ac_header_preproc=no
41961 fi
41962
41963 rm -f conftest.err conftest.$ac_ext
41964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41965 echo "${ECHO_T}$ac_header_preproc" >&6; }
41966
41967 # So?  What about this header?
41968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41969   yes:no: )
41970     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41971 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41972     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41973 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41974     ac_header_preproc=yes
41975     ;;
41976   no:yes:* )
41977     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41978 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41979     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41980 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41981     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41982 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41983     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41984 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41985     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41986 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41987     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41988 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41989
41990     ;;
41991 esac
41992 { echo "$as_me:$LINENO: checking for attr.h" >&5
41993 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41994 if test "${ac_cv_header_attr_h+set}" = set; then
41995   echo $ECHO_N "(cached) $ECHO_C" >&6
41996 else
41997   ac_cv_header_attr_h=$ac_header_preproc
41998 fi
41999 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42000 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42001
42002 fi
42003 if test $ac_cv_header_attr_h = yes; then
42004
42005 cat >>confdefs.h <<\_ACEOF
42006 #define HAVE_ATTR_H 1
42007 _ACEOF
42008
42009 fi
42010
42011
42012
42013
42014
42015
42016
42017
42018 for ac_func in openat fstatat unlinkat fchownat futimesat
42019 do
42020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42024   echo $ECHO_N "(cached) $ECHO_C" >&6
42025 else
42026   cat >conftest.$ac_ext <<_ACEOF
42027 /* confdefs.h.  */
42028 _ACEOF
42029 cat confdefs.h >>conftest.$ac_ext
42030 cat >>conftest.$ac_ext <<_ACEOF
42031 /* end confdefs.h.  */
42032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42034 #define $ac_func innocuous_$ac_func
42035
42036 /* System header to define __stub macros and hopefully few prototypes,
42037     which can conflict with char $ac_func (); below.
42038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42039     <limits.h> exists even on freestanding compilers.  */
42040
42041 #ifdef __STDC__
42042 # include <limits.h>
42043 #else
42044 # include <assert.h>
42045 #endif
42046
42047 #undef $ac_func
42048
42049 /* Override any GCC internal prototype to avoid an error.
42050    Use char because int might match the return type of a GCC
42051    builtin and then its argument prototype would still apply.  */
42052 #ifdef __cplusplus
42053 extern "C"
42054 #endif
42055 char $ac_func ();
42056 /* The GNU C library defines this for functions which it implements
42057     to always fail with ENOSYS.  Some functions are actually named
42058     something starting with __ and the normal name is an alias.  */
42059 #if defined __stub_$ac_func || defined __stub___$ac_func
42060 choke me
42061 #endif
42062
42063 int
42064 main ()
42065 {
42066 return $ac_func ();
42067   ;
42068   return 0;
42069 }
42070 _ACEOF
42071 rm -f conftest.$ac_objext conftest$ac_exeext
42072 if { (ac_try="$ac_link"
42073 case "(($ac_try" in
42074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42075   *) ac_try_echo=$ac_try;;
42076 esac
42077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42078   (eval "$ac_link") 2>conftest.er1
42079   ac_status=$?
42080   grep -v '^ *+' conftest.er1 >conftest.err
42081   rm -f conftest.er1
42082   cat conftest.err >&5
42083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084   (exit $ac_status); } && {
42085          test -z "$ac_c_werror_flag" ||
42086          test ! -s conftest.err
42087        } && test -s conftest$ac_exeext &&
42088        $as_test_x conftest$ac_exeext; then
42089   eval "$as_ac_var=yes"
42090 else
42091   echo "$as_me: failed program was:" >&5
42092 sed 's/^/| /' conftest.$ac_ext >&5
42093
42094         eval "$as_ac_var=no"
42095 fi
42096
42097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42098       conftest$ac_exeext conftest.$ac_ext
42099 fi
42100 ac_res=`eval echo '${'$as_ac_var'}'`
42101                { echo "$as_me:$LINENO: result: $ac_res" >&5
42102 echo "${ECHO_T}$ac_res" >&6; }
42103 if test `eval echo '${'$as_ac_var'}'` = yes; then
42104   cat >>confdefs.h <<_ACEOF
42105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42106 _ACEOF
42107
42108              have_xattr=yes
42109
42110 cat >>confdefs.h <<\_ACEOF
42111 #define HAVE_OPENAT
42112 _ACEOF
42113
42114
42115 cat >>confdefs.h <<\_ACEOF
42116 #define HAVE_FSTATAT
42117 _ACEOF
42118
42119
42120 cat >>confdefs.h <<\_ACEOF
42121 #define HAVE_UNLINKAT
42122 _ACEOF
42123
42124
42125 cat >>confdefs.h <<\_ACEOF
42126 #define HAVE_FCHOWNAT
42127 _ACEOF
42128
42129
42130 cat >>confdefs.h <<\_ACEOF
42131 #define HAVE_FUTIMESAT
42132 _ACEOF
42133
42134
42135
42136 fi
42137 done
42138
42139
42140       if test $have_xattr = yes; then
42141          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42142 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42143 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42144   echo $ECHO_N "(cached) $ECHO_C" >&6
42145 else
42146   ac_check_lib_save_LIBS=$LIBS
42147 LIBS="-lnvpair  $LIBS"
42148 cat >conftest.$ac_ext <<_ACEOF
42149 /* confdefs.h.  */
42150 _ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h.  */
42154
42155 /* Override any GCC internal prototype to avoid an error.
42156    Use char because int might match the return type of a GCC
42157    builtin and then its argument prototype would still apply.  */
42158 #ifdef __cplusplus
42159 extern "C"
42160 #endif
42161 char nvlist_next_nvpair ();
42162 int
42163 main ()
42164 {
42165 return nvlist_next_nvpair ();
42166   ;
42167   return 0;
42168 }
42169 _ACEOF
42170 rm -f conftest.$ac_objext conftest$ac_exeext
42171 if { (ac_try="$ac_link"
42172 case "(($ac_try" in
42173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42174   *) ac_try_echo=$ac_try;;
42175 esac
42176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42177   (eval "$ac_link") 2>conftest.er1
42178   ac_status=$?
42179   grep -v '^ *+' conftest.er1 >conftest.err
42180   rm -f conftest.er1
42181   cat conftest.err >&5
42182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42183   (exit $ac_status); } && {
42184          test -z "$ac_c_werror_flag" ||
42185          test ! -s conftest.err
42186        } && test -s conftest$ac_exeext &&
42187        $as_test_x conftest$ac_exeext; then
42188   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42189 else
42190   echo "$as_me: failed program was:" >&5
42191 sed 's/^/| /' conftest.$ac_ext >&5
42192
42193         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42194 fi
42195
42196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42197       conftest$ac_exeext conftest.$ac_ext
42198 LIBS=$ac_check_lib_save_LIBS
42199 fi
42200 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42201 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42202 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42203
42204                 FDLIBS="-lnvpair $FDLIBS"
42205
42206
42207 fi
42208
42209       fi
42210    fi
42211
42212    if test x$support_xattr = xyes -a $have_xattr != yes; then
42213       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42214   please either load the xattr libraries or rerun configure without --enable-xatt" >&5
42215 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42216   please either load the xattr libraries or rerun configure without --enable-xatt" >&2;}
42217    { (exit 1); exit 1; }; }
42218    else
42219       if test $have_xattr = yes; then
42220
42221 cat >>confdefs.h <<\_ACEOF
42222 #define HAVE_XATTR
42223 _ACEOF
42224
42225       fi
42226    fi
42227 fi
42228
42229 PTHREAD_LIB=""
42230 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42231 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42232 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42233   echo $ECHO_N "(cached) $ECHO_C" >&6
42234 else
42235   ac_check_lib_save_LIBS=$LIBS
42236 LIBS="-lpthread  $LIBS"
42237 cat >conftest.$ac_ext <<_ACEOF
42238 /* confdefs.h.  */
42239 _ACEOF
42240 cat confdefs.h >>conftest.$ac_ext
42241 cat >>conftest.$ac_ext <<_ACEOF
42242 /* end confdefs.h.  */
42243
42244 /* Override any GCC internal prototype to avoid an error.
42245    Use char because int might match the return type of a GCC
42246    builtin and then its argument prototype would still apply.  */
42247 #ifdef __cplusplus
42248 extern "C"
42249 #endif
42250 char pthread_create ();
42251 int
42252 main ()
42253 {
42254 return pthread_create ();
42255   ;
42256   return 0;
42257 }
42258 _ACEOF
42259 rm -f conftest.$ac_objext conftest$ac_exeext
42260 if { (ac_try="$ac_link"
42261 case "(($ac_try" in
42262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42263   *) ac_try_echo=$ac_try;;
42264 esac
42265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42266   (eval "$ac_link") 2>conftest.er1
42267   ac_status=$?
42268   grep -v '^ *+' conftest.er1 >conftest.err
42269   rm -f conftest.er1
42270   cat conftest.err >&5
42271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42272   (exit $ac_status); } && {
42273          test -z "$ac_c_werror_flag" ||
42274          test ! -s conftest.err
42275        } && test -s conftest$ac_exeext &&
42276        $as_test_x conftest$ac_exeext; then
42277   ac_cv_lib_pthread_pthread_create=yes
42278 else
42279   echo "$as_me: failed program was:" >&5
42280 sed 's/^/| /' conftest.$ac_ext >&5
42281
42282         ac_cv_lib_pthread_pthread_create=no
42283 fi
42284
42285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42286       conftest$ac_exeext conftest.$ac_ext
42287 LIBS=$ac_check_lib_save_LIBS
42288 fi
42289 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42290 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42291 if test $ac_cv_lib_pthread_pthread_create = yes; then
42292   PTHREAD_LIB="-lpthread"
42293 else
42294
42295        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42296 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42297 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42298   echo $ECHO_N "(cached) $ECHO_C" >&6
42299 else
42300   ac_check_lib_save_LIBS=$LIBS
42301 LIBS="-lpthreads  $LIBS"
42302 cat >conftest.$ac_ext <<_ACEOF
42303 /* confdefs.h.  */
42304 _ACEOF
42305 cat confdefs.h >>conftest.$ac_ext
42306 cat >>conftest.$ac_ext <<_ACEOF
42307 /* end confdefs.h.  */
42308
42309 /* Override any GCC internal prototype to avoid an error.
42310    Use char because int might match the return type of a GCC
42311    builtin and then its argument prototype would still apply.  */
42312 #ifdef __cplusplus
42313 extern "C"
42314 #endif
42315 char pthread_create ();
42316 int
42317 main ()
42318 {
42319 return pthread_create ();
42320   ;
42321   return 0;
42322 }
42323 _ACEOF
42324 rm -f conftest.$ac_objext conftest$ac_exeext
42325 if { (ac_try="$ac_link"
42326 case "(($ac_try" in
42327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42328   *) ac_try_echo=$ac_try;;
42329 esac
42330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42331   (eval "$ac_link") 2>conftest.er1
42332   ac_status=$?
42333   grep -v '^ *+' conftest.er1 >conftest.err
42334   rm -f conftest.er1
42335   cat conftest.err >&5
42336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42337   (exit $ac_status); } && {
42338          test -z "$ac_c_werror_flag" ||
42339          test ! -s conftest.err
42340        } && test -s conftest$ac_exeext &&
42341        $as_test_x conftest$ac_exeext; then
42342   ac_cv_lib_pthreads_pthread_create=yes
42343 else
42344   echo "$as_me: failed program was:" >&5
42345 sed 's/^/| /' conftest.$ac_ext >&5
42346
42347         ac_cv_lib_pthreads_pthread_create=no
42348 fi
42349
42350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42351       conftest$ac_exeext conftest.$ac_ext
42352 LIBS=$ac_check_lib_save_LIBS
42353 fi
42354 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42355 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42356 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42357   PTHREAD_LIB="-lpthreads"
42358 else
42359
42360               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42361 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42362 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42363   echo $ECHO_N "(cached) $ECHO_C" >&6
42364 else
42365   ac_check_lib_save_LIBS=$LIBS
42366 LIBS="-lc_r  $LIBS"
42367 cat >conftest.$ac_ext <<_ACEOF
42368 /* confdefs.h.  */
42369 _ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h.  */
42373
42374 /* Override any GCC internal prototype to avoid an error.
42375    Use char because int might match the return type of a GCC
42376    builtin and then its argument prototype would still apply.  */
42377 #ifdef __cplusplus
42378 extern "C"
42379 #endif
42380 char pthread_create ();
42381 int
42382 main ()
42383 {
42384 return pthread_create ();
42385   ;
42386   return 0;
42387 }
42388 _ACEOF
42389 rm -f conftest.$ac_objext conftest$ac_exeext
42390 if { (ac_try="$ac_link"
42391 case "(($ac_try" in
42392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42393   *) ac_try_echo=$ac_try;;
42394 esac
42395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42396   (eval "$ac_link") 2>conftest.er1
42397   ac_status=$?
42398   grep -v '^ *+' conftest.er1 >conftest.err
42399   rm -f conftest.er1
42400   cat conftest.err >&5
42401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402   (exit $ac_status); } && {
42403          test -z "$ac_c_werror_flag" ||
42404          test ! -s conftest.err
42405        } && test -s conftest$ac_exeext &&
42406        $as_test_x conftest$ac_exeext; then
42407   ac_cv_lib_c_r_pthread_create=yes
42408 else
42409   echo "$as_me: failed program was:" >&5
42410 sed 's/^/| /' conftest.$ac_ext >&5
42411
42412         ac_cv_lib_c_r_pthread_create=no
42413 fi
42414
42415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42416       conftest$ac_exeext conftest.$ac_ext
42417 LIBS=$ac_check_lib_save_LIBS
42418 fi
42419 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42420 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42421 if test $ac_cv_lib_c_r_pthread_create = yes; then
42422   PTHREAD_LIB="-lc_r"
42423 else
42424
42425                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42426 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42427 if test "${ac_cv_func_pthread_create+set}" = set; then
42428   echo $ECHO_N "(cached) $ECHO_C" >&6
42429 else
42430   cat >conftest.$ac_ext <<_ACEOF
42431 /* confdefs.h.  */
42432 _ACEOF
42433 cat confdefs.h >>conftest.$ac_ext
42434 cat >>conftest.$ac_ext <<_ACEOF
42435 /* end confdefs.h.  */
42436 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42438 #define pthread_create innocuous_pthread_create
42439
42440 /* System header to define __stub macros and hopefully few prototypes,
42441     which can conflict with char pthread_create (); below.
42442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42443     <limits.h> exists even on freestanding compilers.  */
42444
42445 #ifdef __STDC__
42446 # include <limits.h>
42447 #else
42448 # include <assert.h>
42449 #endif
42450
42451 #undef pthread_create
42452
42453 /* Override any GCC internal prototype to avoid an error.
42454    Use char because int might match the return type of a GCC
42455    builtin and then its argument prototype would still apply.  */
42456 #ifdef __cplusplus
42457 extern "C"
42458 #endif
42459 char pthread_create ();
42460 /* The GNU C library defines this for functions which it implements
42461     to always fail with ENOSYS.  Some functions are actually named
42462     something starting with __ and the normal name is an alias.  */
42463 #if defined __stub_pthread_create || defined __stub___pthread_create
42464 choke me
42465 #endif
42466
42467 int
42468 main ()
42469 {
42470 return pthread_create ();
42471   ;
42472   return 0;
42473 }
42474 _ACEOF
42475 rm -f conftest.$ac_objext conftest$ac_exeext
42476 if { (ac_try="$ac_link"
42477 case "(($ac_try" in
42478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42479   *) ac_try_echo=$ac_try;;
42480 esac
42481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42482   (eval "$ac_link") 2>conftest.er1
42483   ac_status=$?
42484   grep -v '^ *+' conftest.er1 >conftest.err
42485   rm -f conftest.er1
42486   cat conftest.err >&5
42487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488   (exit $ac_status); } && {
42489          test -z "$ac_c_werror_flag" ||
42490          test ! -s conftest.err
42491        } && test -s conftest$ac_exeext &&
42492        $as_test_x conftest$ac_exeext; then
42493   ac_cv_func_pthread_create=yes
42494 else
42495   echo "$as_me: failed program was:" >&5
42496 sed 's/^/| /' conftest.$ac_ext >&5
42497
42498         ac_cv_func_pthread_create=no
42499 fi
42500
42501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42502       conftest$ac_exeext conftest.$ac_ext
42503 fi
42504 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42505 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42506
42507
42508
42509 fi
42510
42511
42512
42513 fi
42514
42515
42516
42517 fi
42518
42519
42520
42521 cat >>confdefs.h <<\_ACEOF
42522 #define FDLIBS 1
42523 _ACEOF
42524
42525
42526 CFLAGS=${CFLAGS--O}
42527
42528 if test x$have_gcc = xyes ; then
42529    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42530    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42531 fi
42532 LDFLAGS=${LDFLAGS--O}
42533 DB_LIBS="${SQL_LFLAGS}"
42534 CPPFLAGS="$CPPFLAGS"
42535 CFLAGS="$CFLAGS"
42536
42537
42538
42539
42540
42541
42542
42543
42544
42545
42546
42547
42548
42549
42550
42551
42552 OBJLIST=
42553
42554
42555 lld="lld"
42556 llu="llu"
42557
42558 WCFLAGS=
42559 WLDFLAGS=
42560
42561 PFILES="platforms/Makefile"
42562 PSCMD="ps -e"
42563 WIN32=
42564 MACOSX=
42565
42566 hostname=`uname -n | cut -d '.' -f 1`
42567 if test x${hostname} = x ; then
42568    hostname="localhost"
42569 fi
42570 case "$DISTNAME" in
42571 aix)
42572    DISTVER=`uname -r`
42573    PSCMD="ps -e -o pid,comm"
42574    PFILES="${PFILES} \
42575       platforms/aix/Makefile"
42576    TAPEDRIVE="/dev/rmt0.1"
42577   ;;
42578 alpha)
42579    DISTVER=`uname -r`
42580    PTHREAD_LIB="-lpthread -lexc"
42581    if test "${CC}" = "gcc" ; then
42582       lld="lld"
42583       llu="llu"
42584    else
42585       lld="ld"
42586       llu="lu"
42587    fi
42588    TAPEDRIVE="/dev/nrmt0"
42589   ;;
42590 bsdi)
42591    DISTVER=`uname -a |awk '{print $3}'`
42592    TAPEDRIVE="/dev/nrmt0"
42593    PTHREAD_LIB="-pthread"
42594    CFLAGS="${CFLAGS} -pthread"
42595    PSCMD="ps -ax -o pid,command"
42596    lld="qd"
42597    llu="qu"
42598    PFILES="${PFILES} \
42599        platforms/bsdi/Makefile \
42600        platforms/bsdi/bacula-fd \
42601        platforms/bsdi/bacula-sd \
42602        platforms/bsdi/bacula-dir"
42603    largefile_support="yes"
42604   ;;
42605 cygwin)
42606    DISTVER=`uname -a |awk '{print $3}'`
42607    TAPEDRIVE="/dev/nrst0"
42608    WIN32=win32
42609    WCFLAGS="-mwindows"
42610    WLDFLAGS="-mwindows"
42611   ;;
42612 darwin)
42613    DISTVER=`uname -r`
42614    TAPEDRIVE="/dev/nst0"
42615    PSCMD="ps -e -o pid,command"
42616    MACOSX=macosx
42617    PFILES="${PFILES} \
42618       platforms/darwin/Makefile"
42619   ;;
42620 osx)
42621    DISTVER=`uname -r`
42622    TAPEDRIVE="/dev/nst0"
42623    PSCMD="ps -e -o pid,command"
42624    MACOSX=macosx
42625    PFILES="${PFILES} \
42626       platforms/osx/Makefile"
42627   ;;
42628 debian)
42629       ping -c 1 $hostname 2>&1 1>/dev/null
42630    if test ! $? = 0; then
42631       hostname="localhost"
42632    fi
42633    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42634       DISTNAME="ubuntu"
42635    fi
42636    DISTVER=`cat /etc/debian_version`
42637    if test -f /etc/lsb-release ; then
42638       . /etc/lsb-release
42639       if test "x$DISTRIB_ID" != "x" ; then
42640          DISTNAME=$DISTRIB_ID
42641       fi
42642       if test "x$DISTRIB_RELEASE" != "x" ; then
42643          DISTVER=$DISTRIB_RELEASE
42644       fi
42645    fi
42646    if test "$DISTNAME" = "Ubuntu" ; then
42647       DISTNAME="ubuntu"
42648    fi
42649    TAPEDRIVE="/dev/nst0"
42650    PSCMD="ps -e -o pid,command"
42651    if test "$DISTNAME" = "ubuntu" ; then
42652       PFILES="${PFILES} \
42653          platforms/ubuntu/Makefile \
42654          platforms/ubuntu/bacula-fd \
42655          platforms/ubuntu/bacula-sd \
42656          platforms/ubuntu/bacula-dir"
42657    else
42658       PFILES="${PFILES} \
42659          platforms/debian/Makefile \
42660          platforms/debian/bacula-fd \
42661          platforms/debian/bacula-sd \
42662          platforms/debian/bacula-dir"
42663    fi
42664   ;;
42665 freebsd)
42666       ping -c 1 $hostname 2>&1 1>/dev/null
42667    if test ! $? = 0; then
42668       hostname="localhost"
42669    fi
42670    DISTVER=`uname -a |awk '{print $3}'`
42671    VER=`echo $DISTVER | cut -c 1`
42672    if test x$VER = x4 ; then
42673       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42674       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42675    fi
42676    lld="qd"
42677    llu="qu"
42678    TAPEDRIVE="/dev/nrsa0"
42679    PSCMD="ps -ax -o pid,command"
42680    PFILES="${PFILES} \
42681        platforms/freebsd/Makefile \
42682        platforms/freebsd/bacula-fd \
42683        platforms/freebsd/bacula-sd \
42684        platforms/freebsd/bacula-dir"
42685    largefile_support="yes"
42686   ;;
42687 hpux)
42688    PSCMD="UNIX95=1; ps -e -o pid,comm"
42689    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42690    DISTVER=`uname -r`
42691    TAPEDRIVE="/dev/rmt/0hnb"
42692    PTHREAD_LIB="-lpthread"
42693    cat >>confdefs.h <<\_ACEOF
42694 #define _INCLUDE_LONGLONG 1
42695 _ACEOF
42696
42697   ;;
42698 irix)
42699    DISTVER=`uname -r`
42700    TAPEDRIVE="/dev/rmt/0cbn"
42701    PSCMD="ps -e -o pid,comm"
42702    PFILES="${PFILES} \
42703        platforms/irix/Makefile \
42704        platforms/irix/bacula-fd \
42705        platforms/irix/bacula-sd \
42706        platforms/irix/bacula-dir"
42707   ;;
42708 netbsd)
42709    DISTVER=`uname -a |awk '{print $3}'`
42710    lld="qd"
42711    llu="qu"
42712    TAPEDRIVE="/dev/nrst0"
42713    PSCMD="ps -ax -o pid,command"
42714    PTHREAD_LIB="-pthread"
42715    CFLAGS="${CFLAGS} -pthread"
42716   ;;
42717 openbsd)
42718    DISTVER=`uname -a |awk '{print $3}'`
42719    lld="qd"
42720    llu="qu"
42721    TAPEDRIVE="/dev/nrst0"
42722    PSCMD="ps -ax -o pid,command"
42723    PTHREAD_LIB="-pthread"
42724    CFLAGS="${CFLAGS} -pthread"
42725    PFILES="${PFILES} \
42726        platforms/openbsd/Makefile \
42727        platforms/openbsd/bacula-fd \
42728        platforms/openbsd/bacula-sd \
42729        platforms/openbsd/bacula-dir"
42730   ;;
42731 redhat)
42732       ping -c 1 $hostname 2>&1 1>/dev/null
42733    if test ! $? = 0; then
42734       hostname="localhost"
42735    fi
42736    if test -f /etc/whitebox-release ; then
42737       f=/etc/whitebox-release
42738    else
42739       f=/etc/redhat-release
42740    fi
42741    if test `cat $f | grep release |\
42742          cut -f 3 -d ' '`x = "Enterprise"x ; then
42743       DISTVER="Enterprise "`cat $f | grep release |\
42744           cut -f 6 -d ' '`
42745    else
42746        DISTVER=`cat /etc/redhat-release | grep release |\
42747            cut -f 5 -d ' '`
42748    fi
42749    TAPEDRIVE="/dev/nst0"
42750    PSCMD="ps -e -o pid,command"
42751    PFILES="${PFILES} \
42752        platforms/redhat/Makefile \
42753        platforms/redhat/bacula-fd \
42754        platforms/redhat/bacula-sd \
42755        platforms/redhat/bacula-dir \
42756        platforms/redhat/bacula.spec \
42757        "
42758   ;;
42759 mandrake)
42760       ping -c 1 $hostname 2>&1 1>/dev/null
42761    if test ! $? = 0; then
42762       hostname="localhost"
42763    fi
42764    DISTVER=`cat /etc/mandrake-release | grep release |\
42765       cut -f 5 -d ' '`
42766    TAPEDRIVE="/dev/nst0"
42767    PSCMD="ps -e -o pid,command"
42768    PFILES="${PFILES} \
42769        platforms/mandrake/Makefile \
42770        platforms/mandrake/bacula-fd \
42771        platforms/mandrake/bacula-sd \
42772        platforms/mandrake/bacula-dir \
42773        platforms/mandrake/bacula.spec \
42774        "
42775   ;;
42776 gentoo)
42777       ping -c 1 $hostname 2>&1 1>/dev/null
42778    if test ! $? = 0; then
42779       hostname="localhost"
42780    fi
42781    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42782    TAPEDRIVE="/dev/nst0"
42783    PSCMD="ps -e -o pid,command"
42784    PFILES="${PFILES} \
42785        platforms/gentoo/Makefile \
42786     platforms/gentoo/bacula-init \
42787        platforms/gentoo/bacula-fd \
42788        platforms/gentoo/bacula-sd \
42789        platforms/gentoo/bacula-dir"
42790   ;;
42791 slackware)
42792       ping -c 1 $hostname 2>&1 1>/dev/null
42793    if test ! $? = 0; then
42794       hostname="localhost"
42795    fi
42796    DISTVER=`cat /etc/slackware-version`
42797    TAPEDRIVE="/dev/nst0"
42798    PSCMD="ps -e -o pid,command"
42799    PFILES="${PFILES} \
42800        platforms/slackware/Makefile \
42801        platforms/slackware/rc.bacula-fd \
42802        platforms/slackware/rc.bacula-sd \
42803        platforms/slackware/rc.bacula-dir\
42804        platforms/slackware/functions.bacula"
42805   ;;
42806 solaris)
42807    DISTVER=`uname -r`
42808    TAPEDRIVE="/dev/rmt/0cbn"
42809    PSCMD="ps -e -o pid,comm"
42810    PFILES="${PFILES} \
42811        platforms/solaris/Makefile \
42812        platforms/solaris/bacula-fd \
42813        platforms/solaris/bacula-sd \
42814        platforms/solaris/bacula-dir"
42815    if test x$DISTVER = x5.6 ; then
42816        cat >>confdefs.h <<\_ACEOF
42817 #define HAVE_OLD_SOCKOPT 1
42818 _ACEOF
42819
42820    fi
42821    LIBS="$LIBS -lresolv"
42822   ;;
42823 suse)
42824       ping -c 1 $hostname 2>&1 1>/dev/null
42825    if test ! $? = 0; then
42826       hostname="localhost"
42827    fi
42828    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42829        cut -f 3 -d ' '`
42830    TAPEDRIVE="/dev/nst0"
42831    PSCMD="ps -e -o pid,command"
42832    PFILES="${PFILES} \
42833        platforms/suse/Makefile \
42834        platforms/suse/bacula-fd \
42835        platforms/suse/bacula-sd \
42836        platforms/suse/bacula-dir \
42837        platforms/suse/bacula \
42838        platforms/suse/bacula.spec"
42839   ;;
42840 suse5)
42841       ping -c 1 $hostname 2>&1 1>/dev/null
42842    if test ! $? = 0; then
42843       hostname="localhost"
42844    fi
42845    DISTNAME=suse
42846    DISTVER=5.x
42847    TAPEDRIVE="/dev/nst0"
42848    PSCMD="ps -e -o pid,command"
42849    PFILES="${PFILES} \
42850        platforms/suse/Makefile \
42851        platforms/suse/bacula-fd \
42852        platforms/suse/bacula-sd \
42853        platforms/suse/bacula-dir"
42854   ;;
42855 unknown)
42856    DISTVER=unknown
42857    TAPEDRIVE="/dev/nst0"
42858   ;;
42859 *)
42860   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42861   ;;
42862 esac
42863
42864
42865
42866 LIBS="$PTHREAD_LIB $LIBS"
42867
42868 cat >>confdefs.h <<_ACEOF
42869 #define lld "$lld"
42870 _ACEOF
42871
42872 cat >>confdefs.h <<_ACEOF
42873 #define llu "$llu"
42874 _ACEOF
42875
42876
42877
42878
42879
42880
42881
42882
42883 MCOMMON=./autoconf/Make.common
42884
42885
42886 if test "x${subsysdir}" = "x${sbindir}" ; then
42887    echo " "
42888    echo " "
42889    echo "You have set both --sbindir and --with-subsys-dir"
42890    echo "  equal to: ${subsysdir} "
42891    echo "This is not permitted. Please reconfigure."
42892    echo " "
42893    echo "Aborting configuration ..."
42894    echo " "
42895    echo " "
42896    exit 1
42897 fi
42898
42899 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"
42900
42901 ac_config_commands="$ac_config_commands default"
42902
42903 cat >confcache <<\_ACEOF
42904 # This file is a shell script that caches the results of configure
42905 # tests run on this system so they can be shared between configure
42906 # scripts and configure runs, see configure's option --config-cache.
42907 # It is not useful on other systems.  If it contains results you don't
42908 # want to keep, you may remove or edit it.
42909 #
42910 # config.status only pays attention to the cache file if you give it
42911 # the --recheck option to rerun configure.
42912 #
42913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42915 # following values.
42916
42917 _ACEOF
42918
42919 # The following way of writing the cache mishandles newlines in values,
42920 # but we know of no workaround that is simple, portable, and efficient.
42921 # So, we kill variables containing newlines.
42922 # Ultrix sh set writes to stderr and can't be redirected directly,
42923 # and sets the high bit in the cache file unless we assign to the vars.
42924 (
42925   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42926     eval ac_val=\$$ac_var
42927     case $ac_val in #(
42928     *${as_nl}*)
42929       case $ac_var in #(
42930       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42931 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42932       esac
42933       case $ac_var in #(
42934       _ | IFS | as_nl) ;; #(
42935       *) $as_unset $ac_var ;;
42936       esac ;;
42937     esac
42938   done
42939
42940   (set) 2>&1 |
42941     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42942     *${as_nl}ac_space=\ *)
42943       # `set' does not quote correctly, so add quotes (double-quote
42944       # substitution turns \\\\ into \\, and sed turns \\ into \).
42945       sed -n \
42946         "s/'/'\\\\''/g;
42947           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42948       ;; #(
42949     *)
42950       # `set' quotes correctly as required by POSIX, so do not add quotes.
42951       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42952       ;;
42953     esac |
42954     sort
42955 ) |
42956   sed '
42957      /^ac_cv_env_/b end
42958      t clear
42959      :clear
42960      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42961      t end
42962      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42963      :end' >>confcache
42964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42965   if test -w "$cache_file"; then
42966     test "x$cache_file" != "x/dev/null" &&
42967       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42968 echo "$as_me: updating cache $cache_file" >&6;}
42969     cat confcache >$cache_file
42970   else
42971     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42972 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42973   fi
42974 fi
42975 rm -f confcache
42976
42977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42978 # Let make expand exec_prefix.
42979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42980
42981 DEFS=-DHAVE_CONFIG_H
42982
42983 ac_libobjs=
42984 ac_ltlibobjs=
42985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42986   # 1. Remove the extension, and $U if already installed.
42987   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42988   ac_i=`echo "$ac_i" | sed "$ac_script"`
42989   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42990   #    will be set to the directory where LIBOBJS objects are built.
42991   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42992   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42993 done
42994 LIBOBJS=$ac_libobjs
42995
42996 LTLIBOBJS=$ac_ltlibobjs
42997
42998
42999
43000 : ${CONFIG_STATUS=./config.status}
43001 ac_clean_files_save=$ac_clean_files
43002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43003 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43004 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43005 cat >$CONFIG_STATUS <<_ACEOF
43006 #! $SHELL
43007 # Generated by $as_me.
43008 # Run this file to recreate the current configuration.
43009 # Compiler output produced by configure, useful for debugging
43010 # configure, is in config.log if it exists.
43011
43012 debug=false
43013 ac_cs_recheck=false
43014 ac_cs_silent=false
43015 SHELL=\${CONFIG_SHELL-$SHELL}
43016 _ACEOF
43017
43018 cat >>$CONFIG_STATUS <<\_ACEOF
43019 ## --------------------- ##
43020 ## M4sh Initialization.  ##
43021 ## --------------------- ##
43022
43023 # Be more Bourne compatible
43024 DUALCASE=1; export DUALCASE # for MKS sh
43025 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43026   emulate sh
43027   NULLCMD=:
43028   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43029   # is contrary to our usage.  Disable this feature.
43030   alias -g '${1+"$@"}'='"$@"'
43031   setopt NO_GLOB_SUBST
43032 else
43033   case `(set -o) 2>/dev/null` in
43034   *posix*) set -o posix ;;
43035 esac
43036
43037 fi
43038
43039
43040
43041
43042 # PATH needs CR
43043 # Avoid depending upon Character Ranges.
43044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43047 as_cr_digits='0123456789'
43048 as_cr_alnum=$as_cr_Letters$as_cr_digits
43049
43050 # The user is always right.
43051 if test "${PATH_SEPARATOR+set}" != set; then
43052   echo "#! /bin/sh" >conf$$.sh
43053   echo  "exit 0"   >>conf$$.sh
43054   chmod +x conf$$.sh
43055   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43056     PATH_SEPARATOR=';'
43057   else
43058     PATH_SEPARATOR=:
43059   fi
43060   rm -f conf$$.sh
43061 fi
43062
43063 # Support unset when possible.
43064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43065   as_unset=unset
43066 else
43067   as_unset=false
43068 fi
43069
43070
43071 # IFS
43072 # We need space, tab and new line, in precisely that order.  Quoting is
43073 # there to prevent editors from complaining about space-tab.
43074 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43075 # splitting by setting IFS to empty value.)
43076 as_nl='
43077 '
43078 IFS=" ""        $as_nl"
43079
43080 # Find who we are.  Look in the path if we contain no directory separator.
43081 case $0 in
43082   *[\\/]* ) as_myself=$0 ;;
43083   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43084 for as_dir in $PATH
43085 do
43086   IFS=$as_save_IFS
43087   test -z "$as_dir" && as_dir=.
43088   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43089 done
43090 IFS=$as_save_IFS
43091
43092      ;;
43093 esac
43094 # We did not find ourselves, most probably we were run as `sh COMMAND'
43095 # in which case we are not to be found in the path.
43096 if test "x$as_myself" = x; then
43097   as_myself=$0
43098 fi
43099 if test ! -f "$as_myself"; then
43100   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43101   { (exit 1); exit 1; }
43102 fi
43103
43104 # Work around bugs in pre-3.0 UWIN ksh.
43105 for as_var in ENV MAIL MAILPATH
43106 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43107 done
43108 PS1='$ '
43109 PS2='> '
43110 PS4='+ '
43111
43112 # NLS nuisances.
43113 for as_var in \
43114   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43115   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43116   LC_TELEPHONE LC_TIME
43117 do
43118   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43119     eval $as_var=C; export $as_var
43120   else
43121     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43122   fi
43123 done
43124
43125 # Required to use basename.
43126 if expr a : '\(a\)' >/dev/null 2>&1 &&
43127    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43128   as_expr=expr
43129 else
43130   as_expr=false
43131 fi
43132
43133 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43134   as_basename=basename
43135 else
43136   as_basename=false
43137 fi
43138
43139
43140 # Name of the executable.
43141 as_me=`$as_basename -- "$0" ||
43142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43143          X"$0" : 'X\(//\)$' \| \
43144          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43145 echo X/"$0" |
43146     sed '/^.*\/\([^/][^/]*\)\/*$/{
43147             s//\1/
43148             q
43149           }
43150           /^X\/\(\/\/\)$/{
43151             s//\1/
43152             q
43153           }
43154           /^X\/\(\/\).*/{
43155             s//\1/
43156             q
43157           }
43158           s/.*/./; q'`
43159
43160 # CDPATH.
43161 $as_unset CDPATH
43162
43163
43164
43165   as_lineno_1=$LINENO
43166   as_lineno_2=$LINENO
43167   test "x$as_lineno_1" != "x$as_lineno_2" &&
43168   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43169
43170   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43171   # uniformly replaced by the line number.  The first 'sed' inserts a
43172   # line-number line after each line using $LINENO; the second 'sed'
43173   # does the real work.  The second script uses 'N' to pair each
43174   # line-number line with the line containing $LINENO, and appends
43175   # trailing '-' during substitution so that $LINENO is not a special
43176   # case at line end.
43177   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43178   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43179   # E. McMahon (1931-1989) for sed's syntax.  :-)
43180   sed -n '
43181     p
43182     /[$]LINENO/=
43183   ' <$as_myself |
43184     sed '
43185       s/[$]LINENO.*/&-/
43186       t lineno
43187       b
43188       :lineno
43189       N
43190       :loop
43191       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43192       t loop
43193       s/-\n.*//
43194     ' >$as_me.lineno &&
43195   chmod +x "$as_me.lineno" ||
43196     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43197    { (exit 1); exit 1; }; }
43198
43199   # Don't try to exec as it changes $[0], causing all sort of problems
43200   # (the dirname of $[0] is not the place where we might find the
43201   # original and so on.  Autoconf is especially sensitive to this).
43202   . "./$as_me.lineno"
43203   # Exit status is that of the last command.
43204   exit
43205 }
43206
43207
43208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43209   as_dirname=dirname
43210 else
43211   as_dirname=false
43212 fi
43213
43214 ECHO_C= ECHO_N= ECHO_T=
43215 case `echo -n x` in
43216 -n*)
43217   case `echo 'x\c'` in
43218   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43219   *)   ECHO_C='\c';;
43220   esac;;
43221 *)
43222   ECHO_N='-n';;
43223 esac
43224
43225 if expr a : '\(a\)' >/dev/null 2>&1 &&
43226    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43227   as_expr=expr
43228 else
43229   as_expr=false
43230 fi
43231
43232 rm -f conf$$ conf$$.exe conf$$.file
43233 if test -d conf$$.dir; then
43234   rm -f conf$$.dir/conf$$.file
43235 else
43236   rm -f conf$$.dir
43237   mkdir conf$$.dir
43238 fi
43239 echo >conf$$.file
43240 if ln -s conf$$.file conf$$ 2>/dev/null; then
43241   as_ln_s='ln -s'
43242   # ... but there are two gotchas:
43243   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43244   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43245   # In both cases, we have to default to `cp -p'.
43246   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43247     as_ln_s='cp -p'
43248 elif ln conf$$.file conf$$ 2>/dev/null; then
43249   as_ln_s=ln
43250 else
43251   as_ln_s='cp -p'
43252 fi
43253 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43254 rmdir conf$$.dir 2>/dev/null
43255
43256 if mkdir -p . 2>/dev/null; then
43257   as_mkdir_p=:
43258 else
43259   test -d ./-p && rmdir ./-p
43260   as_mkdir_p=false
43261 fi
43262
43263 if test -x / >/dev/null 2>&1; then
43264   as_test_x='test -x'
43265 else
43266   if ls -dL / >/dev/null 2>&1; then
43267     as_ls_L_option=L
43268   else
43269     as_ls_L_option=
43270   fi
43271   as_test_x='
43272     eval sh -c '\''
43273       if test -d "$1"; then
43274         test -d "$1/.";
43275       else
43276         case $1 in
43277         -*)set "./$1";;
43278         esac;
43279         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43280         ???[sx]*):;;*)false;;esac;fi
43281     '\'' sh
43282   '
43283 fi
43284 as_executable_p=$as_test_x
43285
43286 # Sed expression to map a string onto a valid CPP name.
43287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43288
43289 # Sed expression to map a string onto a valid variable name.
43290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43291
43292
43293 exec 6>&1
43294
43295 # Save the log message, to keep $[0] and so on meaningful, and to
43296 # report actual input values of CONFIG_FILES etc. instead of their
43297 # values after options handling.
43298 ac_log="
43299 This file was extended by $as_me, which was
43300 generated by GNU Autoconf 2.61.  Invocation command line was
43301
43302   CONFIG_FILES    = $CONFIG_FILES
43303   CONFIG_HEADERS  = $CONFIG_HEADERS
43304   CONFIG_LINKS    = $CONFIG_LINKS
43305   CONFIG_COMMANDS = $CONFIG_COMMANDS
43306   $ $0 $@
43307
43308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43309 "
43310
43311 _ACEOF
43312
43313 cat >>$CONFIG_STATUS <<_ACEOF
43314 # Files that config.status was made for.
43315 config_files="$ac_config_files"
43316 config_headers="$ac_config_headers"
43317 config_commands="$ac_config_commands"
43318
43319 _ACEOF
43320
43321 cat >>$CONFIG_STATUS <<\_ACEOF
43322 ac_cs_usage="\
43323 \`$as_me' instantiates files from templates according to the
43324 current configuration.
43325
43326 Usage: $0 [OPTIONS] [FILE]...
43327
43328   -h, --help       print this help, then exit
43329   -V, --version    print version number and configuration settings, then exit
43330   -q, --quiet      do not print progress messages
43331   -d, --debug      don't remove temporary files
43332       --recheck    update $as_me by reconfiguring in the same conditions
43333   --file=FILE[:TEMPLATE]
43334                    instantiate the configuration file FILE
43335   --header=FILE[:TEMPLATE]
43336                    instantiate the configuration header FILE
43337
43338 Configuration files:
43339 $config_files
43340
43341 Configuration headers:
43342 $config_headers
43343
43344 Configuration commands:
43345 $config_commands
43346
43347 Report bugs to <bug-autoconf@gnu.org>."
43348
43349 _ACEOF
43350 cat >>$CONFIG_STATUS <<_ACEOF
43351 ac_cs_version="\\
43352 config.status
43353 configured by $0, generated by GNU Autoconf 2.61,
43354   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43355
43356 Copyright (C) 2006 Free Software Foundation, Inc.
43357 This config.status script is free software; the Free Software Foundation
43358 gives unlimited permission to copy, distribute and modify it."
43359
43360 ac_pwd='$ac_pwd'
43361 srcdir='$srcdir'
43362 INSTALL='$INSTALL'
43363 _ACEOF
43364
43365 cat >>$CONFIG_STATUS <<\_ACEOF
43366 # If no file are specified by the user, then we need to provide default
43367 # value.  By we need to know if files were specified by the user.
43368 ac_need_defaults=:
43369 while test $# != 0
43370 do
43371   case $1 in
43372   --*=*)
43373     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43374     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43375     ac_shift=:
43376     ;;
43377   *)
43378     ac_option=$1
43379     ac_optarg=$2
43380     ac_shift=shift
43381     ;;
43382   esac
43383
43384   case $ac_option in
43385   # Handling of the options.
43386   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43387     ac_cs_recheck=: ;;
43388   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43389     echo "$ac_cs_version"; exit ;;
43390   --debug | --debu | --deb | --de | --d | -d )
43391     debug=: ;;
43392   --file | --fil | --fi | --f )
43393     $ac_shift
43394     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43395     ac_need_defaults=false;;
43396   --header | --heade | --head | --hea )
43397     $ac_shift
43398     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43399     ac_need_defaults=false;;
43400   --he | --h)
43401     # Conflict between --help and --header
43402     { echo "$as_me: error: ambiguous option: $1
43403 Try \`$0 --help' for more information." >&2
43404    { (exit 1); exit 1; }; };;
43405   --help | --hel | -h )
43406     echo "$ac_cs_usage"; exit ;;
43407   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43408   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43409     ac_cs_silent=: ;;
43410
43411   # This is an error.
43412   -*) { echo "$as_me: error: unrecognized option: $1
43413 Try \`$0 --help' for more information." >&2
43414    { (exit 1); exit 1; }; } ;;
43415
43416   *) ac_config_targets="$ac_config_targets $1"
43417      ac_need_defaults=false ;;
43418
43419   esac
43420   shift
43421 done
43422
43423 ac_configure_extra_args=
43424
43425 if $ac_cs_silent; then
43426   exec 6>/dev/null
43427   ac_configure_extra_args="$ac_configure_extra_args --silent"
43428 fi
43429
43430 _ACEOF
43431 cat >>$CONFIG_STATUS <<_ACEOF
43432 if \$ac_cs_recheck; then
43433   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43434   CONFIG_SHELL=$SHELL
43435   export CONFIG_SHELL
43436   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43437 fi
43438
43439 _ACEOF
43440 cat >>$CONFIG_STATUS <<\_ACEOF
43441 exec 5>>config.log
43442 {
43443   echo
43444   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43445 ## Running $as_me. ##
43446 _ASBOX
43447   echo "$ac_log"
43448 } >&5
43449
43450 _ACEOF
43451 cat >>$CONFIG_STATUS <<_ACEOF
43452 #
43453 # INIT-COMMANDS
43454 #
43455
43456
43457 # The HP-UX ksh and POSIX shell print the target directory to stdout
43458 # if CDPATH is set.
43459 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43460
43461 sed_quote_subst='$sed_quote_subst'
43462 double_quote_subst='$double_quote_subst'
43463 delay_variable_subst='$delay_variable_subst'
43464 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43465 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43466 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43467 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43468 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43469 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43470 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43471 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43472 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43473 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43474 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43475 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43476 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43477 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43478 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43479 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43480 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43481 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43482 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43483 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43484 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43485 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43486 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43487 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43488 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43489 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43490 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43491 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43492 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43493 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43494 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43495 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43496 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43497 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43498 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43499 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43500 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43501 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43502 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43503 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43504 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43505 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43506 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43507 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43508 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"`'
43509 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"`'
43510 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43511 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43512 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43513 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43514 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43515 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43516 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43517 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43518 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43519 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43520 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43521 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43522 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43523 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43524 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43525 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43526 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43527 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43528 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43529 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43530 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43531 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43532 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43533 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43534 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43535 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43536 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43537 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43538 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43539 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43540 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43541 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43542 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43543 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43544 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43545 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43546 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43547 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43548 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43549 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43550 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43551 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43552 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43553 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43554 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43555 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43556 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43557 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43558 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43559 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43560 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43561 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43562 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43563 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43564 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43565 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43566 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43567 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43568 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43569 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43570 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43571 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43572 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43573 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43574 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43575 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43576 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43577 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43578 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43579 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43580 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43581 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43582 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43583 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43584 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43585 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43586 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43587 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43588 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43589 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43590 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43591 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43592 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43593 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43594 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43595 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43596 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43597 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43598 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43599 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43600 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43601 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43602 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43603 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43604 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43605 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43606 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43607 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43608 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43609 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43610 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43611 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43612 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43613 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43614 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43615 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43616 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43617 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43618 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43619 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43620 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43621 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43622 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43623 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43624 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43625 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43626 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43627 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43628 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43629 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43630 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43631 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43632 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43633 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43634 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43635
43636 LTCC='$LTCC'
43637 LTCFLAGS='$LTCFLAGS'
43638 compiler='$compiler_DEFAULT'
43639
43640 # Quote evaled strings.
43641 for var in SED \
43642 GREP \
43643 EGREP \
43644 FGREP \
43645 LD \
43646 NM \
43647 LN_S \
43648 lt_SP2NL \
43649 lt_NL2SP \
43650 reload_flag \
43651 OBJDUMP \
43652 deplibs_check_method \
43653 file_magic_cmd \
43654 AR \
43655 AR_FLAGS \
43656 STRIP \
43657 RANLIB \
43658 CC \
43659 CFLAGS \
43660 compiler \
43661 lt_cv_sys_global_symbol_pipe \
43662 lt_cv_sys_global_symbol_to_cdecl \
43663 lt_cv_sys_global_symbol_to_c_name_address \
43664 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43665 SHELL \
43666 ECHO \
43667 lt_prog_compiler_no_builtin_flag \
43668 lt_prog_compiler_wl \
43669 lt_prog_compiler_pic \
43670 lt_prog_compiler_static \
43671 lt_cv_prog_compiler_c_o \
43672 need_locks \
43673 DSYMUTIL \
43674 NMEDIT \
43675 LIPO \
43676 OTOOL \
43677 OTOOL64 \
43678 shrext_cmds \
43679 export_dynamic_flag_spec \
43680 whole_archive_flag_spec \
43681 compiler_needs_object \
43682 with_gnu_ld \
43683 allow_undefined_flag \
43684 no_undefined_flag \
43685 hardcode_libdir_flag_spec \
43686 hardcode_libdir_flag_spec_ld \
43687 hardcode_libdir_separator \
43688 fix_srcfile_path \
43689 exclude_expsyms \
43690 include_expsyms \
43691 file_list_spec \
43692 variables_saved_for_relink \
43693 libname_spec \
43694 library_names_spec \
43695 soname_spec \
43696 finish_eval \
43697 old_striplib \
43698 striplib \
43699 compiler_lib_search_dirs \
43700 predep_objects \
43701 postdep_objects \
43702 predeps \
43703 postdeps \
43704 compiler_lib_search_path \
43705 LD_CXX \
43706 compiler_CXX \
43707 lt_prog_compiler_no_builtin_flag_CXX \
43708 lt_prog_compiler_wl_CXX \
43709 lt_prog_compiler_pic_CXX \
43710 lt_prog_compiler_static_CXX \
43711 lt_cv_prog_compiler_c_o_CXX \
43712 export_dynamic_flag_spec_CXX \
43713 whole_archive_flag_spec_CXX \
43714 compiler_needs_object_CXX \
43715 with_gnu_ld_CXX \
43716 allow_undefined_flag_CXX \
43717 no_undefined_flag_CXX \
43718 hardcode_libdir_flag_spec_CXX \
43719 hardcode_libdir_flag_spec_ld_CXX \
43720 hardcode_libdir_separator_CXX \
43721 fix_srcfile_path_CXX \
43722 exclude_expsyms_CXX \
43723 include_expsyms_CXX \
43724 file_list_spec_CXX \
43725 compiler_lib_search_dirs_CXX \
43726 predep_objects_CXX \
43727 postdep_objects_CXX \
43728 predeps_CXX \
43729 postdeps_CXX \
43730 compiler_lib_search_path_CXX; do
43731     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43732     *[\\\\\\\`\\"\\\$]*)
43733       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43734       ;;
43735     *)
43736       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43737       ;;
43738     esac
43739 done
43740
43741 # Double-quote double-evaled strings.
43742 for var in reload_cmds \
43743 old_postinstall_cmds \
43744 old_postuninstall_cmds \
43745 old_archive_cmds \
43746 extract_expsyms_cmds \
43747 old_archive_from_new_cmds \
43748 old_archive_from_expsyms_cmds \
43749 archive_cmds \
43750 archive_expsym_cmds \
43751 module_cmds \
43752 module_expsym_cmds \
43753 export_symbols_cmds \
43754 prelink_cmds \
43755 postinstall_cmds \
43756 postuninstall_cmds \
43757 finish_cmds \
43758 sys_lib_search_path_spec \
43759 sys_lib_dlsearch_path_spec \
43760 old_archive_cmds_CXX \
43761 old_archive_from_new_cmds_CXX \
43762 old_archive_from_expsyms_cmds_CXX \
43763 archive_cmds_CXX \
43764 archive_expsym_cmds_CXX \
43765 module_cmds_CXX \
43766 module_expsym_cmds_CXX \
43767 export_symbols_cmds_CXX \
43768 prelink_cmds_CXX; do
43769     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43770     *[\\\\\\\`\\"\\\$]*)
43771       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43772       ;;
43773     *)
43774       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43775       ;;
43776     esac
43777 done
43778
43779 # Fix-up fallback echo if it was mangled by the above quoting rules.
43780 case \$lt_ECHO in
43781 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43782   ;;
43783 esac
43784
43785 ac_aux_dir='$ac_aux_dir'
43786 xsi_shell='$xsi_shell'
43787 lt_shell_append='$lt_shell_append'
43788
43789 # See if we are running on zsh, and set the options which allow our
43790 # commands through without removal of \ escapes INIT.
43791 if test -n "\${ZSH_VERSION+set}" ; then
43792    setopt NO_GLOB_SUBST
43793 fi
43794
43795
43796     PACKAGE='$PACKAGE'
43797     VERSION='$VERSION'
43798     TIMESTAMP='$TIMESTAMP'
43799     RM='$RM'
43800     ofile='$ofile'
43801
43802
43803
43804
43805
43806 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43807     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43808     # from automake.
43809     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43810     # Capture the value of LINGUAS because we need it to compute CATALOGS.
43811     LINGUAS="${LINGUAS-%UNSET%}"
43812
43813
43814 _ACEOF
43815
43816 cat >>$CONFIG_STATUS <<\_ACEOF
43817
43818 # Handling of arguments.
43819 for ac_config_target in $ac_config_targets
43820 do
43821   case $ac_config_target in
43822     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43823     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43824     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43825     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43826     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43827     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43828     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43829     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43830     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43831     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43832     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43833     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43834     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43835     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43836     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43837     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43838     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43839     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43840     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43841     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43842     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43843     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43844     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43845     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43846     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43847     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43848     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43849     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43850     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43851     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43852     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43853     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43854     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43855     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43856     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43857     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43858     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43859     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43860     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43861     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43862     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43863     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43864     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43865     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43866     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43867     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43868     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43869     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43870     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43871     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43872     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43873     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43874     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43875     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43876     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43877     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43878     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43879     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43880     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43881     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43882     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43883     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43884     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43885     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43886     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43887     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43888     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43889     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43890     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43891     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43892     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43893     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43894     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43895     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43896     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43897     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43898     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43899     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43900     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43901     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43902     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43903     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43904     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43905     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43906     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43907     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43908     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43909     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43910     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43911     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43912     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43913     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43914     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43915     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43916     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43917     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43918     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43919     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43920     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43921     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43922     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43923     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43924     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43925     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43926     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43927     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43928     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43929     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43930     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43931     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43932     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43933     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43934     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43935     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43936     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43937     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43938     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43939     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43940     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43941     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43942
43943   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43944 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43945    { (exit 1); exit 1; }; };;
43946   esac
43947 done
43948
43949
43950 # If the user did not use the arguments to specify the items to instantiate,
43951 # then the envvar interface is used.  Set only those that are not.
43952 # We use the long form for the default assignment because of an extremely
43953 # bizarre bug on SunOS 4.1.3.
43954 if $ac_need_defaults; then
43955   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43956   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43957   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43958 fi
43959
43960 # Have a temporary directory for convenience.  Make it in the build tree
43961 # simply because there is no reason against having it here, and in addition,
43962 # creating and moving files from /tmp can sometimes cause problems.
43963 # Hook for its removal unless debugging.
43964 # Note that there is a small window in which the directory will not be cleaned:
43965 # after its creation but before its name has been assigned to `$tmp'.
43966 $debug ||
43967 {
43968   tmp=
43969   trap 'exit_status=$?
43970   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43971 ' 0
43972   trap '{ (exit 1); exit 1; }' 1 2 13 15
43973 }
43974 # Create a (secure) tmp directory for tmp files.
43975
43976 {
43977   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43978   test -n "$tmp" && test -d "$tmp"
43979 }  ||
43980 {
43981   tmp=./conf$$-$RANDOM
43982   (umask 077 && mkdir "$tmp")
43983 } ||
43984 {
43985    echo "$me: cannot create a temporary directory in ." >&2
43986    { (exit 1); exit 1; }
43987 }
43988
43989 #
43990 # Set up the sed scripts for CONFIG_FILES section.
43991 #
43992
43993 # No need to generate the scripts if there are no CONFIG_FILES.
43994 # This happens for instance when ./config.status config.h
43995 if test -n "$CONFIG_FILES"; then
43996
43997 _ACEOF
43998
43999 # Create sed commands to just substitute file output variables.
44000
44001 # Remaining file output variables are in a fragment that also has non-file
44002 # output varibles.
44003
44004
44005
44006 ac_delim='%!_!# '
44007 for ac_last_try in false false false false false :; do
44008   cat >conf$$subs.sed <<_ACEOF
44009 SHELL!$SHELL$ac_delim
44010 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44011 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44012 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44013 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44014 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44015 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44016 exec_prefix!$exec_prefix$ac_delim
44017 prefix!$prefix$ac_delim
44018 program_transform_name!$program_transform_name$ac_delim
44019 bindir!$bindir$ac_delim
44020 sbindir!$sbindir$ac_delim
44021 libexecdir!$libexecdir$ac_delim
44022 datarootdir!$datarootdir$ac_delim
44023 datadir!$datadir$ac_delim
44024 sysconfdir!$sysconfdir$ac_delim
44025 sharedstatedir!$sharedstatedir$ac_delim
44026 localstatedir!$localstatedir$ac_delim
44027 includedir!$includedir$ac_delim
44028 oldincludedir!$oldincludedir$ac_delim
44029 docdir!$docdir$ac_delim
44030 infodir!$infodir$ac_delim
44031 htmldir!$htmldir$ac_delim
44032 dvidir!$dvidir$ac_delim
44033 pdfdir!$pdfdir$ac_delim
44034 psdir!$psdir$ac_delim
44035 libdir!$libdir$ac_delim
44036 localedir!$localedir$ac_delim
44037 mandir!$mandir$ac_delim
44038 DEFS!$DEFS$ac_delim
44039 ECHO_C!$ECHO_C$ac_delim
44040 ECHO_N!$ECHO_N$ac_delim
44041 ECHO_T!$ECHO_T$ac_delim
44042 LIBS!$LIBS$ac_delim
44043 build_alias!$build_alias$ac_delim
44044 host_alias!$host_alias$ac_delim
44045 target_alias!$target_alias$ac_delim
44046 BUILD_DIR!$BUILD_DIR$ac_delim
44047 TOP_DIR!$TOP_DIR$ac_delim
44048 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44049 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44050 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44051 TRUEPRG!$TRUEPRG$ac_delim
44052 FALSEPRG!$FALSEPRG$ac_delim
44053 VERSION!$VERSION$ac_delim
44054 DATE!$DATE$ac_delim
44055 LSMDATE!$LSMDATE$ac_delim
44056 BACULA!$BACULA$ac_delim
44057 post_host!$post_host$ac_delim
44058 CC!$CC$ac_delim
44059 CFLAGS!$CFLAGS$ac_delim
44060 LDFLAGS!$LDFLAGS$ac_delim
44061 CPPFLAGS!$CPPFLAGS$ac_delim
44062 ac_ct_CC!$ac_ct_CC$ac_delim
44063 EXEEXT!$EXEEXT$ac_delim
44064 OBJEXT!$OBJEXT$ac_delim
44065 CXX!$CXX$ac_delim
44066 CXXFLAGS!$CXXFLAGS$ac_delim
44067 ac_ct_CXX!$ac_ct_CXX$ac_delim
44068 CPP!$CPP$ac_delim
44069 GREP!$GREP$ac_delim
44070 EGREP!$EGREP$ac_delim
44071 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44072 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44073 INSTALL_DATA!$INSTALL_DATA$ac_delim
44074 MV!$MV$ac_delim
44075 REMOVE!$REMOVE$ac_delim
44076 CP!$CP$ac_delim
44077 SED!$SED$ac_delim
44078 ECHO!$ECHO$ac_delim
44079 CMP!$CMP$ac_delim
44080 TBL!$TBL$ac_delim
44081 AR!$AR$ac_delim
44082 OPENSSL!$OPENSSL$ac_delim
44083 MTX!$MTX$ac_delim
44084 DD!$DD$ac_delim
44085 MKISOFS!$MKISOFS$ac_delim
44086 PYTHON!$PYTHON$ac_delim
44087 GROWISOFS!$GROWISOFS$ac_delim
44088 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44089 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44090 PKGCONFIG!$PKGCONFIG$ac_delim
44091 QMAKE!$QMAKE$ac_delim
44092 QMAKEQT4!$QMAKEQT4$ac_delim
44093 GMAKE!$GMAKE$ac_delim
44094 WXCONFIG!$WXCONFIG$ac_delim
44095 WXFLAGS!$WXFLAGS$ac_delim
44096 CDRECORD!$CDRECORD$ac_delim
44097 PIDOF!$PIDOF$ac_delim
44098 AWK!$AWK$ac_delim
44099 ARFLAGS!$ARFLAGS$ac_delim
44100 MAKE_SHELL!$MAKE_SHELL$ac_delim
44101 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44102 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44103 _ACEOF
44104
44105   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44106     break
44107   elif $ac_last_try; then
44108     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44109 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44110    { (exit 1); exit 1; }; }
44111   else
44112     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44113   fi
44114 done
44115
44116 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44117 if test -n "$ac_eof"; then
44118   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44119   ac_eof=`expr $ac_eof + 1`
44120 fi
44121
44122 cat >>$CONFIG_STATUS <<_ACEOF
44123 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44125 /^[      ]*@MCOMMON@[    ]*$/{
44126 r $MCOMMON
44127 d
44128 }
44129 _ACEOF
44130 sed '
44131 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44132 s/^/s,@/; s/!/@,|#_!!_#|/
44133 :n
44134 t n
44135 s/'"$ac_delim"'$/,g/; t
44136 s/$/\\/; p
44137 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44138 ' >>$CONFIG_STATUS <conf$$subs.sed
44139 rm -f conf$$subs.sed
44140 cat >>$CONFIG_STATUS <<_ACEOF
44141 CEOF$ac_eof
44142 _ACEOF
44143
44144
44145 ac_delim='%!_!# '
44146 for ac_last_try in false false false false false :; do
44147   cat >conf$$subs.sed <<_ACEOF
44148 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44149 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44150 LIBTOOL!$LIBTOOL$ac_delim
44151 build!$build$ac_delim
44152 build_cpu!$build_cpu$ac_delim
44153 build_vendor!$build_vendor$ac_delim
44154 build_os!$build_os$ac_delim
44155 host!$host$ac_delim
44156 host_cpu!$host_cpu$ac_delim
44157 host_vendor!$host_vendor$ac_delim
44158 host_os!$host_os$ac_delim
44159 FGREP!$FGREP$ac_delim
44160 LD!$LD$ac_delim
44161 DUMPBIN!$DUMPBIN$ac_delim
44162 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44163 NM!$NM$ac_delim
44164 LN_S!$LN_S$ac_delim
44165 OBJDUMP!$OBJDUMP$ac_delim
44166 STRIP!$STRIP$ac_delim
44167 RANLIB!$RANLIB$ac_delim
44168 lt_ECHO!$lt_ECHO$ac_delim
44169 DSYMUTIL!$DSYMUTIL$ac_delim
44170 NMEDIT!$NMEDIT$ac_delim
44171 LIPO!$LIPO$ac_delim
44172 OTOOL!$OTOOL$ac_delim
44173 OTOOL64!$OTOOL64$ac_delim
44174 CXXCPP!$CXXCPP$ac_delim
44175 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44176 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44177 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44178 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44179 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44180 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44181 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44182 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44183 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44184 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44185 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44186 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44187 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44188 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44189 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44190 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44191 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44192 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44193 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44194 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44195 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44196 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44197 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44198 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44199 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44200 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44201 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44202 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44203 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44204 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44205 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44206 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44207 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44208 SET_MAKE!$SET_MAKE$ac_delim
44209 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44210 USE_NLS!$USE_NLS$ac_delim
44211 MSGFMT!$MSGFMT$ac_delim
44212 GMSGFMT!$GMSGFMT$ac_delim
44213 XGETTEXT!$XGETTEXT$ac_delim
44214 MSGMERGE!$MSGMERGE$ac_delim
44215 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44216 LIBICONV!$LIBICONV$ac_delim
44217 LTLIBICONV!$LTLIBICONV$ac_delim
44218 INTLLIBS!$INTLLIBS$ac_delim
44219 LIBINTL!$LIBINTL$ac_delim
44220 LTLIBINTL!$LTLIBINTL$ac_delim
44221 POSUB!$POSUB$ac_delim
44222 GLIBC2!$GLIBC2$ac_delim
44223 ALLOCA!$ALLOCA$ac_delim
44224 GLIBC21!$GLIBC21$ac_delim
44225 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44226 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44227 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44228 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44229 INTLBISON!$INTLBISON$ac_delim
44230 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44231 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44232 CATOBJEXT!$CATOBJEXT$ac_delim
44233 DATADIRNAME!$DATADIRNAME$ac_delim
44234 INSTOBJEXT!$INSTOBJEXT$ac_delim
44235 GENCAT!$GENCAT$ac_delim
44236 INTLOBJS!$INTLOBJS$ac_delim
44237 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44238 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44239 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44240 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44241 GNOME_LIBS!$GNOME_LIBS$ac_delim
44242 GNOME_DIR!$GNOME_DIR$ac_delim
44243 BAT_DIR!$BAT_DIR$ac_delim
44244 QWT_INC!$QWT_INC$ac_delim
44245 _ACEOF
44246
44247   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44248     break
44249   elif $ac_last_try; then
44250     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44251 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44252    { (exit 1); exit 1; }; }
44253   else
44254     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44255   fi
44256 done
44257
44258 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44259 if test -n "$ac_eof"; then
44260   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44261   ac_eof=`expr $ac_eof + 1`
44262 fi
44263
44264 cat >>$CONFIG_STATUS <<_ACEOF
44265 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44267 _ACEOF
44268 sed '
44269 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44270 s/^/s,@/; s/!/@,|#_!!_#|/
44271 :n
44272 t n
44273 s/'"$ac_delim"'$/,g/; t
44274 s/$/\\/; p
44275 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44276 ' >>$CONFIG_STATUS <conf$$subs.sed
44277 rm -f conf$$subs.sed
44278 cat >>$CONFIG_STATUS <<_ACEOF
44279 CEOF$ac_eof
44280 _ACEOF
44281
44282
44283 ac_delim='%!_!# '
44284 for ac_last_try in false false false false false :; do
44285   cat >conf$$subs.sed <<_ACEOF
44286 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44287 QWT_LIB!$QWT_LIB$ac_delim
44288 QWT!$QWT$ac_delim
44289 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44290 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44291 WX_DIR!$WX_DIR$ac_delim
44292 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44293 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44294 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44295 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44296 STATIC_FD!$STATIC_FD$ac_delim
44297 STATIC_SD!$STATIC_SD$ac_delim
44298 STATIC_DIR!$STATIC_DIR$ac_delim
44299 STATIC_CONS!$STATIC_CONS$ac_delim
44300 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44301 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44302 ALL_DIRS!$ALL_DIRS$ac_delim
44303 DIRD_DIR!$DIRD_DIR$ac_delim
44304 DIR_TOOLS!$DIR_TOOLS$ac_delim
44305 STORED_DIR!$STORED_DIR$ac_delim
44306 CONS_INC!$CONS_INC$ac_delim
44307 CONS_OBJ!$CONS_OBJ$ac_delim
44308 CONS_SRC!$CONS_SRC$ac_delim
44309 CONS_LIBS!$CONS_LIBS$ac_delim
44310 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44311 READLINE_SRC!$READLINE_SRC$ac_delim
44312 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44313 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44314 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44315 OPENSSL_INC!$OPENSSL_INC$ac_delim
44316 working_dir!$working_dir$ac_delim
44317 archivedir!$archivedir$ac_delim
44318 basename!$basename$ac_delim
44319 hostname!$hostname$ac_delim
44320 scriptdir!$scriptdir$ac_delim
44321 bsrdir!$bsrdir$ac_delim
44322 logdir!$logdir$ac_delim
44323 plugindir!$plugindir$ac_delim
44324 dump_email!$dump_email$ac_delim
44325 job_email!$job_email$ac_delim
44326 smtp_host!$smtp_host$ac_delim
44327 piddir!$piddir$ac_delim
44328 subsysdir!$subsysdir$ac_delim
44329 baseport!$baseport$ac_delim
44330 dir_port!$dir_port$ac_delim
44331 fd_port!$fd_port$ac_delim
44332 sd_port!$sd_port$ac_delim
44333 dir_password!$dir_password$ac_delim
44334 fd_password!$fd_password$ac_delim
44335 sd_password!$sd_password$ac_delim
44336 mon_dir_password!$mon_dir_password$ac_delim
44337 mon_fd_password!$mon_fd_password$ac_delim
44338 mon_sd_password!$mon_sd_password$ac_delim
44339 db_name!$db_name$ac_delim
44340 db_user!$db_user$ac_delim
44341 db_password!$db_password$ac_delim
44342 db_port!$db_port$ac_delim
44343 dir_user!$dir_user$ac_delim
44344 dir_group!$dir_group$ac_delim
44345 sd_user!$sd_user$ac_delim
44346 sd_group!$sd_group$ac_delim
44347 fd_user!$fd_user$ac_delim
44348 fd_group!$fd_group$ac_delim
44349 SBINPERM!$SBINPERM$ac_delim
44350 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44351 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44352 SQL_BINDIR!$SQL_BINDIR$ac_delim
44353 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44354 uncomment_dbi!$uncomment_dbi$ac_delim
44355 DB_PROG!$DB_PROG$ac_delim
44356 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44357 cats!$cats$ac_delim
44358 DB_TYPE!$DB_TYPE$ac_delim
44359 GETCONF!$GETCONF$ac_delim
44360 XMKMF!$XMKMF$ac_delim
44361 X_CFLAGS!$X_CFLAGS$ac_delim
44362 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44363 X_LIBS!$X_LIBS$ac_delim
44364 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44365 LIBOBJS!$LIBOBJS$ac_delim
44366 FDLIBS!$FDLIBS$ac_delim
44367 DEBUG!$DEBUG$ac_delim
44368 DINCLUDE!$DINCLUDE$ac_delim
44369 DLIB!$DLIB$ac_delim
44370 DB_LIBS!$DB_LIBS$ac_delim
44371 WCFLAGS!$WCFLAGS$ac_delim
44372 WLDFLAGS!$WLDFLAGS$ac_delim
44373 WRAPLIBS!$WRAPLIBS$ac_delim
44374 OBJLIST!$OBJLIST$ac_delim
44375 TAPEDRIVE!$TAPEDRIVE$ac_delim
44376 PSCMD!$PSCMD$ac_delim
44377 WIN32!$WIN32$ac_delim
44378 MACOSX!$MACOSX$ac_delim
44379 DISTNAME!$DISTNAME$ac_delim
44380 DISTVER!$DISTVER$ac_delim
44381 LTLIBOBJS!$LTLIBOBJS$ac_delim
44382 _ACEOF
44383
44384   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
44385     break
44386   elif $ac_last_try; then
44387     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44388 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44389    { (exit 1); exit 1; }; }
44390   else
44391     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44392   fi
44393 done
44394
44395 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44396 if test -n "$ac_eof"; then
44397   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44398   ac_eof=`expr $ac_eof + 1`
44399 fi
44400
44401 cat >>$CONFIG_STATUS <<_ACEOF
44402 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44404 _ACEOF
44405 sed '
44406 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44407 s/^/s,@/; s/!/@,|#_!!_#|/
44408 :n
44409 t n
44410 s/'"$ac_delim"'$/,g/; t
44411 s/$/\\/; p
44412 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44413 ' >>$CONFIG_STATUS <conf$$subs.sed
44414 rm -f conf$$subs.sed
44415 cat >>$CONFIG_STATUS <<_ACEOF
44416 CEOF$ac_eof
44417 _ACEOF
44418
44419
44420 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44421 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44422 # trailing colons and then remove the whole line if VPATH becomes empty
44423 # (actually we leave an empty line to preserve line numbers).
44424 if test "x$srcdir" = x.; then
44425   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44426 s/:*\$(srcdir):*/:/
44427 s/:*\${srcdir}:*/:/
44428 s/:*@srcdir@:*/:/
44429 s/^\([^=]*=[     ]*\):*/\1/
44430 s/:*$//
44431 s/^[^=]*=[       ]*$//
44432 }'
44433 fi
44434
44435 cat >>$CONFIG_STATUS <<\_ACEOF
44436 fi # test -n "$CONFIG_FILES"
44437
44438
44439 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44440 do
44441   case $ac_tag in
44442   :[FHLC]) ac_mode=$ac_tag; continue;;
44443   esac
44444   case $ac_mode$ac_tag in
44445   :[FHL]*:*);;
44446   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44447 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44448    { (exit 1); exit 1; }; };;
44449   :[FH]-) ac_tag=-:-;;
44450   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44451   esac
44452   ac_save_IFS=$IFS
44453   IFS=:
44454   set x $ac_tag
44455   IFS=$ac_save_IFS
44456   shift
44457   ac_file=$1
44458   shift
44459
44460   case $ac_mode in
44461   :L) ac_source=$1;;
44462   :[FH])
44463     ac_file_inputs=
44464     for ac_f
44465     do
44466       case $ac_f in
44467       -) ac_f="$tmp/stdin";;
44468       *) # Look for the file first in the build tree, then in the source tree
44469          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44470          # because $ac_f cannot contain `:'.
44471          test -f "$ac_f" ||
44472            case $ac_f in
44473            [\\/$]*) false;;
44474            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44475            esac ||
44476            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44477 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44478    { (exit 1); exit 1; }; };;
44479       esac
44480       ac_file_inputs="$ac_file_inputs $ac_f"
44481     done
44482
44483     # Let's still pretend it is `configure' which instantiates (i.e., don't
44484     # use $as_me), people would be surprised to read:
44485     #    /* config.h.  Generated by config.status.  */
44486     configure_input="Generated from "`IFS=:
44487           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44488     if test x"$ac_file" != x-; then
44489       configure_input="$ac_file.  $configure_input"
44490       { echo "$as_me:$LINENO: creating $ac_file" >&5
44491 echo "$as_me: creating $ac_file" >&6;}
44492     fi
44493
44494     case $ac_tag in
44495     *:-:* | *:-) cat >"$tmp/stdin";;
44496     esac
44497     ;;
44498   esac
44499
44500   ac_dir=`$as_dirname -- "$ac_file" ||
44501 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44502          X"$ac_file" : 'X\(//\)[^/]' \| \
44503          X"$ac_file" : 'X\(//\)$' \| \
44504          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44505 echo X"$ac_file" |
44506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44507             s//\1/
44508             q
44509           }
44510           /^X\(\/\/\)[^/].*/{
44511             s//\1/
44512             q
44513           }
44514           /^X\(\/\/\)$/{
44515             s//\1/
44516             q
44517           }
44518           /^X\(\/\).*/{
44519             s//\1/
44520             q
44521           }
44522           s/.*/./; q'`
44523   { as_dir="$ac_dir"
44524   case $as_dir in #(
44525   -*) as_dir=./$as_dir;;
44526   esac
44527   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44528     as_dirs=
44529     while :; do
44530       case $as_dir in #(
44531       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44532       *) as_qdir=$as_dir;;
44533       esac
44534       as_dirs="'$as_qdir' $as_dirs"
44535       as_dir=`$as_dirname -- "$as_dir" ||
44536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44537          X"$as_dir" : 'X\(//\)[^/]' \| \
44538          X"$as_dir" : 'X\(//\)$' \| \
44539          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44540 echo X"$as_dir" |
44541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44542             s//\1/
44543             q
44544           }
44545           /^X\(\/\/\)[^/].*/{
44546             s//\1/
44547             q
44548           }
44549           /^X\(\/\/\)$/{
44550             s//\1/
44551             q
44552           }
44553           /^X\(\/\).*/{
44554             s//\1/
44555             q
44556           }
44557           s/.*/./; q'`
44558       test -d "$as_dir" && break
44559     done
44560     test -z "$as_dirs" || eval "mkdir $as_dirs"
44561   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44563    { (exit 1); exit 1; }; }; }
44564   ac_builddir=.
44565
44566 case "$ac_dir" in
44567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44568 *)
44569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44570   # A ".." for each directory in $ac_dir_suffix.
44571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44572   case $ac_top_builddir_sub in
44573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44575   esac ;;
44576 esac
44577 ac_abs_top_builddir=$ac_pwd
44578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44579 # for backward compatibility:
44580 ac_top_builddir=$ac_top_build_prefix
44581
44582 case $srcdir in
44583   .)  # We are building in place.
44584     ac_srcdir=.
44585     ac_top_srcdir=$ac_top_builddir_sub
44586     ac_abs_top_srcdir=$ac_pwd ;;
44587   [\\/]* | ?:[\\/]* )  # Absolute name.
44588     ac_srcdir=$srcdir$ac_dir_suffix;
44589     ac_top_srcdir=$srcdir
44590     ac_abs_top_srcdir=$srcdir ;;
44591   *) # Relative name.
44592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44593     ac_top_srcdir=$ac_top_build_prefix$srcdir
44594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44595 esac
44596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44597
44598
44599   case $ac_mode in
44600   :F)
44601   #
44602   # CONFIG_FILE
44603   #
44604
44605   case $INSTALL in
44606   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44607   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44608   esac
44609 _ACEOF
44610
44611 cat >>$CONFIG_STATUS <<\_ACEOF
44612 # If the template does not know about datarootdir, expand it.
44613 # FIXME: This hack should be removed a few years after 2.60.
44614 ac_datarootdir_hack=; ac_datarootdir_seen=
44615
44616 case `sed -n '/datarootdir/ {
44617   p
44618   q
44619 }
44620 /@datadir@/p
44621 /@docdir@/p
44622 /@infodir@/p
44623 /@localedir@/p
44624 /@mandir@/p
44625 ' $ac_file_inputs` in
44626 *datarootdir*) ac_datarootdir_seen=yes;;
44627 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44628   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44629 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44630 _ACEOF
44631 cat >>$CONFIG_STATUS <<_ACEOF
44632   ac_datarootdir_hack='
44633   s&@datadir@&$datadir&g
44634   s&@docdir@&$docdir&g
44635   s&@infodir@&$infodir&g
44636   s&@localedir@&$localedir&g
44637   s&@mandir@&$mandir&g
44638     s&\\\${datarootdir}&$datarootdir&g' ;;
44639 esac
44640 _ACEOF
44641
44642 # Neutralize VPATH when `$srcdir' = `.'.
44643 # Shell code in configure.ac might set extrasub.
44644 # FIXME: do we really want to maintain this feature?
44645 cat >>$CONFIG_STATUS <<_ACEOF
44646   sed "$ac_vpsub
44647 $extrasub
44648 _ACEOF
44649 cat >>$CONFIG_STATUS <<\_ACEOF
44650 :t
44651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44652 s&@configure_input@&$configure_input&;t t
44653 s&@top_builddir@&$ac_top_builddir_sub&;t t
44654 s&@srcdir@&$ac_srcdir&;t t
44655 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44656 s&@top_srcdir@&$ac_top_srcdir&;t t
44657 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44658 s&@builddir@&$ac_builddir&;t t
44659 s&@abs_builddir@&$ac_abs_builddir&;t t
44660 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44661 s&@INSTALL@&$ac_INSTALL&;t t
44662 $ac_datarootdir_hack
44663 " $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
44664
44665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44666   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44667   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44668   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44669 which seems to be undefined.  Please make sure it is defined." >&5
44670 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44671 which seems to be undefined.  Please make sure it is defined." >&2;}
44672
44673   rm -f "$tmp/stdin"
44674   case $ac_file in
44675   -) cat "$tmp/out"; rm -f "$tmp/out";;
44676   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44677   esac
44678  ;;
44679   :H)
44680   #
44681   # CONFIG_HEADER
44682   #
44683 _ACEOF
44684
44685 # Transform confdefs.h into a sed script `conftest.defines', that
44686 # substitutes the proper values into config.h.in to produce config.h.
44687 rm -f conftest.defines conftest.tail
44688 # First, append a space to every undef/define line, to ease matching.
44689 echo 's/$/ /' >conftest.defines
44690 # Then, protect against being on the right side of a sed subst, or in
44691 # an unquoted here document, in config.status.  If some macros were
44692 # called several times there might be several #defines for the same
44693 # symbol, which is useless.  But do not sort them, since the last
44694 # AC_DEFINE must be honored.
44695 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44696 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44697 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44698 # PARAMS is the parameter list in the macro definition--in most cases, it's
44699 # just an empty string.
44700 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44701 ac_dB='\\)[      (].*,\\1define\\2'
44702 ac_dC=' '
44703 ac_dD=' ,'
44704
44705 uniq confdefs.h |
44706   sed -n '
44707         t rset
44708         :rset
44709         s/^[     ]*#[    ]*define[       ][      ]*//
44710         t ok
44711         d
44712         :ok
44713         s/[\\&,]/\\&/g
44714         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44715         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44716   ' >>conftest.defines
44717
44718 # Remove the space that was appended to ease matching.
44719 # Then replace #undef with comments.  This is necessary, for
44720 # example, in the case of _POSIX_SOURCE, which is predefined and required
44721 # on some systems where configure will not decide to define it.
44722 # (The regexp can be short, since the line contains either #define or #undef.)
44723 echo 's/ $//
44724 s,^[     #]*u.*,/* & */,' >>conftest.defines
44725
44726 # Break up conftest.defines:
44727 ac_max_sed_lines=50
44728
44729 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44730 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44731 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44732 # et cetera.
44733 ac_in='$ac_file_inputs'
44734 ac_out='"$tmp/out1"'
44735 ac_nxt='"$tmp/out2"'
44736
44737 while :
44738 do
44739   # Write a here document:
44740     cat >>$CONFIG_STATUS <<_ACEOF
44741     # First, check the format of the line:
44742     cat >"\$tmp/defines.sed" <<\\CEOF
44743 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44744 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44745 b
44746 :def
44747 _ACEOF
44748   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44749   echo 'CEOF
44750     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44751   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44752   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44753   grep . conftest.tail >/dev/null || break
44754   rm -f conftest.defines
44755   mv conftest.tail conftest.defines
44756 done
44757 rm -f conftest.defines conftest.tail
44758
44759 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44760 cat >>$CONFIG_STATUS <<\_ACEOF
44761   if test x"$ac_file" != x-; then
44762     echo "/* $configure_input  */" >"$tmp/config.h"
44763     cat "$ac_result" >>"$tmp/config.h"
44764     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44765       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44766 echo "$as_me: $ac_file is unchanged" >&6;}
44767     else
44768       rm -f $ac_file
44769       mv "$tmp/config.h" $ac_file
44770     fi
44771   else
44772     echo "/* $configure_input  */"
44773     cat "$ac_result"
44774   fi
44775   rm -f "$tmp/out12"
44776  ;;
44777
44778   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44779 echo "$as_me: executing $ac_file commands" >&6;}
44780  ;;
44781   esac
44782
44783
44784   case $ac_file$ac_mode in
44785     "libtool":C)
44786
44787     # See if we are running on zsh, and set the options which allow our
44788     # commands through without removal of \ escapes.
44789     if test -n "${ZSH_VERSION+set}" ; then
44790       setopt NO_GLOB_SUBST
44791     fi
44792
44793     cfgfile="${ofile}T"
44794     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44795     $RM "$cfgfile"
44796
44797     cat <<_LT_EOF >> "$cfgfile"
44798 #! $SHELL
44799
44800 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44801 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44803 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44804 #
44805 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44806 #                 2006, 2007, 2008 Free Software Foundation, Inc.
44807 #   Written by Gordon Matzigkeit, 1996
44808 #
44809 #   This file is part of GNU Libtool.
44810 #
44811 # GNU Libtool is free software; you can redistribute it and/or
44812 # modify it under the terms of the GNU General Public License as
44813 # published by the Free Software Foundation; either version 2 of
44814 # the License, or (at your option) any later version.
44815 #
44816 # As a special exception to the GNU General Public License,
44817 # if you distribute this file as part of a program or library that
44818 # is built using GNU Libtool, you may include this file under the
44819 # same distribution terms that you use for the rest of that program.
44820 #
44821 # GNU Libtool is distributed in the hope that it will be useful,
44822 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44823 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44824 # GNU General Public License for more details.
44825 #
44826 # You should have received a copy of the GNU General Public License
44827 # along with GNU Libtool; see the file COPYING.  If not, a copy
44828 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44829 # obtained by writing to the Free Software Foundation, Inc.,
44830 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44831
44832
44833 # The names of the tagged configurations supported by this script.
44834 available_tags="CXX "
44835
44836 # ### BEGIN LIBTOOL CONFIG
44837
44838 # Which release of libtool.m4 was used?
44839 macro_version=$macro_version
44840 macro_revision=$macro_revision
44841
44842 # Whether or not to build shared libraries.
44843 build_libtool_libs=$enable_shared
44844
44845 # Whether or not to build static libraries.
44846 build_old_libs=$enable_static
44847
44848 # What type of objects to build.
44849 pic_mode=$pic_mode
44850
44851 # Whether or not to optimize for fast installation.
44852 fast_install=$enable_fast_install
44853
44854 # The host system.
44855 host_alias=$host_alias
44856 host=$host
44857 host_os=$host_os
44858
44859 # The build system.
44860 build_alias=$build_alias
44861 build=$build
44862 build_os=$build_os
44863
44864 # A sed program that does not truncate output.
44865 SED=$lt_SED
44866
44867 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44868 Xsed="\$SED -e 1s/^X//"
44869
44870 # A grep program that handles long lines.
44871 GREP=$lt_GREP
44872
44873 # An ERE matcher.
44874 EGREP=$lt_EGREP
44875
44876 # A literal string matcher.
44877 FGREP=$lt_FGREP
44878
44879 # A BSD- or MS-compatible name lister.
44880 NM=$lt_NM
44881
44882 # Whether we need soft or hard links.
44883 LN_S=$lt_LN_S
44884
44885 # What is the maximum length of a command?
44886 max_cmd_len=$max_cmd_len
44887
44888 # Object file suffix (normally "o").
44889 objext=$ac_objext
44890
44891 # Executable file suffix (normally "").
44892 exeext=$exeext
44893
44894 # whether the shell understands "unset".
44895 lt_unset=$lt_unset
44896
44897 # turn spaces into newlines.
44898 SP2NL=$lt_lt_SP2NL
44899
44900 # turn newlines into spaces.
44901 NL2SP=$lt_lt_NL2SP
44902
44903 # How to create reloadable object files.
44904 reload_flag=$lt_reload_flag
44905 reload_cmds=$lt_reload_cmds
44906
44907 # An object symbol dumper.
44908 OBJDUMP=$lt_OBJDUMP
44909
44910 # Method to check whether dependent libraries are shared objects.
44911 deplibs_check_method=$lt_deplibs_check_method
44912
44913 # Command to use when deplibs_check_method == "file_magic".
44914 file_magic_cmd=$lt_file_magic_cmd
44915
44916 # The archiver.
44917 AR=$lt_AR
44918 AR_FLAGS=$lt_AR_FLAGS
44919
44920 # A symbol stripping program.
44921 STRIP=$lt_STRIP
44922
44923 # Commands used to install an old-style archive.
44924 RANLIB=$lt_RANLIB
44925 old_postinstall_cmds=$lt_old_postinstall_cmds
44926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44927
44928 # A C compiler.
44929 LTCC=$lt_CC
44930
44931 # LTCC compiler flags.
44932 LTCFLAGS=$lt_CFLAGS
44933
44934 # Take the output of nm and produce a listing of raw symbols and C names.
44935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44936
44937 # Transform the output of nm in a proper C declaration.
44938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44939
44940 # Transform the output of nm in a C name address pair.
44941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44942
44943 # Transform the output of nm in a C name address pair when lib prefix is needed.
44944 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44945
44946 # The name of the directory that contains temporary libtool files.
44947 objdir=$objdir
44948
44949 # Shell to use when invoking shell scripts.
44950 SHELL=$lt_SHELL
44951
44952 # An echo program that does not interpret backslashes.
44953 ECHO=$lt_ECHO
44954
44955 # Used to examine libraries when file_magic_cmd begins with "file".
44956 MAGIC_CMD=$MAGIC_CMD
44957
44958 # Must we lock files when doing compilation?
44959 need_locks=$lt_need_locks
44960
44961 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44962 DSYMUTIL=$lt_DSYMUTIL
44963
44964 # Tool to change global to local symbols on Mac OS X.
44965 NMEDIT=$lt_NMEDIT
44966
44967 # Tool to manipulate fat objects and archives on Mac OS X.
44968 LIPO=$lt_LIPO
44969
44970 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44971 OTOOL=$lt_OTOOL
44972
44973 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44974 OTOOL64=$lt_OTOOL64
44975
44976 # Old archive suffix (normally "a").
44977 libext=$libext
44978
44979 # Shared library suffix (normally ".so").
44980 shrext_cmds=$lt_shrext_cmds
44981
44982 # The commands to extract the exported symbol list from a shared archive.
44983 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44984
44985 # Variables whose values should be saved in libtool wrapper scripts and
44986 # restored at link time.
44987 variables_saved_for_relink=$lt_variables_saved_for_relink
44988
44989 # Do we need the "lib" prefix for modules?
44990 need_lib_prefix=$need_lib_prefix
44991
44992 # Do we need a version for libraries?
44993 need_version=$need_version
44994
44995 # Library versioning type.
44996 version_type=$version_type
44997
44998 # Shared library runtime path variable.
44999 runpath_var=$runpath_var
45000
45001 # Shared library path variable.
45002 shlibpath_var=$shlibpath_var
45003
45004 # Is shlibpath searched before the hard-coded library search path?
45005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45006
45007 # Format of library name prefix.
45008 libname_spec=$lt_libname_spec
45009
45010 # List of archive names.  First name is the real one, the rest are links.
45011 # The last name is the one that the linker finds with -lNAME
45012 library_names_spec=$lt_library_names_spec
45013
45014 # The coded name of the library, if different from the real name.
45015 soname_spec=$lt_soname_spec
45016
45017 # Command to use after installation of a shared archive.
45018 postinstall_cmds=$lt_postinstall_cmds
45019
45020 # Command to use after uninstallation of a shared archive.
45021 postuninstall_cmds=$lt_postuninstall_cmds
45022
45023 # Commands used to finish a libtool library installation in a directory.
45024 finish_cmds=$lt_finish_cmds
45025
45026 # As "finish_cmds", except a single script fragment to be evaled but
45027 # not shown.
45028 finish_eval=$lt_finish_eval
45029
45030 # Whether we should hardcode library paths into libraries.
45031 hardcode_into_libs=$hardcode_into_libs
45032
45033 # Compile-time system search path for libraries.
45034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45035
45036 # Run-time system search path for libraries.
45037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45038
45039 # Whether dlopen is supported.
45040 dlopen_support=$enable_dlopen
45041
45042 # Whether dlopen of programs is supported.
45043 dlopen_self=$enable_dlopen_self
45044
45045 # Whether dlopen of statically linked programs is supported.
45046 dlopen_self_static=$enable_dlopen_self_static
45047
45048 # Commands to strip libraries.
45049 old_striplib=$lt_old_striplib
45050 striplib=$lt_striplib
45051
45052
45053 # The linker used to build libraries.
45054 LD=$lt_LD
45055
45056 # Commands used to build an old-style archive.
45057 old_archive_cmds=$lt_old_archive_cmds
45058
45059 # A language specific compiler.
45060 CC=$lt_compiler
45061
45062 # Is the compiler the GNU compiler?
45063 with_gcc=$GCC
45064
45065 # Compiler flag to turn off builtin functions.
45066 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45067
45068 # How to pass a linker flag through the compiler.
45069 wl=$lt_lt_prog_compiler_wl
45070
45071 # Additional compiler flags for building library objects.
45072 pic_flag=$lt_lt_prog_compiler_pic
45073
45074 # Compiler flag to prevent dynamic linking.
45075 link_static_flag=$lt_lt_prog_compiler_static
45076
45077 # Does compiler simultaneously support -c and -o options?
45078 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45079
45080 # Whether or not to add -lc for building shared libraries.
45081 build_libtool_need_lc=$archive_cmds_need_lc
45082
45083 # Whether or not to disallow shared libs when runtime libs are static.
45084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45085
45086 # Compiler flag to allow reflexive dlopens.
45087 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45088
45089 # Compiler flag to generate shared objects directly from archives.
45090 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45091
45092 # Whether the compiler copes with passing no objects directly.
45093 compiler_needs_object=$lt_compiler_needs_object
45094
45095 # Create an old-style archive from a shared archive.
45096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45097
45098 # Create a temporary old-style archive to link instead of a shared archive.
45099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45100
45101 # Commands used to build a shared archive.
45102 archive_cmds=$lt_archive_cmds
45103 archive_expsym_cmds=$lt_archive_expsym_cmds
45104
45105 # Commands used to build a loadable module if different from building
45106 # a shared archive.
45107 module_cmds=$lt_module_cmds
45108 module_expsym_cmds=$lt_module_expsym_cmds
45109
45110 # Whether we are building with GNU ld or not.
45111 with_gnu_ld=$lt_with_gnu_ld
45112
45113 # Flag that allows shared libraries with undefined symbols to be built.
45114 allow_undefined_flag=$lt_allow_undefined_flag
45115
45116 # Flag that enforces no undefined symbols.
45117 no_undefined_flag=$lt_no_undefined_flag
45118
45119 # Flag to hardcode \$libdir into a binary during linking.
45120 # This must work even if \$libdir does not exist
45121 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45122
45123 # If ld is used when linking, flag to hardcode \$libdir into a binary
45124 # during linking.  This must work even if \$libdir does not exist.
45125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45126
45127 # Whether we need a single "-rpath" flag with a separated argument.
45128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45129
45130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45131 # DIR into the resulting binary.
45132 hardcode_direct=$hardcode_direct
45133
45134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45135 # DIR into the resulting binary and the resulting library dependency is
45136 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45137 # library is relocated.
45138 hardcode_direct_absolute=$hardcode_direct_absolute
45139
45140 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45141 # into the resulting binary.
45142 hardcode_minus_L=$hardcode_minus_L
45143
45144 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45145 # into the resulting binary.
45146 hardcode_shlibpath_var=$hardcode_shlibpath_var
45147
45148 # Set to "yes" if building a shared library automatically hardcodes DIR
45149 # into the library and all subsequent libraries and executables linked
45150 # against it.
45151 hardcode_automatic=$hardcode_automatic
45152
45153 # Set to yes if linker adds runtime paths of dependent libraries
45154 # to runtime path list.
45155 inherit_rpath=$inherit_rpath
45156
45157 # Whether libtool must link a program against all its dependency libraries.
45158 link_all_deplibs=$link_all_deplibs
45159
45160 # Fix the shell variable \$srcfile for the compiler.
45161 fix_srcfile_path=$lt_fix_srcfile_path
45162
45163 # Set to "yes" if exported symbols are required.
45164 always_export_symbols=$always_export_symbols
45165
45166 # The commands to list exported symbols.
45167 export_symbols_cmds=$lt_export_symbols_cmds
45168
45169 # Symbols that should not be listed in the preloaded symbols.
45170 exclude_expsyms=$lt_exclude_expsyms
45171
45172 # Symbols that must always be exported.
45173 include_expsyms=$lt_include_expsyms
45174
45175 # Commands necessary for linking programs (against libraries) with templates.
45176 prelink_cmds=$lt_prelink_cmds
45177
45178 # Specify filename containing input files.
45179 file_list_spec=$lt_file_list_spec
45180
45181 # How to hardcode a shared library path into an executable.
45182 hardcode_action=$hardcode_action
45183
45184 # The directories searched by this compiler when creating a shared library.
45185 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45186
45187 # Dependencies to place before and after the objects being linked to
45188 # create a shared library.
45189 predep_objects=$lt_predep_objects
45190 postdep_objects=$lt_postdep_objects
45191 predeps=$lt_predeps
45192 postdeps=$lt_postdeps
45193
45194 # The library search path used internally by the compiler when linking
45195 # a shared library.
45196 compiler_lib_search_path=$lt_compiler_lib_search_path
45197
45198 # ### END LIBTOOL CONFIG
45199
45200 _LT_EOF
45201
45202   case $host_os in
45203   aix3*)
45204     cat <<\_LT_EOF >> "$cfgfile"
45205 # AIX sometimes has problems with the GCC collect2 program.  For some
45206 # reason, if we set the COLLECT_NAMES environment variable, the problems
45207 # vanish in a puff of smoke.
45208 if test "X${COLLECT_NAMES+set}" != Xset; then
45209   COLLECT_NAMES=
45210   export COLLECT_NAMES
45211 fi
45212 _LT_EOF
45213     ;;
45214   esac
45215
45216
45217 ltmain="$ac_aux_dir/ltmain.sh"
45218
45219
45220   # We use sed instead of cat because bash on DJGPP gets confused if
45221   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45222   # text mode, it properly converts lines to CR/LF.  This bash problem
45223   # is reportedly fixed, but why not run on old versions too?
45224   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45225     || (rm -f "$cfgfile"; exit 1)
45226
45227   case $xsi_shell in
45228   yes)
45229     cat << \_LT_EOF >> "$cfgfile"
45230
45231 # func_dirname file append nondir_replacement
45232 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45233 # otherwise set result to NONDIR_REPLACEMENT.
45234 func_dirname ()
45235 {
45236   case ${1} in
45237     */*) func_dirname_result="${1%/*}${2}" ;;
45238     *  ) func_dirname_result="${3}" ;;
45239   esac
45240 }
45241
45242 # func_basename file
45243 func_basename ()
45244 {
45245   func_basename_result="${1##*/}"
45246 }
45247
45248 # func_dirname_and_basename file append nondir_replacement
45249 # perform func_basename and func_dirname in a single function
45250 # call:
45251 #   dirname:  Compute the dirname of FILE.  If nonempty,
45252 #             add APPEND to the result, otherwise set result
45253 #             to NONDIR_REPLACEMENT.
45254 #             value returned in "$func_dirname_result"
45255 #   basename: Compute filename of FILE.
45256 #             value retuned in "$func_basename_result"
45257 # Implementation must be kept synchronized with func_dirname
45258 # and func_basename. For efficiency, we do not delegate to
45259 # those functions but instead duplicate the functionality here.
45260 func_dirname_and_basename ()
45261 {
45262   case ${1} in
45263     */*) func_dirname_result="${1%/*}${2}" ;;
45264     *  ) func_dirname_result="${3}" ;;
45265   esac
45266   func_basename_result="${1##*/}"
45267 }
45268
45269 # func_stripname prefix suffix name
45270 # strip PREFIX and SUFFIX off of NAME.
45271 # PREFIX and SUFFIX must not contain globbing or regex special
45272 # characters, hashes, percent signs, but SUFFIX may contain a leading
45273 # dot (in which case that matches only a dot).
45274 func_stripname ()
45275 {
45276   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45277   # positional parameters, so assign one to ordinary parameter first.
45278   func_stripname_result=${3}
45279   func_stripname_result=${func_stripname_result#"${1}"}
45280   func_stripname_result=${func_stripname_result%"${2}"}
45281 }
45282
45283 # func_opt_split
45284 func_opt_split ()
45285 {
45286   func_opt_split_opt=${1%%=*}
45287   func_opt_split_arg=${1#*=}
45288 }
45289
45290 # func_lo2o object
45291 func_lo2o ()
45292 {
45293   case ${1} in
45294     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45295     *)    func_lo2o_result=${1} ;;
45296   esac
45297 }
45298
45299 # func_xform libobj-or-source
45300 func_xform ()
45301 {
45302   func_xform_result=${1%.*}.lo
45303 }
45304
45305 # func_arith arithmetic-term...
45306 func_arith ()
45307 {
45308   func_arith_result=$(( $* ))
45309 }
45310
45311 # func_len string
45312 # STRING may not start with a hyphen.
45313 func_len ()
45314 {
45315   func_len_result=${#1}
45316 }
45317
45318 _LT_EOF
45319     ;;
45320   *) # Bourne compatible functions.
45321     cat << \_LT_EOF >> "$cfgfile"
45322
45323 # func_dirname file append nondir_replacement
45324 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45325 # otherwise set result to NONDIR_REPLACEMENT.
45326 func_dirname ()
45327 {
45328   # Extract subdirectory from the argument.
45329   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45330   if test "X$func_dirname_result" = "X${1}"; then
45331     func_dirname_result="${3}"
45332   else
45333     func_dirname_result="$func_dirname_result${2}"
45334   fi
45335 }
45336
45337 # func_basename file
45338 func_basename ()
45339 {
45340   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45341 }
45342
45343
45344 # func_stripname prefix suffix name
45345 # strip PREFIX and SUFFIX off of NAME.
45346 # PREFIX and SUFFIX must not contain globbing or regex special
45347 # characters, hashes, percent signs, but SUFFIX may contain a leading
45348 # dot (in which case that matches only a dot).
45349 # func_strip_suffix prefix name
45350 func_stripname ()
45351 {
45352   case ${2} in
45353     .*) func_stripname_result=`$ECHO "X${3}" \
45354            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45355     *)  func_stripname_result=`$ECHO "X${3}" \
45356            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45357   esac
45358 }
45359
45360 # sed scripts:
45361 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45362 my_sed_long_arg='1s/^-[^=]*=//'
45363
45364 # func_opt_split
45365 func_opt_split ()
45366 {
45367   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45368   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45369 }
45370
45371 # func_lo2o object
45372 func_lo2o ()
45373 {
45374   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45375 }
45376
45377 # func_xform libobj-or-source
45378 func_xform ()
45379 {
45380   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45381 }
45382
45383 # func_arith arithmetic-term...
45384 func_arith ()
45385 {
45386   func_arith_result=`expr "$@"`
45387 }
45388
45389 # func_len string
45390 # STRING may not start with a hyphen.
45391 func_len ()
45392 {
45393   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45394 }
45395
45396 _LT_EOF
45397 esac
45398
45399 case $lt_shell_append in
45400   yes)
45401     cat << \_LT_EOF >> "$cfgfile"
45402
45403 # func_append var value
45404 # Append VALUE to the end of shell variable VAR.
45405 func_append ()
45406 {
45407   eval "$1+=\$2"
45408 }
45409 _LT_EOF
45410     ;;
45411   *)
45412     cat << \_LT_EOF >> "$cfgfile"
45413
45414 # func_append var value
45415 # Append VALUE to the end of shell variable VAR.
45416 func_append ()
45417 {
45418   eval "$1=\$$1\$2"
45419 }
45420
45421 _LT_EOF
45422     ;;
45423   esac
45424
45425
45426   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45427     || (rm -f "$cfgfile"; exit 1)
45428
45429   mv -f "$cfgfile" "$ofile" ||
45430     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45431   chmod +x "$ofile"
45432
45433
45434     cat <<_LT_EOF >> "$ofile"
45435
45436 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45437
45438 # The linker used to build libraries.
45439 LD=$lt_LD_CXX
45440
45441 # Commands used to build an old-style archive.
45442 old_archive_cmds=$lt_old_archive_cmds_CXX
45443
45444 # A language specific compiler.
45445 CC=$lt_compiler_CXX
45446
45447 # Is the compiler the GNU compiler?
45448 with_gcc=$GCC_CXX
45449
45450 # Compiler flag to turn off builtin functions.
45451 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45452
45453 # How to pass a linker flag through the compiler.
45454 wl=$lt_lt_prog_compiler_wl_CXX
45455
45456 # Additional compiler flags for building library objects.
45457 pic_flag=$lt_lt_prog_compiler_pic_CXX
45458
45459 # Compiler flag to prevent dynamic linking.
45460 link_static_flag=$lt_lt_prog_compiler_static_CXX
45461
45462 # Does compiler simultaneously support -c and -o options?
45463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45464
45465 # Whether or not to add -lc for building shared libraries.
45466 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45467
45468 # Whether or not to disallow shared libs when runtime libs are static.
45469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45470
45471 # Compiler flag to allow reflexive dlopens.
45472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45473
45474 # Compiler flag to generate shared objects directly from archives.
45475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45476
45477 # Whether the compiler copes with passing no objects directly.
45478 compiler_needs_object=$lt_compiler_needs_object_CXX
45479
45480 # Create an old-style archive from a shared archive.
45481 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45482
45483 # Create a temporary old-style archive to link instead of a shared archive.
45484 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45485
45486 # Commands used to build a shared archive.
45487 archive_cmds=$lt_archive_cmds_CXX
45488 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45489
45490 # Commands used to build a loadable module if different from building
45491 # a shared archive.
45492 module_cmds=$lt_module_cmds_CXX
45493 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45494
45495 # Whether we are building with GNU ld or not.
45496 with_gnu_ld=$lt_with_gnu_ld_CXX
45497
45498 # Flag that allows shared libraries with undefined symbols to be built.
45499 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45500
45501 # Flag that enforces no undefined symbols.
45502 no_undefined_flag=$lt_no_undefined_flag_CXX
45503
45504 # Flag to hardcode \$libdir into a binary during linking.
45505 # This must work even if \$libdir does not exist
45506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45507
45508 # If ld is used when linking, flag to hardcode \$libdir into a binary
45509 # during linking.  This must work even if \$libdir does not exist.
45510 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45511
45512 # Whether we need a single "-rpath" flag with a separated argument.
45513 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45514
45515 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45516 # DIR into the resulting binary.
45517 hardcode_direct=$hardcode_direct_CXX
45518
45519 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45520 # DIR into the resulting binary and the resulting library dependency is
45521 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45522 # library is relocated.
45523 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45524
45525 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45526 # into the resulting binary.
45527 hardcode_minus_L=$hardcode_minus_L_CXX
45528
45529 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45530 # into the resulting binary.
45531 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45532
45533 # Set to "yes" if building a shared library automatically hardcodes DIR
45534 # into the library and all subsequent libraries and executables linked
45535 # against it.
45536 hardcode_automatic=$hardcode_automatic_CXX
45537
45538 # Set to yes if linker adds runtime paths of dependent libraries
45539 # to runtime path list.
45540 inherit_rpath=$inherit_rpath_CXX
45541
45542 # Whether libtool must link a program against all its dependency libraries.
45543 link_all_deplibs=$link_all_deplibs_CXX
45544
45545 # Fix the shell variable \$srcfile for the compiler.
45546 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45547
45548 # Set to "yes" if exported symbols are required.
45549 always_export_symbols=$always_export_symbols_CXX
45550
45551 # The commands to list exported symbols.
45552 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45553
45554 # Symbols that should not be listed in the preloaded symbols.
45555 exclude_expsyms=$lt_exclude_expsyms_CXX
45556
45557 # Symbols that must always be exported.
45558 include_expsyms=$lt_include_expsyms_CXX
45559
45560 # Commands necessary for linking programs (against libraries) with templates.
45561 prelink_cmds=$lt_prelink_cmds_CXX
45562
45563 # Specify filename containing input files.
45564 file_list_spec=$lt_file_list_spec_CXX
45565
45566 # How to hardcode a shared library path into an executable.
45567 hardcode_action=$hardcode_action_CXX
45568
45569 # The directories searched by this compiler when creating a shared library.
45570 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45571
45572 # Dependencies to place before and after the objects being linked to
45573 # create a shared library.
45574 predep_objects=$lt_predep_objects_CXX
45575 postdep_objects=$lt_postdep_objects_CXX
45576 predeps=$lt_predeps_CXX
45577 postdeps=$lt_postdeps_CXX
45578
45579 # The library search path used internally by the compiler when linking
45580 # a shared library.
45581 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45582
45583 # ### END LIBTOOL TAG CONFIG: CXX
45584 _LT_EOF
45585
45586  ;;
45587     "default-1":C)
45588     for ac_file in $CONFIG_FILES; do
45589       # Support "outfile[:infile[:infile...]]"
45590       case "$ac_file" in
45591         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45592       esac
45593       # PO directories have a Makefile.in generated from Makefile.in.in.
45594       case "$ac_file" in */Makefile.in)
45595         # Adjust a relative srcdir.
45596         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45597         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45598         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45599         # In autoconf-2.13 it is called $ac_given_srcdir.
45600         # In autoconf-2.50 it is called $srcdir.
45601         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45602         case "$ac_given_srcdir" in
45603           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45604           /*) top_srcdir="$ac_given_srcdir" ;;
45605           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45606         esac
45607         # Treat a directory as a PO directory if and only if it has a
45608         # POTFILES.in file. This allows packages to have multiple PO
45609         # directories under different names or in different locations.
45610         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45611           rm -f "$ac_dir/POTFILES"
45612           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45613           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45614           POMAKEFILEDEPS="POTFILES.in"
45615           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45616           # on $ac_dir but don't depend on user-specified configuration
45617           # parameters.
45618           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45619             # The LINGUAS file contains the set of available languages.
45620             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45621               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45622             fi
45623             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45624             # Hide the ALL_LINGUAS assigment from automake.
45625             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45626             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45627           else
45628             # The set of available languages was given in configure.in.
45629             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45630           fi
45631           # Compute POFILES
45632           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45633           # Compute UPDATEPOFILES
45634           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45635           # Compute DUMMYPOFILES
45636           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45637           # Compute GMOFILES
45638           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45639           case "$ac_given_srcdir" in
45640             .) srcdirpre= ;;
45641             *) srcdirpre='$(srcdir)/' ;;
45642           esac
45643           POFILES=
45644           UPDATEPOFILES=
45645           DUMMYPOFILES=
45646           GMOFILES=
45647           for lang in $ALL_LINGUAS; do
45648             POFILES="$POFILES $srcdirpre$lang.po"
45649             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45650             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45651             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45652           done
45653           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45654           # environment variable.
45655           INST_LINGUAS=
45656           if test -n "$ALL_LINGUAS"; then
45657             for presentlang in $ALL_LINGUAS; do
45658               useit=no
45659               if test "%UNSET%" != "$LINGUAS"; then
45660                 desiredlanguages="$LINGUAS"
45661               else
45662                 desiredlanguages="$ALL_LINGUAS"
45663               fi
45664               for desiredlang in $desiredlanguages; do
45665                 # Use the presentlang catalog if desiredlang is
45666                 #   a. equal to presentlang, or
45667                 #   b. a variant of presentlang (because in this case,
45668                 #      presentlang can be used as a fallback for messages
45669                 #      which are not translated in the desiredlang catalog).
45670                 case "$desiredlang" in
45671                   "$presentlang"*) useit=yes;;
45672                 esac
45673               done
45674               if test $useit = yes; then
45675                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45676               fi
45677             done
45678           fi
45679           CATALOGS=
45680           if test -n "$INST_LINGUAS"; then
45681             for lang in $INST_LINGUAS; do
45682               CATALOGS="$CATALOGS $lang.gmo"
45683             done
45684           fi
45685           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45686           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"
45687           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45688             if test -f "$f"; then
45689               case "$f" in
45690                 *.orig | *.bak | *~) ;;
45691                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45692               esac
45693             fi
45694           done
45695         fi
45696         ;;
45697       esac
45698     done ;;
45699     "default":C)
45700  ;;
45701
45702   esac
45703 done # for ac_tag
45704
45705
45706 { (exit 0); exit 0; }
45707 _ACEOF
45708 chmod +x $CONFIG_STATUS
45709 ac_clean_files=$ac_clean_files_save
45710
45711
45712 # configure is writing to config.log, and then calls config.status.
45713 # config.status does its own redirection, appending to config.log.
45714 # Unfortunately, on DOS this fails, as config.log is still kept open
45715 # by configure, so config.status won't be able to write to it; its
45716 # output is simply discarded.  So we exec the FD to /dev/null,
45717 # effectively closing config.log, so it can be properly (re)opened and
45718 # appended to by config.status.  When coming back to configure, we
45719 # need to make the FD available again.
45720 if test "$no_create" != yes; then
45721   ac_cs_success=:
45722   ac_config_status_args=
45723   test "$silent" = yes &&
45724     ac_config_status_args="$ac_config_status_args --quiet"
45725   exec 5>/dev/null
45726   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45727   exec 5>>config.log
45728   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45729   # would make configure fail if this is the last instruction.
45730   $ac_cs_success || { (exit 1); exit 1; }
45731 fi
45732
45733
45734 if test "${support_bat}" = "yes" ; then
45735    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45736       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
45737 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
45738    { (exit 1); exit 1; }; }
45739    fi
45740
45741    QMAKEBIN="qmake"
45742
45743    if test "x$QMAKEQT4" != "xnone"; then
45744        QMAKEBIN=qmake-qt4
45745    fi
45746
45747    cd src/qt-console
45748    echo "Creating bat Makefile"
45749    touch bat
45750    chmod 755 bat
45751    $QMAKEBIN
45752    make clean
45753    cd ${BUILD_DIR}
45754 fi
45755
45756 if test X"$GCC" = "Xyes" ; then
45757   echo "Doing make of dependencies"
45758   ${MAKE:-make} depend
45759 fi
45760
45761 cd src/qt-console
45762 chmod 755 install_conf_file build-depkgs-qt-console
45763 cd ${BUILD_DIR}
45764
45765 cd scripts
45766 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45767 chmod 755 dvd-handler dvd-simulator
45768 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45769 cd ..
45770
45771 c=updatedb
45772 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45773 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45774
45775 c=src/cats
45776
45777 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
45778 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
45779
45780 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
45781 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
45782
45783 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
45784 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
45785
45786 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
45787 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
45788
45789 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
45790 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
45791
45792 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
45793 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
45794
45795 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45796 chmod 755 $c/sqlite
45797 chmod 755 $c/mysql
45798
45799 chmod 755 src/win32/build-depkgs-mingw32
45800
45801 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45802    largefile_support="yes"
45803 fi
45804
45805 if test X"$GCC" = "Xyes" ; then
45806                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45807    if test "x${CCVERSION}" = "x" ; then
45808       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45809    fi
45810    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45811    if test x"${CXXVERSION}" = x ; then
45812       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45813    fi
45814 fi
45815
45816 # clean up any old junk
45817 echo " "
45818 echo "Cleaning up"
45819 echo " "
45820 make clean
45821
45822 if test "x${db_type}" = "xInternal" ; then
45823    echo " "
45824    echo " "
45825    echo "You have not specified either --enable-client-only or one of the"
45826    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45827    echo "  This is not permitted. Please reconfigure."
45828    echo " "
45829    echo "Aborting the configuration ..."
45830    echo " "
45831    echo " "
45832    exit 1
45833 fi
45834
45835 echo "
45836 Configuration on `date`:
45837
45838    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45839    Bacula version:          ${BACULA} ${VERSION} (${DATE})
45840    Source code location:    ${srcdir}
45841    Install binaries:        ${sbindir}
45842    Install libraries:       ${libdir}
45843    Install config files:    ${sysconfdir}
45844    Scripts directory:       ${scriptdir}
45845    Archive directory:       ${archivedir}
45846    Working directory:       ${working_dir}
45847    PID directory:           ${piddir}
45848    Subsys directory:        ${subsysdir}
45849    Man directory:           ${mandir}
45850    Data directory:          ${datarootdir}
45851    Plugin directory:        ${plugindir}
45852    C Compiler:              ${CC} ${CCVERSION}
45853    C++ Compiler:            ${CXX} ${CXXVERSION}
45854    Compiler flags:          ${WCFLAGS} ${CFLAGS}
45855    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
45856    Libraries:               ${LIBS}
45857    Statically Linked Tools: ${support_static_tools}
45858    Statically Linked FD:    ${support_static_fd}
45859    Statically Linked SD:    ${support_static_sd}
45860    Statically Linked DIR:   ${support_static_dir}
45861    Statically Linked CONS:  ${support_static_cons}
45862    Database type:           ${db_type}
45863    Database port:           ${db_port}
45864    Database lib:            ${DB_LIBS}
45865    Database name:           ${db_name}
45866    Database user:           ${db_user}
45867
45868    Job Output Email:        ${job_email}
45869    Traceback Email:         ${dump_email}
45870    SMTP Host Address:       ${smtp_host}
45871
45872    Director Port:           ${dir_port}
45873    File daemon Port:        ${fd_port}
45874    Storage daemon Port:     ${sd_port}
45875
45876    Director User:           ${dir_user}
45877    Director Group:          ${dir_group}
45878    Storage Daemon User:     ${sd_user}
45879    Storage DaemonGroup:     ${sd_group}
45880    File Daemon User:        ${fd_user}
45881    File Daemon Group:       ${fd_group}
45882
45883    SQL binaries Directory   ${SQL_BINDIR}
45884
45885    Large file support:      $largefile_support
45886    Bacula conio support:    ${got_conio} ${CONS_LIBS}
45887    readline support:        ${got_readline} ${PRTREADLINE_SRC}
45888    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
45889    TLS support:             ${support_tls}
45890    Encryption support:      ${support_crypto}
45891    ZLIB support:            ${have_zlib}
45892    enable-smartalloc:       ${support_smartalloc}
45893    enable-lockmgr:          ${support_lockmgr}
45894    bat support:             ${support_bat} ${QWT_LDFLAGS}
45895    enable-gnome:            ${support_gnome} ${gnome_version}
45896    enable-bwx-console:      ${support_wx_console} ${wx_version}
45897    enable-tray-monitor:     ${support_tray_monitor}
45898    client-only:             ${build_client_only}
45899    build-dird:              ${build_dird}
45900    build-stored:            ${build_stored}
45901    ACL support:             ${have_acl}
45902    XATTR support:           ${have_xattr}
45903    Python support:          ${support_python} ${PYTHON_LIBS}
45904    Batch insert enabled:    ${support_batch_insert}
45905
45906   " > config.out
45907
45908 cat config.out