]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Apply patch from Marco van Wieringen <mvw@planets.elm.net>
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 TRUEPRG
805 FALSEPRG
806 VERSION
807 DATE
808 LSMDATE
809 BACULA
810 post_host
811 CC
812 CFLAGS
813 LDFLAGS
814 CPPFLAGS
815 ac_ct_CC
816 EXEEXT
817 OBJEXT
818 CXX
819 CXXFLAGS
820 ac_ct_CXX
821 CPP
822 GREP
823 EGREP
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 MV
828 REMOVE
829 CP
830 SED
831 ECHO
832 CMP
833 TBL
834 AR
835 OPENSSL
836 MTX
837 DD
838 MKISOFS
839 PYTHON
840 GROWISOFS
841 DVDRWMEDIAINFO
842 DVDRWFORMAT
843 PKGCONFIG
844 QMAKE
845 QMAKEQT4
846 WXCONFIG
847 WXFLAGS
848 CDRECORD
849 PIDOF
850 AWK
851 ARFLAGS
852 MAKE_SHELL
853 LOCAL_LIBS
854 LOCAL_CFLAGS
855 LOCAL_LDFLAGS
856 LOCAL_DEFS
857 LIBTOOL
858 build
859 build_cpu
860 build_vendor
861 build_os
862 host
863 host_cpu
864 host_vendor
865 host_os
866 FGREP
867 LD
868 DUMPBIN
869 ac_ct_DUMPBIN
870 NM
871 LN_S
872 OBJDUMP
873 STRIP
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 CXXCPP
882 DEFAULT_OBJECT_TYPE
883 DEFAULT_ARCHIVE_TYPE
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
887 LIBTOOL_CLEAN_TARGET
888 QMAKE_LIBTOOL
889 HAVE_SUN_OS_TRUE
890 HAVE_SUN_OS_FALSE
891 HAVE_OSF1_OS_TRUE
892 HAVE_OSF1_OS_FALSE
893 HAVE_AIX_OS_TRUE
894 HAVE_AIX_OS_FALSE
895 HAVE_HPUX_OS_TRUE
896 HAVE_HPUX_OS_FALSE
897 HAVE_LINUX_OS_TRUE
898 HAVE_LINUX_OS_FALSE
899 HAVE_FREEBSD_OS_TRUE
900 HAVE_FREEBSD_OS_FALSE
901 HAVE_NETBSD_OS_TRUE
902 HAVE_NETBSD_OS_FALSE
903 HAVE_OPENBSD_OS_TRUE
904 HAVE_OPENBSD_OS_FALSE
905 HAVE_BSDI_OS_TRUE
906 HAVE_BSDI_OS_FALSE
907 HAVE_SGI_OS_TRUE
908 HAVE_SGI_OS_FALSE
909 HAVE_IRIX_OS_TRUE
910 HAVE_IRIX_OS_FALSE
911 HAVE_DARWIN_OS_TRUE
912 HAVE_DARWIN_OS_FALSE
913 SET_MAKE
914 MKINSTALLDIRS
915 USE_NLS
916 MSGFMT
917 GMSGFMT
918 XGETTEXT
919 MSGMERGE
920 INTL_MACOSX_LIBS
921 LIBICONV
922 LTLIBICONV
923 INTLLIBS
924 LIBINTL
925 LTLIBINTL
926 POSUB
927 GLIBC2
928 ALLOCA
929 GLIBC21
930 HAVE_POSIX_PRINTF
931 HAVE_ASPRINTF
932 HAVE_SNPRINTF
933 HAVE_WPRINTF
934 INTLBISON
935 BUILD_INCLUDED_LIBINTL
936 USE_INCLUDED_LIBINTL
937 CATOBJEXT
938 DATADIRNAME
939 INSTOBJEXT
940 GENCAT
941 INTLOBJS
942 INTL_LIBTOOL_SUFFIX_PREFIX
943 GNOME_INCLUDEDIR
944 GNOMEUI_LIBS
945 GNOME_LIBDIR
946 GNOME_LIBS
947 GNOME_DIR
948 BAT_DIR
949 QWT_INC
950 QWT_LDFLAGS
951 QWT_LIB
952 QWT
953 WXCONS_CPPFLAGS
954 WXCONS_LDFLAGS
955 WX_DIR
956 TRAY_MONITOR_CPPFLAGS
957 TRAY_MONITOR_LDFLAGS
958 TRAY_MONITOR_DIR
959 TTOOL_LDFLAGS
960 STATIC_FD
961 STATIC_SD
962 STATIC_DIR
963 STATIC_CONS
964 STATIC_GNOME_CONS
965 STATIC_WX_CONS
966 ALL_DIRS
967 DIRD_DIR
968 DIR_TOOLS
969 STORED_DIR
970 CONS_INC
971 CONS_OBJ
972 CONS_SRC
973 CONS_LIBS
974 CONS_LDFLAGS
975 READLINE_SRC
976 PYTHON_LIBS
977 PYTHON_INCDIR
978 OPENSSL_LIBS
979 OPENSSL_INC
980 working_dir
981 archivedir
982 scriptdir
983 plugindir
984 dump_email
985 job_email
986 smtp_host
987 piddir
988 subsysdir
989 baseport
990 dir_port
991 fd_port
992 sd_port
993 dir_password
994 fd_password
995 sd_password
996 mon_dir_password
997 mon_fd_password
998 mon_sd_password
999 db_name
1000 db_user
1001 db_password
1002 db_port
1003 dir_user
1004 dir_group
1005 sd_user
1006 sd_group
1007 fd_user
1008 fd_group
1009 SBINPERM
1010 SQL_LFLAGS
1011 SQL_INCLUDE
1012 SQL_BINDIR
1013 DBI_DBD_DRIVERDIR
1014 uncomment_dbi
1015 DB_PROG
1016 DB_PROG_LIB
1017 cats
1018 DB_TYPE
1019 GETCONF
1020 XMKMF
1021 X_CFLAGS
1022 X_PRE_LIBS
1023 X_LIBS
1024 X_EXTRA_LIBS
1025 LIBOBJS
1026 FDLIBS
1027 DEBUG
1028 DINCLUDE
1029 DLIB
1030 DB_LIBS
1031 WCFLAGS
1032 WLDFLAGS
1033 WRAPLIBS
1034 OBJLIST
1035 hostname
1036 TAPEDRIVE
1037 PSCMD
1038 WIN32
1039 MACOSX
1040 DISTNAME
1041 DISTVER
1042 LTLIBOBJS'
1043 ac_subst_files='MCOMMON'
1044       ac_precious_vars='build_alias
1045 host_alias
1046 target_alias
1047 CC
1048 CFLAGS
1049 LDFLAGS
1050 LIBS
1051 CPPFLAGS
1052 CXX
1053 CXXFLAGS
1054 CCC
1055 CPP
1056 WXCONFIG
1057 WXFLAGS
1058 CXXCPP
1059 XMKMF'
1060
1061
1062 # Initialize some variables set by options.
1063 ac_init_help=
1064 ac_init_version=false
1065 # The variables have the same names as the options, with
1066 # dashes changed to underlines.
1067 cache_file=/dev/null
1068 exec_prefix=NONE
1069 no_create=
1070 no_recursion=
1071 prefix=NONE
1072 program_prefix=NONE
1073 program_suffix=NONE
1074 program_transform_name=s,x,x,
1075 silent=
1076 site=
1077 srcdir=
1078 verbose=
1079 x_includes=NONE
1080 x_libraries=NONE
1081
1082 # Installation directory options.
1083 # These are left unexpanded so users can "make install exec_prefix=/foo"
1084 # and all the variables that are supposed to be based on exec_prefix
1085 # by default will actually change.
1086 # Use braces instead of parens because sh, perl, etc. also accept them.
1087 # (The list follows the same order as the GNU Coding Standards.)
1088 bindir='${exec_prefix}/bin'
1089 sbindir='${exec_prefix}/sbin'
1090 libexecdir='${exec_prefix}/libexec'
1091 datarootdir='${prefix}/share'
1092 datadir='${datarootdir}'
1093 sysconfdir='${prefix}/etc'
1094 sharedstatedir='${prefix}/com'
1095 localstatedir='${prefix}/var'
1096 includedir='${prefix}/include'
1097 oldincludedir='/usr/include'
1098 docdir='${datarootdir}/doc/${PACKAGE}'
1099 infodir='${datarootdir}/info'
1100 htmldir='${docdir}'
1101 dvidir='${docdir}'
1102 pdfdir='${docdir}'
1103 psdir='${docdir}'
1104 libdir='${exec_prefix}/lib'
1105 localedir='${datarootdir}/locale'
1106 mandir='${datarootdir}/man'
1107
1108 ac_prev=
1109 ac_dashdash=
1110 for ac_option
1111 do
1112   # If the previous option needs an argument, assign it.
1113   if test -n "$ac_prev"; then
1114     eval $ac_prev=\$ac_option
1115     ac_prev=
1116     continue
1117   fi
1118
1119   case $ac_option in
1120   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1121   *)    ac_optarg=yes ;;
1122   esac
1123
1124   # Accept the important Cygnus configure options, so we can diagnose typos.
1125
1126   case $ac_dashdash$ac_option in
1127   --)
1128     ac_dashdash=yes ;;
1129
1130   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1131     ac_prev=bindir ;;
1132   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1133     bindir=$ac_optarg ;;
1134
1135   -build | --build | --buil | --bui | --bu)
1136     ac_prev=build_alias ;;
1137   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1138     build_alias=$ac_optarg ;;
1139
1140   -cache-file | --cache-file | --cache-fil | --cache-fi \
1141   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1142     ac_prev=cache_file ;;
1143   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1144   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1145     cache_file=$ac_optarg ;;
1146
1147   --config-cache | -C)
1148     cache_file=config.cache ;;
1149
1150   -datadir | --datadir | --datadi | --datad)
1151     ac_prev=datadir ;;
1152   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1153     datadir=$ac_optarg ;;
1154
1155   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1156   | --dataroo | --dataro | --datar)
1157     ac_prev=datarootdir ;;
1158   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1159   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1160     datarootdir=$ac_optarg ;;
1161
1162   -disable-* | --disable-*)
1163     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1167    { (exit 1); exit 1; }; }
1168     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1169     eval enable_$ac_feature=no ;;
1170
1171   -docdir | --docdir | --docdi | --doc | --do)
1172     ac_prev=docdir ;;
1173   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1174     docdir=$ac_optarg ;;
1175
1176   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177     ac_prev=dvidir ;;
1178   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1179     dvidir=$ac_optarg ;;
1180
1181   -enable-* | --enable-*)
1182     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1186    { (exit 1); exit 1; }; }
1187     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1188     eval enable_$ac_feature=\$ac_optarg ;;
1189
1190   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1191   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1192   | --exec | --exe | --ex)
1193     ac_prev=exec_prefix ;;
1194   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1195   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1196   | --exec=* | --exe=* | --ex=*)
1197     exec_prefix=$ac_optarg ;;
1198
1199   -gas | --gas | --ga | --g)
1200     # Obsolete; use --with-gas.
1201     with_gas=yes ;;
1202
1203   -help | --help | --hel | --he | -h)
1204     ac_init_help=long ;;
1205   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1206     ac_init_help=recursive ;;
1207   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1208     ac_init_help=short ;;
1209
1210   -host | --host | --hos | --ho)
1211     ac_prev=host_alias ;;
1212   -host=* | --host=* | --hos=* | --ho=*)
1213     host_alias=$ac_optarg ;;
1214
1215   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1216     ac_prev=htmldir ;;
1217   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1218   | --ht=*)
1219     htmldir=$ac_optarg ;;
1220
1221   -includedir | --includedir | --includedi | --included | --include \
1222   | --includ | --inclu | --incl | --inc)
1223     ac_prev=includedir ;;
1224   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1225   | --includ=* | --inclu=* | --incl=* | --inc=*)
1226     includedir=$ac_optarg ;;
1227
1228   -infodir | --infodir | --infodi | --infod | --info | --inf)
1229     ac_prev=infodir ;;
1230   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1231     infodir=$ac_optarg ;;
1232
1233   -libdir | --libdir | --libdi | --libd)
1234     ac_prev=libdir ;;
1235   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1236     libdir=$ac_optarg ;;
1237
1238   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1239   | --libexe | --libex | --libe)
1240     ac_prev=libexecdir ;;
1241   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1242   | --libexe=* | --libex=* | --libe=*)
1243     libexecdir=$ac_optarg ;;
1244
1245   -localedir | --localedir | --localedi | --localed | --locale)
1246     ac_prev=localedir ;;
1247   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1248     localedir=$ac_optarg ;;
1249
1250   -localstatedir | --localstatedir | --localstatedi | --localstated \
1251   | --localstate | --localstat | --localsta | --localst | --locals)
1252     ac_prev=localstatedir ;;
1253   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1254   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1255     localstatedir=$ac_optarg ;;
1256
1257   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1258     ac_prev=mandir ;;
1259   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1260     mandir=$ac_optarg ;;
1261
1262   -nfp | --nfp | --nf)
1263     # Obsolete; use --without-fp.
1264     with_fp=no ;;
1265
1266   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1267   | --no-cr | --no-c | -n)
1268     no_create=yes ;;
1269
1270   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1271   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1272     no_recursion=yes ;;
1273
1274   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1275   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1276   | --oldin | --oldi | --old | --ol | --o)
1277     ac_prev=oldincludedir ;;
1278   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1279   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1280   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1281     oldincludedir=$ac_optarg ;;
1282
1283   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1284     ac_prev=prefix ;;
1285   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1286     prefix=$ac_optarg ;;
1287
1288   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1289   | --program-pre | --program-pr | --program-p)
1290     ac_prev=program_prefix ;;
1291   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1292   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1293     program_prefix=$ac_optarg ;;
1294
1295   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1296   | --program-suf | --program-su | --program-s)
1297     ac_prev=program_suffix ;;
1298   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1299   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1300     program_suffix=$ac_optarg ;;
1301
1302   -program-transform-name | --program-transform-name \
1303   | --program-transform-nam | --program-transform-na \
1304   | --program-transform-n | --program-transform- \
1305   | --program-transform | --program-transfor \
1306   | --program-transfo | --program-transf \
1307   | --program-trans | --program-tran \
1308   | --progr-tra | --program-tr | --program-t)
1309     ac_prev=program_transform_name ;;
1310   -program-transform-name=* | --program-transform-name=* \
1311   | --program-transform-nam=* | --program-transform-na=* \
1312   | --program-transform-n=* | --program-transform-=* \
1313   | --program-transform=* | --program-transfor=* \
1314   | --program-transfo=* | --program-transf=* \
1315   | --program-trans=* | --program-tran=* \
1316   | --progr-tra=* | --program-tr=* | --program-t=*)
1317     program_transform_name=$ac_optarg ;;
1318
1319   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1320     ac_prev=pdfdir ;;
1321   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1322     pdfdir=$ac_optarg ;;
1323
1324   -psdir | --psdir | --psdi | --psd | --ps)
1325     ac_prev=psdir ;;
1326   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1327     psdir=$ac_optarg ;;
1328
1329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330   | -silent | --silent | --silen | --sile | --sil)
1331     silent=yes ;;
1332
1333   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1334     ac_prev=sbindir ;;
1335   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1336   | --sbi=* | --sb=*)
1337     sbindir=$ac_optarg ;;
1338
1339   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341   | --sharedst | --shareds | --shared | --share | --shar \
1342   | --sha | --sh)
1343     ac_prev=sharedstatedir ;;
1344   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1347   | --sha=* | --sh=*)
1348     sharedstatedir=$ac_optarg ;;
1349
1350   -site | --site | --sit)
1351     ac_prev=site ;;
1352   -site=* | --site=* | --sit=*)
1353     site=$ac_optarg ;;
1354
1355   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1356     ac_prev=srcdir ;;
1357   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358     srcdir=$ac_optarg ;;
1359
1360   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361   | --syscon | --sysco | --sysc | --sys | --sy)
1362     ac_prev=sysconfdir ;;
1363   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365     sysconfdir=$ac_optarg ;;
1366
1367   -target | --target | --targe | --targ | --tar | --ta | --t)
1368     ac_prev=target_alias ;;
1369   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370     target_alias=$ac_optarg ;;
1371
1372   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1373     verbose=yes ;;
1374
1375   -version | --version | --versio | --versi | --vers | -V)
1376     ac_init_version=: ;;
1377
1378   -with-* | --with-*)
1379     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380     # Reject names that are not valid shell variable names.
1381     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382       { echo "$as_me: error: invalid package name: $ac_package" >&2
1383    { (exit 1); exit 1; }; }
1384     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1385     eval with_$ac_package=\$ac_optarg ;;
1386
1387   -without-* | --without-*)
1388     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1395
1396   --x)
1397     # Obsolete; use --with-x.
1398     with_x=yes ;;
1399
1400   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401   | --x-incl | --x-inc | --x-in | --x-i)
1402     ac_prev=x_includes ;;
1403   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405     x_includes=$ac_optarg ;;
1406
1407   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409     ac_prev=x_libraries ;;
1410   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412     x_libraries=$ac_optarg ;;
1413
1414   -*) { echo "$as_me: error: unrecognized option: $ac_option
1415 Try \`$0 --help' for more information." >&2
1416    { (exit 1); exit 1; }; }
1417     ;;
1418
1419   *=*)
1420     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421     # Reject names that are not valid shell variable names.
1422     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1423       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1424    { (exit 1); exit 1; }; }
1425     eval $ac_envvar=\$ac_optarg
1426     export $ac_envvar ;;
1427
1428   *)
1429     # FIXME: should be removed in autoconf 3.0.
1430     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1434     ;;
1435
1436   esac
1437 done
1438
1439 if test -n "$ac_prev"; then
1440   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441   { echo "$as_me: error: missing argument to $ac_option" >&2
1442    { (exit 1); exit 1; }; }
1443 fi
1444
1445 # Be sure to have absolute directory names.
1446 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447                 datadir sysconfdir sharedstatedir localstatedir includedir \
1448                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449                 libdir localedir mandir
1450 do
1451   eval ac_val=\$$ac_var
1452   case $ac_val in
1453     [\\/$]* | ?:[\\/]* )  continue;;
1454     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1455   esac
1456   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1457    { (exit 1); exit 1; }; }
1458 done
1459
1460 # There might be people who depend on the old broken behavior: `$host'
1461 # used to hold the argument of --host etc.
1462 # FIXME: To remove some day.
1463 build=$build_alias
1464 host=$host_alias
1465 target=$target_alias
1466
1467 # FIXME: To remove some day.
1468 if test "x$host_alias" != x; then
1469   if test "x$build_alias" = x; then
1470     cross_compiling=maybe
1471     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1472     If a cross compiler is detected then cross compile mode will be used." >&2
1473   elif test "x$build_alias" != "x$host_alias"; then
1474     cross_compiling=yes
1475   fi
1476 fi
1477
1478 ac_tool_prefix=
1479 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1480
1481 test "$silent" = yes && exec 6>/dev/null
1482
1483
1484 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1485 ac_ls_di=`ls -di .` &&
1486 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1487   { echo "$as_me: error: Working directory cannot be determined" >&2
1488    { (exit 1); exit 1; }; }
1489 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490   { echo "$as_me: error: pwd does not report name of working directory" >&2
1491    { (exit 1); exit 1; }; }
1492
1493
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496   ac_srcdir_defaulted=yes
1497   # Try the directory containing this script, then the parent directory.
1498   ac_confdir=`$as_dirname -- "$0" ||
1499 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500          X"$0" : 'X\(//\)[^/]' \| \
1501          X"$0" : 'X\(//\)$' \| \
1502          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1503 echo X"$0" |
1504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\/\)[^/].*/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\/\)$/{
1513             s//\1/
1514             q
1515           }
1516           /^X\(\/\).*/{
1517             s//\1/
1518             q
1519           }
1520           s/.*/./; q'`
1521   srcdir=$ac_confdir
1522   if test ! -r "$srcdir/$ac_unique_file"; then
1523     srcdir=..
1524   fi
1525 else
1526   ac_srcdir_defaulted=no
1527 fi
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1531    { (exit 1); exit 1; }; }
1532 fi
1533 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1534 ac_abs_confdir=`(
1535         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1536    { (exit 1); exit 1; }; }
1537         pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540   srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_env_${ac_var}_value=\$${ac_var}
1551   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559   # Omit some internal or obsolete options to make the list less imposing.
1560   # This message is too long to be a string in the A/UX 3.1 sh.
1561   cat <<_ACEOF
1562 \`configure' configures this package to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE.  See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572   -h, --help              display this help and exit
1573       --help=short        display options specific to this package
1574       --help=recursive    display the short help of all the included packages
1575   -V, --version           display version information and exit
1576   -q, --quiet, --silent   do not print \`checking...' messages
1577       --cache-file=FILE   cache test results in FILE [disabled]
1578   -C, --config-cache      alias for \`--cache-file=config.cache'
1579   -n, --no-create         do not create output files
1580       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583   --prefix=PREFIX         install architecture-independent files in PREFIX
1584                           [$ac_default_prefix]
1585   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1586                           [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596   --bindir=DIR           user executables [EPREFIX/bin]
1597   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1598   --libexecdir=DIR       program executables [EPREFIX/libexec]
1599   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1600   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1601   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1602   --libdir=DIR           object code libraries [EPREFIX/lib]
1603   --includedir=DIR       C header files [PREFIX/include]
1604   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1605   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1606   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1607   --infodir=DIR          info documentation [DATAROOTDIR/info]
1608   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1609   --mandir=DIR           man documentation [DATAROOTDIR/man]
1610   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1611   --htmldir=DIR          html documentation [DOCDIR]
1612   --dvidir=DIR           dvi documentation [DOCDIR]
1613   --pdfdir=DIR           pdf documentation [DOCDIR]
1614   --psdir=DIR            ps documentation [DOCDIR]
1615 _ACEOF
1616
1617   cat <<\_ACEOF
1618
1619 X features:
1620   --x-includes=DIR    X include files are in DIR
1621   --x-libraries=DIR   X library files are in DIR
1622
1623 System types:
1624   --build=BUILD     configure for building on BUILD [guessed]
1625   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1626 _ACEOF
1627 fi
1628
1629 if test -n "$ac_init_help"; then
1630
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --enable-shared[=PKGS]  build shared libraries [default=yes]
1637   --enable-static[=PKGS]  build static libraries [default=no]
1638   --enable-fast-install[=PKGS]
1639                           optimize for fast installation [default=yes]
1640   --disable-libtool-lock  avoid locking (might break parallel builds)
1641   --enable-libtool        enable building using GNU libtool [default=yes]
1642   --disable-nls           do not use Native Language Support
1643   --disable-rpath         do not hardcode runtime library paths
1644   --enable-gnome          enable build of bgnome-console GUI [default=no]
1645   --enable-bat            enable build of bat Qt4 GUI [default=no]
1646   --enable-bwx-console    enable build of wxWidgets console [default=no]
1647   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1648                           KDE [default=no]
1649   --enable-smartalloc     enable smartalloc debugging support [default=no]
1650   --enable-static-tools   enable static tape tools [default=no]
1651   --enable-static-fd      enable static File daemon [default=no]
1652   --enable-static-sd      enable static Storage daemon [default=no]
1653   --enable-static-dir     enable static Director [default=no]
1654   --enable-static-cons    enable static Console [default=no]
1655   --enable-client-only    build client (File daemon) only [default=no]
1656   --enable-build-dird     enable building of dird (Director) [default=yes]
1657   --enable-build-stored   enable building of stored (Storage daemon)
1658                           [default=yes]
1659   --disable-conio         disable conio support [default=no]
1660   --enable-ipv6           enable ipv6 support [default=yes]
1661   --disable-readline      disable readline support [default=yes]
1662   --enable-batch-insert   enable the DB batch insert code [default=no]
1663   --disable-largefile     omit support for large files
1664
1665 Optional Packages:
1666   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1667   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1668   --with-pic              try to use only PIC/non-PIC objects [default=use
1669                           both]
1670   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1671   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1672   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1673   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1674   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1675   --without-libintl-prefix     don't search for libintl in includedir and libdir
1676   --with-included-gettext use the GNU gettext library included here
1677   --with-qwt[=DIR]        specify qwt library directory
1678   --with-readline[=DIR]   specify readline library directory
1679   --with-python[=DIR]     Include Python support. DIR is the Python base
1680                           install directory, default is to search through a
1681                           number of common places for the Python files.
1682   --with-tcp-wrappers[=DIR]
1683                           enable tcpwrappers support
1684   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1685   --with-working-dir=PATH specify path of Bacula working directory
1686   --with-archivedir=PATH  specify path of SD archive directory
1687   --with-scriptdir=PATH   specify path of Bacula scripts directory
1688   --with-plugindir=PATH   specify path of Bacula plugins directory
1689   --with-dump-email=EMAIL dump email address
1690   --with-job-email=EMAIL  job output email address
1691   --with-smtp-host=HOST   SMTP mail host address
1692   --with-pid-dir=PATH     specify location of Bacula pid files
1693   --with-subsys-dir=PATH  specify location of Bacula subsys file
1694   --with-baseport=PORT    specify base port address for daemons
1695   --with-dir-password=PASSWORD
1696                           specify Director's password
1697   --with-fd-password=PASSWORD
1698                           specify Client's password
1699   --with-sd-password=PASSWORD
1700                           specify Storage daemon's password
1701   --with-mon-dir-password=PASSWORD
1702                           specify Director's password used by the monitor
1703   --with-mon-fd-password=PASSWORD
1704                           specify Client's password used by the monitor
1705   --with-mon-sd-password=PASSWORD
1706                           specify Storage daemon's password used by the
1707                           monitor
1708   --with-db-name=DBNAME   specify database name [default=bacula]
1709   --with-db-user=UNAME    specify database user [default=bacula]
1710   --with-db-password=PWD  specify database password [default=*none*]
1711   --with-db-port=DBPORT   specify a database port [default=null]
1712   --with-dir-user=USER    specify user for Director daemon
1713   --with-dir-group=GROUP  specify group for Director daemon
1714   --with-sd-user=USER     specify user for Storage daemon
1715   --with-sd-group=GROUP   specify group for Storage daemon
1716   --with-fd-user=USER     specify user for File daemon
1717   --with-fd-group=GROUP   specify group for File daemon
1718   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1719   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1720                           base install directory, [default=/usr/local/pgsql]
1721   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1722                           directory, default is to search through a number of
1723                           common places for the MySQL files.
1724   --with-embedded-mysql[=DIR]
1725                           Include MySQL support. DIR is the MySQL base install
1726                           directory, default is to search through a number of
1727                           common places for the MySQL files.
1728   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1729                           install directory, default is to search through a
1730                           number of common places for the SQLite3 files.
1731   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1732                           install directory, default is to search through a
1733                           number of common places for the SQLite files.
1734   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1735                           directory, default is to search through a number of
1736                           common places for the DBI files.
1737   --with-dbi-driver[=DRIVER]
1738                           Suport for DBI driver. DRIVER is the one DBI driver
1739                           like Mysql, Postgresql, others. Default is to not
1740                           configure any driver.
1741   --with-x                use the X Window System
1742
1743 Some influential environment variables:
1744   CC          C compiler command
1745   CFLAGS      C compiler flags
1746   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1747               nonstandard directory <lib dir>
1748   LIBS        libraries to pass to the linker, e.g. -l<library>
1749   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750               you have headers in a nonstandard directory <include dir>
1751   CXX         C++ compiler command
1752   CXXFLAGS    C++ compiler flags
1753   CPP         C preprocessor
1754   WXCONFIG    wx-config command. On some systems, you must set it to
1755               wx-config-2.6 to use wxWidgets 2.6.
1756   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1757   CXXCPP      C++ preprocessor
1758   XMKMF       Path to xmkmf, Makefile generator for X Window System
1759
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1762
1763 _ACEOF
1764 ac_status=$?
1765 fi
1766
1767 if test "$ac_init_help" = "recursive"; then
1768   # If there are subdirs, report their specific --help.
1769   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770     test -d "$ac_dir" || continue
1771     ac_builddir=.
1772
1773 case "$ac_dir" in
1774 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 *)
1776   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1777   # A ".." for each directory in $ac_dir_suffix.
1778   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1779   case $ac_top_builddir_sub in
1780   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1782   esac ;;
1783 esac
1784 ac_abs_top_builddir=$ac_pwd
1785 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1786 # for backward compatibility:
1787 ac_top_builddir=$ac_top_build_prefix
1788
1789 case $srcdir in
1790   .)  # We are building in place.
1791     ac_srcdir=.
1792     ac_top_srcdir=$ac_top_builddir_sub
1793     ac_abs_top_srcdir=$ac_pwd ;;
1794   [\\/]* | ?:[\\/]* )  # Absolute name.
1795     ac_srcdir=$srcdir$ac_dir_suffix;
1796     ac_top_srcdir=$srcdir
1797     ac_abs_top_srcdir=$srcdir ;;
1798   *) # Relative name.
1799     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1800     ac_top_srcdir=$ac_top_build_prefix$srcdir
1801     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1802 esac
1803 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804
1805     cd "$ac_dir" || { ac_status=$?; continue; }
1806     # Check for guested configure.
1807     if test -f "$ac_srcdir/configure.gnu"; then
1808       echo &&
1809       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1810     elif test -f "$ac_srcdir/configure"; then
1811       echo &&
1812       $SHELL "$ac_srcdir/configure" --help=recursive
1813     else
1814       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1815     fi || ac_status=$?
1816     cd "$ac_pwd" || { ac_status=$?; break; }
1817   done
1818 fi
1819
1820 test -n "$ac_init_help" && exit $ac_status
1821 if $ac_init_version; then
1822   cat <<\_ACEOF
1823 configure
1824 generated by GNU Autoconf 2.61
1825
1826 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1827 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1828 This configure script is free software; the Free Software Foundation
1829 gives unlimited permission to copy, distribute and modify it.
1830 _ACEOF
1831   exit
1832 fi
1833 cat >config.log <<_ACEOF
1834 This file contains any messages produced by compilers while
1835 running configure, to aid debugging if configure makes a mistake.
1836
1837 It was created by $as_me, which was
1838 generated by GNU Autoconf 2.61.  Invocation command line was
1839
1840   $ $0 $@
1841
1842 _ACEOF
1843 exec 5>>config.log
1844 {
1845 cat <<_ASUNAME
1846 ## --------- ##
1847 ## Platform. ##
1848 ## --------- ##
1849
1850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1855
1856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1857 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1858
1859 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1860 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1862 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1863 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1864 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1865 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1866
1867 _ASUNAME
1868
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872   IFS=$as_save_IFS
1873   test -z "$as_dir" && as_dir=.
1874   echo "PATH: $as_dir"
1875 done
1876 IFS=$as_save_IFS
1877
1878 } >&5
1879
1880 cat >&5 <<_ACEOF
1881
1882
1883 ## ----------- ##
1884 ## Core tests. ##
1885 ## ----------- ##
1886
1887 _ACEOF
1888
1889
1890 # Keep a trace of the command line.
1891 # Strip out --no-create and --no-recursion so they do not pile up.
1892 # Strip out --silent because we don't want to record it for future runs.
1893 # Also quote any args containing shell meta-characters.
1894 # Make two passes to allow for proper duplicate-argument suppression.
1895 ac_configure_args=
1896 ac_configure_args0=
1897 ac_configure_args1=
1898 ac_must_keep_next=false
1899 for ac_pass in 1 2
1900 do
1901   for ac_arg
1902   do
1903     case $ac_arg in
1904     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1905     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1906     | -silent | --silent | --silen | --sile | --sil)
1907       continue ;;
1908     *\'*)
1909       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1910     esac
1911     case $ac_pass in
1912     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1913     2)
1914       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1915       if test $ac_must_keep_next = true; then
1916         ac_must_keep_next=false # Got value, back to normal.
1917       else
1918         case $ac_arg in
1919           *=* | --config-cache | -C | -disable-* | --disable-* \
1920           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1921           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1922           | -with-* | --with-* | -without-* | --without-* | --x)
1923             case "$ac_configure_args0 " in
1924               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1925             esac
1926             ;;
1927           -* ) ac_must_keep_next=true ;;
1928         esac
1929       fi
1930       ac_configure_args="$ac_configure_args '$ac_arg'"
1931       ;;
1932     esac
1933   done
1934 done
1935 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1936 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1937
1938 # When interrupted or exit'd, cleanup temporary files, and complete
1939 # config.log.  We remove comments because anyway the quotes in there
1940 # would cause problems or look ugly.
1941 # WARNING: Use '\'' to represent an apostrophe within the trap.
1942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943 trap 'exit_status=$?
1944   # Save into config.log some information that might help in debugging.
1945   {
1946     echo
1947
1948     cat <<\_ASBOX
1949 ## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##
1952 _ASBOX
1953     echo
1954     # The following way of writing the cache mishandles newlines in values,
1955 (
1956   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957     eval ac_val=\$$ac_var
1958     case $ac_val in #(
1959     *${as_nl}*)
1960       case $ac_var in #(
1961       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1962 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1963       esac
1964       case $ac_var in #(
1965       _ | IFS | as_nl) ;; #(
1966       *) $as_unset $ac_var ;;
1967       esac ;;
1968     esac
1969   done
1970   (set) 2>&1 |
1971     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972     *${as_nl}ac_space=\ *)
1973       sed -n \
1974         "s/'\''/'\''\\\\'\'''\''/g;
1975           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1976       ;; #(
1977     *)
1978       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1979       ;;
1980     esac |
1981     sort
1982 )
1983     echo
1984
1985     cat <<\_ASBOX
1986 ## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##
1989 _ASBOX
1990     echo
1991     for ac_var in $ac_subst_vars
1992     do
1993       eval ac_val=\$$ac_var
1994       case $ac_val in
1995       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996       esac
1997       echo "$ac_var='\''$ac_val'\''"
1998     done | sort
1999     echo
2000
2001     if test -n "$ac_subst_files"; then
2002       cat <<\_ASBOX
2003 ## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##
2006 _ASBOX
2007       echo
2008       for ac_var in $ac_subst_files
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     fi
2018
2019     if test -s confdefs.h; then
2020       cat <<\_ASBOX
2021 ## ----------- ##
2022 ## confdefs.h. ##
2023 ## ----------- ##
2024 _ASBOX
2025       echo
2026       cat confdefs.h
2027       echo
2028     fi
2029     test "$ac_signal" != 0 &&
2030       echo "$as_me: caught signal $ac_signal"
2031     echo "$as_me: exit $exit_status"
2032   } >&5
2033   rm -f core *.core core.conftest.* &&
2034     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035     exit $exit_status
2036 ' 0
2037 for ac_signal in 1 2 13 15; do
2038   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2039 done
2040 ac_signal=0
2041
2042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2043 rm -f -r conftest* confdefs.h
2044
2045 # Predefined preprocessor variables.
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_NAME "$PACKAGE_NAME"
2049 _ACEOF
2050
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054 _ACEOF
2055
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_STRING "$PACKAGE_STRING"
2064 _ACEOF
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2069 _ACEOF
2070
2071
2072 # Let the site file select an alternate cache file if it wants to.
2073 # Prefer explicitly selected file to automatically selected ones.
2074 if test -n "$CONFIG_SITE"; then
2075   set x "$CONFIG_SITE"
2076 elif test "x$prefix" != xNONE; then
2077   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2078 else
2079   set x "$ac_default_prefix/share/config.site" \
2080         "$ac_default_prefix/etc/config.site"
2081 fi
2082 shift
2083 for ac_site_file
2084 do
2085   if test -r "$ac_site_file"; then
2086     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2087 echo "$as_me: loading site script $ac_site_file" >&6;}
2088     sed 's/^/| /' "$ac_site_file" >&5
2089     . "$ac_site_file"
2090   fi
2091 done
2092
2093 if test -r "$cache_file"; then
2094   # Some versions of bash will fail to source /dev/null (special
2095   # files actually), so we avoid doing that.
2096   if test -f "$cache_file"; then
2097     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2098 echo "$as_me: loading cache $cache_file" >&6;}
2099     case $cache_file in
2100       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2101       *)                      . "./$cache_file";;
2102     esac
2103   fi
2104 else
2105   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2106 echo "$as_me: creating cache $cache_file" >&6;}
2107   >$cache_file
2108 fi
2109
2110 # Check that the precious variables saved in the cache have kept the same
2111 # value.
2112 ac_cache_corrupted=false
2113 for ac_var in $ac_precious_vars; do
2114   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2115   eval ac_new_set=\$ac_env_${ac_var}_set
2116   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2117   eval ac_new_val=\$ac_env_${ac_var}_value
2118   case $ac_old_set,$ac_new_set in
2119     set,)
2120       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2121 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2122       ac_cache_corrupted=: ;;
2123     ,set)
2124       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2125 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2126       ac_cache_corrupted=: ;;
2127     ,);;
2128     *)
2129       if test "x$ac_old_val" != "x$ac_new_val"; then
2130         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2131 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2133 echo "$as_me:   former value:  $ac_old_val" >&2;}
2134         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2135 echo "$as_me:   current value: $ac_new_val" >&2;}
2136         ac_cache_corrupted=:
2137       fi;;
2138   esac
2139   # Pass precious variables to config.status.
2140   if test "$ac_new_set" = set; then
2141     case $ac_new_val in
2142     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2143     *) ac_arg=$ac_var=$ac_new_val ;;
2144     esac
2145     case " $ac_configure_args " in
2146       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2147       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2148     esac
2149   fi
2150 done
2151 if $ac_cache_corrupted; then
2152   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2153 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2155 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175 ac_ext=c
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180
2181
2182 BUILD_DIR=`pwd`
2183 cd ..
2184 TOP_DIR=`pwd`
2185 cd ${BUILD_DIR}
2186
2187
2188 ac_aux_dir=
2189 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2190   if test -f "$ac_dir/install-sh"; then
2191     ac_aux_dir=$ac_dir
2192     ac_install_sh="$ac_aux_dir/install-sh -c"
2193     break
2194   elif test -f "$ac_dir/install.sh"; then
2195     ac_aux_dir=$ac_dir
2196     ac_install_sh="$ac_aux_dir/install.sh -c"
2197     break
2198   elif test -f "$ac_dir/shtool"; then
2199     ac_aux_dir=$ac_dir
2200     ac_install_sh="$ac_aux_dir/shtool install -c"
2201     break
2202   fi
2203 done
2204 if test -z "$ac_aux_dir"; then
2205   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2206 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2207    { (exit 1); exit 1; }; }
2208 fi
2209
2210 # These three variables are undocumented and unsupported,
2211 # and are intended to be withdrawn in a future Autoconf release.
2212 # They can cause serious problems if a builder's source tree is in a directory
2213 # whose full name contains unusual characters.
2214 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2215 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2216 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2217
2218
2219 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2220
2221
2222
2223
2224
2225 for ac_prog in true
2226 do
2227   # Extract the first word of "$ac_prog", so it can be a program name with args.
2228 set dummy $ac_prog; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   case $TRUEPRG in
2235   [\\/]* | ?:[\\/]*)
2236   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2237   ;;
2238   *)
2239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252 IFS=$as_save_IFS
2253
2254   ;;
2255 esac
2256 fi
2257 TRUEPRG=$ac_cv_path_TRUEPRG
2258 if test -n "$TRUEPRG"; then
2259   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2260 echo "${ECHO_T}$TRUEPRG" >&6; }
2261 else
2262   { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2264 fi
2265
2266
2267   test -n "$TRUEPRG" && break
2268 done
2269 test -n "$TRUEPRG" || TRUEPRG=":"
2270
2271 for ac_prog in false
2272 do
2273   # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   case $FALSEPRG in
2281   [\\/]* | ?:[\\/]*)
2282   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2283   ;;
2284   *)
2285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294     break 2
2295   fi
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300   ;;
2301 esac
2302 fi
2303 FALSEPRG=$ac_cv_path_FALSEPRG
2304 if test -n "$FALSEPRG"; then
2305   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2306 echo "${ECHO_T}$FALSEPRG" >&6; }
2307 else
2308   { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2310 fi
2311
2312
2313   test -n "$FALSEPRG" && break
2314 done
2315 test -n "$FALSEPRG" || FALSEPRG=":"
2316
2317
2318
2319 post_host=
2320 if test "x$BACULA" != x; then
2321    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2322 fi
2323 BACULA=${BACULA-Bacula}
2324 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2325 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 echo "configuring for ${BACULA} $VERSION ($DATE)"
2328
2329
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 if test -n "$ac_tool_prefix"; then
2336   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$CC"; then
2344   ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2360
2361 fi
2362 fi
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365   { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2367 else
2368   { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2370 fi
2371
2372
2373 fi
2374 if test -z "$ac_cv_prog_CC"; then
2375   ac_ct_CC=$CC
2376   # Extract the first word of "gcc", so it can be a program name with args.
2377 set dummy gcc; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   if test -n "$ac_ct_CC"; then
2384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391   for ac_exec_ext in '' $ac_executable_extensions; do
2392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393     ac_cv_prog_ac_ct_CC="gcc"
2394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395     break 2
2396   fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2400
2401 fi
2402 fi
2403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2404 if test -n "$ac_ct_CC"; then
2405   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2406 echo "${ECHO_T}$ac_ct_CC" >&6; }
2407 else
2408   { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410 fi
2411
2412   if test "x$ac_ct_CC" = x; then
2413     CC=""
2414   else
2415     case $cross_compiling:$ac_tool_warned in
2416 yes:)
2417 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet.  If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&5
2420 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet.  If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2423 ac_tool_warned=yes ;;
2424 esac
2425     CC=$ac_ct_CC
2426   fi
2427 else
2428   CC="$ac_cv_prog_CC"
2429 fi
2430
2431 if test -z "$CC"; then
2432           if test -n "$ac_tool_prefix"; then
2433     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}cc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_CC+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   if test -n "$CC"; then
2441   ac_cv_prog_CC="$CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448   for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_CC="${ac_tool_prefix}cc"
2451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 CC=$ac_cv_prog_CC
2461 if test -n "$CC"; then
2462   { echo "$as_me:$LINENO: result: $CC" >&5
2463 echo "${ECHO_T}$CC" >&6; }
2464 else
2465   { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2467 fi
2468
2469
2470   fi
2471 fi
2472 if test -z "$CC"; then
2473   # Extract the first word of "cc", so it can be a program name with args.
2474 set dummy cc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   if test -n "$CC"; then
2481   ac_cv_prog_CC="$CC" # Let the user override the test.
2482 else
2483   ac_prog_rejected=no
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489   for ac_exec_ext in '' $ac_executable_extensions; do
2490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2492        ac_prog_rejected=yes
2493        continue
2494      fi
2495     ac_cv_prog_CC="cc"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 if test $ac_prog_rejected = yes; then
2504   # We found a bogon in the path, so make sure we never use it.
2505   set dummy $ac_cv_prog_CC
2506   shift
2507   if test $# != 0; then
2508     # We chose a different compiler from the bogus one.
2509     # However, it has the same basename, so the bogon will be chosen
2510     # first if we set CC to just the basename; use the full file name.
2511     shift
2512     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2513   fi
2514 fi
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519   { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526
2527 fi
2528 if test -z "$CC"; then
2529   if test -n "$ac_tool_prefix"; then
2530   for ac_prog in cl.exe
2531   do
2532     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   for ac_exec_ext in '' $ac_executable_extensions; do
2548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2563 else
2564   { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2566 fi
2567
2568
2569     test -n "$CC" && break
2570   done
2571 fi
2572 if test -z "$CC"; then
2573   ac_ct_CC=$CC
2574   for ac_prog in cl.exe
2575 do
2576   # Extract the first word of "$ac_prog", so it can be a program name with args.
2577 set dummy $ac_prog; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   if test -n "$ac_ct_CC"; then
2584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591   for ac_exec_ext in '' $ac_executable_extensions; do
2592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593     ac_cv_prog_ac_ct_CC="$ac_prog"
2594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598 done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604 if test -n "$ac_ct_CC"; then
2605   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2606 echo "${ECHO_T}$ac_ct_CC" >&6; }
2607 else
2608   { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2610 fi
2611
2612
2613   test -n "$ac_ct_CC" && break
2614 done
2615
2616   if test "x$ac_ct_CC" = x; then
2617     CC=""
2618   else
2619     case $cross_compiling:$ac_tool_warned in
2620 yes:)
2621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2622 whose name does not start with the host triplet.  If you think this
2623 configuration is useful to you, please write to autoconf@gnu.org." >&5
2624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet.  If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2627 ac_tool_warned=yes ;;
2628 esac
2629     CC=$ac_ct_CC
2630   fi
2631 fi
2632
2633 fi
2634
2635
2636 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: no acceptable C compiler found in \$PATH
2639 See \`config.log' for more details." >&2;}
2640    { (exit 1); exit 1; }; }
2641
2642 # Provide some information about the compiler.
2643 echo "$as_me:$LINENO: checking for C compiler version" >&5
2644 ac_compiler=`set X $ac_compile; echo $2`
2645 { (ac_try="$ac_compiler --version >&5"
2646 case "(($ac_try" in
2647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648   *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651   (eval "$ac_compiler --version >&5") 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }
2655 { (ac_try="$ac_compiler -v >&5"
2656 case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661   (eval "$ac_compiler -v >&5") 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }
2665 { (ac_try="$ac_compiler -V >&5"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_compiler -V >&5") 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }
2675
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 ac_clean_files_save=$ac_clean_files
2692 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2693 # Try to create an executable without -o first, disregard a.out.
2694 # It will help us diagnose broken compilers, and finding out an intuition
2695 # of exeext.
2696 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2697 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2698 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2699 #
2700 # List of possible output files, starting from the most likely.
2701 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2702 # only as a last resort.  b.out is created by i960 compilers.
2703 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2704 #
2705 # The IRIX 6 linker writes into existing files which may not be
2706 # executable, retaining their permissions.  Remove them first so a
2707 # subsequent execution test works.
2708 ac_rmfiles=
2709 for ac_file in $ac_files
2710 do
2711   case $ac_file in
2712     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2713     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2714   esac
2715 done
2716 rm -f $ac_rmfiles
2717
2718 if { (ac_try="$ac_link_default"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_link_default") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; then
2728   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2729 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2730 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2731 # so that the user can short-circuit this test for compilers unknown to
2732 # Autoconf.
2733 for ac_file in $ac_files ''
2734 do
2735   test -f "$ac_file" || continue
2736   case $ac_file in
2737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2738         ;;
2739     [ab].out )
2740         # We found the default executable, but exeext='' is most
2741         # certainly right.
2742         break;;
2743     *.* )
2744         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2745         then :; else
2746            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747         fi
2748         # We set ac_cv_exeext here because the later test for it is not
2749         # safe: cross compilers may not add the suffix if given an `-o'
2750         # argument, so we may need to know it at that point already.
2751         # Even if this section looks crufty: it has the advantage of
2752         # actually working.
2753         break;;
2754     * )
2755         break;;
2756   esac
2757 done
2758 test "$ac_cv_exeext" = no && ac_cv_exeext=
2759
2760 else
2761   ac_file=''
2762 fi
2763
2764 { echo "$as_me:$LINENO: result: $ac_file" >&5
2765 echo "${ECHO_T}$ac_file" >&6; }
2766 if test -z "$ac_file"; then
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2771 See \`config.log' for more details." >&5
2772 echo "$as_me: error: C compiler cannot create executables
2773 See \`config.log' for more details." >&2;}
2774    { (exit 77); exit 77; }; }
2775 fi
2776
2777 ac_exeext=$ac_cv_exeext
2778
2779 # Check that the compiler produces executables we can run.  If not, either
2780 # the compiler is broken, or we cross compile.
2781 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2784 # If not cross compiling, check that we can run a simple program.
2785 if test "$cross_compiling" != yes; then
2786   if { ac_try='./$ac_file'
2787   { (case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_try") 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; }; then
2796     cross_compiling=no
2797   else
2798     if test "$cross_compiling" = maybe; then
2799         cross_compiling=yes
2800     else
2801         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: cannot run C compiled programs.
2805 If you meant to cross compile, use \`--host'.
2806 See \`config.log' for more details." >&2;}
2807    { (exit 1); exit 1; }; }
2808     fi
2809   fi
2810 fi
2811 { echo "$as_me:$LINENO: result: yes" >&5
2812 echo "${ECHO_T}yes" >&6; }
2813
2814 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2815 ac_clean_files=$ac_clean_files_save
2816 # Check that the compiler produces executables we can run.  If not, either
2817 # the compiler is broken, or we cross compile.
2818 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2819 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2820 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2821 echo "${ECHO_T}$cross_compiling" >&6; }
2822
2823 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2824 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2825 if { (ac_try="$ac_link"
2826 case "(($ac_try" in
2827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828   *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831   (eval "$ac_link") 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }; then
2835   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2836 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2837 # work properly (i.e., refer to `conftest.exe'), while it won't with
2838 # `rm'.
2839 for ac_file in conftest.exe conftest conftest.*; do
2840   test -f "$ac_file" || continue
2841   case $ac_file in
2842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2843     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844           break;;
2845     * ) break;;
2846   esac
2847 done
2848 else
2849   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2850 See \`config.log' for more details." >&5
2851 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details." >&2;}
2853    { (exit 1); exit 1; }; }
2854 fi
2855
2856 rm -f conftest$ac_cv_exeext
2857 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2858 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2859
2860 rm -f conftest.$ac_ext
2861 EXEEXT=$ac_cv_exeext
2862 ac_exeext=$EXEEXT
2863 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2864 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2865 if test "${ac_cv_objext+set}" = set; then
2866   echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868   cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874
2875 int
2876 main ()
2877 {
2878
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.o conftest.obj
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compile") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; then
2894   for ac_file in conftest.o conftest.obj conftest.*; do
2895   test -f "$ac_file" || continue;
2896   case $ac_file in
2897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2898     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2899        break;;
2900   esac
2901 done
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2909 See \`config.log' for more details." >&2;}
2910    { (exit 1); exit 1; }; }
2911 fi
2912
2913 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2914 fi
2915 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2916 echo "${ECHO_T}$ac_cv_objext" >&6; }
2917 OBJEXT=$ac_cv_objext
2918 ac_objext=$OBJEXT
2919 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2920 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2921 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930
2931 int
2932 main ()
2933 {
2934 #ifndef __GNUC__
2935        choke me
2936 #endif
2937
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2944 case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949   (eval "$ac_compile") 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } && {
2956          test -z "$ac_c_werror_flag" ||
2957          test ! -s conftest.err
2958        } && test -s conftest.$ac_objext; then
2959   ac_compiler_gnu=yes
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964         ac_compiler_gnu=no
2965 fi
2966
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2969
2970 fi
2971 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2972 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2973 GCC=`test $ac_compiler_gnu = yes && echo yes`
2974 ac_test_CFLAGS=${CFLAGS+set}
2975 ac_save_CFLAGS=$CFLAGS
2976 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_cc_g+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   ac_save_c_werror_flag=$ac_c_werror_flag
2982    ac_c_werror_flag=yes
2983    ac_cv_prog_cc_g=no
2984    CFLAGS="-g"
2985    cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991
2992 int
2993 main ()
2994 {
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } && {
3014          test -z "$ac_c_werror_flag" ||
3015          test ! -s conftest.err
3016        } && test -s conftest.$ac_objext; then
3017   ac_cv_prog_cc_g=yes
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022         CFLAGS=""
3023       cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } && {
3052          test -z "$ac_c_werror_flag" ||
3053          test ! -s conftest.err
3054        } && test -s conftest.$ac_objext; then
3055   :
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         ac_c_werror_flag=$ac_save_c_werror_flag
3061          CFLAGS="-g"
3062          cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068
3069 int
3070 main ()
3071 {
3072
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_compile") 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } && {
3091          test -z "$ac_c_werror_flag" ||
3092          test ! -s conftest.err
3093        } && test -s conftest.$ac_objext; then
3094   ac_cv_prog_cc_g=yes
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099
3100 fi
3101
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 fi
3104
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109    ac_c_werror_flag=$ac_save_c_werror_flag
3110 fi
3111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3113 if test "$ac_test_CFLAGS" = set; then
3114   CFLAGS=$ac_save_CFLAGS
3115 elif test $ac_cv_prog_cc_g = yes; then
3116   if test "$GCC" = yes; then
3117     CFLAGS="-g -O2"
3118   else
3119     CFLAGS="-g"
3120   fi
3121 else
3122   if test "$GCC" = yes; then
3123     CFLAGS="-O2"
3124   else
3125     CFLAGS=
3126   fi
3127 fi
3128 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3129 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3130 if test "${ac_cv_prog_cc_c89+set}" = set; then
3131   echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133   ac_cv_prog_cc_c89=no
3134 ac_save_CC=$CC
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141 #include <stdarg.h>
3142 #include <stdio.h>
3143 #include <sys/types.h>
3144 #include <sys/stat.h>
3145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3146 struct buf { int x; };
3147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3148 static char *e (p, i)
3149      char **p;
3150      int i;
3151 {
3152   return p[i];
3153 }
3154 static char *f (char * (*g) (char **, int), char **p, ...)
3155 {
3156   char *s;
3157   va_list v;
3158   va_start (v,p);
3159   s = g (p, va_arg (v,int));
3160   va_end (v);
3161   return s;
3162 }
3163
3164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3165    function prototypes and stuff, but not '\xHH' hex character constants.
3166    These don't provoke an error unfortunately, instead are silently treated
3167    as 'x'.  The following induces an error, until -std is added to get
3168    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3169    array size at least.  It's necessary to write '\x00'==0 to get something
3170    that's true only with -std.  */
3171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3172
3173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3174    inside strings and character constants.  */
3175 #define FOO(x) 'x'
3176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3177
3178 int test (int i, double x);
3179 struct s1 {int (*f) (int a);};
3180 struct s2 {int (*f) (double a);};
3181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3182 int argc;
3183 char **argv;
3184 int
3185 main ()
3186 {
3187 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3193         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3194 do
3195   CC="$ac_save_CC $ac_arg"
3196   rm -f conftest.$ac_objext
3197 if { (ac_try="$ac_compile"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203   (eval "$ac_compile") 2>conftest.er1
3204   ac_status=$?
3205   grep -v '^ *+' conftest.er1 >conftest.err
3206   rm -f conftest.er1
3207   cat conftest.err >&5
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } && {
3210          test -z "$ac_c_werror_flag" ||
3211          test ! -s conftest.err
3212        } && test -s conftest.$ac_objext; then
3213   ac_cv_prog_cc_c89=$ac_arg
3214 else
3215   echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext
3222   test "x$ac_cv_prog_cc_c89" != "xno" && break
3223 done
3224 rm -f conftest.$ac_ext
3225 CC=$ac_save_CC
3226
3227 fi
3228 # AC_CACHE_VAL
3229 case "x$ac_cv_prog_cc_c89" in
3230   x)
3231     { echo "$as_me:$LINENO: result: none needed" >&5
3232 echo "${ECHO_T}none needed" >&6; } ;;
3233   xno)
3234     { echo "$as_me:$LINENO: result: unsupported" >&5
3235 echo "${ECHO_T}unsupported" >&6; } ;;
3236   *)
3237     CC="$CC $ac_cv_prog_cc_c89"
3238     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3240 esac
3241
3242
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249 ac_ext=cpp
3250 ac_cpp='$CXXCPP $CPPFLAGS'
3251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3254 if test -z "$CXX"; then
3255   if test -n "$CCC"; then
3256     CXX=$CCC
3257   else
3258     if test -n "$ac_tool_prefix"; then
3259   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3260   do
3261     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CXX+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   if test -n "$CXX"; then
3269   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274   IFS=$as_save_IFS
3275   test -z "$as_dir" && as_dir=.
3276   for ac_exec_ext in '' $ac_executable_extensions; do
3277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280     break 2
3281   fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 CXX=$ac_cv_prog_CXX
3289 if test -n "$CXX"; then
3290   { echo "$as_me:$LINENO: result: $CXX" >&5
3291 echo "${ECHO_T}$CXX" >&6; }
3292 else
3293   { echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6; }
3295 fi
3296
3297
3298     test -n "$CXX" && break
3299   done
3300 fi
3301 if test -z "$CXX"; then
3302   ac_ct_CXX=$CXX
3303   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3304 do
3305   # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy $ac_prog; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   if test -n "$ac_ct_CXX"; then
3313   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318   IFS=$as_save_IFS
3319   test -z "$as_dir" && as_dir=.
3320   for ac_exec_ext in '' $ac_executable_extensions; do
3321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322     ac_cv_prog_ac_ct_CXX="$ac_prog"
3323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324     break 2
3325   fi
3326 done
3327 done
3328 IFS=$as_save_IFS
3329
3330 fi
3331 fi
3332 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3333 if test -n "$ac_ct_CXX"; then
3334   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3335 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3336 else
3337   { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3339 fi
3340
3341
3342   test -n "$ac_ct_CXX" && break
3343 done
3344
3345   if test "x$ac_ct_CXX" = x; then
3346     CXX="g++"
3347   else
3348     case $cross_compiling:$ac_tool_warned in
3349 yes:)
3350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3351 whose name does not start with the host triplet.  If you think this
3352 configuration is useful to you, please write to autoconf@gnu.org." >&5
3353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3354 whose name does not start with the host triplet.  If you think this
3355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358     CXX=$ac_ct_CXX
3359   fi
3360 fi
3361
3362   fi
3363 fi
3364 # Provide some information about the compiler.
3365 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3366 ac_compiler=`set X $ac_compile; echo $2`
3367 { (ac_try="$ac_compiler --version >&5"
3368 case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_compiler --version >&5") 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }
3377 { (ac_try="$ac_compiler -v >&5"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_compiler -v >&5") 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }
3387 { (ac_try="$ac_compiler -V >&5"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compiler -V >&5") 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }
3397
3398 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3399 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3400 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413 #ifndef __GNUC__
3414        choke me
3415 #endif
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_compile") 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } && {
3435          test -z "$ac_cxx_werror_flag" ||
3436          test ! -s conftest.err
3437        } && test -s conftest.$ac_objext; then
3438   ac_compiler_gnu=yes
3439 else
3440   echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443         ac_compiler_gnu=no
3444 fi
3445
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3448
3449 fi
3450 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3451 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3452 GXX=`test $ac_compiler_gnu = yes && echo yes`
3453 ac_test_CXXFLAGS=${CXXFLAGS+set}
3454 ac_save_CXXFLAGS=$CXXFLAGS
3455 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3456 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3457 if test "${ac_cv_prog_cxx_g+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3461    ac_cxx_werror_flag=yes
3462    ac_cv_prog_cxx_g=no
3463    CXXFLAGS="-g"
3464    cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470
3471 int
3472 main ()
3473 {
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486   (eval "$ac_compile") 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } && {
3493          test -z "$ac_cxx_werror_flag" ||
3494          test ! -s conftest.err
3495        } && test -s conftest.$ac_objext; then
3496   ac_cv_prog_cxx_g=yes
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501         CXXFLAGS=""
3502       cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524   (eval "$ac_compile") 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } && {
3531          test -z "$ac_cxx_werror_flag" ||
3532          test ! -s conftest.err
3533        } && test -s conftest.$ac_objext; then
3534   :
3535 else
3536   echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3540          CXXFLAGS="-g"
3541          cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547
3548 int
3549 main ()
3550 {
3551
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3558 case "(($ac_try" in
3559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560   *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563   (eval "$ac_compile") 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } && {
3570          test -z "$ac_cxx_werror_flag" ||
3571          test ! -s conftest.err
3572        } && test -s conftest.$ac_objext; then
3573   ac_cv_prog_cxx_g=yes
3574 else
3575   echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 fi
3583
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3589 fi
3590 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3591 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3592 if test "$ac_test_CXXFLAGS" = set; then
3593   CXXFLAGS=$ac_save_CXXFLAGS
3594 elif test $ac_cv_prog_cxx_g = yes; then
3595   if test "$GXX" = yes; then
3596     CXXFLAGS="-g -O2"
3597   else
3598     CXXFLAGS="-g"
3599   fi
3600 else
3601   if test "$GXX" = yes; then
3602     CXXFLAGS="-O2"
3603   else
3604     CXXFLAGS=
3605   fi
3606 fi
3607 ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613 if test "x$CC" != xcc; then
3614   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3615 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3616 else
3617   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3618 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3619 fi
3620 set dummy $CC; ac_cc=`echo $2 |
3621                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3622 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h.  */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h.  */
3631
3632 int
3633 main ()
3634 {
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 # Make sure it works both with $CC and with simple cc.
3641 # We do the test twice because some compilers refuse to overwrite an
3642 # existing .o file with -o, though they will create one.
3643 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3644 rm -f conftest2.*
3645 if { (case "(($ac_try" in
3646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647   *) ac_try_echo=$ac_try;;
3648 esac
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650   (eval "$ac_try") 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); } &&
3654    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659   (eval "$ac_try") 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); };
3663 then
3664   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3665   if test "x$CC" != xcc; then
3666     # Test first that cc exists at all.
3667     if { ac_try='cc -c conftest.$ac_ext >&5'
3668   { (case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_try") 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; }; then
3677       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3678       rm -f conftest2.*
3679       if { (case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_try") 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } &&
3688          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693   (eval "$ac_try") 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); };
3697       then
3698         # cc works too.
3699         :
3700       else
3701         # cc exists but doesn't like -o.
3702         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3703       fi
3704     fi
3705   fi
3706 else
3707   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708 fi
3709 rm -f core conftest*
3710
3711 fi
3712 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3713   { echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6; }
3715 else
3716   { echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6; }
3718
3719 cat >>confdefs.h <<\_ACEOF
3720 #define NO_MINUS_C_MINUS_O 1
3721 _ACEOF
3722
3723 fi
3724
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3731 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3732 # On Suns, sometimes $CPP names a directory.
3733 if test -n "$CPP" && test -d "$CPP"; then
3734   CPP=
3735 fi
3736 if test -z "$CPP"; then
3737   if test "${ac_cv_prog_CPP+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740       # Double quotes because CPP needs to be expanded
3741     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3742     do
3743       ac_preproc_ok=false
3744 for ac_c_preproc_warn_flag in '' yes
3745 do
3746   # Use a header file that comes with gcc, so configuring glibc
3747   # with a fresh cross-compiler works.
3748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3749   # <limits.h> exists even on freestanding compilers.
3750   # On the NeXT, cc -E runs the code through the compiler's parser,
3751   # not just through cpp. "Syntax error" is here to catch this case.
3752   cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h.  */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h.  */
3758 #ifdef __STDC__
3759 # include <limits.h>
3760 #else
3761 # include <assert.h>
3762 #endif
3763                      Syntax error
3764 _ACEOF
3765 if { (ac_try="$ac_cpp conftest.$ac_ext"
3766 case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3772   ac_status=$?
3773   grep -v '^ *+' conftest.er1 >conftest.err
3774   rm -f conftest.er1
3775   cat conftest.err >&5
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); } >/dev/null && {
3778          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3779          test ! -s conftest.err
3780        }; then
3781   :
3782 else
3783   echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3785
3786   # Broken: fails on valid input.
3787 continue
3788 fi
3789
3790 rm -f conftest.err conftest.$ac_ext
3791
3792   # OK, works on sane cases.  Now check whether nonexistent headers
3793   # can be detected and how.
3794   cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h.  */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h.  */
3800 #include <ac_nonexistent.h>
3801 _ACEOF
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } >/dev/null && {
3815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3816          test ! -s conftest.err
3817        }; then
3818   # Broken: success on invalid input.
3819 continue
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824   # Passes both tests.
3825 ac_preproc_ok=:
3826 break
3827 fi
3828
3829 rm -f conftest.err conftest.$ac_ext
3830
3831 done
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.err conftest.$ac_ext
3834 if $ac_preproc_ok; then
3835   break
3836 fi
3837
3838     done
3839     ac_cv_prog_CPP=$CPP
3840
3841 fi
3842   CPP=$ac_cv_prog_CPP
3843 else
3844   ac_cv_prog_CPP=$CPP
3845 fi
3846 { echo "$as_me:$LINENO: result: $CPP" >&5
3847 echo "${ECHO_T}$CPP" >&6; }
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3850 do
3851   # Use a header file that comes with gcc, so configuring glibc
3852   # with a fresh cross-compiler works.
3853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854   # <limits.h> exists even on freestanding compilers.
3855   # On the NeXT, cc -E runs the code through the compiler's parser,
3856   # not just through cpp. "Syntax error" is here to catch this case.
3857   cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863 #ifdef __STDC__
3864 # include <limits.h>
3865 #else
3866 # include <assert.h>
3867 #endif
3868                      Syntax error
3869 _ACEOF
3870 if { (ac_try="$ac_cpp conftest.$ac_ext"
3871 case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3877   ac_status=$?
3878   grep -v '^ *+' conftest.er1 >conftest.err
3879   rm -f conftest.er1
3880   cat conftest.err >&5
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); } >/dev/null && {
3883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3884          test ! -s conftest.err
3885        }; then
3886   :
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891   # Broken: fails on valid input.
3892 continue
3893 fi
3894
3895 rm -f conftest.err conftest.$ac_ext
3896
3897   # OK, works on sane cases.  Now check whether nonexistent headers
3898   # can be detected and how.
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <ac_nonexistent.h>
3906 _ACEOF
3907 if { (ac_try="$ac_cpp conftest.$ac_ext"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } >/dev/null && {
3920          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3921          test ! -s conftest.err
3922        }; then
3923   # Broken: success on invalid input.
3924 continue
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929   # Passes both tests.
3930 ac_preproc_ok=:
3931 break
3932 fi
3933
3934 rm -f conftest.err conftest.$ac_ext
3935
3936 done
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.err conftest.$ac_ext
3939 if $ac_preproc_ok; then
3940   :
3941 else
3942   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3943 See \`config.log' for more details." >&5
3944 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&2;}
3946    { (exit 1); exit 1; }; }
3947 fi
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955
3956 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3957 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_GREP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   # Extract the first word of "grep ggrep" to use in msg output
3962 if test -z "$GREP"; then
3963 set dummy grep ggrep; ac_prog_name=$2
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   ac_path_GREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_prog in grep ggrep; do
3975   for ac_exec_ext in '' $ac_executable_extensions; do
3976     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3977     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3978     # Check for GNU ac_path_GREP and select it if it is found.
3979   # Check for GNU $ac_path_GREP
3980 case `"$ac_path_GREP" --version 2>&1` in
3981 *GNU*)
3982   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3983 *)
3984   ac_count=0
3985   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986   while :
3987   do
3988     cat "conftest.in" "conftest.in" >"conftest.tmp"
3989     mv "conftest.tmp" "conftest.in"
3990     cp "conftest.in" "conftest.nl"
3991     echo 'GREP' >> "conftest.nl"
3992     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994     ac_count=`expr $ac_count + 1`
3995     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3996       # Best one so far, save it but keep looking for a better one
3997       ac_cv_path_GREP="$ac_path_GREP"
3998       ac_path_GREP_max=$ac_count
3999     fi
4000     # 10*(2^10) chars as input seems more than enough
4001     test $ac_count -gt 10 && break
4002   done
4003   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004 esac
4005
4006
4007     $ac_path_GREP_found && break 3
4008   done
4009 done
4010
4011 done
4012 IFS=$as_save_IFS
4013
4014
4015 fi
4016
4017 GREP="$ac_cv_path_GREP"
4018 if test -z "$GREP"; then
4019   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021    { (exit 1); exit 1; }; }
4022 fi
4023
4024 else
4025   ac_cv_path_GREP=$GREP
4026 fi
4027
4028
4029 fi
4030 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4031 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4032  GREP="$ac_cv_path_GREP"
4033
4034
4035 { echo "$as_me:$LINENO: checking for egrep" >&5
4036 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4037 if test "${ac_cv_path_EGREP+set}" = set; then
4038   echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4041    then ac_cv_path_EGREP="$GREP -E"
4042    else
4043      # Extract the first word of "egrep" to use in msg output
4044 if test -z "$EGREP"; then
4045 set dummy egrep; ac_prog_name=$2
4046 if test "${ac_cv_path_EGREP+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   ac_path_EGREP_found=false
4050 # Loop through the user's path and test for each of PROGNAME-LIST
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   for ac_prog in egrep; do
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4059     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4060     # Check for GNU ac_path_EGREP and select it if it is found.
4061   # Check for GNU $ac_path_EGREP
4062 case `"$ac_path_EGREP" --version 2>&1` in
4063 *GNU*)
4064   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4065 *)
4066   ac_count=0
4067   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4068   while :
4069   do
4070     cat "conftest.in" "conftest.in" >"conftest.tmp"
4071     mv "conftest.tmp" "conftest.in"
4072     cp "conftest.in" "conftest.nl"
4073     echo 'EGREP' >> "conftest.nl"
4074     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076     ac_count=`expr $ac_count + 1`
4077     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4078       # Best one so far, save it but keep looking for a better one
4079       ac_cv_path_EGREP="$ac_path_EGREP"
4080       ac_path_EGREP_max=$ac_count
4081     fi
4082     # 10*(2^10) chars as input seems more than enough
4083     test $ac_count -gt 10 && break
4084   done
4085   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086 esac
4087
4088
4089     $ac_path_EGREP_found && break 3
4090   done
4091 done
4092
4093 done
4094 IFS=$as_save_IFS
4095
4096
4097 fi
4098
4099 EGREP="$ac_cv_path_EGREP"
4100 if test -z "$EGREP"; then
4101   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4102 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4103    { (exit 1); exit 1; }; }
4104 fi
4105
4106 else
4107   ac_cv_path_EGREP=$EGREP
4108 fi
4109
4110
4111    fi
4112 fi
4113 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4114 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4115  EGREP="$ac_cv_path_EGREP"
4116
4117
4118 if test $ac_cv_c_compiler_gnu = yes; then
4119     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4120 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4121 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124     ac_pattern="Autoconf.*'x'"
4125   cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 #include <sgtty.h>
4132 Autoconf TIOCGETP
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4136   ac_cv_prog_gcc_traditional=yes
4137 else
4138   ac_cv_prog_gcc_traditional=no
4139 fi
4140 rm -f conftest*
4141
4142
4143   if test $ac_cv_prog_gcc_traditional = no; then
4144     cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150 #include <termio.h>
4151 Autoconf TCGETA
4152 _ACEOF
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4155   ac_cv_prog_gcc_traditional=yes
4156 fi
4157 rm -f conftest*
4158
4159   fi
4160 fi
4161 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4162 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4163   if test $ac_cv_prog_gcc_traditional = yes; then
4164     CC="$CC -traditional"
4165   fi
4166 fi
4167
4168 BASECC=`basename $CC`
4169 have_gcc=no
4170 if test "x$BASECC" = xgcc; then
4171    cat >>confdefs.h <<\_ACEOF
4172 #define HAVE_GCC 1
4173 _ACEOF
4174
4175    have_gcc=yes
4176 fi
4177 # Extract the first word of "$CXX", so it can be a program name with args.
4178 set dummy $CXX; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_path_CXX+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   case $CXX in
4185   [\\/]* | ?:[\\/]*)
4186   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4187   ;;
4188   *)
4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194   for ac_exec_ext in '' $ac_executable_extensions; do
4195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4205   ;;
4206 esac
4207 fi
4208 CXX=$ac_cv_path_CXX
4209 if test -n "$CXX"; then
4210   { echo "$as_me:$LINENO: result: $CXX" >&5
4211 echo "${ECHO_T}$CXX" >&6; }
4212 else
4213   { echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6; }
4215 fi
4216
4217
4218 if test ! -e $CXX; then
4219    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4220 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4221    { (exit 1); exit 1; }; }
4222 fi
4223
4224 # Find a good install program.  We prefer a C program (faster),
4225 # so one script is as good as another.  But avoid the broken or
4226 # incompatible versions:
4227 # SysV /etc/install, /usr/sbin/install
4228 # SunOS /usr/etc/install
4229 # IRIX /sbin/install
4230 # AIX /bin/install
4231 # AmigaOS /C/install, which installs bootblocks on floppy discs
4232 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4235 # OS/2's system install, which has a completely different semantic
4236 # ./install, which can be erroneously created by make from ./install.sh.
4237 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4238 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4239 if test -z "$INSTALL"; then
4240 if test "${ac_cv_path_install+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   # Account for people who put trailing slashes in PATH elements.
4249 case $as_dir/ in
4250   ./ | .// | /cC/* | \
4251   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4252   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4253   /usr/ucb/* ) ;;
4254   *)
4255     # OSF1 and SCO ODT 3.0 have their own names for install.
4256     # Don't use installbsd from OSF since it installs stuff as root
4257     # by default.
4258     for ac_prog in ginstall scoinst install; do
4259       for ac_exec_ext in '' $ac_executable_extensions; do
4260         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4261           if test $ac_prog = install &&
4262             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4263             # AIX install.  It has an incompatible calling convention.
4264             :
4265           elif test $ac_prog = install &&
4266             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4267             # program-specific install script used by HP pwplus--don't use.
4268             :
4269           else
4270             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4271             break 3
4272           fi
4273         fi
4274       done
4275     done
4276     ;;
4277 esac
4278 done
4279 IFS=$as_save_IFS
4280
4281
4282 fi
4283   if test "${ac_cv_path_install+set}" = set; then
4284     INSTALL=$ac_cv_path_install
4285   else
4286     # As a last resort, use the slow shell script.  Don't cache a
4287     # value for INSTALL within a source directory, because that will
4288     # break other packages using the cache if that directory is
4289     # removed, or if the value is a relative name.
4290     INSTALL=$ac_install_sh
4291   fi
4292 fi
4293 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4294 echo "${ECHO_T}$INSTALL" >&6; }
4295
4296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4297 # It thinks the first close brace ends the variable substitution.
4298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4299
4300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4301
4302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4303
4304 # Extract the first word of "mv", so it can be a program name with args.
4305 set dummy mv; ac_word=$2
4306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308 if test "${ac_cv_path_MV+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   case $MV in
4312   [\\/]* | ?:[\\/]*)
4313   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4314   ;;
4315   *)
4316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319   IFS=$as_save_IFS
4320   test -z "$as_dir" && as_dir=.
4321   for ac_exec_ext in '' $ac_executable_extensions; do
4322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325     break 2
4326   fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4332   ;;
4333 esac
4334 fi
4335 MV=$ac_cv_path_MV
4336 if test -n "$MV"; then
4337   { echo "$as_me:$LINENO: result: $MV" >&5
4338 echo "${ECHO_T}$MV" >&6; }
4339 else
4340   { echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6; }
4342 fi
4343
4344
4345 # Extract the first word of "rm", so it can be a program name with args.
4346 set dummy rm; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_path_REMOVE+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   case $REMOVE in
4353   [\\/]* | ?:[\\/]*)
4354   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4355   ;;
4356   *)
4357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360   IFS=$as_save_IFS
4361   test -z "$as_dir" && as_dir=.
4362   for ac_exec_ext in '' $ac_executable_extensions; do
4363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366     break 2
4367   fi
4368 done
4369 done
4370 IFS=$as_save_IFS
4371
4372   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4373   ;;
4374 esac
4375 fi
4376 REMOVE=$ac_cv_path_REMOVE
4377 if test -n "$REMOVE"; then
4378   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4379 echo "${ECHO_T}$REMOVE" >&6; }
4380 else
4381   { echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6; }
4383 fi
4384
4385
4386 # Extract the first word of "cp", so it can be a program name with args.
4387 set dummy cp; ac_word=$2
4388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390 if test "${ac_cv_path_CP+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393   case $CP in
4394   [\\/]* | ?:[\\/]*)
4395   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4396   ;;
4397   *)
4398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401   IFS=$as_save_IFS
4402   test -z "$as_dir" && as_dir=.
4403   for ac_exec_ext in '' $ac_executable_extensions; do
4404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407     break 2
4408   fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4414   ;;
4415 esac
4416 fi
4417 CP=$ac_cv_path_CP
4418 if test -n "$CP"; then
4419   { echo "$as_me:$LINENO: result: $CP" >&5
4420 echo "${ECHO_T}$CP" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427 # Extract the first word of "sed", so it can be a program name with args.
4428 set dummy sed; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_path_SED+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   case $SED in
4435   [\\/]* | ?:[\\/]*)
4436   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4437   ;;
4438   *)
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4455   ;;
4456 esac
4457 fi
4458 SED=$ac_cv_path_SED
4459 if test -n "$SED"; then
4460   { echo "$as_me:$LINENO: result: $SED" >&5
4461 echo "${ECHO_T}$SED" >&6; }
4462 else
4463   { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4465 fi
4466
4467
4468 # Extract the first word of "echo", so it can be a program name with args.
4469 set dummy echo; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_path_ECHO+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   case $ECHO in
4476   [\\/]* | ?:[\\/]*)
4477   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4478   ;;
4479   *)
4480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4496   ;;
4497 esac
4498 fi
4499 ECHO=$ac_cv_path_ECHO
4500 if test -n "$ECHO"; then
4501   { echo "$as_me:$LINENO: result: $ECHO" >&5
4502 echo "${ECHO_T}$ECHO" >&6; }
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 fi
4507
4508
4509 # Extract the first word of "cmp", so it can be a program name with args.
4510 set dummy cmp; ac_word=$2
4511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4513 if test "${ac_cv_path_CMP+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $CMP in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4537   ;;
4538 esac
4539 fi
4540 CMP=$ac_cv_path_CMP
4541 if test -n "$CMP"; then
4542   { echo "$as_me:$LINENO: result: $CMP" >&5
4543 echo "${ECHO_T}$CMP" >&6; }
4544 else
4545   { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4547 fi
4548
4549
4550 # Extract the first word of "tbl", so it can be a program name with args.
4551 set dummy tbl; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_path_TBL+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   case $TBL in
4558   [\\/]* | ?:[\\/]*)
4559   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4560   ;;
4561   *)
4562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4578   ;;
4579 esac
4580 fi
4581 TBL=$ac_cv_path_TBL
4582 if test -n "$TBL"; then
4583   { echo "$as_me:$LINENO: result: $TBL" >&5
4584 echo "${ECHO_T}$TBL" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 fi
4589
4590
4591 # Extract the first word of "ar", so it can be a program name with args.
4592 set dummy ar; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_path_AR+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   case $AR in
4599   [\\/]* | ?:[\\/]*)
4600   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4601   ;;
4602   *)
4603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4619   ;;
4620 esac
4621 fi
4622 AR=$ac_cv_path_AR
4623 if test -n "$AR"; then
4624   { echo "$as_me:$LINENO: result: $AR" >&5
4625 echo "${ECHO_T}$AR" >&6; }
4626 else
4627   { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4629 fi
4630
4631
4632 # Extract the first word of "openssl", so it can be a program name with args.
4633 set dummy openssl; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_path_OPENSSL+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   case $OPENSSL in
4640   [\\/]* | ?:[\\/]*)
4641   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4642   ;;
4643   *)
4644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649   for ac_exec_ext in '' $ac_executable_extensions; do
4650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653     break 2
4654   fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4660   ;;
4661 esac
4662 fi
4663 OPENSSL=$ac_cv_path_OPENSSL
4664 if test -n "$OPENSSL"; then
4665   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4666 echo "${ECHO_T}$OPENSSL" >&6; }
4667 else
4668   { echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6; }
4670 fi
4671
4672
4673 # Extract the first word of "mtx", so it can be a program name with args.
4674 set dummy mtx; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_path_MTX+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   case $MTX in
4681   [\\/]* | ?:[\\/]*)
4682   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4683   ;;
4684   *)
4685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688   IFS=$as_save_IFS
4689   test -z "$as_dir" && as_dir=.
4690   for ac_exec_ext in '' $ac_executable_extensions; do
4691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694     break 2
4695   fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4701   ;;
4702 esac
4703 fi
4704 MTX=$ac_cv_path_MTX
4705 if test -n "$MTX"; then
4706   { echo "$as_me:$LINENO: result: $MTX" >&5
4707 echo "${ECHO_T}$MTX" >&6; }
4708 else
4709   { echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6; }
4711 fi
4712
4713
4714 # Extract the first word of "dd", so it can be a program name with args.
4715 set dummy dd; ac_word=$2
4716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718 if test "${ac_cv_path_DD+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   case $DD in
4722   [\\/]* | ?:[\\/]*)
4723   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4724   ;;
4725   *)
4726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4742   ;;
4743 esac
4744 fi
4745 DD=$ac_cv_path_DD
4746 if test -n "$DD"; then
4747   { echo "$as_me:$LINENO: result: $DD" >&5
4748 echo "${ECHO_T}$DD" >&6; }
4749 else
4750   { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752 fi
4753
4754
4755 # Extract the first word of "mkisofs", so it can be a program name with args.
4756 set dummy mkisofs; ac_word=$2
4757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4759 if test "${ac_cv_path_MKISOFS+set}" = set; then
4760   echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762   case $MKISOFS in
4763   [\\/]* | ?:[\\/]*)
4764   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4765   ;;
4766   *)
4767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772   for ac_exec_ext in '' $ac_executable_extensions; do
4773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776     break 2
4777   fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4783   ;;
4784 esac
4785 fi
4786 MKISOFS=$ac_cv_path_MKISOFS
4787 if test -n "$MKISOFS"; then
4788   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4789 echo "${ECHO_T}$MKISOFS" >&6; }
4790 else
4791   { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4793 fi
4794
4795
4796 # Extract the first word of "python", so it can be a program name with args.
4797 set dummy python; ac_word=$2
4798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4800 if test "${ac_cv_path_PYTHON+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   case $PYTHON in
4804   [\\/]* | ?:[\\/]*)
4805   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4806   ;;
4807   *)
4808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813   for ac_exec_ext in '' $ac_executable_extensions; do
4814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4824   ;;
4825 esac
4826 fi
4827 PYTHON=$ac_cv_path_PYTHON
4828 if test -n "$PYTHON"; then
4829   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4830 echo "${ECHO_T}$PYTHON" >&6; }
4831 else
4832   { echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6; }
4834 fi
4835
4836
4837 # Extract the first word of "growisofs", so it can be a program name with args.
4838 set dummy growisofs; ac_word=$2
4839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   case $GROWISOFS in
4845   [\\/]* | ?:[\\/]*)
4846   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4847   ;;
4848   *)
4849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854   for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861 done
4862 IFS=$as_save_IFS
4863
4864   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4865   ;;
4866 esac
4867 fi
4868 GROWISOFS=$ac_cv_path_GROWISOFS
4869 if test -n "$GROWISOFS"; then
4870   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4871 echo "${ECHO_T}$GROWISOFS" >&6; }
4872 else
4873   { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4875 fi
4876
4877
4878 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4879 set dummy dvd+rw-mediainfo; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   case $DVDRWMEDIAINFO in
4886   [\\/]* | ?:[\\/]*)
4887   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4888   ;;
4889   *)
4890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895   for ac_exec_ext in '' $ac_executable_extensions; do
4896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899     break 2
4900   fi
4901 done
4902 done
4903 IFS=$as_save_IFS
4904
4905   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4906   ;;
4907 esac
4908 fi
4909 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4910 if test -n "$DVDRWMEDIAINFO"; then
4911   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4912 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4913 else
4914   { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4916 fi
4917
4918
4919 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4920 set dummy dvd+rw-format; ac_word=$2
4921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4923 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   case $DVDRWFORMAT in
4927   [\\/]* | ?:[\\/]*)
4928   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4929   ;;
4930   *)
4931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936   for ac_exec_ext in '' $ac_executable_extensions; do
4937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4947   ;;
4948 esac
4949 fi
4950 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4951 if test -n "$DVDRWFORMAT"; then
4952   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4953 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4954 else
4955   { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4957 fi
4958
4959
4960 # Extract the first word of "pkg-config", so it can be a program name with args.
4961 set dummy pkg-config; ac_word=$2
4962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4964 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   case $PKGCONFIG in
4968   [\\/]* | ?:[\\/]*)
4969   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4970   ;;
4971   *)
4972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977   for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984 done
4985 IFS=$as_save_IFS
4986
4987   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4988   ;;
4989 esac
4990 fi
4991 PKGCONFIG=$ac_cv_path_PKGCONFIG
4992 if test -n "$PKGCONFIG"; then
4993   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4994 echo "${ECHO_T}$PKGCONFIG" >&6; }
4995 else
4996   { echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6; }
4998 fi
4999
5000
5001 # Extract the first word of "qmake", so it can be a program name with args.
5002 set dummy qmake; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_path_QMAKE+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   case $QMAKE in
5009   [\\/]* | ?:[\\/]*)
5010   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5011   ;;
5012   *)
5013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018   for ac_exec_ext in '' $ac_executable_extensions; do
5019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025 done
5026 IFS=$as_save_IFS
5027
5028   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5029   ;;
5030 esac
5031 fi
5032 QMAKE=$ac_cv_path_QMAKE
5033 if test -n "$QMAKE"; then
5034   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5035 echo "${ECHO_T}$QMAKE" >&6; }
5036 else
5037   { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5039 fi
5040
5041
5042 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5043 set dummy qmake-qt4; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   case $QMAKEQT4 in
5050   [\\/]* | ?:[\\/]*)
5051   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5052   ;;
5053   *)
5054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059   for ac_exec_ext in '' $ac_executable_extensions; do
5060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5070   ;;
5071 esac
5072 fi
5073 QMAKEQT4=$ac_cv_path_QMAKEQT4
5074 if test -n "$QMAKEQT4"; then
5075   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5076 echo "${ECHO_T}$QMAKEQT4" >&6; }
5077 else
5078   { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5080 fi
5081
5082
5083
5084 if test "x$WXCONFIG" = x; then
5085    WXCONFIG=wx-config
5086 fi
5087 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5088 set dummy ${WXCONFIG}; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   case $WXCONFIG in
5095   [\\/]* | ?:[\\/]*)
5096   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5097   ;;
5098   *)
5099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104   for ac_exec_ext in '' $ac_executable_extensions; do
5105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5115   ;;
5116 esac
5117 fi
5118 WXCONFIG=$ac_cv_path_WXCONFIG
5119 if test -n "$WXCONFIG"; then
5120   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5121 echo "${ECHO_T}$WXCONFIG" >&6; }
5122 else
5123   { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5125 fi
5126
5127
5128
5129 # Extract the first word of "cdrecord", so it can be a program name with args.
5130 set dummy cdrecord; ac_word=$2
5131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5133 if test "${ac_cv_path_CDRECORD+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   case $CDRECORD in
5137   [\\/]* | ?:[\\/]*)
5138   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5139   ;;
5140   *)
5141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154 IFS=$as_save_IFS
5155
5156   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5157   ;;
5158 esac
5159 fi
5160 CDRECORD=$ac_cv_path_CDRECORD
5161 if test -n "$CDRECORD"; then
5162   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5163 echo "${ECHO_T}$CDRECORD" >&6; }
5164 else
5165   { echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6; }
5167 fi
5168
5169
5170 # Extract the first word of "pidof", so it can be a program name with args.
5171 set dummy pidof; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_PIDOF+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   case $PIDOF in
5178   [\\/]* | ?:[\\/]*)
5179   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5180   ;;
5181   *)
5182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187   for ac_exec_ext in '' $ac_executable_extensions; do
5188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191     break 2
5192   fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5198   ;;
5199 esac
5200 fi
5201 PIDOF=$ac_cv_path_PIDOF
5202 if test -n "$PIDOF"; then
5203   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5204 echo "${ECHO_T}$PIDOF" >&6; }
5205 else
5206   { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5208 fi
5209
5210
5211 for ac_prog in gawk mawk nawk awk
5212 do
5213   # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_AWK+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   if test -n "$AWK"; then
5221   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228   for ac_exec_ext in '' $ac_executable_extensions; do
5229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230     ac_cv_prog_AWK="$ac_prog"
5231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235 done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 AWK=$ac_cv_prog_AWK
5241 if test -n "$AWK"; then
5242   { echo "$as_me:$LINENO: result: $AWK" >&5
5243 echo "${ECHO_T}$AWK" >&6; }
5244 else
5245   { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5247 fi
5248
5249
5250   test -n "$AWK" && break
5251 done
5252
5253 # Some AWK programs fail, so test it and warn the user
5254 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5255       { if ((prog == $2) || (("(" prog ")") == $2) ||
5256       (("" prog "") == $2) ||
5257       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5258 else
5259   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5260    The regex engine of $AWK is too broken to be used you
5261    might want to install GNU AWK.
5262    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5263 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5264    The regex engine of $AWK is too broken to be used you
5265    might want to install GNU AWK.
5266    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5267    { (exit 1); exit 1; }; }
5268 fi
5269 THE_AWK=$AWK
5270 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5271 set dummy $THE_AWK; ac_word=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_path_AWK+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   case $AWK in
5278   [\\/]* | ?:[\\/]*)
5279   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5280   ;;
5281   *)
5282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285   IFS=$as_save_IFS
5286   test -z "$as_dir" && as_dir=.
5287   for ac_exec_ext in '' $ac_executable_extensions; do
5288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291     break 2
5292   fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5298   ;;
5299 esac
5300 fi
5301 AWK=$ac_cv_path_AWK
5302 if test -n "$AWK"; then
5303   { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5305 else
5306   { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5308 fi
5309
5310
5311
5312
5313 test -n "$ARFLAG" || ARFLAGS="cr"
5314
5315
5316 MAKE_SHELL=/bin/sh
5317
5318
5319
5320
5321
5322
5323
5324 case `pwd` in
5325   *\ * | *\     *)
5326     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5327 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5328 esac
5329
5330
5331
5332 macro_version='2.2.6'
5333 macro_revision='1.3012'
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347 ltmain="$ac_aux_dir/ltmain.sh"
5348
5349 # Make sure we can run config.sub.
5350 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5351   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5352 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5353    { (exit 1); exit 1; }; }
5354
5355 { echo "$as_me:$LINENO: checking build system type" >&5
5356 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5357 if test "${ac_cv_build+set}" = set; then
5358   echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360   ac_build_alias=$build_alias
5361 test "x$ac_build_alias" = x &&
5362   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5363 test "x$ac_build_alias" = x &&
5364   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5366    { (exit 1); exit 1; }; }
5367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5368   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5369 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5370    { (exit 1); exit 1; }; }
5371
5372 fi
5373 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5374 echo "${ECHO_T}$ac_cv_build" >&6; }
5375 case $ac_cv_build in
5376 *-*-*) ;;
5377 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5378 echo "$as_me: error: invalid value of canonical build" >&2;}
5379    { (exit 1); exit 1; }; };;
5380 esac
5381 build=$ac_cv_build
5382 ac_save_IFS=$IFS; IFS='-'
5383 set x $ac_cv_build
5384 shift
5385 build_cpu=$1
5386 build_vendor=$2
5387 shift; shift
5388 # Remember, the first character of IFS is used to create $*,
5389 # except with old shells:
5390 build_os=$*
5391 IFS=$ac_save_IFS
5392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5393
5394
5395 { echo "$as_me:$LINENO: checking host system type" >&5
5396 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5397 if test "${ac_cv_host+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   if test "x$host_alias" = x; then
5401   ac_cv_host=$ac_cv_build
5402 else
5403   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5404     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5405 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5406    { (exit 1); exit 1; }; }
5407 fi
5408
5409 fi
5410 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5411 echo "${ECHO_T}$ac_cv_host" >&6; }
5412 case $ac_cv_host in
5413 *-*-*) ;;
5414 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5415 echo "$as_me: error: invalid value of canonical host" >&2;}
5416    { (exit 1); exit 1; }; };;
5417 esac
5418 host=$ac_cv_host
5419 ac_save_IFS=$IFS; IFS='-'
5420 set x $ac_cv_host
5421 shift
5422 host_cpu=$1
5423 host_vendor=$2
5424 shift; shift
5425 # Remember, the first character of IFS is used to create $*,
5426 # except with old shells:
5427 host_os=$*
5428 IFS=$ac_save_IFS
5429 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5430
5431
5432 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5433 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5434 if test "${ac_cv_path_SED+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5438      for ac_i in 1 2 3 4 5 6 7; do
5439        ac_script="$ac_script$as_nl$ac_script"
5440      done
5441      echo "$ac_script" | sed 99q >conftest.sed
5442      $as_unset ac_script || ac_script=
5443      # Extract the first word of "sed gsed" to use in msg output
5444 if test -z "$SED"; then
5445 set dummy sed gsed; ac_prog_name=$2
5446 if test "${ac_cv_path_SED+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   ac_path_SED_found=false
5450 # Loop through the user's path and test for each of PROGNAME-LIST
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456   for ac_prog in sed gsed; do
5457   for ac_exec_ext in '' $ac_executable_extensions; do
5458     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5459     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5460     # Check for GNU ac_path_SED and select it if it is found.
5461   # Check for GNU $ac_path_SED
5462 case `"$ac_path_SED" --version 2>&1` in
5463 *GNU*)
5464   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5465 *)
5466   ac_count=0
5467   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5468   while :
5469   do
5470     cat "conftest.in" "conftest.in" >"conftest.tmp"
5471     mv "conftest.tmp" "conftest.in"
5472     cp "conftest.in" "conftest.nl"
5473     echo '' >> "conftest.nl"
5474     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5475     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5476     ac_count=`expr $ac_count + 1`
5477     if test $ac_count -gt ${ac_path_SED_max-0}; then
5478       # Best one so far, save it but keep looking for a better one
5479       ac_cv_path_SED="$ac_path_SED"
5480       ac_path_SED_max=$ac_count
5481     fi
5482     # 10*(2^10) chars as input seems more than enough
5483     test $ac_count -gt 10 && break
5484   done
5485   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5486 esac
5487
5488
5489     $ac_path_SED_found && break 3
5490   done
5491 done
5492
5493 done
5494 IFS=$as_save_IFS
5495
5496
5497 fi
5498
5499 SED="$ac_cv_path_SED"
5500 if test -z "$SED"; then
5501   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5502 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5503    { (exit 1); exit 1; }; }
5504 fi
5505
5506 else
5507   ac_cv_path_SED=$SED
5508 fi
5509
5510 fi
5511 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5512 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5513  SED="$ac_cv_path_SED"
5514   rm -f conftest.sed
5515
5516 test -z "$SED" && SED=sed
5517 Xsed="$SED -e 1s/^X//"
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529 { echo "$as_me:$LINENO: checking for fgrep" >&5
5530 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5531 if test "${ac_cv_path_FGREP+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5535    then ac_cv_path_FGREP="$GREP -F"
5536    else
5537      # Extract the first word of "fgrep" to use in msg output
5538 if test -z "$FGREP"; then
5539 set dummy fgrep; ac_prog_name=$2
5540 if test "${ac_cv_path_FGREP+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   ac_path_FGREP_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5547 do
5548   IFS=$as_save_IFS
5549   test -z "$as_dir" && as_dir=.
5550   for ac_prog in fgrep; do
5551   for ac_exec_ext in '' $ac_executable_extensions; do
5552     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5553     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5554     # Check for GNU ac_path_FGREP and select it if it is found.
5555   # Check for GNU $ac_path_FGREP
5556 case `"$ac_path_FGREP" --version 2>&1` in
5557 *GNU*)
5558   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5559 *)
5560   ac_count=0
5561   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5562   while :
5563   do
5564     cat "conftest.in" "conftest.in" >"conftest.tmp"
5565     mv "conftest.tmp" "conftest.in"
5566     cp "conftest.in" "conftest.nl"
5567     echo 'FGREP' >> "conftest.nl"
5568     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5569     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5570     ac_count=`expr $ac_count + 1`
5571     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5572       # Best one so far, save it but keep looking for a better one
5573       ac_cv_path_FGREP="$ac_path_FGREP"
5574       ac_path_FGREP_max=$ac_count
5575     fi
5576     # 10*(2^10) chars as input seems more than enough
5577     test $ac_count -gt 10 && break
5578   done
5579   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5580 esac
5581
5582
5583     $ac_path_FGREP_found && break 3
5584   done
5585 done
5586
5587 done
5588 IFS=$as_save_IFS
5589
5590
5591 fi
5592
5593 FGREP="$ac_cv_path_FGREP"
5594 if test -z "$FGREP"; then
5595   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5596 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5597    { (exit 1); exit 1; }; }
5598 fi
5599
5600 else
5601   ac_cv_path_FGREP=$FGREP
5602 fi
5603
5604
5605    fi
5606 fi
5607 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5608 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5609  FGREP="$ac_cv_path_FGREP"
5610
5611
5612 test -z "$GREP" && GREP=grep
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 # Check whether --with-gnu-ld was given.
5633 if test "${with_gnu_ld+set}" = set; then
5634   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5635 else
5636   with_gnu_ld=no
5637 fi
5638
5639 ac_prog=ld
5640 if test "$GCC" = yes; then
5641   # Check if gcc -print-prog-name=ld gives a path.
5642   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5644   case $host in
5645   *-*-mingw*)
5646     # gcc leaves a trailing carriage return which upsets mingw
5647     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5648   *)
5649     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5650   esac
5651   case $ac_prog in
5652     # Accept absolute paths.
5653     [\\/]* | ?:[\\/]*)
5654       re_direlt='/[^/][^/]*/\.\./'
5655       # Canonicalize the pathname of ld
5656       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5657       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5658         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5659       done
5660       test -z "$LD" && LD="$ac_prog"
5661       ;;
5662   "")
5663     # If it fails, then pretend we aren't using GCC.
5664     ac_prog=ld
5665     ;;
5666   *)
5667     # If it is relative, then search for the first ld in PATH.
5668     with_gnu_ld=unknown
5669     ;;
5670   esac
5671 elif test "$with_gnu_ld" = yes; then
5672   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5674 else
5675   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5677 fi
5678 if test "${lt_cv_path_LD+set}" = set; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681   if test -z "$LD"; then
5682   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5683   for ac_dir in $PATH; do
5684     IFS="$lt_save_ifs"
5685     test -z "$ac_dir" && ac_dir=.
5686     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5687       lt_cv_path_LD="$ac_dir/$ac_prog"
5688       # Check to see if the program is GNU ld.  I'd rather use --version,
5689       # but apparently some variants of GNU ld only accept -v.
5690       # Break only if it was the GNU/non-GNU ld that we prefer.
5691       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5692       *GNU* | *'with BFD'*)
5693         test "$with_gnu_ld" != no && break
5694         ;;
5695       *)
5696         test "$with_gnu_ld" != yes && break
5697         ;;
5698       esac
5699     fi
5700   done
5701   IFS="$lt_save_ifs"
5702 else
5703   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5704 fi
5705 fi
5706
5707 LD="$lt_cv_path_LD"
5708 if test -n "$LD"; then
5709   { echo "$as_me:$LINENO: result: $LD" >&5
5710 echo "${ECHO_T}$LD" >&6; }
5711 else
5712   { echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6; }
5714 fi
5715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5717    { (exit 1); exit 1; }; }
5718 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5724 case `$LD -v 2>&1 </dev/null` in
5725 *GNU* | *'with BFD'*)
5726   lt_cv_prog_gnu_ld=yes
5727   ;;
5728 *)
5729   lt_cv_prog_gnu_ld=no
5730   ;;
5731 esac
5732 fi
5733 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5735 with_gnu_ld=$lt_cv_prog_gnu_ld
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5746 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5747 if test "${lt_cv_path_NM+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test -n "$NM"; then
5751   # Let the user override the test.
5752   lt_cv_path_NM="$NM"
5753 else
5754   lt_nm_to_check="${ac_tool_prefix}nm"
5755   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5756     lt_nm_to_check="$lt_nm_to_check nm"
5757   fi
5758   for lt_tmp_nm in $lt_nm_to_check; do
5759     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5760     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5761       IFS="$lt_save_ifs"
5762       test -z "$ac_dir" && ac_dir=.
5763       tmp_nm="$ac_dir/$lt_tmp_nm"
5764       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5765         # Check to see if the nm accepts a BSD-compat flag.
5766         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5767         #   nm: unknown option "B" ignored
5768         # Tru64's nm complains that /dev/null is an invalid object file
5769         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5770         */dev/null* | *'Invalid file or object type'*)
5771           lt_cv_path_NM="$tmp_nm -B"
5772           break
5773           ;;
5774         *)
5775           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5776           */dev/null*)
5777             lt_cv_path_NM="$tmp_nm -p"
5778             break
5779             ;;
5780           *)
5781             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5782             continue # so that we can try to find one that supports BSD flags
5783             ;;
5784           esac
5785           ;;
5786         esac
5787       fi
5788     done
5789     IFS="$lt_save_ifs"
5790   done
5791   : ${lt_cv_path_NM=no}
5792 fi
5793 fi
5794 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5795 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5796 if test "$lt_cv_path_NM" != "no"; then
5797   NM="$lt_cv_path_NM"
5798 else
5799   # Didn't find any BSD compatible name lister, look for dumpbin.
5800   if test -n "$ac_tool_prefix"; then
5801   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5802   do
5803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5807 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if test -n "$DUMPBIN"; then
5811   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818   for ac_exec_ext in '' $ac_executable_extensions; do
5819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 DUMPBIN=$ac_cv_prog_DUMPBIN
5831 if test -n "$DUMPBIN"; then
5832   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5833 echo "${ECHO_T}$DUMPBIN" >&6; }
5834 else
5835   { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5837 fi
5838
5839
5840     test -n "$DUMPBIN" && break
5841   done
5842 fi
5843 if test -z "$DUMPBIN"; then
5844   ac_ct_DUMPBIN=$DUMPBIN
5845   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5846 do
5847   # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$ac_ct_DUMPBIN"; then
5855   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5875 if test -n "$ac_ct_DUMPBIN"; then
5876   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5877 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5881 fi
5882
5883
5884   test -n "$ac_ct_DUMPBIN" && break
5885 done
5886
5887   if test "x$ac_ct_DUMPBIN" = x; then
5888     DUMPBIN=":"
5889   else
5890     case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5893 whose name does not start with the host triplet.  If you think this
5894 configuration is useful to you, please write to autoconf@gnu.org." >&5
5895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5896 whose name does not start with the host triplet.  If you think this
5897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900     DUMPBIN=$ac_ct_DUMPBIN
5901   fi
5902 fi
5903
5904
5905   if test "$DUMPBIN" != ":"; then
5906     NM="$DUMPBIN"
5907   fi
5908 fi
5909 test -z "$NM" && NM=nm
5910
5911
5912
5913
5914
5915
5916 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5917 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5918 if test "${lt_cv_nm_interface+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   lt_cv_nm_interface="BSD nm"
5922   echo "int some_variable = 0;" > conftest.$ac_ext
5923   (eval echo "\"\$as_me:5923: $ac_compile\"" >&5)
5924   (eval "$ac_compile" 2>conftest.err)
5925   cat conftest.err >&5
5926   (eval echo "\"\$as_me:5926: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5927   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5928   cat conftest.err >&5
5929   (eval echo "\"\$as_me:5929: output\"" >&5)
5930   cat conftest.out >&5
5931   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5932     lt_cv_nm_interface="MS dumpbin"
5933   fi
5934   rm -f conftest*
5935 fi
5936 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5937 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5938
5939 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5940 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5941 LN_S=$as_ln_s
5942 if test "$LN_S" = "ln -s"; then
5943   { echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5947 echo "${ECHO_T}no, using $LN_S" >&6; }
5948 fi
5949
5950 # find the maximum length of command line arguments
5951 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5952 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5953 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956     i=0
5957   teststring="ABCD"
5958
5959   case $build_os in
5960   msdosdjgpp*)
5961     # On DJGPP, this test can blow up pretty badly due to problems in libc
5962     # (any single argument exceeding 2000 bytes causes a buffer overrun
5963     # during glob expansion).  Even if it were fixed, the result of this
5964     # check would be larger than it should be.
5965     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5966     ;;
5967
5968   gnu*)
5969     # Under GNU Hurd, this test is not required because there is
5970     # no limit to the length of command line arguments.
5971     # Libtool will interpret -1 as no limit whatsoever
5972     lt_cv_sys_max_cmd_len=-1;
5973     ;;
5974
5975   cygwin* | mingw* | cegcc*)
5976     # On Win9x/ME, this test blows up -- it succeeds, but takes
5977     # about 5 minutes as the teststring grows exponentially.
5978     # Worse, since 9x/ME are not pre-emptively multitasking,
5979     # you end up with a "frozen" computer, even though with patience
5980     # the test eventually succeeds (with a max line length of 256k).
5981     # Instead, let's just punt: use the minimum linelength reported by
5982     # all of the supported platforms: 8192 (on NT/2K/XP).
5983     lt_cv_sys_max_cmd_len=8192;
5984     ;;
5985
5986   amigaos*)
5987     # On AmigaOS with pdksh, this test takes hours, literally.
5988     # So we just punt and use a minimum line length of 8192.
5989     lt_cv_sys_max_cmd_len=8192;
5990     ;;
5991
5992   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5993     # This has been around since 386BSD, at least.  Likely further.
5994     if test -x /sbin/sysctl; then
5995       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5996     elif test -x /usr/sbin/sysctl; then
5997       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5998     else
5999       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6000     fi
6001     # And add a safety zone
6002     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6003     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6004     ;;
6005
6006   interix*)
6007     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6008     lt_cv_sys_max_cmd_len=196608
6009     ;;
6010
6011   osf*)
6012     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6013     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6014     # nice to cause kernel panics so lets avoid the loop below.
6015     # First set a reasonable default.
6016     lt_cv_sys_max_cmd_len=16384
6017     #
6018     if test -x /sbin/sysconfig; then
6019       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6020         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6021       esac
6022     fi
6023     ;;
6024   sco3.2v5*)
6025     lt_cv_sys_max_cmd_len=102400
6026     ;;
6027   sysv5* | sco5v6* | sysv4.2uw2*)
6028     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6029     if test -n "$kargmax"; then
6030       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6031     else
6032       lt_cv_sys_max_cmd_len=32768
6033     fi
6034     ;;
6035   *)
6036     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6037     if test -n "$lt_cv_sys_max_cmd_len"; then
6038       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6039       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6040     else
6041       # Make teststring a little bigger before we do anything with it.
6042       # a 1K string should be a reasonable start.
6043       for i in 1 2 3 4 5 6 7 8 ; do
6044         teststring=$teststring$teststring
6045       done
6046       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6047       # If test is not a shell built-in, we'll probably end up computing a
6048       # maximum length that is only half of the actual maximum length, but
6049       # we can't tell.
6050       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6051                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6052               test $i != 17 # 1/2 MB should be enough
6053       do
6054         i=`expr $i + 1`
6055         teststring=$teststring$teststring
6056       done
6057       # Only check the string length outside the loop.
6058       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6059       teststring=
6060       # Add a significant safety factor because C++ compilers can tack on
6061       # massive amounts of additional arguments before passing them to the
6062       # linker.  It appears as though 1/2 is a usable value.
6063       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6064     fi
6065     ;;
6066   esac
6067
6068 fi
6069
6070 if test -n $lt_cv_sys_max_cmd_len ; then
6071   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6072 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6073 else
6074   { echo "$as_me:$LINENO: result: none" >&5
6075 echo "${ECHO_T}none" >&6; }
6076 fi
6077 max_cmd_len=$lt_cv_sys_max_cmd_len
6078
6079
6080
6081
6082
6083
6084 : ${CP="cp -f"}
6085 : ${MV="mv -f"}
6086 : ${RM="rm -f"}
6087
6088 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6089 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6090 # Try some XSI features
6091 xsi_shell=no
6092 ( _lt_dummy="a/b/c"
6093   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6094       = c,a/b,, \
6095     && eval 'test $(( 1 + 1 )) -eq 2 \
6096     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6097   && xsi_shell=yes
6098 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6099 echo "${ECHO_T}$xsi_shell" >&6; }
6100
6101
6102 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6103 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6104 lt_shell_append=no
6105 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6106     >/dev/null 2>&1 \
6107   && lt_shell_append=yes
6108 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6109 echo "${ECHO_T}$lt_shell_append" >&6; }
6110
6111
6112 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6113   lt_unset=unset
6114 else
6115   lt_unset=false
6116 fi
6117
6118
6119
6120
6121
6122 # test EBCDIC or ASCII
6123 case `echo X|tr X '\101'` in
6124  A) # ASCII based system
6125     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6126   lt_SP2NL='tr \040 \012'
6127   lt_NL2SP='tr \015\012 \040\040'
6128   ;;
6129  *) # EBCDIC based system
6130   lt_SP2NL='tr \100 \n'
6131   lt_NL2SP='tr \r\n \100\100'
6132   ;;
6133 esac
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6144 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6145 if test "${lt_cv_ld_reload_flag+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   lt_cv_ld_reload_flag='-r'
6149 fi
6150 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6151 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6152 reload_flag=$lt_cv_ld_reload_flag
6153 case $reload_flag in
6154 "" | " "*) ;;
6155 *) reload_flag=" $reload_flag" ;;
6156 esac
6157 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6158 case $host_os in
6159   darwin*)
6160     if test "$GCC" = yes; then
6161       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6162     else
6163       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6164     fi
6165     ;;
6166 esac
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 if test -n "$ac_tool_prefix"; then
6177   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6178 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   if test -n "$OBJDUMP"; then
6185   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 OBJDUMP=$ac_cv_prog_OBJDUMP
6205 if test -n "$OBJDUMP"; then
6206   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6207 echo "${ECHO_T}$OBJDUMP" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213
6214 fi
6215 if test -z "$ac_cv_prog_OBJDUMP"; then
6216   ac_ct_OBJDUMP=$OBJDUMP
6217   # Extract the first word of "objdump", so it can be a program name with args.
6218 set dummy objdump; ac_word=$2
6219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   if test -n "$ac_ct_OBJDUMP"; then
6225   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232   for ac_exec_ext in '' $ac_executable_extensions; do
6233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239 done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6245 if test -n "$ac_ct_OBJDUMP"; then
6246   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6247 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6248 else
6249   { echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6; }
6251 fi
6252
6253   if test "x$ac_ct_OBJDUMP" = x; then
6254     OBJDUMP="false"
6255   else
6256     case $cross_compiling:$ac_tool_warned in
6257 yes:)
6258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet.  If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&5
6261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6262 whose name does not start with the host triplet.  If you think this
6263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266     OBJDUMP=$ac_ct_OBJDUMP
6267   fi
6268 else
6269   OBJDUMP="$ac_cv_prog_OBJDUMP"
6270 fi
6271
6272 test -z "$OBJDUMP" && OBJDUMP=objdump
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6283 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6284 if test "${lt_cv_deplibs_check_method+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   lt_cv_file_magic_cmd='$MAGIC_CMD'
6288 lt_cv_file_magic_test_file=
6289 lt_cv_deplibs_check_method='unknown'
6290 # Need to set the preceding variable on all platforms that support
6291 # interlibrary dependencies.
6292 # 'none' -- dependencies not supported.
6293 # `unknown' -- same as none, but documents that we really don't know.
6294 # 'pass_all' -- all dependencies passed with no checks.
6295 # 'test_compile' -- check by making test program.
6296 # 'file_magic [[regex]]' -- check by looking for files in library path
6297 # which responds to the $file_magic_cmd with a given extended regex.
6298 # If you have `file' or equivalent on your system and you're not sure
6299 # whether `pass_all' will *always* work, you probably want this one.
6300
6301 case $host_os in
6302 aix[4-9]*)
6303   lt_cv_deplibs_check_method=pass_all
6304   ;;
6305
6306 beos*)
6307   lt_cv_deplibs_check_method=pass_all
6308   ;;
6309
6310 bsdi[45]*)
6311   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6312   lt_cv_file_magic_cmd='/usr/bin/file -L'
6313   lt_cv_file_magic_test_file=/shlib/libc.so
6314   ;;
6315
6316 cygwin*)
6317   # func_win32_libid is a shell function defined in ltmain.sh
6318   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6319   lt_cv_file_magic_cmd='func_win32_libid'
6320   ;;
6321
6322 mingw* | pw32*)
6323   # Base MSYS/MinGW do not provide the 'file' command needed by
6324   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6325   # unless we find 'file', for example because we are cross-compiling.
6326   if ( file / ) >/dev/null 2>&1; then
6327     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6328     lt_cv_file_magic_cmd='func_win32_libid'
6329   else
6330     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6331     lt_cv_file_magic_cmd='$OBJDUMP -f'
6332   fi
6333   ;;
6334
6335 cegcc)
6336   # use the weaker test based on 'objdump'. See mingw*.
6337   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6338   lt_cv_file_magic_cmd='$OBJDUMP -f'
6339   ;;
6340
6341 darwin* | rhapsody*)
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 freebsd* | dragonfly*)
6346   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6347     case $host_cpu in
6348     i*86 )
6349       # Not sure whether the presence of OpenBSD here was a mistake.
6350       # Let's accept both of them until this is cleared up.
6351       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6352       lt_cv_file_magic_cmd=/usr/bin/file
6353       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6354       ;;
6355     esac
6356   else
6357     lt_cv_deplibs_check_method=pass_all
6358   fi
6359   ;;
6360
6361 gnu*)
6362   lt_cv_deplibs_check_method=pass_all
6363   ;;
6364
6365 hpux10.20* | hpux11*)
6366   lt_cv_file_magic_cmd=/usr/bin/file
6367   case $host_cpu in
6368   ia64*)
6369     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6370     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6371     ;;
6372   hppa*64*)
6373     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]'
6374     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6375     ;;
6376   *)
6377     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6378     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6379     ;;
6380   esac
6381   ;;
6382
6383 interix[3-9]*)
6384   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6385   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6386   ;;
6387
6388 irix5* | irix6* | nonstopux*)
6389   case $LD in
6390   *-32|*"-32 ") libmagic=32-bit;;
6391   *-n32|*"-n32 ") libmagic=N32;;
6392   *-64|*"-64 ") libmagic=64-bit;;
6393   *) libmagic=never-match;;
6394   esac
6395   lt_cv_deplibs_check_method=pass_all
6396   ;;
6397
6398 # This must be Linux ELF.
6399 linux* | k*bsd*-gnu)
6400   lt_cv_deplibs_check_method=pass_all
6401   ;;
6402
6403 netbsd*)
6404   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6405     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6406   else
6407     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6408   fi
6409   ;;
6410
6411 newos6*)
6412   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6413   lt_cv_file_magic_cmd=/usr/bin/file
6414   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6415   ;;
6416
6417 *nto* | *qnx*)
6418   lt_cv_deplibs_check_method=pass_all
6419   ;;
6420
6421 openbsd*)
6422   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6423     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6424   else
6425     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6426   fi
6427   ;;
6428
6429 osf3* | osf4* | osf5*)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 rdos*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436
6437 solaris*)
6438   lt_cv_deplibs_check_method=pass_all
6439   ;;
6440
6441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6442   lt_cv_deplibs_check_method=pass_all
6443   ;;
6444
6445 sysv4 | sysv4.3*)
6446   case $host_vendor in
6447   motorola)
6448     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]'
6449     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6450     ;;
6451   ncr)
6452     lt_cv_deplibs_check_method=pass_all
6453     ;;
6454   sequent)
6455     lt_cv_file_magic_cmd='/bin/file'
6456     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6457     ;;
6458   sni)
6459     lt_cv_file_magic_cmd='/bin/file'
6460     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6461     lt_cv_file_magic_test_file=/lib/libc.so
6462     ;;
6463   siemens)
6464     lt_cv_deplibs_check_method=pass_all
6465     ;;
6466   pc)
6467     lt_cv_deplibs_check_method=pass_all
6468     ;;
6469   esac
6470   ;;
6471
6472 tpf*)
6473   lt_cv_deplibs_check_method=pass_all
6474   ;;
6475 esac
6476
6477 fi
6478 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6479 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6480 file_magic_cmd=$lt_cv_file_magic_cmd
6481 deplibs_check_method=$lt_cv_deplibs_check_method
6482 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495 if test -n "$ac_tool_prefix"; then
6496   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}ar; ac_word=$2
6498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6500 if test "${ac_cv_prog_AR+set}" = set; then
6501   echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503   if test -n "$AR"; then
6504   ac_cv_prog_AR="$AR" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511   for ac_exec_ext in '' $ac_executable_extensions; do
6512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513     ac_cv_prog_AR="${ac_tool_prefix}ar"
6514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515     break 2
6516   fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 AR=$ac_cv_prog_AR
6524 if test -n "$AR"; then
6525   { echo "$as_me:$LINENO: result: $AR" >&5
6526 echo "${ECHO_T}$AR" >&6; }
6527 else
6528   { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6530 fi
6531
6532
6533 fi
6534 if test -z "$ac_cv_prog_AR"; then
6535   ac_ct_AR=$AR
6536   # Extract the first word of "ar", so it can be a program name with args.
6537 set dummy ar; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   if test -n "$ac_ct_AR"; then
6544   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551   for ac_exec_ext in '' $ac_executable_extensions; do
6552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553     ac_cv_prog_ac_ct_AR="ar"
6554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555     break 2
6556   fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 fi
6562 fi
6563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6564 if test -n "$ac_ct_AR"; then
6565   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6566 echo "${ECHO_T}$ac_ct_AR" >&6; }
6567 else
6568   { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6570 fi
6571
6572   if test "x$ac_ct_AR" = x; then
6573     AR="false"
6574   else
6575     case $cross_compiling:$ac_tool_warned in
6576 yes:)
6577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6578 whose name does not start with the host triplet.  If you think this
6579 configuration is useful to you, please write to autoconf@gnu.org." >&5
6580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6581 whose name does not start with the host triplet.  If you think this
6582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585     AR=$ac_ct_AR
6586   fi
6587 else
6588   AR="$ac_cv_prog_AR"
6589 fi
6590
6591 test -z "$AR" && AR=ar
6592 test -z "$AR_FLAGS" && AR_FLAGS=cru
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604 if test -n "$ac_tool_prefix"; then
6605   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6606 set dummy ${ac_tool_prefix}strip; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_prog_STRIP+set}" = set; then
6610   echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612   if test -n "$STRIP"; then
6613   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6614 else
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620   for ac_exec_ext in '' $ac_executable_extensions; do
6621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624     break 2
6625   fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630 fi
6631 fi
6632 STRIP=$ac_cv_prog_STRIP
6633 if test -n "$STRIP"; then
6634   { echo "$as_me:$LINENO: result: $STRIP" >&5
6635 echo "${ECHO_T}$STRIP" >&6; }
6636 else
6637   { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6639 fi
6640
6641
6642 fi
6643 if test -z "$ac_cv_prog_STRIP"; then
6644   ac_ct_STRIP=$STRIP
6645   # Extract the first word of "strip", so it can be a program name with args.
6646 set dummy strip; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   if test -n "$ac_ct_STRIP"; then
6653   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658   IFS=$as_save_IFS
6659   test -z "$as_dir" && as_dir=.
6660   for ac_exec_ext in '' $ac_executable_extensions; do
6661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662     ac_cv_prog_ac_ct_STRIP="strip"
6663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6673 if test -n "$ac_ct_STRIP"; then
6674   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6675 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6680
6681   if test "x$ac_ct_STRIP" = x; then
6682     STRIP=":"
6683   else
6684     case $cross_compiling:$ac_tool_warned in
6685 yes:)
6686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6687 whose name does not start with the host triplet.  If you think this
6688 configuration is useful to you, please write to autoconf@gnu.org." >&5
6689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6690 whose name does not start with the host triplet.  If you think this
6691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694     STRIP=$ac_ct_STRIP
6695   fi
6696 else
6697   STRIP="$ac_cv_prog_STRIP"
6698 fi
6699
6700 test -z "$STRIP" && STRIP=:
6701
6702
6703
6704
6705
6706
6707 if test -n "$ac_tool_prefix"; then
6708   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_RANLIB+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   if test -n "$RANLIB"; then
6716   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 RANLIB=$ac_cv_prog_RANLIB
6736 if test -n "$RANLIB"; then
6737   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6738 echo "${ECHO_T}$RANLIB" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_RANLIB"; then
6747   ac_ct_RANLIB=$RANLIB
6748   # Extract the first word of "ranlib", so it can be a program name with args.
6749 set dummy ranlib; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   if test -n "$ac_ct_RANLIB"; then
6756   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_prog_ac_ct_RANLIB="ranlib"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6776 if test -n "$ac_ct_RANLIB"; then
6777   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6778 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6779 else
6780   { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6782 fi
6783
6784   if test "x$ac_ct_RANLIB" = x; then
6785     RANLIB=":"
6786   else
6787     case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6790 whose name does not start with the host triplet.  If you think this
6791 configuration is useful to you, please write to autoconf@gnu.org." >&5
6792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6793 whose name does not start with the host triplet.  If you think this
6794 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     RANLIB=$ac_ct_RANLIB
6798   fi
6799 else
6800   RANLIB="$ac_cv_prog_RANLIB"
6801 fi
6802
6803 test -z "$RANLIB" && RANLIB=:
6804
6805
6806
6807
6808
6809
6810 # Determine commands to create old-style static archives.
6811 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6812 old_postinstall_cmds='chmod 644 $oldlib'
6813 old_postuninstall_cmds=
6814
6815 if test -n "$RANLIB"; then
6816   case $host_os in
6817   openbsd*)
6818     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6819     ;;
6820   *)
6821     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6822     ;;
6823   esac
6824   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6825 fi
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860 # If no C compiler was specified, use CC.
6861 LTCC=${LTCC-"$CC"}
6862
6863 # If no C compiler flags were specified, use CFLAGS.
6864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6865
6866 # Allow CC to be a program name with arguments.
6867 compiler=$CC
6868
6869
6870 # Check for command to grab the raw symbol name followed by C symbol from nm.
6871 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6872 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6873 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876
6877 # These are sane defaults that work on at least a few old systems.
6878 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6879
6880 # Character class describing NM global symbol codes.
6881 symcode='[BCDEGRST]'
6882
6883 # Regexp to match symbols that can be accessed directly from C.
6884 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6885
6886 # Define system-specific variables.
6887 case $host_os in
6888 aix*)
6889   symcode='[BCDT]'
6890   ;;
6891 cygwin* | mingw* | pw32* | cegcc*)
6892   symcode='[ABCDGISTW]'
6893   ;;
6894 hpux*)
6895   if test "$host_cpu" = ia64; then
6896     symcode='[ABCDEGRST]'
6897   fi
6898   ;;
6899 irix* | nonstopux*)
6900   symcode='[BCDEGRST]'
6901   ;;
6902 osf*)
6903   symcode='[BCDEGQRST]'
6904   ;;
6905 solaris*)
6906   symcode='[BDRT]'
6907   ;;
6908 sco3.2v5*)
6909   symcode='[DT]'
6910   ;;
6911 sysv4.2uw2*)
6912   symcode='[DT]'
6913   ;;
6914 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6915   symcode='[ABDT]'
6916   ;;
6917 sysv4)
6918   symcode='[DFNSTU]'
6919   ;;
6920 esac
6921
6922 # If we're using GNU nm, then use its standard symbol codes.
6923 case `$NM -V 2>&1` in
6924 *GNU* | *'with BFD'*)
6925   symcode='[ABCDGIRSTW]' ;;
6926 esac
6927
6928 # Transform an extracted symbol line into a proper C declaration.
6929 # Some systems (esp. on ia64) link data and code symbols differently,
6930 # so use this general approach.
6931 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6932
6933 # Transform an extracted symbol line into symbol name and symbol address
6934 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6935 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'"
6936
6937 # Handle CRLF in mingw tool chain
6938 opt_cr=
6939 case $build_os in
6940 mingw*)
6941   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6942   ;;
6943 esac
6944
6945 # Try without a prefix underscore, then with it.
6946 for ac_symprfx in "" "_"; do
6947
6948   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6949   symxfrm="\\1 $ac_symprfx\\2 \\2"
6950
6951   # Write the raw and C identifiers.
6952   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6953     # Fake it for dumpbin and say T for any non-static function
6954     # and D for any global variable.
6955     # Also find C++ and __fastcall symbols from MSVC++,
6956     # which start with @ or ?.
6957     lt_cv_sys_global_symbol_pipe="$AWK '"\
6958 "     {last_section=section; section=\$ 3};"\
6959 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6960 "     \$ 0!~/External *\|/{next};"\
6961 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6962 "     {if(hide[section]) next};"\
6963 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6964 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6965 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6966 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6967 "     ' prfx=^$ac_symprfx"
6968   else
6969     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6970   fi
6971
6972   # Check to see that the pipe works correctly.
6973   pipe_works=no
6974
6975   rm -f conftest*
6976   cat > conftest.$ac_ext <<_LT_EOF
6977 #ifdef __cplusplus
6978 extern "C" {
6979 #endif
6980 char nm_test_var;
6981 void nm_test_func(void);
6982 void nm_test_func(void){}
6983 #ifdef __cplusplus
6984 }
6985 #endif
6986 int main(){nm_test_var='a';nm_test_func();return(0);}
6987 _LT_EOF
6988
6989   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990   (eval $ac_compile) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }; then
6994     # Now try to grab the symbols.
6995     nlist=conftest.nm
6996     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6997   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && test -s "$nlist"; then
7001       # Try sorting and uniquifying the output.
7002       if sort "$nlist" | uniq > "$nlist"T; then
7003         mv -f "$nlist"T "$nlist"
7004       else
7005         rm -f "$nlist"T
7006       fi
7007
7008       # Make sure that we snagged all the symbols we need.
7009       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7010         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7011           cat <<_LT_EOF > conftest.$ac_ext
7012 #ifdef __cplusplus
7013 extern "C" {
7014 #endif
7015
7016 _LT_EOF
7017           # Now generate the symbol file.
7018           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7019
7020           cat <<_LT_EOF >> conftest.$ac_ext
7021
7022 /* The mapping between symbol names and symbols.  */
7023 const struct {
7024   const char *name;
7025   void       *address;
7026 }
7027 lt__PROGRAM__LTX_preloaded_symbols[] =
7028 {
7029   { "@PROGRAM@", (void *) 0 },
7030 _LT_EOF
7031           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7032           cat <<\_LT_EOF >> conftest.$ac_ext
7033   {0, (void *) 0}
7034 };
7035
7036 /* This works around a problem in FreeBSD linker */
7037 #ifdef FREEBSD_WORKAROUND
7038 static const void *lt_preloaded_setup() {
7039   return lt__PROGRAM__LTX_preloaded_symbols;
7040 }
7041 #endif
7042
7043 #ifdef __cplusplus
7044 }
7045 #endif
7046 _LT_EOF
7047           # Now try linking the two files.
7048           mv conftest.$ac_objext conftstm.$ac_objext
7049           lt_save_LIBS="$LIBS"
7050           lt_save_CFLAGS="$CFLAGS"
7051           LIBS="conftstm.$ac_objext"
7052           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7053           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054   (eval $ac_link) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7058             pipe_works=yes
7059           fi
7060           LIBS="$lt_save_LIBS"
7061           CFLAGS="$lt_save_CFLAGS"
7062         else
7063           echo "cannot find nm_test_func in $nlist" >&5
7064         fi
7065       else
7066         echo "cannot find nm_test_var in $nlist" >&5
7067       fi
7068     else
7069       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7070     fi
7071   else
7072     echo "$progname: failed program was:" >&5
7073     cat conftest.$ac_ext >&5
7074   fi
7075   rm -rf conftest* conftst*
7076
7077   # Do not use the global_symbol_pipe unless it works.
7078   if test "$pipe_works" = yes; then
7079     break
7080   else
7081     lt_cv_sys_global_symbol_pipe=
7082   fi
7083 done
7084
7085 fi
7086
7087 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7088   lt_cv_sys_global_symbol_to_cdecl=
7089 fi
7090 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7091   { echo "$as_me:$LINENO: result: failed" >&5
7092 echo "${ECHO_T}failed" >&6; }
7093 else
7094   { echo "$as_me:$LINENO: result: ok" >&5
7095 echo "${ECHO_T}ok" >&6; }
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 # Check whether --enable-libtool-lock was given.
7120 if test "${enable_libtool_lock+set}" = set; then
7121   enableval=$enable_libtool_lock;
7122 fi
7123
7124 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7125
7126 # Some flags need to be propagated to the compiler or linker for good
7127 # libtool support.
7128 case $host in
7129 ia64-*-hpux*)
7130   # Find out which ABI we are using.
7131   echo 'int i;' > conftest.$ac_ext
7132   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133   (eval $ac_compile) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); }; then
7137     case `/usr/bin/file conftest.$ac_objext` in
7138       *ELF-32*)
7139         HPUX_IA64_MODE="32"
7140         ;;
7141       *ELF-64*)
7142         HPUX_IA64_MODE="64"
7143         ;;
7144     esac
7145   fi
7146   rm -rf conftest*
7147   ;;
7148 *-*-irix6*)
7149   # Find out which ABI we are using.
7150   echo '#line 7150 "configure"' > conftest.$ac_ext
7151   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7152   (eval $ac_compile) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; then
7156     if test "$lt_cv_prog_gnu_ld" = yes; then
7157       case `/usr/bin/file conftest.$ac_objext` in
7158         *32-bit*)
7159           LD="${LD-ld} -melf32bsmip"
7160           ;;
7161         *N32*)
7162           LD="${LD-ld} -melf32bmipn32"
7163           ;;
7164         *64-bit*)
7165           LD="${LD-ld} -melf64bmip"
7166         ;;
7167       esac
7168     else
7169       case `/usr/bin/file conftest.$ac_objext` in
7170         *32-bit*)
7171           LD="${LD-ld} -32"
7172           ;;
7173         *N32*)
7174           LD="${LD-ld} -n32"
7175           ;;
7176         *64-bit*)
7177           LD="${LD-ld} -64"
7178           ;;
7179       esac
7180     fi
7181   fi
7182   rm -rf conftest*
7183   ;;
7184
7185 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7186 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7187   # Find out which ABI we are using.
7188   echo 'int i;' > conftest.$ac_ext
7189   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190   (eval $ac_compile) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; then
7194     case `/usr/bin/file conftest.o` in
7195       *32-bit*)
7196         case $host in
7197           x86_64-*kfreebsd*-gnu)
7198             LD="${LD-ld} -m elf_i386_fbsd"
7199             ;;
7200           x86_64-*linux*)
7201             LD="${LD-ld} -m elf_i386"
7202             ;;
7203           ppc64-*linux*|powerpc64-*linux*)
7204             LD="${LD-ld} -m elf32ppclinux"
7205             ;;
7206           s390x-*linux*)
7207             LD="${LD-ld} -m elf_s390"
7208             ;;
7209           sparc64-*linux*)
7210             LD="${LD-ld} -m elf32_sparc"
7211             ;;
7212         esac
7213         ;;
7214       *64-bit*)
7215         case $host in
7216           x86_64-*kfreebsd*-gnu)
7217             LD="${LD-ld} -m elf_x86_64_fbsd"
7218             ;;
7219           x86_64-*linux*)
7220             LD="${LD-ld} -m elf_x86_64"
7221             ;;
7222           ppc*-*linux*|powerpc*-*linux*)
7223             LD="${LD-ld} -m elf64ppc"
7224             ;;
7225           s390*-*linux*|s390*-*tpf*)
7226             LD="${LD-ld} -m elf64_s390"
7227             ;;
7228           sparc*-*linux*)
7229             LD="${LD-ld} -m elf64_sparc"
7230             ;;
7231         esac
7232         ;;
7233     esac
7234   fi
7235   rm -rf conftest*
7236   ;;
7237
7238 *-*-sco3.2v5*)
7239   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7240   SAVE_CFLAGS="$CFLAGS"
7241   CFLAGS="$CFLAGS -belf"
7242   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7243 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7244 if test "${lt_cv_cc_needs_belf+set}" = set; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247   ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
7253      cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259
7260 int
7261 main ()
7262 {
7263
7264   ;
7265   return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (ac_try="$ac_link"
7270 case "(($ac_try" in
7271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272   *) ac_try_echo=$ac_try;;
7273 esac
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275   (eval "$ac_link") 2>conftest.er1
7276   ac_status=$?
7277   grep -v '^ *+' conftest.er1 >conftest.err
7278   rm -f conftest.er1
7279   cat conftest.err >&5
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } && {
7282          test -z "$ac_c_werror_flag" ||
7283          test ! -s conftest.err
7284        } && test -s conftest$ac_exeext &&
7285        $as_test_x conftest$ac_exeext; then
7286   lt_cv_cc_needs_belf=yes
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291         lt_cv_cc_needs_belf=no
7292 fi
7293
7294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7295       conftest$ac_exeext conftest.$ac_ext
7296      ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301
7302 fi
7303 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7304 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7305   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7306     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7307     CFLAGS="$SAVE_CFLAGS"
7308   fi
7309   ;;
7310 sparc*-*solaris*)
7311   # Find out which ABI we are using.
7312   echo 'int i;' > conftest.$ac_ext
7313   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314   (eval $ac_compile) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; then
7318     case `/usr/bin/file conftest.o` in
7319     *64-bit*)
7320       case $lt_cv_prog_gnu_ld in
7321       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7322       *)
7323         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7324           LD="${LD-ld} -64"
7325         fi
7326         ;;
7327       esac
7328       ;;
7329     esac
7330   fi
7331   rm -rf conftest*
7332   ;;
7333 esac
7334
7335 need_locks="$enable_libtool_lock"
7336
7337
7338   case $host_os in
7339     rhapsody* | darwin*)
7340     if test -n "$ac_tool_prefix"; then
7341   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   if test -n "$DSYMUTIL"; then
7349   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7369 if test -n "$DSYMUTIL"; then
7370   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7371 echo "${ECHO_T}$DSYMUTIL" >&6; }
7372 else
7373   { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_DSYMUTIL"; then
7380   ac_ct_DSYMUTIL=$DSYMUTIL
7381   # Extract the first word of "dsymutil", so it can be a program name with args.
7382 set dummy dsymutil; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   if test -n "$ac_ct_DSYMUTIL"; then
7389   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7409 if test -n "$ac_ct_DSYMUTIL"; then
7410   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7411 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417   if test "x$ac_ct_DSYMUTIL" = x; then
7418     DSYMUTIL=":"
7419   else
7420     case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7423 whose name does not start with the host triplet.  If you think this
7424 configuration is useful to you, please write to autoconf@gnu.org." >&5
7425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7426 whose name does not start with the host triplet.  If you think this
7427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7428 ac_tool_warned=yes ;;
7429 esac
7430     DSYMUTIL=$ac_ct_DSYMUTIL
7431   fi
7432 else
7433   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7434 fi
7435
7436     if test -n "$ac_tool_prefix"; then
7437   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   if test -n "$NMEDIT"; then
7445   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452   for ac_exec_ext in '' $ac_executable_extensions; do
7453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 NMEDIT=$ac_cv_prog_NMEDIT
7465 if test -n "$NMEDIT"; then
7466   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7467 echo "${ECHO_T}$NMEDIT" >&6; }
7468 else
7469   { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7471 fi
7472
7473
7474 fi
7475 if test -z "$ac_cv_prog_NMEDIT"; then
7476   ac_ct_NMEDIT=$NMEDIT
7477   # Extract the first word of "nmedit", so it can be a program name with args.
7478 set dummy nmedit; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   if test -n "$ac_ct_NMEDIT"; then
7485   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492   for ac_exec_ext in '' $ac_executable_extensions; do
7493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7505 if test -n "$ac_ct_NMEDIT"; then
7506   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7507 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7508 else
7509   { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7511 fi
7512
7513   if test "x$ac_ct_NMEDIT" = x; then
7514     NMEDIT=":"
7515   else
7516     case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7519 whose name does not start with the host triplet.  If you think this
7520 configuration is useful to you, please write to autoconf@gnu.org." >&5
7521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7522 whose name does not start with the host triplet.  If you think this
7523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7524 ac_tool_warned=yes ;;
7525 esac
7526     NMEDIT=$ac_ct_NMEDIT
7527   fi
7528 else
7529   NMEDIT="$ac_cv_prog_NMEDIT"
7530 fi
7531
7532     if test -n "$ac_tool_prefix"; then
7533   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_prog_LIPO+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   if test -n "$LIPO"; then
7541   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548   for ac_exec_ext in '' $ac_executable_extensions; do
7549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 LIPO=$ac_cv_prog_LIPO
7561 if test -n "$LIPO"; then
7562   { echo "$as_me:$LINENO: result: $LIPO" >&5
7563 echo "${ECHO_T}$LIPO" >&6; }
7564 else
7565   { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7567 fi
7568
7569
7570 fi
7571 if test -z "$ac_cv_prog_LIPO"; then
7572   ac_ct_LIPO=$LIPO
7573   # Extract the first word of "lipo", so it can be a program name with args.
7574 set dummy lipo; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   if test -n "$ac_ct_LIPO"; then
7581   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588   for ac_exec_ext in '' $ac_executable_extensions; do
7589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590     ac_cv_prog_ac_ct_LIPO="lipo"
7591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595 done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7601 if test -n "$ac_ct_LIPO"; then
7602   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7603 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7604 else
7605   { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7608
7609   if test "x$ac_ct_LIPO" = x; then
7610     LIPO=":"
7611   else
7612     case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7615 whose name does not start with the host triplet.  If you think this
7616 configuration is useful to you, please write to autoconf@gnu.org." >&5
7617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7618 whose name does not start with the host triplet.  If you think this
7619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622     LIPO=$ac_ct_LIPO
7623   fi
7624 else
7625   LIPO="$ac_cv_prog_LIPO"
7626 fi
7627
7628     if test -n "$ac_tool_prefix"; then
7629   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_prog_OTOOL+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   if test -n "$OTOOL"; then
7637   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644   for ac_exec_ext in '' $ac_executable_extensions; do
7645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 OTOOL=$ac_cv_prog_OTOOL
7657 if test -n "$OTOOL"; then
7658   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7659 echo "${ECHO_T}$OTOOL" >&6; }
7660 else
7661   { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_OTOOL"; then
7668   ac_ct_OTOOL=$OTOOL
7669   # Extract the first word of "otool", so it can be a program name with args.
7670 set dummy otool; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   if test -n "$ac_ct_OTOOL"; then
7677   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_prog_ac_ct_OTOOL="otool"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7697 if test -n "$ac_ct_OTOOL"; then
7698   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7699 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7700 else
7701   { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7703 fi
7704
7705   if test "x$ac_ct_OTOOL" = x; then
7706     OTOOL=":"
7707   else
7708     case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7711 whose name does not start with the host triplet.  If you think this
7712 configuration is useful to you, please write to autoconf@gnu.org." >&5
7713 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7714 whose name does not start with the host triplet.  If you think this
7715 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7716 ac_tool_warned=yes ;;
7717 esac
7718     OTOOL=$ac_ct_OTOOL
7719   fi
7720 else
7721   OTOOL="$ac_cv_prog_OTOOL"
7722 fi
7723
7724     if test -n "$ac_tool_prefix"; then
7725   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   if test -n "$OTOOL64"; then
7733   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740   for ac_exec_ext in '' $ac_executable_extensions; do
7741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 OTOOL64=$ac_cv_prog_OTOOL64
7753 if test -n "$OTOOL64"; then
7754   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7755 echo "${ECHO_T}$OTOOL64" >&6; }
7756 else
7757   { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7759 fi
7760
7761
7762 fi
7763 if test -z "$ac_cv_prog_OTOOL64"; then
7764   ac_ct_OTOOL64=$OTOOL64
7765   # Extract the first word of "otool64", so it can be a program name with args.
7766 set dummy otool64; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   if test -n "$ac_ct_OTOOL64"; then
7773   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780   for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_prog_ac_ct_OTOOL64="otool64"
7783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7793 if test -n "$ac_ct_OTOOL64"; then
7794   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7795 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7796 else
7797   { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7799 fi
7800
7801   if test "x$ac_ct_OTOOL64" = x; then
7802     OTOOL64=":"
7803   else
7804     case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7807 whose name does not start with the host triplet.  If you think this
7808 configuration is useful to you, please write to autoconf@gnu.org." >&5
7809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7810 whose name does not start with the host triplet.  If you think this
7811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7812 ac_tool_warned=yes ;;
7813 esac
7814     OTOOL64=$ac_ct_OTOOL64
7815   fi
7816 else
7817   OTOOL64="$ac_cv_prog_OTOOL64"
7818 fi
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7847 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7848 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   lt_cv_apple_cc_single_mod=no
7852       if test -z "${LT_MULTI_MODULE}"; then
7853         # By default we will add the -single_module flag. You can override
7854         # by either setting the environment variable LT_MULTI_MODULE
7855         # non-empty at configure time, or by adding -multi_module to the
7856         # link flags.
7857         rm -rf libconftest.dylib*
7858         echo "int foo(void){return 1;}" > conftest.c
7859         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7860 -dynamiclib -Wl,-single_module conftest.c" >&5
7861         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7863         _lt_result=$?
7864         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7865           lt_cv_apple_cc_single_mod=yes
7866         else
7867           cat conftest.err >&5
7868         fi
7869         rm -rf libconftest.dylib*
7870         rm -f conftest.*
7871       fi
7872 fi
7873 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7874 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7875     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7876 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7877 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   lt_cv_ld_exported_symbols_list=no
7881       save_LDFLAGS=$LDFLAGS
7882       echo "_main" > conftest.sym
7883       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7884       cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h.  */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h.  */
7890
7891 int
7892 main ()
7893 {
7894
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (ac_try="$ac_link"
7901 case "(($ac_try" in
7902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903   *) ac_try_echo=$ac_try;;
7904 esac
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906   (eval "$ac_link") 2>conftest.er1
7907   ac_status=$?
7908   grep -v '^ *+' conftest.er1 >conftest.err
7909   rm -f conftest.er1
7910   cat conftest.err >&5
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); } && {
7913          test -z "$ac_c_werror_flag" ||
7914          test ! -s conftest.err
7915        } && test -s conftest$ac_exeext &&
7916        $as_test_x conftest$ac_exeext; then
7917   lt_cv_ld_exported_symbols_list=yes
7918 else
7919   echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922         lt_cv_ld_exported_symbols_list=no
7923 fi
7924
7925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7926       conftest$ac_exeext conftest.$ac_ext
7927         LDFLAGS="$save_LDFLAGS"
7928
7929 fi
7930 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7931 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7932     case $host_os in
7933     rhapsody* | darwin1.[012])
7934       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7935     darwin1.*)
7936       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7937     darwin*) # darwin 5.x on
7938       # if running on 10.5 or later, the deployment target defaults
7939       # to the OS version, if on x86, and 10.4, the deployment
7940       # target defaults to 10.4. Don't you love it?
7941       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7942         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7943           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7944         10.[012]*)
7945           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7946         10.*)
7947           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7948       esac
7949     ;;
7950   esac
7951     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7952       _lt_dar_single_mod='$single_module'
7953     fi
7954     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7955       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7956     else
7957       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7958     fi
7959     if test "$DSYMUTIL" != ":"; then
7960       _lt_dsymutil='~$DSYMUTIL $lib || :'
7961     else
7962       _lt_dsymutil=
7963     fi
7964     ;;
7965   esac
7966
7967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7969 if test "${ac_cv_header_stdc+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h.  */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h.  */
7978 #include <stdlib.h>
7979 #include <stdarg.h>
7980 #include <string.h>
7981 #include <float.h>
7982
7983 int
7984 main ()
7985 {
7986
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 rm -f conftest.$ac_objext
7992 if { (ac_try="$ac_compile"
7993 case "(($ac_try" in
7994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995   *) ac_try_echo=$ac_try;;
7996 esac
7997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998   (eval "$ac_compile") 2>conftest.er1
7999   ac_status=$?
8000   grep -v '^ *+' conftest.er1 >conftest.err
8001   rm -f conftest.er1
8002   cat conftest.err >&5
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } && {
8005          test -z "$ac_c_werror_flag" ||
8006          test ! -s conftest.err
8007        } && test -s conftest.$ac_objext; then
8008   ac_cv_header_stdc=yes
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013         ac_cv_header_stdc=no
8014 fi
8015
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017
8018 if test $ac_cv_header_stdc = yes; then
8019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8020   cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 #include <string.h>
8027
8028 _ACEOF
8029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030   $EGREP "memchr" >/dev/null 2>&1; then
8031   :
8032 else
8033   ac_cv_header_stdc=no
8034 fi
8035 rm -f conftest*
8036
8037 fi
8038
8039 if test $ac_cv_header_stdc = yes; then
8040   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047 #include <stdlib.h>
8048
8049 _ACEOF
8050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051   $EGREP "free" >/dev/null 2>&1; then
8052   :
8053 else
8054   ac_cv_header_stdc=no
8055 fi
8056 rm -f conftest*
8057
8058 fi
8059
8060 if test $ac_cv_header_stdc = yes; then
8061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8062   if test "$cross_compiling" = yes; then
8063   :
8064 else
8065   cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h.  */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h.  */
8071 #include <ctype.h>
8072 #include <stdlib.h>
8073 #if ((' ' & 0x0FF) == 0x020)
8074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8076 #else
8077 # define ISLOWER(c) \
8078                    (('a' <= (c) && (c) <= 'i') \
8079                      || ('j' <= (c) && (c) <= 'r') \
8080                      || ('s' <= (c) && (c) <= 'z'))
8081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8082 #endif
8083
8084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8085 int
8086 main ()
8087 {
8088   int i;
8089   for (i = 0; i < 256; i++)
8090     if (XOR (islower (i), ISLOWER (i))
8091         || toupper (i) != TOUPPER (i))
8092       return 2;
8093   return 0;
8094 }
8095 _ACEOF
8096 rm -f conftest$ac_exeext
8097 if { (ac_try="$ac_link"
8098 case "(($ac_try" in
8099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100   *) ac_try_echo=$ac_try;;
8101 esac
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103   (eval "$ac_link") 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8107   { (case "(($ac_try" in
8108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109   *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112   (eval "$ac_try") 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; }; then
8116   :
8117 else
8118   echo "$as_me: program exited with status $ac_status" >&5
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ( exit $ac_status )
8123 ac_cv_header_stdc=no
8124 fi
8125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8126 fi
8127
8128
8129 fi
8130 fi
8131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8133 if test $ac_cv_header_stdc = yes; then
8134
8135 cat >>confdefs.h <<\_ACEOF
8136 #define STDC_HEADERS 1
8137 _ACEOF
8138
8139 fi
8140
8141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8152                   inttypes.h stdint.h unistd.h
8153 do
8154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 $ac_includes_default
8167
8168 #include <$ac_header>
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8172 case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_compile") 2>conftest.er1
8178   ac_status=$?
8179   grep -v '^ *+' conftest.er1 >conftest.err
8180   rm -f conftest.er1
8181   cat conftest.err >&5
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } && {
8184          test -z "$ac_c_werror_flag" ||
8185          test ! -s conftest.err
8186        } && test -s conftest.$ac_objext; then
8187   eval "$as_ac_Header=yes"
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192         eval "$as_ac_Header=no"
8193 fi
8194
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 fi
8197 ac_res=`eval echo '${'$as_ac_Header'}'`
8198                { echo "$as_me:$LINENO: result: $ac_res" >&5
8199 echo "${ECHO_T}$ac_res" >&6; }
8200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8201   cat >>confdefs.h <<_ACEOF
8202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8203 _ACEOF
8204
8205 fi
8206
8207 done
8208
8209
8210
8211 for ac_header in dlfcn.h
8212 do
8213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8217   echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219   cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h.  */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h.  */
8225 $ac_includes_default
8226
8227 #include <$ac_header>
8228 _ACEOF
8229 rm -f conftest.$ac_objext
8230 if { (ac_try="$ac_compile"
8231 case "(($ac_try" in
8232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233   *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236   (eval "$ac_compile") 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } && {
8243          test -z "$ac_c_werror_flag" ||
8244          test ! -s conftest.err
8245        } && test -s conftest.$ac_objext; then
8246   eval "$as_ac_Header=yes"
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251         eval "$as_ac_Header=no"
8252 fi
8253
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 fi
8256 ac_res=`eval echo '${'$as_ac_Header'}'`
8257                { echo "$as_me:$LINENO: result: $ac_res" >&5
8258 echo "${ECHO_T}$ac_res" >&6; }
8259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8260   cat >>confdefs.h <<_ACEOF
8261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8262 _ACEOF
8263
8264 fi
8265
8266 done
8267
8268
8269
8270 ac_ext=cpp
8271 ac_cpp='$CXXCPP $CPPFLAGS'
8272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8275 if test -z "$CXX"; then
8276   if test -n "$CCC"; then
8277     CXX=$CCC
8278   else
8279     if test -n "$ac_tool_prefix"; then
8280   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8281   do
8282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8286 if test "${ac_cv_prog_CXX+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   if test -n "$CXX"; then
8290   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295   IFS=$as_save_IFS
8296   test -z "$as_dir" && as_dir=.
8297   for ac_exec_ext in '' $ac_executable_extensions; do
8298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301     break 2
8302   fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307 fi
8308 fi
8309 CXX=$ac_cv_prog_CXX
8310 if test -n "$CXX"; then
8311   { echo "$as_me:$LINENO: result: $CXX" >&5
8312 echo "${ECHO_T}$CXX" >&6; }
8313 else
8314   { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8316 fi
8317
8318
8319     test -n "$CXX" && break
8320   done
8321 fi
8322 if test -z "$CXX"; then
8323   ac_ct_CXX=$CXX
8324   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8325 do
8326   # Extract the first word of "$ac_prog", so it can be a program name with args.
8327 set dummy $ac_prog; ac_word=$2
8328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   if test -n "$ac_ct_CXX"; then
8334   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339   IFS=$as_save_IFS
8340   test -z "$as_dir" && as_dir=.
8341   for ac_exec_ext in '' $ac_executable_extensions; do
8342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343     ac_cv_prog_ac_ct_CXX="$ac_prog"
8344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8345     break 2
8346   fi
8347 done
8348 done
8349 IFS=$as_save_IFS
8350
8351 fi
8352 fi
8353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8354 if test -n "$ac_ct_CXX"; then
8355   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8356 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8357 else
8358   { echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6; }
8360 fi
8361
8362
8363   test -n "$ac_ct_CXX" && break
8364 done
8365
8366   if test "x$ac_ct_CXX" = x; then
8367     CXX="g++"
8368   else
8369     case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8372 whose name does not start with the host triplet.  If you think this
8373 configuration is useful to you, please write to autoconf@gnu.org." >&5
8374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8375 whose name does not start with the host triplet.  If you think this
8376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379     CXX=$ac_ct_CXX
8380   fi
8381 fi
8382
8383   fi
8384 fi
8385 # Provide some information about the compiler.
8386 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8387 ac_compiler=`set X $ac_compile; echo $2`
8388 { (ac_try="$ac_compiler --version >&5"
8389 case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394   (eval "$ac_compiler --version >&5") 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }
8398 { (ac_try="$ac_compiler -v >&5"
8399 case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_compiler -v >&5") 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }
8408 { (ac_try="$ac_compiler -V >&5"
8409 case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_compiler -V >&5") 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }
8418
8419 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8420 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8421 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 int
8432 main ()
8433 {
8434 #ifndef __GNUC__
8435        choke me
8436 #endif
8437
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (ac_try="$ac_compile"
8444 case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_compile") 2>conftest.er1
8450   ac_status=$?
8451   grep -v '^ *+' conftest.er1 >conftest.err
8452   rm -f conftest.er1
8453   cat conftest.err >&5
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } && {
8456          test -z "$ac_cxx_werror_flag" ||
8457          test ! -s conftest.err
8458        } && test -s conftest.$ac_objext; then
8459   ac_compiler_gnu=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464         ac_compiler_gnu=no
8465 fi
8466
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8469
8470 fi
8471 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8472 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8473 GXX=`test $ac_compiler_gnu = yes && echo yes`
8474 ac_test_CXXFLAGS=${CXXFLAGS+set}
8475 ac_save_CXXFLAGS=$CXXFLAGS
8476 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8477 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8478 if test "${ac_cv_prog_cxx_g+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8482    ac_cxx_werror_flag=yes
8483    ac_cv_prog_cxx_g=no
8484    CXXFLAGS="-g"
8485    cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491
8492 int
8493 main ()
8494 {
8495
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext
8501 if { (ac_try="$ac_compile"
8502 case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_compile") 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } && {
8514          test -z "$ac_cxx_werror_flag" ||
8515          test ! -s conftest.err
8516        } && test -s conftest.$ac_objext; then
8517   ac_cv_prog_cxx_g=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522         CXXFLAGS=""
8523       cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8529
8530 int
8531 main ()
8532 {
8533
8534   ;
8535   return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8540 case "(($ac_try" in
8541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542   *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545   (eval "$ac_compile") 2>conftest.er1
8546   ac_status=$?
8547   grep -v '^ *+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } && {
8552          test -z "$ac_cxx_werror_flag" ||
8553          test ! -s conftest.err
8554        } && test -s conftest.$ac_objext; then
8555   :
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8561          CXXFLAGS="-g"
8562          cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568
8569 int
8570 main ()
8571 {
8572
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_compile") 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } && {
8591          test -z "$ac_cxx_werror_flag" ||
8592          test ! -s conftest.err
8593        } && test -s conftest.$ac_objext; then
8594   ac_cv_prog_cxx_g=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8610 fi
8611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8612 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8613 if test "$ac_test_CXXFLAGS" = set; then
8614   CXXFLAGS=$ac_save_CXXFLAGS
8615 elif test $ac_cv_prog_cxx_g = yes; then
8616   if test "$GXX" = yes; then
8617     CXXFLAGS="-g -O2"
8618   else
8619     CXXFLAGS="-g"
8620   fi
8621 else
8622   if test "$GXX" = yes; then
8623     CXXFLAGS="-O2"
8624   else
8625     CXXFLAGS=
8626   fi
8627 fi
8628 ac_ext=c
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633
8634 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8635     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8636     (test "X$CXX" != "Xg++"))) ; then
8637   ac_ext=cpp
8638 ac_cpp='$CXXCPP $CPPFLAGS'
8639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8642 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8643 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8644 if test -z "$CXXCPP"; then
8645   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648       # Double quotes because CXXCPP needs to be expanded
8649     for CXXCPP in "$CXX -E" "/lib/cpp"
8650     do
8651       ac_preproc_ok=false
8652 for ac_cxx_preproc_warn_flag in '' yes
8653 do
8654   # Use a header file that comes with gcc, so configuring glibc
8655   # with a fresh cross-compiler works.
8656   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657   # <limits.h> exists even on freestanding compilers.
8658   # On the NeXT, cc -E runs the code through the compiler's parser,
8659   # not just through cpp. "Syntax error" is here to catch this case.
8660   cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 #ifdef __STDC__
8667 # include <limits.h>
8668 #else
8669 # include <assert.h>
8670 #endif
8671                      Syntax error
8672 _ACEOF
8673 if { (ac_try="$ac_cpp conftest.$ac_ext"
8674 case "(($ac_try" in
8675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676   *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8680   ac_status=$?
8681   grep -v '^ *+' conftest.er1 >conftest.err
8682   rm -f conftest.er1
8683   cat conftest.err >&5
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); } >/dev/null && {
8686          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8687          test ! -s conftest.err
8688        }; then
8689   :
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694   # Broken: fails on valid input.
8695 continue
8696 fi
8697
8698 rm -f conftest.err conftest.$ac_ext
8699
8700   # OK, works on sane cases.  Now check whether nonexistent headers
8701   # can be detected and how.
8702   cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708 #include <ac_nonexistent.h>
8709 _ACEOF
8710 if { (ac_try="$ac_cpp conftest.$ac_ext"
8711 case "(($ac_try" in
8712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713   *) ac_try_echo=$ac_try;;
8714 esac
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8717   ac_status=$?
8718   grep -v '^ *+' conftest.er1 >conftest.err
8719   rm -f conftest.er1
8720   cat conftest.err >&5
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } >/dev/null && {
8723          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8724          test ! -s conftest.err
8725        }; then
8726   # Broken: success on invalid input.
8727 continue
8728 else
8729   echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732   # Passes both tests.
8733 ac_preproc_ok=:
8734 break
8735 fi
8736
8737 rm -f conftest.err conftest.$ac_ext
8738
8739 done
8740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8741 rm -f conftest.err conftest.$ac_ext
8742 if $ac_preproc_ok; then
8743   break
8744 fi
8745
8746     done
8747     ac_cv_prog_CXXCPP=$CXXCPP
8748
8749 fi
8750   CXXCPP=$ac_cv_prog_CXXCPP
8751 else
8752   ac_cv_prog_CXXCPP=$CXXCPP
8753 fi
8754 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8755 echo "${ECHO_T}$CXXCPP" >&6; }
8756 ac_preproc_ok=false
8757 for ac_cxx_preproc_warn_flag in '' yes
8758 do
8759   # Use a header file that comes with gcc, so configuring glibc
8760   # with a fresh cross-compiler works.
8761   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762   # <limits.h> exists even on freestanding compilers.
8763   # On the NeXT, cc -E runs the code through the compiler's parser,
8764   # not just through cpp. "Syntax error" is here to catch this case.
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 #ifdef __STDC__
8772 # include <limits.h>
8773 #else
8774 # include <assert.h>
8775 #endif
8776                      Syntax error
8777 _ACEOF
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8779 case "(($ac_try" in
8780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781   *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } >/dev/null && {
8791          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8792          test ! -s conftest.err
8793        }; then
8794   :
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799   # Broken: fails on valid input.
8800 continue
8801 fi
8802
8803 rm -f conftest.err conftest.$ac_ext
8804
8805   # OK, works on sane cases.  Now check whether nonexistent headers
8806   # can be detected and how.
8807   cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 #include <ac_nonexistent.h>
8814 _ACEOF
8815 if { (ac_try="$ac_cpp conftest.$ac_ext"
8816 case "(($ac_try" in
8817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818   *) ac_try_echo=$ac_try;;
8819 esac
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8822   ac_status=$?
8823   grep -v '^ *+' conftest.er1 >conftest.err
8824   rm -f conftest.er1
8825   cat conftest.err >&5
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); } >/dev/null && {
8828          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8829          test ! -s conftest.err
8830        }; then
8831   # Broken: success on invalid input.
8832 continue
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837   # Passes both tests.
8838 ac_preproc_ok=:
8839 break
8840 fi
8841
8842 rm -f conftest.err conftest.$ac_ext
8843
8844 done
8845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8846 rm -f conftest.err conftest.$ac_ext
8847 if $ac_preproc_ok; then
8848   :
8849 else
8850   _lt_caught_CXX_error=yes
8851 fi
8852
8853 ac_ext=c
8854 ac_cpp='$CPP $CPPFLAGS'
8855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8858
8859 else
8860   _lt_caught_CXX_error=yes
8861 fi
8862
8863
8864
8865
8866
8867 # Set options
8868 # Check whether --enable-shared was given.
8869 if test "${enable_shared+set}" = set; then
8870   enableval=$enable_shared; p=${PACKAGE-default}
8871     case $enableval in
8872     yes) enable_shared=yes ;;
8873     no) enable_shared=no ;;
8874     *)
8875       enable_shared=no
8876       # Look at the argument we got.  We use all the common list separators.
8877       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8878       for pkg in $enableval; do
8879         IFS="$lt_save_ifs"
8880         if test "X$pkg" = "X$p"; then
8881           enable_shared=yes
8882         fi
8883       done
8884       IFS="$lt_save_ifs"
8885       ;;
8886     esac
8887 else
8888   enable_shared=yes
8889 fi
8890
8891
8892
8893
8894
8895
8896
8897 # Check whether --enable-static was given.
8898 if test "${enable_static+set}" = set; then
8899   enableval=$enable_static; p=${PACKAGE-default}
8900     case $enableval in
8901     yes) enable_static=yes ;;
8902     no) enable_static=no ;;
8903     *)
8904      enable_static=no
8905       # Look at the argument we got.  We use all the common list separators.
8906       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8907       for pkg in $enableval; do
8908         IFS="$lt_save_ifs"
8909         if test "X$pkg" = "X$p"; then
8910           enable_static=yes
8911         fi
8912       done
8913       IFS="$lt_save_ifs"
8914       ;;
8915     esac
8916 else
8917   enable_static=no
8918 fi
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929         enable_dlopen=no
8930
8931
8932   enable_win32_dll=no
8933
8934
8935
8936
8937
8938 # Check whether --with-pic was given.
8939 if test "${with_pic+set}" = set; then
8940   withval=$with_pic; pic_mode="$withval"
8941 else
8942   pic_mode=default
8943 fi
8944
8945
8946 test -z "$pic_mode" && pic_mode=default
8947
8948
8949
8950
8951
8952
8953
8954   # Check whether --enable-fast-install was given.
8955 if test "${enable_fast_install+set}" = set; then
8956   enableval=$enable_fast_install; p=${PACKAGE-default}
8957     case $enableval in
8958     yes) enable_fast_install=yes ;;
8959     no) enable_fast_install=no ;;
8960     *)
8961       enable_fast_install=no
8962       # Look at the argument we got.  We use all the common list separators.
8963       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8964       for pkg in $enableval; do
8965         IFS="$lt_save_ifs"
8966         if test "X$pkg" = "X$p"; then
8967           enable_fast_install=yes
8968         fi
8969       done
8970       IFS="$lt_save_ifs"
8971       ;;
8972     esac
8973 else
8974   enable_fast_install=yes
8975 fi
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987 # This can be used to rebuild libtool when needed
8988 LIBTOOL_DEPS="$ltmain"
8989
8990 # Always use our own libtool.
8991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017 test -z "$LN_S" && LN_S="ln -s"
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 if test -n "${ZSH_VERSION+set}" ; then
9033    setopt NO_GLOB_SUBST
9034 fi
9035
9036 { echo "$as_me:$LINENO: checking for objdir" >&5
9037 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9038 if test "${lt_cv_objdir+set}" = set; then
9039   echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041   rm -f .libs 2>/dev/null
9042 mkdir .libs 2>/dev/null
9043 if test -d .libs; then
9044   lt_cv_objdir=.libs
9045 else
9046   # MS-DOS does not allow filenames that begin with a dot.
9047   lt_cv_objdir=_libs
9048 fi
9049 rmdir .libs 2>/dev/null
9050 fi
9051 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9052 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9053 objdir=$lt_cv_objdir
9054
9055
9056
9057
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define LT_OBJDIR "$lt_cv_objdir/"
9061 _ACEOF
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079 case $host_os in
9080 aix3*)
9081   # AIX sometimes has problems with the GCC collect2 program.  For some
9082   # reason, if we set the COLLECT_NAMES environment variable, the problems
9083   # vanish in a puff of smoke.
9084   if test "X${COLLECT_NAMES+set}" != Xset; then
9085     COLLECT_NAMES=
9086     export COLLECT_NAMES
9087   fi
9088   ;;
9089 esac
9090
9091 # Sed substitution that helps us do robust quoting.  It backslashifies
9092 # metacharacters that are still active within double-quoted strings.
9093 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9094
9095 # Same as above, but do not quote variable references.
9096 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9097
9098 # Sed substitution to delay expansion of an escaped shell variable in a
9099 # double_quote_subst'ed string.
9100 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9101
9102 # Sed substitution to delay expansion of an escaped single quote.
9103 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9104
9105 # Sed substitution to avoid accidental globbing in evaled expressions
9106 no_glob_subst='s/\*/\\\*/g'
9107
9108 # Global variables:
9109 ofile=libtool
9110 can_build_shared=yes
9111
9112 # All known linkers require a `.a' archive for static linking (except MSVC,
9113 # which needs '.lib').
9114 libext=a
9115
9116 with_gnu_ld="$lt_cv_prog_gnu_ld"
9117
9118 old_CC="$CC"
9119 old_CFLAGS="$CFLAGS"
9120
9121 # Set sane defaults for various variables
9122 test -z "$CC" && CC=cc
9123 test -z "$LTCC" && LTCC=$CC
9124 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9125 test -z "$LD" && LD=ld
9126 test -z "$ac_objext" && ac_objext=o
9127
9128 for cc_temp in $compiler""; do
9129   case $cc_temp in
9130     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9131     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9132     \-*) ;;
9133     *) break;;
9134   esac
9135 done
9136 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9137
9138
9139 # Only perform the check for file, if the check method requires it
9140 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9141 case $deplibs_check_method in
9142 file_magic*)
9143   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9144     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9145 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9146 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   case $MAGIC_CMD in
9150 [\\/*] |  ?:[\\/]*)
9151   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9152   ;;
9153 *)
9154   lt_save_MAGIC_CMD="$MAGIC_CMD"
9155   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9156   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9157   for ac_dir in $ac_dummy; do
9158     IFS="$lt_save_ifs"
9159     test -z "$ac_dir" && ac_dir=.
9160     if test -f $ac_dir/${ac_tool_prefix}file; then
9161       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9162       if test -n "$file_magic_test_file"; then
9163         case $deplibs_check_method in
9164         "file_magic "*)
9165           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9166           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9167           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9168             $EGREP "$file_magic_regex" > /dev/null; then
9169             :
9170           else
9171             cat <<_LT_EOF 1>&2
9172
9173 *** Warning: the command libtool uses to detect shared libraries,
9174 *** $file_magic_cmd, produces output that libtool cannot recognize.
9175 *** The result is that libtool may fail to recognize shared libraries
9176 *** as such.  This will affect the creation of libtool libraries that
9177 *** depend on shared libraries, but programs linked with such libtool
9178 *** libraries will work regardless of this problem.  Nevertheless, you
9179 *** may want to report the problem to your system manager and/or to
9180 *** bug-libtool@gnu.org
9181
9182 _LT_EOF
9183           fi ;;
9184         esac
9185       fi
9186       break
9187     fi
9188   done
9189   IFS="$lt_save_ifs"
9190   MAGIC_CMD="$lt_save_MAGIC_CMD"
9191   ;;
9192 esac
9193 fi
9194
9195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9196 if test -n "$MAGIC_CMD"; then
9197   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9198 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9199 else
9200   { echo "$as_me:$LINENO: result: no" >&5
9201 echo "${ECHO_T}no" >&6; }
9202 fi
9203
9204
9205
9206
9207
9208 if test -z "$lt_cv_path_MAGIC_CMD"; then
9209   if test -n "$ac_tool_prefix"; then
9210     { echo "$as_me:$LINENO: checking for file" >&5
9211 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9212 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   case $MAGIC_CMD in
9216 [\\/*] |  ?:[\\/]*)
9217   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9218   ;;
9219 *)
9220   lt_save_MAGIC_CMD="$MAGIC_CMD"
9221   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9222   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9223   for ac_dir in $ac_dummy; do
9224     IFS="$lt_save_ifs"
9225     test -z "$ac_dir" && ac_dir=.
9226     if test -f $ac_dir/file; then
9227       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9228       if test -n "$file_magic_test_file"; then
9229         case $deplibs_check_method in
9230         "file_magic "*)
9231           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9232           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9233           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9234             $EGREP "$file_magic_regex" > /dev/null; then
9235             :
9236           else
9237             cat <<_LT_EOF 1>&2
9238
9239 *** Warning: the command libtool uses to detect shared libraries,
9240 *** $file_magic_cmd, produces output that libtool cannot recognize.
9241 *** The result is that libtool may fail to recognize shared libraries
9242 *** as such.  This will affect the creation of libtool libraries that
9243 *** depend on shared libraries, but programs linked with such libtool
9244 *** libraries will work regardless of this problem.  Nevertheless, you
9245 *** may want to report the problem to your system manager and/or to
9246 *** bug-libtool@gnu.org
9247
9248 _LT_EOF
9249           fi ;;
9250         esac
9251       fi
9252       break
9253     fi
9254   done
9255   IFS="$lt_save_ifs"
9256   MAGIC_CMD="$lt_save_MAGIC_CMD"
9257   ;;
9258 esac
9259 fi
9260
9261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9262 if test -n "$MAGIC_CMD"; then
9263   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9264 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9265 else
9266   { echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6; }
9268 fi
9269
9270
9271   else
9272     MAGIC_CMD=:
9273   fi
9274 fi
9275
9276   fi
9277   ;;
9278 esac
9279
9280 # Use C for the default configuration in the libtool script
9281
9282 lt_save_CC="$CC"
9283 ac_ext=c
9284 ac_cpp='$CPP $CPPFLAGS'
9285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9288
9289
9290 # Source file extension for C test sources.
9291 ac_ext=c
9292
9293 # Object file extension for compiled C test sources.
9294 objext=o
9295 objext=$objext
9296
9297 # Code to be used in simple compile tests
9298 lt_simple_compile_test_code="int some_variable = 0;"
9299
9300 # Code to be used in simple link tests
9301 lt_simple_link_test_code='int main(){return(0);}'
9302
9303
9304
9305
9306
9307
9308
9309 # If no C compiler was specified, use CC.
9310 LTCC=${LTCC-"$CC"}
9311
9312 # If no C compiler flags were specified, use CFLAGS.
9313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9314
9315 # Allow CC to be a program name with arguments.
9316 compiler=$CC
9317
9318 # Save the default compiler, since it gets overwritten when the other
9319 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9320 compiler_DEFAULT=$CC
9321
9322 # save warnings/boilerplate of simple test code
9323 ac_outfile=conftest.$ac_objext
9324 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9326 _lt_compiler_boilerplate=`cat conftest.err`
9327 $RM conftest*
9328
9329 ac_outfile=conftest.$ac_objext
9330 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9332 _lt_linker_boilerplate=`cat conftest.err`
9333 $RM -r conftest*
9334
9335
9336 ## CAVEAT EMPTOR:
9337 ## There is no encapsulation within the following macros, do not change
9338 ## the running order or otherwise move them around unless you know exactly
9339 ## what you are doing...
9340 if test -n "$compiler"; then
9341
9342 lt_prog_compiler_no_builtin_flag=
9343
9344 if test "$GCC" = yes; then
9345   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9346
9347   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   lt_cv_prog_compiler_rtti_exceptions=no
9353    ac_outfile=conftest.$ac_objext
9354    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9355    lt_compiler_flag="-fno-rtti -fno-exceptions"
9356    # Insert the option either (1) after the last *FLAGS variable, or
9357    # (2) before a word containing "conftest.", or (3) at the end.
9358    # Note that $ac_compile itself does not contain backslashes and begins
9359    # with a dollar sign (not a hyphen), so the echo should work correctly.
9360    # The option is referenced via a variable to avoid confusing sed.
9361    lt_compile=`echo "$ac_compile" | $SED \
9362    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9364    -e 's:$: $lt_compiler_flag:'`
9365    (eval echo "\"\$as_me:9365: $lt_compile\"" >&5)
9366    (eval "$lt_compile" 2>conftest.err)
9367    ac_status=$?
9368    cat conftest.err >&5
9369    echo "$as_me:9369: \$? = $ac_status" >&5
9370    if (exit $ac_status) && test -s "$ac_outfile"; then
9371      # The compiler can only warn and ignore the option if not recognized
9372      # So say no if there are warnings other than the usual output.
9373      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9374      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9375      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9376        lt_cv_prog_compiler_rtti_exceptions=yes
9377      fi
9378    fi
9379    $RM conftest*
9380
9381 fi
9382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9383 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9384
9385 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9386     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9387 else
9388     :
9389 fi
9390
9391 fi
9392
9393
9394
9395
9396
9397
9398   lt_prog_compiler_wl=
9399 lt_prog_compiler_pic=
9400 lt_prog_compiler_static=
9401
9402 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9403 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9404
9405   if test "$GCC" = yes; then
9406     lt_prog_compiler_wl='-Wl,'
9407     lt_prog_compiler_static='-static'
9408
9409     case $host_os in
9410       aix*)
9411       # All AIX code is PIC.
9412       if test "$host_cpu" = ia64; then
9413         # AIX 5 now supports IA64 processor
9414         lt_prog_compiler_static='-Bstatic'
9415       fi
9416       ;;
9417
9418     amigaos*)
9419       case $host_cpu in
9420       powerpc)
9421             # see comment about AmigaOS4 .so support
9422             lt_prog_compiler_pic='-fPIC'
9423         ;;
9424       m68k)
9425             # FIXME: we need at least 68020 code to build shared libraries, but
9426             # adding the `-m68020' flag to GCC prevents building anything better,
9427             # like `-m68040'.
9428             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9429         ;;
9430       esac
9431       ;;
9432
9433     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9434       # PIC is the default for these OSes.
9435       ;;
9436
9437     mingw* | cygwin* | pw32* | os2* | cegcc*)
9438       # This hack is so that the source file can tell whether it is being
9439       # built for inclusion in a dll (and should export symbols for example).
9440       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9441       # (--disable-auto-import) libraries
9442       lt_prog_compiler_pic='-DDLL_EXPORT'
9443       ;;
9444
9445     darwin* | rhapsody*)
9446       # PIC is the default on this platform
9447       # Common symbols not allowed in MH_DYLIB files
9448       lt_prog_compiler_pic='-fno-common'
9449       ;;
9450
9451     hpux*)
9452       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9453       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9454       # sets the default TLS model and affects inlining.
9455       case $host_cpu in
9456       hppa*64*)
9457         # +Z the default
9458         ;;
9459       *)
9460         lt_prog_compiler_pic='-fPIC'
9461         ;;
9462       esac
9463       ;;
9464
9465     interix[3-9]*)
9466       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9467       # Instead, we relocate shared libraries at runtime.
9468       ;;
9469
9470     msdosdjgpp*)
9471       # Just because we use GCC doesn't mean we suddenly get shared libraries
9472       # on systems that don't support them.
9473       lt_prog_compiler_can_build_shared=no
9474       enable_shared=no
9475       ;;
9476
9477     *nto* | *qnx*)
9478       # QNX uses GNU C++, but need to define -shared option too, otherwise
9479       # it will coredump.
9480       lt_prog_compiler_pic='-fPIC -shared'
9481       ;;
9482
9483     sysv4*MP*)
9484       if test -d /usr/nec; then
9485         lt_prog_compiler_pic=-Kconform_pic
9486       fi
9487       ;;
9488
9489     *)
9490       lt_prog_compiler_pic='-fPIC'
9491       ;;
9492     esac
9493   else
9494     # PORTME Check for flag to pass linker flags through the system compiler.
9495     case $host_os in
9496     aix*)
9497       lt_prog_compiler_wl='-Wl,'
9498       if test "$host_cpu" = ia64; then
9499         # AIX 5 now supports IA64 processor
9500         lt_prog_compiler_static='-Bstatic'
9501       else
9502         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9503       fi
9504       ;;
9505
9506     mingw* | cygwin* | pw32* | os2* | cegcc*)
9507       # This hack is so that the source file can tell whether it is being
9508       # built for inclusion in a dll (and should export symbols for example).
9509       lt_prog_compiler_pic='-DDLL_EXPORT'
9510       ;;
9511
9512     hpux9* | hpux10* | hpux11*)
9513       lt_prog_compiler_wl='-Wl,'
9514       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9515       # not for PA HP-UX.
9516       case $host_cpu in
9517       hppa*64*|ia64*)
9518         # +Z the default
9519         ;;
9520       *)
9521         lt_prog_compiler_pic='+Z'
9522         ;;
9523       esac
9524       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9525       lt_prog_compiler_static='${wl}-a ${wl}archive'
9526       ;;
9527
9528     irix5* | irix6* | nonstopux*)
9529       lt_prog_compiler_wl='-Wl,'
9530       # PIC (with -KPIC) is the default.
9531       lt_prog_compiler_static='-non_shared'
9532       ;;
9533
9534     linux* | k*bsd*-gnu)
9535       case $cc_basename in
9536       # old Intel for x86_64 which still supported -KPIC.
9537       ecc*)
9538         lt_prog_compiler_wl='-Wl,'
9539         lt_prog_compiler_pic='-KPIC'
9540         lt_prog_compiler_static='-static'
9541         ;;
9542       # icc used to be incompatible with GCC.
9543       # ICC 10 doesn't accept -KPIC any more.
9544       icc* | ifort*)
9545         lt_prog_compiler_wl='-Wl,'
9546         lt_prog_compiler_pic='-fPIC'
9547         lt_prog_compiler_static='-static'
9548         ;;
9549       # Lahey Fortran 8.1.
9550       lf95*)
9551         lt_prog_compiler_wl='-Wl,'
9552         lt_prog_compiler_pic='--shared'
9553         lt_prog_compiler_static='--static'
9554         ;;
9555       pgcc* | pgf77* | pgf90* | pgf95*)
9556         # Portland Group compilers (*not* the Pentium gcc compiler,
9557         # which looks to be a dead project)
9558         lt_prog_compiler_wl='-Wl,'
9559         lt_prog_compiler_pic='-fpic'
9560         lt_prog_compiler_static='-Bstatic'
9561         ;;
9562       ccc*)
9563         lt_prog_compiler_wl='-Wl,'
9564         # All Alpha code is PIC.
9565         lt_prog_compiler_static='-non_shared'
9566         ;;
9567       xl*)
9568         # IBM XL C 8.0/Fortran 10.1 on PPC
9569         lt_prog_compiler_wl='-Wl,'
9570         lt_prog_compiler_pic='-qpic'
9571         lt_prog_compiler_static='-qstaticlink'
9572         ;;
9573       *)
9574         case `$CC -V 2>&1 | sed 5q` in
9575         *Sun\ C*)
9576           # Sun C 5.9
9577           lt_prog_compiler_pic='-KPIC'
9578           lt_prog_compiler_static='-Bstatic'
9579           lt_prog_compiler_wl='-Wl,'
9580           ;;
9581         *Sun\ F*)
9582           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9583           lt_prog_compiler_pic='-KPIC'
9584           lt_prog_compiler_static='-Bstatic'
9585           lt_prog_compiler_wl=''
9586           ;;
9587         esac
9588         ;;
9589       esac
9590       ;;
9591
9592     newsos6)
9593       lt_prog_compiler_pic='-KPIC'
9594       lt_prog_compiler_static='-Bstatic'
9595       ;;
9596
9597     *nto* | *qnx*)
9598       # QNX uses GNU C++, but need to define -shared option too, otherwise
9599       # it will coredump.
9600       lt_prog_compiler_pic='-fPIC -shared'
9601       ;;
9602
9603     osf3* | osf4* | osf5*)
9604       lt_prog_compiler_wl='-Wl,'
9605       # All OSF/1 code is PIC.
9606       lt_prog_compiler_static='-non_shared'
9607       ;;
9608
9609     rdos*)
9610       lt_prog_compiler_static='-non_shared'
9611       ;;
9612
9613     solaris*)
9614       lt_prog_compiler_pic='-KPIC'
9615       lt_prog_compiler_static='-Bstatic'
9616       case $cc_basename in
9617       f77* | f90* | f95*)
9618         lt_prog_compiler_wl='-Qoption ld ';;
9619       *)
9620         lt_prog_compiler_wl='-Wl,';;
9621       esac
9622       ;;
9623
9624     sunos4*)
9625       lt_prog_compiler_wl='-Qoption ld '
9626       lt_prog_compiler_pic='-PIC'
9627       lt_prog_compiler_static='-Bstatic'
9628       ;;
9629
9630     sysv4 | sysv4.2uw2* | sysv4.3*)
9631       lt_prog_compiler_wl='-Wl,'
9632       lt_prog_compiler_pic='-KPIC'
9633       lt_prog_compiler_static='-Bstatic'
9634       ;;
9635
9636     sysv4*MP*)
9637       if test -d /usr/nec ;then
9638         lt_prog_compiler_pic='-Kconform_pic'
9639         lt_prog_compiler_static='-Bstatic'
9640       fi
9641       ;;
9642
9643     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9644       lt_prog_compiler_wl='-Wl,'
9645       lt_prog_compiler_pic='-KPIC'
9646       lt_prog_compiler_static='-Bstatic'
9647       ;;
9648
9649     unicos*)
9650       lt_prog_compiler_wl='-Wl,'
9651       lt_prog_compiler_can_build_shared=no
9652       ;;
9653
9654     uts4*)
9655       lt_prog_compiler_pic='-pic'
9656       lt_prog_compiler_static='-Bstatic'
9657       ;;
9658
9659     *)
9660       lt_prog_compiler_can_build_shared=no
9661       ;;
9662     esac
9663   fi
9664
9665 case $host_os in
9666   # For platforms which do not support PIC, -DPIC is meaningless:
9667   *djgpp*)
9668     lt_prog_compiler_pic=
9669     ;;
9670   *)
9671     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9672     ;;
9673 esac
9674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9675 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9676
9677
9678
9679
9680
9681
9682 #
9683 # Check to make sure the PIC flag actually works.
9684 #
9685 if test -n "$lt_prog_compiler_pic"; then
9686   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9687 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9688 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   lt_cv_prog_compiler_pic_works=no
9692    ac_outfile=conftest.$ac_objext
9693    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9694    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9695    # Insert the option either (1) after the last *FLAGS variable, or
9696    # (2) before a word containing "conftest.", or (3) at the end.
9697    # Note that $ac_compile itself does not contain backslashes and begins
9698    # with a dollar sign (not a hyphen), so the echo should work correctly.
9699    # The option is referenced via a variable to avoid confusing sed.
9700    lt_compile=`echo "$ac_compile" | $SED \
9701    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9702    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9703    -e 's:$: $lt_compiler_flag:'`
9704    (eval echo "\"\$as_me:9704: $lt_compile\"" >&5)
9705    (eval "$lt_compile" 2>conftest.err)
9706    ac_status=$?
9707    cat conftest.err >&5
9708    echo "$as_me:9708: \$? = $ac_status" >&5
9709    if (exit $ac_status) && test -s "$ac_outfile"; then
9710      # The compiler can only warn and ignore the option if not recognized
9711      # So say no if there are warnings other than the usual output.
9712      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9713      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9714      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9715        lt_cv_prog_compiler_pic_works=yes
9716      fi
9717    fi
9718    $RM conftest*
9719
9720 fi
9721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9722 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9723
9724 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9725     case $lt_prog_compiler_pic in
9726      "" | " "*) ;;
9727      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9728      esac
9729 else
9730     lt_prog_compiler_pic=
9731      lt_prog_compiler_can_build_shared=no
9732 fi
9733
9734 fi
9735
9736
9737
9738
9739
9740
9741 #
9742 # Check to make sure the static flag actually works.
9743 #
9744 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9745 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9746 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9747 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   lt_cv_prog_compiler_static_works=no
9751    save_LDFLAGS="$LDFLAGS"
9752    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9753    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9754    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9755      # The linker can only warn and ignore the option if not recognized
9756      # So say no if there are warnings
9757      if test -s conftest.err; then
9758        # Append any errors to the config.log.
9759        cat conftest.err 1>&5
9760        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9761        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9762        if diff conftest.exp conftest.er2 >/dev/null; then
9763          lt_cv_prog_compiler_static_works=yes
9764        fi
9765      else
9766        lt_cv_prog_compiler_static_works=yes
9767      fi
9768    fi
9769    $RM -r conftest*
9770    LDFLAGS="$save_LDFLAGS"
9771
9772 fi
9773 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9774 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9775
9776 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9777     :
9778 else
9779     lt_prog_compiler_static=
9780 fi
9781
9782
9783
9784
9785
9786
9787
9788   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9790 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   lt_cv_prog_compiler_c_o=no
9794    $RM -r conftest 2>/dev/null
9795    mkdir conftest
9796    cd conftest
9797    mkdir out
9798    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799
9800    lt_compiler_flag="-o out/conftest2.$ac_objext"
9801    # Insert the option either (1) after the last *FLAGS variable, or
9802    # (2) before a word containing "conftest.", or (3) at the end.
9803    # Note that $ac_compile itself does not contain backslashes and begins
9804    # with a dollar sign (not a hyphen), so the echo should work correctly.
9805    lt_compile=`echo "$ac_compile" | $SED \
9806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9808    -e 's:$: $lt_compiler_flag:'`
9809    (eval echo "\"\$as_me:9809: $lt_compile\"" >&5)
9810    (eval "$lt_compile" 2>out/conftest.err)
9811    ac_status=$?
9812    cat out/conftest.err >&5
9813    echo "$as_me:9813: \$? = $ac_status" >&5
9814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9815    then
9816      # The compiler can only warn and ignore the option if not recognized
9817      # So say no if there are warnings
9818      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9819      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9820      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9821        lt_cv_prog_compiler_c_o=yes
9822      fi
9823    fi
9824    chmod u+w . 2>&5
9825    $RM conftest*
9826    # SGI C++ compiler will create directory out/ii_files/ for
9827    # template instantiation
9828    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9829    $RM out/* && rmdir out
9830    cd ..
9831    $RM -r conftest
9832    $RM conftest*
9833
9834 fi
9835 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9837
9838
9839
9840
9841
9842
9843   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9844 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9845 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   lt_cv_prog_compiler_c_o=no
9849    $RM -r conftest 2>/dev/null
9850    mkdir conftest
9851    cd conftest
9852    mkdir out
9853    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9854
9855    lt_compiler_flag="-o out/conftest2.$ac_objext"
9856    # Insert the option either (1) after the last *FLAGS variable, or
9857    # (2) before a word containing "conftest.", or (3) at the end.
9858    # Note that $ac_compile itself does not contain backslashes and begins
9859    # with a dollar sign (not a hyphen), so the echo should work correctly.
9860    lt_compile=`echo "$ac_compile" | $SED \
9861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9863    -e 's:$: $lt_compiler_flag:'`
9864    (eval echo "\"\$as_me:9864: $lt_compile\"" >&5)
9865    (eval "$lt_compile" 2>out/conftest.err)
9866    ac_status=$?
9867    cat out/conftest.err >&5
9868    echo "$as_me:9868: \$? = $ac_status" >&5
9869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9870    then
9871      # The compiler can only warn and ignore the option if not recognized
9872      # So say no if there are warnings
9873      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9874      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9875      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9876        lt_cv_prog_compiler_c_o=yes
9877      fi
9878    fi
9879    chmod u+w . 2>&5
9880    $RM conftest*
9881    # SGI C++ compiler will create directory out/ii_files/ for
9882    # template instantiation
9883    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9884    $RM out/* && rmdir out
9885    cd ..
9886    $RM -r conftest
9887    $RM conftest*
9888
9889 fi
9890 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9891 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9892
9893
9894
9895
9896 hard_links="nottested"
9897 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9898   # do not overwrite the value of need_locks provided by the user
9899   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9900 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9901   hard_links=yes
9902   $RM conftest*
9903   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9904   touch conftest.a
9905   ln conftest.a conftest.b 2>&5 || hard_links=no
9906   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9907   { echo "$as_me:$LINENO: result: $hard_links" >&5
9908 echo "${ECHO_T}$hard_links" >&6; }
9909   if test "$hard_links" = no; then
9910     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9911 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9912     need_locks=warn
9913   fi
9914 else
9915   need_locks=no
9916 fi
9917
9918
9919
9920
9921
9922
9923   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9925
9926   runpath_var=
9927   allow_undefined_flag=
9928   always_export_symbols=no
9929   archive_cmds=
9930   archive_expsym_cmds=
9931   compiler_needs_object=no
9932   enable_shared_with_static_runtimes=no
9933   export_dynamic_flag_spec=
9934   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9935   hardcode_automatic=no
9936   hardcode_direct=no
9937   hardcode_direct_absolute=no
9938   hardcode_libdir_flag_spec=
9939   hardcode_libdir_flag_spec_ld=
9940   hardcode_libdir_separator=
9941   hardcode_minus_L=no
9942   hardcode_shlibpath_var=unsupported
9943   inherit_rpath=no
9944   link_all_deplibs=unknown
9945   module_cmds=
9946   module_expsym_cmds=
9947   old_archive_from_new_cmds=
9948   old_archive_from_expsyms_cmds=
9949   thread_safe_flag_spec=
9950   whole_archive_flag_spec=
9951   # include_expsyms should be a list of space-separated symbols to be *always*
9952   # included in the symbol list
9953   include_expsyms=
9954   # exclude_expsyms can be an extended regexp of symbols to exclude
9955   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9956   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9957   # as well as any symbol that contains `d'.
9958   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9959   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9960   # platforms (ab)use it in PIC code, but their linkers get confused if
9961   # the symbol is explicitly referenced.  Since portable code cannot
9962   # rely on this symbol name, it's probably fine to never include it in
9963   # preloaded symbol tables.
9964   # Exclude shared library initialization/finalization symbols.
9965   extract_expsyms_cmds=
9966
9967   case $host_os in
9968   cygwin* | mingw* | pw32* | cegcc*)
9969     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9970     # When not using gcc, we currently assume that we are using
9971     # Microsoft Visual C++.
9972     if test "$GCC" != yes; then
9973       with_gnu_ld=no
9974     fi
9975     ;;
9976   interix*)
9977     # we just hope/assume this is gcc and not c89 (= MSVC++)
9978     with_gnu_ld=yes
9979     ;;
9980   openbsd*)
9981     with_gnu_ld=no
9982     ;;
9983   esac
9984
9985   ld_shlibs=yes
9986   if test "$with_gnu_ld" = yes; then
9987     # If archive_cmds runs LD, not CC, wlarc should be empty
9988     wlarc='${wl}'
9989
9990     # Set some defaults for GNU ld with shared library support. These
9991     # are reset later if shared libraries are not supported. Putting them
9992     # here allows them to be overridden if necessary.
9993     runpath_var=LD_RUN_PATH
9994     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9995     export_dynamic_flag_spec='${wl}--export-dynamic'
9996     # ancient GNU ld didn't support --whole-archive et. al.
9997     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9998       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9999     else
10000       whole_archive_flag_spec=
10001     fi
10002     supports_anon_versioning=no
10003     case `$LD -v 2>&1` in
10004       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10005       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10006       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10007       *\ 2.11.*) ;; # other 2.11 versions
10008       *) supports_anon_versioning=yes ;;
10009     esac
10010
10011     # See if GNU ld supports shared libraries.
10012     case $host_os in
10013     aix[3-9]*)
10014       # On AIX/PPC, the GNU linker is very broken
10015       if test "$host_cpu" != ia64; then
10016         ld_shlibs=no
10017         cat <<_LT_EOF 1>&2
10018
10019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10020 *** to be unable to reliably create shared libraries on AIX.
10021 *** Therefore, libtool is disabling shared libraries support.  If you
10022 *** really care for shared libraries, you may want to modify your PATH
10023 *** so that a non-GNU linker is found, and then restart.
10024
10025 _LT_EOF
10026       fi
10027       ;;
10028
10029     amigaos*)
10030       case $host_cpu in
10031       powerpc)
10032             # see comment about AmigaOS4 .so support
10033             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034             archive_expsym_cmds=''
10035         ;;
10036       m68k)
10037             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)'
10038             hardcode_libdir_flag_spec='-L$libdir'
10039             hardcode_minus_L=yes
10040         ;;
10041       esac
10042       ;;
10043
10044     beos*)
10045       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10046         allow_undefined_flag=unsupported
10047         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10048         # support --undefined.  This deserves some investigation.  FIXME
10049         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050       else
10051         ld_shlibs=no
10052       fi
10053       ;;
10054
10055     cygwin* | mingw* | pw32* | cegcc*)
10056       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10057       # as there is no search path for DLLs.
10058       hardcode_libdir_flag_spec='-L$libdir'
10059       allow_undefined_flag=unsupported
10060       always_export_symbols=no
10061       enable_shared_with_static_runtimes=yes
10062       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10063
10064       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10065         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10066         # If the export-symbols file already is a .def file (1st line
10067         # is EXPORTS), use it as is; otherwise, prepend...
10068         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10069           cp $export_symbols $output_objdir/$soname.def;
10070         else
10071           echo EXPORTS > $output_objdir/$soname.def;
10072           cat $export_symbols >> $output_objdir/$soname.def;
10073         fi~
10074         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10075       else
10076         ld_shlibs=no
10077       fi
10078       ;;
10079
10080     interix[3-9]*)
10081       hardcode_direct=no
10082       hardcode_shlibpath_var=no
10083       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10084       export_dynamic_flag_spec='${wl}-E'
10085       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10086       # Instead, shared libraries are loaded at an image base (0x10000000 by
10087       # default) and relocated if they conflict, which is a slow very memory
10088       # consuming and fragmenting process.  To avoid this, we pick a random,
10089       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10090       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10091       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10092       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'
10093       ;;
10094
10095     gnu* | linux* | tpf* | k*bsd*-gnu)
10096       tmp_diet=no
10097       if test "$host_os" = linux-dietlibc; then
10098         case $cc_basename in
10099           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10100         esac
10101       fi
10102       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10103          && test "$tmp_diet" = no
10104       then
10105         tmp_addflag=
10106         tmp_sharedflag='-shared'
10107         case $cc_basename,$host_cpu in
10108         pgcc*)                          # Portland Group C compiler
10109           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'
10110           tmp_addflag=' $pic_flag'
10111           ;;
10112         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10113           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'
10114           tmp_addflag=' $pic_flag -Mnomain' ;;
10115         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10116           tmp_addflag=' -i_dynamic' ;;
10117         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10118           tmp_addflag=' -i_dynamic -nofor_main' ;;
10119         ifc* | ifort*)                  # Intel Fortran compiler
10120           tmp_addflag=' -nofor_main' ;;
10121         lf95*)                          # Lahey Fortran 8.1
10122           whole_archive_flag_spec=
10123           tmp_sharedflag='--shared' ;;
10124         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10125           tmp_sharedflag='-qmkshrobj'
10126           tmp_addflag= ;;
10127         esac
10128         case `$CC -V 2>&1 | sed 5q` in
10129         *Sun\ C*)                       # Sun C 5.9
10130           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'
10131           compiler_needs_object=yes
10132           tmp_sharedflag='-G' ;;
10133         *Sun\ F*)                       # Sun Fortran 8.3
10134           tmp_sharedflag='-G' ;;
10135         esac
10136         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10137
10138         if test "x$supports_anon_versioning" = xyes; then
10139           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10140             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10141             echo "local: *; };" >> $output_objdir/$libname.ver~
10142             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10143         fi
10144
10145         case $cc_basename in
10146         xlf*)
10147           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10148           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10149           hardcode_libdir_flag_spec=
10150           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10151           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10152           if test "x$supports_anon_versioning" = xyes; then
10153             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10154               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10155               echo "local: *; };" >> $output_objdir/$libname.ver~
10156               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10157           fi
10158           ;;
10159         esac
10160       else
10161         ld_shlibs=no
10162       fi
10163       ;;
10164
10165     netbsd*)
10166       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10167         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10168         wlarc=
10169       else
10170         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10172       fi
10173       ;;
10174
10175     solaris*)
10176       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10177         ld_shlibs=no
10178         cat <<_LT_EOF 1>&2
10179
10180 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10181 *** create shared libraries on Solaris systems.  Therefore, libtool
10182 *** is disabling shared libraries support.  We urge you to upgrade GNU
10183 *** binutils to release 2.9.1 or newer.  Another option is to modify
10184 *** your PATH or compiler configuration so that the native linker is
10185 *** used, and then restart.
10186
10187 _LT_EOF
10188       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10191       else
10192         ld_shlibs=no
10193       fi
10194       ;;
10195
10196     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10197       case `$LD -v 2>&1` in
10198         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10199         ld_shlibs=no
10200         cat <<_LT_EOF 1>&2
10201
10202 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10203 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10204 *** is disabling shared libraries support.  We urge you to upgrade GNU
10205 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10206 *** your PATH or compiler configuration so that the native linker is
10207 *** used, and then restart.
10208
10209 _LT_EOF
10210         ;;
10211         *)
10212           # For security reasons, it is highly recommended that you always
10213           # use absolute paths for naming shared libraries, and exclude the
10214           # DT_RUNPATH tag from executables and libraries.  But doing so
10215           # requires that you compile everything twice, which is a pain.
10216           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10217             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10220           else
10221             ld_shlibs=no
10222           fi
10223         ;;
10224       esac
10225       ;;
10226
10227     sunos4*)
10228       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10229       wlarc=
10230       hardcode_direct=yes
10231       hardcode_shlibpath_var=no
10232       ;;
10233
10234     *)
10235       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10236         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10238       else
10239         ld_shlibs=no
10240       fi
10241       ;;
10242     esac
10243
10244     if test "$ld_shlibs" = no; then
10245       runpath_var=
10246       hardcode_libdir_flag_spec=
10247       export_dynamic_flag_spec=
10248       whole_archive_flag_spec=
10249     fi
10250   else
10251     # PORTME fill in a description of your system's linker (not GNU ld)
10252     case $host_os in
10253     aix3*)
10254       allow_undefined_flag=unsupported
10255       always_export_symbols=yes
10256       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'
10257       # Note: this linker hardcodes the directories in LIBPATH if there
10258       # are no directories specified by -L.
10259       hardcode_minus_L=yes
10260       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10261         # Neither direct hardcoding nor static linking is supported with a
10262         # broken collect2.
10263         hardcode_direct=unsupported
10264       fi
10265       ;;
10266
10267     aix[4-9]*)
10268       if test "$host_cpu" = ia64; then
10269         # On IA64, the linker does run time linking by default, so we don't
10270         # have to do anything special.
10271         aix_use_runtimelinking=no
10272         exp_sym_flag='-Bexport'
10273         no_entry_flag=""
10274       else
10275         # If we're using GNU nm, then we don't want the "-C" option.
10276         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10277         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10278           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'
10279         else
10280           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'
10281         fi
10282         aix_use_runtimelinking=no
10283
10284         # Test if we are trying to use run time linking or normal
10285         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10286         # need to do runtime linking.
10287         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10288           for ld_flag in $LDFLAGS; do
10289           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10290             aix_use_runtimelinking=yes
10291             break
10292           fi
10293           done
10294           ;;
10295         esac
10296
10297         exp_sym_flag='-bexport'
10298         no_entry_flag='-bnoentry'
10299       fi
10300
10301       # When large executables or shared objects are built, AIX ld can
10302       # have problems creating the table of contents.  If linking a library
10303       # or program results in "error TOC overflow" add -mminimal-toc to
10304       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10305       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10306
10307       archive_cmds=''
10308       hardcode_direct=yes
10309       hardcode_direct_absolute=yes
10310       hardcode_libdir_separator=':'
10311       link_all_deplibs=yes
10312       file_list_spec='${wl}-f,'
10313
10314       if test "$GCC" = yes; then
10315         case $host_os in aix4.[012]|aix4.[012].*)
10316         # We only want to do this on AIX 4.2 and lower, the check
10317         # below for broken collect2 doesn't work under 4.3+
10318           collect2name=`${CC} -print-prog-name=collect2`
10319           if test -f "$collect2name" &&
10320            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10321           then
10322           # We have reworked collect2
10323           :
10324           else
10325           # We have old collect2
10326           hardcode_direct=unsupported
10327           # It fails to find uninstalled libraries when the uninstalled
10328           # path is not listed in the libpath.  Setting hardcode_minus_L
10329           # to unsupported forces relinking
10330           hardcode_minus_L=yes
10331           hardcode_libdir_flag_spec='-L$libdir'
10332           hardcode_libdir_separator=
10333           fi
10334           ;;
10335         esac
10336         shared_flag='-shared'
10337         if test "$aix_use_runtimelinking" = yes; then
10338           shared_flag="$shared_flag "'${wl}-G'
10339         fi
10340       else
10341         # not using gcc
10342         if test "$host_cpu" = ia64; then
10343         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10344         # chokes on -Wl,-G. The following line is correct:
10345           shared_flag='-G'
10346         else
10347           if test "$aix_use_runtimelinking" = yes; then
10348             shared_flag='${wl}-G'
10349           else
10350             shared_flag='${wl}-bM:SRE'
10351           fi
10352         fi
10353       fi
10354
10355       export_dynamic_flag_spec='${wl}-bexpall'
10356       # It seems that -bexpall does not export symbols beginning with
10357       # underscore (_), so it is better to generate a list of symbols to export.
10358       always_export_symbols=yes
10359       if test "$aix_use_runtimelinking" = yes; then
10360         # Warning - without using the other runtime loading flags (-brtl),
10361         # -berok will link without error, but may produce a broken library.
10362         allow_undefined_flag='-berok'
10363         # Determine the default libpath from the value encoded in an
10364         # empty executable.
10365         cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371
10372 int
10373 main ()
10374 {
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (ac_try="$ac_link"
10382 case "(($ac_try" in
10383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384   *) ac_try_echo=$ac_try;;
10385 esac
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387   (eval "$ac_link") 2>conftest.er1
10388   ac_status=$?
10389   grep -v '^ *+' conftest.er1 >conftest.err
10390   rm -f conftest.er1
10391   cat conftest.err >&5
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } && {
10394          test -z "$ac_c_werror_flag" ||
10395          test ! -s conftest.err
10396        } && test -s conftest$ac_exeext &&
10397        $as_test_x conftest$ac_exeext; then
10398
10399 lt_aix_libpath_sed='
10400     /Import File Strings/,/^$/ {
10401         /^0/ {
10402             s/^0  *\(.*\)$/\1/
10403             p
10404         }
10405     }'
10406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10407 # Check for a 64-bit object if we didn't find anything.
10408 if test -z "$aix_libpath"; then
10409   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410 fi
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415
10416 fi
10417
10418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10419       conftest$ac_exeext conftest.$ac_ext
10420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10421
10422         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10423         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"
10424       else
10425         if test "$host_cpu" = ia64; then
10426           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10427           allow_undefined_flag="-z nodefs"
10428           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"
10429         else
10430          # Determine the default libpath from the value encoded in an
10431          # empty executable.
10432          cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h.  */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h.  */
10438
10439 int
10440 main ()
10441 {
10442
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454   (eval "$ac_link") 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } && {
10461          test -z "$ac_c_werror_flag" ||
10462          test ! -s conftest.err
10463        } && test -s conftest$ac_exeext &&
10464        $as_test_x conftest$ac_exeext; then
10465
10466 lt_aix_libpath_sed='
10467     /Import File Strings/,/^$/ {
10468         /^0/ {
10469             s/^0  *\(.*\)$/\1/
10470             p
10471         }
10472     }'
10473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10474 # Check for a 64-bit object if we didn't find anything.
10475 if test -z "$aix_libpath"; then
10476   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10477 fi
10478 else
10479   echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10481
10482
10483 fi
10484
10485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10486       conftest$ac_exeext conftest.$ac_ext
10487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10488
10489          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10490           # Warning - without using the other run time loading flags,
10491           # -berok will link without error, but may produce a broken library.
10492           no_undefined_flag=' ${wl}-bernotok'
10493           allow_undefined_flag=' ${wl}-berok'
10494           # Exported symbols can be pulled into shared objects from archives
10495           whole_archive_flag_spec='$convenience'
10496           archive_cmds_need_lc=yes
10497           # This is similar to how AIX traditionally builds its shared libraries.
10498           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'
10499         fi
10500       fi
10501       ;;
10502
10503     amigaos*)
10504       case $host_cpu in
10505       powerpc)
10506             # see comment about AmigaOS4 .so support
10507             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10508             archive_expsym_cmds=''
10509         ;;
10510       m68k)
10511             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)'
10512             hardcode_libdir_flag_spec='-L$libdir'
10513             hardcode_minus_L=yes
10514         ;;
10515       esac
10516       ;;
10517
10518     bsdi[45]*)
10519       export_dynamic_flag_spec=-rdynamic
10520       ;;
10521
10522     cygwin* | mingw* | pw32* | cegcc*)
10523       # When not using gcc, we currently assume that we are using
10524       # Microsoft Visual C++.
10525       # hardcode_libdir_flag_spec is actually meaningless, as there is
10526       # no search path for DLLs.
10527       hardcode_libdir_flag_spec=' '
10528       allow_undefined_flag=unsupported
10529       # Tell ltmain to make .lib files, not .a files.
10530       libext=lib
10531       # Tell ltmain to make .dll files, not .so files.
10532       shrext_cmds=".dll"
10533       # FIXME: Setting linknames here is a bad hack.
10534       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10535       # The linker will automatically build a .lib file if we build a DLL.
10536       old_archive_from_new_cmds='true'
10537       # FIXME: Should let the user specify the lib program.
10538       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10539       fix_srcfile_path='`cygpath -w "$srcfile"`'
10540       enable_shared_with_static_runtimes=yes
10541       ;;
10542
10543     darwin* | rhapsody*)
10544
10545
10546   archive_cmds_need_lc=no
10547   hardcode_direct=no
10548   hardcode_automatic=yes
10549   hardcode_shlibpath_var=unsupported
10550   whole_archive_flag_spec=''
10551   link_all_deplibs=yes
10552   allow_undefined_flag="$_lt_dar_allow_undefined"
10553   case $cc_basename in
10554      ifort*) _lt_dar_can_shared=yes ;;
10555      *) _lt_dar_can_shared=$GCC ;;
10556   esac
10557   if test "$_lt_dar_can_shared" = "yes"; then
10558     output_verbose_link_cmd=echo
10559     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10560     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10561     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}"
10562     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}"
10563
10564   else
10565   ld_shlibs=no
10566   fi
10567
10568       ;;
10569
10570     dgux*)
10571       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572       hardcode_libdir_flag_spec='-L$libdir'
10573       hardcode_shlibpath_var=no
10574       ;;
10575
10576     freebsd1*)
10577       ld_shlibs=no
10578       ;;
10579
10580     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10581     # support.  Future versions do this automatically, but an explicit c++rt0.o
10582     # does not break anything, and helps significantly (at the cost of a little
10583     # extra space).
10584     freebsd2.2*)
10585       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10586       hardcode_libdir_flag_spec='-R$libdir'
10587       hardcode_direct=yes
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10592     freebsd2*)
10593       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10594       hardcode_direct=yes
10595       hardcode_minus_L=yes
10596       hardcode_shlibpath_var=no
10597       ;;
10598
10599     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10600     freebsd* | dragonfly*)
10601       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10602       hardcode_libdir_flag_spec='-R$libdir'
10603       hardcode_direct=yes
10604       hardcode_shlibpath_var=no
10605       ;;
10606
10607     hpux9*)
10608       if test "$GCC" = yes; then
10609         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'
10610       else
10611         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'
10612       fi
10613       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10614       hardcode_libdir_separator=:
10615       hardcode_direct=yes
10616
10617       # hardcode_minus_L: Not really in the search PATH,
10618       # but as the default location of the library.
10619       hardcode_minus_L=yes
10620       export_dynamic_flag_spec='${wl}-E'
10621       ;;
10622
10623     hpux10*)
10624       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10625         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10626       else
10627         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10628       fi
10629       if test "$with_gnu_ld" = no; then
10630         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10631         hardcode_libdir_flag_spec_ld='+b $libdir'
10632         hardcode_libdir_separator=:
10633         hardcode_direct=yes
10634         hardcode_direct_absolute=yes
10635         export_dynamic_flag_spec='${wl}-E'
10636         # hardcode_minus_L: Not really in the search PATH,
10637         # but as the default location of the library.
10638         hardcode_minus_L=yes
10639       fi
10640       ;;
10641
10642     hpux11*)
10643       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10644         case $host_cpu in
10645         hppa*64*)
10646           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10647           ;;
10648         ia64*)
10649           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10650           ;;
10651         *)
10652           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10653           ;;
10654         esac
10655       else
10656         case $host_cpu in
10657         hppa*64*)
10658           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10659           ;;
10660         ia64*)
10661           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10662           ;;
10663         *)
10664           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10665           ;;
10666         esac
10667       fi
10668       if test "$with_gnu_ld" = no; then
10669         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10670         hardcode_libdir_separator=:
10671
10672         case $host_cpu in
10673         hppa*64*|ia64*)
10674           hardcode_direct=no
10675           hardcode_shlibpath_var=no
10676           ;;
10677         *)
10678           hardcode_direct=yes
10679           hardcode_direct_absolute=yes
10680           export_dynamic_flag_spec='${wl}-E'
10681
10682           # hardcode_minus_L: Not really in the search PATH,
10683           # but as the default location of the library.
10684           hardcode_minus_L=yes
10685           ;;
10686         esac
10687       fi
10688       ;;
10689
10690     irix5* | irix6* | nonstopux*)
10691       if test "$GCC" = yes; then
10692         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'
10693         # Try to use the -exported_symbol ld option, if it does not
10694         # work, assume that -exports_file does not work either and
10695         # implicitly export all symbols.
10696         save_LDFLAGS="$LDFLAGS"
10697         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10698         cat >conftest.$ac_ext <<_ACEOF
10699 int foo(void) {}
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_link") 2>conftest.er1
10709   ac_status=$?
10710   grep -v '^ *+' conftest.er1 >conftest.err
10711   rm -f conftest.er1
10712   cat conftest.err >&5
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); } && {
10715          test -z "$ac_c_werror_flag" ||
10716          test ! -s conftest.err
10717        } && test -s conftest$ac_exeext &&
10718        $as_test_x conftest$ac_exeext; then
10719   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'
10720
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725
10726 fi
10727
10728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10729       conftest$ac_exeext conftest.$ac_ext
10730         LDFLAGS="$save_LDFLAGS"
10731       else
10732         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'
10733         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'
10734       fi
10735       archive_cmds_need_lc='no'
10736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10737       hardcode_libdir_separator=:
10738       inherit_rpath=yes
10739       link_all_deplibs=yes
10740       ;;
10741
10742     netbsd*)
10743       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10744         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10745       else
10746         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10747       fi
10748       hardcode_libdir_flag_spec='-R$libdir'
10749       hardcode_direct=yes
10750       hardcode_shlibpath_var=no
10751       ;;
10752
10753     newsos6)
10754       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755       hardcode_direct=yes
10756       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10757       hardcode_libdir_separator=:
10758       hardcode_shlibpath_var=no
10759       ;;
10760
10761     *nto* | *qnx*)
10762       ;;
10763
10764     openbsd*)
10765       if test -f /usr/libexec/ld.so; then
10766         hardcode_direct=yes
10767         hardcode_shlibpath_var=no
10768         hardcode_direct_absolute=yes
10769         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10771           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10772           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10773           export_dynamic_flag_spec='${wl}-E'
10774         else
10775           case $host_os in
10776            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10777              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10778              hardcode_libdir_flag_spec='-R$libdir'
10779              ;;
10780            *)
10781              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10783              ;;
10784           esac
10785         fi
10786       else
10787         ld_shlibs=no
10788       fi
10789       ;;
10790
10791     os2*)
10792       hardcode_libdir_flag_spec='-L$libdir'
10793       hardcode_minus_L=yes
10794       allow_undefined_flag=unsupported
10795       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'
10796       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10797       ;;
10798
10799     osf3*)
10800       if test "$GCC" = yes; then
10801         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10802         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'
10803       else
10804         allow_undefined_flag=' -expect_unresolved \*'
10805         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'
10806       fi
10807       archive_cmds_need_lc='no'
10808       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809       hardcode_libdir_separator=:
10810       ;;
10811
10812     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10813       if test "$GCC" = yes; then
10814         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10815         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'
10816         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817       else
10818         allow_undefined_flag=' -expect_unresolved \*'
10819         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'
10820         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~
10821         $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'
10822
10823         # Both c and cxx compiler support -rpath directly
10824         hardcode_libdir_flag_spec='-rpath $libdir'
10825       fi
10826       archive_cmds_need_lc='no'
10827       hardcode_libdir_separator=:
10828       ;;
10829
10830     solaris*)
10831       no_undefined_flag=' -z defs'
10832       if test "$GCC" = yes; then
10833         wlarc='${wl}'
10834         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10835         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10837       else
10838         case `$CC -V 2>&1` in
10839         *"Compilers 5.0"*)
10840           wlarc=''
10841           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10843           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10844           ;;
10845         *)
10846           wlarc='${wl}'
10847           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10848           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10850           ;;
10851         esac
10852       fi
10853       hardcode_libdir_flag_spec='-R$libdir'
10854       hardcode_shlibpath_var=no
10855       case $host_os in
10856       solaris2.[0-5] | solaris2.[0-5].*) ;;
10857       *)
10858         # The compiler driver will combine and reorder linker options,
10859         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10860         # but is careful enough not to reorder.
10861         # Supported since Solaris 2.6 (maybe 2.5.1?)
10862         if test "$GCC" = yes; then
10863           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10864         else
10865           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10866         fi
10867         ;;
10868       esac
10869       link_all_deplibs=yes
10870       ;;
10871
10872     sunos4*)
10873       if test "x$host_vendor" = xsequent; then
10874         # Use $CC to link under sequent, because it throws in some extra .o
10875         # files that make .init and .fini sections work.
10876         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10877       else
10878         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10879       fi
10880       hardcode_libdir_flag_spec='-L$libdir'
10881       hardcode_direct=yes
10882       hardcode_minus_L=yes
10883       hardcode_shlibpath_var=no
10884       ;;
10885
10886     sysv4)
10887       case $host_vendor in
10888         sni)
10889           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890           hardcode_direct=yes # is this really true???
10891         ;;
10892         siemens)
10893           ## LD is ld it makes a PLAMLIB
10894           ## CC just makes a GrossModule.
10895           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10896           reload_cmds='$CC -r -o $output$reload_objs'
10897           hardcode_direct=no
10898         ;;
10899         motorola)
10900           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10902         ;;
10903       esac
10904       runpath_var='LD_RUN_PATH'
10905       hardcode_shlibpath_var=no
10906       ;;
10907
10908     sysv4.3*)
10909       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910       hardcode_shlibpath_var=no
10911       export_dynamic_flag_spec='-Bexport'
10912       ;;
10913
10914     sysv4*MP*)
10915       if test -d /usr/nec; then
10916         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917         hardcode_shlibpath_var=no
10918         runpath_var=LD_RUN_PATH
10919         hardcode_runpath_var=yes
10920         ld_shlibs=yes
10921       fi
10922       ;;
10923
10924     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10925       no_undefined_flag='${wl}-z,text'
10926       archive_cmds_need_lc=no
10927       hardcode_shlibpath_var=no
10928       runpath_var='LD_RUN_PATH'
10929
10930       if test "$GCC" = yes; then
10931         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10932         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933       else
10934         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10936       fi
10937       ;;
10938
10939     sysv5* | sco3.2v5* | sco5v6*)
10940       # Note: We can NOT use -z defs as we might desire, because we do not
10941       # link with -lc, and that would cause any symbols used from libc to
10942       # always be unresolved, which means just about no library would
10943       # ever link correctly.  If we're not using GNU ld we use -z text
10944       # though, which does catch some bad symbols but isn't as heavy-handed
10945       # as -z defs.
10946       no_undefined_flag='${wl}-z,text'
10947       allow_undefined_flag='${wl}-z,nodefs'
10948       archive_cmds_need_lc=no
10949       hardcode_shlibpath_var=no
10950       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10951       hardcode_libdir_separator=':'
10952       link_all_deplibs=yes
10953       export_dynamic_flag_spec='${wl}-Bexport'
10954       runpath_var='LD_RUN_PATH'
10955
10956       if test "$GCC" = yes; then
10957         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959       else
10960         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962       fi
10963       ;;
10964
10965     uts4*)
10966       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967       hardcode_libdir_flag_spec='-L$libdir'
10968       hardcode_shlibpath_var=no
10969       ;;
10970
10971     *)
10972       ld_shlibs=no
10973       ;;
10974     esac
10975
10976     if test x$host_vendor = xsni; then
10977       case $host in
10978       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10979         export_dynamic_flag_spec='${wl}-Blargedynsym'
10980         ;;
10981       esac
10982     fi
10983   fi
10984
10985 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10986 echo "${ECHO_T}$ld_shlibs" >&6; }
10987 test "$ld_shlibs" = no && can_build_shared=no
10988
10989 with_gnu_ld=$with_gnu_ld
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005 #
11006 # Do we need to explicitly link libc?
11007 #
11008 case "x$archive_cmds_need_lc" in
11009 x|xyes)
11010   # Assume -lc should be added
11011   archive_cmds_need_lc=yes
11012
11013   if test "$enable_shared" = yes && test "$GCC" = yes; then
11014     case $archive_cmds in
11015     *'~'*)
11016       # FIXME: we may have to deal with multi-command sequences.
11017       ;;
11018     '$CC '*)
11019       # Test whether the compiler implicitly links with -lc since on some
11020       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11021       # to ld, don't add -lc before -lgcc.
11022       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11023 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11024       $RM conftest*
11025       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11026
11027       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028   (eval $ac_compile) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } 2>conftest.err; then
11032         soname=conftest
11033         lib=conftest
11034         libobjs=conftest.$ac_objext
11035         deplibs=
11036         wl=$lt_prog_compiler_wl
11037         pic_flag=$lt_prog_compiler_pic
11038         compiler_flags=-v
11039         linker_flags=-v
11040         verstring=
11041         output_objdir=.
11042         libname=conftest
11043         lt_save_allow_undefined_flag=$allow_undefined_flag
11044         allow_undefined_flag=
11045         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11046   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }
11050         then
11051           archive_cmds_need_lc=no
11052         else
11053           archive_cmds_need_lc=yes
11054         fi
11055         allow_undefined_flag=$lt_save_allow_undefined_flag
11056       else
11057         cat conftest.err 1>&5
11058       fi
11059       $RM conftest*
11060       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11061 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11062       ;;
11063     esac
11064   fi
11065   ;;
11066 esac
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11226
11227 if test "$GCC" = yes; then
11228   case $host_os in
11229     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11230     *) lt_awk_arg="/^libraries:/" ;;
11231   esac
11232   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11233   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11234     # if the path contains ";" then we assume it to be the separator
11235     # otherwise default to the standard path separator (i.e. ":") - it is
11236     # assumed that no part of a normal pathname contains ";" but that should
11237     # okay in the real world where ";" in dirpaths is itself problematic.
11238     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11239   else
11240     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11241   fi
11242   # Ok, now we have the path, separated by spaces, we can step through it
11243   # and add multilib dir if necessary.
11244   lt_tmp_lt_search_path_spec=
11245   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11246   for lt_sys_path in $lt_search_path_spec; do
11247     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11248       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11249     else
11250       test -d "$lt_sys_path" && \
11251         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11252     fi
11253   done
11254   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11255 BEGIN {RS=" "; FS="/|\n";} {
11256   lt_foo="";
11257   lt_count=0;
11258   for (lt_i = NF; lt_i > 0; lt_i--) {
11259     if ($lt_i != "" && $lt_i != ".") {
11260       if ($lt_i == "..") {
11261         lt_count++;
11262       } else {
11263         if (lt_count == 0) {
11264           lt_foo="/" $lt_i lt_foo;
11265         } else {
11266           lt_count--;
11267         }
11268       }
11269     }
11270   }
11271   if (lt_foo != "") { lt_freq[lt_foo]++; }
11272   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11273 }'`
11274   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11275 else
11276   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11277 fi
11278 library_names_spec=
11279 libname_spec='lib$name'
11280 soname_spec=
11281 shrext_cmds=".so"
11282 postinstall_cmds=
11283 postuninstall_cmds=
11284 finish_cmds=
11285 finish_eval=
11286 shlibpath_var=
11287 shlibpath_overrides_runpath=unknown
11288 version_type=none
11289 dynamic_linker="$host_os ld.so"
11290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11291 need_lib_prefix=unknown
11292 hardcode_into_libs=no
11293
11294 # when you set need_version to no, make sure it does not cause -set_version
11295 # flags to be left without arguments
11296 need_version=unknown
11297
11298 case $host_os in
11299 aix3*)
11300   version_type=linux
11301   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11302   shlibpath_var=LIBPATH
11303
11304   # AIX 3 has no versioning support, so we append a major version to the name.
11305   soname_spec='${libname}${release}${shared_ext}$major'
11306   ;;
11307
11308 aix[4-9]*)
11309   version_type=linux
11310   need_lib_prefix=no
11311   need_version=no
11312   hardcode_into_libs=yes
11313   if test "$host_cpu" = ia64; then
11314     # AIX 5 supports IA64
11315     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11316     shlibpath_var=LD_LIBRARY_PATH
11317   else
11318     # With GCC up to 2.95.x, collect2 would create an import file
11319     # for dependence libraries.  The import file would start with
11320     # the line `#! .'.  This would cause the generated library to
11321     # depend on `.', always an invalid library.  This was fixed in
11322     # development snapshots of GCC prior to 3.0.
11323     case $host_os in
11324       aix4 | aix4.[01] | aix4.[01].*)
11325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11326            echo ' yes '
11327            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11328         :
11329       else
11330         can_build_shared=no
11331       fi
11332       ;;
11333     esac
11334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11335     # soname into executable. Probably we can add versioning support to
11336     # collect2, so additional links can be useful in future.
11337     if test "$aix_use_runtimelinking" = yes; then
11338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11339       # instead of lib<name>.a to let people know that these are not
11340       # typical AIX shared libraries.
11341       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342     else
11343       # We preserve .a as extension for shared libraries through AIX4.2
11344       # and later when we are not doing run time linking.
11345       library_names_spec='${libname}${release}.a $libname.a'
11346       soname_spec='${libname}${release}${shared_ext}$major'
11347     fi
11348     shlibpath_var=LIBPATH
11349   fi
11350   ;;
11351
11352 amigaos*)
11353   case $host_cpu in
11354   powerpc)
11355     # Since July 2007 AmigaOS4 officially supports .so libraries.
11356     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358     ;;
11359   m68k)
11360     library_names_spec='$libname.ixlibrary $libname.a'
11361     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11362     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'
11363     ;;
11364   esac
11365   ;;
11366
11367 beos*)
11368   library_names_spec='${libname}${shared_ext}'
11369   dynamic_linker="$host_os ld.so"
11370   shlibpath_var=LIBRARY_PATH
11371   ;;
11372
11373 bsdi[45]*)
11374   version_type=linux
11375   need_version=no
11376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377   soname_spec='${libname}${release}${shared_ext}$major'
11378   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11379   shlibpath_var=LD_LIBRARY_PATH
11380   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11381   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11382   # the default ld.so.conf also contains /usr/contrib/lib and
11383   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11384   # libtool to hard-code these into programs
11385   ;;
11386
11387 cygwin* | mingw* | pw32* | cegcc*)
11388   version_type=windows
11389   shrext_cmds=".dll"
11390   need_version=no
11391   need_lib_prefix=no
11392
11393   case $GCC,$host_os in
11394   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11395     library_names_spec='$libname.dll.a'
11396     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11397     postinstall_cmds='base_file=`basename \${file}`~
11398       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11399       dldir=$destdir/`dirname \$dlpath`~
11400       test -d \$dldir || mkdir -p \$dldir~
11401       $install_prog $dir/$dlname \$dldir/$dlname~
11402       chmod a+x \$dldir/$dlname~
11403       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11404         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11405       fi'
11406     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11407       dlpath=$dir/\$dldll~
11408        $RM \$dlpath'
11409     shlibpath_overrides_runpath=yes
11410
11411     case $host_os in
11412     cygwin*)
11413       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11414       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11415       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11416       ;;
11417     mingw* | cegcc*)
11418       # MinGW DLLs use traditional 'lib' prefix
11419       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11420       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11421       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11422         # It is most probably a Windows format PATH printed by
11423         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11424         # path with ; separators, and with drive letters. We can handle the
11425         # drive letters (cygwin fileutils understands them), so leave them,
11426         # especially as we might pass files found there to a mingw objdump,
11427         # which wouldn't understand a cygwinified path. Ahh.
11428         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11429       else
11430         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11431       fi
11432       ;;
11433     pw32*)
11434       # pw32 DLLs use 'pw' prefix rather than 'lib'
11435       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436       ;;
11437     esac
11438     ;;
11439
11440   *)
11441     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11442     ;;
11443   esac
11444   dynamic_linker='Win32 ld.exe'
11445   # FIXME: first we should search . and the directory the executable is in
11446   shlibpath_var=PATH
11447   ;;
11448
11449 darwin* | rhapsody*)
11450   dynamic_linker="$host_os dyld"
11451   version_type=darwin
11452   need_lib_prefix=no
11453   need_version=no
11454   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11455   soname_spec='${libname}${release}${major}$shared_ext'
11456   shlibpath_overrides_runpath=yes
11457   shlibpath_var=DYLD_LIBRARY_PATH
11458   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11459
11460   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11461   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11462   ;;
11463
11464 dgux*)
11465   version_type=linux
11466   need_lib_prefix=no
11467   need_version=no
11468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11469   soname_spec='${libname}${release}${shared_ext}$major'
11470   shlibpath_var=LD_LIBRARY_PATH
11471   ;;
11472
11473 freebsd1*)
11474   dynamic_linker=no
11475   ;;
11476
11477 freebsd* | dragonfly*)
11478   # DragonFly does not have aout.  When/if they implement a new
11479   # versioning mechanism, adjust this.
11480   if test -x /usr/bin/objformat; then
11481     objformat=`/usr/bin/objformat`
11482   else
11483     case $host_os in
11484     freebsd[123]*) objformat=aout ;;
11485     *) objformat=elf ;;
11486     esac
11487   fi
11488   version_type=freebsd-$objformat
11489   case $version_type in
11490     freebsd-elf*)
11491       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11492       need_version=no
11493       need_lib_prefix=no
11494       ;;
11495     freebsd-*)
11496       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11497       need_version=yes
11498       ;;
11499   esac
11500   shlibpath_var=LD_LIBRARY_PATH
11501   case $host_os in
11502   freebsd2*)
11503     shlibpath_overrides_runpath=yes
11504     ;;
11505   freebsd3.[01]* | freebsdelf3.[01]*)
11506     shlibpath_overrides_runpath=yes
11507     hardcode_into_libs=yes
11508     ;;
11509   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11510   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11511     shlibpath_overrides_runpath=no
11512     hardcode_into_libs=yes
11513     ;;
11514   *) # from 4.6 on, and DragonFly
11515     shlibpath_overrides_runpath=yes
11516     hardcode_into_libs=yes
11517     ;;
11518   esac
11519   ;;
11520
11521 gnu*)
11522   version_type=linux
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11526   soname_spec='${libname}${release}${shared_ext}$major'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   hardcode_into_libs=yes
11529   ;;
11530
11531 hpux9* | hpux10* | hpux11*)
11532   # Give a soname corresponding to the major version so that dld.sl refuses to
11533   # link against other versions.
11534   version_type=sunos
11535   need_lib_prefix=no
11536   need_version=no
11537   case $host_cpu in
11538   ia64*)
11539     shrext_cmds='.so'
11540     hardcode_into_libs=yes
11541     dynamic_linker="$host_os dld.so"
11542     shlibpath_var=LD_LIBRARY_PATH
11543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545     soname_spec='${libname}${release}${shared_ext}$major'
11546     if test "X$HPUX_IA64_MODE" = X32; then
11547       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11548     else
11549       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11550     fi
11551     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11552     ;;
11553   hppa*64*)
11554     shrext_cmds='.sl'
11555     hardcode_into_libs=yes
11556     dynamic_linker="$host_os dld.sl"
11557     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560     soname_spec='${libname}${release}${shared_ext}$major'
11561     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563     ;;
11564   *)
11565     shrext_cmds='.sl'
11566     dynamic_linker="$host_os dld.sl"
11567     shlibpath_var=SHLIB_PATH
11568     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570     soname_spec='${libname}${release}${shared_ext}$major'
11571     ;;
11572   esac
11573   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11574   postinstall_cmds='chmod 555 $lib'
11575   ;;
11576
11577 interix[3-9]*)
11578   version_type=linux
11579   need_lib_prefix=no
11580   need_version=no
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11582   soname_spec='${libname}${release}${shared_ext}$major'
11583   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11584   shlibpath_var=LD_LIBRARY_PATH
11585   shlibpath_overrides_runpath=no
11586   hardcode_into_libs=yes
11587   ;;
11588
11589 irix5* | irix6* | nonstopux*)
11590   case $host_os in
11591     nonstopux*) version_type=nonstopux ;;
11592     *)
11593         if test "$lt_cv_prog_gnu_ld" = yes; then
11594                 version_type=linux
11595         else
11596                 version_type=irix
11597         fi ;;
11598   esac
11599   need_lib_prefix=no
11600   need_version=no
11601   soname_spec='${libname}${release}${shared_ext}$major'
11602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11603   case $host_os in
11604   irix5* | nonstopux*)
11605     libsuff= shlibsuff=
11606     ;;
11607   *)
11608     case $LD in # libtool.m4 will add one of these switches to LD
11609     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11610       libsuff= shlibsuff= libmagic=32-bit;;
11611     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11612       libsuff=32 shlibsuff=N32 libmagic=N32;;
11613     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11614       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11615     *) libsuff= shlibsuff= libmagic=never-match;;
11616     esac
11617     ;;
11618   esac
11619   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11620   shlibpath_overrides_runpath=no
11621   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11622   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11623   hardcode_into_libs=yes
11624   ;;
11625
11626 # No shared lib support for Linux oldld, aout, or coff.
11627 linux*oldld* | linux*aout* | linux*coff*)
11628   dynamic_linker=no
11629   ;;
11630
11631 # This must be Linux ELF.
11632 linux* | k*bsd*-gnu)
11633   version_type=linux
11634   need_lib_prefix=no
11635   need_version=no
11636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637   soname_spec='${libname}${release}${shared_ext}$major'
11638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639   shlibpath_var=LD_LIBRARY_PATH
11640   shlibpath_overrides_runpath=no
11641   # Some binutils ld are patched to set DT_RUNPATH
11642   save_LDFLAGS=$LDFLAGS
11643   save_libdir=$libdir
11644   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11645        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11646   cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652
11653 int
11654 main ()
11655 {
11656
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (ac_try="$ac_link"
11663 case "(($ac_try" in
11664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665   *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668   (eval "$ac_link") 2>conftest.er1
11669   ac_status=$?
11670   grep -v '^ *+' conftest.er1 >conftest.err
11671   rm -f conftest.er1
11672   cat conftest.err >&5
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } && {
11675          test -z "$ac_c_werror_flag" ||
11676          test ! -s conftest.err
11677        } && test -s conftest$ac_exeext &&
11678        $as_test_x conftest$ac_exeext; then
11679   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11680   shlibpath_overrides_runpath=yes
11681 fi
11682
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687
11688 fi
11689
11690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11691       conftest$ac_exeext conftest.$ac_ext
11692   LDFLAGS=$save_LDFLAGS
11693   libdir=$save_libdir
11694
11695   # This implies no fast_install, which is unacceptable.
11696   # Some rework will be needed to allow for fast_install
11697   # before this can be enabled.
11698   hardcode_into_libs=yes
11699
11700   # Append ld.so.conf contents to the search path
11701   if test -f /etc/ld.so.conf; then
11702     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' ' '`
11703     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11704   fi
11705
11706   # We used to test for /lib/ld.so.1 and disable shared libraries on
11707   # powerpc, because MkLinux only supported shared libraries with the
11708   # GNU dynamic linker.  Since this was broken with cross compilers,
11709   # most powerpc-linux boxes support dynamic linking these days and
11710   # people can always --disable-shared, the test was removed, and we
11711   # assume the GNU/Linux dynamic linker is in use.
11712   dynamic_linker='GNU/Linux ld.so'
11713   ;;
11714
11715 netbsd*)
11716   version_type=sunos
11717   need_lib_prefix=no
11718   need_version=no
11719   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11721     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11722     dynamic_linker='NetBSD (a.out) ld.so'
11723   else
11724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11725     soname_spec='${libname}${release}${shared_ext}$major'
11726     dynamic_linker='NetBSD ld.elf_so'
11727   fi
11728   shlibpath_var=LD_LIBRARY_PATH
11729   shlibpath_overrides_runpath=yes
11730   hardcode_into_libs=yes
11731   ;;
11732
11733 newsos6)
11734   version_type=linux
11735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736   shlibpath_var=LD_LIBRARY_PATH
11737   shlibpath_overrides_runpath=yes
11738   ;;
11739
11740 *nto* | *qnx*)
11741   version_type=qnx
11742   need_lib_prefix=no
11743   need_version=no
11744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745   soname_spec='${libname}${release}${shared_ext}$major'
11746   shlibpath_var=LD_LIBRARY_PATH
11747   shlibpath_overrides_runpath=no
11748   hardcode_into_libs=yes
11749   dynamic_linker='ldqnx.so'
11750   ;;
11751
11752 openbsd*)
11753   version_type=sunos
11754   sys_lib_dlsearch_path_spec="/usr/lib"
11755   need_lib_prefix=no
11756   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11757   case $host_os in
11758     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11759     *)                          need_version=no  ;;
11760   esac
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11762   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11765     case $host_os in
11766       openbsd2.[89] | openbsd2.[89].*)
11767         shlibpath_overrides_runpath=no
11768         ;;
11769       *)
11770         shlibpath_overrides_runpath=yes
11771         ;;
11772       esac
11773   else
11774     shlibpath_overrides_runpath=yes
11775   fi
11776   ;;
11777
11778 os2*)
11779   libname_spec='$name'
11780   shrext_cmds=".dll"
11781   need_lib_prefix=no
11782   library_names_spec='$libname${shared_ext} $libname.a'
11783   dynamic_linker='OS/2 ld.exe'
11784   shlibpath_var=LIBPATH
11785   ;;
11786
11787 osf3* | osf4* | osf5*)
11788   version_type=osf
11789   need_lib_prefix=no
11790   need_version=no
11791   soname_spec='${libname}${release}${shared_ext}$major'
11792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793   shlibpath_var=LD_LIBRARY_PATH
11794   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11795   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11796   ;;
11797
11798 rdos*)
11799   dynamic_linker=no
11800   ;;
11801
11802 solaris*)
11803   version_type=linux
11804   need_lib_prefix=no
11805   need_version=no
11806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807   soname_spec='${libname}${release}${shared_ext}$major'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   shlibpath_overrides_runpath=yes
11810   hardcode_into_libs=yes
11811   # ldd complains unless libraries are executable
11812   postinstall_cmds='chmod +x $lib'
11813   ;;
11814
11815 sunos4*)
11816   version_type=sunos
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11818   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   shlibpath_overrides_runpath=yes
11821   if test "$with_gnu_ld" = yes; then
11822     need_lib_prefix=no
11823   fi
11824   need_version=yes
11825   ;;
11826
11827 sysv4 | sysv4.3*)
11828   version_type=linux
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830   soname_spec='${libname}${release}${shared_ext}$major'
11831   shlibpath_var=LD_LIBRARY_PATH
11832   case $host_vendor in
11833     sni)
11834       shlibpath_overrides_runpath=no
11835       need_lib_prefix=no
11836       runpath_var=LD_RUN_PATH
11837       ;;
11838     siemens)
11839       need_lib_prefix=no
11840       ;;
11841     motorola)
11842       need_lib_prefix=no
11843       need_version=no
11844       shlibpath_overrides_runpath=no
11845       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11846       ;;
11847   esac
11848   ;;
11849
11850 sysv4*MP*)
11851   if test -d /usr/nec ;then
11852     version_type=linux
11853     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11854     soname_spec='$libname${shared_ext}.$major'
11855     shlibpath_var=LD_LIBRARY_PATH
11856   fi
11857   ;;
11858
11859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11860   version_type=freebsd-elf
11861   need_lib_prefix=no
11862   need_version=no
11863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11864   soname_spec='${libname}${release}${shared_ext}$major'
11865   shlibpath_var=LD_LIBRARY_PATH
11866   shlibpath_overrides_runpath=yes
11867   hardcode_into_libs=yes
11868   if test "$with_gnu_ld" = yes; then
11869     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11870   else
11871     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11872     case $host_os in
11873       sco3.2v5*)
11874         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11875         ;;
11876     esac
11877   fi
11878   sys_lib_dlsearch_path_spec='/usr/lib'
11879   ;;
11880
11881 tpf*)
11882   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11883   version_type=linux
11884   need_lib_prefix=no
11885   need_version=no
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   shlibpath_overrides_runpath=no
11889   hardcode_into_libs=yes
11890   ;;
11891
11892 uts4*)
11893   version_type=linux
11894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11895   soname_spec='${libname}${release}${shared_ext}$major'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   ;;
11898
11899 *)
11900   dynamic_linker=no
11901   ;;
11902 esac
11903 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11904 echo "${ECHO_T}$dynamic_linker" >&6; }
11905 test "$dynamic_linker" = no && can_build_shared=no
11906
11907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11908 if test "$GCC" = yes; then
11909   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11910 fi
11911
11912 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11913   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11914 fi
11915 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11916   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11917 fi
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12006 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12007 hardcode_action=
12008 if test -n "$hardcode_libdir_flag_spec" ||
12009    test -n "$runpath_var" ||
12010    test "X$hardcode_automatic" = "Xyes" ; then
12011
12012   # We can hardcode non-existent directories.
12013   if test "$hardcode_direct" != no &&
12014      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12015      # have to relink, otherwise we might link with an installed library
12016      # when we should be linking with a yet-to-be-installed one
12017      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12018      test "$hardcode_minus_L" != no; then
12019     # Linking always hardcodes the temporary library directory.
12020     hardcode_action=relink
12021   else
12022     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12023     hardcode_action=immediate
12024   fi
12025 else
12026   # We cannot hardcode anything, or else we can only hardcode existing
12027   # directories.
12028   hardcode_action=unsupported
12029 fi
12030 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12031 echo "${ECHO_T}$hardcode_action" >&6; }
12032
12033 if test "$hardcode_action" = relink ||
12034    test "$inherit_rpath" = yes; then
12035   # Fast installation is not supported
12036   enable_fast_install=no
12037 elif test "$shlibpath_overrides_runpath" = yes ||
12038      test "$enable_shared" = no; then
12039   # Fast installation is not necessary
12040   enable_fast_install=needless
12041 fi
12042
12043
12044
12045
12046
12047
12048   if test "x$enable_dlopen" != xyes; then
12049   enable_dlopen=unknown
12050   enable_dlopen_self=unknown
12051   enable_dlopen_self_static=unknown
12052 else
12053   lt_cv_dlopen=no
12054   lt_cv_dlopen_libs=
12055
12056   case $host_os in
12057   beos*)
12058     lt_cv_dlopen="load_add_on"
12059     lt_cv_dlopen_libs=
12060     lt_cv_dlopen_self=yes
12061     ;;
12062
12063   mingw* | pw32* | cegcc*)
12064     lt_cv_dlopen="LoadLibrary"
12065     lt_cv_dlopen_libs=
12066     ;;
12067
12068   cygwin*)
12069     lt_cv_dlopen="dlopen"
12070     lt_cv_dlopen_libs=
12071     ;;
12072
12073   darwin*)
12074   # if libdl is installed we need to link against it
12075     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12076 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080   ac_check_lib_save_LIBS=$LIBS
12081 LIBS="-ldl  $LIBS"
12082 cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h.  */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h.  */
12088
12089 /* Override any GCC internal prototype to avoid an error.
12090    Use char because int might match the return type of a GCC
12091    builtin and then its argument prototype would still apply.  */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char dlopen ();
12096 int
12097 main ()
12098 {
12099 return dlopen ();
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_link") 2>conftest.er1
12112   ac_status=$?
12113   grep -v '^ *+' conftest.er1 >conftest.err
12114   rm -f conftest.er1
12115   cat conftest.err >&5
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } && {
12118          test -z "$ac_c_werror_flag" ||
12119          test ! -s conftest.err
12120        } && test -s conftest$ac_exeext &&
12121        $as_test_x conftest$ac_exeext; then
12122   ac_cv_lib_dl_dlopen=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127         ac_cv_lib_dl_dlopen=no
12128 fi
12129
12130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12131       conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12133 fi
12134 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12135 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12136 if test $ac_cv_lib_dl_dlopen = yes; then
12137   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12138 else
12139
12140     lt_cv_dlopen="dyld"
12141     lt_cv_dlopen_libs=
12142     lt_cv_dlopen_self=yes
12143
12144 fi
12145
12146     ;;
12147
12148   *)
12149     { echo "$as_me:$LINENO: checking for shl_load" >&5
12150 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12151 if test "${ac_cv_func_shl_load+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12162 #define shl_load innocuous_shl_load
12163
12164 /* System header to define __stub macros and hopefully few prototypes,
12165     which can conflict with char shl_load (); below.
12166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167     <limits.h> exists even on freestanding compilers.  */
12168
12169 #ifdef __STDC__
12170 # include <limits.h>
12171 #else
12172 # include <assert.h>
12173 #endif
12174
12175 #undef shl_load
12176
12177 /* Override any GCC internal prototype to avoid an error.
12178    Use char because int might match the return type of a GCC
12179    builtin and then its argument prototype would still apply.  */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char shl_load ();
12184 /* The GNU C library defines this for functions which it implements
12185     to always fail with ENOSYS.  Some functions are actually named
12186     something starting with __ and the normal name is an alias.  */
12187 #if defined __stub_shl_load || defined __stub___shl_load
12188 choke me
12189 #endif
12190
12191 int
12192 main ()
12193 {
12194 return shl_load ();
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206   (eval "$ac_link") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } && {
12213          test -z "$ac_c_werror_flag" ||
12214          test ! -s conftest.err
12215        } && test -s conftest$ac_exeext &&
12216        $as_test_x conftest$ac_exeext; then
12217   ac_cv_func_shl_load=yes
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222         ac_cv_func_shl_load=no
12223 fi
12224
12225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12226       conftest$ac_exeext conftest.$ac_ext
12227 fi
12228 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12229 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12230 if test $ac_cv_func_shl_load = yes; then
12231   lt_cv_dlopen="shl_load"
12232 else
12233   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12234 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12235 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12236   echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238   ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-ldld  $LIBS"
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h.  */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h.  */
12246
12247 /* Override any GCC internal prototype to avoid an error.
12248    Use char because int might match the return type of a GCC
12249    builtin and then its argument prototype would still apply.  */
12250 #ifdef __cplusplus
12251 extern "C"
12252 #endif
12253 char shl_load ();
12254 int
12255 main ()
12256 {
12257 return shl_load ();
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_link") 2>conftest.er1
12270   ac_status=$?
12271   grep -v '^ *+' conftest.er1 >conftest.err
12272   rm -f conftest.er1
12273   cat conftest.err >&5
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } && {
12276          test -z "$ac_c_werror_flag" ||
12277          test ! -s conftest.err
12278        } && test -s conftest$ac_exeext &&
12279        $as_test_x conftest$ac_exeext; then
12280   ac_cv_lib_dld_shl_load=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285         ac_cv_lib_dld_shl_load=no
12286 fi
12287
12288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12289       conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12291 fi
12292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12293 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12294 if test $ac_cv_lib_dld_shl_load = yes; then
12295   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12296 else
12297   { echo "$as_me:$LINENO: checking for dlopen" >&5
12298 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12299 if test "${ac_cv_func_dlopen+set}" = set; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h.  */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h.  */
12308 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12310 #define dlopen innocuous_dlopen
12311
12312 /* System header to define __stub macros and hopefully few prototypes,
12313     which can conflict with char dlopen (); below.
12314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315     <limits.h> exists even on freestanding compilers.  */
12316
12317 #ifdef __STDC__
12318 # include <limits.h>
12319 #else
12320 # include <assert.h>
12321 #endif
12322
12323 #undef dlopen
12324
12325 /* Override any GCC internal prototype to avoid an error.
12326    Use char because int might match the return type of a GCC
12327    builtin and then its argument prototype would still apply.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 char dlopen ();
12332 /* The GNU C library defines this for functions which it implements
12333     to always fail with ENOSYS.  Some functions are actually named
12334     something starting with __ and the normal name is an alias.  */
12335 #if defined __stub_dlopen || defined __stub___dlopen
12336 choke me
12337 #endif
12338
12339 int
12340 main ()
12341 {
12342 return dlopen ();
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (ac_try="$ac_link"
12349 case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354   (eval "$ac_link") 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } && {
12361          test -z "$ac_c_werror_flag" ||
12362          test ! -s conftest.err
12363        } && test -s conftest$ac_exeext &&
12364        $as_test_x conftest$ac_exeext; then
12365   ac_cv_func_dlopen=yes
12366 else
12367   echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370         ac_cv_func_dlopen=no
12371 fi
12372
12373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12374       conftest$ac_exeext conftest.$ac_ext
12375 fi
12376 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12377 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12378 if test $ac_cv_func_dlopen = yes; then
12379   lt_cv_dlopen="dlopen"
12380 else
12381   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12382 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12383 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12384   echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386   ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-ldl  $LIBS"
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394
12395 /* Override any GCC internal prototype to avoid an error.
12396    Use char because int might match the return type of a GCC
12397    builtin and then its argument prototype would still apply.  */
12398 #ifdef __cplusplus
12399 extern "C"
12400 #endif
12401 char dlopen ();
12402 int
12403 main ()
12404 {
12405 return dlopen ();
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_link") 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } && {
12424          test -z "$ac_c_werror_flag" ||
12425          test ! -s conftest.err
12426        } && test -s conftest$ac_exeext &&
12427        $as_test_x conftest$ac_exeext; then
12428   ac_cv_lib_dl_dlopen=yes
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433         ac_cv_lib_dl_dlopen=no
12434 fi
12435
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437       conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12441 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12442 if test $ac_cv_lib_dl_dlopen = yes; then
12443   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12444 else
12445   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12446 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12447 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   ac_check_lib_save_LIBS=$LIBS
12451 LIBS="-lsvld  $LIBS"
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458
12459 /* Override any GCC internal prototype to avoid an error.
12460    Use char because int might match the return type of a GCC
12461    builtin and then its argument prototype would still apply.  */
12462 #ifdef __cplusplus
12463 extern "C"
12464 #endif
12465 char dlopen ();
12466 int
12467 main ()
12468 {
12469 return dlopen ();
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (ac_try="$ac_link"
12476 case "(($ac_try" in
12477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478   *) ac_try_echo=$ac_try;;
12479 esac
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481   (eval "$ac_link") 2>conftest.er1
12482   ac_status=$?
12483   grep -v '^ *+' conftest.er1 >conftest.err
12484   rm -f conftest.er1
12485   cat conftest.err >&5
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } && {
12488          test -z "$ac_c_werror_flag" ||
12489          test ! -s conftest.err
12490        } && test -s conftest$ac_exeext &&
12491        $as_test_x conftest$ac_exeext; then
12492   ac_cv_lib_svld_dlopen=yes
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497         ac_cv_lib_svld_dlopen=no
12498 fi
12499
12500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12501       conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12503 fi
12504 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12505 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12506 if test $ac_cv_lib_svld_dlopen = yes; then
12507   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12508 else
12509   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12510 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12511 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514   ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-ldld  $LIBS"
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h.  */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h.  */
12522
12523 /* Override any GCC internal prototype to avoid an error.
12524    Use char because int might match the return type of a GCC
12525    builtin and then its argument prototype would still apply.  */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char dld_link ();
12530 int
12531 main ()
12532 {
12533 return dld_link ();
12534   ;
12535   return 0;
12536 }
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545   (eval "$ac_link") 2>conftest.er1
12546   ac_status=$?
12547   grep -v '^ *+' conftest.er1 >conftest.err
12548   rm -f conftest.er1
12549   cat conftest.err >&5
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } && {
12552          test -z "$ac_c_werror_flag" ||
12553          test ! -s conftest.err
12554        } && test -s conftest$ac_exeext &&
12555        $as_test_x conftest$ac_exeext; then
12556   ac_cv_lib_dld_dld_link=yes
12557 else
12558   echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561         ac_cv_lib_dld_dld_link=no
12562 fi
12563
12564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12565       conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12569 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12570 if test $ac_cv_lib_dld_dld_link = yes; then
12571   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12572 fi
12573
12574
12575 fi
12576
12577
12578 fi
12579
12580
12581 fi
12582
12583
12584 fi
12585
12586
12587 fi
12588
12589     ;;
12590   esac
12591
12592   if test "x$lt_cv_dlopen" != xno; then
12593     enable_dlopen=yes
12594   else
12595     enable_dlopen=no
12596   fi
12597
12598   case $lt_cv_dlopen in
12599   dlopen)
12600     save_CPPFLAGS="$CPPFLAGS"
12601     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12602
12603     save_LDFLAGS="$LDFLAGS"
12604     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12605
12606     save_LIBS="$LIBS"
12607     LIBS="$lt_cv_dlopen_libs $LIBS"
12608
12609     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12610 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12611 if test "${lt_cv_dlopen_self+set}" = set; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614           if test "$cross_compiling" = yes; then :
12615   lt_cv_dlopen_self=cross
12616 else
12617   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12618   lt_status=$lt_dlunknown
12619   cat > conftest.$ac_ext <<_LT_EOF
12620 #line 12620 "configure"
12621 #include "confdefs.h"
12622
12623 #if HAVE_DLFCN_H
12624 #include <dlfcn.h>
12625 #endif
12626
12627 #include <stdio.h>
12628
12629 #ifdef RTLD_GLOBAL
12630 #  define LT_DLGLOBAL           RTLD_GLOBAL
12631 #else
12632 #  ifdef DL_GLOBAL
12633 #    define LT_DLGLOBAL         DL_GLOBAL
12634 #  else
12635 #    define LT_DLGLOBAL         0
12636 #  endif
12637 #endif
12638
12639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12640    find out it does not work in some platform. */
12641 #ifndef LT_DLLAZY_OR_NOW
12642 #  ifdef RTLD_LAZY
12643 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12644 #  else
12645 #    ifdef DL_LAZY
12646 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12647 #    else
12648 #      ifdef RTLD_NOW
12649 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12650 #      else
12651 #        ifdef DL_NOW
12652 #          define LT_DLLAZY_OR_NOW      DL_NOW
12653 #        else
12654 #          define LT_DLLAZY_OR_NOW      0
12655 #        endif
12656 #      endif
12657 #    endif
12658 #  endif
12659 #endif
12660
12661 void fnord() { int i=42;}
12662 int main ()
12663 {
12664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665   int status = $lt_dlunknown;
12666
12667   if (self)
12668     {
12669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12670       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12671       /* dlclose (self); */
12672     }
12673   else
12674     puts (dlerror ());
12675
12676   return status;
12677 }
12678 _LT_EOF
12679   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680   (eval $ac_link) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12684     (./conftest; exit; ) >&5 2>/dev/null
12685     lt_status=$?
12686     case x$lt_status in
12687       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12688       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12689       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12690     esac
12691   else :
12692     # compilation failed
12693     lt_cv_dlopen_self=no
12694   fi
12695 fi
12696 rm -fr conftest*
12697
12698
12699 fi
12700 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12701 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12702
12703     if test "x$lt_cv_dlopen_self" = xyes; then
12704       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12705       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12706 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12707 if test "${lt_cv_dlopen_self_static+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710           if test "$cross_compiling" = yes; then :
12711   lt_cv_dlopen_self_static=cross
12712 else
12713   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12714   lt_status=$lt_dlunknown
12715   cat > conftest.$ac_ext <<_LT_EOF
12716 #line 12716 "configure"
12717 #include "confdefs.h"
12718
12719 #if HAVE_DLFCN_H
12720 #include <dlfcn.h>
12721 #endif
12722
12723 #include <stdio.h>
12724
12725 #ifdef RTLD_GLOBAL
12726 #  define LT_DLGLOBAL           RTLD_GLOBAL
12727 #else
12728 #  ifdef DL_GLOBAL
12729 #    define LT_DLGLOBAL         DL_GLOBAL
12730 #  else
12731 #    define LT_DLGLOBAL         0
12732 #  endif
12733 #endif
12734
12735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12736    find out it does not work in some platform. */
12737 #ifndef LT_DLLAZY_OR_NOW
12738 #  ifdef RTLD_LAZY
12739 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12740 #  else
12741 #    ifdef DL_LAZY
12742 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12743 #    else
12744 #      ifdef RTLD_NOW
12745 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12746 #      else
12747 #        ifdef DL_NOW
12748 #          define LT_DLLAZY_OR_NOW      DL_NOW
12749 #        else
12750 #          define LT_DLLAZY_OR_NOW      0
12751 #        endif
12752 #      endif
12753 #    endif
12754 #  endif
12755 #endif
12756
12757 void fnord() { int i=42;}
12758 int main ()
12759 {
12760   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12761   int status = $lt_dlunknown;
12762
12763   if (self)
12764     {
12765       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12766       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12767       /* dlclose (self); */
12768     }
12769   else
12770     puts (dlerror ());
12771
12772   return status;
12773 }
12774 _LT_EOF
12775   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776   (eval $ac_link) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12780     (./conftest; exit; ) >&5 2>/dev/null
12781     lt_status=$?
12782     case x$lt_status in
12783       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12784       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12785       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12786     esac
12787   else :
12788     # compilation failed
12789     lt_cv_dlopen_self_static=no
12790   fi
12791 fi
12792 rm -fr conftest*
12793
12794
12795 fi
12796 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12797 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12798     fi
12799
12800     CPPFLAGS="$save_CPPFLAGS"
12801     LDFLAGS="$save_LDFLAGS"
12802     LIBS="$save_LIBS"
12803     ;;
12804   esac
12805
12806   case $lt_cv_dlopen_self in
12807   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12808   *) enable_dlopen_self=unknown ;;
12809   esac
12810
12811   case $lt_cv_dlopen_self_static in
12812   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12813   *) enable_dlopen_self_static=unknown ;;
12814   esac
12815 fi
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833 striplib=
12834 old_striplib=
12835 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12837 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12838   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12839   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12840   { echo "$as_me:$LINENO: result: yes" >&5
12841 echo "${ECHO_T}yes" >&6; }
12842 else
12843 # FIXME - insert some real tests, host_os isn't really good enough
12844   case $host_os in
12845   darwin*)
12846     if test -n "$STRIP" ; then
12847       striplib="$STRIP -x"
12848       old_striplib="$STRIP -S"
12849       { echo "$as_me:$LINENO: result: yes" >&5
12850 echo "${ECHO_T}yes" >&6; }
12851     else
12852       { echo "$as_me:$LINENO: result: no" >&5
12853 echo "${ECHO_T}no" >&6; }
12854     fi
12855     ;;
12856   *)
12857     { echo "$as_me:$LINENO: result: no" >&5
12858 echo "${ECHO_T}no" >&6; }
12859     ;;
12860   esac
12861 fi
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874   # Report which library types will actually be built
12875   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12876 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12877   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12878 echo "${ECHO_T}$can_build_shared" >&6; }
12879
12880   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12881 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12882   test "$can_build_shared" = "no" && enable_shared=no
12883
12884   # On AIX, shared libraries and static libraries use the same namespace, and
12885   # are all built from PIC.
12886   case $host_os in
12887   aix3*)
12888     test "$enable_shared" = yes && enable_static=no
12889     if test -n "$RANLIB"; then
12890       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12891       postinstall_cmds='$RANLIB $lib'
12892     fi
12893     ;;
12894
12895   aix[4-9]*)
12896     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12897       test "$enable_shared" = yes && enable_static=no
12898     fi
12899     ;;
12900   esac
12901   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12902 echo "${ECHO_T}$enable_shared" >&6; }
12903
12904   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12905 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12906   # Make sure either enable_shared or enable_static is yes.
12907   test "$enable_shared" = yes || enable_static=yes
12908   { echo "$as_me:$LINENO: result: $enable_static" >&5
12909 echo "${ECHO_T}$enable_static" >&6; }
12910
12911
12912
12913
12914 fi
12915 ac_ext=c
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921 CC="$lt_save_CC"
12922
12923
12924 ac_ext=cpp
12925 ac_cpp='$CXXCPP $CPPFLAGS'
12926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12929
12930 archive_cmds_need_lc_CXX=no
12931 allow_undefined_flag_CXX=
12932 always_export_symbols_CXX=no
12933 archive_expsym_cmds_CXX=
12934 compiler_needs_object_CXX=no
12935 export_dynamic_flag_spec_CXX=
12936 hardcode_direct_CXX=no
12937 hardcode_direct_absolute_CXX=no
12938 hardcode_libdir_flag_spec_CXX=
12939 hardcode_libdir_flag_spec_ld_CXX=
12940 hardcode_libdir_separator_CXX=
12941 hardcode_minus_L_CXX=no
12942 hardcode_shlibpath_var_CXX=unsupported
12943 hardcode_automatic_CXX=no
12944 inherit_rpath_CXX=no
12945 module_cmds_CXX=
12946 module_expsym_cmds_CXX=
12947 link_all_deplibs_CXX=unknown
12948 old_archive_cmds_CXX=$old_archive_cmds
12949 no_undefined_flag_CXX=
12950 whole_archive_flag_spec_CXX=
12951 enable_shared_with_static_runtimes_CXX=no
12952
12953 # Source file extension for C++ test sources.
12954 ac_ext=cpp
12955
12956 # Object file extension for compiled C++ test sources.
12957 objext=o
12958 objext_CXX=$objext
12959
12960 # No sense in running all these tests if we already determined that
12961 # the CXX compiler isn't working.  Some variables (like enable_shared)
12962 # are currently assumed to apply to all compilers on this platform,
12963 # and will be corrupted by setting them based on a non-working compiler.
12964 if test "$_lt_caught_CXX_error" != yes; then
12965   # Code to be used in simple compile tests
12966   lt_simple_compile_test_code="int some_variable = 0;"
12967
12968   # Code to be used in simple link tests
12969   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12970
12971   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12972
12973
12974
12975
12976
12977
12978 # If no C compiler was specified, use CC.
12979 LTCC=${LTCC-"$CC"}
12980
12981 # If no C compiler flags were specified, use CFLAGS.
12982 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12983
12984 # Allow CC to be a program name with arguments.
12985 compiler=$CC
12986
12987
12988   # save warnings/boilerplate of simple test code
12989   ac_outfile=conftest.$ac_objext
12990 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12991 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12992 _lt_compiler_boilerplate=`cat conftest.err`
12993 $RM conftest*
12994
12995   ac_outfile=conftest.$ac_objext
12996 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12997 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12998 _lt_linker_boilerplate=`cat conftest.err`
12999 $RM -r conftest*
13000
13001
13002   # Allow CC to be a program name with arguments.
13003   lt_save_CC=$CC
13004   lt_save_LD=$LD
13005   lt_save_GCC=$GCC
13006   GCC=$GXX
13007   lt_save_with_gnu_ld=$with_gnu_ld
13008   lt_save_path_LD=$lt_cv_path_LD
13009   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13010     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13011   else
13012     $as_unset lt_cv_prog_gnu_ld
13013   fi
13014   if test -n "${lt_cv_path_LDCXX+set}"; then
13015     lt_cv_path_LD=$lt_cv_path_LDCXX
13016   else
13017     $as_unset lt_cv_path_LD
13018   fi
13019   test -z "${LDCXX+set}" || LD=$LDCXX
13020   CC=${CXX-"c++"}
13021   compiler=$CC
13022   compiler_CXX=$CC
13023   for cc_temp in $compiler""; do
13024   case $cc_temp in
13025     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13026     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13027     \-*) ;;
13028     *) break;;
13029   esac
13030 done
13031 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13032
13033
13034   if test -n "$compiler"; then
13035     # We don't want -fno-exception when compiling C++ code, so set the
13036     # no_builtin_flag separately
13037     if test "$GXX" = yes; then
13038       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13039     else
13040       lt_prog_compiler_no_builtin_flag_CXX=
13041     fi
13042
13043     if test "$GXX" = yes; then
13044       # Set up default GNU C++ configuration
13045
13046
13047
13048 # Check whether --with-gnu-ld was given.
13049 if test "${with_gnu_ld+set}" = set; then
13050   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13051 else
13052   with_gnu_ld=no
13053 fi
13054
13055 ac_prog=ld
13056 if test "$GCC" = yes; then
13057   # Check if gcc -print-prog-name=ld gives a path.
13058   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13059 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13060   case $host in
13061   *-*-mingw*)
13062     # gcc leaves a trailing carriage return which upsets mingw
13063     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13064   *)
13065     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13066   esac
13067   case $ac_prog in
13068     # Accept absolute paths.
13069     [\\/]* | ?:[\\/]*)
13070       re_direlt='/[^/][^/]*/\.\./'
13071       # Canonicalize the pathname of ld
13072       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13073       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13074         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13075       done
13076       test -z "$LD" && LD="$ac_prog"
13077       ;;
13078   "")
13079     # If it fails, then pretend we aren't using GCC.
13080     ac_prog=ld
13081     ;;
13082   *)
13083     # If it is relative, then search for the first ld in PATH.
13084     with_gnu_ld=unknown
13085     ;;
13086   esac
13087 elif test "$with_gnu_ld" = yes; then
13088   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13089 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13090 else
13091   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13092 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13093 fi
13094 if test "${lt_cv_path_LD+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   if test -z "$LD"; then
13098   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13099   for ac_dir in $PATH; do
13100     IFS="$lt_save_ifs"
13101     test -z "$ac_dir" && ac_dir=.
13102     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13103       lt_cv_path_LD="$ac_dir/$ac_prog"
13104       # Check to see if the program is GNU ld.  I'd rather use --version,
13105       # but apparently some variants of GNU ld only accept -v.
13106       # Break only if it was the GNU/non-GNU ld that we prefer.
13107       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13108       *GNU* | *'with BFD'*)
13109         test "$with_gnu_ld" != no && break
13110         ;;
13111       *)
13112         test "$with_gnu_ld" != yes && break
13113         ;;
13114       esac
13115     fi
13116   done
13117   IFS="$lt_save_ifs"
13118 else
13119   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13120 fi
13121 fi
13122
13123 LD="$lt_cv_path_LD"
13124 if test -n "$LD"; then
13125   { echo "$as_me:$LINENO: result: $LD" >&5
13126 echo "${ECHO_T}$LD" >&6; }
13127 else
13128   { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13130 fi
13131 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13132 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13133    { (exit 1); exit 1; }; }
13134 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13135 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13136 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13137   echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13140 case `$LD -v 2>&1 </dev/null` in
13141 *GNU* | *'with BFD'*)
13142   lt_cv_prog_gnu_ld=yes
13143   ;;
13144 *)
13145   lt_cv_prog_gnu_ld=no
13146   ;;
13147 esac
13148 fi
13149 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13150 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13151 with_gnu_ld=$lt_cv_prog_gnu_ld
13152
13153
13154
13155
13156
13157
13158
13159       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13160       # archiving commands below assume that GNU ld is being used.
13161       if test "$with_gnu_ld" = yes; then
13162         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13163         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'
13164
13165         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13166         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13167
13168         # If archive_cmds runs LD, not CC, wlarc should be empty
13169         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13170         #     investigate it a little bit more. (MM)
13171         wlarc='${wl}'
13172
13173         # ancient GNU ld didn't support --whole-archive et. al.
13174         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13175           $GREP 'no-whole-archive' > /dev/null; then
13176           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13177         else
13178           whole_archive_flag_spec_CXX=
13179         fi
13180       else
13181         with_gnu_ld=no
13182         wlarc=
13183
13184         # A generic and very simple default shared library creation
13185         # command for GNU C++ for the case where it uses the native
13186         # linker, instead of GNU ld.  If possible, this setting should
13187         # overridden to take advantage of the native linker features on
13188         # the platform it is being used on.
13189         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13190       fi
13191
13192       # Commands to make compiler produce verbose output that lists
13193       # what "hidden" libraries, object files and flags are used when
13194       # linking a shared library.
13195       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13196
13197     else
13198       GXX=no
13199       with_gnu_ld=no
13200       wlarc=
13201     fi
13202
13203     # PORTME: fill in a description of your system's C++ link characteristics
13204     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13205 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13206     ld_shlibs_CXX=yes
13207     case $host_os in
13208       aix3*)
13209         # FIXME: insert proper C++ library support
13210         ld_shlibs_CXX=no
13211         ;;
13212       aix[4-9]*)
13213         if test "$host_cpu" = ia64; then
13214           # On IA64, the linker does run time linking by default, so we don't
13215           # have to do anything special.
13216           aix_use_runtimelinking=no
13217           exp_sym_flag='-Bexport'
13218           no_entry_flag=""
13219         else
13220           aix_use_runtimelinking=no
13221
13222           # Test if we are trying to use run time linking or normal
13223           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13224           # need to do runtime linking.
13225           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13226             for ld_flag in $LDFLAGS; do
13227               case $ld_flag in
13228               *-brtl*)
13229                 aix_use_runtimelinking=yes
13230                 break
13231                 ;;
13232               esac
13233             done
13234             ;;
13235           esac
13236
13237           exp_sym_flag='-bexport'
13238           no_entry_flag='-bnoentry'
13239         fi
13240
13241         # When large executables or shared objects are built, AIX ld can
13242         # have problems creating the table of contents.  If linking a library
13243         # or program results in "error TOC overflow" add -mminimal-toc to
13244         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13245         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13246
13247         archive_cmds_CXX=''
13248         hardcode_direct_CXX=yes
13249         hardcode_direct_absolute_CXX=yes
13250         hardcode_libdir_separator_CXX=':'
13251         link_all_deplibs_CXX=yes
13252         file_list_spec_CXX='${wl}-f,'
13253
13254         if test "$GXX" = yes; then
13255           case $host_os in aix4.[012]|aix4.[012].*)
13256           # We only want to do this on AIX 4.2 and lower, the check
13257           # below for broken collect2 doesn't work under 4.3+
13258           collect2name=`${CC} -print-prog-name=collect2`
13259           if test -f "$collect2name" &&
13260              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13261           then
13262             # We have reworked collect2
13263             :
13264           else
13265             # We have old collect2
13266             hardcode_direct_CXX=unsupported
13267             # It fails to find uninstalled libraries when the uninstalled
13268             # path is not listed in the libpath.  Setting hardcode_minus_L
13269             # to unsupported forces relinking
13270             hardcode_minus_L_CXX=yes
13271             hardcode_libdir_flag_spec_CXX='-L$libdir'
13272             hardcode_libdir_separator_CXX=
13273           fi
13274           esac
13275           shared_flag='-shared'
13276           if test "$aix_use_runtimelinking" = yes; then
13277             shared_flag="$shared_flag "'${wl}-G'
13278           fi
13279         else
13280           # not using gcc
13281           if test "$host_cpu" = ia64; then
13282           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13283           # chokes on -Wl,-G. The following line is correct:
13284           shared_flag='-G'
13285           else
13286             if test "$aix_use_runtimelinking" = yes; then
13287               shared_flag='${wl}-G'
13288             else
13289               shared_flag='${wl}-bM:SRE'
13290             fi
13291           fi
13292         fi
13293
13294         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13295         # It seems that -bexpall does not export symbols beginning with
13296         # underscore (_), so it is better to generate a list of symbols to
13297         # export.
13298         always_export_symbols_CXX=yes
13299         if test "$aix_use_runtimelinking" = yes; then
13300           # Warning - without using the other runtime loading flags (-brtl),
13301           # -berok will link without error, but may produce a broken library.
13302           allow_undefined_flag_CXX='-berok'
13303           # Determine the default libpath from the value encoded in an empty
13304           # executable.
13305           cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h.  */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h.  */
13311
13312 int
13313 main ()
13314 {
13315
13316   ;
13317   return 0;
13318 }
13319 _ACEOF
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327   (eval "$ac_link") 2>conftest.er1
13328   ac_status=$?
13329   grep -v '^ *+' conftest.er1 >conftest.err
13330   rm -f conftest.er1
13331   cat conftest.err >&5
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); } && {
13334          test -z "$ac_cxx_werror_flag" ||
13335          test ! -s conftest.err
13336        } && test -s conftest$ac_exeext &&
13337        $as_test_x conftest$ac_exeext; then
13338
13339 lt_aix_libpath_sed='
13340     /Import File Strings/,/^$/ {
13341         /^0/ {
13342             s/^0  *\(.*\)$/\1/
13343             p
13344         }
13345     }'
13346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13347 # Check for a 64-bit object if we didn't find anything.
13348 if test -z "$aix_libpath"; then
13349   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13350 fi
13351 else
13352   echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355
13356 fi
13357
13358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13359       conftest$ac_exeext conftest.$ac_ext
13360 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13361
13362           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13363
13364           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"
13365         else
13366           if test "$host_cpu" = ia64; then
13367             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13368             allow_undefined_flag_CXX="-z nodefs"
13369             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"
13370           else
13371             # Determine the default libpath from the value encoded in an
13372             # empty executable.
13373             cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379
13380 int
13381 main ()
13382 {
13383
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_link") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } && {
13402          test -z "$ac_cxx_werror_flag" ||
13403          test ! -s conftest.err
13404        } && test -s conftest$ac_exeext &&
13405        $as_test_x conftest$ac_exeext; then
13406
13407 lt_aix_libpath_sed='
13408     /Import File Strings/,/^$/ {
13409         /^0/ {
13410             s/^0  *\(.*\)$/\1/
13411             p
13412         }
13413     }'
13414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 # Check for a 64-bit object if we didn't find anything.
13416 if test -z "$aix_libpath"; then
13417   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 fi
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423
13424 fi
13425
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427       conftest$ac_exeext conftest.$ac_ext
13428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13429
13430             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13431             # Warning - without using the other run time loading flags,
13432             # -berok will link without error, but may produce a broken library.
13433             no_undefined_flag_CXX=' ${wl}-bernotok'
13434             allow_undefined_flag_CXX=' ${wl}-berok'
13435             # Exported symbols can be pulled into shared objects from archives
13436             whole_archive_flag_spec_CXX='$convenience'
13437             archive_cmds_need_lc_CXX=yes
13438             # This is similar to how AIX traditionally builds its shared
13439             # libraries.
13440             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'
13441           fi
13442         fi
13443         ;;
13444
13445       beos*)
13446         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13447           allow_undefined_flag_CXX=unsupported
13448           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13449           # support --undefined.  This deserves some investigation.  FIXME
13450           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451         else
13452           ld_shlibs_CXX=no
13453         fi
13454         ;;
13455
13456       chorus*)
13457         case $cc_basename in
13458           *)
13459           # FIXME: insert proper C++ library support
13460           ld_shlibs_CXX=no
13461           ;;
13462         esac
13463         ;;
13464
13465       cygwin* | mingw* | pw32* | cegcc*)
13466         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13467         # as there is no search path for DLLs.
13468         hardcode_libdir_flag_spec_CXX='-L$libdir'
13469         allow_undefined_flag_CXX=unsupported
13470         always_export_symbols_CXX=no
13471         enable_shared_with_static_runtimes_CXX=yes
13472
13473         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13474           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'
13475           # If the export-symbols file already is a .def file (1st line
13476           # is EXPORTS), use it as is; otherwise, prepend...
13477           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13478             cp $export_symbols $output_objdir/$soname.def;
13479           else
13480             echo EXPORTS > $output_objdir/$soname.def;
13481             cat $export_symbols >> $output_objdir/$soname.def;
13482           fi~
13483           $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'
13484         else
13485           ld_shlibs_CXX=no
13486         fi
13487         ;;
13488       darwin* | rhapsody*)
13489
13490
13491   archive_cmds_need_lc_CXX=no
13492   hardcode_direct_CXX=no
13493   hardcode_automatic_CXX=yes
13494   hardcode_shlibpath_var_CXX=unsupported
13495   whole_archive_flag_spec_CXX=''
13496   link_all_deplibs_CXX=yes
13497   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13498   case $cc_basename in
13499      ifort*) _lt_dar_can_shared=yes ;;
13500      *) _lt_dar_can_shared=$GCC ;;
13501   esac
13502   if test "$_lt_dar_can_shared" = "yes"; then
13503     output_verbose_link_cmd=echo
13504     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}"
13505     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13506     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}"
13507     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}"
13508        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13509       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}"
13510       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}"
13511     fi
13512
13513   else
13514   ld_shlibs_CXX=no
13515   fi
13516
13517         ;;
13518
13519       dgux*)
13520         case $cc_basename in
13521           ec++*)
13522             # FIXME: insert proper C++ library support
13523             ld_shlibs_CXX=no
13524             ;;
13525           ghcx*)
13526             # Green Hills C++ Compiler
13527             # FIXME: insert proper C++ library support
13528             ld_shlibs_CXX=no
13529             ;;
13530           *)
13531             # FIXME: insert proper C++ library support
13532             ld_shlibs_CXX=no
13533             ;;
13534         esac
13535         ;;
13536
13537       freebsd[12]*)
13538         # C++ shared libraries reported to be fairly broken before
13539         # switch to ELF
13540         ld_shlibs_CXX=no
13541         ;;
13542
13543       freebsd-elf*)
13544         archive_cmds_need_lc_CXX=no
13545         ;;
13546
13547       freebsd* | dragonfly*)
13548         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13549         # conventions
13550         ld_shlibs_CXX=yes
13551         ;;
13552
13553       gnu*)
13554         ;;
13555
13556       hpux9*)
13557         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13558         hardcode_libdir_separator_CXX=:
13559         export_dynamic_flag_spec_CXX='${wl}-E'
13560         hardcode_direct_CXX=yes
13561         hardcode_minus_L_CXX=yes # Not in the search PATH,
13562                                              # but as the default
13563                                              # location of the library.
13564
13565         case $cc_basename in
13566           CC*)
13567             # FIXME: insert proper C++ library support
13568             ld_shlibs_CXX=no
13569             ;;
13570           aCC*)
13571             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'
13572             # Commands to make compiler produce verbose output that lists
13573             # what "hidden" libraries, object files and flags are used when
13574             # linking a shared library.
13575             #
13576             # There doesn't appear to be a way to prevent this compiler from
13577             # explicitly linking system object files so we need to strip them
13578             # from the output so that they don't get included in the library
13579             # dependencies.
13580             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'
13581             ;;
13582           *)
13583             if test "$GXX" = yes; then
13584               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'
13585             else
13586               # FIXME: insert proper C++ library support
13587               ld_shlibs_CXX=no
13588             fi
13589             ;;
13590         esac
13591         ;;
13592
13593       hpux10*|hpux11*)
13594         if test $with_gnu_ld = no; then
13595           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13596           hardcode_libdir_separator_CXX=:
13597
13598           case $host_cpu in
13599             hppa*64*|ia64*)
13600               ;;
13601             *)
13602               export_dynamic_flag_spec_CXX='${wl}-E'
13603               ;;
13604           esac
13605         fi
13606         case $host_cpu in
13607           hppa*64*|ia64*)
13608             hardcode_direct_CXX=no
13609             hardcode_shlibpath_var_CXX=no
13610             ;;
13611           *)
13612             hardcode_direct_CXX=yes
13613             hardcode_direct_absolute_CXX=yes
13614             hardcode_minus_L_CXX=yes # Not in the search PATH,
13615                                                  # but as the default
13616                                                  # location of the library.
13617             ;;
13618         esac
13619
13620         case $cc_basename in
13621           CC*)
13622             # FIXME: insert proper C++ library support
13623             ld_shlibs_CXX=no
13624             ;;
13625           aCC*)
13626             case $host_cpu in
13627               hppa*64*)
13628                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13629                 ;;
13630               ia64*)
13631                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13632                 ;;
13633               *)
13634                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13635                 ;;
13636             esac
13637             # Commands to make compiler produce verbose output that lists
13638             # what "hidden" libraries, object files and flags are used when
13639             # linking a shared library.
13640             #
13641             # There doesn't appear to be a way to prevent this compiler from
13642             # explicitly linking system object files so we need to strip them
13643             # from the output so that they don't get included in the library
13644             # dependencies.
13645             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'
13646             ;;
13647           *)
13648             if test "$GXX" = yes; then
13649               if test $with_gnu_ld = no; then
13650                 case $host_cpu in
13651                   hppa*64*)
13652                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13653                     ;;
13654                   ia64*)
13655                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13656                     ;;
13657                   *)
13658                     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'
13659                     ;;
13660                 esac
13661               fi
13662             else
13663               # FIXME: insert proper C++ library support
13664               ld_shlibs_CXX=no
13665             fi
13666             ;;
13667         esac
13668         ;;
13669
13670       interix[3-9]*)
13671         hardcode_direct_CXX=no
13672         hardcode_shlibpath_var_CXX=no
13673         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13674         export_dynamic_flag_spec_CXX='${wl}-E'
13675         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13676         # Instead, shared libraries are loaded at an image base (0x10000000 by
13677         # default) and relocated if they conflict, which is a slow very memory
13678         # consuming and fragmenting process.  To avoid this, we pick a random,
13679         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13680         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13681         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'
13682         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'
13683         ;;
13684       irix5* | irix6*)
13685         case $cc_basename in
13686           CC*)
13687             # SGI C++
13688             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'
13689
13690             # Archives containing C++ object files must be created using
13691             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13692             # necessary to make sure instantiated templates are included
13693             # in the archive.
13694             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13695             ;;
13696           *)
13697             if test "$GXX" = yes; then
13698               if test "$with_gnu_ld" = no; then
13699                 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'
13700               else
13701                 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'
13702               fi
13703             fi
13704             link_all_deplibs_CXX=yes
13705             ;;
13706         esac
13707         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13708         hardcode_libdir_separator_CXX=:
13709         inherit_rpath_CXX=yes
13710         ;;
13711
13712       linux* | k*bsd*-gnu)
13713         case $cc_basename in
13714           KCC*)
13715             # Kuck and Associates, Inc. (KAI) C++ Compiler
13716
13717             # KCC will only create a shared library if the output file
13718             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13719             # to its proper name (with version) after linking.
13720             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'
13721             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'
13722             # Commands to make compiler produce verbose output that lists
13723             # what "hidden" libraries, object files and flags are used when
13724             # linking a shared library.
13725             #
13726             # There doesn't appear to be a way to prevent this compiler from
13727             # explicitly linking system object files so we need to strip them
13728             # from the output so that they don't get included in the library
13729             # dependencies.
13730             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'
13731
13732             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13733             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13734
13735             # Archives containing C++ object files must be created using
13736             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13737             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13738             ;;
13739           icpc* | ecpc* )
13740             # Intel C++
13741             with_gnu_ld=yes
13742             # version 8.0 and above of icpc choke on multiply defined symbols
13743             # if we add $predep_objects and $postdep_objects, however 7.1 and
13744             # earlier do not add the objects themselves.
13745             case `$CC -V 2>&1` in
13746               *"Version 7."*)
13747                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13748                 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'
13749                 ;;
13750               *)  # Version 8.0 or newer
13751                 tmp_idyn=
13752                 case $host_cpu in
13753                   ia64*) tmp_idyn=' -i_dynamic';;
13754                 esac
13755                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756                 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'
13757                 ;;
13758             esac
13759             archive_cmds_need_lc_CXX=no
13760             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13761             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13762             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13763             ;;
13764           pgCC* | pgcpp*)
13765             # Portland Group C++ compiler
13766             case `$CC -V` in
13767             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13768               prelink_cmds_CXX='tpldir=Template.dir~
13769                 rm -rf $tpldir~
13770                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13771                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13772               old_archive_cmds_CXX='tpldir=Template.dir~
13773                 rm -rf $tpldir~
13774                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13775                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13776                 $RANLIB $oldlib'
13777               archive_cmds_CXX='tpldir=Template.dir~
13778                 rm -rf $tpldir~
13779                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13780                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13781               archive_expsym_cmds_CXX='tpldir=Template.dir~
13782                 rm -rf $tpldir~
13783                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13784                 $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'
13785               ;;
13786             *) # Version 6 will use weak symbols
13787               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13788               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'
13789               ;;
13790             esac
13791
13792             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13793             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13794             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'
13795             ;;
13796           cxx*)
13797             # Compaq C++
13798             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13799             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'
13800
13801             runpath_var=LD_RUN_PATH
13802             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13803             hardcode_libdir_separator_CXX=:
13804
13805             # Commands to make compiler produce verbose output that lists
13806             # what "hidden" libraries, object files and flags are used when
13807             # linking a shared library.
13808             #
13809             # There doesn't appear to be a way to prevent this compiler from
13810             # explicitly linking system object files so we need to strip them
13811             # from the output so that they don't get included in the library
13812             # dependencies.
13813             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'
13814             ;;
13815           xl*)
13816             # IBM XL 8.0 on PPC, with GNU ld
13817             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13818             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13819             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820             if test "x$supports_anon_versioning" = xyes; then
13821               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13822                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13823                 echo "local: *; };" >> $output_objdir/$libname.ver~
13824                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13825             fi
13826             ;;
13827           *)
13828             case `$CC -V 2>&1 | sed 5q` in
13829             *Sun\ C*)
13830               # Sun C++ 5.9
13831               no_undefined_flag_CXX=' -zdefs'
13832               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13833               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'
13834               hardcode_libdir_flag_spec_CXX='-R$libdir'
13835               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'
13836               compiler_needs_object_CXX=yes
13837
13838               # Not sure whether something based on
13839               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13840               # would be better.
13841               output_verbose_link_cmd='echo'
13842
13843               # Archives containing C++ object files must be created using
13844               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13845               # necessary to make sure instantiated templates are included
13846               # in the archive.
13847               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13848               ;;
13849             esac
13850             ;;
13851         esac
13852         ;;
13853
13854       lynxos*)
13855         # FIXME: insert proper C++ library support
13856         ld_shlibs_CXX=no
13857         ;;
13858
13859       m88k*)
13860         # FIXME: insert proper C++ library support
13861         ld_shlibs_CXX=no
13862         ;;
13863
13864       mvs*)
13865         case $cc_basename in
13866           cxx*)
13867             # FIXME: insert proper C++ library support
13868             ld_shlibs_CXX=no
13869             ;;
13870           *)
13871             # FIXME: insert proper C++ library support
13872             ld_shlibs_CXX=no
13873             ;;
13874         esac
13875         ;;
13876
13877       netbsd*)
13878         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13879           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13880           wlarc=
13881           hardcode_libdir_flag_spec_CXX='-R$libdir'
13882           hardcode_direct_CXX=yes
13883           hardcode_shlibpath_var_CXX=no
13884         fi
13885         # Workaround some broken pre-1.5 toolchains
13886         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13887         ;;
13888
13889       *nto* | *qnx*)
13890         ld_shlibs_CXX=yes
13891         ;;
13892
13893       openbsd2*)
13894         # C++ shared libraries are fairly broken
13895         ld_shlibs_CXX=no
13896         ;;
13897
13898       openbsd*)
13899         if test -f /usr/libexec/ld.so; then
13900           hardcode_direct_CXX=yes
13901           hardcode_shlibpath_var_CXX=no
13902           hardcode_direct_absolute_CXX=yes
13903           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13904           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13905           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13906             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13907             export_dynamic_flag_spec_CXX='${wl}-E'
13908             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13909           fi
13910           output_verbose_link_cmd=echo
13911         else
13912           ld_shlibs_CXX=no
13913         fi
13914         ;;
13915
13916       osf3* | osf4* | osf5*)
13917         case $cc_basename in
13918           KCC*)
13919             # Kuck and Associates, Inc. (KAI) C++ Compiler
13920
13921             # KCC will only create a shared library if the output file
13922             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13923             # to its proper name (with version) after linking.
13924             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'
13925
13926             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13927             hardcode_libdir_separator_CXX=:
13928
13929             # Archives containing C++ object files must be created using
13930             # the KAI C++ compiler.
13931             case $host in
13932               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13933               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13934             esac
13935             ;;
13936           RCC*)
13937             # Rational C++ 2.4.1
13938             # FIXME: insert proper C++ library support
13939             ld_shlibs_CXX=no
13940             ;;
13941           cxx*)
13942             case $host in
13943               osf3*)
13944                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13945                 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'
13946                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13947                 ;;
13948               *)
13949                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13950                 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'
13951                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13952                   echo "-hidden">> $lib.exp~
13953                   $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~
13954                   $RM $lib.exp'
13955                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13956                 ;;
13957             esac
13958
13959             hardcode_libdir_separator_CXX=:
13960
13961             # Commands to make compiler produce verbose output that lists
13962             # what "hidden" libraries, object files and flags are used when
13963             # linking a shared library.
13964             #
13965             # There doesn't appear to be a way to prevent this compiler from
13966             # explicitly linking system object files so we need to strip them
13967             # from the output so that they don't get included in the library
13968             # dependencies.
13969             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'
13970             ;;
13971           *)
13972             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13973               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13974               case $host in
13975                 osf3*)
13976                   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'
13977                   ;;
13978                 *)
13979                   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'
13980                   ;;
13981               esac
13982
13983               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13984               hardcode_libdir_separator_CXX=:
13985
13986               # Commands to make compiler produce verbose output that lists
13987               # what "hidden" libraries, object files and flags are used when
13988               # linking a shared library.
13989               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13990
13991             else
13992               # FIXME: insert proper C++ library support
13993               ld_shlibs_CXX=no
13994             fi
13995             ;;
13996         esac
13997         ;;
13998
13999       psos*)
14000         # FIXME: insert proper C++ library support
14001         ld_shlibs_CXX=no
14002         ;;
14003
14004       sunos4*)
14005         case $cc_basename in
14006           CC*)
14007             # Sun C++ 4.x
14008             # FIXME: insert proper C++ library support
14009             ld_shlibs_CXX=no
14010             ;;
14011           lcc*)
14012             # Lucid
14013             # FIXME: insert proper C++ library support
14014             ld_shlibs_CXX=no
14015             ;;
14016           *)
14017             # FIXME: insert proper C++ library support
14018             ld_shlibs_CXX=no
14019             ;;
14020         esac
14021         ;;
14022
14023       solaris*)
14024         case $cc_basename in
14025           CC*)
14026             # Sun C++ 4.2, 5.x and Centerline C++
14027             archive_cmds_need_lc_CXX=yes
14028             no_undefined_flag_CXX=' -zdefs'
14029             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14030             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14031               $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'
14032
14033             hardcode_libdir_flag_spec_CXX='-R$libdir'
14034             hardcode_shlibpath_var_CXX=no
14035             case $host_os in
14036               solaris2.[0-5] | solaris2.[0-5].*) ;;
14037               *)
14038                 # The compiler driver will combine and reorder linker options,
14039                 # but understands `-z linker_flag'.
14040                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14041                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14042                 ;;
14043             esac
14044             link_all_deplibs_CXX=yes
14045
14046             output_verbose_link_cmd='echo'
14047
14048             # Archives containing C++ object files must be created using
14049             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14050             # necessary to make sure instantiated templates are included
14051             # in the archive.
14052             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14053             ;;
14054           gcx*)
14055             # Green Hills C++ Compiler
14056             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14057
14058             # The C++ compiler must be used to create the archive.
14059             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14060             ;;
14061           *)
14062             # GNU C++ compiler with Solaris linker
14063             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14064               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14065               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14066                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14067                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14068                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14069
14070                 # Commands to make compiler produce verbose output that lists
14071                 # what "hidden" libraries, object files and flags are used when
14072                 # linking a shared library.
14073                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14074               else
14075                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14076                 # platform.
14077                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14078                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14079                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14080
14081                 # Commands to make compiler produce verbose output that lists
14082                 # what "hidden" libraries, object files and flags are used when
14083                 # linking a shared library.
14084                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14085               fi
14086
14087               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14088               case $host_os in
14089                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14090                 *)
14091                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14092                   ;;
14093               esac
14094             fi
14095             ;;
14096         esac
14097         ;;
14098
14099     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14100       no_undefined_flag_CXX='${wl}-z,text'
14101       archive_cmds_need_lc_CXX=no
14102       hardcode_shlibpath_var_CXX=no
14103       runpath_var='LD_RUN_PATH'
14104
14105       case $cc_basename in
14106         CC*)
14107           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14108           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14109           ;;
14110         *)
14111           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14112           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14113           ;;
14114       esac
14115       ;;
14116
14117       sysv5* | sco3.2v5* | sco5v6*)
14118         # Note: We can NOT use -z defs as we might desire, because we do not
14119         # link with -lc, and that would cause any symbols used from libc to
14120         # always be unresolved, which means just about no library would
14121         # ever link correctly.  If we're not using GNU ld we use -z text
14122         # though, which does catch some bad symbols but isn't as heavy-handed
14123         # as -z defs.
14124         no_undefined_flag_CXX='${wl}-z,text'
14125         allow_undefined_flag_CXX='${wl}-z,nodefs'
14126         archive_cmds_need_lc_CXX=no
14127         hardcode_shlibpath_var_CXX=no
14128         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14129         hardcode_libdir_separator_CXX=':'
14130         link_all_deplibs_CXX=yes
14131         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14132         runpath_var='LD_RUN_PATH'
14133
14134         case $cc_basename in
14135           CC*)
14136             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14138             ;;
14139           *)
14140             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14141             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14142             ;;
14143         esac
14144       ;;
14145
14146       tandem*)
14147         case $cc_basename in
14148           NCC*)
14149             # NonStop-UX NCC 3.20
14150             # FIXME: insert proper C++ library support
14151             ld_shlibs_CXX=no
14152             ;;
14153           *)
14154             # FIXME: insert proper C++ library support
14155             ld_shlibs_CXX=no
14156             ;;
14157         esac
14158         ;;
14159
14160       vxworks*)
14161         # FIXME: insert proper C++ library support
14162         ld_shlibs_CXX=no
14163         ;;
14164
14165       *)
14166         # FIXME: insert proper C++ library support
14167         ld_shlibs_CXX=no
14168         ;;
14169     esac
14170
14171     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14172 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14173     test "$ld_shlibs_CXX" = no && can_build_shared=no
14174
14175     GCC_CXX="$GXX"
14176     LD_CXX="$LD"
14177
14178     ## CAVEAT EMPTOR:
14179     ## There is no encapsulation within the following macros, do not change
14180     ## the running order or otherwise move them around unless you know exactly
14181     ## what you are doing...
14182     # Dependencies to place before and after the object being linked:
14183 predep_objects_CXX=
14184 postdep_objects_CXX=
14185 predeps_CXX=
14186 postdeps_CXX=
14187 compiler_lib_search_path_CXX=
14188
14189 cat > conftest.$ac_ext <<_LT_EOF
14190 class Foo
14191 {
14192 public:
14193   Foo (void) { a = 0; }
14194 private:
14195   int a;
14196 };
14197 _LT_EOF
14198
14199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200   (eval $ac_compile) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; then
14204   # Parse the compiler output and extract the necessary
14205   # objects, libraries and library flags.
14206
14207   # Sentinel used to keep track of whether or not we are before
14208   # the conftest object file.
14209   pre_test_object_deps_done=no
14210
14211   for p in `eval "$output_verbose_link_cmd"`; do
14212     case $p in
14213
14214     -L* | -R* | -l*)
14215        # Some compilers place space between "-{L,R}" and the path.
14216        # Remove the space.
14217        if test $p = "-L" ||
14218           test $p = "-R"; then
14219          prev=$p
14220          continue
14221        else
14222          prev=
14223        fi
14224
14225        if test "$pre_test_object_deps_done" = no; then
14226          case $p in
14227          -L* | -R*)
14228            # Internal compiler library paths should come after those
14229            # provided the user.  The postdeps already come after the
14230            # user supplied libs so there is no need to process them.
14231            if test -z "$compiler_lib_search_path_CXX"; then
14232              compiler_lib_search_path_CXX="${prev}${p}"
14233            else
14234              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14235            fi
14236            ;;
14237          # The "-l" case would never come before the object being
14238          # linked, so don't bother handling this case.
14239          esac
14240        else
14241          if test -z "$postdeps_CXX"; then
14242            postdeps_CXX="${prev}${p}"
14243          else
14244            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14245          fi
14246        fi
14247        ;;
14248
14249     *.$objext)
14250        # This assumes that the test object file only shows up
14251        # once in the compiler output.
14252        if test "$p" = "conftest.$objext"; then
14253          pre_test_object_deps_done=yes
14254          continue
14255        fi
14256
14257        if test "$pre_test_object_deps_done" = no; then
14258          if test -z "$predep_objects_CXX"; then
14259            predep_objects_CXX="$p"
14260          else
14261            predep_objects_CXX="$predep_objects_CXX $p"
14262          fi
14263        else
14264          if test -z "$postdep_objects_CXX"; then
14265            postdep_objects_CXX="$p"
14266          else
14267            postdep_objects_CXX="$postdep_objects_CXX $p"
14268          fi
14269        fi
14270        ;;
14271
14272     *) ;; # Ignore the rest.
14273
14274     esac
14275   done
14276
14277   # Clean up.
14278   rm -f a.out a.exe
14279 else
14280   echo "libtool.m4: error: problem compiling CXX test program"
14281 fi
14282
14283 $RM -f confest.$objext
14284
14285 # PORTME: override above test on systems where it is broken
14286 case $host_os in
14287 interix[3-9]*)
14288   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14289   # hack all around it, let's just trust "g++" to DTRT.
14290   predep_objects_CXX=
14291   postdep_objects_CXX=
14292   postdeps_CXX=
14293   ;;
14294
14295 linux*)
14296   case `$CC -V 2>&1 | sed 5q` in
14297   *Sun\ C*)
14298     # Sun C++ 5.9
14299
14300     # The more standards-conforming stlport4 library is
14301     # incompatible with the Cstd library. Avoid specifying
14302     # it if it's in CXXFLAGS. Ignore libCrun as
14303     # -library=stlport4 depends on it.
14304     case " $CXX $CXXFLAGS " in
14305     *" -library=stlport4 "*)
14306       solaris_use_stlport4=yes
14307       ;;
14308     esac
14309
14310     if test "$solaris_use_stlport4" != yes; then
14311       postdeps_CXX='-library=Cstd -library=Crun'
14312     fi
14313     ;;
14314   esac
14315   ;;
14316
14317 solaris*)
14318   case $cc_basename in
14319   CC*)
14320     # The more standards-conforming stlport4 library is
14321     # incompatible with the Cstd library. Avoid specifying
14322     # it if it's in CXXFLAGS. Ignore libCrun as
14323     # -library=stlport4 depends on it.
14324     case " $CXX $CXXFLAGS " in
14325     *" -library=stlport4 "*)
14326       solaris_use_stlport4=yes
14327       ;;
14328     esac
14329
14330     # Adding this requires a known-good setup of shared libraries for
14331     # Sun compiler versions before 5.6, else PIC objects from an old
14332     # archive will be linked into the output, leading to subtle bugs.
14333     if test "$solaris_use_stlport4" != yes; then
14334       postdeps_CXX='-library=Cstd -library=Crun'
14335     fi
14336     ;;
14337   esac
14338   ;;
14339 esac
14340
14341
14342 case " $postdeps_CXX " in
14343 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14344 esac
14345  compiler_lib_search_dirs_CXX=
14346 if test -n "${compiler_lib_search_path_CXX}"; then
14347  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14348 fi
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380     lt_prog_compiler_wl_CXX=
14381 lt_prog_compiler_pic_CXX=
14382 lt_prog_compiler_static_CXX=
14383
14384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14386
14387   # C++ specific cases for pic, static, wl, etc.
14388   if test "$GXX" = yes; then
14389     lt_prog_compiler_wl_CXX='-Wl,'
14390     lt_prog_compiler_static_CXX='-static'
14391
14392     case $host_os in
14393     aix*)
14394       # All AIX code is PIC.
14395       if test "$host_cpu" = ia64; then
14396         # AIX 5 now supports IA64 processor
14397         lt_prog_compiler_static_CXX='-Bstatic'
14398       fi
14399       ;;
14400
14401     amigaos*)
14402       case $host_cpu in
14403       powerpc)
14404             # see comment about AmigaOS4 .so support
14405             lt_prog_compiler_pic_CXX='-fPIC'
14406         ;;
14407       m68k)
14408             # FIXME: we need at least 68020 code to build shared libraries, but
14409             # adding the `-m68020' flag to GCC prevents building anything better,
14410             # like `-m68040'.
14411             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14412         ;;
14413       esac
14414       ;;
14415
14416     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14417       # PIC is the default for these OSes.
14418       ;;
14419     mingw* | cygwin* | os2* | pw32* | cegcc*)
14420       # This hack is so that the source file can tell whether it is being
14421       # built for inclusion in a dll (and should export symbols for example).
14422       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14423       # (--disable-auto-import) libraries
14424       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14425       ;;
14426     darwin* | rhapsody*)
14427       # PIC is the default on this platform
14428       # Common symbols not allowed in MH_DYLIB files
14429       lt_prog_compiler_pic_CXX='-fno-common'
14430       ;;
14431     *djgpp*)
14432       # DJGPP does not support shared libraries at all
14433       lt_prog_compiler_pic_CXX=
14434       ;;
14435     interix[3-9]*)
14436       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14437       # Instead, we relocate shared libraries at runtime.
14438       ;;
14439     sysv4*MP*)
14440       if test -d /usr/nec; then
14441         lt_prog_compiler_pic_CXX=-Kconform_pic
14442       fi
14443       ;;
14444     hpux*)
14445       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14446       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14447       # sets the default TLS model and affects inlining.
14448       case $host_cpu in
14449       hppa*64*)
14450         ;;
14451       *)
14452         lt_prog_compiler_pic_CXX='-fPIC'
14453         ;;
14454       esac
14455       ;;
14456     *qnx* | *nto*)
14457       # QNX uses GNU C++, but need to define -shared option too, otherwise
14458       # it will coredump.
14459       lt_prog_compiler_pic_CXX='-fPIC -shared'
14460       ;;
14461     *)
14462       lt_prog_compiler_pic_CXX='-fPIC'
14463       ;;
14464     esac
14465   else
14466     case $host_os in
14467       aix[4-9]*)
14468         # All AIX code is PIC.
14469         if test "$host_cpu" = ia64; then
14470           # AIX 5 now supports IA64 processor
14471           lt_prog_compiler_static_CXX='-Bstatic'
14472         else
14473           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14474         fi
14475         ;;
14476       chorus*)
14477         case $cc_basename in
14478         cxch68*)
14479           # Green Hills C++ Compiler
14480           # _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"
14481           ;;
14482         esac
14483         ;;
14484       dgux*)
14485         case $cc_basename in
14486           ec++*)
14487             lt_prog_compiler_pic_CXX='-KPIC'
14488             ;;
14489           ghcx*)
14490             # Green Hills C++ Compiler
14491             lt_prog_compiler_pic_CXX='-pic'
14492             ;;
14493           *)
14494             ;;
14495         esac
14496         ;;
14497       freebsd* | dragonfly*)
14498         # FreeBSD uses GNU C++
14499         ;;
14500       hpux9* | hpux10* | hpux11*)
14501         case $cc_basename in
14502           CC*)
14503             lt_prog_compiler_wl_CXX='-Wl,'
14504             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14505             if test "$host_cpu" != ia64; then
14506               lt_prog_compiler_pic_CXX='+Z'
14507             fi
14508             ;;
14509           aCC*)
14510             lt_prog_compiler_wl_CXX='-Wl,'
14511             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14512             case $host_cpu in
14513             hppa*64*|ia64*)
14514               # +Z the default
14515               ;;
14516             *)
14517               lt_prog_compiler_pic_CXX='+Z'
14518               ;;
14519             esac
14520             ;;
14521           *)
14522             ;;
14523         esac
14524         ;;
14525       interix*)
14526         # This is c89, which is MS Visual C++ (no shared libs)
14527         # Anyone wants to do a port?
14528         ;;
14529       irix5* | irix6* | nonstopux*)
14530         case $cc_basename in
14531           CC*)
14532             lt_prog_compiler_wl_CXX='-Wl,'
14533             lt_prog_compiler_static_CXX='-non_shared'
14534             # CC pic flag -KPIC is the default.
14535             ;;
14536           *)
14537             ;;
14538         esac
14539         ;;
14540       linux* | k*bsd*-gnu)
14541         case $cc_basename in
14542           KCC*)
14543             # KAI C++ Compiler
14544             lt_prog_compiler_wl_CXX='--backend -Wl,'
14545             lt_prog_compiler_pic_CXX='-fPIC'
14546             ;;
14547           ecpc* )
14548             # old Intel C++ for x86_64 which still supported -KPIC.
14549             lt_prog_compiler_wl_CXX='-Wl,'
14550             lt_prog_compiler_pic_CXX='-KPIC'
14551             lt_prog_compiler_static_CXX='-static'
14552             ;;
14553           icpc* )
14554             # Intel C++, used to be incompatible with GCC.
14555             # ICC 10 doesn't accept -KPIC any more.
14556             lt_prog_compiler_wl_CXX='-Wl,'
14557             lt_prog_compiler_pic_CXX='-fPIC'
14558             lt_prog_compiler_static_CXX='-static'
14559             ;;
14560           pgCC* | pgcpp*)
14561             # Portland Group C++ compiler
14562             lt_prog_compiler_wl_CXX='-Wl,'
14563             lt_prog_compiler_pic_CXX='-fpic'
14564             lt_prog_compiler_static_CXX='-Bstatic'
14565             ;;
14566           cxx*)
14567             # Compaq C++
14568             # Make sure the PIC flag is empty.  It appears that all Alpha
14569             # Linux and Compaq Tru64 Unix objects are PIC.
14570             lt_prog_compiler_pic_CXX=
14571             lt_prog_compiler_static_CXX='-non_shared'
14572             ;;
14573           xlc* | xlC*)
14574             # IBM XL 8.0 on PPC
14575             lt_prog_compiler_wl_CXX='-Wl,'
14576             lt_prog_compiler_pic_CXX='-qpic'
14577             lt_prog_compiler_static_CXX='-qstaticlink'
14578             ;;
14579           *)
14580             case `$CC -V 2>&1 | sed 5q` in
14581             *Sun\ C*)
14582               # Sun C++ 5.9
14583               lt_prog_compiler_pic_CXX='-KPIC'
14584               lt_prog_compiler_static_CXX='-Bstatic'
14585               lt_prog_compiler_wl_CXX='-Qoption ld '
14586               ;;
14587             esac
14588             ;;
14589         esac
14590         ;;
14591       lynxos*)
14592         ;;
14593       m88k*)
14594         ;;
14595       mvs*)
14596         case $cc_basename in
14597           cxx*)
14598             lt_prog_compiler_pic_CXX='-W c,exportall'
14599             ;;
14600           *)
14601             ;;
14602         esac
14603         ;;
14604       netbsd*)
14605         ;;
14606       *qnx* | *nto*)
14607         # QNX uses GNU C++, but need to define -shared option too, otherwise
14608         # it will coredump.
14609         lt_prog_compiler_pic_CXX='-fPIC -shared'
14610         ;;
14611       osf3* | osf4* | osf5*)
14612         case $cc_basename in
14613           KCC*)
14614             lt_prog_compiler_wl_CXX='--backend -Wl,'
14615             ;;
14616           RCC*)
14617             # Rational C++ 2.4.1
14618             lt_prog_compiler_pic_CXX='-pic'
14619             ;;
14620           cxx*)
14621             # Digital/Compaq C++
14622             lt_prog_compiler_wl_CXX='-Wl,'
14623             # Make sure the PIC flag is empty.  It appears that all Alpha
14624             # Linux and Compaq Tru64 Unix objects are PIC.
14625             lt_prog_compiler_pic_CXX=
14626             lt_prog_compiler_static_CXX='-non_shared'
14627             ;;
14628           *)
14629             ;;
14630         esac
14631         ;;
14632       psos*)
14633         ;;
14634       solaris*)
14635         case $cc_basename in
14636           CC*)
14637             # Sun C++ 4.2, 5.x and Centerline C++
14638             lt_prog_compiler_pic_CXX='-KPIC'
14639             lt_prog_compiler_static_CXX='-Bstatic'
14640             lt_prog_compiler_wl_CXX='-Qoption ld '
14641             ;;
14642           gcx*)
14643             # Green Hills C++ Compiler
14644             lt_prog_compiler_pic_CXX='-PIC'
14645             ;;
14646           *)
14647             ;;
14648         esac
14649         ;;
14650       sunos4*)
14651         case $cc_basename in
14652           CC*)
14653             # Sun C++ 4.x
14654             lt_prog_compiler_pic_CXX='-pic'
14655             lt_prog_compiler_static_CXX='-Bstatic'
14656             ;;
14657           lcc*)
14658             # Lucid
14659             lt_prog_compiler_pic_CXX='-pic'
14660             ;;
14661           *)
14662             ;;
14663         esac
14664         ;;
14665       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14666         case $cc_basename in
14667           CC*)
14668             lt_prog_compiler_wl_CXX='-Wl,'
14669             lt_prog_compiler_pic_CXX='-KPIC'
14670             lt_prog_compiler_static_CXX='-Bstatic'
14671             ;;
14672         esac
14673         ;;
14674       tandem*)
14675         case $cc_basename in
14676           NCC*)
14677             # NonStop-UX NCC 3.20
14678             lt_prog_compiler_pic_CXX='-KPIC'
14679             ;;
14680           *)
14681             ;;
14682         esac
14683         ;;
14684       vxworks*)
14685         ;;
14686       *)
14687         lt_prog_compiler_can_build_shared_CXX=no
14688         ;;
14689     esac
14690   fi
14691
14692 case $host_os in
14693   # For platforms which do not support PIC, -DPIC is meaningless:
14694   *djgpp*)
14695     lt_prog_compiler_pic_CXX=
14696     ;;
14697   *)
14698     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14699     ;;
14700 esac
14701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14702 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14703
14704
14705
14706 #
14707 # Check to make sure the PIC flag actually works.
14708 #
14709 if test -n "$lt_prog_compiler_pic_CXX"; then
14710   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14711 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14712 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14713   echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715   lt_cv_prog_compiler_pic_works_CXX=no
14716    ac_outfile=conftest.$ac_objext
14717    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14718    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14719    # Insert the option either (1) after the last *FLAGS variable, or
14720    # (2) before a word containing "conftest.", or (3) at the end.
14721    # Note that $ac_compile itself does not contain backslashes and begins
14722    # with a dollar sign (not a hyphen), so the echo should work correctly.
14723    # The option is referenced via a variable to avoid confusing sed.
14724    lt_compile=`echo "$ac_compile" | $SED \
14725    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14727    -e 's:$: $lt_compiler_flag:'`
14728    (eval echo "\"\$as_me:14728: $lt_compile\"" >&5)
14729    (eval "$lt_compile" 2>conftest.err)
14730    ac_status=$?
14731    cat conftest.err >&5
14732    echo "$as_me:14732: \$? = $ac_status" >&5
14733    if (exit $ac_status) && test -s "$ac_outfile"; then
14734      # The compiler can only warn and ignore the option if not recognized
14735      # So say no if there are warnings other than the usual output.
14736      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14737      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14739        lt_cv_prog_compiler_pic_works_CXX=yes
14740      fi
14741    fi
14742    $RM conftest*
14743
14744 fi
14745 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14746 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14747
14748 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14749     case $lt_prog_compiler_pic_CXX in
14750      "" | " "*) ;;
14751      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14752      esac
14753 else
14754     lt_prog_compiler_pic_CXX=
14755      lt_prog_compiler_can_build_shared_CXX=no
14756 fi
14757
14758 fi
14759
14760
14761
14762 #
14763 # Check to make sure the static flag actually works.
14764 #
14765 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14766 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14767 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14768 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771   lt_cv_prog_compiler_static_works_CXX=no
14772    save_LDFLAGS="$LDFLAGS"
14773    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14774    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14775    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14776      # The linker can only warn and ignore the option if not recognized
14777      # So say no if there are warnings
14778      if test -s conftest.err; then
14779        # Append any errors to the config.log.
14780        cat conftest.err 1>&5
14781        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14782        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783        if diff conftest.exp conftest.er2 >/dev/null; then
14784          lt_cv_prog_compiler_static_works_CXX=yes
14785        fi
14786      else
14787        lt_cv_prog_compiler_static_works_CXX=yes
14788      fi
14789    fi
14790    $RM -r conftest*
14791    LDFLAGS="$save_LDFLAGS"
14792
14793 fi
14794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14795 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14796
14797 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14798     :
14799 else
14800     lt_prog_compiler_static_CXX=
14801 fi
14802
14803
14804
14805
14806     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14807 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14808 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14809   echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811   lt_cv_prog_compiler_c_o_CXX=no
14812    $RM -r conftest 2>/dev/null
14813    mkdir conftest
14814    cd conftest
14815    mkdir out
14816    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817
14818    lt_compiler_flag="-o out/conftest2.$ac_objext"
14819    # Insert the option either (1) after the last *FLAGS variable, or
14820    # (2) before a word containing "conftest.", or (3) at the end.
14821    # Note that $ac_compile itself does not contain backslashes and begins
14822    # with a dollar sign (not a hyphen), so the echo should work correctly.
14823    lt_compile=`echo "$ac_compile" | $SED \
14824    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14826    -e 's:$: $lt_compiler_flag:'`
14827    (eval echo "\"\$as_me:14827: $lt_compile\"" >&5)
14828    (eval "$lt_compile" 2>out/conftest.err)
14829    ac_status=$?
14830    cat out/conftest.err >&5
14831    echo "$as_me:14831: \$? = $ac_status" >&5
14832    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14833    then
14834      # The compiler can only warn and ignore the option if not recognized
14835      # So say no if there are warnings
14836      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14837      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14838      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14839        lt_cv_prog_compiler_c_o_CXX=yes
14840      fi
14841    fi
14842    chmod u+w . 2>&5
14843    $RM conftest*
14844    # SGI C++ compiler will create directory out/ii_files/ for
14845    # template instantiation
14846    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14847    $RM out/* && rmdir out
14848    cd ..
14849    $RM -r conftest
14850    $RM conftest*
14851
14852 fi
14853 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14854 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14855
14856
14857
14858     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14860 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14861   echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863   lt_cv_prog_compiler_c_o_CXX=no
14864    $RM -r conftest 2>/dev/null
14865    mkdir conftest
14866    cd conftest
14867    mkdir out
14868    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14869
14870    lt_compiler_flag="-o out/conftest2.$ac_objext"
14871    # Insert the option either (1) after the last *FLAGS variable, or
14872    # (2) before a word containing "conftest.", or (3) at the end.
14873    # Note that $ac_compile itself does not contain backslashes and begins
14874    # with a dollar sign (not a hyphen), so the echo should work correctly.
14875    lt_compile=`echo "$ac_compile" | $SED \
14876    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14878    -e 's:$: $lt_compiler_flag:'`
14879    (eval echo "\"\$as_me:14879: $lt_compile\"" >&5)
14880    (eval "$lt_compile" 2>out/conftest.err)
14881    ac_status=$?
14882    cat out/conftest.err >&5
14883    echo "$as_me:14883: \$? = $ac_status" >&5
14884    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14885    then
14886      # The compiler can only warn and ignore the option if not recognized
14887      # So say no if there are warnings
14888      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14889      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14890      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14891        lt_cv_prog_compiler_c_o_CXX=yes
14892      fi
14893    fi
14894    chmod u+w . 2>&5
14895    $RM conftest*
14896    # SGI C++ compiler will create directory out/ii_files/ for
14897    # template instantiation
14898    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14899    $RM out/* && rmdir out
14900    cd ..
14901    $RM -r conftest
14902    $RM conftest*
14903
14904 fi
14905 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14906 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14907
14908
14909
14910
14911 hard_links="nottested"
14912 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14913   # do not overwrite the value of need_locks provided by the user
14914   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14915 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14916   hard_links=yes
14917   $RM conftest*
14918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14919   touch conftest.a
14920   ln conftest.a conftest.b 2>&5 || hard_links=no
14921   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922   { echo "$as_me:$LINENO: result: $hard_links" >&5
14923 echo "${ECHO_T}$hard_links" >&6; }
14924   if test "$hard_links" = no; then
14925     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14926 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14927     need_locks=warn
14928   fi
14929 else
14930   need_locks=no
14931 fi
14932
14933
14934
14935     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14937
14938   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14939   case $host_os in
14940   aix[4-9]*)
14941     # If we're using GNU nm, then we don't want the "-C" option.
14942     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14943     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14944       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'
14945     else
14946       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'
14947     fi
14948     ;;
14949   pw32*)
14950     export_symbols_cmds_CXX="$ltdll_cmds"
14951   ;;
14952   cygwin* | mingw* | cegcc*)
14953     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'
14954   ;;
14955   *)
14956     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14957   ;;
14958   esac
14959   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14960
14961 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14962 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14963 test "$ld_shlibs_CXX" = no && can_build_shared=no
14964
14965 with_gnu_ld_CXX=$with_gnu_ld
14966
14967
14968
14969
14970
14971
14972 #
14973 # Do we need to explicitly link libc?
14974 #
14975 case "x$archive_cmds_need_lc_CXX" in
14976 x|xyes)
14977   # Assume -lc should be added
14978   archive_cmds_need_lc_CXX=yes
14979
14980   if test "$enable_shared" = yes && test "$GCC" = yes; then
14981     case $archive_cmds_CXX in
14982     *'~'*)
14983       # FIXME: we may have to deal with multi-command sequences.
14984       ;;
14985     '$CC '*)
14986       # Test whether the compiler implicitly links with -lc since on some
14987       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14988       # to ld, don't add -lc before -lgcc.
14989       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14991       $RM conftest*
14992       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14993
14994       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995   (eval $ac_compile) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } 2>conftest.err; then
14999         soname=conftest
15000         lib=conftest
15001         libobjs=conftest.$ac_objext
15002         deplibs=
15003         wl=$lt_prog_compiler_wl_CXX
15004         pic_flag=$lt_prog_compiler_pic_CXX
15005         compiler_flags=-v
15006         linker_flags=-v
15007         verstring=
15008         output_objdir=.
15009         libname=conftest
15010         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15011         allow_undefined_flag_CXX=
15012         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15013   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }
15017         then
15018           archive_cmds_need_lc_CXX=no
15019         else
15020           archive_cmds_need_lc_CXX=yes
15021         fi
15022         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15023       else
15024         cat conftest.err 1>&5
15025       fi
15026       $RM conftest*
15027       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15029       ;;
15030     esac
15031   fi
15032   ;;
15033 esac
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15100
15101 library_names_spec=
15102 libname_spec='lib$name'
15103 soname_spec=
15104 shrext_cmds=".so"
15105 postinstall_cmds=
15106 postuninstall_cmds=
15107 finish_cmds=
15108 finish_eval=
15109 shlibpath_var=
15110 shlibpath_overrides_runpath=unknown
15111 version_type=none
15112 dynamic_linker="$host_os ld.so"
15113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15114 need_lib_prefix=unknown
15115 hardcode_into_libs=no
15116
15117 # when you set need_version to no, make sure it does not cause -set_version
15118 # flags to be left without arguments
15119 need_version=unknown
15120
15121 case $host_os in
15122 aix3*)
15123   version_type=linux
15124   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15125   shlibpath_var=LIBPATH
15126
15127   # AIX 3 has no versioning support, so we append a major version to the name.
15128   soname_spec='${libname}${release}${shared_ext}$major'
15129   ;;
15130
15131 aix[4-9]*)
15132   version_type=linux
15133   need_lib_prefix=no
15134   need_version=no
15135   hardcode_into_libs=yes
15136   if test "$host_cpu" = ia64; then
15137     # AIX 5 supports IA64
15138     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15139     shlibpath_var=LD_LIBRARY_PATH
15140   else
15141     # With GCC up to 2.95.x, collect2 would create an import file
15142     # for dependence libraries.  The import file would start with
15143     # the line `#! .'.  This would cause the generated library to
15144     # depend on `.', always an invalid library.  This was fixed in
15145     # development snapshots of GCC prior to 3.0.
15146     case $host_os in
15147       aix4 | aix4.[01] | aix4.[01].*)
15148       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15149            echo ' yes '
15150            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15151         :
15152       else
15153         can_build_shared=no
15154       fi
15155       ;;
15156     esac
15157     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15158     # soname into executable. Probably we can add versioning support to
15159     # collect2, so additional links can be useful in future.
15160     if test "$aix_use_runtimelinking" = yes; then
15161       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15162       # instead of lib<name>.a to let people know that these are not
15163       # typical AIX shared libraries.
15164       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165     else
15166       # We preserve .a as extension for shared libraries through AIX4.2
15167       # and later when we are not doing run time linking.
15168       library_names_spec='${libname}${release}.a $libname.a'
15169       soname_spec='${libname}${release}${shared_ext}$major'
15170     fi
15171     shlibpath_var=LIBPATH
15172   fi
15173   ;;
15174
15175 amigaos*)
15176   case $host_cpu in
15177   powerpc)
15178     # Since July 2007 AmigaOS4 officially supports .so libraries.
15179     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181     ;;
15182   m68k)
15183     library_names_spec='$libname.ixlibrary $libname.a'
15184     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15185     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'
15186     ;;
15187   esac
15188   ;;
15189
15190 beos*)
15191   library_names_spec='${libname}${shared_ext}'
15192   dynamic_linker="$host_os ld.so"
15193   shlibpath_var=LIBRARY_PATH
15194   ;;
15195
15196 bsdi[45]*)
15197   version_type=linux
15198   need_version=no
15199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15202   shlibpath_var=LD_LIBRARY_PATH
15203   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15204   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15205   # the default ld.so.conf also contains /usr/contrib/lib and
15206   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15207   # libtool to hard-code these into programs
15208   ;;
15209
15210 cygwin* | mingw* | pw32* | cegcc*)
15211   version_type=windows
15212   shrext_cmds=".dll"
15213   need_version=no
15214   need_lib_prefix=no
15215
15216   case $GCC,$host_os in
15217   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15218     library_names_spec='$libname.dll.a'
15219     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15220     postinstall_cmds='base_file=`basename \${file}`~
15221       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15222       dldir=$destdir/`dirname \$dlpath`~
15223       test -d \$dldir || mkdir -p \$dldir~
15224       $install_prog $dir/$dlname \$dldir/$dlname~
15225       chmod a+x \$dldir/$dlname~
15226       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15227         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15228       fi'
15229     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15230       dlpath=$dir/\$dldll~
15231        $RM \$dlpath'
15232     shlibpath_overrides_runpath=yes
15233
15234     case $host_os in
15235     cygwin*)
15236       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15237       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15238       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15239       ;;
15240     mingw* | cegcc*)
15241       # MinGW DLLs use traditional 'lib' prefix
15242       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15243       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15244       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15245         # It is most probably a Windows format PATH printed by
15246         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15247         # path with ; separators, and with drive letters. We can handle the
15248         # drive letters (cygwin fileutils understands them), so leave them,
15249         # especially as we might pass files found there to a mingw objdump,
15250         # which wouldn't understand a cygwinified path. Ahh.
15251         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15252       else
15253         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15254       fi
15255       ;;
15256     pw32*)
15257       # pw32 DLLs use 'pw' prefix rather than 'lib'
15258       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15259       ;;
15260     esac
15261     ;;
15262
15263   *)
15264     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15265     ;;
15266   esac
15267   dynamic_linker='Win32 ld.exe'
15268   # FIXME: first we should search . and the directory the executable is in
15269   shlibpath_var=PATH
15270   ;;
15271
15272 darwin* | rhapsody*)
15273   dynamic_linker="$host_os dyld"
15274   version_type=darwin
15275   need_lib_prefix=no
15276   need_version=no
15277   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15278   soname_spec='${libname}${release}${major}$shared_ext'
15279   shlibpath_overrides_runpath=yes
15280   shlibpath_var=DYLD_LIBRARY_PATH
15281   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15282
15283   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15284   ;;
15285
15286 dgux*)
15287   version_type=linux
15288   need_lib_prefix=no
15289   need_version=no
15290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15291   soname_spec='${libname}${release}${shared_ext}$major'
15292   shlibpath_var=LD_LIBRARY_PATH
15293   ;;
15294
15295 freebsd1*)
15296   dynamic_linker=no
15297   ;;
15298
15299 freebsd* | dragonfly*)
15300   # DragonFly does not have aout.  When/if they implement a new
15301   # versioning mechanism, adjust this.
15302   if test -x /usr/bin/objformat; then
15303     objformat=`/usr/bin/objformat`
15304   else
15305     case $host_os in
15306     freebsd[123]*) objformat=aout ;;
15307     *) objformat=elf ;;
15308     esac
15309   fi
15310   version_type=freebsd-$objformat
15311   case $version_type in
15312     freebsd-elf*)
15313       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15314       need_version=no
15315       need_lib_prefix=no
15316       ;;
15317     freebsd-*)
15318       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15319       need_version=yes
15320       ;;
15321   esac
15322   shlibpath_var=LD_LIBRARY_PATH
15323   case $host_os in
15324   freebsd2*)
15325     shlibpath_overrides_runpath=yes
15326     ;;
15327   freebsd3.[01]* | freebsdelf3.[01]*)
15328     shlibpath_overrides_runpath=yes
15329     hardcode_into_libs=yes
15330     ;;
15331   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15332   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15333     shlibpath_overrides_runpath=no
15334     hardcode_into_libs=yes
15335     ;;
15336   *) # from 4.6 on, and DragonFly
15337     shlibpath_overrides_runpath=yes
15338     hardcode_into_libs=yes
15339     ;;
15340   esac
15341   ;;
15342
15343 gnu*)
15344   version_type=linux
15345   need_lib_prefix=no
15346   need_version=no
15347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15348   soname_spec='${libname}${release}${shared_ext}$major'
15349   shlibpath_var=LD_LIBRARY_PATH
15350   hardcode_into_libs=yes
15351   ;;
15352
15353 hpux9* | hpux10* | hpux11*)
15354   # Give a soname corresponding to the major version so that dld.sl refuses to
15355   # link against other versions.
15356   version_type=sunos
15357   need_lib_prefix=no
15358   need_version=no
15359   case $host_cpu in
15360   ia64*)
15361     shrext_cmds='.so'
15362     hardcode_into_libs=yes
15363     dynamic_linker="$host_os dld.so"
15364     shlibpath_var=LD_LIBRARY_PATH
15365     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367     soname_spec='${libname}${release}${shared_ext}$major'
15368     if test "X$HPUX_IA64_MODE" = X32; then
15369       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15370     else
15371       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15372     fi
15373     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15374     ;;
15375   hppa*64*)
15376     shrext_cmds='.sl'
15377     hardcode_into_libs=yes
15378     dynamic_linker="$host_os dld.sl"
15379     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382     soname_spec='${libname}${release}${shared_ext}$major'
15383     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15385     ;;
15386   *)
15387     shrext_cmds='.sl'
15388     dynamic_linker="$host_os dld.sl"
15389     shlibpath_var=SHLIB_PATH
15390     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392     soname_spec='${libname}${release}${shared_ext}$major'
15393     ;;
15394   esac
15395   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15396   postinstall_cmds='chmod 555 $lib'
15397   ;;
15398
15399 interix[3-9]*)
15400   version_type=linux
15401   need_lib_prefix=no
15402   need_version=no
15403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15404   soname_spec='${libname}${release}${shared_ext}$major'
15405   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15406   shlibpath_var=LD_LIBRARY_PATH
15407   shlibpath_overrides_runpath=no
15408   hardcode_into_libs=yes
15409   ;;
15410
15411 irix5* | irix6* | nonstopux*)
15412   case $host_os in
15413     nonstopux*) version_type=nonstopux ;;
15414     *)
15415         if test "$lt_cv_prog_gnu_ld" = yes; then
15416                 version_type=linux
15417         else
15418                 version_type=irix
15419         fi ;;
15420   esac
15421   need_lib_prefix=no
15422   need_version=no
15423   soname_spec='${libname}${release}${shared_ext}$major'
15424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15425   case $host_os in
15426   irix5* | nonstopux*)
15427     libsuff= shlibsuff=
15428     ;;
15429   *)
15430     case $LD in # libtool.m4 will add one of these switches to LD
15431     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15432       libsuff= shlibsuff= libmagic=32-bit;;
15433     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15434       libsuff=32 shlibsuff=N32 libmagic=N32;;
15435     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15436       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15437     *) libsuff= shlibsuff= libmagic=never-match;;
15438     esac
15439     ;;
15440   esac
15441   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15442   shlibpath_overrides_runpath=no
15443   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15444   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15445   hardcode_into_libs=yes
15446   ;;
15447
15448 # No shared lib support for Linux oldld, aout, or coff.
15449 linux*oldld* | linux*aout* | linux*coff*)
15450   dynamic_linker=no
15451   ;;
15452
15453 # This must be Linux ELF.
15454 linux* | k*bsd*-gnu)
15455   version_type=linux
15456   need_lib_prefix=no
15457   need_version=no
15458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459   soname_spec='${libname}${release}${shared_ext}$major'
15460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15461   shlibpath_var=LD_LIBRARY_PATH
15462   shlibpath_overrides_runpath=no
15463   # Some binutils ld are patched to set DT_RUNPATH
15464   save_LDFLAGS=$LDFLAGS
15465   save_libdir=$libdir
15466   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15467        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15468   cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474
15475 int
15476 main ()
15477 {
15478
15479   ;
15480   return 0;
15481 }
15482 _ACEOF
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (ac_try="$ac_link"
15485 case "(($ac_try" in
15486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487   *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490   (eval "$ac_link") 2>conftest.er1
15491   ac_status=$?
15492   grep -v '^ *+' conftest.er1 >conftest.err
15493   rm -f conftest.er1
15494   cat conftest.err >&5
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } && {
15497          test -z "$ac_cxx_werror_flag" ||
15498          test ! -s conftest.err
15499        } && test -s conftest$ac_exeext &&
15500        $as_test_x conftest$ac_exeext; then
15501   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15502   shlibpath_overrides_runpath=yes
15503 fi
15504
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509
15510 fi
15511
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513       conftest$ac_exeext conftest.$ac_ext
15514   LDFLAGS=$save_LDFLAGS
15515   libdir=$save_libdir
15516
15517   # This implies no fast_install, which is unacceptable.
15518   # Some rework will be needed to allow for fast_install
15519   # before this can be enabled.
15520   hardcode_into_libs=yes
15521
15522   # Append ld.so.conf contents to the search path
15523   if test -f /etc/ld.so.conf; then
15524     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' ' '`
15525     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15526   fi
15527
15528   # We used to test for /lib/ld.so.1 and disable shared libraries on
15529   # powerpc, because MkLinux only supported shared libraries with the
15530   # GNU dynamic linker.  Since this was broken with cross compilers,
15531   # most powerpc-linux boxes support dynamic linking these days and
15532   # people can always --disable-shared, the test was removed, and we
15533   # assume the GNU/Linux dynamic linker is in use.
15534   dynamic_linker='GNU/Linux ld.so'
15535   ;;
15536
15537 netbsd*)
15538   version_type=sunos
15539   need_lib_prefix=no
15540   need_version=no
15541   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15543     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15544     dynamic_linker='NetBSD (a.out) ld.so'
15545   else
15546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15547     soname_spec='${libname}${release}${shared_ext}$major'
15548     dynamic_linker='NetBSD ld.elf_so'
15549   fi
15550   shlibpath_var=LD_LIBRARY_PATH
15551   shlibpath_overrides_runpath=yes
15552   hardcode_into_libs=yes
15553   ;;
15554
15555 newsos6)
15556   version_type=linux
15557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558   shlibpath_var=LD_LIBRARY_PATH
15559   shlibpath_overrides_runpath=yes
15560   ;;
15561
15562 *nto* | *qnx*)
15563   version_type=qnx
15564   need_lib_prefix=no
15565   need_version=no
15566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567   soname_spec='${libname}${release}${shared_ext}$major'
15568   shlibpath_var=LD_LIBRARY_PATH
15569   shlibpath_overrides_runpath=no
15570   hardcode_into_libs=yes
15571   dynamic_linker='ldqnx.so'
15572   ;;
15573
15574 openbsd*)
15575   version_type=sunos
15576   sys_lib_dlsearch_path_spec="/usr/lib"
15577   need_lib_prefix=no
15578   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15579   case $host_os in
15580     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15581     *)                          need_version=no  ;;
15582   esac
15583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15585   shlibpath_var=LD_LIBRARY_PATH
15586   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15587     case $host_os in
15588       openbsd2.[89] | openbsd2.[89].*)
15589         shlibpath_overrides_runpath=no
15590         ;;
15591       *)
15592         shlibpath_overrides_runpath=yes
15593         ;;
15594       esac
15595   else
15596     shlibpath_overrides_runpath=yes
15597   fi
15598   ;;
15599
15600 os2*)
15601   libname_spec='$name'
15602   shrext_cmds=".dll"
15603   need_lib_prefix=no
15604   library_names_spec='$libname${shared_ext} $libname.a'
15605   dynamic_linker='OS/2 ld.exe'
15606   shlibpath_var=LIBPATH
15607   ;;
15608
15609 osf3* | osf4* | osf5*)
15610   version_type=osf
15611   need_lib_prefix=no
15612   need_version=no
15613   soname_spec='${libname}${release}${shared_ext}$major'
15614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615   shlibpath_var=LD_LIBRARY_PATH
15616   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15617   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15618   ;;
15619
15620 rdos*)
15621   dynamic_linker=no
15622   ;;
15623
15624 solaris*)
15625   version_type=linux
15626   need_lib_prefix=no
15627   need_version=no
15628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629   soname_spec='${libname}${release}${shared_ext}$major'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   shlibpath_overrides_runpath=yes
15632   hardcode_into_libs=yes
15633   # ldd complains unless libraries are executable
15634   postinstall_cmds='chmod +x $lib'
15635   ;;
15636
15637 sunos4*)
15638   version_type=sunos
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15640   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   shlibpath_overrides_runpath=yes
15643   if test "$with_gnu_ld" = yes; then
15644     need_lib_prefix=no
15645   fi
15646   need_version=yes
15647   ;;
15648
15649 sysv4 | sysv4.3*)
15650   version_type=linux
15651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652   soname_spec='${libname}${release}${shared_ext}$major'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   case $host_vendor in
15655     sni)
15656       shlibpath_overrides_runpath=no
15657       need_lib_prefix=no
15658       runpath_var=LD_RUN_PATH
15659       ;;
15660     siemens)
15661       need_lib_prefix=no
15662       ;;
15663     motorola)
15664       need_lib_prefix=no
15665       need_version=no
15666       shlibpath_overrides_runpath=no
15667       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15668       ;;
15669   esac
15670   ;;
15671
15672 sysv4*MP*)
15673   if test -d /usr/nec ;then
15674     version_type=linux
15675     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15676     soname_spec='$libname${shared_ext}.$major'
15677     shlibpath_var=LD_LIBRARY_PATH
15678   fi
15679   ;;
15680
15681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15682   version_type=freebsd-elf
15683   need_lib_prefix=no
15684   need_version=no
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15686   soname_spec='${libname}${release}${shared_ext}$major'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   shlibpath_overrides_runpath=yes
15689   hardcode_into_libs=yes
15690   if test "$with_gnu_ld" = yes; then
15691     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15692   else
15693     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15694     case $host_os in
15695       sco3.2v5*)
15696         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15697         ;;
15698     esac
15699   fi
15700   sys_lib_dlsearch_path_spec='/usr/lib'
15701   ;;
15702
15703 tpf*)
15704   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15705   version_type=linux
15706   need_lib_prefix=no
15707   need_version=no
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   shlibpath_overrides_runpath=no
15711   hardcode_into_libs=yes
15712   ;;
15713
15714 uts4*)
15715   version_type=linux
15716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717   soname_spec='${libname}${release}${shared_ext}$major'
15718   shlibpath_var=LD_LIBRARY_PATH
15719   ;;
15720
15721 *)
15722   dynamic_linker=no
15723   ;;
15724 esac
15725 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15726 echo "${ECHO_T}$dynamic_linker" >&6; }
15727 test "$dynamic_linker" = no && can_build_shared=no
15728
15729 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15730 if test "$GCC" = yes; then
15731   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15732 fi
15733
15734 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15735   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15736 fi
15737 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15738   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15739 fi
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15777 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15778 hardcode_action_CXX=
15779 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15780    test -n "$runpath_var_CXX" ||
15781    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15782
15783   # We can hardcode non-existent directories.
15784   if test "$hardcode_direct_CXX" != no &&
15785      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15786      # have to relink, otherwise we might link with an installed library
15787      # when we should be linking with a yet-to-be-installed one
15788      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15789      test "$hardcode_minus_L_CXX" != no; then
15790     # Linking always hardcodes the temporary library directory.
15791     hardcode_action_CXX=relink
15792   else
15793     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15794     hardcode_action_CXX=immediate
15795   fi
15796 else
15797   # We cannot hardcode anything, or else we can only hardcode existing
15798   # directories.
15799   hardcode_action_CXX=unsupported
15800 fi
15801 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15802 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15803
15804 if test "$hardcode_action_CXX" = relink ||
15805    test "$inherit_rpath_CXX" = yes; then
15806   # Fast installation is not supported
15807   enable_fast_install=no
15808 elif test "$shlibpath_overrides_runpath" = yes ||
15809      test "$enable_shared" = no; then
15810   # Fast installation is not necessary
15811   enable_fast_install=needless
15812 fi
15813
15814
15815
15816
15817
15818
15819
15820   fi # test -n "$compiler"
15821
15822   CC=$lt_save_CC
15823   LDCXX=$LD
15824   LD=$lt_save_LD
15825   GCC=$lt_save_GCC
15826   with_gnu_ld=$lt_save_with_gnu_ld
15827   lt_cv_path_LDCXX=$lt_cv_path_LD
15828   lt_cv_path_LD=$lt_save_path_LD
15829   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15830   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15831 fi # test "$_lt_caught_CXX_error" != yes
15832
15833 ac_ext=c
15834 ac_cpp='$CPP $CPPFLAGS'
15835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851         ac_config_commands="$ac_config_commands libtool"
15852
15853
15854
15855
15856 # Only expand once:
15857
15858
15859
15860 # Check whether --enable-libtool was given.
15861 if test "${enable_libtool+set}" = set; then
15862   enableval=$enable_libtool;
15863        if test x$enableval = xno; then
15864           use_libtool=no
15865        fi
15866
15867
15868 fi
15869
15870
15871 if test x$use_libtool != xno; then
15872    DEFAULT_OBJECT_TYPE=".lo"
15873    DEFAULT_ARCHIVE_TYPE=".la"
15874    DEFAULT_SHARED_OBJECT_TYPE=".la"
15875    LIBTOOL="\$(LIBTOOL)"
15876    LIBTOOL_INSTALL_TARGET="libtool-install"
15877    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15878    LIBTOOL_CLEAN_TARGET="libtool-clean"
15879    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15880 else
15881    DEFAULT_OBJECT_TYPE=".o"
15882    DEFAULT_ARCHIVE_TYPE=".a"
15883    DEFAULT_SHARED_OBJECT_TYPE=".so"
15884    LIBTOOL="# \$(LIBTOOL)"
15885    LIBTOOL_INSTALL_TARGET=""
15886    LIBTOOL_UNINSTALL_TARGET=""
15887    LIBTOOL_CLEAN_TARGET=""
15888    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15889 fi
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901 { echo "$as_me:$LINENO: checking host system type" >&5
15902 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15903 if test "${ac_cv_host+set}" = set; then
15904   echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906   if test "x$host_alias" = x; then
15907   ac_cv_host=$ac_cv_build
15908 else
15909   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15910     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15912    { (exit 1); exit 1; }; }
15913 fi
15914
15915 fi
15916 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15917 echo "${ECHO_T}$ac_cv_host" >&6; }
15918 case $ac_cv_host in
15919 *-*-*) ;;
15920 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15921 echo "$as_me: error: invalid value of canonical host" >&2;}
15922    { (exit 1); exit 1; }; };;
15923 esac
15924 host=$ac_cv_host
15925 ac_save_IFS=$IFS; IFS='-'
15926 set x $ac_cv_host
15927 shift
15928 host_cpu=$1
15929 host_vendor=$2
15930 shift; shift
15931 # Remember, the first character of IFS is used to create $*,
15932 # except with old shells:
15933 host_os=$*
15934 IFS=$ac_save_IFS
15935 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15936
15937
15938 case $host_os in
15939   *cygwin* ) CYGWIN=yes;;
15940          * ) CYGWIN=no;;
15941 esac
15942
15943 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15944 then
15945
15946
15947 if $TRUEPRG; then
15948   HAVE_SUN_OS_TRUE=
15949   HAVE_SUN_OS_FALSE='#'
15950 else
15951   HAVE_SUN_OS_TRUE='#'
15952   HAVE_SUN_OS_FALSE=
15953 fi
15954         cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_SUN_OS 1
15956 _ACEOF
15957
15958 else
15959
15960
15961 if $FALSEPRG; then
15962   HAVE_SUN_OS_TRUE=
15963   HAVE_SUN_OS_FALSE='#'
15964 else
15965   HAVE_SUN_OS_TRUE='#'
15966   HAVE_SUN_OS_FALSE=
15967 fi
15968 fi
15969
15970 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15971 then
15972
15973
15974 if $TRUEPRG; then
15975   HAVE_OSF1_OS_TRUE=
15976   HAVE_OSF1_OS_FALSE='#'
15977 else
15978   HAVE_OSF1_OS_TRUE='#'
15979   HAVE_OSF1_OS_FALSE=
15980 fi
15981         cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_OSF1_OS 1
15983 _ACEOF
15984
15985 else
15986
15987
15988 if $FALSEPRG; then
15989   HAVE_OSF1_OS_TRUE=
15990   HAVE_OSF1_OS_FALSE='#'
15991 else
15992   HAVE_OSF1_OS_TRUE='#'
15993   HAVE_OSF1_OS_FALSE=
15994 fi
15995 fi
15996
15997 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15998 then
15999
16000
16001 if $TRUEPRG; then
16002   HAVE_AIX_OS_TRUE=
16003   HAVE_AIX_OS_FALSE='#'
16004 else
16005   HAVE_AIX_OS_TRUE='#'
16006   HAVE_AIX_OS_FALSE=
16007 fi
16008         cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_AIX_OS 1
16010 _ACEOF
16011
16012 else
16013
16014
16015 if $FALSEPRG; then
16016   HAVE_AIX_OS_TRUE=
16017   HAVE_AIX_OS_FALSE='#'
16018 else
16019   HAVE_AIX_OS_TRUE='#'
16020   HAVE_AIX_OS_FALSE=
16021 fi
16022 fi
16023
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16025 then
16026
16027
16028 if $TRUEPRG; then
16029   HAVE_HPUX_OS_TRUE=
16030   HAVE_HPUX_OS_FALSE='#'
16031 else
16032   HAVE_HPUX_OS_TRUE='#'
16033   HAVE_HPUX_OS_FALSE=
16034 fi
16035         cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_HPUX_OS 1
16037 _ACEOF
16038
16039 else
16040
16041
16042 if $FALSEPRG; then
16043   HAVE_HPUX_OS_TRUE=
16044   HAVE_HPUX_OS_FALSE='#'
16045 else
16046   HAVE_HPUX_OS_TRUE='#'
16047   HAVE_HPUX_OS_FALSE=
16048 fi
16049 fi
16050
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16052 then
16053
16054
16055 if $TRUEPRG; then
16056   HAVE_LINUX_OS_TRUE=
16057   HAVE_LINUX_OS_FALSE='#'
16058 else
16059   HAVE_LINUX_OS_TRUE='#'
16060   HAVE_LINUX_OS_FALSE=
16061 fi
16062         cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_LINUX_OS 1
16064 _ACEOF
16065
16066 else
16067
16068
16069 if $FALSEPRG; then
16070   HAVE_LINUX_OS_TRUE=
16071   HAVE_LINUX_OS_FALSE='#'
16072 else
16073   HAVE_LINUX_OS_TRUE='#'
16074   HAVE_LINUX_OS_FALSE=
16075 fi
16076 fi
16077
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16079 then
16080
16081
16082 if $TRUEPRG; then
16083   HAVE_FREEBSD_OS_TRUE=
16084   HAVE_FREEBSD_OS_FALSE='#'
16085 else
16086   HAVE_FREEBSD_OS_TRUE='#'
16087   HAVE_FREEBSD_OS_FALSE=
16088 fi
16089         cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_FREEBSD_OS 1
16091 _ACEOF
16092
16093 else
16094
16095
16096 if $FALSEPRG; then
16097   HAVE_FREEBSD_OS_TRUE=
16098   HAVE_FREEBSD_OS_FALSE='#'
16099 else
16100   HAVE_FREEBSD_OS_TRUE='#'
16101   HAVE_FREEBSD_OS_FALSE=
16102 fi
16103 fi
16104
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16106 then
16107
16108
16109 if $TRUEPRG; then
16110   HAVE_NETBSD_OS_TRUE=
16111   HAVE_NETBSD_OS_FALSE='#'
16112 else
16113   HAVE_NETBSD_OS_TRUE='#'
16114   HAVE_NETBSD_OS_FALSE=
16115 fi
16116         cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_NETBSD_OS 1
16118 _ACEOF
16119
16120 else
16121
16122
16123 if $FALSEPRG; then
16124   HAVE_NETBSD_OS_TRUE=
16125   HAVE_NETBSD_OS_FALSE='#'
16126 else
16127   HAVE_NETBSD_OS_TRUE='#'
16128   HAVE_NETBSD_OS_FALSE=
16129 fi
16130 fi
16131
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16133 then
16134
16135
16136 if $TRUEPRG; then
16137   HAVE_OPENBSD_OS_TRUE=
16138   HAVE_OPENBSD_OS_FALSE='#'
16139 else
16140   HAVE_OPENBSD_OS_TRUE='#'
16141   HAVE_OPENBSD_OS_FALSE=
16142 fi
16143         cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_OPENBSD_OS 1
16145 _ACEOF
16146
16147 else
16148
16149
16150 if $FALSEPRG; then
16151   HAVE_OPENBSD_OS_TRUE=
16152   HAVE_OPENBSD_OS_FALSE='#'
16153 else
16154   HAVE_OPENBSD_OS_TRUE='#'
16155   HAVE_OPENBSD_OS_FALSE=
16156 fi
16157 fi
16158
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16160 then
16161
16162
16163 if $TRUEPRG; then
16164   HAVE_BSDI_OS_TRUE=
16165   HAVE_BSDI_OS_FALSE='#'
16166 else
16167   HAVE_BSDI_OS_TRUE='#'
16168   HAVE_BSDI_OS_FALSE=
16169 fi
16170         cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_BSDI_OS 1
16172 _ACEOF
16173
16174 else
16175
16176
16177 if $FALSEPRG; then
16178   HAVE_BSDI_OS_TRUE=
16179   HAVE_BSDI_OS_FALSE='#'
16180 else
16181   HAVE_BSDI_OS_TRUE='#'
16182   HAVE_BSDI_OS_FALSE=
16183 fi
16184 fi
16185
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16187 then
16188
16189
16190 if $TRUEPRG; then
16191   HAVE_SGI_OS_TRUE=
16192   HAVE_SGI_OS_FALSE='#'
16193 else
16194   HAVE_SGI_OS_TRUE='#'
16195   HAVE_SGI_OS_FALSE=
16196 fi
16197         cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_SGI_OS 1
16199 _ACEOF
16200
16201 else
16202
16203
16204 if $FALSEPRG; then
16205   HAVE_SGI_OS_TRUE=
16206   HAVE_SGI_OS_FALSE='#'
16207 else
16208   HAVE_SGI_OS_TRUE='#'
16209   HAVE_SGI_OS_FALSE=
16210 fi
16211 fi
16212
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16214 then
16215
16216
16217 if $TRUEPRG; then
16218   HAVE_IRIX_OS_TRUE=
16219   HAVE_IRIX_OS_FALSE='#'
16220 else
16221   HAVE_IRIX_OS_TRUE='#'
16222   HAVE_IRIX_OS_FALSE=
16223 fi
16224         cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_IRIX_OS 1
16226 _ACEOF
16227
16228 else
16229
16230
16231 if $FALSEPRG; then
16232   HAVE_IRIX_OS_TRUE=
16233   HAVE_IRIX_OS_FALSE='#'
16234 else
16235   HAVE_IRIX_OS_TRUE='#'
16236   HAVE_IRIX_OS_FALSE=
16237 fi
16238 fi
16239
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16241 then
16242
16243
16244 if $TRUEPRG; then
16245   HAVE_DARWIN_OS_TRUE=
16246   HAVE_DARWIN_OS_FALSE='#'
16247 else
16248   HAVE_DARWIN_OS_TRUE='#'
16249   HAVE_DARWIN_OS_FALSE=
16250 fi
16251     cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_DARWIN_OS 1
16253 _ACEOF
16254
16255 else
16256
16257
16258 if $FALSEPRG; then
16259   HAVE_DARWIN_OS_TRUE=
16260   HAVE_DARWIN_OS_FALSE='#'
16261 else
16262   HAVE_DARWIN_OS_TRUE='#'
16263   HAVE_DARWIN_OS_FALSE=
16264 fi
16265 fi
16266
16267
16268 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16269 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16270 if test "x$DISTNAME" != "x"
16271 then
16272         echo "distname set to $DISTNAME"
16273 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16274 then
16275         DISTNAME=alpha
16276 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16277 then
16278         DISTNAME=aix
16279 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16280 then
16281         DISTNAME=hpux
16282 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16283 then
16284         DISTNAME=solaris
16285 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16286 then
16287         DISTNAME=freebsd
16288 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16289 then
16290         DISTNAME=netbsd
16291 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16292 then
16293         DISTNAME=openbsd
16294 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16295 then
16296         DISTNAME=irix
16297 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16298 then
16299         DISTNAME=bsdi
16300 elif test -f /etc/SuSE-release
16301 then
16302         DISTNAME=suse
16303 elif test -d /etc/SuSEconfig
16304 then
16305         DISTNAME=suse5
16306 elif test -f /etc/mandrake-release
16307 then
16308         DISTNAME=mandrake
16309 elif test -f /etc/whitebox-release
16310 then
16311        DISTNAME=redhat
16312 elif test -f /etc/redhat-release
16313 then
16314         DISTNAME=redhat
16315 elif test -f /etc/gentoo-release
16316 then
16317         DISTNAME=gentoo
16318 elif test -f /etc/debian_version
16319 then
16320         DISTNAME=debian
16321 elif test -f /etc/slackware-version
16322 then
16323         DISTNAME=slackware
16324 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16325 then
16326     DISTNAME=darwin
16327 elif test -f /etc/engarde-version
16328 then
16329         DISTNAME=engarde
16330 elif test "$CYGWIN" = yes
16331 then
16332         DISTNAME=cygwin
16333         cat >>confdefs.h <<\_ACEOF
16334 #define HAVE_CYGWIN 1
16335 _ACEOF
16336
16337 else
16338         DISTNAME=unknown
16339 fi
16340 { echo "$as_me:$LINENO: result: done" >&5
16341 echo "${ECHO_T}done" >&6; }
16342
16343
16344 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16345 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16346 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16347 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16348   echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350   cat >conftest.make <<\_ACEOF
16351 SHELL = /bin/sh
16352 all:
16353         @echo '@@@%%%=$(MAKE)=@@@%%%'
16354 _ACEOF
16355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16357   *@@@%%%=?*=@@@%%%*)
16358     eval ac_cv_prog_make_${ac_make}_set=yes;;
16359   *)
16360     eval ac_cv_prog_make_${ac_make}_set=no;;
16361 esac
16362 rm -f conftest.make
16363 fi
16364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16365   { echo "$as_me:$LINENO: result: yes" >&5
16366 echo "${ECHO_T}yes" >&6; }
16367   SET_MAKE=
16368 else
16369   { echo "$as_me:$LINENO: result: no" >&5
16370 echo "${ECHO_T}no" >&6; }
16371   SET_MAKE="MAKE=${MAKE-make}"
16372 fi
16373
16374
16375
16376         MKINSTALLDIRS=
16377   if test -n "$ac_aux_dir"; then
16378     case "$ac_aux_dir" in
16379       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16380       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16381     esac
16382   fi
16383   if test -z "$MKINSTALLDIRS"; then
16384     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16385   fi
16386
16387
16388
16389   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16390 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16391     # Check whether --enable-nls was given.
16392 if test "${enable_nls+set}" = set; then
16393   enableval=$enable_nls; USE_NLS=$enableval
16394 else
16395   USE_NLS=yes
16396 fi
16397
16398   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16399 echo "${ECHO_T}$USE_NLS" >&6; }
16400
16401
16402
16403
16404
16405
16406 # Prepare PATH_SEPARATOR.
16407 # The user is always right.
16408 if test "${PATH_SEPARATOR+set}" != set; then
16409   echo "#! /bin/sh" >conf$$.sh
16410   echo  "exit 0"   >>conf$$.sh
16411   chmod +x conf$$.sh
16412   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16413     PATH_SEPARATOR=';'
16414   else
16415     PATH_SEPARATOR=:
16416   fi
16417   rm -f conf$$.sh
16418 fi
16419
16420 # Find out how to test for executable files. Don't use a zero-byte file,
16421 # as systems may use methods other than mode bits to determine executability.
16422 cat >conf$$.file <<_ASEOF
16423 #! /bin/sh
16424 exit 0
16425 _ASEOF
16426 chmod +x conf$$.file
16427 if test -x conf$$.file >/dev/null 2>&1; then
16428   ac_executable_p="test -x"
16429 else
16430   ac_executable_p="test -f"
16431 fi
16432 rm -f conf$$.file
16433
16434 # Extract the first word of "msgfmt", so it can be a program name with args.
16435 set dummy msgfmt; ac_word=$2
16436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16438 if test "${ac_cv_path_MSGFMT+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   case "$MSGFMT" in
16442   [\\/]* | ?:[\\/]*)
16443     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16444     ;;
16445   *)
16446     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16447     for ac_dir in $PATH; do
16448       IFS="$ac_save_IFS"
16449       test -z "$ac_dir" && ac_dir=.
16450       for ac_exec_ext in '' $ac_executable_extensions; do
16451         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16452           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16453           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16454      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16455             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16456             break 2
16457           fi
16458         fi
16459       done
16460     done
16461     IFS="$ac_save_IFS"
16462   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16463     ;;
16464 esac
16465 fi
16466 MSGFMT="$ac_cv_path_MSGFMT"
16467 if test "$MSGFMT" != ":"; then
16468   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16469 echo "${ECHO_T}$MSGFMT" >&6; }
16470 else
16471   { echo "$as_me:$LINENO: result: no" >&5
16472 echo "${ECHO_T}no" >&6; }
16473 fi
16474
16475   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16476 set dummy gmsgfmt; ac_word=$2
16477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16479 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482   case $GMSGFMT in
16483   [\\/]* | ?:[\\/]*)
16484   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16485   ;;
16486   *)
16487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16488 for as_dir in $PATH
16489 do
16490   IFS=$as_save_IFS
16491   test -z "$as_dir" && as_dir=.
16492   for ac_exec_ext in '' $ac_executable_extensions; do
16493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16494     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16496     break 2
16497   fi
16498 done
16499 done
16500 IFS=$as_save_IFS
16501
16502   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16503   ;;
16504 esac
16505 fi
16506 GMSGFMT=$ac_cv_path_GMSGFMT
16507 if test -n "$GMSGFMT"; then
16508   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16509 echo "${ECHO_T}$GMSGFMT" >&6; }
16510 else
16511   { echo "$as_me:$LINENO: result: no" >&5
16512 echo "${ECHO_T}no" >&6; }
16513 fi
16514
16515
16516
16517
16518 # Prepare PATH_SEPARATOR.
16519 # The user is always right.
16520 if test "${PATH_SEPARATOR+set}" != set; then
16521   echo "#! /bin/sh" >conf$$.sh
16522   echo  "exit 0"   >>conf$$.sh
16523   chmod +x conf$$.sh
16524   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16525     PATH_SEPARATOR=';'
16526   else
16527     PATH_SEPARATOR=:
16528   fi
16529   rm -f conf$$.sh
16530 fi
16531
16532 # Find out how to test for executable files. Don't use a zero-byte file,
16533 # as systems may use methods other than mode bits to determine executability.
16534 cat >conf$$.file <<_ASEOF
16535 #! /bin/sh
16536 exit 0
16537 _ASEOF
16538 chmod +x conf$$.file
16539 if test -x conf$$.file >/dev/null 2>&1; then
16540   ac_executable_p="test -x"
16541 else
16542   ac_executable_p="test -f"
16543 fi
16544 rm -f conf$$.file
16545
16546 # Extract the first word of "xgettext", so it can be a program name with args.
16547 set dummy xgettext; ac_word=$2
16548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16550 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   case "$XGETTEXT" in
16554   [\\/]* | ?:[\\/]*)
16555     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16556     ;;
16557   *)
16558     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16559     for ac_dir in $PATH; do
16560       IFS="$ac_save_IFS"
16561       test -z "$ac_dir" && ac_dir=.
16562       for ac_exec_ext in '' $ac_executable_extensions; do
16563         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16564           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16565           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16566      (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
16567             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16568             break 2
16569           fi
16570         fi
16571       done
16572     done
16573     IFS="$ac_save_IFS"
16574   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16575     ;;
16576 esac
16577 fi
16578 XGETTEXT="$ac_cv_path_XGETTEXT"
16579 if test "$XGETTEXT" != ":"; then
16580   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16581 echo "${ECHO_T}$XGETTEXT" >&6; }
16582 else
16583   { echo "$as_me:$LINENO: result: no" >&5
16584 echo "${ECHO_T}no" >&6; }
16585 fi
16586
16587     rm -f messages.po
16588
16589
16590 # Prepare PATH_SEPARATOR.
16591 # The user is always right.
16592 if test "${PATH_SEPARATOR+set}" != set; then
16593   echo "#! /bin/sh" >conf$$.sh
16594   echo  "exit 0"   >>conf$$.sh
16595   chmod +x conf$$.sh
16596   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16597     PATH_SEPARATOR=';'
16598   else
16599     PATH_SEPARATOR=:
16600   fi
16601   rm -f conf$$.sh
16602 fi
16603
16604 # Find out how to test for executable files. Don't use a zero-byte file,
16605 # as systems may use methods other than mode bits to determine executability.
16606 cat >conf$$.file <<_ASEOF
16607 #! /bin/sh
16608 exit 0
16609 _ASEOF
16610 chmod +x conf$$.file
16611 if test -x conf$$.file >/dev/null 2>&1; then
16612   ac_executable_p="test -x"
16613 else
16614   ac_executable_p="test -f"
16615 fi
16616 rm -f conf$$.file
16617
16618 # Extract the first word of "msgmerge", so it can be a program name with args.
16619 set dummy msgmerge; ac_word=$2
16620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16622 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16623   echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625   case "$MSGMERGE" in
16626   [\\/]* | ?:[\\/]*)
16627     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16628     ;;
16629   *)
16630     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16631     for ac_dir in $PATH; do
16632       IFS="$ac_save_IFS"
16633       test -z "$ac_dir" && ac_dir=.
16634       for ac_exec_ext in '' $ac_executable_extensions; do
16635         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16636           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16637           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16638             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16639             break 2
16640           fi
16641         fi
16642       done
16643     done
16644     IFS="$ac_save_IFS"
16645   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16646     ;;
16647 esac
16648 fi
16649 MSGMERGE="$ac_cv_path_MSGMERGE"
16650 if test "$MSGMERGE" != ":"; then
16651   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16652 echo "${ECHO_T}$MSGMERGE" >&6; }
16653 else
16654   { echo "$as_me:$LINENO: result: no" >&5
16655 echo "${ECHO_T}no" >&6; }
16656 fi
16657
16658
16659       if test "$GMSGFMT" != ":"; then
16660             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16661        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16662       : ;
16663     else
16664       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16665       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16666 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16667       GMSGFMT=":"
16668     fi
16669   fi
16670
16671       if test "$XGETTEXT" != ":"; then
16672             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16673        (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
16674       : ;
16675     else
16676       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16677 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16678       XGETTEXT=":"
16679     fi
16680         rm -f messages.po
16681   fi
16682
16683   ac_config_commands="$ac_config_commands default-1"
16684
16685
16686
16687       if test "X$prefix" = "XNONE"; then
16688     acl_final_prefix="$ac_default_prefix"
16689   else
16690     acl_final_prefix="$prefix"
16691   fi
16692   if test "X$exec_prefix" = "XNONE"; then
16693     acl_final_exec_prefix='${prefix}'
16694   else
16695     acl_final_exec_prefix="$exec_prefix"
16696   fi
16697   acl_save_prefix="$prefix"
16698   prefix="$acl_final_prefix"
16699   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16700   prefix="$acl_save_prefix"
16701
16702
16703 # Check whether --with-gnu-ld was given.
16704 if test "${with_gnu_ld+set}" = set; then
16705   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16706 else
16707   with_gnu_ld=no
16708 fi
16709
16710 # Prepare PATH_SEPARATOR.
16711 # The user is always right.
16712 if test "${PATH_SEPARATOR+set}" != set; then
16713   echo "#! /bin/sh" >conf$$.sh
16714   echo  "exit 0"   >>conf$$.sh
16715   chmod +x conf$$.sh
16716   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16717     PATH_SEPARATOR=';'
16718   else
16719     PATH_SEPARATOR=:
16720   fi
16721   rm -f conf$$.sh
16722 fi
16723 ac_prog=ld
16724 if test "$GCC" = yes; then
16725   # Check if gcc -print-prog-name=ld gives a path.
16726   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16727 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16728   case $host in
16729   *-*-mingw*)
16730     # gcc leaves a trailing carriage return which upsets mingw
16731     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16732   *)
16733     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16734   esac
16735   case $ac_prog in
16736     # Accept absolute paths.
16737     [\\/]* | [A-Za-z]:[\\/]*)
16738       re_direlt='/[^/][^/]*/\.\./'
16739       # Canonicalize the path of ld
16740       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16741       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16742         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16743       done
16744       test -z "$LD" && LD="$ac_prog"
16745       ;;
16746   "")
16747     # If it fails, then pretend we aren't using GCC.
16748     ac_prog=ld
16749     ;;
16750   *)
16751     # If it is relative, then search for the first ld in PATH.
16752     with_gnu_ld=unknown
16753     ;;
16754   esac
16755 elif test "$with_gnu_ld" = yes; then
16756   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16757 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16758 else
16759   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16760 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16761 fi
16762 if test "${acl_cv_path_LD+set}" = set; then
16763   echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765   if test -z "$LD"; then
16766   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16767   for ac_dir in $PATH; do
16768     test -z "$ac_dir" && ac_dir=.
16769     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16770       acl_cv_path_LD="$ac_dir/$ac_prog"
16771       # Check to see if the program is GNU ld.  I'd rather use --version,
16772       # but apparently some GNU ld's only accept -v.
16773       # Break only if it was the GNU/non-GNU ld that we prefer.
16774       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16775       *GNU* | *'with BFD'*)
16776         test "$with_gnu_ld" != no && break ;;
16777       *)
16778         test "$with_gnu_ld" != yes && break ;;
16779       esac
16780     fi
16781   done
16782   IFS="$ac_save_ifs"
16783 else
16784   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16785 fi
16786 fi
16787
16788 LD="$acl_cv_path_LD"
16789 if test -n "$LD"; then
16790   { echo "$as_me:$LINENO: result: $LD" >&5
16791 echo "${ECHO_T}$LD" >&6; }
16792 else
16793   { echo "$as_me:$LINENO: result: no" >&5
16794 echo "${ECHO_T}no" >&6; }
16795 fi
16796 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16797 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16798    { (exit 1); exit 1; }; }
16799 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16800 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16801 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16802   echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16805 case `$LD -v 2>&1 </dev/null` in
16806 *GNU* | *'with BFD'*)
16807   acl_cv_prog_gnu_ld=yes ;;
16808 *)
16809   acl_cv_prog_gnu_ld=no ;;
16810 esac
16811 fi
16812 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16813 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16814 with_gnu_ld=$acl_cv_prog_gnu_ld
16815
16816
16817
16818
16819                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16820 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16821 if test "${acl_cv_rpath+set}" = set; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824
16825     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16826     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16827     . ./conftest.sh
16828     rm -f ./conftest.sh
16829     acl_cv_rpath=done
16830
16831 fi
16832 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16833 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16834   wl="$acl_cv_wl"
16835   libext="$acl_cv_libext"
16836   shlibext="$acl_cv_shlibext"
16837   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16838   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16839   hardcode_direct="$acl_cv_hardcode_direct"
16840   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16841     # Check whether --enable-rpath was given.
16842 if test "${enable_rpath+set}" = set; then
16843   enableval=$enable_rpath; :
16844 else
16845   enable_rpath=yes
16846 fi
16847
16848
16849
16850
16851
16852
16853
16854
16855     use_additional=yes
16856
16857   acl_save_prefix="$prefix"
16858   prefix="$acl_final_prefix"
16859   acl_save_exec_prefix="$exec_prefix"
16860   exec_prefix="$acl_final_exec_prefix"
16861
16862     eval additional_includedir=\"$includedir\"
16863     eval additional_libdir=\"$libdir\"
16864
16865   exec_prefix="$acl_save_exec_prefix"
16866   prefix="$acl_save_prefix"
16867
16868
16869 # Check whether --with-libiconv-prefix was given.
16870 if test "${with_libiconv_prefix+set}" = set; then
16871   withval=$with_libiconv_prefix;
16872     if test "X$withval" = "Xno"; then
16873       use_additional=no
16874     else
16875       if test "X$withval" = "X"; then
16876
16877   acl_save_prefix="$prefix"
16878   prefix="$acl_final_prefix"
16879   acl_save_exec_prefix="$exec_prefix"
16880   exec_prefix="$acl_final_exec_prefix"
16881
16882           eval additional_includedir=\"$includedir\"
16883           eval additional_libdir=\"$libdir\"
16884
16885   exec_prefix="$acl_save_exec_prefix"
16886   prefix="$acl_save_prefix"
16887
16888       else
16889         additional_includedir="$withval/include"
16890         additional_libdir="$withval/lib"
16891       fi
16892     fi
16893
16894 fi
16895
16896       LIBICONV=
16897   LTLIBICONV=
16898   INCICONV=
16899   rpathdirs=
16900   ltrpathdirs=
16901   names_already_handled=
16902   names_next_round='iconv '
16903   while test -n "$names_next_round"; do
16904     names_this_round="$names_next_round"
16905     names_next_round=
16906     for name in $names_this_round; do
16907       already_handled=
16908       for n in $names_already_handled; do
16909         if test "$n" = "$name"; then
16910           already_handled=yes
16911           break
16912         fi
16913       done
16914       if test -z "$already_handled"; then
16915         names_already_handled="$names_already_handled $name"
16916                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16917         eval value=\"\$HAVE_LIB$uppername\"
16918         if test -n "$value"; then
16919           if test "$value" = yes; then
16920             eval value=\"\$LIB$uppername\"
16921             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16922             eval value=\"\$LTLIB$uppername\"
16923             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16924           else
16925                                     :
16926           fi
16927         else
16928                               found_dir=
16929           found_la=
16930           found_so=
16931           found_a=
16932           if test $use_additional = yes; then
16933             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16934               found_dir="$additional_libdir"
16935               found_so="$additional_libdir/lib$name.$shlibext"
16936               if test -f "$additional_libdir/lib$name.la"; then
16937                 found_la="$additional_libdir/lib$name.la"
16938               fi
16939             else
16940               if test -f "$additional_libdir/lib$name.$libext"; then
16941                 found_dir="$additional_libdir"
16942                 found_a="$additional_libdir/lib$name.$libext"
16943                 if test -f "$additional_libdir/lib$name.la"; then
16944                   found_la="$additional_libdir/lib$name.la"
16945                 fi
16946               fi
16947             fi
16948           fi
16949           if test "X$found_dir" = "X"; then
16950             for x in $LDFLAGS $LTLIBICONV; do
16951
16952   acl_save_prefix="$prefix"
16953   prefix="$acl_final_prefix"
16954   acl_save_exec_prefix="$exec_prefix"
16955   exec_prefix="$acl_final_exec_prefix"
16956   eval x=\"$x\"
16957   exec_prefix="$acl_save_exec_prefix"
16958   prefix="$acl_save_prefix"
16959
16960               case "$x" in
16961                 -L*)
16962                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16963                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16964                     found_dir="$dir"
16965                     found_so="$dir/lib$name.$shlibext"
16966                     if test -f "$dir/lib$name.la"; then
16967                       found_la="$dir/lib$name.la"
16968                     fi
16969                   else
16970                     if test -f "$dir/lib$name.$libext"; then
16971                       found_dir="$dir"
16972                       found_a="$dir/lib$name.$libext"
16973                       if test -f "$dir/lib$name.la"; then
16974                         found_la="$dir/lib$name.la"
16975                       fi
16976                     fi
16977                   fi
16978                   ;;
16979               esac
16980               if test "X$found_dir" != "X"; then
16981                 break
16982               fi
16983             done
16984           fi
16985           if test "X$found_dir" != "X"; then
16986                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16987             if test "X$found_so" != "X"; then
16988                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16989                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16990               else
16991                                                                                 haveit=
16992                 for x in $ltrpathdirs; do
16993                   if test "X$x" = "X$found_dir"; then
16994                     haveit=yes
16995                     break
16996                   fi
16997                 done
16998                 if test -z "$haveit"; then
16999                   ltrpathdirs="$ltrpathdirs $found_dir"
17000                 fi
17001                                 if test "$hardcode_direct" = yes; then
17002                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17003                 else
17004                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17005                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17006                                                             haveit=
17007                     for x in $rpathdirs; do
17008                       if test "X$x" = "X$found_dir"; then
17009                         haveit=yes
17010                         break
17011                       fi
17012                     done
17013                     if test -z "$haveit"; then
17014                       rpathdirs="$rpathdirs $found_dir"
17015                     fi
17016                   else
17017                                                                                 haveit=
17018                     for x in $LDFLAGS $LIBICONV; do
17019
17020   acl_save_prefix="$prefix"
17021   prefix="$acl_final_prefix"
17022   acl_save_exec_prefix="$exec_prefix"
17023   exec_prefix="$acl_final_exec_prefix"
17024   eval x=\"$x\"
17025   exec_prefix="$acl_save_exec_prefix"
17026   prefix="$acl_save_prefix"
17027
17028                       if test "X$x" = "X-L$found_dir"; then
17029                         haveit=yes
17030                         break
17031                       fi
17032                     done
17033                     if test -z "$haveit"; then
17034                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17035                     fi
17036                     if test "$hardcode_minus_L" != no; then
17037                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17038                     else
17039                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17040                     fi
17041                   fi
17042                 fi
17043               fi
17044             else
17045               if test "X$found_a" != "X"; then
17046                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17047               else
17048                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17049               fi
17050             fi
17051                         additional_includedir=
17052             case "$found_dir" in
17053               */lib | */lib/)
17054                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17055                 additional_includedir="$basedir/include"
17056                 ;;
17057             esac
17058             if test "X$additional_includedir" != "X"; then
17059                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17060                 haveit=
17061                 if test "X$additional_includedir" = "X/usr/local/include"; then
17062                   if test -n "$GCC"; then
17063                     case $host_os in
17064                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17065                     esac
17066                   fi
17067                 fi
17068                 if test -z "$haveit"; then
17069                   for x in $CPPFLAGS $INCICONV; do
17070
17071   acl_save_prefix="$prefix"
17072   prefix="$acl_final_prefix"
17073   acl_save_exec_prefix="$exec_prefix"
17074   exec_prefix="$acl_final_exec_prefix"
17075   eval x=\"$x\"
17076   exec_prefix="$acl_save_exec_prefix"
17077   prefix="$acl_save_prefix"
17078
17079                     if test "X$x" = "X-I$additional_includedir"; then
17080                       haveit=yes
17081                       break
17082                     fi
17083                   done
17084                   if test -z "$haveit"; then
17085                     if test -d "$additional_includedir"; then
17086                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17087                     fi
17088                   fi
17089                 fi
17090               fi
17091             fi
17092                         if test -n "$found_la"; then
17093                                                         save_libdir="$libdir"
17094               case "$found_la" in
17095                 */* | *\\*) . "$found_la" ;;
17096                 *) . "./$found_la" ;;
17097               esac
17098               libdir="$save_libdir"
17099                             for dep in $dependency_libs; do
17100                 case "$dep" in
17101                   -L*)
17102                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17103                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17104                       haveit=
17105                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17106                         if test -n "$GCC"; then
17107                           case $host_os in
17108                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17109                           esac
17110                         fi
17111                       fi
17112                       if test -z "$haveit"; then
17113                         haveit=
17114                         for x in $LDFLAGS $LIBICONV; do
17115
17116   acl_save_prefix="$prefix"
17117   prefix="$acl_final_prefix"
17118   acl_save_exec_prefix="$exec_prefix"
17119   exec_prefix="$acl_final_exec_prefix"
17120   eval x=\"$x\"
17121   exec_prefix="$acl_save_exec_prefix"
17122   prefix="$acl_save_prefix"
17123
17124                           if test "X$x" = "X-L$additional_libdir"; then
17125                             haveit=yes
17126                             break
17127                           fi
17128                         done
17129                         if test -z "$haveit"; then
17130                           if test -d "$additional_libdir"; then
17131                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17132                           fi
17133                         fi
17134                         haveit=
17135                         for x in $LDFLAGS $LTLIBICONV; do
17136
17137   acl_save_prefix="$prefix"
17138   prefix="$acl_final_prefix"
17139   acl_save_exec_prefix="$exec_prefix"
17140   exec_prefix="$acl_final_exec_prefix"
17141   eval x=\"$x\"
17142   exec_prefix="$acl_save_exec_prefix"
17143   prefix="$acl_save_prefix"
17144
17145                           if test "X$x" = "X-L$additional_libdir"; then
17146                             haveit=yes
17147                             break
17148                           fi
17149                         done
17150                         if test -z "$haveit"; then
17151                           if test -d "$additional_libdir"; then
17152                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17153                           fi
17154                         fi
17155                       fi
17156                     fi
17157                     ;;
17158                   -R*)
17159                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17160                     if test "$enable_rpath" != no; then
17161                                                                   haveit=
17162                       for x in $rpathdirs; do
17163                         if test "X$x" = "X$dir"; then
17164                           haveit=yes
17165                           break
17166                         fi
17167                       done
17168                       if test -z "$haveit"; then
17169                         rpathdirs="$rpathdirs $dir"
17170                       fi
17171                                                                   haveit=
17172                       for x in $ltrpathdirs; do
17173                         if test "X$x" = "X$dir"; then
17174                           haveit=yes
17175                           break
17176                         fi
17177                       done
17178                       if test -z "$haveit"; then
17179                         ltrpathdirs="$ltrpathdirs $dir"
17180                       fi
17181                     fi
17182                     ;;
17183                   -l*)
17184                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17185                     ;;
17186                   *.la)
17187                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17188                     ;;
17189                   *)
17190                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17191                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17192                     ;;
17193                 esac
17194               done
17195             fi
17196           else
17197                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17198             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17199           fi
17200         fi
17201       fi
17202     done
17203   done
17204   if test "X$rpathdirs" != "X"; then
17205     if test -n "$hardcode_libdir_separator"; then
17206                         alldirs=
17207       for found_dir in $rpathdirs; do
17208         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17209       done
17210             acl_save_libdir="$libdir"
17211       libdir="$alldirs"
17212       eval flag=\"$hardcode_libdir_flag_spec\"
17213       libdir="$acl_save_libdir"
17214       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17215     else
17216             for found_dir in $rpathdirs; do
17217         acl_save_libdir="$libdir"
17218         libdir="$found_dir"
17219         eval flag=\"$hardcode_libdir_flag_spec\"
17220         libdir="$acl_save_libdir"
17221         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17222       done
17223     fi
17224   fi
17225   if test "X$ltrpathdirs" != "X"; then
17226             for found_dir in $ltrpathdirs; do
17227       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17228     done
17229   fi
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17249 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17250 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253   gt_save_CPPFLAGS="$CPPFLAGS"
17254      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17255      gt_save_LIBS="$LIBS"
17256      LIBS="$LIBS -framework CoreFoundation"
17257      cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h.  */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h.  */
17263 #include <CFPreferences.h>
17264 int
17265 main ()
17266 {
17267 CFPreferencesCopyAppValue(NULL, NULL)
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_link") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } && {
17286          test -z "$ac_c_werror_flag" ||
17287          test ! -s conftest.err
17288        } && test -s conftest$ac_exeext &&
17289        $as_test_x conftest$ac_exeext; then
17290   gt_cv_func_CFPreferencesCopyAppValue=yes
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295         gt_cv_func_CFPreferencesCopyAppValue=no
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299       conftest$ac_exeext conftest.$ac_ext
17300      CPPFLAGS="$gt_save_CPPFLAGS"
17301      LIBS="$gt_save_LIBS"
17302 fi
17303 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17304 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17305   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17306
17307 cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17309 _ACEOF
17310
17311   fi
17312     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17313 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17314 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17315   echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317   gt_save_CPPFLAGS="$CPPFLAGS"
17318      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17319      gt_save_LIBS="$LIBS"
17320      LIBS="$LIBS -framework CoreFoundation"
17321      cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h.  */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h.  */
17327 #include <CFLocale.h>
17328 int
17329 main ()
17330 {
17331 CFLocaleCopyCurrent();
17332   ;
17333   return 0;
17334 }
17335 _ACEOF
17336 rm -f conftest.$ac_objext conftest$ac_exeext
17337 if { (ac_try="$ac_link"
17338 case "(($ac_try" in
17339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340   *) ac_try_echo=$ac_try;;
17341 esac
17342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17343   (eval "$ac_link") 2>conftest.er1
17344   ac_status=$?
17345   grep -v '^ *+' conftest.er1 >conftest.err
17346   rm -f conftest.er1
17347   cat conftest.err >&5
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); } && {
17350          test -z "$ac_c_werror_flag" ||
17351          test ! -s conftest.err
17352        } && test -s conftest$ac_exeext &&
17353        $as_test_x conftest$ac_exeext; then
17354   gt_cv_func_CFLocaleCopyCurrent=yes
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359         gt_cv_func_CFLocaleCopyCurrent=no
17360 fi
17361
17362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17363       conftest$ac_exeext conftest.$ac_ext
17364      CPPFLAGS="$gt_save_CPPFLAGS"
17365      LIBS="$gt_save_LIBS"
17366 fi
17367 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17368 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17369   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17370
17371 cat >>confdefs.h <<\_ACEOF
17372 #define HAVE_CFLOCALECOPYCURRENT 1
17373 _ACEOF
17374
17375   fi
17376   INTL_MACOSX_LIBS=
17377   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17378     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17379   fi
17380
17381
17382
17383
17384   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17385 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17386     # Check whether --enable-nls was given.
17387 if test "${enable_nls+set}" = set; then
17388   enableval=$enable_nls; USE_NLS=$enableval
17389 else
17390   USE_NLS=yes
17391 fi
17392
17393   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17394 echo "${ECHO_T}$USE_NLS" >&6; }
17395
17396
17397
17398
17399   LIBINTL=
17400   LTLIBINTL=
17401   POSUB=
17402
17403     if test "$USE_NLS" = "yes"; then
17404     gt_use_preinstalled_gnugettext=no
17405
17406
17407
17408
17409
17410
17411         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17412 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17413 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17414   echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416   cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h.  */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h.  */
17422 #include <libintl.h>
17423 extern int _nl_msg_cat_cntr;
17424 extern int *_nl_domain_bindings;
17425 int
17426 main ()
17427 {
17428 bindtextdomain ("", "");
17429 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_link") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } && {
17448          test -z "$ac_c_werror_flag" ||
17449          test ! -s conftest.err
17450        } && test -s conftest$ac_exeext &&
17451        $as_test_x conftest$ac_exeext; then
17452   gt_cv_func_gnugettext1_libc=yes
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457         gt_cv_func_gnugettext1_libc=no
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461       conftest$ac_exeext conftest.$ac_ext
17462 fi
17463 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17464 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17465
17466         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17467
17468
17469
17470
17471
17472           am_save_CPPFLAGS="$CPPFLAGS"
17473
17474   for element in $INCICONV; do
17475     haveit=
17476     for x in $CPPFLAGS; do
17477
17478   acl_save_prefix="$prefix"
17479   prefix="$acl_final_prefix"
17480   acl_save_exec_prefix="$exec_prefix"
17481   exec_prefix="$acl_final_exec_prefix"
17482   eval x=\"$x\"
17483   exec_prefix="$acl_save_exec_prefix"
17484   prefix="$acl_save_prefix"
17485
17486       if test "X$x" = "X$element"; then
17487         haveit=yes
17488         break
17489       fi
17490     done
17491     if test -z "$haveit"; then
17492       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17493     fi
17494   done
17495
17496
17497   { echo "$as_me:$LINENO: checking for iconv" >&5
17498 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17499 if test "${am_cv_func_iconv+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502
17503     am_cv_func_iconv="no, consider installing GNU libiconv"
17504     am_cv_lib_iconv=no
17505     cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h.  */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h.  */
17511 #include <stdlib.h>
17512 #include <iconv.h>
17513 int
17514 main ()
17515 {
17516 iconv_t cd = iconv_open("","");
17517        iconv(cd,NULL,NULL,NULL,NULL);
17518        iconv_close(cd);
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (ac_try="$ac_link"
17525 case "(($ac_try" in
17526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527   *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530   (eval "$ac_link") 2>conftest.er1
17531   ac_status=$?
17532   grep -v '^ *+' conftest.er1 >conftest.err
17533   rm -f conftest.er1
17534   cat conftest.err >&5
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); } && {
17537          test -z "$ac_c_werror_flag" ||
17538          test ! -s conftest.err
17539        } && test -s conftest$ac_exeext &&
17540        $as_test_x conftest$ac_exeext; then
17541   am_cv_func_iconv=yes
17542 else
17543   echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546
17547 fi
17548
17549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17550       conftest$ac_exeext conftest.$ac_ext
17551     if test "$am_cv_func_iconv" != yes; then
17552       am_save_LIBS="$LIBS"
17553       LIBS="$LIBS $LIBICONV"
17554       cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h.  */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h.  */
17560 #include <stdlib.h>
17561 #include <iconv.h>
17562 int
17563 main ()
17564 {
17565 iconv_t cd = iconv_open("","");
17566          iconv(cd,NULL,NULL,NULL,NULL);
17567          iconv_close(cd);
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (ac_try="$ac_link"
17574 case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_link") 2>conftest.er1
17580   ac_status=$?
17581   grep -v '^ *+' conftest.er1 >conftest.err
17582   rm -f conftest.er1
17583   cat conftest.err >&5
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); } && {
17586          test -z "$ac_c_werror_flag" ||
17587          test ! -s conftest.err
17588        } && test -s conftest$ac_exeext &&
17589        $as_test_x conftest$ac_exeext; then
17590   am_cv_lib_iconv=yes
17591         am_cv_func_iconv=yes
17592 else
17593   echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17595
17596
17597 fi
17598
17599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17600       conftest$ac_exeext conftest.$ac_ext
17601       LIBS="$am_save_LIBS"
17602     fi
17603
17604 fi
17605 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17606 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17607   if test "$am_cv_func_iconv" = yes; then
17608
17609 cat >>confdefs.h <<\_ACEOF
17610 #define HAVE_ICONV 1
17611 _ACEOF
17612
17613   fi
17614   if test "$am_cv_lib_iconv" = yes; then
17615     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17616 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17617     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17618 echo "${ECHO_T}$LIBICONV" >&6; }
17619   else
17620             CPPFLAGS="$am_save_CPPFLAGS"
17621     LIBICONV=
17622     LTLIBICONV=
17623   fi
17624
17625
17626
17627
17628
17629
17630     use_additional=yes
17631
17632   acl_save_prefix="$prefix"
17633   prefix="$acl_final_prefix"
17634   acl_save_exec_prefix="$exec_prefix"
17635   exec_prefix="$acl_final_exec_prefix"
17636
17637     eval additional_includedir=\"$includedir\"
17638     eval additional_libdir=\"$libdir\"
17639
17640   exec_prefix="$acl_save_exec_prefix"
17641   prefix="$acl_save_prefix"
17642
17643
17644 # Check whether --with-libintl-prefix was given.
17645 if test "${with_libintl_prefix+set}" = set; then
17646   withval=$with_libintl_prefix;
17647     if test "X$withval" = "Xno"; then
17648       use_additional=no
17649     else
17650       if test "X$withval" = "X"; then
17651
17652   acl_save_prefix="$prefix"
17653   prefix="$acl_final_prefix"
17654   acl_save_exec_prefix="$exec_prefix"
17655   exec_prefix="$acl_final_exec_prefix"
17656
17657           eval additional_includedir=\"$includedir\"
17658           eval additional_libdir=\"$libdir\"
17659
17660   exec_prefix="$acl_save_exec_prefix"
17661   prefix="$acl_save_prefix"
17662
17663       else
17664         additional_includedir="$withval/include"
17665         additional_libdir="$withval/lib"
17666       fi
17667     fi
17668
17669 fi
17670
17671       LIBINTL=
17672   LTLIBINTL=
17673   INCINTL=
17674   rpathdirs=
17675   ltrpathdirs=
17676   names_already_handled=
17677   names_next_round='intl '
17678   while test -n "$names_next_round"; do
17679     names_this_round="$names_next_round"
17680     names_next_round=
17681     for name in $names_this_round; do
17682       already_handled=
17683       for n in $names_already_handled; do
17684         if test "$n" = "$name"; then
17685           already_handled=yes
17686           break
17687         fi
17688       done
17689       if test -z "$already_handled"; then
17690         names_already_handled="$names_already_handled $name"
17691                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17692         eval value=\"\$HAVE_LIB$uppername\"
17693         if test -n "$value"; then
17694           if test "$value" = yes; then
17695             eval value=\"\$LIB$uppername\"
17696             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17697             eval value=\"\$LTLIB$uppername\"
17698             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17699           else
17700                                     :
17701           fi
17702         else
17703                               found_dir=
17704           found_la=
17705           found_so=
17706           found_a=
17707           if test $use_additional = yes; then
17708             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17709               found_dir="$additional_libdir"
17710               found_so="$additional_libdir/lib$name.$shlibext"
17711               if test -f "$additional_libdir/lib$name.la"; then
17712                 found_la="$additional_libdir/lib$name.la"
17713               fi
17714             else
17715               if test -f "$additional_libdir/lib$name.$libext"; then
17716                 found_dir="$additional_libdir"
17717                 found_a="$additional_libdir/lib$name.$libext"
17718                 if test -f "$additional_libdir/lib$name.la"; then
17719                   found_la="$additional_libdir/lib$name.la"
17720                 fi
17721               fi
17722             fi
17723           fi
17724           if test "X$found_dir" = "X"; then
17725             for x in $LDFLAGS $LTLIBINTL; do
17726
17727   acl_save_prefix="$prefix"
17728   prefix="$acl_final_prefix"
17729   acl_save_exec_prefix="$exec_prefix"
17730   exec_prefix="$acl_final_exec_prefix"
17731   eval x=\"$x\"
17732   exec_prefix="$acl_save_exec_prefix"
17733   prefix="$acl_save_prefix"
17734
17735               case "$x" in
17736                 -L*)
17737                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17738                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17739                     found_dir="$dir"
17740                     found_so="$dir/lib$name.$shlibext"
17741                     if test -f "$dir/lib$name.la"; then
17742                       found_la="$dir/lib$name.la"
17743                     fi
17744                   else
17745                     if test -f "$dir/lib$name.$libext"; then
17746                       found_dir="$dir"
17747                       found_a="$dir/lib$name.$libext"
17748                       if test -f "$dir/lib$name.la"; then
17749                         found_la="$dir/lib$name.la"
17750                       fi
17751                     fi
17752                   fi
17753                   ;;
17754               esac
17755               if test "X$found_dir" != "X"; then
17756                 break
17757               fi
17758             done
17759           fi
17760           if test "X$found_dir" != "X"; then
17761                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17762             if test "X$found_so" != "X"; then
17763                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17764                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17765               else
17766                                                                                 haveit=
17767                 for x in $ltrpathdirs; do
17768                   if test "X$x" = "X$found_dir"; then
17769                     haveit=yes
17770                     break
17771                   fi
17772                 done
17773                 if test -z "$haveit"; then
17774                   ltrpathdirs="$ltrpathdirs $found_dir"
17775                 fi
17776                                 if test "$hardcode_direct" = yes; then
17777                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17778                 else
17779                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17780                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17781                                                             haveit=
17782                     for x in $rpathdirs; do
17783                       if test "X$x" = "X$found_dir"; then
17784                         haveit=yes
17785                         break
17786                       fi
17787                     done
17788                     if test -z "$haveit"; then
17789                       rpathdirs="$rpathdirs $found_dir"
17790                     fi
17791                   else
17792                                                                                 haveit=
17793                     for x in $LDFLAGS $LIBINTL; do
17794
17795   acl_save_prefix="$prefix"
17796   prefix="$acl_final_prefix"
17797   acl_save_exec_prefix="$exec_prefix"
17798   exec_prefix="$acl_final_exec_prefix"
17799   eval x=\"$x\"
17800   exec_prefix="$acl_save_exec_prefix"
17801   prefix="$acl_save_prefix"
17802
17803                       if test "X$x" = "X-L$found_dir"; then
17804                         haveit=yes
17805                         break
17806                       fi
17807                     done
17808                     if test -z "$haveit"; then
17809                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17810                     fi
17811                     if test "$hardcode_minus_L" != no; then
17812                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17813                     else
17814                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17815                     fi
17816                   fi
17817                 fi
17818               fi
17819             else
17820               if test "X$found_a" != "X"; then
17821                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17822               else
17823                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17824               fi
17825             fi
17826                         additional_includedir=
17827             case "$found_dir" in
17828               */lib | */lib/)
17829                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17830                 additional_includedir="$basedir/include"
17831                 ;;
17832             esac
17833             if test "X$additional_includedir" != "X"; then
17834                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17835                 haveit=
17836                 if test "X$additional_includedir" = "X/usr/local/include"; then
17837                   if test -n "$GCC"; then
17838                     case $host_os in
17839                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17840                     esac
17841                   fi
17842                 fi
17843                 if test -z "$haveit"; then
17844                   for x in $CPPFLAGS $INCINTL; do
17845
17846   acl_save_prefix="$prefix"
17847   prefix="$acl_final_prefix"
17848   acl_save_exec_prefix="$exec_prefix"
17849   exec_prefix="$acl_final_exec_prefix"
17850   eval x=\"$x\"
17851   exec_prefix="$acl_save_exec_prefix"
17852   prefix="$acl_save_prefix"
17853
17854                     if test "X$x" = "X-I$additional_includedir"; then
17855                       haveit=yes
17856                       break
17857                     fi
17858                   done
17859                   if test -z "$haveit"; then
17860                     if test -d "$additional_includedir"; then
17861                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17862                     fi
17863                   fi
17864                 fi
17865               fi
17866             fi
17867                         if test -n "$found_la"; then
17868                                                         save_libdir="$libdir"
17869               case "$found_la" in
17870                 */* | *\\*) . "$found_la" ;;
17871                 *) . "./$found_la" ;;
17872               esac
17873               libdir="$save_libdir"
17874                             for dep in $dependency_libs; do
17875                 case "$dep" in
17876                   -L*)
17877                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17878                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17879                       haveit=
17880                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17881                         if test -n "$GCC"; then
17882                           case $host_os in
17883                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17884                           esac
17885                         fi
17886                       fi
17887                       if test -z "$haveit"; then
17888                         haveit=
17889                         for x in $LDFLAGS $LIBINTL; do
17890
17891   acl_save_prefix="$prefix"
17892   prefix="$acl_final_prefix"
17893   acl_save_exec_prefix="$exec_prefix"
17894   exec_prefix="$acl_final_exec_prefix"
17895   eval x=\"$x\"
17896   exec_prefix="$acl_save_exec_prefix"
17897   prefix="$acl_save_prefix"
17898
17899                           if test "X$x" = "X-L$additional_libdir"; then
17900                             haveit=yes
17901                             break
17902                           fi
17903                         done
17904                         if test -z "$haveit"; then
17905                           if test -d "$additional_libdir"; then
17906                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17907                           fi
17908                         fi
17909                         haveit=
17910                         for x in $LDFLAGS $LTLIBINTL; do
17911
17912   acl_save_prefix="$prefix"
17913   prefix="$acl_final_prefix"
17914   acl_save_exec_prefix="$exec_prefix"
17915   exec_prefix="$acl_final_exec_prefix"
17916   eval x=\"$x\"
17917   exec_prefix="$acl_save_exec_prefix"
17918   prefix="$acl_save_prefix"
17919
17920                           if test "X$x" = "X-L$additional_libdir"; then
17921                             haveit=yes
17922                             break
17923                           fi
17924                         done
17925                         if test -z "$haveit"; then
17926                           if test -d "$additional_libdir"; then
17927                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17928                           fi
17929                         fi
17930                       fi
17931                     fi
17932                     ;;
17933                   -R*)
17934                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17935                     if test "$enable_rpath" != no; then
17936                                                                   haveit=
17937                       for x in $rpathdirs; do
17938                         if test "X$x" = "X$dir"; then
17939                           haveit=yes
17940                           break
17941                         fi
17942                       done
17943                       if test -z "$haveit"; then
17944                         rpathdirs="$rpathdirs $dir"
17945                       fi
17946                                                                   haveit=
17947                       for x in $ltrpathdirs; do
17948                         if test "X$x" = "X$dir"; then
17949                           haveit=yes
17950                           break
17951                         fi
17952                       done
17953                       if test -z "$haveit"; then
17954                         ltrpathdirs="$ltrpathdirs $dir"
17955                       fi
17956                     fi
17957                     ;;
17958                   -l*)
17959                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17960                     ;;
17961                   *.la)
17962                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17963                     ;;
17964                   *)
17965                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17966                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17967                     ;;
17968                 esac
17969               done
17970             fi
17971           else
17972                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17973             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17974           fi
17975         fi
17976       fi
17977     done
17978   done
17979   if test "X$rpathdirs" != "X"; then
17980     if test -n "$hardcode_libdir_separator"; then
17981                         alldirs=
17982       for found_dir in $rpathdirs; do
17983         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17984       done
17985             acl_save_libdir="$libdir"
17986       libdir="$alldirs"
17987       eval flag=\"$hardcode_libdir_flag_spec\"
17988       libdir="$acl_save_libdir"
17989       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17990     else
17991             for found_dir in $rpathdirs; do
17992         acl_save_libdir="$libdir"
17993         libdir="$found_dir"
17994         eval flag=\"$hardcode_libdir_flag_spec\"
17995         libdir="$acl_save_libdir"
17996         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17997       done
17998     fi
17999   fi
18000   if test "X$ltrpathdirs" != "X"; then
18001             for found_dir in $ltrpathdirs; do
18002       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18003     done
18004   fi
18005
18006           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18007 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18008 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18009   echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011   gt_save_CPPFLAGS="$CPPFLAGS"
18012             CPPFLAGS="$CPPFLAGS $INCINTL"
18013             gt_save_LIBS="$LIBS"
18014             LIBS="$LIBS $LIBINTL"
18015                         cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h.  */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h.  */
18021 #include <libintl.h>
18022 extern int _nl_msg_cat_cntr;
18023 extern
18024 #ifdef __cplusplus
18025 "C"
18026 #endif
18027 const char *_nl_expand_alias (const char *);
18028 int
18029 main ()
18030 {
18031 bindtextdomain ("", "");
18032 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (ac_try="$ac_link"
18039 case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_link") 2>conftest.er1
18045   ac_status=$?
18046   grep -v '^ *+' conftest.er1 >conftest.err
18047   rm -f conftest.er1
18048   cat conftest.err >&5
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } && {
18051          test -z "$ac_c_werror_flag" ||
18052          test ! -s conftest.err
18053        } && test -s conftest$ac_exeext &&
18054        $as_test_x conftest$ac_exeext; then
18055   gt_cv_func_gnugettext1_libintl=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060         gt_cv_func_gnugettext1_libintl=no
18061 fi
18062
18063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18064       conftest$ac_exeext conftest.$ac_ext
18065                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18066               LIBS="$LIBS $LIBICONV"
18067               cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h.  */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h.  */
18073 #include <libintl.h>
18074 extern int _nl_msg_cat_cntr;
18075 extern
18076 #ifdef __cplusplus
18077 "C"
18078 #endif
18079 const char *_nl_expand_alias (const char *);
18080 int
18081 main ()
18082 {
18083 bindtextdomain ("", "");
18084 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18085   ;
18086   return 0;
18087 }
18088 _ACEOF
18089 rm -f conftest.$ac_objext conftest$ac_exeext
18090 if { (ac_try="$ac_link"
18091 case "(($ac_try" in
18092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093   *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096   (eval "$ac_link") 2>conftest.er1
18097   ac_status=$?
18098   grep -v '^ *+' conftest.er1 >conftest.err
18099   rm -f conftest.er1
18100   cat conftest.err >&5
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); } && {
18103          test -z "$ac_c_werror_flag" ||
18104          test ! -s conftest.err
18105        } && test -s conftest$ac_exeext &&
18106        $as_test_x conftest$ac_exeext; then
18107   LIBINTL="$LIBINTL $LIBICONV"
18108                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18109                 gt_cv_func_gnugettext1_libintl=yes
18110
18111 else
18112   echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115
18116 fi
18117
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119       conftest$ac_exeext conftest.$ac_ext
18120             fi
18121             CPPFLAGS="$gt_save_CPPFLAGS"
18122             LIBS="$gt_save_LIBS"
18123 fi
18124 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18125 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18126         fi
18127
18128                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18129            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18130                 && test "$PACKAGE" != gettext-runtime \
18131                 && test "$PACKAGE" != gettext-tools; }; then
18132           gt_use_preinstalled_gnugettext=yes
18133         else
18134                     LIBINTL=
18135           LTLIBINTL=
18136           INCINTL=
18137         fi
18138
18139
18140
18141     if test -n "$INTL_MACOSX_LIBS"; then
18142       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18143          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18144                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18145         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18146       fi
18147     fi
18148
18149     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18150        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18151
18152 cat >>confdefs.h <<\_ACEOF
18153 #define ENABLE_NLS 1
18154 _ACEOF
18155
18156     else
18157       USE_NLS=no
18158     fi
18159   fi
18160
18161   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18162 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18163   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18164 echo "${ECHO_T}$USE_NLS" >&6; }
18165   if test "$USE_NLS" = "yes"; then
18166     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18167 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18168     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18169       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18170         gt_source="external libintl"
18171       else
18172         gt_source="libc"
18173       fi
18174     else
18175       gt_source="included intl directory"
18176     fi
18177     { echo "$as_me:$LINENO: result: $gt_source" >&5
18178 echo "${ECHO_T}$gt_source" >&6; }
18179   fi
18180
18181   if test "$USE_NLS" = "yes"; then
18182
18183     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18184       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18185         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18186 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18187         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18188 echo "${ECHO_T}$LIBINTL" >&6; }
18189
18190   for element in $INCINTL; do
18191     haveit=
18192     for x in $CPPFLAGS; do
18193
18194   acl_save_prefix="$prefix"
18195   prefix="$acl_final_prefix"
18196   acl_save_exec_prefix="$exec_prefix"
18197   exec_prefix="$acl_final_exec_prefix"
18198   eval x=\"$x\"
18199   exec_prefix="$acl_save_exec_prefix"
18200   prefix="$acl_save_prefix"
18201
18202       if test "X$x" = "X$element"; then
18203         haveit=yes
18204         break
18205       fi
18206     done
18207     if test -z "$haveit"; then
18208       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18209     fi
18210   done
18211
18212       fi
18213
18214
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE_GETTEXT 1
18217 _ACEOF
18218
18219
18220 cat >>confdefs.h <<\_ACEOF
18221 #define HAVE_DCGETTEXT 1
18222 _ACEOF
18223
18224     fi
18225
18226         POSUB=po
18227   fi
18228
18229
18230
18231     INTLLIBS="$LIBINTL"
18232
18233
18234
18235
18236
18237
18238 if test x${prefix} = xNONE ; then
18239    if test `eval echo ${datarootdir}` = NONE/share ; then
18240       datarootdir=/usr/share
18241    fi
18242 fi
18243
18244 if test x${prefix} = xNONE ; then
18245    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18246       sysconfdir=/etc/bacula
18247    fi
18248    prefix=
18249 fi
18250 sysconfdir=`eval echo ${sysconfdir}`
18251 datarootdir=`eval echo ${datarootdir}`
18252 localedir=`eval echo ${datarootdir}/locale`
18253 cat >>confdefs.h <<_ACEOF
18254 #define SYSCONFDIR "$sysconfdir"
18255 _ACEOF
18256
18257 cat >>confdefs.h <<_ACEOF
18258 #define LOCALEDIR "$localedir"
18259 _ACEOF
18260
18261
18262 if test x${exec_prefix} = xNONE ; then
18263    exec_prefix=${prefix}
18264 fi
18265
18266 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18267    sbindir=${exec_prefix}/sbin
18268 fi
18269 sbindir=`eval echo ${sbindir}`
18270
18271 if test x$libdir = x'${exec_prefix}/lib' ; then
18272    libdir=${exec_prefix}/lib
18273 fi
18274 libdir=`eval echo ${libdir}`
18275
18276 if test x$includedir = x'${exec_prefix}/include' ; then
18277    includedir=${exec_prefix}/include
18278 fi
18279 includedir=`eval echo ${includedir}`
18280
18281 if test x$mandir = x'${prefix}/man' ; then
18282    mandir=/usr/share/man
18283 fi
18284
18285 for ac_prog in msgfmt
18286 do
18287   # Extract the first word of "$ac_prog", so it can be a program name with args.
18288 set dummy $ac_prog; ac_word=$2
18289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18291 if test "${ac_cv_path_MSGFMT+set}" = set; then
18292   echo $ECHO_N "(cached) $ECHO_C" >&6
18293 else
18294   case $MSGFMT in
18295   [\\/]* | ?:[\\/]*)
18296   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18297   ;;
18298   *)
18299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18300 for as_dir in $PATH
18301 do
18302   IFS=$as_save_IFS
18303   test -z "$as_dir" && as_dir=.
18304   for ac_exec_ext in '' $ac_executable_extensions; do
18305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18306     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18308     break 2
18309   fi
18310 done
18311 done
18312 IFS=$as_save_IFS
18313
18314   ;;
18315 esac
18316 fi
18317 MSGFMT=$ac_cv_path_MSGFMT
18318 if test -n "$MSGFMT"; then
18319   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18320 echo "${ECHO_T}$MSGFMT" >&6; }
18321 else
18322   { echo "$as_me:$LINENO: result: no" >&5
18323 echo "${ECHO_T}no" >&6; }
18324 fi
18325
18326
18327   test -n "$MSGFMT" && break
18328 done
18329 test -n "$MSGFMT" || MSGFMT="no"
18330
18331 if test "$MSGFMT" = "no"
18332 then
18333    echo 'msgfmt program not found, disabling NLS !'
18334    USE_NLS=no
18335    USE_INCLUDED_LIBINTL=no
18336 #else
18337
18338     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18339 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18340 if test "${ac_cv_gnu_library_2+set}" = set; then
18341   echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343   cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349
18350 #include <features.h>
18351 #ifdef __GNU_LIBRARY__
18352  #if (__GLIBC__ >= 2)
18353   Lucky GNU user
18354  #endif
18355 #endif
18356
18357 _ACEOF
18358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18359   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18360   ac_cv_gnu_library_2=yes
18361 else
18362   ac_cv_gnu_library_2=no
18363 fi
18364 rm -f conftest*
18365
18366
18367
18368 fi
18369 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18370 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18371
18372     GLIBC2="$ac_cv_gnu_library_2"
18373
18374
18375 if test -n "$ac_tool_prefix"; then
18376   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18380 if test "${ac_cv_prog_RANLIB+set}" = set; then
18381   echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383   if test -n "$RANLIB"; then
18384   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18385 else
18386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18387 for as_dir in $PATH
18388 do
18389   IFS=$as_save_IFS
18390   test -z "$as_dir" && as_dir=.
18391   for ac_exec_ext in '' $ac_executable_extensions; do
18392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18393     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18395     break 2
18396   fi
18397 done
18398 done
18399 IFS=$as_save_IFS
18400
18401 fi
18402 fi
18403 RANLIB=$ac_cv_prog_RANLIB
18404 if test -n "$RANLIB"; then
18405   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18406 echo "${ECHO_T}$RANLIB" >&6; }
18407 else
18408   { echo "$as_me:$LINENO: result: no" >&5
18409 echo "${ECHO_T}no" >&6; }
18410 fi
18411
18412
18413 fi
18414 if test -z "$ac_cv_prog_RANLIB"; then
18415   ac_ct_RANLIB=$RANLIB
18416   # Extract the first word of "ranlib", so it can be a program name with args.
18417 set dummy ranlib; ac_word=$2
18418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   if test -n "$ac_ct_RANLIB"; then
18424   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18425 else
18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18428 do
18429   IFS=$as_save_IFS
18430   test -z "$as_dir" && as_dir=.
18431   for ac_exec_ext in '' $ac_executable_extensions; do
18432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18433     ac_cv_prog_ac_ct_RANLIB="ranlib"
18434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18435     break 2
18436   fi
18437 done
18438 done
18439 IFS=$as_save_IFS
18440
18441 fi
18442 fi
18443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18444 if test -n "$ac_ct_RANLIB"; then
18445   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18446 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18447 else
18448   { echo "$as_me:$LINENO: result: no" >&5
18449 echo "${ECHO_T}no" >&6; }
18450 fi
18451
18452   if test "x$ac_ct_RANLIB" = x; then
18453     RANLIB=":"
18454   else
18455     case $cross_compiling:$ac_tool_warned in
18456 yes:)
18457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18458 whose name does not start with the host triplet.  If you think this
18459 configuration is useful to you, please write to autoconf@gnu.org." >&5
18460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18461 whose name does not start with the host triplet.  If you think this
18462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18463 ac_tool_warned=yes ;;
18464 esac
18465     RANLIB=$ac_ct_RANLIB
18466   fi
18467 else
18468   RANLIB="$ac_cv_prog_RANLIB"
18469 fi
18470
18471
18472         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18473 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18474 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18475   echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477   ac_check_lib_save_LIBS=$LIBS
18478 LIBS="-lcposix  $LIBS"
18479 cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485
18486 /* Override any GCC internal prototype to avoid an error.
18487    Use char because int might match the return type of a GCC
18488    builtin and then its argument prototype would still apply.  */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 char strerror ();
18493 int
18494 main ()
18495 {
18496 return strerror ();
18497   ;
18498   return 0;
18499 }
18500 _ACEOF
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (ac_try="$ac_link"
18503 case "(($ac_try" in
18504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505   *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508   (eval "$ac_link") 2>conftest.er1
18509   ac_status=$?
18510   grep -v '^ *+' conftest.er1 >conftest.err
18511   rm -f conftest.er1
18512   cat conftest.err >&5
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); } && {
18515          test -z "$ac_c_werror_flag" ||
18516          test ! -s conftest.err
18517        } && test -s conftest$ac_exeext &&
18518        $as_test_x conftest$ac_exeext; then
18519   ac_cv_lib_cposix_strerror=yes
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524         ac_cv_lib_cposix_strerror=no
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18528       conftest$ac_exeext conftest.$ac_ext
18529 LIBS=$ac_check_lib_save_LIBS
18530 fi
18531 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18532 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18533 if test $ac_cv_lib_cposix_strerror = yes; then
18534   LIBS="$LIBS -lcposix"
18535 fi
18536
18537
18538
18539 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18540 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18541 if test "${ac_cv_c_const+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h.  */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h.  */
18550
18551 int
18552 main ()
18553 {
18554 /* FIXME: Include the comments suggested by Paul. */
18555 #ifndef __cplusplus
18556   /* Ultrix mips cc rejects this.  */
18557   typedef int charset[2];
18558   const charset cs;
18559   /* SunOS 4.1.1 cc rejects this.  */
18560   char const *const *pcpcc;
18561   char **ppc;
18562   /* NEC SVR4.0.2 mips cc rejects this.  */
18563   struct point {int x, y;};
18564   static struct point const zero = {0,0};
18565   /* AIX XL C 1.02.0.0 rejects this.
18566      It does not let you subtract one const X* pointer from another in
18567      an arm of an if-expression whose if-part is not a constant
18568      expression */
18569   const char *g = "string";
18570   pcpcc = &g + (g ? g-g : 0);
18571   /* HPUX 7.0 cc rejects these. */
18572   ++pcpcc;
18573   ppc = (char**) pcpcc;
18574   pcpcc = (char const *const *) ppc;
18575   { /* SCO 3.2v4 cc rejects this.  */
18576     char *t;
18577     char const *s = 0 ? (char *) 0 : (char const *) 0;
18578
18579     *t++ = 0;
18580     if (s) return 0;
18581   }
18582   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18583     int x[] = {25, 17};
18584     const int *foo = &x[0];
18585     ++foo;
18586   }
18587   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18588     typedef const int *iptr;
18589     iptr p = 0;
18590     ++p;
18591   }
18592   { /* AIX XL C 1.02.0.0 rejects this saying
18593        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18594     struct s { int j; const int *ap[3]; };
18595     struct s *b; b->j = 5;
18596   }
18597   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18598     const int foo = 10;
18599     if (!foo) return 0;
18600   }
18601   return !cs[0] && !zero.x;
18602 #endif
18603
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612   *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615   (eval "$ac_compile") 2>conftest.er1
18616   ac_status=$?
18617   grep -v '^ *+' conftest.er1 >conftest.err
18618   rm -f conftest.er1
18619   cat conftest.err >&5
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); } && {
18622          test -z "$ac_c_werror_flag" ||
18623          test ! -s conftest.err
18624        } && test -s conftest.$ac_objext; then
18625   ac_cv_c_const=yes
18626 else
18627   echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18629
18630         ac_cv_c_const=no
18631 fi
18632
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18634 fi
18635 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18636 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18637 if test $ac_cv_c_const = no; then
18638
18639 cat >>confdefs.h <<\_ACEOF
18640 #define const
18641 _ACEOF
18642
18643 fi
18644
18645
18646   { echo "$as_me:$LINENO: checking for signed" >&5
18647 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18648 if test "${bh_cv_c_signed+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657
18658 int
18659 main ()
18660 {
18661 signed char x;
18662   ;
18663   return 0;
18664 }
18665 _ACEOF
18666 rm -f conftest.$ac_objext
18667 if { (ac_try="$ac_compile"
18668 case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_compile") 2>conftest.er1
18674   ac_status=$?
18675   grep -v '^ *+' conftest.er1 >conftest.err
18676   rm -f conftest.er1
18677   cat conftest.err >&5
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); } && {
18680          test -z "$ac_c_werror_flag" ||
18681          test ! -s conftest.err
18682        } && test -s conftest.$ac_objext; then
18683   bh_cv_c_signed=yes
18684 else
18685   echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18687
18688         bh_cv_c_signed=no
18689 fi
18690
18691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18692 fi
18693 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18694 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18695   if test $bh_cv_c_signed = no; then
18696
18697 cat >>confdefs.h <<\_ACEOF
18698 #define signed
18699 _ACEOF
18700
18701   fi
18702
18703 { echo "$as_me:$LINENO: checking for inline" >&5
18704 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18705 if test "${ac_cv_c_inline+set}" = set; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708   ac_cv_c_inline=no
18709 for ac_kw in inline __inline__ __inline; do
18710   cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716 #ifndef __cplusplus
18717 typedef int foo_t;
18718 static $ac_kw foo_t static_foo () {return 0; }
18719 $ac_kw foo_t foo () {return 0; }
18720 #endif
18721
18722 _ACEOF
18723 rm -f conftest.$ac_objext
18724 if { (ac_try="$ac_compile"
18725 case "(($ac_try" in
18726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727   *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730   (eval "$ac_compile") 2>conftest.er1
18731   ac_status=$?
18732   grep -v '^ *+' conftest.er1 >conftest.err
18733   rm -f conftest.er1
18734   cat conftest.err >&5
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); } && {
18737          test -z "$ac_c_werror_flag" ||
18738          test ! -s conftest.err
18739        } && test -s conftest.$ac_objext; then
18740   ac_cv_c_inline=$ac_kw
18741 else
18742   echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745
18746 fi
18747
18748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749   test "$ac_cv_c_inline" != no && break
18750 done
18751
18752 fi
18753 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18754 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18755
18756
18757 case $ac_cv_c_inline in
18758   inline | yes) ;;
18759   *)
18760     case $ac_cv_c_inline in
18761       no) ac_val=;;
18762       *) ac_val=$ac_cv_c_inline;;
18763     esac
18764     cat >>confdefs.h <<_ACEOF
18765 #ifndef __cplusplus
18766 #define inline $ac_val
18767 #endif
18768 _ACEOF
18769     ;;
18770 esac
18771
18772 { echo "$as_me:$LINENO: checking for off_t" >&5
18773 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18774 if test "${ac_cv_type_off_t+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783 $ac_includes_default
18784 typedef off_t ac__type_new_;
18785 int
18786 main ()
18787 {
18788 if ((ac__type_new_ *) 0)
18789   return 0;
18790 if (sizeof (ac__type_new_))
18791   return 0;
18792   ;
18793   return 0;
18794 }
18795 _ACEOF
18796 rm -f conftest.$ac_objext
18797 if { (ac_try="$ac_compile"
18798 case "(($ac_try" in
18799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800   *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803   (eval "$ac_compile") 2>conftest.er1
18804   ac_status=$?
18805   grep -v '^ *+' conftest.er1 >conftest.err
18806   rm -f conftest.er1
18807   cat conftest.err >&5
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); } && {
18810          test -z "$ac_c_werror_flag" ||
18811          test ! -s conftest.err
18812        } && test -s conftest.$ac_objext; then
18813   ac_cv_type_off_t=yes
18814 else
18815   echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818         ac_cv_type_off_t=no
18819 fi
18820
18821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18822 fi
18823 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18824 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18825 if test $ac_cv_type_off_t = yes; then
18826   :
18827 else
18828
18829 cat >>confdefs.h <<_ACEOF
18830 #define off_t long int
18831 _ACEOF
18832
18833 fi
18834
18835 { echo "$as_me:$LINENO: checking for size_t" >&5
18836 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18837 if test "${ac_cv_type_size_t+set}" = set; then
18838   echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840   cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h.  */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h.  */
18846 $ac_includes_default
18847 typedef size_t ac__type_new_;
18848 int
18849 main ()
18850 {
18851 if ((ac__type_new_ *) 0)
18852   return 0;
18853 if (sizeof (ac__type_new_))
18854   return 0;
18855   ;
18856   return 0;
18857 }
18858 _ACEOF
18859 rm -f conftest.$ac_objext
18860 if { (ac_try="$ac_compile"
18861 case "(($ac_try" in
18862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863   *) ac_try_echo=$ac_try;;
18864 esac
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866   (eval "$ac_compile") 2>conftest.er1
18867   ac_status=$?
18868   grep -v '^ *+' conftest.er1 >conftest.err
18869   rm -f conftest.er1
18870   cat conftest.err >&5
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); } && {
18873          test -z "$ac_c_werror_flag" ||
18874          test ! -s conftest.err
18875        } && test -s conftest.$ac_objext; then
18876   ac_cv_type_size_t=yes
18877 else
18878   echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881         ac_cv_type_size_t=no
18882 fi
18883
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 fi
18886 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18887 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18888 if test $ac_cv_type_size_t = yes; then
18889   :
18890 else
18891
18892 cat >>confdefs.h <<_ACEOF
18893 #define size_t unsigned int
18894 _ACEOF
18895
18896 fi
18897
18898
18899   { echo "$as_me:$LINENO: checking for long long" >&5
18900 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18901 if test "${ac_cv_type_long_long+set}" = set; then
18902   echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904   cat >conftest.$ac_ext <<_ACEOF
18905 /* confdefs.h.  */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h.  */
18910 long long ll = 1LL; int i = 63;
18911 int
18912 main ()
18913 {
18914 long long llmax = (long long) -1;
18915      return ll << i | ll >> i | llmax / ll | llmax % ll;
18916   ;
18917   return 0;
18918 }
18919 _ACEOF
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (ac_try="$ac_link"
18922 case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_link") 2>conftest.er1
18928   ac_status=$?
18929   grep -v '^ *+' conftest.er1 >conftest.err
18930   rm -f conftest.er1
18931   cat conftest.err >&5
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); } && {
18934          test -z "$ac_c_werror_flag" ||
18935          test ! -s conftest.err
18936        } && test -s conftest$ac_exeext &&
18937        $as_test_x conftest$ac_exeext; then
18938   ac_cv_type_long_long=yes
18939 else
18940   echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943         ac_cv_type_long_long=no
18944 fi
18945
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947       conftest$ac_exeext conftest.$ac_ext
18948 fi
18949 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18950 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18951   if test $ac_cv_type_long_long = yes; then
18952
18953 cat >>confdefs.h <<\_ACEOF
18954 #define HAVE_LONG_LONG 1
18955 _ACEOF
18956
18957   fi
18958
18959
18960   { echo "$as_me:$LINENO: checking for long double" >&5
18961 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18962 if test "${gt_cv_c_long_double+set}" = set; then
18963   echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965   if test "$GCC" = yes; then
18966        gt_cv_c_long_double=yes
18967      else
18968        cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974
18975          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18976          long double foo = 0.0;
18977          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18978          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18979
18980 int
18981 main ()
18982 {
18983
18984   ;
18985   return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992   *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995   (eval "$ac_compile") 2>conftest.er1
18996   ac_status=$?
18997   grep -v '^ *+' conftest.er1 >conftest.err
18998   rm -f conftest.er1
18999   cat conftest.err >&5
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } && {
19002          test -z "$ac_c_werror_flag" ||
19003          test ! -s conftest.err
19004        } && test -s conftest.$ac_objext; then
19005   gt_cv_c_long_double=yes
19006 else
19007   echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010         gt_cv_c_long_double=no
19011 fi
19012
19013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19014      fi
19015 fi
19016 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19017 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19018   if test $gt_cv_c_long_double = yes; then
19019
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE_LONG_DOUBLE 1
19022 _ACEOF
19023
19024   fi
19025
19026
19027   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19028 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19029 if test "${gt_cv_c_wchar_t+set}" = set; then
19030   echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032   cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h.  */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h.  */
19038 #include <stddef.h>
19039        wchar_t foo = (wchar_t)'\0';
19040 int
19041 main ()
19042 {
19043
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048 rm -f conftest.$ac_objext
19049 if { (ac_try="$ac_compile"
19050 case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_compile") 2>conftest.er1
19056   ac_status=$?
19057   grep -v '^ *+' conftest.er1 >conftest.err
19058   rm -f conftest.er1
19059   cat conftest.err >&5
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } && {
19062          test -z "$ac_c_werror_flag" ||
19063          test ! -s conftest.err
19064        } && test -s conftest.$ac_objext; then
19065   gt_cv_c_wchar_t=yes
19066 else
19067   echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070         gt_cv_c_wchar_t=no
19071 fi
19072
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074 fi
19075 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19076 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19077   if test $gt_cv_c_wchar_t = yes; then
19078
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_WCHAR_T 1
19081 _ACEOF
19082
19083   fi
19084
19085
19086   { echo "$as_me:$LINENO: checking for wint_t" >&5
19087 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19088 if test "${gt_cv_c_wint_t+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097 #include <wchar.h>
19098        wint_t foo = (wchar_t)'\0';
19099 int
19100 main ()
19101 {
19102
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (ac_try="$ac_compile"
19109 case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_compile") 2>conftest.er1
19115   ac_status=$?
19116   grep -v '^ *+' conftest.er1 >conftest.err
19117   rm -f conftest.er1
19118   cat conftest.err >&5
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } && {
19121          test -z "$ac_c_werror_flag" ||
19122          test ! -s conftest.err
19123        } && test -s conftest.$ac_objext; then
19124   gt_cv_c_wint_t=yes
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129         gt_cv_c_wint_t=no
19130 fi
19131
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133 fi
19134 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19135 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19136   if test $gt_cv_c_wint_t = yes; then
19137
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_WINT_T 1
19140 _ACEOF
19141
19142   fi
19143
19144
19145   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19146 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19147 if test "${gl_cv_header_inttypes_h+set}" = set; then
19148   echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150   cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h.  */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h.  */
19156 #include <sys/types.h>
19157 #include <inttypes.h>
19158 int
19159 main ()
19160 {
19161 uintmax_t i = (uintmax_t) -1;
19162   ;
19163   return 0;
19164 }
19165 _ACEOF
19166 rm -f conftest.$ac_objext
19167 if { (ac_try="$ac_compile"
19168 case "(($ac_try" in
19169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170   *) ac_try_echo=$ac_try;;
19171 esac
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173   (eval "$ac_compile") 2>conftest.er1
19174   ac_status=$?
19175   grep -v '^ *+' conftest.er1 >conftest.err
19176   rm -f conftest.er1
19177   cat conftest.err >&5
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); } && {
19180          test -z "$ac_c_werror_flag" ||
19181          test ! -s conftest.err
19182        } && test -s conftest.$ac_objext; then
19183   gl_cv_header_inttypes_h=yes
19184 else
19185   echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19187
19188         gl_cv_header_inttypes_h=no
19189 fi
19190
19191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19192 fi
19193 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19194 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19195   if test $gl_cv_header_inttypes_h = yes; then
19196
19197 cat >>confdefs.h <<_ACEOF
19198 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19199 _ACEOF
19200
19201   fi
19202
19203
19204   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19205 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19206 if test "${gl_cv_header_stdint_h+set}" = set; then
19207   echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209   cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215 #include <sys/types.h>
19216 #include <stdint.h>
19217 int
19218 main ()
19219 {
19220 uintmax_t i = (uintmax_t) -1;
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_compile") 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } && {
19239          test -z "$ac_c_werror_flag" ||
19240          test ! -s conftest.err
19241        } && test -s conftest.$ac_objext; then
19242   gl_cv_header_stdint_h=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247         gl_cv_header_stdint_h=no
19248 fi
19249
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251 fi
19252 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19253 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19254   if test $gl_cv_header_stdint_h = yes; then
19255
19256 cat >>confdefs.h <<_ACEOF
19257 #define HAVE_STDINT_H_WITH_UINTMAX 1
19258 _ACEOF
19259
19260   fi
19261
19262
19263
19264
19265   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19266 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19267 if test "${gt_cv_c_intmax_t+set}" = set; then
19268   echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270   cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h.  */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h.  */
19276
19277 #include <stddef.h>
19278 #include <stdlib.h>
19279 #if HAVE_STDINT_H_WITH_UINTMAX
19280 #include <stdint.h>
19281 #endif
19282 #if HAVE_INTTYPES_H_WITH_UINTMAX
19283 #include <inttypes.h>
19284 #endif
19285
19286 int
19287 main ()
19288 {
19289 intmax_t x = -1;
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298   *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301   (eval "$ac_compile") 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } && {
19308          test -z "$ac_c_werror_flag" ||
19309          test ! -s conftest.err
19310        } && test -s conftest.$ac_objext; then
19311   gt_cv_c_intmax_t=yes
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316         gt_cv_c_intmax_t=no
19317 fi
19318
19319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 fi
19321 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19322 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19323   if test $gt_cv_c_intmax_t = yes; then
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define HAVE_INTMAX_T 1
19327 _ACEOF
19328
19329   fi
19330
19331
19332
19333   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19334 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19335 if test "${gt_cv_func_printf_posix+set}" = set; then
19336   echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338
19339       if test "$cross_compiling" = yes; then
19340
19341         cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347
19348 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19349   notposix
19350 #endif
19351
19352 _ACEOF
19353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19354   $EGREP "notposix" >/dev/null 2>&1; then
19355   gt_cv_func_printf_posix="guessing no"
19356 else
19357   gt_cv_func_printf_posix="guessing yes"
19358 fi
19359 rm -f conftest*
19360
19361
19362 else
19363   cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 #include <stdio.h>
19371 #include <string.h>
19372 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19373    dollar expansion (possibly an autoconf bug).  */
19374 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19375 static char buf[100];
19376 int main ()
19377 {
19378   sprintf (buf, format, 33, 55);
19379   return (strcmp (buf, "55 33") != 0);
19380 }
19381 _ACEOF
19382 rm -f conftest$ac_exeext
19383 if { (ac_try="$ac_link"
19384 case "(($ac_try" in
19385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386   *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389   (eval "$ac_link") 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19393   { (case "(($ac_try" in
19394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395   *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398   (eval "$ac_try") 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402   gt_cv_func_printf_posix=yes
19403 else
19404   echo "$as_me: program exited with status $ac_status" >&5
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19407
19408 ( exit $ac_status )
19409 gt_cv_func_printf_posix=no
19410 fi
19411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19412 fi
19413
19414
19415
19416 fi
19417 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19418 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19419   case $gt_cv_func_printf_posix in
19420     *yes)
19421
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_POSIX_PRINTF 1
19424 _ACEOF
19425
19426       ;;
19427   esac
19428
19429 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19430 # for constant arguments.  Useless!
19431 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19432 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19433 if test "${ac_cv_working_alloca_h+set}" = set; then
19434   echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436   cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 #include <alloca.h>
19443 int
19444 main ()
19445 {
19446 char *p = (char *) alloca (2 * sizeof (int));
19447                           if (p) return 0;
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_link") 2>conftest.er1
19460   ac_status=$?
19461   grep -v '^ *+' conftest.er1 >conftest.err
19462   rm -f conftest.er1
19463   cat conftest.err >&5
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } && {
19466          test -z "$ac_c_werror_flag" ||
19467          test ! -s conftest.err
19468        } && test -s conftest$ac_exeext &&
19469        $as_test_x conftest$ac_exeext; then
19470   ac_cv_working_alloca_h=yes
19471 else
19472   echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19474
19475         ac_cv_working_alloca_h=no
19476 fi
19477
19478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19479       conftest$ac_exeext conftest.$ac_ext
19480 fi
19481 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19482 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19483 if test $ac_cv_working_alloca_h = yes; then
19484
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE_ALLOCA_H 1
19487 _ACEOF
19488
19489 fi
19490
19491 { echo "$as_me:$LINENO: checking for alloca" >&5
19492 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19493 if test "${ac_cv_func_alloca_works+set}" = set; then
19494   echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496   cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h.  */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h.  */
19502 #ifdef __GNUC__
19503 # define alloca __builtin_alloca
19504 #else
19505 # ifdef _MSC_VER
19506 #  include <malloc.h>
19507 #  define alloca _alloca
19508 # else
19509 #  ifdef HAVE_ALLOCA_H
19510 #   include <alloca.h>
19511 #  else
19512 #   ifdef _AIX
19513  #pragma alloca
19514 #   else
19515 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19516 char *alloca ();
19517 #    endif
19518 #   endif
19519 #  endif
19520 # endif
19521 #endif
19522
19523 int
19524 main ()
19525 {
19526 char *p = (char *) alloca (1);
19527                                     if (p) return 0;
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536   *) ac_try_echo=$ac_try;;
19537 esac
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539   (eval "$ac_link") 2>conftest.er1
19540   ac_status=$?
19541   grep -v '^ *+' conftest.er1 >conftest.err
19542   rm -f conftest.er1
19543   cat conftest.err >&5
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); } && {
19546          test -z "$ac_c_werror_flag" ||
19547          test ! -s conftest.err
19548        } && test -s conftest$ac_exeext &&
19549        $as_test_x conftest$ac_exeext; then
19550   ac_cv_func_alloca_works=yes
19551 else
19552   echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555         ac_cv_func_alloca_works=no
19556 fi
19557
19558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19559       conftest$ac_exeext conftest.$ac_ext
19560 fi
19561 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19562 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19563
19564 if test $ac_cv_func_alloca_works = yes; then
19565
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_ALLOCA 1
19568 _ACEOF
19569
19570 else
19571   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19572 # that cause trouble.  Some versions do not even contain alloca or
19573 # contain a buggy version.  If you still want to use their alloca,
19574 # use ar to extract alloca.o from them instead of compiling alloca.c.
19575
19576 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19577
19578 cat >>confdefs.h <<\_ACEOF
19579 #define C_ALLOCA 1
19580 _ACEOF
19581
19582
19583 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19584 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19585 if test "${ac_cv_os_cray+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 #if defined CRAY && ! defined CRAY2
19595 webecray
19596 #else
19597 wenotbecray
19598 #endif
19599
19600 _ACEOF
19601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19602   $EGREP "webecray" >/dev/null 2>&1; then
19603   ac_cv_os_cray=yes
19604 else
19605   ac_cv_os_cray=no
19606 fi
19607 rm -f conftest*
19608
19609 fi
19610 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19611 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19612 if test $ac_cv_os_cray = yes; then
19613   for ac_func in _getb67 GETB67 getb67; do
19614     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19618   echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620   cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h.  */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h.  */
19626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19628 #define $ac_func innocuous_$ac_func
19629
19630 /* System header to define __stub macros and hopefully few prototypes,
19631     which can conflict with char $ac_func (); below.
19632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19633     <limits.h> exists even on freestanding compilers.  */
19634
19635 #ifdef __STDC__
19636 # include <limits.h>
19637 #else
19638 # include <assert.h>
19639 #endif
19640
19641 #undef $ac_func
19642
19643 /* Override any GCC internal prototype to avoid an error.
19644    Use char because int might match the return type of a GCC
19645    builtin and then its argument prototype would still apply.  */
19646 #ifdef __cplusplus
19647 extern "C"
19648 #endif
19649 char $ac_func ();
19650 /* The GNU C library defines this for functions which it implements
19651     to always fail with ENOSYS.  Some functions are actually named
19652     something starting with __ and the normal name is an alias.  */
19653 #if defined __stub_$ac_func || defined __stub___$ac_func
19654 choke me
19655 #endif
19656
19657 int
19658 main ()
19659 {
19660 return $ac_func ();
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (ac_try="$ac_link"
19667 case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672   (eval "$ac_link") 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } && {
19679          test -z "$ac_c_werror_flag" ||
19680          test ! -s conftest.err
19681        } && test -s conftest$ac_exeext &&
19682        $as_test_x conftest$ac_exeext; then
19683   eval "$as_ac_var=yes"
19684 else
19685   echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688         eval "$as_ac_var=no"
19689 fi
19690
19691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19692       conftest$ac_exeext conftest.$ac_ext
19693 fi
19694 ac_res=`eval echo '${'$as_ac_var'}'`
19695                { echo "$as_me:$LINENO: result: $ac_res" >&5
19696 echo "${ECHO_T}$ac_res" >&6; }
19697 if test `eval echo '${'$as_ac_var'}'` = yes; then
19698
19699 cat >>confdefs.h <<_ACEOF
19700 #define CRAY_STACKSEG_END $ac_func
19701 _ACEOF
19702
19703     break
19704 fi
19705
19706   done
19707 fi
19708
19709 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19710 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19711 if test "${ac_cv_c_stack_direction+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   if test "$cross_compiling" = yes; then
19715   ac_cv_c_stack_direction=0
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 $ac_includes_default
19724 int
19725 find_stack_direction ()
19726 {
19727   static char *addr = 0;
19728   auto char dummy;
19729   if (addr == 0)
19730     {
19731       addr = &dummy;
19732       return find_stack_direction ();
19733     }
19734   else
19735     return (&dummy > addr) ? 1 : -1;
19736 }
19737
19738 int
19739 main ()
19740 {
19741   return find_stack_direction () < 0;
19742 }
19743 _ACEOF
19744 rm -f conftest$ac_exeext
19745 if { (ac_try="$ac_link"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_link") 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19755   { (case "(($ac_try" in
19756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757   *) ac_try_echo=$ac_try;;
19758 esac
19759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760   (eval "$ac_try") 2>&5
19761   ac_status=$?
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); }; }; then
19764   ac_cv_c_stack_direction=1
19765 else
19766   echo "$as_me: program exited with status $ac_status" >&5
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ( exit $ac_status )
19771 ac_cv_c_stack_direction=-1
19772 fi
19773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19774 fi
19775
19776
19777 fi
19778 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19779 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19780
19781 cat >>confdefs.h <<_ACEOF
19782 #define STACK_DIRECTION $ac_cv_c_stack_direction
19783 _ACEOF
19784
19785
19786 fi
19787
19788
19789
19790 for ac_header in stdlib.h unistd.h
19791 do
19792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19797   echo $ECHO_N "(cached) $ECHO_C" >&6
19798 fi
19799 ac_res=`eval echo '${'$as_ac_Header'}'`
19800                { echo "$as_me:$LINENO: result: $ac_res" >&5
19801 echo "${ECHO_T}$ac_res" >&6; }
19802 else
19803   # Is the header compilable?
19804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19806 cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h.  */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h.  */
19812 $ac_includes_default
19813 #include <$ac_header>
19814 _ACEOF
19815 rm -f conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819   *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822   (eval "$ac_compile") 2>conftest.er1
19823   ac_status=$?
19824   grep -v '^ *+' conftest.er1 >conftest.err
19825   rm -f conftest.er1
19826   cat conftest.err >&5
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } && {
19829          test -z "$ac_c_werror_flag" ||
19830          test ! -s conftest.err
19831        } && test -s conftest.$ac_objext; then
19832   ac_header_compiler=yes
19833 else
19834   echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837         ac_header_compiler=no
19838 fi
19839
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19842 echo "${ECHO_T}$ac_header_compiler" >&6; }
19843
19844 # Is the header present?
19845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853 #include <$ac_header>
19854 _ACEOF
19855 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } >/dev/null && {
19868          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19869          test ! -s conftest.err
19870        }; then
19871   ac_header_preproc=yes
19872 else
19873   echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19875
19876   ac_header_preproc=no
19877 fi
19878
19879 rm -f conftest.err conftest.$ac_ext
19880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19881 echo "${ECHO_T}$ac_header_preproc" >&6; }
19882
19883 # So?  What about this header?
19884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19885   yes:no: )
19886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19890     ac_header_preproc=yes
19891     ;;
19892   no:yes:* )
19893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19905
19906     ;;
19907 esac
19908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913   eval "$as_ac_Header=\$ac_header_preproc"
19914 fi
19915 ac_res=`eval echo '${'$as_ac_Header'}'`
19916                { echo "$as_me:$LINENO: result: $ac_res" >&5
19917 echo "${ECHO_T}$ac_res" >&6; }
19918
19919 fi
19920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19921   cat >>confdefs.h <<_ACEOF
19922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19923 _ACEOF
19924
19925 fi
19926
19927 done
19928
19929
19930 for ac_func in getpagesize
19931 do
19932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19936   echo $ECHO_N "(cached) $ECHO_C" >&6
19937 else
19938   cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19946 #define $ac_func innocuous_$ac_func
19947
19948 /* System header to define __stub macros and hopefully few prototypes,
19949     which can conflict with char $ac_func (); below.
19950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19951     <limits.h> exists even on freestanding compilers.  */
19952
19953 #ifdef __STDC__
19954 # include <limits.h>
19955 #else
19956 # include <assert.h>
19957 #endif
19958
19959 #undef $ac_func
19960
19961 /* Override any GCC internal prototype to avoid an error.
19962    Use char because int might match the return type of a GCC
19963    builtin and then its argument prototype would still apply.  */
19964 #ifdef __cplusplus
19965 extern "C"
19966 #endif
19967 char $ac_func ();
19968 /* The GNU C library defines this for functions which it implements
19969     to always fail with ENOSYS.  Some functions are actually named
19970     something starting with __ and the normal name is an alias.  */
19971 #if defined __stub_$ac_func || defined __stub___$ac_func
19972 choke me
19973 #endif
19974
19975 int
19976 main ()
19977 {
19978 return $ac_func ();
19979   ;
19980   return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest.$ac_objext conftest$ac_exeext
19984 if { (ac_try="$ac_link"
19985 case "(($ac_try" in
19986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987   *) ac_try_echo=$ac_try;;
19988 esac
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990   (eval "$ac_link") 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } && {
19997          test -z "$ac_c_werror_flag" ||
19998          test ! -s conftest.err
19999        } && test -s conftest$ac_exeext &&
20000        $as_test_x conftest$ac_exeext; then
20001   eval "$as_ac_var=yes"
20002 else
20003   echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         eval "$as_ac_var=no"
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20010       conftest$ac_exeext conftest.$ac_ext
20011 fi
20012 ac_res=`eval echo '${'$as_ac_var'}'`
20013                { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20015 if test `eval echo '${'$as_ac_var'}'` = yes; then
20016   cat >>confdefs.h <<_ACEOF
20017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20018 _ACEOF
20019
20020 fi
20021 done
20022
20023 { echo "$as_me:$LINENO: checking for working mmap" >&5
20024 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20025 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   if test "$cross_compiling" = yes; then
20029   ac_cv_func_mmap_fixed_mapped=no
20030 else
20031   cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h.  */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h.  */
20037 $ac_includes_default
20038 /* malloc might have been renamed as rpl_malloc. */
20039 #undef malloc
20040
20041 /* Thanks to Mike Haertel and Jim Avera for this test.
20042    Here is a matrix of mmap possibilities:
20043         mmap private not fixed
20044         mmap private fixed at somewhere currently unmapped
20045         mmap private fixed at somewhere already mapped
20046         mmap shared not fixed
20047         mmap shared fixed at somewhere currently unmapped
20048         mmap shared fixed at somewhere already mapped
20049    For private mappings, we should verify that changes cannot be read()
20050    back from the file, nor mmap's back from the file at a different
20051    address.  (There have been systems where private was not correctly
20052    implemented like the infamous i386 svr4.0, and systems where the
20053    VM page cache was not coherent with the file system buffer cache
20054    like early versions of FreeBSD and possibly contemporary NetBSD.)
20055    For shared mappings, we should conversely verify that changes get
20056    propagated back to all the places they're supposed to be.
20057
20058    Grep wants private fixed already mapped.
20059    The main things grep needs to know about mmap are:
20060    * does it exist and is it safe to write into the mmap'd area
20061    * how to use it (BSD variants)  */
20062
20063 #include <fcntl.h>
20064 #include <sys/mman.h>
20065
20066 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20067 char *malloc ();
20068 #endif
20069
20070 /* This mess was copied from the GNU getpagesize.h.  */
20071 #ifndef HAVE_GETPAGESIZE
20072 /* Assume that all systems that can run configure have sys/param.h.  */
20073 # ifndef HAVE_SYS_PARAM_H
20074 #  define HAVE_SYS_PARAM_H 1
20075 # endif
20076
20077 # ifdef _SC_PAGESIZE
20078 #  define getpagesize() sysconf(_SC_PAGESIZE)
20079 # else /* no _SC_PAGESIZE */
20080 #  ifdef HAVE_SYS_PARAM_H
20081 #   include <sys/param.h>
20082 #   ifdef EXEC_PAGESIZE
20083 #    define getpagesize() EXEC_PAGESIZE
20084 #   else /* no EXEC_PAGESIZE */
20085 #    ifdef NBPG
20086 #     define getpagesize() NBPG * CLSIZE
20087 #     ifndef CLSIZE
20088 #      define CLSIZE 1
20089 #     endif /* no CLSIZE */
20090 #    else /* no NBPG */
20091 #     ifdef NBPC
20092 #      define getpagesize() NBPC
20093 #     else /* no NBPC */
20094 #      ifdef PAGESIZE
20095 #       define getpagesize() PAGESIZE
20096 #      endif /* PAGESIZE */
20097 #     endif /* no NBPC */
20098 #    endif /* no NBPG */
20099 #   endif /* no EXEC_PAGESIZE */
20100 #  else /* no HAVE_SYS_PARAM_H */
20101 #   define getpagesize() 8192   /* punt totally */
20102 #  endif /* no HAVE_SYS_PARAM_H */
20103 # endif /* no _SC_PAGESIZE */
20104
20105 #endif /* no HAVE_GETPAGESIZE */
20106
20107 int
20108 main ()
20109 {
20110   char *data, *data2, *data3;
20111   int i, pagesize;
20112   int fd;
20113
20114   pagesize = getpagesize ();
20115
20116   /* First, make a file with some known garbage in it. */
20117   data = (char *) malloc (pagesize);
20118   if (!data)
20119     return 1;
20120   for (i = 0; i < pagesize; ++i)
20121     *(data + i) = rand ();
20122   umask (0);
20123   fd = creat ("conftest.mmap", 0600);
20124   if (fd < 0)
20125     return 1;
20126   if (write (fd, data, pagesize) != pagesize)
20127     return 1;
20128   close (fd);
20129
20130   /* Next, try to mmap the file at a fixed address which already has
20131      something else allocated at it.  If we can, also make sure that
20132      we see the same garbage.  */
20133   fd = open ("conftest.mmap", O_RDWR);
20134   if (fd < 0)
20135     return 1;
20136   data2 = (char *) malloc (2 * pagesize);
20137   if (!data2)
20138     return 1;
20139   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20140   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20141                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20142     return 1;
20143   for (i = 0; i < pagesize; ++i)
20144     if (*(data + i) != *(data2 + i))
20145       return 1;
20146
20147   /* Finally, make sure that changes to the mapped area do not
20148      percolate back to the file as seen by read().  (This is a bug on
20149      some variants of i386 svr4.0.)  */
20150   for (i = 0; i < pagesize; ++i)
20151     *(data2 + i) = *(data2 + i) + 1;
20152   data3 = (char *) malloc (pagesize);
20153   if (!data3)
20154     return 1;
20155   if (read (fd, data3, pagesize) != pagesize)
20156     return 1;
20157   for (i = 0; i < pagesize; ++i)
20158     if (*(data + i) != *(data3 + i))
20159       return 1;
20160   close (fd);
20161   return 0;
20162 }
20163 _ACEOF
20164 rm -f conftest$ac_exeext
20165 if { (ac_try="$ac_link"
20166 case "(($ac_try" in
20167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168   *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171   (eval "$ac_link") 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20175   { (case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_try") 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   ac_cv_func_mmap_fixed_mapped=yes
20185 else
20186   echo "$as_me: program exited with status $ac_status" >&5
20187 echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20189
20190 ( exit $ac_status )
20191 ac_cv_func_mmap_fixed_mapped=no
20192 fi
20193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20194 fi
20195
20196
20197 fi
20198 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20199 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20201
20202 cat >>confdefs.h <<\_ACEOF
20203 #define HAVE_MMAP 1
20204 _ACEOF
20205
20206 fi
20207 rm -f conftest.mmap
20208
20209
20210     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20211 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20212 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221
20222 #include <features.h>
20223 #ifdef __GNU_LIBRARY__
20224  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20225   Lucky GNU user
20226  #endif
20227 #endif
20228
20229 _ACEOF
20230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20231   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20232   ac_cv_gnu_library_2_1=yes
20233 else
20234   ac_cv_gnu_library_2_1=no
20235 fi
20236 rm -f conftest*
20237
20238
20239
20240 fi
20241 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20242 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20243
20244     GLIBC21="$ac_cv_gnu_library_2_1"
20245
20246
20247
20248
20249   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20250 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20251 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254
20255       if test "$cross_compiling" = yes; then
20256
20257           # Guess based on the CPU.
20258           case "$host_cpu" in
20259             alpha* | i3456786 | m68k | s390*)
20260               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20261             *)
20262               gt_cv_int_divbyzero_sigfpe="guessing no";;
20263           esac
20264
20265 else
20266   cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h.  */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h.  */
20272
20273 #include <stdlib.h>
20274 #include <signal.h>
20275
20276 static void
20277 #ifdef __cplusplus
20278 sigfpe_handler (int sig)
20279 #else
20280 sigfpe_handler (sig) int sig;
20281 #endif
20282 {
20283   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20284   exit (sig != SIGFPE);
20285 }
20286
20287 int x = 1;
20288 int y = 0;
20289 int z;
20290 int nan;
20291
20292 int main ()
20293 {
20294   signal (SIGFPE, sigfpe_handler);
20295 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20296 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20297   signal (SIGTRAP, sigfpe_handler);
20298 #endif
20299 /* Linux/SPARC yields signal SIGILL.  */
20300 #if defined (__sparc__) && defined (__linux__)
20301   signal (SIGILL, sigfpe_handler);
20302 #endif
20303
20304   z = x / y;
20305   nan = y / y;
20306   exit (1);
20307 }
20308
20309 _ACEOF
20310 rm -f conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314   *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317   (eval "$ac_link") 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   gt_cv_int_divbyzero_sigfpe=yes
20331 else
20332   echo "$as_me: program exited with status $ac_status" >&5
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20335
20336 ( exit $ac_status )
20337 gt_cv_int_divbyzero_sigfpe=no
20338 fi
20339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20340 fi
20341
20342
20343
20344 fi
20345 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20346 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20347   case "$gt_cv_int_divbyzero_sigfpe" in
20348     *yes) value=1;;
20349     *) value=0;;
20350   esac
20351
20352 cat >>confdefs.h <<_ACEOF
20353 #define INTDIV0_RAISES_SIGFPE $value
20354 _ACEOF
20355
20356
20357
20358   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20359 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20360 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20361   echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363   cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369 unsigned long long ull = 1ULL; int i = 63;
20370 int
20371 main ()
20372 {
20373 unsigned long long ullmax = (unsigned long long) -1;
20374      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20375   ;
20376   return 0;
20377 }
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (ac_try="$ac_link"
20381 case "(($ac_try" in
20382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383   *) ac_try_echo=$ac_try;;
20384 esac
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386   (eval "$ac_link") 2>conftest.er1
20387   ac_status=$?
20388   grep -v '^ *+' conftest.er1 >conftest.err
20389   rm -f conftest.er1
20390   cat conftest.err >&5
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); } && {
20393          test -z "$ac_c_werror_flag" ||
20394          test ! -s conftest.err
20395        } && test -s conftest$ac_exeext &&
20396        $as_test_x conftest$ac_exeext; then
20397   ac_cv_type_unsigned_long_long=yes
20398 else
20399   echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20401
20402         ac_cv_type_unsigned_long_long=no
20403 fi
20404
20405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20406       conftest$ac_exeext conftest.$ac_ext
20407 fi
20408 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20409 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20410   if test $ac_cv_type_unsigned_long_long = yes; then
20411
20412 cat >>confdefs.h <<\_ACEOF
20413 #define HAVE_UNSIGNED_LONG_LONG 1
20414 _ACEOF
20415
20416   fi
20417
20418
20419
20420
20421   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20422
20423     test $ac_cv_type_unsigned_long_long = yes \
20424       && ac_type='unsigned long long' \
20425       || ac_type='unsigned long'
20426
20427 cat >>confdefs.h <<_ACEOF
20428 #define uintmax_t $ac_type
20429 _ACEOF
20430
20431   else
20432
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE_UINTMAX_T 1
20435 _ACEOF
20436
20437   fi
20438
20439
20440   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20441 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20442 if test "${gt_cv_header_inttypes_h+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445
20446     cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 #include <sys/types.h>
20453 #include <inttypes.h>
20454 int
20455 main ()
20456 {
20457
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext
20463 if { (ac_try="$ac_compile"
20464 case "(($ac_try" in
20465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466   *) ac_try_echo=$ac_try;;
20467 esac
20468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20469   (eval "$ac_compile") 2>conftest.er1
20470   ac_status=$?
20471   grep -v '^ *+' conftest.er1 >conftest.err
20472   rm -f conftest.er1
20473   cat conftest.err >&5
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } && {
20476          test -z "$ac_c_werror_flag" ||
20477          test ! -s conftest.err
20478        } && test -s conftest.$ac_objext; then
20479   gt_cv_header_inttypes_h=yes
20480 else
20481   echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484         gt_cv_header_inttypes_h=no
20485 fi
20486
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20488
20489 fi
20490 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20491 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20492   if test $gt_cv_header_inttypes_h = yes; then
20493
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_INTTYPES_H 1
20496 _ACEOF
20497
20498   fi
20499
20500
20501
20502   if test $gt_cv_header_inttypes_h = yes; then
20503     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20504 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20505 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508
20509         cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515 #include <inttypes.h>
20516 #ifdef PRId32
20517 char *p = PRId32;
20518 #endif
20519
20520 int
20521 main ()
20522 {
20523
20524   ;
20525   return 0;
20526 }
20527 _ACEOF
20528 rm -f conftest.$ac_objext
20529 if { (ac_try="$ac_compile"
20530 case "(($ac_try" in
20531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532   *) ac_try_echo=$ac_try;;
20533 esac
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535   (eval "$ac_compile") 2>conftest.er1
20536   ac_status=$?
20537   grep -v '^ *+' conftest.er1 >conftest.err
20538   rm -f conftest.er1
20539   cat conftest.err >&5
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); } && {
20542          test -z "$ac_c_werror_flag" ||
20543          test ! -s conftest.err
20544        } && test -s conftest.$ac_objext; then
20545   gt_cv_inttypes_pri_broken=no
20546 else
20547   echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550         gt_cv_inttypes_pri_broken=yes
20551 fi
20552
20553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554
20555 fi
20556 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20557 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20558   fi
20559   if test "$gt_cv_inttypes_pri_broken" = yes; then
20560
20561 cat >>confdefs.h <<_ACEOF
20562 #define PRI_MACROS_BROKEN 1
20563 _ACEOF
20564
20565   fi
20566
20567
20568
20569 for ac_header in stdint.h
20570 do
20571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 fi
20578 ac_res=`eval echo '${'$as_ac_Header'}'`
20579                { echo "$as_me:$LINENO: result: $ac_res" >&5
20580 echo "${ECHO_T}$ac_res" >&6; }
20581 else
20582   # Is the header compilable?
20583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20585 cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 $ac_includes_default
20592 #include <$ac_header>
20593 _ACEOF
20594 rm -f conftest.$ac_objext
20595 if { (ac_try="$ac_compile"
20596 case "(($ac_try" in
20597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598   *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601   (eval "$ac_compile") 2>conftest.er1
20602   ac_status=$?
20603   grep -v '^ *+' conftest.er1 >conftest.err
20604   rm -f conftest.er1
20605   cat conftest.err >&5
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); } && {
20608          test -z "$ac_c_werror_flag" ||
20609          test ! -s conftest.err
20610        } && test -s conftest.$ac_objext; then
20611   ac_header_compiler=yes
20612 else
20613   echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20615
20616         ac_header_compiler=no
20617 fi
20618
20619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20621 echo "${ECHO_T}$ac_header_compiler" >&6; }
20622
20623 # Is the header present?
20624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20626 cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h.  */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h.  */
20632 #include <$ac_header>
20633 _ACEOF
20634 if { (ac_try="$ac_cpp conftest.$ac_ext"
20635 case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20641   ac_status=$?
20642   grep -v '^ *+' conftest.er1 >conftest.err
20643   rm -f conftest.er1
20644   cat conftest.err >&5
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } >/dev/null && {
20647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20648          test ! -s conftest.err
20649        }; then
20650   ac_header_preproc=yes
20651 else
20652   echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655   ac_header_preproc=no
20656 fi
20657
20658 rm -f conftest.err conftest.$ac_ext
20659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20660 echo "${ECHO_T}$ac_header_preproc" >&6; }
20661
20662 # So?  What about this header?
20663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20664   yes:no: )
20665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20669     ac_header_preproc=yes
20670     ;;
20671   no:yes:* )
20672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20684
20685     ;;
20686 esac
20687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690   echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692   eval "$as_ac_Header=\$ac_header_preproc"
20693 fi
20694 ac_res=`eval echo '${'$as_ac_Header'}'`
20695                { echo "$as_me:$LINENO: result: $ac_res" >&5
20696 echo "${ECHO_T}$ac_res" >&6; }
20697
20698 fi
20699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20700   cat >>confdefs.h <<_ACEOF
20701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20702 _ACEOF
20703
20704 fi
20705
20706 done
20707
20708     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20709 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20710   result=
20711   cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h.  */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h.  */
20717
20718 #include <limits.h>
20719 #if HAVE_STDINT_H
20720 #include <stdint.h>
20721 #endif
20722 #ifdef SIZE_MAX
20723 Found it
20724 #endif
20725
20726 _ACEOF
20727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20728   $EGREP "Found it" >/dev/null 2>&1; then
20729   result=yes
20730 fi
20731 rm -f conftest*
20732
20733   if test -z "$result"; then
20734                     if test "$cross_compiling" = yes; then
20735   # Depending upon the size, compute the lo and hi bounds.
20736 cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742 #include <stddef.h>
20743 int
20744 main ()
20745 {
20746 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20747 test_array [0] = 0
20748
20749   ;
20750   return 0;
20751 }
20752 _ACEOF
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757   *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760   (eval "$ac_compile") 2>conftest.er1
20761   ac_status=$?
20762   grep -v '^ *+' conftest.er1 >conftest.err
20763   rm -f conftest.er1
20764   cat conftest.err >&5
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); } && {
20767          test -z "$ac_c_werror_flag" ||
20768          test ! -s conftest.err
20769        } && test -s conftest.$ac_objext; then
20770   ac_lo=0 ac_mid=0
20771   while :; do
20772     cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778 #include <stddef.h>
20779 int
20780 main ()
20781 {
20782 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20783 test_array [0] = 0
20784
20785   ;
20786   return 0;
20787 }
20788 _ACEOF
20789 rm -f conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793   *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796   (eval "$ac_compile") 2>conftest.er1
20797   ac_status=$?
20798   grep -v '^ *+' conftest.er1 >conftest.err
20799   rm -f conftest.er1
20800   cat conftest.err >&5
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); } && {
20803          test -z "$ac_c_werror_flag" ||
20804          test ! -s conftest.err
20805        } && test -s conftest.$ac_objext; then
20806   ac_hi=$ac_mid; break
20807 else
20808   echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20810
20811         ac_lo=`expr $ac_mid + 1`
20812                         if test $ac_lo -le $ac_mid; then
20813                           ac_lo= ac_hi=
20814                           break
20815                         fi
20816                         ac_mid=`expr 2 '*' $ac_mid + 1`
20817 fi
20818
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20820   done
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825         cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831 #include <stddef.h>
20832 int
20833 main ()
20834 {
20835 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20836 test_array [0] = 0
20837
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_compile") 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } && {
20856          test -z "$ac_c_werror_flag" ||
20857          test ! -s conftest.err
20858        } && test -s conftest.$ac_objext; then
20859   ac_hi=-1 ac_mid=-1
20860   while :; do
20861     cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 #include <stddef.h>
20868 int
20869 main ()
20870 {
20871 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20872 test_array [0] = 0
20873
20874   ;
20875   return 0;
20876 }
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882   *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885   (eval "$ac_compile") 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } && {
20892          test -z "$ac_c_werror_flag" ||
20893          test ! -s conftest.err
20894        } && test -s conftest.$ac_objext; then
20895   ac_lo=$ac_mid; break
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900         ac_hi=`expr '(' $ac_mid ')' - 1`
20901                         if test $ac_mid -le $ac_hi; then
20902                           ac_lo= ac_hi=
20903                           break
20904                         fi
20905                         ac_mid=`expr 2 '*' $ac_mid`
20906 fi
20907
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909   done
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         ac_lo= ac_hi=
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 fi
20919
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 # Binary search between lo and hi bounds.
20922 while test "x$ac_lo" != "x$ac_hi"; do
20923   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20924   cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930 #include <stddef.h>
20931 int
20932 main ()
20933 {
20934 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20935 test_array [0] = 0
20936
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext
20942 if { (ac_try="$ac_compile"
20943 case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948   (eval "$ac_compile") 2>conftest.er1
20949   ac_status=$?
20950   grep -v '^ *+' conftest.er1 >conftest.err
20951   rm -f conftest.er1
20952   cat conftest.err >&5
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); } && {
20955          test -z "$ac_c_werror_flag" ||
20956          test ! -s conftest.err
20957        } && test -s conftest.$ac_objext; then
20958   ac_hi=$ac_mid
20959 else
20960   echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963         ac_lo=`expr '(' $ac_mid ')' + 1`
20964 fi
20965
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 done
20968 case $ac_lo in
20969 ?*) res_hi=$ac_lo;;
20970 '') result=? ;;
20971 esac
20972 else
20973   cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h.  */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h.  */
20979 #include <stddef.h>
20980 static long int longval () { return ~(size_t)0 / 10; }
20981 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
20982 #include <stdio.h>
20983 #include <stdlib.h>
20984 int
20985 main ()
20986 {
20987
20988   FILE *f = fopen ("conftest.val", "w");
20989   if (! f)
20990     return 1;
20991   if ((~(size_t)0 / 10) < 0)
20992     {
20993       long int i = longval ();
20994       if (i != (~(size_t)0 / 10))
20995         return 1;
20996       fprintf (f, "%ld\n", i);
20997     }
20998   else
20999     {
21000       unsigned long int i = ulongval ();
21001       if (i != (~(size_t)0 / 10))
21002         return 1;
21003       fprintf (f, "%lu\n", i);
21004     }
21005   return ferror (f) || fclose (f) != 0;
21006
21007   ;
21008   return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest$ac_exeext
21012 if { (ac_try="$ac_link"
21013 case "(($ac_try" in
21014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015   *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018   (eval "$ac_link") 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022   { (case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027   (eval "$ac_try") 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; }; then
21031   res_hi=`cat conftest.val`
21032 else
21033   echo "$as_me: program exited with status $ac_status" >&5
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037 ( exit $ac_status )
21038 result=?
21039 fi
21040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21041 fi
21042 rm -f conftest.val
21043
21044     if test "$cross_compiling" = yes; then
21045   # Depending upon the size, compute the lo and hi bounds.
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 #include <stddef.h>
21053 int
21054 main ()
21055 {
21056 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21057 test_array [0] = 0
21058
21059   ;
21060   return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067   *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070   (eval "$ac_compile") 2>conftest.er1
21071   ac_status=$?
21072   grep -v '^ *+' conftest.er1 >conftest.err
21073   rm -f conftest.er1
21074   cat conftest.err >&5
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); } && {
21077          test -z "$ac_c_werror_flag" ||
21078          test ! -s conftest.err
21079        } && test -s conftest.$ac_objext; then
21080   ac_lo=0 ac_mid=0
21081   while :; do
21082     cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088 #include <stddef.h>
21089 int
21090 main ()
21091 {
21092 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21093 test_array [0] = 0
21094
21095   ;
21096   return 0;
21097 }
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103   *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106   (eval "$ac_compile") 2>conftest.er1
21107   ac_status=$?
21108   grep -v '^ *+' conftest.er1 >conftest.err
21109   rm -f conftest.er1
21110   cat conftest.err >&5
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } && {
21113          test -z "$ac_c_werror_flag" ||
21114          test ! -s conftest.err
21115        } && test -s conftest.$ac_objext; then
21116   ac_hi=$ac_mid; break
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121         ac_lo=`expr $ac_mid + 1`
21122                         if test $ac_lo -le $ac_mid; then
21123                           ac_lo= ac_hi=
21124                           break
21125                         fi
21126                         ac_mid=`expr 2 '*' $ac_mid + 1`
21127 fi
21128
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130   done
21131 else
21132   echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21134
21135         cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 #include <stddef.h>
21142 int
21143 main ()
21144 {
21145 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21146 test_array [0] = 0
21147
21148   ;
21149   return 0;
21150 }
21151 _ACEOF
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156   *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159   (eval "$ac_compile") 2>conftest.er1
21160   ac_status=$?
21161   grep -v '^ *+' conftest.er1 >conftest.err
21162   rm -f conftest.er1
21163   cat conftest.err >&5
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } && {
21166          test -z "$ac_c_werror_flag" ||
21167          test ! -s conftest.err
21168        } && test -s conftest.$ac_objext; then
21169   ac_hi=-1 ac_mid=-1
21170   while :; do
21171     cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h.  */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h.  */
21177 #include <stddef.h>
21178 int
21179 main ()
21180 {
21181 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21182 test_array [0] = 0
21183
21184   ;
21185   return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext
21189 if { (ac_try="$ac_compile"
21190 case "(($ac_try" in
21191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192   *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195   (eval "$ac_compile") 2>conftest.er1
21196   ac_status=$?
21197   grep -v '^ *+' conftest.er1 >conftest.err
21198   rm -f conftest.er1
21199   cat conftest.err >&5
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } && {
21202          test -z "$ac_c_werror_flag" ||
21203          test ! -s conftest.err
21204        } && test -s conftest.$ac_objext; then
21205   ac_lo=$ac_mid; break
21206 else
21207   echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21209
21210         ac_hi=`expr '(' $ac_mid ')' - 1`
21211                         if test $ac_mid -le $ac_hi; then
21212                           ac_lo= ac_hi=
21213                           break
21214                         fi
21215                         ac_mid=`expr 2 '*' $ac_mid`
21216 fi
21217
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219   done
21220 else
21221   echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224         ac_lo= ac_hi=
21225 fi
21226
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 fi
21229
21230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231 # Binary search between lo and hi bounds.
21232 while test "x$ac_lo" != "x$ac_hi"; do
21233   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21234   cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <stddef.h>
21241 int
21242 main ()
21243 {
21244 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21245 test_array [0] = 0
21246
21247   ;
21248   return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258   (eval "$ac_compile") 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && {
21265          test -z "$ac_c_werror_flag" ||
21266          test ! -s conftest.err
21267        } && test -s conftest.$ac_objext; then
21268   ac_hi=$ac_mid
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273         ac_lo=`expr '(' $ac_mid ')' + 1`
21274 fi
21275
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 done
21278 case $ac_lo in
21279 ?*) res_lo=$ac_lo;;
21280 '') result=? ;;
21281 esac
21282 else
21283   cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h.  */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h.  */
21289 #include <stddef.h>
21290 static long int longval () { return ~(size_t)0 % 10; }
21291 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21292 #include <stdio.h>
21293 #include <stdlib.h>
21294 int
21295 main ()
21296 {
21297
21298   FILE *f = fopen ("conftest.val", "w");
21299   if (! f)
21300     return 1;
21301   if ((~(size_t)0 % 10) < 0)
21302     {
21303       long int i = longval ();
21304       if (i != (~(size_t)0 % 10))
21305         return 1;
21306       fprintf (f, "%ld\n", i);
21307     }
21308   else
21309     {
21310       unsigned long int i = ulongval ();
21311       if (i != (~(size_t)0 % 10))
21312         return 1;
21313       fprintf (f, "%lu\n", i);
21314     }
21315   return ferror (f) || fclose (f) != 0;
21316
21317   ;
21318   return 0;
21319 }
21320 _ACEOF
21321 rm -f conftest$ac_exeext
21322 if { (ac_try="$ac_link"
21323 case "(($ac_try" in
21324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325   *) ac_try_echo=$ac_try;;
21326 esac
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328   (eval "$ac_link") 2>&5
21329   ac_status=$?
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21332   { (case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337   (eval "$ac_try") 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; }; then
21341   res_lo=`cat conftest.val`
21342 else
21343   echo "$as_me: program exited with status $ac_status" >&5
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21346
21347 ( exit $ac_status )
21348 result=?
21349 fi
21350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21351 fi
21352 rm -f conftest.val
21353
21354     if test "$cross_compiling" = yes; then
21355   # Depending upon the size, compute the lo and hi bounds.
21356 cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 #include <stddef.h>
21363 int
21364 main ()
21365 {
21366 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21367 test_array [0] = 0
21368
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377   *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380   (eval "$ac_compile") 2>conftest.er1
21381   ac_status=$?
21382   grep -v '^ *+' conftest.er1 >conftest.err
21383   rm -f conftest.er1
21384   cat conftest.err >&5
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } && {
21387          test -z "$ac_c_werror_flag" ||
21388          test ! -s conftest.err
21389        } && test -s conftest.$ac_objext; then
21390   ac_lo=0 ac_mid=0
21391   while :; do
21392     cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398 #include <stddef.h>
21399 int
21400 main ()
21401 {
21402 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21403 test_array [0] = 0
21404
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_compile") 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } && {
21423          test -z "$ac_c_werror_flag" ||
21424          test ! -s conftest.err
21425        } && test -s conftest.$ac_objext; then
21426   ac_hi=$ac_mid; break
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         ac_lo=`expr $ac_mid + 1`
21432                         if test $ac_lo -le $ac_mid; then
21433                           ac_lo= ac_hi=
21434                           break
21435                         fi
21436                         ac_mid=`expr 2 '*' $ac_mid + 1`
21437 fi
21438
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440   done
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445         cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h.  */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h.  */
21451 #include <stddef.h>
21452 int
21453 main ()
21454 {
21455 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21456 test_array [0] = 0
21457
21458   ;
21459   return 0;
21460 }
21461 _ACEOF
21462 rm -f conftest.$ac_objext
21463 if { (ac_try="$ac_compile"
21464 case "(($ac_try" in
21465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466   *) ac_try_echo=$ac_try;;
21467 esac
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469   (eval "$ac_compile") 2>conftest.er1
21470   ac_status=$?
21471   grep -v '^ *+' conftest.er1 >conftest.err
21472   rm -f conftest.er1
21473   cat conftest.err >&5
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); } && {
21476          test -z "$ac_c_werror_flag" ||
21477          test ! -s conftest.err
21478        } && test -s conftest.$ac_objext; then
21479   ac_hi=-1 ac_mid=-1
21480   while :; do
21481     cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #include <stddef.h>
21488 int
21489 main ()
21490 {
21491 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21492 test_array [0] = 0
21493
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_compile") 2>conftest.er1
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
21509   cat conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); } && {
21512          test -z "$ac_c_werror_flag" ||
21513          test ! -s conftest.err
21514        } && test -s conftest.$ac_objext; then
21515   ac_lo=$ac_mid; break
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520         ac_hi=`expr '(' $ac_mid ')' - 1`
21521                         if test $ac_mid -le $ac_hi; then
21522                           ac_lo= ac_hi=
21523                           break
21524                         fi
21525                         ac_mid=`expr 2 '*' $ac_mid`
21526 fi
21527
21528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21529   done
21530 else
21531   echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534         ac_lo= ac_hi=
21535 fi
21536
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541 # Binary search between lo and hi bounds.
21542 while test "x$ac_lo" != "x$ac_hi"; do
21543   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21544   cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550 #include <stddef.h>
21551 int
21552 main ()
21553 {
21554 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21555 test_array [0] = 0
21556
21557   ;
21558   return 0;
21559 }
21560 _ACEOF
21561 rm -f conftest.$ac_objext
21562 if { (ac_try="$ac_compile"
21563 case "(($ac_try" in
21564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565   *) ac_try_echo=$ac_try;;
21566 esac
21567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568   (eval "$ac_compile") 2>conftest.er1
21569   ac_status=$?
21570   grep -v '^ *+' conftest.er1 >conftest.err
21571   rm -f conftest.er1
21572   cat conftest.err >&5
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); } && {
21575          test -z "$ac_c_werror_flag" ||
21576          test ! -s conftest.err
21577        } && test -s conftest.$ac_objext; then
21578   ac_hi=$ac_mid
21579 else
21580   echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583         ac_lo=`expr '(' $ac_mid ')' + 1`
21584 fi
21585
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587 done
21588 case $ac_lo in
21589 ?*) fits_in_uint=$ac_lo;;
21590 '') result=? ;;
21591 esac
21592 else
21593   cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h.  */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h.  */
21599 #include <stddef.h>
21600 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21601 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21602 #include <stdio.h>
21603 #include <stdlib.h>
21604 int
21605 main ()
21606 {
21607
21608   FILE *f = fopen ("conftest.val", "w");
21609   if (! f)
21610     return 1;
21611   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21612     {
21613       long int i = longval ();
21614       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21615         return 1;
21616       fprintf (f, "%ld\n", i);
21617     }
21618   else
21619     {
21620       unsigned long int i = ulongval ();
21621       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21622         return 1;
21623       fprintf (f, "%lu\n", i);
21624     }
21625   return ferror (f) || fclose (f) != 0;
21626
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest$ac_exeext
21632 if { (ac_try="$ac_link"
21633 case "(($ac_try" in
21634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635   *) ac_try_echo=$ac_try;;
21636 esac
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638   (eval "$ac_link") 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21642   { (case "(($ac_try" in
21643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644   *) ac_try_echo=$ac_try;;
21645 esac
21646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21647   (eval "$ac_try") 2>&5
21648   ac_status=$?
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); }; }; then
21651   fits_in_uint=`cat conftest.val`
21652 else
21653   echo "$as_me: program exited with status $ac_status" >&5
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657 ( exit $ac_status )
21658 result=?
21659 fi
21660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21661 fi
21662 rm -f conftest.val
21663
21664     if test "$fits_in_uint" = 1; then
21665                   cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 #include <stddef.h>
21672         extern size_t foo;
21673         extern unsigned long foo;
21674
21675 int
21676 main ()
21677 {
21678
21679   ;
21680   return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_compile") 2>conftest.er1
21691   ac_status=$?
21692   grep -v '^ *+' conftest.er1 >conftest.err
21693   rm -f conftest.er1
21694   cat conftest.err >&5
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } && {
21697          test -z "$ac_c_werror_flag" ||
21698          test ! -s conftest.err
21699        } && test -s conftest.$ac_objext; then
21700   fits_in_uint=0
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705
21706 fi
21707
21708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709     fi
21710     if test -z "$result"; then
21711       if test "$fits_in_uint" = 1; then
21712         result="$res_hi$res_lo"U
21713       else
21714         result="$res_hi$res_lo"UL
21715       fi
21716     else
21717             result='~(size_t)0'
21718     fi
21719   fi
21720   { echo "$as_me:$LINENO: result: $result" >&5
21721 echo "${ECHO_T}$result" >&6; }
21722   if test "$result" != yes; then
21723
21724 cat >>confdefs.h <<_ACEOF
21725 #define SIZE_MAX $result
21726 _ACEOF
21727
21728   fi
21729
21730
21731
21732
21733
21734 for ac_header in stdint.h
21735 do
21736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21738   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 fi
21743 ac_res=`eval echo '${'$as_ac_Header'}'`
21744                { echo "$as_me:$LINENO: result: $ac_res" >&5
21745 echo "${ECHO_T}$ac_res" >&6; }
21746 else
21747   # Is the header compilable?
21748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h.  */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h.  */
21756 $ac_includes_default
21757 #include <$ac_header>
21758 _ACEOF
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763   *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766   (eval "$ac_compile") 2>conftest.er1
21767   ac_status=$?
21768   grep -v '^ *+' conftest.er1 >conftest.err
21769   rm -f conftest.er1
21770   cat conftest.err >&5
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); } && {
21773          test -z "$ac_c_werror_flag" ||
21774          test ! -s conftest.err
21775        } && test -s conftest.$ac_objext; then
21776   ac_header_compiler=yes
21777 else
21778   echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21780
21781         ac_header_compiler=no
21782 fi
21783
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21786 echo "${ECHO_T}$ac_header_compiler" >&6; }
21787
21788 # Is the header present?
21789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21791 cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797 #include <$ac_header>
21798 _ACEOF
21799 if { (ac_try="$ac_cpp conftest.$ac_ext"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21806   ac_status=$?
21807   grep -v '^ *+' conftest.er1 >conftest.err
21808   rm -f conftest.er1
21809   cat conftest.err >&5
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); } >/dev/null && {
21812          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21813          test ! -s conftest.err
21814        }; then
21815   ac_header_preproc=yes
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820   ac_header_preproc=no
21821 fi
21822
21823 rm -f conftest.err conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21825 echo "${ECHO_T}$ac_header_preproc" >&6; }
21826
21827 # So?  What about this header?
21828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21829   yes:no: )
21830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21834     ac_header_preproc=yes
21835     ;;
21836   no:yes:* )
21837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21849
21850     ;;
21851 esac
21852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21855   echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857   eval "$as_ac_Header=\$ac_header_preproc"
21858 fi
21859 ac_res=`eval echo '${'$as_ac_Header'}'`
21860                { echo "$as_me:$LINENO: result: $ac_res" >&5
21861 echo "${ECHO_T}$ac_res" >&6; }
21862
21863 fi
21864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21865   cat >>confdefs.h <<_ACEOF
21866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21867 _ACEOF
21868
21869 fi
21870
21871 done
21872
21873
21874
21875
21876
21877
21878
21879
21880   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21881 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21882 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21883   echo $ECHO_N "(cached) $ECHO_C" >&6
21884 else
21885   cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h.  */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h.  */
21891 $ac_includes_default
21892 typedef ptrdiff_t ac__type_new_;
21893 int
21894 main ()
21895 {
21896 if ((ac__type_new_ *) 0)
21897   return 0;
21898 if (sizeof (ac__type_new_))
21899   return 0;
21900   ;
21901   return 0;
21902 }
21903 _ACEOF
21904 rm -f conftest.$ac_objext
21905 if { (ac_try="$ac_compile"
21906 case "(($ac_try" in
21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908   *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911   (eval "$ac_compile") 2>conftest.er1
21912   ac_status=$?
21913   grep -v '^ *+' conftest.er1 >conftest.err
21914   rm -f conftest.er1
21915   cat conftest.err >&5
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } && {
21918          test -z "$ac_c_werror_flag" ||
21919          test ! -s conftest.err
21920        } && test -s conftest.$ac_objext; then
21921   ac_cv_type_ptrdiff_t=yes
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926         ac_cv_type_ptrdiff_t=no
21927 fi
21928
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 fi
21931 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21932 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21933 if test $ac_cv_type_ptrdiff_t = yes; then
21934   :
21935 else
21936
21937 cat >>confdefs.h <<\_ACEOF
21938 #define ptrdiff_t long
21939 _ACEOF
21940
21941
21942 fi
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21955 stdlib.h string.h unistd.h sys/param.h
21956 do
21957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 fi
21964 ac_res=`eval echo '${'$as_ac_Header'}'`
21965                { echo "$as_me:$LINENO: result: $ac_res" >&5
21966 echo "${ECHO_T}$ac_res" >&6; }
21967 else
21968   # Is the header compilable?
21969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21971 cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h.  */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h.  */
21977 $ac_includes_default
21978 #include <$ac_header>
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_compile") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } && {
21994          test -z "$ac_c_werror_flag" ||
21995          test ! -s conftest.err
21996        } && test -s conftest.$ac_objext; then
21997   ac_header_compiler=yes
21998 else
21999   echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002         ac_header_compiler=no
22003 fi
22004
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 echo "${ECHO_T}$ac_header_compiler" >&6; }
22008
22009 # Is the header present?
22010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h.  */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h.  */
22018 #include <$ac_header>
22019 _ACEOF
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023   *) ac_try_echo=$ac_try;;
22024 esac
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22027   ac_status=$?
22028   grep -v '^ *+' conftest.er1 >conftest.err
22029   rm -f conftest.er1
22030   cat conftest.err >&5
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); } >/dev/null && {
22033          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034          test ! -s conftest.err
22035        }; then
22036   ac_header_preproc=yes
22037 else
22038   echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041   ac_header_preproc=no
22042 fi
22043
22044 rm -f conftest.err conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046 echo "${ECHO_T}$ac_header_preproc" >&6; }
22047
22048 # So?  What about this header?
22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22050   yes:no: )
22051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055     ac_header_preproc=yes
22056     ;;
22057   no:yes:* )
22058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22070
22071     ;;
22072 esac
22073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076   echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078   eval "$as_ac_Header=\$ac_header_preproc"
22079 fi
22080 ac_res=`eval echo '${'$as_ac_Header'}'`
22081                { echo "$as_me:$LINENO: result: $ac_res" >&5
22082 echo "${ECHO_T}$ac_res" >&6; }
22083
22084 fi
22085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22086   cat >>confdefs.h <<_ACEOF
22087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22088 _ACEOF
22089
22090 fi
22091
22092 done
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22118 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22119 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22120 __fsetlocking
22121 do
22122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22126   echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128   cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22136 #define $ac_func innocuous_$ac_func
22137
22138 /* System header to define __stub macros and hopefully few prototypes,
22139     which can conflict with char $ac_func (); below.
22140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141     <limits.h> exists even on freestanding compilers.  */
22142
22143 #ifdef __STDC__
22144 # include <limits.h>
22145 #else
22146 # include <assert.h>
22147 #endif
22148
22149 #undef $ac_func
22150
22151 /* Override any GCC internal prototype to avoid an error.
22152    Use char because int might match the return type of a GCC
22153    builtin and then its argument prototype would still apply.  */
22154 #ifdef __cplusplus
22155 extern "C"
22156 #endif
22157 char $ac_func ();
22158 /* The GNU C library defines this for functions which it implements
22159     to always fail with ENOSYS.  Some functions are actually named
22160     something starting with __ and the normal name is an alias.  */
22161 #if defined __stub_$ac_func || defined __stub___$ac_func
22162 choke me
22163 #endif
22164
22165 int
22166 main ()
22167 {
22168 return $ac_func ();
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_link") 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } && {
22187          test -z "$ac_c_werror_flag" ||
22188          test ! -s conftest.err
22189        } && test -s conftest$ac_exeext &&
22190        $as_test_x conftest$ac_exeext; then
22191   eval "$as_ac_var=yes"
22192 else
22193   echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196         eval "$as_ac_var=no"
22197 fi
22198
22199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22200       conftest$ac_exeext conftest.$ac_ext
22201 fi
22202 ac_res=`eval echo '${'$as_ac_var'}'`
22203                { echo "$as_me:$LINENO: result: $ac_res" >&5
22204 echo "${ECHO_T}$ac_res" >&6; }
22205 if test `eval echo '${'$as_ac_var'}'` = yes; then
22206   cat >>confdefs.h <<_ACEOF
22207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22208 _ACEOF
22209
22210 fi
22211 done
22212
22213
22214
22215   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22216 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22217 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22218   echo $ECHO_N "(cached) $ECHO_C" >&6
22219 else
22220   cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226 #include <stdio.h>
22227 int
22228 main ()
22229 {
22230
22231 #ifndef _snprintf
22232   char *p = (char *) _snprintf;
22233 #endif
22234
22235   ;
22236   return 0;
22237 }
22238 _ACEOF
22239 rm -f conftest.$ac_objext
22240 if { (ac_try="$ac_compile"
22241 case "(($ac_try" in
22242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243   *) ac_try_echo=$ac_try;;
22244 esac
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246   (eval "$ac_compile") 2>conftest.er1
22247   ac_status=$?
22248   grep -v '^ *+' conftest.er1 >conftest.err
22249   rm -f conftest.er1
22250   cat conftest.err >&5
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); } && {
22253          test -z "$ac_c_werror_flag" ||
22254          test ! -s conftest.err
22255        } && test -s conftest.$ac_objext; then
22256   ac_cv_have_decl__snprintf=yes
22257 else
22258   echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261         ac_cv_have_decl__snprintf=no
22262 fi
22263
22264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265 fi
22266 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22267 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22268   if test $ac_cv_have_decl__snprintf = yes; then
22269     gt_value=1
22270   else
22271     gt_value=0
22272   fi
22273
22274 cat >>confdefs.h <<_ACEOF
22275 #define HAVE_DECL__SNPRINTF $gt_value
22276 _ACEOF
22277
22278
22279
22280   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22281 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22282 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22283   echo $ECHO_N "(cached) $ECHO_C" >&6
22284 else
22285   cat >conftest.$ac_ext <<_ACEOF
22286 /* confdefs.h.  */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h.  */
22291 #include <stdio.h>
22292 int
22293 main ()
22294 {
22295
22296 #ifndef _snwprintf
22297   char *p = (char *) _snwprintf;
22298 #endif
22299
22300   ;
22301   return 0;
22302 }
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308   *) ac_try_echo=$ac_try;;
22309 esac
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311   (eval "$ac_compile") 2>conftest.er1
22312   ac_status=$?
22313   grep -v '^ *+' conftest.er1 >conftest.err
22314   rm -f conftest.er1
22315   cat conftest.err >&5
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); } && {
22318          test -z "$ac_c_werror_flag" ||
22319          test ! -s conftest.err
22320        } && test -s conftest.$ac_objext; then
22321   ac_cv_have_decl__snwprintf=yes
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326         ac_cv_have_decl__snwprintf=no
22327 fi
22328
22329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330 fi
22331 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22332 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22333   if test $ac_cv_have_decl__snwprintf = yes; then
22334     gt_value=1
22335   else
22336     gt_value=0
22337   fi
22338
22339 cat >>confdefs.h <<_ACEOF
22340 #define HAVE_DECL__SNWPRINTF $gt_value
22341 _ACEOF
22342
22343
22344
22345
22346   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22347 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22348 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 #include <stdio.h>
22358 int
22359 main ()
22360 {
22361
22362 #ifndef feof_unlocked
22363   char *p = (char *) feof_unlocked;
22364 #endif
22365
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374   *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377   (eval "$ac_compile") 2>conftest.er1
22378   ac_status=$?
22379   grep -v '^ *+' conftest.er1 >conftest.err
22380   rm -f conftest.er1
22381   cat conftest.err >&5
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } && {
22384          test -z "$ac_c_werror_flag" ||
22385          test ! -s conftest.err
22386        } && test -s conftest.$ac_objext; then
22387   ac_cv_have_decl_feof_unlocked=yes
22388 else
22389   echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22391
22392         ac_cv_have_decl_feof_unlocked=no
22393 fi
22394
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396 fi
22397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22398 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22399   if test $ac_cv_have_decl_feof_unlocked = yes; then
22400     gt_value=1
22401   else
22402     gt_value=0
22403   fi
22404
22405 cat >>confdefs.h <<_ACEOF
22406 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22407 _ACEOF
22408
22409
22410
22411   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22412 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22413 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22414   echo $ECHO_N "(cached) $ECHO_C" >&6
22415 else
22416   cat >conftest.$ac_ext <<_ACEOF
22417 /* confdefs.h.  */
22418 _ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h.  */
22422 #include <stdio.h>
22423 int
22424 main ()
22425 {
22426
22427 #ifndef fgets_unlocked
22428   char *p = (char *) fgets_unlocked;
22429 #endif
22430
22431   ;
22432   return 0;
22433 }
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439   *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442   (eval "$ac_compile") 2>conftest.er1
22443   ac_status=$?
22444   grep -v '^ *+' conftest.er1 >conftest.err
22445   rm -f conftest.er1
22446   cat conftest.err >&5
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); } && {
22449          test -z "$ac_c_werror_flag" ||
22450          test ! -s conftest.err
22451        } && test -s conftest.$ac_objext; then
22452   ac_cv_have_decl_fgets_unlocked=yes
22453 else
22454   echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457         ac_cv_have_decl_fgets_unlocked=no
22458 fi
22459
22460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 fi
22462 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22463 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22464   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22465     gt_value=1
22466   else
22467     gt_value=0
22468   fi
22469
22470 cat >>confdefs.h <<_ACEOF
22471 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22472 _ACEOF
22473
22474
22475
22476   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22477 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22478 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22479   echo $ECHO_N "(cached) $ECHO_C" >&6
22480 else
22481   cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 #include <stdio.h>
22488 int
22489 main ()
22490 {
22491
22492 #ifndef getc_unlocked
22493   char *p = (char *) getc_unlocked;
22494 #endif
22495
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504   *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507   (eval "$ac_compile") 2>conftest.er1
22508   ac_status=$?
22509   grep -v '^ *+' conftest.er1 >conftest.err
22510   rm -f conftest.er1
22511   cat conftest.err >&5
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); } && {
22514          test -z "$ac_c_werror_flag" ||
22515          test ! -s conftest.err
22516        } && test -s conftest.$ac_objext; then
22517   ac_cv_have_decl_getc_unlocked=yes
22518 else
22519   echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22521
22522         ac_cv_have_decl_getc_unlocked=no
22523 fi
22524
22525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526 fi
22527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22528 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22529   if test $ac_cv_have_decl_getc_unlocked = yes; then
22530     gt_value=1
22531   else
22532     gt_value=0
22533   fi
22534
22535 cat >>confdefs.h <<_ACEOF
22536 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22537 _ACEOF
22538
22539
22540
22541   case $gt_cv_func_printf_posix in
22542     *yes) HAVE_POSIX_PRINTF=1 ;;
22543     *) HAVE_POSIX_PRINTF=0 ;;
22544   esac
22545
22546   if test "$ac_cv_func_asprintf" = yes; then
22547     HAVE_ASPRINTF=1
22548   else
22549     HAVE_ASPRINTF=0
22550   fi
22551
22552   if test "$ac_cv_func_snprintf" = yes; then
22553     HAVE_SNPRINTF=1
22554   else
22555     HAVE_SNPRINTF=0
22556   fi
22557
22558   if test "$ac_cv_func_wprintf" = yes; then
22559     HAVE_WPRINTF=1
22560   else
22561     HAVE_WPRINTF=0
22562   fi
22563
22564
22565
22566
22567
22568
22569
22570           am_save_CPPFLAGS="$CPPFLAGS"
22571
22572   for element in $INCICONV; do
22573     haveit=
22574     for x in $CPPFLAGS; do
22575
22576   acl_save_prefix="$prefix"
22577   prefix="$acl_final_prefix"
22578   acl_save_exec_prefix="$exec_prefix"
22579   exec_prefix="$acl_final_exec_prefix"
22580   eval x=\"$x\"
22581   exec_prefix="$acl_save_exec_prefix"
22582   prefix="$acl_save_prefix"
22583
22584       if test "X$x" = "X$element"; then
22585         haveit=yes
22586         break
22587       fi
22588     done
22589     if test -z "$haveit"; then
22590       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22591     fi
22592   done
22593
22594
22595   { echo "$as_me:$LINENO: checking for iconv" >&5
22596 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22597 if test "${am_cv_func_iconv+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600
22601     am_cv_func_iconv="no, consider installing GNU libiconv"
22602     am_cv_lib_iconv=no
22603     cat >conftest.$ac_ext <<_ACEOF
22604 /* confdefs.h.  */
22605 _ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h.  */
22609 #include <stdlib.h>
22610 #include <iconv.h>
22611 int
22612 main ()
22613 {
22614 iconv_t cd = iconv_open("","");
22615        iconv(cd,NULL,NULL,NULL,NULL);
22616        iconv_close(cd);
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625   *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628   (eval "$ac_link") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } && {
22635          test -z "$ac_c_werror_flag" ||
22636          test ! -s conftest.err
22637        } && test -s conftest$ac_exeext &&
22638        $as_test_x conftest$ac_exeext; then
22639   am_cv_func_iconv=yes
22640 else
22641   echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644
22645 fi
22646
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648       conftest$ac_exeext conftest.$ac_ext
22649     if test "$am_cv_func_iconv" != yes; then
22650       am_save_LIBS="$LIBS"
22651       LIBS="$LIBS $LIBICONV"
22652       cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h.  */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h.  */
22658 #include <stdlib.h>
22659 #include <iconv.h>
22660 int
22661 main ()
22662 {
22663 iconv_t cd = iconv_open("","");
22664          iconv(cd,NULL,NULL,NULL,NULL);
22665          iconv_close(cd);
22666   ;
22667   return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (ac_try="$ac_link"
22672 case "(($ac_try" in
22673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674   *) ac_try_echo=$ac_try;;
22675 esac
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677   (eval "$ac_link") 2>conftest.er1
22678   ac_status=$?
22679   grep -v '^ *+' conftest.er1 >conftest.err
22680   rm -f conftest.er1
22681   cat conftest.err >&5
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); } && {
22684          test -z "$ac_c_werror_flag" ||
22685          test ! -s conftest.err
22686        } && test -s conftest$ac_exeext &&
22687        $as_test_x conftest$ac_exeext; then
22688   am_cv_lib_iconv=yes
22689         am_cv_func_iconv=yes
22690 else
22691   echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694
22695 fi
22696
22697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22698       conftest$ac_exeext conftest.$ac_ext
22699       LIBS="$am_save_LIBS"
22700     fi
22701
22702 fi
22703 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22704 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22705   if test "$am_cv_func_iconv" = yes; then
22706
22707 cat >>confdefs.h <<\_ACEOF
22708 #define HAVE_ICONV 1
22709 _ACEOF
22710
22711   fi
22712   if test "$am_cv_lib_iconv" = yes; then
22713     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22714 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22715     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22716 echo "${ECHO_T}$LIBICONV" >&6; }
22717   else
22718             CPPFLAGS="$am_save_CPPFLAGS"
22719     LIBICONV=
22720     LTLIBICONV=
22721   fi
22722
22723
22724
22725   if test "$am_cv_func_iconv" = yes; then
22726     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22727 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22728     if test "${am_cv_proto_iconv+set}" = set; then
22729   echo $ECHO_N "(cached) $ECHO_C" >&6
22730 else
22731
22732       cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h.  */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h.  */
22738
22739 #include <stdlib.h>
22740 #include <iconv.h>
22741 extern
22742 #ifdef __cplusplus
22743 "C"
22744 #endif
22745 #if defined(__STDC__) || defined(__cplusplus)
22746 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22747 #else
22748 size_t iconv();
22749 #endif
22750
22751 int
22752 main ()
22753 {
22754
22755   ;
22756   return 0;
22757 }
22758 _ACEOF
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763   *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766   (eval "$ac_compile") 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } && {
22773          test -z "$ac_c_werror_flag" ||
22774          test ! -s conftest.err
22775        } && test -s conftest.$ac_objext; then
22776   am_cv_proto_iconv_arg1=""
22777 else
22778   echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22780
22781         am_cv_proto_iconv_arg1="const"
22782 fi
22783
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785       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);"
22786 fi
22787
22788     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22789     { echo "$as_me:$LINENO: result: ${ac_t:-
22790          }$am_cv_proto_iconv" >&5
22791 echo "${ECHO_T}${ac_t:-
22792          }$am_cv_proto_iconv" >&6; }
22793
22794 cat >>confdefs.h <<_ACEOF
22795 #define ICONV_CONST $am_cv_proto_iconv_arg1
22796 _ACEOF
22797
22798   fi
22799
22800
22801   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22802 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22803 if test "${am_cv_langinfo_codeset+set}" = set; then
22804   echo $ECHO_N "(cached) $ECHO_C" >&6
22805 else
22806   cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h.  */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h.  */
22812 #include <langinfo.h>
22813 int
22814 main ()
22815 {
22816 char* cs = nl_langinfo(CODESET);
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825   *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828   (eval "$ac_link") 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } && {
22835          test -z "$ac_c_werror_flag" ||
22836          test ! -s conftest.err
22837        } && test -s conftest$ac_exeext &&
22838        $as_test_x conftest$ac_exeext; then
22839   am_cv_langinfo_codeset=yes
22840 else
22841   echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844         am_cv_langinfo_codeset=no
22845 fi
22846
22847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22848       conftest$ac_exeext conftest.$ac_ext
22849
22850 fi
22851 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22852 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22853   if test $am_cv_langinfo_codeset = yes; then
22854
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_LANGINFO_CODESET 1
22857 _ACEOF
22858
22859   fi
22860
22861   if test $ac_cv_header_locale_h = yes; then
22862
22863   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22864 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22865 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868   cat >conftest.$ac_ext <<_ACEOF
22869 /* confdefs.h.  */
22870 _ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h.  */
22874 #include <locale.h>
22875 int
22876 main ()
22877 {
22878 return LC_MESSAGES
22879   ;
22880   return 0;
22881 }
22882 _ACEOF
22883 rm -f conftest.$ac_objext conftest$ac_exeext
22884 if { (ac_try="$ac_link"
22885 case "(($ac_try" in
22886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887   *) ac_try_echo=$ac_try;;
22888 esac
22889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890   (eval "$ac_link") 2>conftest.er1
22891   ac_status=$?
22892   grep -v '^ *+' conftest.er1 >conftest.err
22893   rm -f conftest.er1
22894   cat conftest.err >&5
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); } && {
22897          test -z "$ac_c_werror_flag" ||
22898          test ! -s conftest.err
22899        } && test -s conftest$ac_exeext &&
22900        $as_test_x conftest$ac_exeext; then
22901   gt_cv_val_LC_MESSAGES=yes
22902 else
22903   echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22905
22906         gt_cv_val_LC_MESSAGES=no
22907 fi
22908
22909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22910       conftest$ac_exeext conftest.$ac_ext
22911 fi
22912 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22913 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22914   if test $gt_cv_val_LC_MESSAGES = yes; then
22915
22916 cat >>confdefs.h <<\_ACEOF
22917 #define HAVE_LC_MESSAGES 1
22918 _ACEOF
22919
22920   fi
22921
22922   fi
22923
22924   if test -n "$INTL_MACOSX_LIBS"; then
22925     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22926   fi
22927
22928                       for ac_prog in bison
22929 do
22930   # Extract the first word of "$ac_prog", so it can be a program name with args.
22931 set dummy $ac_prog; ac_word=$2
22932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22934 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22935   echo $ECHO_N "(cached) $ECHO_C" >&6
22936 else
22937   if test -n "$INTLBISON"; then
22938   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22939 else
22940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22941 for as_dir in $PATH
22942 do
22943   IFS=$as_save_IFS
22944   test -z "$as_dir" && as_dir=.
22945   for ac_exec_ext in '' $ac_executable_extensions; do
22946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22947     ac_cv_prog_INTLBISON="$ac_prog"
22948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22949     break 2
22950   fi
22951 done
22952 done
22953 IFS=$as_save_IFS
22954
22955 fi
22956 fi
22957 INTLBISON=$ac_cv_prog_INTLBISON
22958 if test -n "$INTLBISON"; then
22959   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22960 echo "${ECHO_T}$INTLBISON" >&6; }
22961 else
22962   { echo "$as_me:$LINENO: result: no" >&5
22963 echo "${ECHO_T}no" >&6; }
22964 fi
22965
22966
22967   test -n "$INTLBISON" && break
22968 done
22969
22970   if test -z "$INTLBISON"; then
22971     ac_verc_fail=yes
22972   else
22973         { echo "$as_me:$LINENO: checking version of bison" >&5
22974 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
22975     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22976     case $ac_prog_version in
22977       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22978       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22979          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22980       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22981     esac
22982     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
22983 echo "${ECHO_T}$ac_prog_version" >&6; }
22984   fi
22985   if test $ac_verc_fail = yes; then
22986     INTLBISON=:
22987   fi
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23005 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23006 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23007   echo $ECHO_N "(cached) $ECHO_C" >&6
23008 else
23009   gt_save_CPPFLAGS="$CPPFLAGS"
23010      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23011      gt_save_LIBS="$LIBS"
23012      LIBS="$LIBS -framework CoreFoundation"
23013      cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h.  */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h.  */
23019 #include <CFPreferences.h>
23020 int
23021 main ()
23022 {
23023 CFPreferencesCopyAppValue(NULL, NULL)
23024   ;
23025   return 0;
23026 }
23027 _ACEOF
23028 rm -f conftest.$ac_objext conftest$ac_exeext
23029 if { (ac_try="$ac_link"
23030 case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_link") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } && {
23042          test -z "$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        } && test -s conftest$ac_exeext &&
23045        $as_test_x conftest$ac_exeext; then
23046   gt_cv_func_CFPreferencesCopyAppValue=yes
23047 else
23048   echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23050
23051         gt_cv_func_CFPreferencesCopyAppValue=no
23052 fi
23053
23054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23055       conftest$ac_exeext conftest.$ac_ext
23056      CPPFLAGS="$gt_save_CPPFLAGS"
23057      LIBS="$gt_save_LIBS"
23058 fi
23059 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23060 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23061   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23062
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23065 _ACEOF
23066
23067   fi
23068     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23069 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23070 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23071   echo $ECHO_N "(cached) $ECHO_C" >&6
23072 else
23073   gt_save_CPPFLAGS="$CPPFLAGS"
23074      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23075      gt_save_LIBS="$LIBS"
23076      LIBS="$LIBS -framework CoreFoundation"
23077      cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h.  */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h.  */
23083 #include <CFLocale.h>
23084 int
23085 main ()
23086 {
23087 CFLocaleCopyCurrent();
23088   ;
23089   return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (ac_try="$ac_link"
23094 case "(($ac_try" in
23095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096   *) ac_try_echo=$ac_try;;
23097 esac
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099   (eval "$ac_link") 2>conftest.er1
23100   ac_status=$?
23101   grep -v '^ *+' conftest.er1 >conftest.err
23102   rm -f conftest.er1
23103   cat conftest.err >&5
23104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105   (exit $ac_status); } && {
23106          test -z "$ac_c_werror_flag" ||
23107          test ! -s conftest.err
23108        } && test -s conftest$ac_exeext &&
23109        $as_test_x conftest$ac_exeext; then
23110   gt_cv_func_CFLocaleCopyCurrent=yes
23111 else
23112   echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115         gt_cv_func_CFLocaleCopyCurrent=no
23116 fi
23117
23118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23119       conftest$ac_exeext conftest.$ac_ext
23120      CPPFLAGS="$gt_save_CPPFLAGS"
23121      LIBS="$gt_save_LIBS"
23122 fi
23123 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23124 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23125   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23126
23127 cat >>confdefs.h <<\_ACEOF
23128 #define HAVE_CFLOCALECOPYCURRENT 1
23129 _ACEOF
23130
23131   fi
23132   INTL_MACOSX_LIBS=
23133   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23134     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23135   fi
23136
23137
23138
23139
23140   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23141 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23142     # Check whether --enable-nls was given.
23143 if test "${enable_nls+set}" = set; then
23144   enableval=$enable_nls; USE_NLS=$enableval
23145 else
23146   USE_NLS=yes
23147 fi
23148
23149   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23150 echo "${ECHO_T}$USE_NLS" >&6; }
23151
23152
23153
23154
23155     BUILD_INCLUDED_LIBINTL=no
23156     USE_INCLUDED_LIBINTL=no
23157
23158   LIBINTL=
23159   LTLIBINTL=
23160   POSUB=
23161
23162     if test "$USE_NLS" = "yes"; then
23163     gt_use_preinstalled_gnugettext=no
23164
23165       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23166 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23167
23168 # Check whether --with-included-gettext was given.
23169 if test "${with_included_gettext+set}" = set; then
23170   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23171 else
23172   nls_cv_force_use_gnu_gettext=no
23173 fi
23174
23175       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23176 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23177
23178       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23179       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23180
23181
23182
23183
23184
23185
23186         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23187 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23188 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23189   echo $ECHO_N "(cached) $ECHO_C" >&6
23190 else
23191   cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h.  */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h.  */
23197 #include <libintl.h>
23198 extern int _nl_msg_cat_cntr;
23199 extern int *_nl_domain_bindings;
23200 int
23201 main ()
23202 {
23203 bindtextdomain ("", "");
23204 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23205   ;
23206   return 0;
23207 }
23208 _ACEOF
23209 rm -f conftest.$ac_objext conftest$ac_exeext
23210 if { (ac_try="$ac_link"
23211 case "(($ac_try" in
23212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213   *) ac_try_echo=$ac_try;;
23214 esac
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216   (eval "$ac_link") 2>conftest.er1
23217   ac_status=$?
23218   grep -v '^ *+' conftest.er1 >conftest.err
23219   rm -f conftest.er1
23220   cat conftest.err >&5
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); } && {
23223          test -z "$ac_c_werror_flag" ||
23224          test ! -s conftest.err
23225        } && test -s conftest$ac_exeext &&
23226        $as_test_x conftest$ac_exeext; then
23227   gt_cv_func_gnugettext1_libc=yes
23228 else
23229   echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23231
23232         gt_cv_func_gnugettext1_libc=no
23233 fi
23234
23235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23236       conftest$ac_exeext conftest.$ac_ext
23237 fi
23238 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23239 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23240
23241         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23242
23243
23244
23245     use_additional=yes
23246
23247   acl_save_prefix="$prefix"
23248   prefix="$acl_final_prefix"
23249   acl_save_exec_prefix="$exec_prefix"
23250   exec_prefix="$acl_final_exec_prefix"
23251
23252     eval additional_includedir=\"$includedir\"
23253     eval additional_libdir=\"$libdir\"
23254
23255   exec_prefix="$acl_save_exec_prefix"
23256   prefix="$acl_save_prefix"
23257
23258
23259 # Check whether --with-libintl-prefix was given.
23260 if test "${with_libintl_prefix+set}" = set; then
23261   withval=$with_libintl_prefix;
23262     if test "X$withval" = "Xno"; then
23263       use_additional=no
23264     else
23265       if test "X$withval" = "X"; then
23266
23267   acl_save_prefix="$prefix"
23268   prefix="$acl_final_prefix"
23269   acl_save_exec_prefix="$exec_prefix"
23270   exec_prefix="$acl_final_exec_prefix"
23271
23272           eval additional_includedir=\"$includedir\"
23273           eval additional_libdir=\"$libdir\"
23274
23275   exec_prefix="$acl_save_exec_prefix"
23276   prefix="$acl_save_prefix"
23277
23278       else
23279         additional_includedir="$withval/include"
23280         additional_libdir="$withval/lib"
23281       fi
23282     fi
23283
23284 fi
23285
23286       LIBINTL=
23287   LTLIBINTL=
23288   INCINTL=
23289   rpathdirs=
23290   ltrpathdirs=
23291   names_already_handled=
23292   names_next_round='intl '
23293   while test -n "$names_next_round"; do
23294     names_this_round="$names_next_round"
23295     names_next_round=
23296     for name in $names_this_round; do
23297       already_handled=
23298       for n in $names_already_handled; do
23299         if test "$n" = "$name"; then
23300           already_handled=yes
23301           break
23302         fi
23303       done
23304       if test -z "$already_handled"; then
23305         names_already_handled="$names_already_handled $name"
23306                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23307         eval value=\"\$HAVE_LIB$uppername\"
23308         if test -n "$value"; then
23309           if test "$value" = yes; then
23310             eval value=\"\$LIB$uppername\"
23311             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23312             eval value=\"\$LTLIB$uppername\"
23313             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23314           else
23315                                     :
23316           fi
23317         else
23318                               found_dir=
23319           found_la=
23320           found_so=
23321           found_a=
23322           if test $use_additional = yes; then
23323             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23324               found_dir="$additional_libdir"
23325               found_so="$additional_libdir/lib$name.$shlibext"
23326               if test -f "$additional_libdir/lib$name.la"; then
23327                 found_la="$additional_libdir/lib$name.la"
23328               fi
23329             else
23330               if test -f "$additional_libdir/lib$name.$libext"; then
23331                 found_dir="$additional_libdir"
23332                 found_a="$additional_libdir/lib$name.$libext"
23333                 if test -f "$additional_libdir/lib$name.la"; then
23334                   found_la="$additional_libdir/lib$name.la"
23335                 fi
23336               fi
23337             fi
23338           fi
23339           if test "X$found_dir" = "X"; then
23340             for x in $LDFLAGS $LTLIBINTL; do
23341
23342   acl_save_prefix="$prefix"
23343   prefix="$acl_final_prefix"
23344   acl_save_exec_prefix="$exec_prefix"
23345   exec_prefix="$acl_final_exec_prefix"
23346   eval x=\"$x\"
23347   exec_prefix="$acl_save_exec_prefix"
23348   prefix="$acl_save_prefix"
23349
23350               case "$x" in
23351                 -L*)
23352                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23353                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23354                     found_dir="$dir"
23355                     found_so="$dir/lib$name.$shlibext"
23356                     if test -f "$dir/lib$name.la"; then
23357                       found_la="$dir/lib$name.la"
23358                     fi
23359                   else
23360                     if test -f "$dir/lib$name.$libext"; then
23361                       found_dir="$dir"
23362                       found_a="$dir/lib$name.$libext"
23363                       if test -f "$dir/lib$name.la"; then
23364                         found_la="$dir/lib$name.la"
23365                       fi
23366                     fi
23367                   fi
23368                   ;;
23369               esac
23370               if test "X$found_dir" != "X"; then
23371                 break
23372               fi
23373             done
23374           fi
23375           if test "X$found_dir" != "X"; then
23376                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23377             if test "X$found_so" != "X"; then
23378                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23379                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23380               else
23381                                                                                 haveit=
23382                 for x in $ltrpathdirs; do
23383                   if test "X$x" = "X$found_dir"; then
23384                     haveit=yes
23385                     break
23386                   fi
23387                 done
23388                 if test -z "$haveit"; then
23389                   ltrpathdirs="$ltrpathdirs $found_dir"
23390                 fi
23391                                 if test "$hardcode_direct" = yes; then
23392                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23393                 else
23394                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23395                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23396                                                             haveit=
23397                     for x in $rpathdirs; do
23398                       if test "X$x" = "X$found_dir"; then
23399                         haveit=yes
23400                         break
23401                       fi
23402                     done
23403                     if test -z "$haveit"; then
23404                       rpathdirs="$rpathdirs $found_dir"
23405                     fi
23406                   else
23407                                                                                 haveit=
23408                     for x in $LDFLAGS $LIBINTL; do
23409
23410   acl_save_prefix="$prefix"
23411   prefix="$acl_final_prefix"
23412   acl_save_exec_prefix="$exec_prefix"
23413   exec_prefix="$acl_final_exec_prefix"
23414   eval x=\"$x\"
23415   exec_prefix="$acl_save_exec_prefix"
23416   prefix="$acl_save_prefix"
23417
23418                       if test "X$x" = "X-L$found_dir"; then
23419                         haveit=yes
23420                         break
23421                       fi
23422                     done
23423                     if test -z "$haveit"; then
23424                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23425                     fi
23426                     if test "$hardcode_minus_L" != no; then
23427                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23428                     else
23429                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23430                     fi
23431                   fi
23432                 fi
23433               fi
23434             else
23435               if test "X$found_a" != "X"; then
23436                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23437               else
23438                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23439               fi
23440             fi
23441                         additional_includedir=
23442             case "$found_dir" in
23443               */lib | */lib/)
23444                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23445                 additional_includedir="$basedir/include"
23446                 ;;
23447             esac
23448             if test "X$additional_includedir" != "X"; then
23449                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23450                 haveit=
23451                 if test "X$additional_includedir" = "X/usr/local/include"; then
23452                   if test -n "$GCC"; then
23453                     case $host_os in
23454                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23455                     esac
23456                   fi
23457                 fi
23458                 if test -z "$haveit"; then
23459                   for x in $CPPFLAGS $INCINTL; do
23460
23461   acl_save_prefix="$prefix"
23462   prefix="$acl_final_prefix"
23463   acl_save_exec_prefix="$exec_prefix"
23464   exec_prefix="$acl_final_exec_prefix"
23465   eval x=\"$x\"
23466   exec_prefix="$acl_save_exec_prefix"
23467   prefix="$acl_save_prefix"
23468
23469                     if test "X$x" = "X-I$additional_includedir"; then
23470                       haveit=yes
23471                       break
23472                     fi
23473                   done
23474                   if test -z "$haveit"; then
23475                     if test -d "$additional_includedir"; then
23476                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23477                     fi
23478                   fi
23479                 fi
23480               fi
23481             fi
23482                         if test -n "$found_la"; then
23483                                                         save_libdir="$libdir"
23484               case "$found_la" in
23485                 */* | *\\*) . "$found_la" ;;
23486                 *) . "./$found_la" ;;
23487               esac
23488               libdir="$save_libdir"
23489                             for dep in $dependency_libs; do
23490                 case "$dep" in
23491                   -L*)
23492                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23493                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23494                       haveit=
23495                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23496                         if test -n "$GCC"; then
23497                           case $host_os in
23498                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23499                           esac
23500                         fi
23501                       fi
23502                       if test -z "$haveit"; then
23503                         haveit=
23504                         for x in $LDFLAGS $LIBINTL; do
23505
23506   acl_save_prefix="$prefix"
23507   prefix="$acl_final_prefix"
23508   acl_save_exec_prefix="$exec_prefix"
23509   exec_prefix="$acl_final_exec_prefix"
23510   eval x=\"$x\"
23511   exec_prefix="$acl_save_exec_prefix"
23512   prefix="$acl_save_prefix"
23513
23514                           if test "X$x" = "X-L$additional_libdir"; then
23515                             haveit=yes
23516                             break
23517                           fi
23518                         done
23519                         if test -z "$haveit"; then
23520                           if test -d "$additional_libdir"; then
23521                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23522                           fi
23523                         fi
23524                         haveit=
23525                         for x in $LDFLAGS $LTLIBINTL; do
23526
23527   acl_save_prefix="$prefix"
23528   prefix="$acl_final_prefix"
23529   acl_save_exec_prefix="$exec_prefix"
23530   exec_prefix="$acl_final_exec_prefix"
23531   eval x=\"$x\"
23532   exec_prefix="$acl_save_exec_prefix"
23533   prefix="$acl_save_prefix"
23534
23535                           if test "X$x" = "X-L$additional_libdir"; then
23536                             haveit=yes
23537                             break
23538                           fi
23539                         done
23540                         if test -z "$haveit"; then
23541                           if test -d "$additional_libdir"; then
23542                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23543                           fi
23544                         fi
23545                       fi
23546                     fi
23547                     ;;
23548                   -R*)
23549                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23550                     if test "$enable_rpath" != no; then
23551                                                                   haveit=
23552                       for x in $rpathdirs; do
23553                         if test "X$x" = "X$dir"; then
23554                           haveit=yes
23555                           break
23556                         fi
23557                       done
23558                       if test -z "$haveit"; then
23559                         rpathdirs="$rpathdirs $dir"
23560                       fi
23561                                                                   haveit=
23562                       for x in $ltrpathdirs; do
23563                         if test "X$x" = "X$dir"; then
23564                           haveit=yes
23565                           break
23566                         fi
23567                       done
23568                       if test -z "$haveit"; then
23569                         ltrpathdirs="$ltrpathdirs $dir"
23570                       fi
23571                     fi
23572                     ;;
23573                   -l*)
23574                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23575                     ;;
23576                   *.la)
23577                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23578                     ;;
23579                   *)
23580                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23581                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23582                     ;;
23583                 esac
23584               done
23585             fi
23586           else
23587                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23588             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23589           fi
23590         fi
23591       fi
23592     done
23593   done
23594   if test "X$rpathdirs" != "X"; then
23595     if test -n "$hardcode_libdir_separator"; then
23596                         alldirs=
23597       for found_dir in $rpathdirs; do
23598         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23599       done
23600             acl_save_libdir="$libdir"
23601       libdir="$alldirs"
23602       eval flag=\"$hardcode_libdir_flag_spec\"
23603       libdir="$acl_save_libdir"
23604       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23605     else
23606             for found_dir in $rpathdirs; do
23607         acl_save_libdir="$libdir"
23608         libdir="$found_dir"
23609         eval flag=\"$hardcode_libdir_flag_spec\"
23610         libdir="$acl_save_libdir"
23611         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23612       done
23613     fi
23614   fi
23615   if test "X$ltrpathdirs" != "X"; then
23616             for found_dir in $ltrpathdirs; do
23617       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23618     done
23619   fi
23620
23621           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23622 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23623 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23624   echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626   gt_save_CPPFLAGS="$CPPFLAGS"
23627             CPPFLAGS="$CPPFLAGS $INCINTL"
23628             gt_save_LIBS="$LIBS"
23629             LIBS="$LIBS $LIBINTL"
23630                         cat >conftest.$ac_ext <<_ACEOF
23631 /* confdefs.h.  */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h.  */
23636 #include <libintl.h>
23637 extern int _nl_msg_cat_cntr;
23638 extern
23639 #ifdef __cplusplus
23640 "C"
23641 #endif
23642 const char *_nl_expand_alias (const char *);
23643 int
23644 main ()
23645 {
23646 bindtextdomain ("", "");
23647 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23648   ;
23649   return 0;
23650 }
23651 _ACEOF
23652 rm -f conftest.$ac_objext conftest$ac_exeext
23653 if { (ac_try="$ac_link"
23654 case "(($ac_try" in
23655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23656   *) ac_try_echo=$ac_try;;
23657 esac
23658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23659   (eval "$ac_link") 2>conftest.er1
23660   ac_status=$?
23661   grep -v '^ *+' conftest.er1 >conftest.err
23662   rm -f conftest.er1
23663   cat conftest.err >&5
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); } && {
23666          test -z "$ac_c_werror_flag" ||
23667          test ! -s conftest.err
23668        } && test -s conftest$ac_exeext &&
23669        $as_test_x conftest$ac_exeext; then
23670   gt_cv_func_gnugettext1_libintl=yes
23671 else
23672   echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23674
23675         gt_cv_func_gnugettext1_libintl=no
23676 fi
23677
23678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23679       conftest$ac_exeext conftest.$ac_ext
23680                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23681               LIBS="$LIBS $LIBICONV"
23682               cat >conftest.$ac_ext <<_ACEOF
23683 /* confdefs.h.  */
23684 _ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h.  */
23688 #include <libintl.h>
23689 extern int _nl_msg_cat_cntr;
23690 extern
23691 #ifdef __cplusplus
23692 "C"
23693 #endif
23694 const char *_nl_expand_alias (const char *);
23695 int
23696 main ()
23697 {
23698 bindtextdomain ("", "");
23699 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23700   ;
23701   return 0;
23702 }
23703 _ACEOF
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (ac_try="$ac_link"
23706 case "(($ac_try" in
23707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708   *) ac_try_echo=$ac_try;;
23709 esac
23710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711   (eval "$ac_link") 2>conftest.er1
23712   ac_status=$?
23713   grep -v '^ *+' conftest.er1 >conftest.err
23714   rm -f conftest.er1
23715   cat conftest.err >&5
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); } && {
23718          test -z "$ac_c_werror_flag" ||
23719          test ! -s conftest.err
23720        } && test -s conftest$ac_exeext &&
23721        $as_test_x conftest$ac_exeext; then
23722   LIBINTL="$LIBINTL $LIBICONV"
23723                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23724                 gt_cv_func_gnugettext1_libintl=yes
23725
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730
23731 fi
23732
23733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23734       conftest$ac_exeext conftest.$ac_ext
23735             fi
23736             CPPFLAGS="$gt_save_CPPFLAGS"
23737             LIBS="$gt_save_LIBS"
23738 fi
23739 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23740 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23741         fi
23742
23743                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23744            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23745                 && test "$PACKAGE" != gettext-runtime \
23746                 && test "$PACKAGE" != gettext-tools; }; then
23747           gt_use_preinstalled_gnugettext=yes
23748         else
23749                     LIBINTL=
23750           LTLIBINTL=
23751           INCINTL=
23752         fi
23753
23754
23755         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23756                               nls_cv_use_gnu_gettext=yes
23757         fi
23758       fi
23759
23760       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23761                 BUILD_INCLUDED_LIBINTL=yes
23762         USE_INCLUDED_LIBINTL=yes
23763         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23764         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23765         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23766       fi
23767
23768       CATOBJEXT=
23769       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23770          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23771                 CATOBJEXT=.gmo
23772       fi
23773
23774
23775     if test -n "$INTL_MACOSX_LIBS"; then
23776       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23777          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23778                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23779         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23780       fi
23781     fi
23782
23783     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23784        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23785
23786 cat >>confdefs.h <<\_ACEOF
23787 #define ENABLE_NLS 1
23788 _ACEOF
23789
23790     else
23791       USE_NLS=no
23792     fi
23793   fi
23794
23795   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23796 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23797   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23798 echo "${ECHO_T}$USE_NLS" >&6; }
23799   if test "$USE_NLS" = "yes"; then
23800     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23801 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23802     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23803       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23804         gt_source="external libintl"
23805       else
23806         gt_source="libc"
23807       fi
23808     else
23809       gt_source="included intl directory"
23810     fi
23811     { echo "$as_me:$LINENO: result: $gt_source" >&5
23812 echo "${ECHO_T}$gt_source" >&6; }
23813   fi
23814
23815   if test "$USE_NLS" = "yes"; then
23816
23817     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23818       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23819         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23820 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23821         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23822 echo "${ECHO_T}$LIBINTL" >&6; }
23823
23824   for element in $INCINTL; do
23825     haveit=
23826     for x in $CPPFLAGS; do
23827
23828   acl_save_prefix="$prefix"
23829   prefix="$acl_final_prefix"
23830   acl_save_exec_prefix="$exec_prefix"
23831   exec_prefix="$acl_final_exec_prefix"
23832   eval x=\"$x\"
23833   exec_prefix="$acl_save_exec_prefix"
23834   prefix="$acl_save_prefix"
23835
23836       if test "X$x" = "X$element"; then
23837         haveit=yes
23838         break
23839       fi
23840     done
23841     if test -z "$haveit"; then
23842       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23843     fi
23844   done
23845
23846       fi
23847
23848
23849 cat >>confdefs.h <<\_ACEOF
23850 #define HAVE_GETTEXT 1
23851 _ACEOF
23852
23853
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_DCGETTEXT 1
23856 _ACEOF
23857
23858     fi
23859
23860         POSUB=po
23861   fi
23862
23863
23864             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23865       BUILD_INCLUDED_LIBINTL=yes
23866     fi
23867
23868
23869
23870
23871
23872         nls_cv_header_intl=
23873     nls_cv_header_libgt=
23874
23875         DATADIRNAME=share
23876
23877
23878         INSTOBJEXT=.mo
23879
23880
23881         GENCAT=gencat
23882
23883
23884         INTLOBJS=
23885     if test "$USE_INCLUDED_LIBINTL" = yes; then
23886       INTLOBJS="\$(GETTOBJS)"
23887     fi
23888
23889
23890         INTL_LIBTOOL_SUFFIX_PREFIX=
23891
23892
23893
23894     INTLLIBS="$LIBINTL"
23895
23896
23897
23898
23899
23900
23901 fi
23902
23903 support_mysql=no
23904 support_sqlite=no
23905 support_sqlite3=no
23906 support_postgresql=no
23907 support_dbi=no
23908 support_smartalloc=yes
23909 support_readline=yes
23910 support_conio=yes
23911 support_gnome=no
23912 support_bat=no
23913 support_wx_console=no
23914 support_tls=no
23915 support_crypto=no
23916 gnome_version=
23917 wx_version=
23918 support_static_tools=no
23919 support_static_fd=no
23920 support_static_sd=no
23921 support_static_dir=no
23922 support_static_cons=no
23923 support_python=no
23924 build_client_only=no
23925 build_dird=yes
23926 build_stored=yes
23927 cats=
23928 db_type=Internal
23929 DB_TYPE=bdb
23930
23931
23932 # Check whether --enable-gnome was given.
23933 if test "${enable_gnome+set}" = set; then
23934   enableval=$enable_gnome;
23935        if test x$enableval = xyes; then
23936           support_gnome=yes
23937        fi
23938
23939
23940 fi
23941
23942
23943 GNOME_DIR=
23944 if test x$support_gnome = xyes; then
23945    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23946    pkg=$?
23947    if test $pkg = 0; then
23948       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23949       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23950       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23951       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23952
23953
23954
23955
23956       GNOME_DIR=src/gnome2-console
23957       gnome_version="Version 2.x"
23958    else
23959       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23960 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23961    { (exit 1); exit 1; }; }
23962    fi
23963 fi
23964
23965
23966 # Check whether --enable-bat was given.
23967 if test "${enable_bat+set}" = set; then
23968   enableval=$enable_bat;
23969        if test x$enableval = xyes; then
23970
23971 cat >>confdefs.h <<\_ACEOF
23972 #define HAVE_BAT 1
23973 _ACEOF
23974
23975           support_bat=yes
23976        fi
23977
23978
23979 fi
23980
23981
23982 BAT_DIR=
23983 if test x$support_bat = xyes; then
23984    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
23985    pkg=$?
23986    if test $pkg = 0; then
23987       BAT_DIR=src/qt-console
23988    else
23989       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
23990 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
23991    { (exit 1); exit 1; }; }
23992    fi
23993 fi
23994
23995 got_qwt=no
23996 QWT_INC=
23997 QWT_LDFLAGS=
23998 QWT_LIB=
23999 QWT=
24000 no_qwt=no
24001 if test x$support_bat = xyes; then
24002    { echo "$as_me:$LINENO: checking for qwt support" >&5
24003 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24004
24005 # Check whether --with-qwt was given.
24006 if test "${with_qwt+set}" = set; then
24007   withval=$with_qwt;
24008           case "$with_qwt" in
24009           no)
24010              no_qwt=yes
24011              ;;
24012           yes|*)
24013              if test -f ${with_qwt}/include/qwt.h; then
24014                 QWT_INC="${with_qwt}/include"
24015                 QWT_LDFLAGS="-L${with_qwt}/lib"
24016                 QWT_LIB="-lqwt"
24017                 QWT="qwt"
24018              fi
24019              ;;
24020           esac
24021
24022
24023 fi
24024
24025
24026             if test $no_qwt = no; then
24027       if test x$QWT_INC = x; then
24028          for root in /usr /usr/local; do
24029             for ver in qwt qwt5 qwt-qt4; do
24030                if test -f ${root}/include/${ver}/qwt.h; then
24031                   QWT_INC="${root}/include/${ver}"
24032                   if test -d ${root}/lib64/; then
24033                      QWT_LDFLAGS="-L${root}/lib64"
24034                   elif test -d ${root}/lib/64/; then
24035                      QWT_LDFLAGS="-L${root}/64"
24036                   else
24037                      QWT_LDFLAGS="-L${root}/lib"
24038                   fi
24039                   QWT_LIB="-lqwt"
24040                   QWT="qwt"
24041                   got_qwt=yes
24042                   break;
24043                fi
24044             done
24045          done
24046       fi
24047    fi
24048    if test x$QWT_INC = x; then
24049       { echo "$as_me:$LINENO: result: no" >&5
24050 echo "${ECHO_T}no" >&6; }
24051    else
24052
24053 cat >>confdefs.h <<\_ACEOF
24054 #define HAVE_QWT 1
24055 _ACEOF
24056
24057       { echo "$as_me:$LINENO: result: yes" >&5
24058 echo "${ECHO_T}yes" >&6; }
24059    fi
24060 fi
24061
24062
24063
24064
24065
24066
24067
24068 # Check whether --enable-bwx-console was given.
24069 if test "${enable_bwx_console+set}" = set; then
24070   enableval=$enable_bwx_console;
24071        if test x$enableval = xyes; then
24072           support_wx_console=yes
24073        fi
24074
24075
24076 fi
24077
24078
24079 WX_DIR=
24080 if test x$support_wx_console = xyes; then
24081    abc=`$WXCONFIG $WXFLAGS --cppflags`
24082    pkg=$?
24083    if test $pkg = 0; then
24084       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24085       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24086       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24087
24088
24089
24090       WX_DIR=src/wx-console
24091    else
24092       echo " "
24093       echo "wx-config program not found. bwx-console disabled."
24094       echo " "
24095       support_wx_console=no
24096    fi
24097 fi
24098
24099
24100 # Check whether --enable-tray-monitor was given.
24101 if test "${enable_tray_monitor+set}" = set; then
24102   enableval=$enable_tray_monitor;
24103        if test x$enableval = xyes; then
24104           support_tray_monitor=yes
24105        fi
24106
24107
24108 fi
24109
24110
24111 TRAY_MONITOR_DIR=
24112 if test x$support_tray_monitor = xyes; then
24113    abc=`$PKGCONFIG --exists gtk+-2.0`
24114    pkg=$?
24115    if test $pkg = 0; then
24116       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24117       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24118
24119
24120       TRAY_MONITOR_DIR=src/tray-monitor
24121       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24122       pkg=$?
24123       if test $pkg = 0; then
24124
24125 cat >>confdefs.h <<\_ACEOF
24126 #define HAVE_GTK_2_4 1
24127 _ACEOF
24128
24129       fi
24130    fi
24131 fi
24132
24133
24134 # Check whether --enable-smartalloc was given.
24135 if test "${enable_smartalloc+set}" = set; then
24136   enableval=$enable_smartalloc;
24137        if test x$enableval = xno; then
24138           support_smartalloc=no
24139        fi
24140
24141
24142 fi
24143
24144
24145 if test x$support_smartalloc = xyes; then
24146
24147 cat >>confdefs.h <<\_ACEOF
24148 #define SMARTALLOC 1
24149 _ACEOF
24150
24151 fi
24152
24153 # Check whether --enable-static-tools was given.
24154 if test "${enable_static_tools+set}" = set; then
24155   enableval=$enable_static_tools;
24156        if test x$enableval = xyes; then
24157           support_static_tools=yes
24158        fi
24159
24160
24161 fi
24162
24163
24164 TTOOL_LDFLAGS=
24165 if test x$support_static_tools = xyes; then
24166    TTOOL_LDFLAGS="-static"
24167 fi
24168
24169
24170 # Check whether --enable-static-fd was given.
24171 if test "${enable_static_fd+set}" = set; then
24172   enableval=$enable_static_fd;
24173        if test x$enableval = xyes; then
24174           support_static_fd=yes
24175        fi
24176
24177
24178 fi
24179
24180
24181 STATIC_FD=
24182 if test x$support_static_fd = xyes; then
24183    STATIC_FD="static-bacula-fd"
24184 fi
24185
24186
24187 # Check whether --enable-static-sd was given.
24188 if test "${enable_static_sd+set}" = set; then
24189   enableval=$enable_static_sd;
24190        if test x$enableval = xyes; then
24191           support_static_sd=yes
24192        fi
24193
24194
24195 fi
24196
24197
24198 STATIC_SD=
24199 if test x$support_static_sd = xyes; then
24200    STATIC_SD="static-bacula-sd"
24201 fi
24202
24203
24204 # Check whether --enable-static-dir was given.
24205 if test "${enable_static_dir+set}" = set; then
24206   enableval=$enable_static_dir;
24207        if test x$enableval = xyes; then
24208           support_static_dir=yes
24209        fi
24210
24211
24212 fi
24213
24214
24215 STATIC_DIR=
24216 if test x$support_static_dir = xyes; then
24217    STATIC_DIR="static-bacula-dir"
24218 fi
24219
24220
24221 # Check whether --enable-static-cons was given.
24222 if test "${enable_static_cons+set}" = set; then
24223   enableval=$enable_static_cons;
24224        if test x$enableval = xyes; then
24225           support_static_cons=yes
24226        fi
24227
24228
24229 fi
24230
24231
24232 STATIC_CONS=
24233 STATIC_GNOME_CONS=
24234 STATIC_WX_CONS=
24235 if test x$support_static_cons = xyes; then
24236    STATIC_CONS="static-bconsole"
24237    STATIC_GNOME_CONS="static-bgnome-console"
24238    STATIC_WX_CONS="static-bwx-console"
24239 fi
24240
24241
24242
24243
24244 # Check whether --enable-client-only was given.
24245 if test "${enable_client_only+set}" = set; then
24246   enableval=$enable_client_only;
24247        if test x$enableval = xyes; then
24248           build_client_only=yes
24249           db_type=None
24250           DB_TYPE=none
24251        fi
24252
24253
24254 fi
24255
24256 if test x$build_client_only = xno; then
24257    ALL_DIRS="subdirs"
24258 else
24259    ALL_DIRS=""
24260 fi
24261
24262
24263 # Check whether --enable-build-dird was given.
24264 if test "${enable_build_dird+set}" = set; then
24265   enableval=$enable_build_dird;
24266        if test x$enableval = xno; then
24267           build_dird=no
24268        fi
24269
24270
24271 fi
24272
24273 if test x$build_dird = xyes; then
24274    DIRD_DIR="src/dird"
24275    DIR_TOOLS="DIRTOOLS"
24276 else
24277    DIRD_DIR=""
24278    DIR_TOOLS="NODIRTOOLS"
24279 fi
24280
24281
24282
24283 # Check whether --enable-build-stored was given.
24284 if test "${enable_build_stored+set}" = set; then
24285   enableval=$enable_build_stored;
24286       if test x$enableval = xno; then
24287          build_stored=no
24288       fi
24289
24290
24291 fi
24292
24293 if test x$build_stored = xyes; then
24294    STORED_DIR="src/stored"
24295 else
24296    STORED_DIR=""
24297 fi
24298
24299
24300 # Check whether --enable-conio was given.
24301 if test "${enable_conio+set}" = set; then
24302   enableval=$enable_conio;
24303        if test x$enableval = xno; then
24304           support_conio=no
24305        fi
24306
24307
24308 fi
24309
24310
24311
24312 support_ipv6=yes
24313 # Check whether --enable-ipv6 was given.
24314 if test "${enable_ipv6+set}" = set; then
24315   enableval=$enable_ipv6;
24316        if test x$enableval = xno; then
24317           support_ipv6=no
24318        fi
24319
24320
24321 fi
24322
24323
24324 if test x$support_ipv6 = xyes; then
24325     cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331  #include <sys/types.h>
24332 #include <sys/socket.h>
24333 #include <netinet/in.h>
24334 int
24335 main ()
24336 {
24337 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (ac_try="$ac_link"
24344 case "(($ac_try" in
24345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346   *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349   (eval "$ac_link") 2>conftest.er1
24350   ac_status=$?
24351   grep -v '^ *+' conftest.er1 >conftest.err
24352   rm -f conftest.er1
24353   cat conftest.err >&5
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } && {
24356          test -z "$ac_c_werror_flag" ||
24357          test ! -s conftest.err
24358        } && test -s conftest$ac_exeext &&
24359        $as_test_x conftest$ac_exeext; then
24360   support_ipv6=yes
24361 else
24362   echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365         support_ipv6=no
24366 fi
24367
24368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24369       conftest$ac_exeext conftest.$ac_ext
24370 fi
24371
24372 if test x$support_ipv6 = xyes; then
24373
24374 cat >>confdefs.h <<\_ACEOF
24375 #define HAVE_IPV6 1
24376 _ACEOF
24377
24378 fi
24379
24380 got_conio="no"
24381 if test x$support_conio = xyes; then
24382    if test "${ac_cv_header_termcap_h+set}" = set; then
24383   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24384 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24385 if test "${ac_cv_header_termcap_h+set}" = set; then
24386   echo $ECHO_N "(cached) $ECHO_C" >&6
24387 fi
24388 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24389 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24390 else
24391   # Is the header compilable?
24392 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24393 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24394 cat >conftest.$ac_ext <<_ACEOF
24395 /* confdefs.h.  */
24396 _ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h.  */
24400 $ac_includes_default
24401 #include <termcap.h>
24402 _ACEOF
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407   *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410   (eval "$ac_compile") 2>conftest.er1
24411   ac_status=$?
24412   grep -v '^ *+' conftest.er1 >conftest.err
24413   rm -f conftest.er1
24414   cat conftest.err >&5
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); } && {
24417          test -z "$ac_c_werror_flag" ||
24418          test ! -s conftest.err
24419        } && test -s conftest.$ac_objext; then
24420   ac_header_compiler=yes
24421 else
24422   echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425         ac_header_compiler=no
24426 fi
24427
24428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24430 echo "${ECHO_T}$ac_header_compiler" >&6; }
24431
24432 # Is the header present?
24433 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24434 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24435 cat >conftest.$ac_ext <<_ACEOF
24436 /* confdefs.h.  */
24437 _ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h.  */
24441 #include <termcap.h>
24442 _ACEOF
24443 if { (ac_try="$ac_cpp conftest.$ac_ext"
24444 case "(($ac_try" in
24445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446   *) ac_try_echo=$ac_try;;
24447 esac
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24450   ac_status=$?
24451   grep -v '^ *+' conftest.er1 >conftest.err
24452   rm -f conftest.er1
24453   cat conftest.err >&5
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); } >/dev/null && {
24456          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24457          test ! -s conftest.err
24458        }; then
24459   ac_header_preproc=yes
24460 else
24461   echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24463
24464   ac_header_preproc=no
24465 fi
24466
24467 rm -f conftest.err conftest.$ac_ext
24468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24469 echo "${ECHO_T}$ac_header_preproc" >&6; }
24470
24471 # So?  What about this header?
24472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24473   yes:no: )
24474     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24475 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24476     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24477 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24478     ac_header_preproc=yes
24479     ;;
24480   no:yes:* )
24481     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24482 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24483     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24484 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24485     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24486 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24487     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24488 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24489     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24490 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24491     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24492 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24493
24494     ;;
24495 esac
24496 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24497 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24498 if test "${ac_cv_header_termcap_h+set}" = set; then
24499   echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501   ac_cv_header_termcap_h=$ac_header_preproc
24502 fi
24503 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24504 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24505
24506 fi
24507 if test $ac_cv_header_termcap_h = yes; then
24508    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24509 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24510 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24511   echo $ECHO_N "(cached) $ECHO_C" >&6
24512 else
24513   ac_check_lib_save_LIBS=$LIBS
24514 LIBS="-ltermcap  $LIBS"
24515 cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h.  */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h.  */
24521
24522 /* Override any GCC internal prototype to avoid an error.
24523    Use char because int might match the return type of a GCC
24524    builtin and then its argument prototype would still apply.  */
24525 #ifdef __cplusplus
24526 extern "C"
24527 #endif
24528 char tgetent ();
24529 int
24530 main ()
24531 {
24532 return tgetent ();
24533   ;
24534   return 0;
24535 }
24536 _ACEOF
24537 rm -f conftest.$ac_objext conftest$ac_exeext
24538 if { (ac_try="$ac_link"
24539 case "(($ac_try" in
24540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541   *) ac_try_echo=$ac_try;;
24542 esac
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544   (eval "$ac_link") 2>conftest.er1
24545   ac_status=$?
24546   grep -v '^ *+' conftest.er1 >conftest.err
24547   rm -f conftest.er1
24548   cat conftest.err >&5
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); } && {
24551          test -z "$ac_c_werror_flag" ||
24552          test ! -s conftest.err
24553        } && test -s conftest$ac_exeext &&
24554        $as_test_x conftest$ac_exeext; then
24555   ac_cv_lib_termcap_tgetent=yes
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560         ac_cv_lib_termcap_tgetent=no
24561 fi
24562
24563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24564       conftest$ac_exeext conftest.$ac_ext
24565 LIBS=$ac_check_lib_save_LIBS
24566 fi
24567 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24568 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24569 if test $ac_cv_lib_termcap_tgetent = yes; then
24570    CONS_LIBS="-ltermcap"
24571     CONS_OBJ="conio.o"
24572     CONS_SRC="conio.c"
24573     got_conio="yes"
24574     support_readline=no
24575
24576 cat >>confdefs.h <<\_ACEOF
24577 #define HAVE_CONIO 1
24578 _ACEOF
24579
24580
24581 else
24582    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24583 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24584 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24585   echo $ECHO_N "(cached) $ECHO_C" >&6
24586 else
24587   ac_check_lib_save_LIBS=$LIBS
24588 LIBS="-lncurses  $LIBS"
24589 cat >conftest.$ac_ext <<_ACEOF
24590 /* confdefs.h.  */
24591 _ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h.  */
24595
24596 /* Override any GCC internal prototype to avoid an error.
24597    Use char because int might match the return type of a GCC
24598    builtin and then its argument prototype would still apply.  */
24599 #ifdef __cplusplus
24600 extern "C"
24601 #endif
24602 char tgetent ();
24603 int
24604 main ()
24605 {
24606 return tgetent ();
24607   ;
24608   return 0;
24609 }
24610 _ACEOF
24611 rm -f conftest.$ac_objext conftest$ac_exeext
24612 if { (ac_try="$ac_link"
24613 case "(($ac_try" in
24614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615   *) ac_try_echo=$ac_try;;
24616 esac
24617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24618   (eval "$ac_link") 2>conftest.er1
24619   ac_status=$?
24620   grep -v '^ *+' conftest.er1 >conftest.err
24621   rm -f conftest.er1
24622   cat conftest.err >&5
24623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624   (exit $ac_status); } && {
24625          test -z "$ac_c_werror_flag" ||
24626          test ! -s conftest.err
24627        } && test -s conftest$ac_exeext &&
24628        $as_test_x conftest$ac_exeext; then
24629   ac_cv_lib_ncurses_tgetent=yes
24630 else
24631   echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24633
24634         ac_cv_lib_ncurses_tgetent=no
24635 fi
24636
24637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24638       conftest$ac_exeext conftest.$ac_ext
24639 LIBS=$ac_check_lib_save_LIBS
24640 fi
24641 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24642 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24643 if test $ac_cv_lib_ncurses_tgetent = yes; then
24644    CONS_LIBS="-lncurses"
24645       CONS_OBJ="conio.o"
24646       CONS_SRC="conio.c"
24647       got_conio="yes"
24648       support_readline=no
24649
24650 cat >>confdefs.h <<\_ACEOF
24651 #define HAVE_CONIO 1
24652 _ACEOF
24653
24654
24655 fi
24656
24657
24658 fi
24659
24660
24661 else
24662
24663
24664 for ac_header in curses.h
24665 do
24666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24671   echo $ECHO_N "(cached) $ECHO_C" >&6
24672 fi
24673 ac_res=`eval echo '${'$as_ac_Header'}'`
24674                { echo "$as_me:$LINENO: result: $ac_res" >&5
24675 echo "${ECHO_T}$ac_res" >&6; }
24676 else
24677   # Is the header compilable?
24678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24680 cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686 $ac_includes_default
24687 #include <$ac_header>
24688 _ACEOF
24689 rm -f conftest.$ac_objext
24690 if { (ac_try="$ac_compile"
24691 case "(($ac_try" in
24692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693   *) ac_try_echo=$ac_try;;
24694 esac
24695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696   (eval "$ac_compile") 2>conftest.er1
24697   ac_status=$?
24698   grep -v '^ *+' conftest.er1 >conftest.err
24699   rm -f conftest.er1
24700   cat conftest.err >&5
24701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702   (exit $ac_status); } && {
24703          test -z "$ac_c_werror_flag" ||
24704          test ! -s conftest.err
24705        } && test -s conftest.$ac_objext; then
24706   ac_header_compiler=yes
24707 else
24708   echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24710
24711         ac_header_compiler=no
24712 fi
24713
24714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24716 echo "${ECHO_T}$ac_header_compiler" >&6; }
24717
24718 # Is the header present?
24719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24721 cat >conftest.$ac_ext <<_ACEOF
24722 /* confdefs.h.  */
24723 _ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h.  */
24727 #include <$ac_header>
24728 _ACEOF
24729 if { (ac_try="$ac_cpp conftest.$ac_ext"
24730 case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24736   ac_status=$?
24737   grep -v '^ *+' conftest.er1 >conftest.err
24738   rm -f conftest.er1
24739   cat conftest.err >&5
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); } >/dev/null && {
24742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24743          test ! -s conftest.err
24744        }; then
24745   ac_header_preproc=yes
24746 else
24747   echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750   ac_header_preproc=no
24751 fi
24752
24753 rm -f conftest.err conftest.$ac_ext
24754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24755 echo "${ECHO_T}$ac_header_preproc" >&6; }
24756
24757 # So?  What about this header?
24758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24759   yes:no: )
24760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24764     ac_header_preproc=yes
24765     ;;
24766   no:yes:* )
24767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24769     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24770 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24771     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24773     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24774 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24777     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24779
24780     ;;
24781 esac
24782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24785   echo $ECHO_N "(cached) $ECHO_C" >&6
24786 else
24787   eval "$as_ac_Header=\$ac_header_preproc"
24788 fi
24789 ac_res=`eval echo '${'$as_ac_Header'}'`
24790                { echo "$as_me:$LINENO: result: $ac_res" >&5
24791 echo "${ECHO_T}$ac_res" >&6; }
24792
24793 fi
24794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24795   cat >>confdefs.h <<_ACEOF
24796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24797 _ACEOF
24798
24799 fi
24800
24801 done
24802
24803     { echo "$as_me:$LINENO: checking for term.h" >&5
24804 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24805 if test "${ac_cv_header_term_h+set}" = set; then
24806   echo $ECHO_N "(cached) $ECHO_C" >&6
24807 else
24808   cat >conftest.$ac_ext <<_ACEOF
24809 /* confdefs.h.  */
24810 _ACEOF
24811 cat confdefs.h >>conftest.$ac_ext
24812 cat >>conftest.$ac_ext <<_ACEOF
24813 /* end confdefs.h.  */
24814 #if HAVE_CURSES_H
24815 #include <curses.h>
24816 #endif
24817
24818
24819 #include <term.h>
24820 _ACEOF
24821 rm -f conftest.$ac_objext
24822 if { (ac_try="$ac_compile"
24823 case "(($ac_try" in
24824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825   *) ac_try_echo=$ac_try;;
24826 esac
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828   (eval "$ac_compile") 2>conftest.er1
24829   ac_status=$?
24830   grep -v '^ *+' conftest.er1 >conftest.err
24831   rm -f conftest.er1
24832   cat conftest.err >&5
24833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834   (exit $ac_status); } && {
24835          test -z "$ac_c_werror_flag" ||
24836          test ! -s conftest.err
24837        } && test -s conftest.$ac_objext; then
24838   ac_cv_header_term_h=yes
24839 else
24840   echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24842
24843         ac_cv_header_term_h=no
24844 fi
24845
24846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24847 fi
24848 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24849 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24850 if test $ac_cv_header_term_h = yes; then
24851    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24852 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24853 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24854   echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856   ac_check_lib_save_LIBS=$LIBS
24857 LIBS="-lcurses  $LIBS"
24858 cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864
24865 /* Override any GCC internal prototype to avoid an error.
24866    Use char because int might match the return type of a GCC
24867    builtin and then its argument prototype would still apply.  */
24868 #ifdef __cplusplus
24869 extern "C"
24870 #endif
24871 char tgetent ();
24872 int
24873 main ()
24874 {
24875 return tgetent ();
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 rm -f conftest.$ac_objext conftest$ac_exeext
24881 if { (ac_try="$ac_link"
24882 case "(($ac_try" in
24883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884   *) ac_try_echo=$ac_try;;
24885 esac
24886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887   (eval "$ac_link") 2>conftest.er1
24888   ac_status=$?
24889   grep -v '^ *+' conftest.er1 >conftest.err
24890   rm -f conftest.er1
24891   cat conftest.err >&5
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); } && {
24894          test -z "$ac_c_werror_flag" ||
24895          test ! -s conftest.err
24896        } && test -s conftest$ac_exeext &&
24897        $as_test_x conftest$ac_exeext; then
24898   ac_cv_lib_curses_tgetent=yes
24899 else
24900   echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24902
24903         ac_cv_lib_curses_tgetent=no
24904 fi
24905
24906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24907       conftest$ac_exeext conftest.$ac_ext
24908 LIBS=$ac_check_lib_save_LIBS
24909 fi
24910 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24911 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24912 if test $ac_cv_lib_curses_tgetent = yes; then
24913    CONS_LIBS="-lcurses"
24914          CONS_OBJ="conio.o"
24915          CONS_SRC="conio.c"
24916          got_conio="yes"
24917          support_readline=no
24918
24919 cat >>confdefs.h <<\_ACEOF
24920 #define HAVE_CONIO 1
24921 _ACEOF
24922
24923
24924 fi
24925
24926
24927 else
24928    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24929 fi
24930
24931
24932
24933 fi
24934
24935
24936 fi
24937
24938
24939 # Check whether --enable-readline was given.
24940 if test "${enable_readline+set}" = set; then
24941   enableval=$enable_readline;
24942        if test x$enableval = xno; then
24943           support_readline=no
24944        fi
24945
24946
24947 fi
24948
24949
24950 got_readline="no"
24951 READLINE_SRC=
24952 if test x$support_readline = xyes; then
24953
24954 # Check whether --with-readline was given.
24955 if test "${with_readline+set}" = set; then
24956   withval=$with_readline;
24957           case "$with_readline" in
24958           no)
24959              :
24960              ;;
24961           yes|*)
24962              if test -f ${with_readline}/readline.h; then
24963                 CONS_INC="-I${with_readline}"
24964                 CONS_LDFLAGS="-L$with_readline"
24965              elif test -f ${with_readline}/include/readline/readline.h; then
24966                 CONS_INC="-I${with_readline}/include/readline"
24967                 CONS_LDFLAGS="-L${with_readline}/lib"
24968                 with_readline="${with_readline}/include/readline"
24969              else
24970                 with_readline="/usr/include/readline"
24971              fi
24972
24973              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24975   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
24976 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
24977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 fi
24980 ac_res=`eval echo '${'$as_ac_Header'}'`
24981                { echo "$as_me:$LINENO: result: $ac_res" >&5
24982 echo "${ECHO_T}$ac_res" >&6; }
24983 else
24984   # Is the header compilable?
24985 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
24986 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
24987 cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993 $ac_includes_default
24994 #include <${with_readline}/readline.h>
24995 _ACEOF
24996 rm -f conftest.$ac_objext
24997 if { (ac_try="$ac_compile"
24998 case "(($ac_try" in
24999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000   *) ac_try_echo=$ac_try;;
25001 esac
25002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25003   (eval "$ac_compile") 2>conftest.er1
25004   ac_status=$?
25005   grep -v '^ *+' conftest.er1 >conftest.err
25006   rm -f conftest.er1
25007   cat conftest.err >&5
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); } && {
25010          test -z "$ac_c_werror_flag" ||
25011          test ! -s conftest.err
25012        } && test -s conftest.$ac_objext; then
25013   ac_header_compiler=yes
25014 else
25015   echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25017
25018         ac_header_compiler=no
25019 fi
25020
25021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25023 echo "${ECHO_T}$ac_header_compiler" >&6; }
25024
25025 # Is the header present?
25026 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25027 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25028 cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034 #include <${with_readline}/readline.h>
25035 _ACEOF
25036 if { (ac_try="$ac_cpp conftest.$ac_ext"
25037 case "(($ac_try" in
25038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039   *) ac_try_echo=$ac_try;;
25040 esac
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25043   ac_status=$?
25044   grep -v '^ *+' conftest.er1 >conftest.err
25045   rm -f conftest.er1
25046   cat conftest.err >&5
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); } >/dev/null && {
25049          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25050          test ! -s conftest.err
25051        }; then
25052   ac_header_preproc=yes
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057   ac_header_preproc=no
25058 fi
25059
25060 rm -f conftest.err conftest.$ac_ext
25061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25062 echo "${ECHO_T}$ac_header_preproc" >&6; }
25063
25064 # So?  What about this header?
25065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25066   yes:no: )
25067     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25068 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25069     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25070 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25071     ac_header_preproc=yes
25072     ;;
25073   no:yes:* )
25074     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25075 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25076     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25077 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25078     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25079 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25080     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25081 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25082     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25083 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25084     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25085 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25086
25087     ;;
25088 esac
25089 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25090 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25092   echo $ECHO_N "(cached) $ECHO_C" >&6
25093 else
25094   eval "$as_ac_Header=\$ac_header_preproc"
25095 fi
25096 ac_res=`eval echo '${'$as_ac_Header'}'`
25097                { echo "$as_me:$LINENO: result: $ac_res" >&5
25098 echo "${ECHO_T}$ac_res" >&6; }
25099
25100 fi
25101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25102
25103
25104 cat >>confdefs.h <<\_ACEOF
25105 #define HAVE_READLINE 1
25106 _ACEOF
25107
25108                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25109                     got_readline="yes"
25110
25111 else
25112
25113                     echo " "
25114                     echo "readline.h not found. readline turned off ..."
25115                     echo " "
25116
25117
25118 fi
25119
25120
25121              ;;
25122           esac
25123
25124 else
25125
25126                   if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25127   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25128 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25129 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25130   echo $ECHO_N "(cached) $ECHO_C" >&6
25131 fi
25132 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25133 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25134 else
25135   # Is the header compilable?
25136 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25137 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25138 cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144 $ac_includes_default
25145 #include </usr/include/readline/readline.h>
25146 _ACEOF
25147 rm -f conftest.$ac_objext
25148 if { (ac_try="$ac_compile"
25149 case "(($ac_try" in
25150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25151   *) ac_try_echo=$ac_try;;
25152 esac
25153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25154   (eval "$ac_compile") 2>conftest.er1
25155   ac_status=$?
25156   grep -v '^ *+' conftest.er1 >conftest.err
25157   rm -f conftest.er1
25158   cat conftest.err >&5
25159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160   (exit $ac_status); } && {
25161          test -z "$ac_c_werror_flag" ||
25162          test ! -s conftest.err
25163        } && test -s conftest.$ac_objext; then
25164   ac_header_compiler=yes
25165 else
25166   echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169         ac_header_compiler=no
25170 fi
25171
25172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25174 echo "${ECHO_T}$ac_header_compiler" >&6; }
25175
25176 # Is the header present?
25177 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25178 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25179 cat >conftest.$ac_ext <<_ACEOF
25180 /* confdefs.h.  */
25181 _ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h.  */
25185 #include </usr/include/readline/readline.h>
25186 _ACEOF
25187 if { (ac_try="$ac_cpp conftest.$ac_ext"
25188 case "(($ac_try" in
25189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190   *) ac_try_echo=$ac_try;;
25191 esac
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } >/dev/null && {
25200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25201          test ! -s conftest.err
25202        }; then
25203   ac_header_preproc=yes
25204 else
25205   echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208   ac_header_preproc=no
25209 fi
25210
25211 rm -f conftest.err conftest.$ac_ext
25212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25213 echo "${ECHO_T}$ac_header_preproc" >&6; }
25214
25215 # So?  What about this header?
25216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25217   yes:no: )
25218     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25219 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25220     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25221 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25222     ac_header_preproc=yes
25223     ;;
25224   no:yes:* )
25225     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25226 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25227     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25228 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25229     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25230 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25231     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25232 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25233     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25234 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25235     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25236 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25237
25238     ;;
25239 esac
25240 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25241 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25242 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25243   echo $ECHO_N "(cached) $ECHO_C" >&6
25244 else
25245   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25246 fi
25247 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25248 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25249
25250 fi
25251 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25252
25253
25254 cat >>confdefs.h <<\_ACEOF
25255 #define HAVE_READLINE 1
25256 _ACEOF
25257
25258                 got_readline="yes"
25259                 CONS_INC="-I/usr/include/readline"
25260                 CONS_LIBS="-lreadline -ltermcap"
25261
25262 else
25263
25264                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25266   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25267 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25269   echo $ECHO_N "(cached) $ECHO_C" >&6
25270 fi
25271 ac_res=`eval echo '${'$as_ac_Header'}'`
25272                { echo "$as_me:$LINENO: result: $ac_res" >&5
25273 echo "${ECHO_T}$ac_res" >&6; }
25274 else
25275   # Is the header compilable?
25276 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25277 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h.  */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h.  */
25284 $ac_includes_default
25285 #include <${TOP_DIR}/depkgs/readline/readline.h>
25286 _ACEOF
25287 rm -f conftest.$ac_objext
25288 if { (ac_try="$ac_compile"
25289 case "(($ac_try" in
25290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291   *) ac_try_echo=$ac_try;;
25292 esac
25293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25294   (eval "$ac_compile") 2>conftest.er1
25295   ac_status=$?
25296   grep -v '^ *+' conftest.er1 >conftest.err
25297   rm -f conftest.er1
25298   cat conftest.err >&5
25299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); } && {
25301          test -z "$ac_c_werror_flag" ||
25302          test ! -s conftest.err
25303        } && test -s conftest.$ac_objext; then
25304   ac_header_compiler=yes
25305 else
25306   echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25308
25309         ac_header_compiler=no
25310 fi
25311
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25314 echo "${ECHO_T}$ac_header_compiler" >&6; }
25315
25316 # Is the header present?
25317 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25318 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25319 cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325 #include <${TOP_DIR}/depkgs/readline/readline.h>
25326 _ACEOF
25327 if { (ac_try="$ac_cpp conftest.$ac_ext"
25328 case "(($ac_try" in
25329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330   *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25334   ac_status=$?
25335   grep -v '^ *+' conftest.er1 >conftest.err
25336   rm -f conftest.er1
25337   cat conftest.err >&5
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); } >/dev/null && {
25340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25341          test ! -s conftest.err
25342        }; then
25343   ac_header_preproc=yes
25344 else
25345   echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25347
25348   ac_header_preproc=no
25349 fi
25350
25351 rm -f conftest.err conftest.$ac_ext
25352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25353 echo "${ECHO_T}$ac_header_preproc" >&6; }
25354
25355 # So?  What about this header?
25356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25357   yes:no: )
25358     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25360     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25361 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25362     ac_header_preproc=yes
25363     ;;
25364   no:yes:* )
25365     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25367     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25369     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25371     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25373     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25375     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25376 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25377
25378     ;;
25379 esac
25380 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25381 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25383   echo $ECHO_N "(cached) $ECHO_C" >&6
25384 else
25385   eval "$as_ac_Header=\$ac_header_preproc"
25386 fi
25387 ac_res=`eval echo '${'$as_ac_Header'}'`
25388                { echo "$as_me:$LINENO: result: $ac_res" >&5
25389 echo "${ECHO_T}$ac_res" >&6; }
25390
25391 fi
25392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25393
25394
25395 cat >>confdefs.h <<\_ACEOF
25396 #define HAVE_READLINE 1
25397 _ACEOF
25398
25399                         got_readline="yes"
25400                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25401                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25402                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25403                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25404
25405 else
25406
25407                         echo " "
25408                         echo "readline.h not found. readline turned off ..."
25409                         echo " "
25410
25411
25412 fi
25413
25414
25415
25416
25417 fi
25418
25419
25420
25421
25422 fi
25423
25424 fi
25425
25426
25427
25428
25429
25430
25431
25432
25433 MAKE_SHELL=/bin/sh
25434
25435 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25436 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25437 if test "${ac_cv_header_stat_broken+set}" = set; then
25438   echo $ECHO_N "(cached) $ECHO_C" >&6
25439 else
25440   cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446 #include <sys/types.h>
25447 #include <sys/stat.h>
25448
25449 #if defined S_ISBLK && defined S_IFDIR
25450 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25451 #endif
25452
25453 #if defined S_ISBLK && defined S_IFCHR
25454 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25455 #endif
25456
25457 #if defined S_ISLNK && defined S_IFREG
25458 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25459 #endif
25460
25461 #if defined S_ISSOCK && defined S_IFREG
25462 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25463 #endif
25464
25465 _ACEOF
25466 rm -f conftest.$ac_objext
25467 if { (ac_try="$ac_compile"
25468 case "(($ac_try" in
25469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470   *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473   (eval "$ac_compile") 2>conftest.er1
25474   ac_status=$?
25475   grep -v '^ *+' conftest.er1 >conftest.err
25476   rm -f conftest.er1
25477   cat conftest.err >&5
25478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479   (exit $ac_status); } && {
25480          test -z "$ac_c_werror_flag" ||
25481          test ! -s conftest.err
25482        } && test -s conftest.$ac_objext; then
25483   ac_cv_header_stat_broken=no
25484 else
25485   echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25487
25488         ac_cv_header_stat_broken=yes
25489 fi
25490
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492 fi
25493 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25494 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25495 if test $ac_cv_header_stat_broken = yes; then
25496
25497 cat >>confdefs.h <<\_ACEOF
25498 #define STAT_MACROS_BROKEN 1
25499 _ACEOF
25500
25501 fi
25502
25503
25504
25505
25506
25507
25508 ac_header_dirent=no
25509 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25510   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25511 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25512 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25514   echo $ECHO_N "(cached) $ECHO_C" >&6
25515 else
25516   cat >conftest.$ac_ext <<_ACEOF
25517 /* confdefs.h.  */
25518 _ACEOF
25519 cat confdefs.h >>conftest.$ac_ext
25520 cat >>conftest.$ac_ext <<_ACEOF
25521 /* end confdefs.h.  */
25522 #include <sys/types.h>
25523 #include <$ac_hdr>
25524
25525 int
25526 main ()
25527 {
25528 if ((DIR *) 0)
25529 return 0;
25530   ;
25531   return 0;
25532 }
25533 _ACEOF
25534 rm -f conftest.$ac_objext
25535 if { (ac_try="$ac_compile"
25536 case "(($ac_try" in
25537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25538   *) ac_try_echo=$ac_try;;
25539 esac
25540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25541   (eval "$ac_compile") 2>conftest.er1
25542   ac_status=$?
25543   grep -v '^ *+' conftest.er1 >conftest.err
25544   rm -f conftest.er1
25545   cat conftest.err >&5
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); } && {
25548          test -z "$ac_c_werror_flag" ||
25549          test ! -s conftest.err
25550        } && test -s conftest.$ac_objext; then
25551   eval "$as_ac_Header=yes"
25552 else
25553   echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25555
25556         eval "$as_ac_Header=no"
25557 fi
25558
25559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25560 fi
25561 ac_res=`eval echo '${'$as_ac_Header'}'`
25562                { echo "$as_me:$LINENO: result: $ac_res" >&5
25563 echo "${ECHO_T}$ac_res" >&6; }
25564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25565   cat >>confdefs.h <<_ACEOF
25566 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25567 _ACEOF
25568
25569 ac_header_dirent=$ac_hdr; break
25570 fi
25571
25572 done
25573 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25574 if test $ac_header_dirent = dirent.h; then
25575   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25577 if test "${ac_cv_search_opendir+set}" = set; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580   ac_func_search_save_LIBS=$LIBS
25581 cat >conftest.$ac_ext <<_ACEOF
25582 /* confdefs.h.  */
25583 _ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h.  */
25587
25588 /* Override any GCC internal prototype to avoid an error.
25589    Use char because int might match the return type of a GCC
25590    builtin and then its argument prototype would still apply.  */
25591 #ifdef __cplusplus
25592 extern "C"
25593 #endif
25594 char opendir ();
25595 int
25596 main ()
25597 {
25598 return opendir ();
25599   ;
25600   return 0;
25601 }
25602 _ACEOF
25603 for ac_lib in '' dir; do
25604   if test -z "$ac_lib"; then
25605     ac_res="none required"
25606   else
25607     ac_res=-l$ac_lib
25608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25609   fi
25610   rm -f conftest.$ac_objext conftest$ac_exeext
25611 if { (ac_try="$ac_link"
25612 case "(($ac_try" in
25613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614   *) ac_try_echo=$ac_try;;
25615 esac
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617   (eval "$ac_link") 2>conftest.er1
25618   ac_status=$?
25619   grep -v '^ *+' conftest.er1 >conftest.err
25620   rm -f conftest.er1
25621   cat conftest.err >&5
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); } && {
25624          test -z "$ac_c_werror_flag" ||
25625          test ! -s conftest.err
25626        } && test -s conftest$ac_exeext &&
25627        $as_test_x conftest$ac_exeext; then
25628   ac_cv_search_opendir=$ac_res
25629 else
25630   echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25632
25633
25634 fi
25635
25636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25637       conftest$ac_exeext
25638   if test "${ac_cv_search_opendir+set}" = set; then
25639   break
25640 fi
25641 done
25642 if test "${ac_cv_search_opendir+set}" = set; then
25643   :
25644 else
25645   ac_cv_search_opendir=no
25646 fi
25647 rm conftest.$ac_ext
25648 LIBS=$ac_func_search_save_LIBS
25649 fi
25650 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25651 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25652 ac_res=$ac_cv_search_opendir
25653 if test "$ac_res" != no; then
25654   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25655
25656 fi
25657
25658 else
25659   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25660 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25661 if test "${ac_cv_search_opendir+set}" = set; then
25662   echo $ECHO_N "(cached) $ECHO_C" >&6
25663 else
25664   ac_func_search_save_LIBS=$LIBS
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h.  */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h.  */
25671
25672 /* Override any GCC internal prototype to avoid an error.
25673    Use char because int might match the return type of a GCC
25674    builtin and then its argument prototype would still apply.  */
25675 #ifdef __cplusplus
25676 extern "C"
25677 #endif
25678 char opendir ();
25679 int
25680 main ()
25681 {
25682 return opendir ();
25683   ;
25684   return 0;
25685 }
25686 _ACEOF
25687 for ac_lib in '' x; do
25688   if test -z "$ac_lib"; then
25689     ac_res="none required"
25690   else
25691     ac_res=-l$ac_lib
25692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25693   fi
25694   rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (ac_try="$ac_link"
25696 case "(($ac_try" in
25697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698   *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701   (eval "$ac_link") 2>conftest.er1
25702   ac_status=$?
25703   grep -v '^ *+' conftest.er1 >conftest.err
25704   rm -f conftest.er1
25705   cat conftest.err >&5
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); } && {
25708          test -z "$ac_c_werror_flag" ||
25709          test ! -s conftest.err
25710        } && test -s conftest$ac_exeext &&
25711        $as_test_x conftest$ac_exeext; then
25712   ac_cv_search_opendir=$ac_res
25713 else
25714   echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25716
25717
25718 fi
25719
25720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25721       conftest$ac_exeext
25722   if test "${ac_cv_search_opendir+set}" = set; then
25723   break
25724 fi
25725 done
25726 if test "${ac_cv_search_opendir+set}" = set; then
25727   :
25728 else
25729   ac_cv_search_opendir=no
25730 fi
25731 rm conftest.$ac_ext
25732 LIBS=$ac_func_search_save_LIBS
25733 fi
25734 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25735 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25736 ac_res=$ac_cv_search_opendir
25737 if test "$ac_res" != no; then
25738   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25739
25740 fi
25741
25742 fi
25743
25744
25745
25746
25747
25748
25749
25750
25751 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25752 do
25753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25757   echo $ECHO_N "(cached) $ECHO_C" >&6
25758 else
25759   cat >conftest.$ac_ext <<_ACEOF
25760 /* confdefs.h.  */
25761 _ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h.  */
25765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25767 #define $ac_func innocuous_$ac_func
25768
25769 /* System header to define __stub macros and hopefully few prototypes,
25770     which can conflict with char $ac_func (); below.
25771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25772     <limits.h> exists even on freestanding compilers.  */
25773
25774 #ifdef __STDC__
25775 # include <limits.h>
25776 #else
25777 # include <assert.h>
25778 #endif
25779
25780 #undef $ac_func
25781
25782 /* Override any GCC internal prototype to avoid an error.
25783    Use char because int might match the return type of a GCC
25784    builtin and then its argument prototype would still apply.  */
25785 #ifdef __cplusplus
25786 extern "C"
25787 #endif
25788 char $ac_func ();
25789 /* The GNU C library defines this for functions which it implements
25790     to always fail with ENOSYS.  Some functions are actually named
25791     something starting with __ and the normal name is an alias.  */
25792 #if defined __stub_$ac_func || defined __stub___$ac_func
25793 choke me
25794 #endif
25795
25796 int
25797 main ()
25798 {
25799 return $ac_func ();
25800   ;
25801   return 0;
25802 }
25803 _ACEOF
25804 rm -f conftest.$ac_objext conftest$ac_exeext
25805 if { (ac_try="$ac_link"
25806 case "(($ac_try" in
25807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808   *) ac_try_echo=$ac_try;;
25809 esac
25810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811   (eval "$ac_link") 2>conftest.er1
25812   ac_status=$?
25813   grep -v '^ *+' conftest.er1 >conftest.err
25814   rm -f conftest.er1
25815   cat conftest.err >&5
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); } && {
25818          test -z "$ac_c_werror_flag" ||
25819          test ! -s conftest.err
25820        } && test -s conftest$ac_exeext &&
25821        $as_test_x conftest$ac_exeext; then
25822   eval "$as_ac_var=yes"
25823 else
25824   echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.$ac_ext >&5
25826
25827         eval "$as_ac_var=no"
25828 fi
25829
25830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25831       conftest$ac_exeext conftest.$ac_ext
25832 fi
25833 ac_res=`eval echo '${'$as_ac_var'}'`
25834                { echo "$as_me:$LINENO: result: $ac_res" >&5
25835 echo "${ECHO_T}$ac_res" >&6; }
25836 if test `eval echo '${'$as_ac_var'}'` = yes; then
25837   cat >>confdefs.h <<_ACEOF
25838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25839 _ACEOF
25840
25841 fi
25842 done
25843
25844
25845
25846 for ac_func in nanosleep nl_langinfo
25847 do
25848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25852   echo $ECHO_N "(cached) $ECHO_C" >&6
25853 else
25854   cat >conftest.$ac_ext <<_ACEOF
25855 /* confdefs.h.  */
25856 _ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h.  */
25860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25862 #define $ac_func innocuous_$ac_func
25863
25864 /* System header to define __stub macros and hopefully few prototypes,
25865     which can conflict with char $ac_func (); below.
25866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25867     <limits.h> exists even on freestanding compilers.  */
25868
25869 #ifdef __STDC__
25870 # include <limits.h>
25871 #else
25872 # include <assert.h>
25873 #endif
25874
25875 #undef $ac_func
25876
25877 /* Override any GCC internal prototype to avoid an error.
25878    Use char because int might match the return type of a GCC
25879    builtin and then its argument prototype would still apply.  */
25880 #ifdef __cplusplus
25881 extern "C"
25882 #endif
25883 char $ac_func ();
25884 /* The GNU C library defines this for functions which it implements
25885     to always fail with ENOSYS.  Some functions are actually named
25886     something starting with __ and the normal name is an alias.  */
25887 #if defined __stub_$ac_func || defined __stub___$ac_func
25888 choke me
25889 #endif
25890
25891 int
25892 main ()
25893 {
25894 return $ac_func ();
25895   ;
25896   return 0;
25897 }
25898 _ACEOF
25899 rm -f conftest.$ac_objext conftest$ac_exeext
25900 if { (ac_try="$ac_link"
25901 case "(($ac_try" in
25902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903   *) ac_try_echo=$ac_try;;
25904 esac
25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906   (eval "$ac_link") 2>conftest.er1
25907   ac_status=$?
25908   grep -v '^ *+' conftest.er1 >conftest.err
25909   rm -f conftest.er1
25910   cat conftest.err >&5
25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); } && {
25913          test -z "$ac_c_werror_flag" ||
25914          test ! -s conftest.err
25915        } && test -s conftest$ac_exeext &&
25916        $as_test_x conftest$ac_exeext; then
25917   eval "$as_ac_var=yes"
25918 else
25919   echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25921
25922         eval "$as_ac_var=no"
25923 fi
25924
25925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25926       conftest$ac_exeext conftest.$ac_ext
25927 fi
25928 ac_res=`eval echo '${'$as_ac_var'}'`
25929                { echo "$as_me:$LINENO: result: $ac_res" >&5
25930 echo "${ECHO_T}$ac_res" >&6; }
25931 if test `eval echo '${'$as_ac_var'}'` = yes; then
25932   cat >>confdefs.h <<_ACEOF
25933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25934 _ACEOF
25935
25936 fi
25937 done
25938
25939
25940 for ac_header in varargs.h
25941 do
25942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25944   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25947   echo $ECHO_N "(cached) $ECHO_C" >&6
25948 fi
25949 ac_res=`eval echo '${'$as_ac_Header'}'`
25950                { echo "$as_me:$LINENO: result: $ac_res" >&5
25951 echo "${ECHO_T}$ac_res" >&6; }
25952 else
25953   # Is the header compilable?
25954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25956 cat >conftest.$ac_ext <<_ACEOF
25957 /* confdefs.h.  */
25958 _ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h.  */
25962 $ac_includes_default
25963 #include <$ac_header>
25964 _ACEOF
25965 rm -f conftest.$ac_objext
25966 if { (ac_try="$ac_compile"
25967 case "(($ac_try" in
25968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969   *) ac_try_echo=$ac_try;;
25970 esac
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972   (eval "$ac_compile") 2>conftest.er1
25973   ac_status=$?
25974   grep -v '^ *+' conftest.er1 >conftest.err
25975   rm -f conftest.er1
25976   cat conftest.err >&5
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } && {
25979          test -z "$ac_c_werror_flag" ||
25980          test ! -s conftest.err
25981        } && test -s conftest.$ac_objext; then
25982   ac_header_compiler=yes
25983 else
25984   echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25986
25987         ac_header_compiler=no
25988 fi
25989
25990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25992 echo "${ECHO_T}$ac_header_compiler" >&6; }
25993
25994 # Is the header present?
25995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25997 cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h.  */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h.  */
26003 #include <$ac_header>
26004 _ACEOF
26005 if { (ac_try="$ac_cpp conftest.$ac_ext"
26006 case "(($ac_try" in
26007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008   *) ac_try_echo=$ac_try;;
26009 esac
26010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26012   ac_status=$?
26013   grep -v '^ *+' conftest.er1 >conftest.err
26014   rm -f conftest.er1
26015   cat conftest.err >&5
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); } >/dev/null && {
26018          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26019          test ! -s conftest.err
26020        }; then
26021   ac_header_preproc=yes
26022 else
26023   echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26025
26026   ac_header_preproc=no
26027 fi
26028
26029 rm -f conftest.err conftest.$ac_ext
26030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26031 echo "${ECHO_T}$ac_header_preproc" >&6; }
26032
26033 # So?  What about this header?
26034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26035   yes:no: )
26036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26040     ac_header_preproc=yes
26041     ;;
26042   no:yes:* )
26043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26055
26056     ;;
26057 esac
26058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26061   echo $ECHO_N "(cached) $ECHO_C" >&6
26062 else
26063   eval "$as_ac_Header=\$ac_header_preproc"
26064 fi
26065 ac_res=`eval echo '${'$as_ac_Header'}'`
26066                { echo "$as_me:$LINENO: result: $ac_res" >&5
26067 echo "${ECHO_T}$ac_res" >&6; }
26068
26069 fi
26070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26071   cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26073 _ACEOF
26074
26075 fi
26076
26077 done
26078
26079
26080
26081 { echo "$as_me:$LINENO: checking for Python support" >&5
26082 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26083
26084 # Check whether --with-python was given.
26085 if test "${with_python+set}" = set; then
26086   withval=$with_python;
26087        PYTHON_INCDIR=
26088        PYTHON_LIBS=
26089        if test "$withval" != "no"; then
26090           if test "$withval" = "yes"; then
26091              for python_root in /usr /usr/local /usr/sfw; do
26092                 for ver in python2.2 python2.3 python2.4 python2.5; do
26093                    if test -f $python_root/include/${ver}/Python.h; then
26094                       PYTHON_INCDIR=-I$python_root/include/${ver}
26095                       if test -d $python_root/lib64/${ver}/config; then
26096                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26097                       else
26098                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26099                       fi
26100                       break
26101                    fi
26102                 done
26103              done
26104
26105              if test x$PYTHON_INCDIR = x; then
26106                 if test -f $prefix/include/Python.h; then
26107                    PYTHON_INCDIR=-I$prefix/include
26108                    if test -d $prefix/lib64/config; then
26109                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26110                    else
26111                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26112                    fi
26113                 else
26114                    { echo "$as_me:$LINENO: result: no" >&5
26115 echo "${ECHO_T}no" >&6; }
26116                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26117 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26118    { (exit 1); exit 1; }; }
26119                 fi
26120              fi
26121           else
26122              if test -f $withval/Python.h; then
26123                 PYTHON_INCDIR=-I$withval
26124                 PYTHON_LIBS="-L$withval/config -lpython"
26125              elif test -f $withval/include/Python.h; then
26126                 PYTHON_INCDIR=-I$withval/include
26127                 if test -d $withval/lib64/config; then
26128                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26129                 else
26130                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26131                 fi
26132              elif test -f $withval/include/python/Python.h; then
26133                 PYTHON_INCDIR=-I$withval/include/python
26134                 if test -d $withval/lib64/python/config; then
26135                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26136                 else
26137                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26138                 fi
26139              else
26140                 { echo "$as_me:$LINENO: result: no" >&5
26141 echo "${ECHO_T}no" >&6; }
26142                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26143 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26144    { (exit 1); exit 1; }; }
26145              fi
26146           fi
26147
26148           cat >>confdefs.h <<\_ACEOF
26149 #define HAVE_PYTHON 1
26150 _ACEOF
26151
26152           { echo "$as_me:$LINENO: result: yes" >&5
26153 echo "${ECHO_T}yes" >&6; }
26154           support_python=yes
26155           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26156 echo "$as_me: checking for more Python libs" >&6;}
26157           saved_LIBS="$LIBS"; LIBS=
26158           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26159 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26160 if test "${ac_cv_search_shm_open+set}" = set; then
26161   echo $ECHO_N "(cached) $ECHO_C" >&6
26162 else
26163   ac_func_search_save_LIBS=$LIBS
26164 cat >conftest.$ac_ext <<_ACEOF
26165 /* confdefs.h.  */
26166 _ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h.  */
26170
26171 /* Override any GCC internal prototype to avoid an error.
26172    Use char because int might match the return type of a GCC
26173    builtin and then its argument prototype would still apply.  */
26174 #ifdef __cplusplus
26175 extern "C"
26176 #endif
26177 char shm_open ();
26178 int
26179 main ()
26180 {
26181 return shm_open ();
26182   ;
26183   return 0;
26184 }
26185 _ACEOF
26186 for ac_lib in '' rt; do
26187   if test -z "$ac_lib"; then
26188     ac_res="none required"
26189   else
26190     ac_res=-l$ac_lib
26191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26192   fi
26193   rm -f conftest.$ac_objext conftest$ac_exeext
26194 if { (ac_try="$ac_link"
26195 case "(($ac_try" in
26196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197   *) ac_try_echo=$ac_try;;
26198 esac
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200   (eval "$ac_link") 2>conftest.er1
26201   ac_status=$?
26202   grep -v '^ *+' conftest.er1 >conftest.err
26203   rm -f conftest.er1
26204   cat conftest.err >&5
26205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206   (exit $ac_status); } && {
26207          test -z "$ac_c_werror_flag" ||
26208          test ! -s conftest.err
26209        } && test -s conftest$ac_exeext &&
26210        $as_test_x conftest$ac_exeext; then
26211   ac_cv_search_shm_open=$ac_res
26212 else
26213   echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26215
26216
26217 fi
26218
26219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26220       conftest$ac_exeext
26221   if test "${ac_cv_search_shm_open+set}" = set; then
26222   break
26223 fi
26224 done
26225 if test "${ac_cv_search_shm_open+set}" = set; then
26226   :
26227 else
26228   ac_cv_search_shm_open=no
26229 fi
26230 rm conftest.$ac_ext
26231 LIBS=$ac_func_search_save_LIBS
26232 fi
26233 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26234 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26235 ac_res=$ac_cv_search_shm_open
26236 if test "$ac_res" != no; then
26237   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26238
26239 fi
26240
26241
26242 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26243 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26244 if test "${ac_cv_lib_util_openpty+set}" = set; then
26245   echo $ECHO_N "(cached) $ECHO_C" >&6
26246 else
26247   ac_check_lib_save_LIBS=$LIBS
26248 LIBS="-lutil  $LIBS"
26249 cat >conftest.$ac_ext <<_ACEOF
26250 /* confdefs.h.  */
26251 _ACEOF
26252 cat confdefs.h >>conftest.$ac_ext
26253 cat >>conftest.$ac_ext <<_ACEOF
26254 /* end confdefs.h.  */
26255
26256 /* Override any GCC internal prototype to avoid an error.
26257    Use char because int might match the return type of a GCC
26258    builtin and then its argument prototype would still apply.  */
26259 #ifdef __cplusplus
26260 extern "C"
26261 #endif
26262 char openpty ();
26263 int
26264 main ()
26265 {
26266 return openpty ();
26267   ;
26268   return 0;
26269 }
26270 _ACEOF
26271 rm -f conftest.$ac_objext conftest$ac_exeext
26272 if { (ac_try="$ac_link"
26273 case "(($ac_try" in
26274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275   *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278   (eval "$ac_link") 2>conftest.er1
26279   ac_status=$?
26280   grep -v '^ *+' conftest.er1 >conftest.err
26281   rm -f conftest.er1
26282   cat conftest.err >&5
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); } && {
26285          test -z "$ac_c_werror_flag" ||
26286          test ! -s conftest.err
26287        } && test -s conftest$ac_exeext &&
26288        $as_test_x conftest$ac_exeext; then
26289   ac_cv_lib_util_openpty=yes
26290 else
26291   echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26293
26294         ac_cv_lib_util_openpty=no
26295 fi
26296
26297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26298       conftest$ac_exeext conftest.$ac_ext
26299 LIBS=$ac_check_lib_save_LIBS
26300 fi
26301 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26302 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26303 if test $ac_cv_lib_util_openpty = yes; then
26304   cat >>confdefs.h <<_ACEOF
26305 #define HAVE_LIBUTIL 1
26306 _ACEOF
26307
26308   LIBS="-lutil $LIBS"
26309
26310 fi
26311
26312           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26313           LIBS="$saved_LIBS"
26314        else
26315           { echo "$as_me:$LINENO: result: no" >&5
26316 echo "${ECHO_T}no" >&6; }
26317        fi
26318
26319 else
26320
26321        { echo "$as_me:$LINENO: result: no" >&5
26322 echo "${ECHO_T}no" >&6; }
26323
26324
26325 fi
26326
26327
26328
26329
26330 { echo "$as_me:$LINENO: checking for socket" >&5
26331 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26332 if test "${ac_cv_func_socket+set}" = set; then
26333   echo $ECHO_N "(cached) $ECHO_C" >&6
26334 else
26335   cat >conftest.$ac_ext <<_ACEOF
26336 /* confdefs.h.  */
26337 _ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h.  */
26341 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26343 #define socket innocuous_socket
26344
26345 /* System header to define __stub macros and hopefully few prototypes,
26346     which can conflict with char socket (); below.
26347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26348     <limits.h> exists even on freestanding compilers.  */
26349
26350 #ifdef __STDC__
26351 # include <limits.h>
26352 #else
26353 # include <assert.h>
26354 #endif
26355
26356 #undef socket
26357
26358 /* Override any GCC internal prototype to avoid an error.
26359    Use char because int might match the return type of a GCC
26360    builtin and then its argument prototype would still apply.  */
26361 #ifdef __cplusplus
26362 extern "C"
26363 #endif
26364 char socket ();
26365 /* The GNU C library defines this for functions which it implements
26366     to always fail with ENOSYS.  Some functions are actually named
26367     something starting with __ and the normal name is an alias.  */
26368 #if defined __stub_socket || defined __stub___socket
26369 choke me
26370 #endif
26371
26372 int
26373 main ()
26374 {
26375 return socket ();
26376   ;
26377   return 0;
26378 }
26379 _ACEOF
26380 rm -f conftest.$ac_objext conftest$ac_exeext
26381 if { (ac_try="$ac_link"
26382 case "(($ac_try" in
26383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384   *) ac_try_echo=$ac_try;;
26385 esac
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387   (eval "$ac_link") 2>conftest.er1
26388   ac_status=$?
26389   grep -v '^ *+' conftest.er1 >conftest.err
26390   rm -f conftest.er1
26391   cat conftest.err >&5
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); } && {
26394          test -z "$ac_c_werror_flag" ||
26395          test ! -s conftest.err
26396        } && test -s conftest$ac_exeext &&
26397        $as_test_x conftest$ac_exeext; then
26398   ac_cv_func_socket=yes
26399 else
26400   echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26402
26403         ac_cv_func_socket=no
26404 fi
26405
26406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26407       conftest$ac_exeext conftest.$ac_ext
26408 fi
26409 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26410 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26411 if test $ac_cv_func_socket = yes; then
26412   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26413 echo "${ECHO_T}using libc's socket" >&6; }
26414 else
26415
26416 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26417 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26418 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26419   echo $ECHO_N "(cached) $ECHO_C" >&6
26420 else
26421   ac_check_lib_save_LIBS=$LIBS
26422 LIBS="-lxnet  $LIBS"
26423 cat >conftest.$ac_ext <<_ACEOF
26424 /* confdefs.h.  */
26425 _ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h.  */
26429
26430 /* Override any GCC internal prototype to avoid an error.
26431    Use char because int might match the return type of a GCC
26432    builtin and then its argument prototype would still apply.  */
26433 #ifdef __cplusplus
26434 extern "C"
26435 #endif
26436 char socket ();
26437 int
26438 main ()
26439 {
26440 return socket ();
26441   ;
26442   return 0;
26443 }
26444 _ACEOF
26445 rm -f conftest.$ac_objext conftest$ac_exeext
26446 if { (ac_try="$ac_link"
26447 case "(($ac_try" in
26448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449   *) ac_try_echo=$ac_try;;
26450 esac
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452   (eval "$ac_link") 2>conftest.er1
26453   ac_status=$?
26454   grep -v '^ *+' conftest.er1 >conftest.err
26455   rm -f conftest.er1
26456   cat conftest.err >&5
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); } && {
26459          test -z "$ac_c_werror_flag" ||
26460          test ! -s conftest.err
26461        } && test -s conftest$ac_exeext &&
26462        $as_test_x conftest$ac_exeext; then
26463   ac_cv_lib_xnet_socket=yes
26464 else
26465   echo "$as_me: failed program was:" >&5
26466 sed 's/^/| /' conftest.$ac_ext >&5
26467
26468         ac_cv_lib_xnet_socket=no
26469 fi
26470
26471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26472       conftest$ac_exeext conftest.$ac_ext
26473 LIBS=$ac_check_lib_save_LIBS
26474 fi
26475 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26476 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26477 if test $ac_cv_lib_xnet_socket = yes; then
26478   cat >>confdefs.h <<_ACEOF
26479 #define HAVE_LIBXNET 1
26480 _ACEOF
26481
26482   LIBS="-lxnet $LIBS"
26483
26484 fi
26485
26486
26487 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26488 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26489 if test "${ac_cv_lib_socket_socket+set}" = set; then
26490   echo $ECHO_N "(cached) $ECHO_C" >&6
26491 else
26492   ac_check_lib_save_LIBS=$LIBS
26493 LIBS="-lsocket  $LIBS"
26494 cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h.  */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h.  */
26500
26501 /* Override any GCC internal prototype to avoid an error.
26502    Use char because int might match the return type of a GCC
26503    builtin and then its argument prototype would still apply.  */
26504 #ifdef __cplusplus
26505 extern "C"
26506 #endif
26507 char socket ();
26508 int
26509 main ()
26510 {
26511 return socket ();
26512   ;
26513   return 0;
26514 }
26515 _ACEOF
26516 rm -f conftest.$ac_objext conftest$ac_exeext
26517 if { (ac_try="$ac_link"
26518 case "(($ac_try" in
26519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520   *) ac_try_echo=$ac_try;;
26521 esac
26522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26523   (eval "$ac_link") 2>conftest.er1
26524   ac_status=$?
26525   grep -v '^ *+' conftest.er1 >conftest.err
26526   rm -f conftest.er1
26527   cat conftest.err >&5
26528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529   (exit $ac_status); } && {
26530          test -z "$ac_c_werror_flag" ||
26531          test ! -s conftest.err
26532        } && test -s conftest$ac_exeext &&
26533        $as_test_x conftest$ac_exeext; then
26534   ac_cv_lib_socket_socket=yes
26535 else
26536   echo "$as_me: failed program was:" >&5
26537 sed 's/^/| /' conftest.$ac_ext >&5
26538
26539         ac_cv_lib_socket_socket=no
26540 fi
26541
26542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26543       conftest$ac_exeext conftest.$ac_ext
26544 LIBS=$ac_check_lib_save_LIBS
26545 fi
26546 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26547 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26548 if test $ac_cv_lib_socket_socket = yes; then
26549   cat >>confdefs.h <<_ACEOF
26550 #define HAVE_LIBSOCKET 1
26551 _ACEOF
26552
26553   LIBS="-lsocket $LIBS"
26554
26555 fi
26556
26557
26558 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26559 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26560 if test "${ac_cv_lib_inet_socket+set}" = set; then
26561   echo $ECHO_N "(cached) $ECHO_C" >&6
26562 else
26563   ac_check_lib_save_LIBS=$LIBS
26564 LIBS="-linet  $LIBS"
26565 cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571
26572 /* Override any GCC internal prototype to avoid an error.
26573    Use char because int might match the return type of a GCC
26574    builtin and then its argument prototype would still apply.  */
26575 #ifdef __cplusplus
26576 extern "C"
26577 #endif
26578 char socket ();
26579 int
26580 main ()
26581 {
26582 return socket ();
26583   ;
26584   return 0;
26585 }
26586 _ACEOF
26587 rm -f conftest.$ac_objext conftest$ac_exeext
26588 if { (ac_try="$ac_link"
26589 case "(($ac_try" in
26590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26591   *) ac_try_echo=$ac_try;;
26592 esac
26593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26594   (eval "$ac_link") 2>conftest.er1
26595   ac_status=$?
26596   grep -v '^ *+' conftest.er1 >conftest.err
26597   rm -f conftest.er1
26598   cat conftest.err >&5
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } && {
26601          test -z "$ac_c_werror_flag" ||
26602          test ! -s conftest.err
26603        } && test -s conftest$ac_exeext &&
26604        $as_test_x conftest$ac_exeext; then
26605   ac_cv_lib_inet_socket=yes
26606 else
26607   echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26609
26610         ac_cv_lib_inet_socket=no
26611 fi
26612
26613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26614       conftest$ac_exeext conftest.$ac_ext
26615 LIBS=$ac_check_lib_save_LIBS
26616 fi
26617 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26618 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26619 if test $ac_cv_lib_inet_socket = yes; then
26620   cat >>confdefs.h <<_ACEOF
26621 #define HAVE_LIBINET 1
26622 _ACEOF
26623
26624   LIBS="-linet $LIBS"
26625
26626 fi
26627
26628 fi
26629
26630
26631 TCPW_MSG="no"
26632 WRAPLIBS=""
26633
26634 # Check whether --with-tcp-wrappers was given.
26635 if test "${with_tcp_wrappers+set}" = set; then
26636   withval=$with_tcp_wrappers;
26637        if test "x$withval" != "xno" ; then
26638           saved_LIBS="$LIBS"
26639           LIBS="$saved_LIBS -lwrap"
26640           { echo "$as_me:$LINENO: checking for libwrap" >&5
26641 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26642           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26643 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26644 if test "${ac_cv_search_nanosleep+set}" = set; then
26645   echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647   ac_func_search_save_LIBS=$LIBS
26648 cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654
26655 /* Override any GCC internal prototype to avoid an error.
26656    Use char because int might match the return type of a GCC
26657    builtin and then its argument prototype would still apply.  */
26658 #ifdef __cplusplus
26659 extern "C"
26660 #endif
26661 char nanosleep ();
26662 int
26663 main ()
26664 {
26665 return nanosleep ();
26666   ;
26667   return 0;
26668 }
26669 _ACEOF
26670 for ac_lib in '' rt; do
26671   if test -z "$ac_lib"; then
26672     ac_res="none required"
26673   else
26674     ac_res=-l$ac_lib
26675     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26676   fi
26677   rm -f conftest.$ac_objext conftest$ac_exeext
26678 if { (ac_try="$ac_link"
26679 case "(($ac_try" in
26680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681   *) ac_try_echo=$ac_try;;
26682 esac
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684   (eval "$ac_link") 2>conftest.er1
26685   ac_status=$?
26686   grep -v '^ *+' conftest.er1 >conftest.err
26687   rm -f conftest.er1
26688   cat conftest.err >&5
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); } && {
26691          test -z "$ac_c_werror_flag" ||
26692          test ! -s conftest.err
26693        } && test -s conftest$ac_exeext &&
26694        $as_test_x conftest$ac_exeext; then
26695   ac_cv_search_nanosleep=$ac_res
26696 else
26697   echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26699
26700
26701 fi
26702
26703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26704       conftest$ac_exeext
26705   if test "${ac_cv_search_nanosleep+set}" = set; then
26706   break
26707 fi
26708 done
26709 if test "${ac_cv_search_nanosleep+set}" = set; then
26710   :
26711 else
26712   ac_cv_search_nanosleep=no
26713 fi
26714 rm conftest.$ac_ext
26715 LIBS=$ac_func_search_save_LIBS
26716 fi
26717 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26718 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26719 ac_res=$ac_cv_search_nanosleep
26720 if test "$ac_res" != no; then
26721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26722
26723 fi
26724
26725           cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731
26732                #include <sys/types.h>
26733                #include <tcpd.h>
26734                int deny_severity = 0;
26735                int allow_severity = 0;
26736                struct request_info *req;
26737
26738 int
26739 main ()
26740 {
26741
26742                 hosts_access(req);
26743
26744   ;
26745   return 0;
26746 }
26747 _ACEOF
26748 rm -f conftest.$ac_objext conftest$ac_exeext
26749 if { (ac_try="$ac_link"
26750 case "(($ac_try" in
26751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752   *) ac_try_echo=$ac_try;;
26753 esac
26754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26755   (eval "$ac_link") 2>conftest.er1
26756   ac_status=$?
26757   grep -v '^ *+' conftest.er1 >conftest.err
26758   rm -f conftest.er1
26759   cat conftest.err >&5
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); } && {
26762          test -z "$ac_c_werror_flag" ||
26763          test ! -s conftest.err
26764        } && test -s conftest$ac_exeext &&
26765        $as_test_x conftest$ac_exeext; then
26766
26767                  { echo "$as_me:$LINENO: result: yes" >&5
26768 echo "${ECHO_T}yes" >&6; }
26769
26770 cat >>confdefs.h <<\_ACEOF
26771 #define HAVE_LIBWRAP 1
26772 _ACEOF
26773
26774                  TCPW_MSG="yes"
26775                  LIBS="$saved_LIBS"
26776                  WRAPLIBS="-lwrap"
26777
26778 else
26779   echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782
26783                  LIBS="$saved_LIBS -lwrap -lnsl"
26784                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26785                  cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791
26792                        #include <sys/types.h>
26793                        #include <tcpd.h>
26794                        int deny_severity = 0;
26795                        int allow_severity = 0;
26796                        struct request_info *req;
26797
26798 int
26799 main ()
26800 {
26801
26802                        hosts_access(req);
26803
26804   ;
26805   return 0;
26806 }
26807 _ACEOF
26808 rm -f conftest.$ac_objext conftest$ac_exeext
26809 if { (ac_try="$ac_link"
26810 case "(($ac_try" in
26811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812   *) ac_try_echo=$ac_try;;
26813 esac
26814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26815   (eval "$ac_link") 2>conftest.er1
26816   ac_status=$?
26817   grep -v '^ *+' conftest.er1 >conftest.err
26818   rm -f conftest.er1
26819   cat conftest.err >&5
26820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821   (exit $ac_status); } && {
26822          test -z "$ac_c_werror_flag" ||
26823          test ! -s conftest.err
26824        } && test -s conftest$ac_exeext &&
26825        $as_test_x conftest$ac_exeext; then
26826
26827                       { echo "$as_me:$LINENO: result: yes" >&5
26828 echo "${ECHO_T}yes" >&6; }
26829
26830 cat >>confdefs.h <<\_ACEOF
26831 #define HAVE_LIBWRAP 1
26832 _ACEOF
26833
26834                       TCPW_MSG="yes"
26835                       LIBS="$saved_LIBS"
26836                       WRAPLIBS="-lwrap"
26837
26838 else
26839   echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842
26843                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26844 echo "$as_me: error: *** libwrap missing" >&2;}
26845    { (exit 1); exit 1; }; }
26846
26847
26848 fi
26849
26850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26851       conftest$ac_exeext conftest.$ac_ext
26852
26853
26854 fi
26855
26856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26857       conftest$ac_exeext conftest.$ac_ext
26858        fi
26859
26860
26861 fi
26862
26863
26864 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26865 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26866
26867 # Check whether --with-openssl was given.
26868 if test "${with_openssl+set}" = set; then
26869   withval=$with_openssl;
26870         with_openssl_directory=${withval}
26871
26872
26873 fi
26874
26875
26876 if test "x$with_openssl_directory" != "xno"; then
26877    OPENSSL_LIBS="-lssl -lcrypto"
26878    OPENSSL_INC=""
26879
26880    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26881       #
26882       # Make sure the $with_openssl_directory also makes sense
26883       #
26884       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26885          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26886          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26887       fi
26888    fi
26889
26890    saved_LIBS="${LIBS}"
26891    saved_CFLAGS="${CFLAGS}"
26892    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26893    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26894
26895    cat >conftest.$ac_ext <<_ACEOF
26896 /* confdefs.h.  */
26897 _ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h.  */
26901
26902           #include <openssl/ssl.h>
26903
26904 int
26905 main ()
26906 {
26907
26908            CRYPTO_set_id_callback(NULL);
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           support_tls="yes"
26934           support_crypto="yes"
26935
26936 else
26937   echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26939
26940
26941           support_tls="no"
26942
26943
26944 fi
26945
26946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26947       conftest$ac_exeext conftest.$ac_ext
26948
26949    cat >conftest.$ac_ext <<_ACEOF
26950 /* confdefs.h.  */
26951 _ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h.  */
26955
26956           #include <openssl/evp.h>
26957
26958 int
26959 main ()
26960 {
26961
26962           EVP_sha512();
26963
26964   ;
26965   return 0;
26966 }
26967 _ACEOF
26968 rm -f conftest.$ac_objext conftest$ac_exeext
26969 if { (ac_try="$ac_link"
26970 case "(($ac_try" in
26971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26972   *) ac_try_echo=$ac_try;;
26973 esac
26974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26975   (eval "$ac_link") 2>conftest.er1
26976   ac_status=$?
26977   grep -v '^ *+' conftest.er1 >conftest.err
26978   rm -f conftest.er1
26979   cat conftest.err >&5
26980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981   (exit $ac_status); } && {
26982          test -z "$ac_c_werror_flag" ||
26983          test ! -s conftest.err
26984        } && test -s conftest$ac_exeext &&
26985        $as_test_x conftest$ac_exeext; then
26986
26987           ac_cv_openssl_sha2="yes"
26988
26989 else
26990   echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26992
26993
26994           ac_cv_openssl_sha2="no"
26995
26996
26997 fi
26998
26999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27000       conftest$ac_exeext conftest.$ac_ext
27001
27002                cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008
27009           #include <openssl/evp.h>
27010
27011 int
27012 main ()
27013 {
27014
27015           EVP_aes_192_cbc();
27016
27017   ;
27018   return 0;
27019 }
27020 _ACEOF
27021 rm -f conftest.$ac_objext conftest$ac_exeext
27022 if { (ac_try="$ac_link"
27023 case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028   (eval "$ac_link") 2>conftest.er1
27029   ac_status=$?
27030   grep -v '^ *+' conftest.er1 >conftest.err
27031   rm -f conftest.er1
27032   cat conftest.err >&5
27033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034   (exit $ac_status); } && {
27035          test -z "$ac_c_werror_flag" ||
27036          test ! -s conftest.err
27037        } && test -s conftest$ac_exeext &&
27038        $as_test_x conftest$ac_exeext; then
27039
27040           ac_cv_openssl_export="no"
27041
27042 else
27043   echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27045
27046
27047           ac_cv_openssl_export="yes"
27048
27049
27050 fi
27051
27052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27053       conftest$ac_exeext conftest.$ac_ext
27054
27055    LIBS="${saved_LIBS}"
27056    CFLAGS="${saved_CFLAGS}"
27057
27058    if test "$support_tls" = "yes"; then
27059
27060 cat >>confdefs.h <<\_ACEOF
27061 #define HAVE_OPENSSL 1
27062 _ACEOF
27063
27064
27065 cat >>confdefs.h <<\_ACEOF
27066 #define HAVE_TLS 1
27067 _ACEOF
27068
27069
27070 cat >>confdefs.h <<\_ACEOF
27071 #define HAVE_CRYPTO 1
27072 _ACEOF
27073
27074    fi
27075
27076    if test "$ac_cv_openssl_sha2" = "yes"; then
27077
27078 cat >>confdefs.h <<\_ACEOF
27079 #define HAVE_SHA2 1
27080 _ACEOF
27081
27082    fi
27083
27084    if test "$ac_cv_openssl_export" = "yes"; then
27085
27086 cat >>confdefs.h <<\_ACEOF
27087 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27088 _ACEOF
27089
27090    fi
27091 else
27092    support_tls="no"
27093    support_crypto="no"
27094    OPENSSL_LIBS=""
27095    OPENSSL_INC=""
27096 fi
27097
27098 { echo "$as_me:$LINENO: result: $support_tls" >&5
27099 echo "${ECHO_T}$support_tls" >&6; }
27100
27101
27102
27103 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27104 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27105 if test "${ac_cv_search_dlopen+set}" = set; then
27106   echo $ECHO_N "(cached) $ECHO_C" >&6
27107 else
27108   ac_func_search_save_LIBS=$LIBS
27109 cat >conftest.$ac_ext <<_ACEOF
27110 /* confdefs.h.  */
27111 _ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h.  */
27115
27116 /* Override any GCC internal prototype to avoid an error.
27117    Use char because int might match the return type of a GCC
27118    builtin and then its argument prototype would still apply.  */
27119 #ifdef __cplusplus
27120 extern "C"
27121 #endif
27122 char dlopen ();
27123 int
27124 main ()
27125 {
27126 return dlopen ();
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 for ac_lib in '' dl; do
27132   if test -z "$ac_lib"; then
27133     ac_res="none required"
27134   else
27135     ac_res=-l$ac_lib
27136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27137   fi
27138   rm -f conftest.$ac_objext conftest$ac_exeext
27139 if { (ac_try="$ac_link"
27140 case "(($ac_try" in
27141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27142   *) ac_try_echo=$ac_try;;
27143 esac
27144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27145   (eval "$ac_link") 2>conftest.er1
27146   ac_status=$?
27147   grep -v '^ *+' conftest.er1 >conftest.err
27148   rm -f conftest.er1
27149   cat conftest.err >&5
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); } && {
27152          test -z "$ac_c_werror_flag" ||
27153          test ! -s conftest.err
27154        } && test -s conftest$ac_exeext &&
27155        $as_test_x conftest$ac_exeext; then
27156   ac_cv_search_dlopen=$ac_res
27157 else
27158   echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27160
27161
27162 fi
27163
27164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27165       conftest$ac_exeext
27166   if test "${ac_cv_search_dlopen+set}" = set; then
27167   break
27168 fi
27169 done
27170 if test "${ac_cv_search_dlopen+set}" = set; then
27171   :
27172 else
27173   ac_cv_search_dlopen=no
27174 fi
27175 rm conftest.$ac_ext
27176 LIBS=$ac_func_search_save_LIBS
27177 fi
27178 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27179 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27180 ac_res=$ac_cv_search_dlopen
27181 if test "$ac_res" != no; then
27182   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27183
27184 fi
27185
27186
27187 working_dir=`eval echo ${prefix}/var/bacula/working`
27188
27189 # Check whether --with-working-dir was given.
27190 if test "${with_working_dir+set}" = set; then
27191   withval=$with_working_dir;
27192        if test "x$withval" != "xno" ; then
27193          working_dir=$withval
27194        fi
27195
27196
27197 fi
27198
27199
27200
27201
27202 archive_dir=/tmp
27203
27204 # Check whether --with-archivedir was given.
27205 if test "${with_archivedir+set}" = set; then
27206   withval=$with_archivedir;
27207        if test "x$withval" != "xno" ; then
27208           archivedir=$withval
27209        fi
27210
27211
27212 fi
27213
27214
27215
27216
27217 scriptdir=`eval echo ${sysconfdir}`
27218
27219 # Check whether --with-scriptdir was given.
27220 if test "${with_scriptdir+set}" = set; then
27221   withval=$with_scriptdir;
27222        if test "x$withval" != "xno" ; then
27223           scriptdir=$withval
27224        fi
27225
27226
27227 fi
27228
27229
27230
27231
27232 # ------------------------------------------
27233 # Where to place plugindir (script files)
27234 # ------------------------------------------
27235 plugindir=`eval echo ${sysconfdir}`
27236
27237 # Check whether --with-plugindir was given.
27238 if test "${with_plugindir+set}" = set; then
27239   withval=$with_plugindir;
27240        if test "x$withval" != "xno" ; then
27241           plugindir=$withval
27242        fi
27243
27244
27245 fi
27246
27247
27248
27249
27250 dump_email=root@localhost
27251
27252 # Check whether --with-dump-email was given.
27253 if test "${with_dump_email+set}" = set; then
27254   withval=$with_dump_email;
27255        if test "x$withval" != "xno" ; then
27256           dump_email=$withval
27257        fi
27258
27259
27260 fi
27261
27262
27263
27264
27265 job_email=root@localhost
27266
27267 # Check whether --with-job-email was given.
27268 if test "${with_job_email+set}" = set; then
27269   withval=$with_job_email;
27270        if test "x$withval" != "xno" ; then
27271           job_email=$withval
27272        fi
27273
27274
27275 fi
27276
27277
27278
27279
27280 smtp_host=localhost
27281
27282 # Check whether --with-smtp_host was given.
27283 if test "${with_smtp_host+set}" = set; then
27284   withval=$with_smtp_host;
27285        if test "x$withval" != "xno" ; then
27286           smtp_host=$withval
27287        fi
27288
27289
27290 fi
27291
27292
27293
27294
27295 piddir=/var/run
27296
27297 # Check whether --with-pid-dir was given.
27298 if test "${with_pid_dir+set}" = set; then
27299   withval=$with_pid_dir;
27300        if test "x$withval" != "xno" ; then
27301           piddir=$withval
27302        fi
27303
27304
27305 fi
27306
27307
27308 cat >>confdefs.h <<_ACEOF
27309 #define _PATH_BACULA_PIDDIR "$piddir"
27310 _ACEOF
27311
27312
27313
27314 subsysdir=/var/run/subsys
27315 if test -d /var/run/subsys; then
27316    subsysdir=/var/run/subsys
27317 elif test -d /var/lock/subsys; then
27318    subsysdir=/var/lock/subsys
27319 else
27320    subsysdir=/var/run/subsys
27321 fi
27322
27323 # Check whether --with-subsys-dir was given.
27324 if test "${with_subsys_dir+set}" = set; then
27325   withval=$with_subsys_dir;
27326        if test "x$withval" != "xno" ; then
27327           subsysdir=$withval
27328        fi
27329
27330
27331 fi
27332
27333
27334
27335
27336 baseport=9101
27337
27338 # Check whether --with-baseport was given.
27339 if test "${with_baseport+set}" = set; then
27340   withval=$with_baseport;
27341        if test "x$withval" != "xno" ; then
27342           baseport=$withval
27343        fi
27344
27345
27346 fi
27347
27348
27349
27350 dir_port=`expr $baseport`
27351 fd_port=`expr $baseport + 1`
27352 sd_port=`expr $fd_port + 1`
27353
27354
27355
27356
27357
27358 dir_password=
27359
27360 # Check whether --with-dir-password was given.
27361 if test "${with_dir_password+set}" = set; then
27362   withval=$with_dir_password;
27363        if test "x$withval" != "xno" ; then
27364           dir_password=$withval
27365        fi
27366
27367
27368 fi
27369
27370
27371 if test "x$dir_password" = "x" ; then
27372    if test "x$OPENSSL" = "xnone" ; then
27373       key=`autoconf/randpass 33`
27374    else
27375       key=`openssl rand -base64 33`
27376    fi
27377    dir_password=$key
27378 fi
27379
27380 fd_password=
27381
27382 # Check whether --with-fd-password was given.
27383 if test "${with_fd_password+set}" = set; then
27384   withval=$with_fd_password;
27385        if test "x$withval" != "xno" ; then
27386           fd_password=$withval
27387        fi
27388
27389
27390 fi
27391
27392
27393 if test "x$fd_password" = "x" ; then
27394    if test "x$OPENSSL" = "xnone" ; then
27395       key=`autoconf/randpass 37`
27396    else
27397       key=`openssl rand -base64 33`
27398    fi
27399    fd_password=$key
27400 fi
27401
27402 sd_password=
27403
27404 # Check whether --with-sd-password was given.
27405 if test "${with_sd_password+set}" = set; then
27406   withval=$with_sd_password;
27407        if test "x$withval" != "xno" ; then
27408           sd_password=$withval
27409        fi
27410
27411
27412 fi
27413
27414
27415 if test "x$sd_password" = "x" ; then
27416    if test "x$OPENSSL" = "xnone" ; then
27417       key=`autoconf/randpass 41`
27418    else
27419       key=`openssl rand -base64 33`
27420    fi
27421    sd_password=$key
27422 fi
27423
27424 mon_dir_password=
27425
27426 # Check whether --with-mon-dir-password was given.
27427 if test "${with_mon_dir_password+set}" = set; then
27428   withval=$with_mon_dir_password;
27429        if test "x$withval" != "xno" ; then
27430           mon_dir_password=$withval
27431        fi
27432
27433
27434 fi
27435
27436
27437 if test "x$mon_dir_password" = "x" ; then
27438    if test "x$OPENSSL" = "xnone" ; then
27439       key=`autoconf/randpass 33`
27440    else
27441       key=`openssl rand -base64 33`
27442    fi
27443    mon_dir_password=$key
27444 fi
27445
27446 mon_fd_password=
27447
27448 # Check whether --with-mon-fd-password was given.
27449 if test "${with_mon_fd_password+set}" = set; then
27450   withval=$with_mon_fd_password;
27451        if test "x$withval" != "xno" ; then
27452           mon_fd_password=$withval
27453        fi
27454
27455
27456 fi
27457
27458
27459 if test "x$mon_fd_password" = "x" ; then
27460    if test "x$OPENSSL" = "xnone" ; then
27461       key=`autoconf/randpass 37`
27462    else
27463       key=`openssl rand -base64 33`
27464    fi
27465    mon_fd_password=$key
27466 fi
27467
27468 mon_sd_password=
27469
27470 # Check whether --with-mon-sd-password was given.
27471 if test "${with_mon_sd_password+set}" = set; then
27472   withval=$with_mon_sd_password;
27473        if test "x$withval" != "xno" ; then
27474           mon_sd_password=$withval
27475        fi
27476
27477
27478 fi
27479
27480
27481 if test "x$mon_sd_password" = "x" ; then
27482    if test "x$OPENSSL" = "xnone" ; then
27483       key=`autoconf/randpass 41`
27484    else
27485       key=`openssl rand -base64 33`
27486    fi
27487    mon_sd_password=$key
27488 fi
27489
27490
27491
27492
27493
27494
27495
27496
27497 db_name=bacula
27498
27499 # Check whether --with-db_name was given.
27500 if test "${with_db_name+set}" = set; then
27501   withval=$with_db_name;
27502        if test "x$withval" != "x" ; then
27503           db_name=$withval
27504        fi
27505
27506
27507 fi
27508
27509
27510
27511 db_user=bacula
27512
27513 # Check whether --with-db_user was given.
27514 if test "${with_db_user+set}" = set; then
27515   withval=$with_db_user;
27516        if test "x$withval" != "x" ; then
27517           db_user=$withval
27518        fi
27519
27520
27521 fi
27522
27523
27524
27525 db_password=
27526
27527 # Check whether --with-db_password was given.
27528 if test "${with_db_password+set}" = set; then
27529   withval=$with_db_password;
27530        if test "x$withval" != "x" ; then
27531           db_password=$withval
27532        fi
27533
27534
27535 fi
27536
27537
27538
27539 db_port=" "
27540
27541 # Check whether --with-db_port was given.
27542 if test "${with_db_port+set}" = set; then
27543   withval=$with_db_port;
27544        if test "x$withval" != "x" ; then
27545           db_port=$withval
27546        fi
27547
27548
27549 fi
27550
27551
27552
27553 #
27554 # Handle users and groups for each daemon
27555 #
27556 dir_user=
27557
27558 # Check whether --with-dir_user was given.
27559 if test "${with_dir_user+set}" = set; then
27560   withval=$with_dir_user;
27561        if test "x$withval" != "x" ; then
27562            dir_user=$withval
27563        fi
27564
27565
27566 fi
27567
27568
27569 dir_group=
27570
27571 # Check whether --with-dir_group was given.
27572 if test "${with_dir_group+set}" = set; then
27573   withval=$with_dir_group;
27574        if test "x$withval" != "x" ; then
27575           dir_group=$withval
27576        fi
27577
27578
27579 fi
27580
27581
27582 sd_user=
27583
27584 # Check whether --with-sd_user was given.
27585 if test "${with_sd_user+set}" = set; then
27586   withval=$with_sd_user;
27587        if test "x$withval" != "x" ; then
27588           sd_user=$withval
27589        fi
27590
27591
27592 fi
27593
27594
27595 sd_group=
27596
27597 # Check whether --with-sd_group was given.
27598 if test "${with_sd_group+set}" = set; then
27599   withval=$with_sd_group;
27600        if test "x$withval" != "x" ; then
27601           sd_group=$withval
27602        fi
27603
27604
27605 fi
27606
27607
27608 fd_user=
27609
27610 # Check whether --with-fd_user was given.
27611 if test "${with_fd_user+set}" = set; then
27612   withval=$with_fd_user;
27613        if test "x$withval" != "x" ; then
27614           fd_user=$withval
27615        fi
27616
27617
27618 fi
27619
27620
27621 fd_group=
27622
27623 # Check whether --with-fd_group was given.
27624 if test "${with_fd_group+set}" = set; then
27625   withval=$with_fd_group;
27626        if test "x$withval" != "x" ; then
27627           fd_group=$withval
27628        fi
27629
27630
27631 fi
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641 SBINPERM=0754
27642
27643 # Check whether --with-sbin-perm was given.
27644 if test "${with_sbin_perm+set}" = set; then
27645   withval=$with_sbin_perm;
27646        if test "x$withval" != "x" ; then
27647           SBINPERM=$withval
27648        fi
27649
27650
27651 fi
27652
27653
27654
27655
27656 SQL_LIB=
27657
27658 db_found=no
27659 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27660 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27661
27662 # Check whether --with-postgresql was given.
27663 if test "${with_postgresql+set}" = set; then
27664   withval=$with_postgresql;
27665   if test "$withval" != "no"; then
27666       if test "$db_found" = "yes"; then
27667           { echo "$as_me:$LINENO: result: error" >&5
27668 echo "${ECHO_T}error" >&6; }
27669           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27670 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27671    { (exit 1); exit 1; }; };
27672       fi
27673       if test "$withval" = "yes"; then
27674           PG_CONFIG=`which pg_config`
27675           if test -n "$PG_CONFIG";then
27676               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27677               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27678               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27679           elif test -f /usr/local/include/libpq-fe.h; then
27680               POSTGRESQL_INCDIR=/usr/local/include
27681               if test -d /usr/local/lib64; then
27682                  POSTGRESQL_LIBDIR=/usr/local/lib64
27683               else
27684                  POSTGRESQL_LIBDIR=/usr/local/lib
27685               fi
27686               POSTGRESQL_BINDIR=/usr/local/bin
27687           elif test -f /usr/include/libpq-fe.h; then
27688               POSTGRESQL_INCDIR=/usr/include
27689               if test -d /usr/lib64; then
27690                  POSTGRESQL_LIBDIR=/usr/lib64
27691               else
27692                  POSTGRESQL_LIBDIR=/usr/lib
27693               fi
27694               POSTGRESQL_BINDIR=/usr/bin
27695           elif test -f /usr/include/pgsql/libpq-fe.h; then
27696               POSTGRESQL_INCDIR=/usr/include/pgsql
27697               if test -d /usr/lib64/pgsql; then
27698                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27699               else
27700                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27701               fi
27702               POSTGRESQL_BINDIR=/usr/bin
27703           elif test -f /usr/include/postgresql/libpq-fe.h; then
27704               POSTGRESQL_INCDIR=/usr/include/postgresql
27705               if test -d /usr/lib64/postgresql; then
27706                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27707               else
27708                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27709               fi
27710               POSTGRESQL_BINDIR=/usr/bin
27711           else
27712               { echo "$as_me:$LINENO: result: no" >&5
27713 echo "${ECHO_T}no" >&6; }
27714               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27715 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27716    { (exit 1); exit 1; }; }
27717           fi
27718       elif test -f $withval/include/libpq-fe.h; then
27719           POSTGRESQL_INCDIR=$withval/include
27720           POSTGRESQL_LIBDIR=$withval/lib
27721           POSTGRESQL_BINDIR=$withval/bin
27722       elif test -f $withval/include/postgresql/libpq-fe.h; then
27723           POSTGRESQL_INCDIR=$withval/include/postgresql
27724      if test -d $withval/lib64; then
27725          POSTGRESQL_LIBDIR=$withval/lib64
27726      else
27727          POSTGRESQL_LIBDIR=$withval/lib
27728      fi
27729           POSTGRESQL_BINDIR=$withval/bin
27730       else
27731           { echo "$as_me:$LINENO: result: no" >&5
27732 echo "${ECHO_T}no" >&6; }
27733           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27734 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27735    { (exit 1); exit 1; }; }
27736       fi
27737       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27738       { echo "$as_me:$LINENO: checking for crypt" >&5
27739 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27740 if test "${ac_cv_func_crypt+set}" = set; then
27741   echo $ECHO_N "(cached) $ECHO_C" >&6
27742 else
27743   cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h.  */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h.  */
27749 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27751 #define crypt innocuous_crypt
27752
27753 /* System header to define __stub macros and hopefully few prototypes,
27754     which can conflict with char crypt (); below.
27755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27756     <limits.h> exists even on freestanding compilers.  */
27757
27758 #ifdef __STDC__
27759 # include <limits.h>
27760 #else
27761 # include <assert.h>
27762 #endif
27763
27764 #undef crypt
27765
27766 /* Override any GCC internal prototype to avoid an error.
27767    Use char because int might match the return type of a GCC
27768    builtin and then its argument prototype would still apply.  */
27769 #ifdef __cplusplus
27770 extern "C"
27771 #endif
27772 char crypt ();
27773 /* The GNU C library defines this for functions which it implements
27774     to always fail with ENOSYS.  Some functions are actually named
27775     something starting with __ and the normal name is an alias.  */
27776 #if defined __stub_crypt || defined __stub___crypt
27777 choke me
27778 #endif
27779
27780 int
27781 main ()
27782 {
27783 return crypt ();
27784   ;
27785   return 0;
27786 }
27787 _ACEOF
27788 rm -f conftest.$ac_objext conftest$ac_exeext
27789 if { (ac_try="$ac_link"
27790 case "(($ac_try" in
27791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792   *) ac_try_echo=$ac_try;;
27793 esac
27794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27795   (eval "$ac_link") 2>conftest.er1
27796   ac_status=$?
27797   grep -v '^ *+' conftest.er1 >conftest.err
27798   rm -f conftest.er1
27799   cat conftest.err >&5
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); } && {
27802          test -z "$ac_c_werror_flag" ||
27803          test ! -s conftest.err
27804        } && test -s conftest$ac_exeext &&
27805        $as_test_x conftest$ac_exeext; then
27806   ac_cv_func_crypt=yes
27807 else
27808   echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27810
27811         ac_cv_func_crypt=no
27812 fi
27813
27814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27815       conftest$ac_exeext conftest.$ac_ext
27816 fi
27817 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27818 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27819 if test $ac_cv_func_crypt = yes; then
27820   :
27821 else
27822   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27823 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27824 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27825   echo $ECHO_N "(cached) $ECHO_C" >&6
27826 else
27827   ac_check_lib_save_LIBS=$LIBS
27828 LIBS="-lcrypt  $LIBS"
27829 cat >conftest.$ac_ext <<_ACEOF
27830 /* confdefs.h.  */
27831 _ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h.  */
27835
27836 /* Override any GCC internal prototype to avoid an error.
27837    Use char because int might match the return type of a GCC
27838    builtin and then its argument prototype would still apply.  */
27839 #ifdef __cplusplus
27840 extern "C"
27841 #endif
27842 char crypt ();
27843 int
27844 main ()
27845 {
27846 return crypt ();
27847   ;
27848   return 0;
27849 }
27850 _ACEOF
27851 rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855   *) ac_try_echo=$ac_try;;
27856 esac
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858   (eval "$ac_link") 2>conftest.er1
27859   ac_status=$?
27860   grep -v '^ *+' conftest.er1 >conftest.err
27861   rm -f conftest.er1
27862   cat conftest.err >&5
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); } && {
27865          test -z "$ac_c_werror_flag" ||
27866          test ! -s conftest.err
27867        } && test -s conftest$ac_exeext &&
27868        $as_test_x conftest$ac_exeext; then
27869   ac_cv_lib_crypt_crypt=yes
27870 else
27871   echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27873
27874         ac_cv_lib_crypt_crypt=no
27875 fi
27876
27877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27878       conftest$ac_exeext conftest.$ac_ext
27879 LIBS=$ac_check_lib_save_LIBS
27880 fi
27881 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27882 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27883 if test $ac_cv_lib_crypt_crypt = yes; then
27884   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27885 fi
27886
27887 fi
27888
27889       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27890       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27891       SQL_BINDIR=$POSTGRESQL_BINDIR
27892       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27893
27894       cat >>confdefs.h <<\_ACEOF
27895 #define HAVE_POSTGRESQL 1
27896 _ACEOF
27897
27898       { echo "$as_me:$LINENO: result: yes" >&5
27899 echo "${ECHO_T}yes" >&6; }
27900       db_found=yes
27901       support_postgresql=yes
27902       db_type=PostgreSQL
27903       DB_TYPE=postgresql
27904   else
27905       { echo "$as_me:$LINENO: result: no" >&5
27906 echo "${ECHO_T}no" >&6; }
27907   fi
27908
27909 else
27910
27911   { echo "$as_me:$LINENO: result: no" >&5
27912 echo "${ECHO_T}no" >&6; }
27913
27914 fi
27915
27916
27917
27918
27919
27920
27921
27922
27923 db_found=no
27924 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27925 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27926
27927 # Check whether --with-mysql was given.
27928 if test "${with_mysql+set}" = set; then
27929   withval=$with_mysql;
27930   if test "$withval" != "no"; then
27931         if test "$withval" = "yes"; then
27932            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27933                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27934                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27935                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27936                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27937                    else
27938                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27939                    fi
27940                    MYSQL_BINDIR=/usr/local/mysql/bin
27941            elif test -f /usr/include/mysql/mysql.h; then
27942                    MYSQL_INCDIR=/usr/include/mysql
27943                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27944                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27945                            MYSQL_LIBDIR=/usr/lib64/mysql
27946                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27947                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27948                            MYSQL_LIBDIR=/usr/lib/mysql
27949                    else
27950                            MYSQL_LIBDIR=/usr/lib
27951                    fi
27952                    MYSQL_BINDIR=/usr/bin
27953            elif test -f /usr/include/mysql.h; then
27954                    MYSQL_INCDIR=/usr/include
27955                    if test -f /usr/lib64/libmysqlclient_r.a \
27956                         -o -f /usr/lib64/libmysqlclient_r.so; then
27957                            MYSQL_LIBDIR=/usr/lib64
27958                    else
27959                            MYSQL_LIBDIR=/usr/lib
27960                    fi
27961                    MYSQL_BINDIR=/usr/bin
27962            elif test -f /usr/local/include/mysql/mysql.h; then
27963                    MYSQL_INCDIR=/usr/local/include/mysql
27964                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27965                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27966                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27967                    else
27968                            MYSQL_LIBDIR=/usr/local/lib/mysql
27969                    fi
27970                    MYSQL_BINDIR=/usr/local/bin
27971            elif test -f /usr/local/include/mysql.h; then
27972                    MYSQL_INCDIR=/usr/local/include
27973                    if test -f /usr/local/lib64/libmysqlclient_r.a \
27974                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
27975                            MYSQL_LIBDIR=/usr/local/lib64
27976                    else
27977                            MYSQL_LIBDIR=/usr/local/lib
27978                    fi
27979                    MYSQL_BINDIR=/usr/local/bin
27980            else
27981               { echo "$as_me:$LINENO: result: no" >&5
27982 echo "${ECHO_T}no" >&6; }
27983               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
27984 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
27985    { (exit 1); exit 1; }; }
27986            fi
27987         else
27988            if test -f $withval/include/mysql/mysql.h; then
27989               MYSQL_INCDIR=$withval/include/mysql
27990               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
27991                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
27992                  MYSQL_LIBDIR=$withval/lib64/mysql
27993               else
27994                  MYSQL_LIBDIR=$withval/lib/mysql
27995                  # Solaris ...
27996                  if test -f $withval/lib/libmysqlclient_r.so; then
27997                     MYSQL_LIBDIR=$withval/lib
27998                  fi
27999               fi
28000               MYSQL_BINDIR=$withval/bin
28001            elif test -f $withval/include/mysql.h; then
28002               MYSQL_INCDIR=$withval/include
28003               if test -f $withval/lib64/libmysqlclient_r.a \
28004                    -o -f $withval/lib64/libmysqlclient_r.so; then
28005                  MYSQL_LIBDIR=$withval/lib64
28006               else
28007                  MYSQL_LIBDIR=$withval/lib
28008               fi
28009               MYSQL_BINDIR=$withval/bin
28010            else
28011               { echo "$as_me:$LINENO: result: no" >&5
28012 echo "${ECHO_T}no" >&6; }
28013               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28014 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28015    { (exit 1); exit 1; }; }
28016            fi
28017         fi
28018     SQL_INCLUDE=-I$MYSQL_INCDIR
28019     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28020          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28021        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28022        cat >>confdefs.h <<\_ACEOF
28023 #define HAVE_THREAD_SAFE_MYSQL 1
28024 _ACEOF
28025
28026     fi
28027     SQL_BINDIR=$MYSQL_BINDIR
28028     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28029
28030     cat >>confdefs.h <<\_ACEOF
28031 #define HAVE_MYSQL 1
28032 _ACEOF
28033
28034     { echo "$as_me:$LINENO: result: yes" >&5
28035 echo "${ECHO_T}yes" >&6; }
28036     db_found=yes
28037     support_mysql=yes
28038     db_type=MySQL
28039     DB_TYPE=mysql
28040
28041   else
28042         { echo "$as_me:$LINENO: result: no" >&5
28043 echo "${ECHO_T}no" >&6; }
28044   fi
28045
28046
28047 fi
28048
28049
28050
28051 # Check whether --with-embedded-mysql was given.
28052 if test "${with_embedded_mysql+set}" = set; then
28053   withval=$with_embedded_mysql;
28054   if test "$withval" != "no"; then
28055         if test "$withval" = "yes"; then
28056                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28057                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28058                         if test -d /usr/local/mysql/lib64/mysql; then
28059                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28060                         else
28061                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28062                         fi
28063                         MYSQL_BINDIR=/usr/local/mysql/bin
28064                 elif test -f /usr/include/mysql/mysql.h; then
28065                         MYSQL_INCDIR=/usr/include/mysql
28066                         if test -d /usr/lib64/mysql; then
28067                                 MYSQL_LIBDIR=/usr/lib64/mysql
28068                         else
28069                                 MYSQL_LIBDIR=/usr/lib/mysql
28070                         fi
28071                         MYSQL_BINDIR=/usr/bin
28072                 elif test -f /usr/include/mysql.h; then
28073                         MYSQL_INCDIR=/usr/include
28074                         if test -d /usr/lib64; then
28075                                 MYSQL_LIBDIR=/usr/lib64
28076                         else
28077                                 MYSQL_LIBDIR=/usr/lib
28078                         fi
28079                         MYSQL_BINDIR=/usr/bin
28080                 elif test -f /usr/local/include/mysql/mysql.h; then
28081                         MYSQL_INCDIR=/usr/local/include/mysql
28082                         if test -d /usr/local/lib64/mysql; then
28083                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28084                         else
28085                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28086                         fi
28087                         MYSQL_BINDIR=/usr/local/bin
28088                 elif test -f /usr/local/include/mysql.h; then
28089                         MYSQL_INCDIR=/usr/local/include
28090                         if test -d /usr/local/lib64; then
28091                                 MYSQL_LIBDIR=/usr/local/lib64
28092                         else
28093                                 MYSQL_LIBDIR=/usr/local/lib
28094                         fi
28095                         MYSQL_BINDIR=/usr/local/bin
28096                 else
28097                    { echo "$as_me:$LINENO: result: no" >&5
28098 echo "${ECHO_T}no" >&6; }
28099                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28100 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28101    { (exit 1); exit 1; }; }
28102                 fi
28103         else
28104                 if test -f $withval/include/mysql/mysql.h; then
28105                         MYSQL_INCDIR=$withval/include/mysql
28106                         if test -d $withval/lib64/mysql; then
28107                                 MYSQL_LIBDIR=$withval/lib64/mysql
28108                         else
28109                                 MYSQL_LIBDIR=$withval/lib/mysql
28110                         fi
28111                         MYSQL_BINDIR=$withval/bin
28112                 elif test -f $withval/include/mysql.h; then
28113                         MYSQL_INCDIR=$withval/include
28114                         if test -d $withval/lib64; then
28115                                 MYSQL_LIBDIR=$withval/lib64
28116                         else
28117                                 MYSQL_LIBDIR=$withval/lib
28118                         fi
28119                         MYSQL_BINDIR=$withval/bin
28120                 else
28121                    { echo "$as_me:$LINENO: result: no" >&5
28122 echo "${ECHO_T}no" >&6; }
28123                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28124 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28125    { (exit 1); exit 1; }; }
28126                 fi
28127         fi
28128     SQL_INCLUDE=-I$MYSQL_INCDIR
28129     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28130     SQL_BINDIR=$MYSQL_BINDIR
28131     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28132
28133     cat >>confdefs.h <<\_ACEOF
28134 #define HAVE_MYSQL 1
28135 _ACEOF
28136
28137     cat >>confdefs.h <<\_ACEOF
28138 #define HAVE_EMBEDDED_MYSQL 1
28139 _ACEOF
28140
28141     { echo "$as_me:$LINENO: result: yes" >&5
28142 echo "${ECHO_T}yes" >&6; }
28143     db_found=yes
28144     support_mysql=yes
28145     db_type=MySQL
28146     DB_TYPE=mysql
28147
28148   else
28149         { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151   fi
28152
28153
28154 fi
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165 db_found=no
28166 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28167 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28168
28169 # Check whether --with-sqlite3 was given.
28170 if test "${with_sqlite3+set}" = set; then
28171   withval=$with_sqlite3;
28172   if test "$withval" != "no"; then
28173      if test "$withval" = "yes"; then
28174         if test -f /usr/local/include/sqlite3.h; then
28175            SQLITE_INCDIR=/usr/local/include
28176            if test -d /usr/local/lib64; then
28177               SQLITE_LIBDIR=/usr/local/lib64
28178            else
28179               SQLITE_LIBDIR=/usr/local/lib
28180            fi
28181            SQLITE_BINDIR=/usr/local/bin
28182         elif test -f /usr/include/sqlite3.h; then
28183            SQLITE_INCDIR=/usr/include
28184            if test -d /usr/lib64; then
28185               SQLITE_LIBDIR=/usr/lib64
28186            else
28187               SQLITE_LIBDIR=/usr/lib
28188            fi
28189            SQLITE_BINDIR=/usr/bin
28190         elif test -f $prefix/include/sqlite3.h; then
28191            SQLITE_INCDIR=$prefix/include
28192            if test -d $prefix/lib64; then
28193               SQLITE_LIBDIR=$prefix/lib64
28194            else
28195               SQLITE_LIBDIR=$prefix/lib
28196            fi
28197            SQLITE_BINDIR=$prefix/bin
28198         else
28199            { echo "$as_me:$LINENO: result: no" >&5
28200 echo "${ECHO_T}no" >&6; }
28201            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28202 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28203    { (exit 1); exit 1; }; }
28204         fi
28205      else
28206         if test -f $withval/sqlite3.h; then
28207            SQLITE_INCDIR=$withval
28208            SQLITE_LIBDIR=$withval
28209            SQLITE_BINDIR=$withval
28210         elif test -f $withval/include/sqlite3.h; then
28211            SQLITE_INCDIR=$withval/include
28212            if test -d $withval/lib64; then
28213               SQLITE_LIBDIR=$withval/lib64
28214            else
28215               SQLITE_LIBDIR=$withval/lib
28216            fi
28217            SQLITE_BINDIR=$withval/bin
28218         else
28219            { echo "$as_me:$LINENO: result: no" >&5
28220 echo "${ECHO_T}no" >&6; }
28221            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28222 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28223    { (exit 1); exit 1; }; }
28224         fi
28225      fi
28226      SQL_INCLUDE=-I$SQLITE_INCDIR
28227      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28228      SQL_BINDIR=$SQLITE_BINDIR
28229      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28230
28231      cat >>confdefs.h <<\_ACEOF
28232 #define HAVE_SQLITE3 1
28233 _ACEOF
28234
28235      { echo "$as_me:$LINENO: result: yes" >&5
28236 echo "${ECHO_T}yes" >&6; }
28237      db_found=yes
28238      support_sqlite3=yes
28239      db_type=SQLite3
28240      DB_TYPE=sqlite3
28241
28242   else
28243      { echo "$as_me:$LINENO: result: no" >&5
28244 echo "${ECHO_T}no" >&6; }
28245   fi
28246
28247 else
28248
28249   { echo "$as_me:$LINENO: result: no" >&5
28250 echo "${ECHO_T}no" >&6; }
28251
28252 fi
28253
28254
28255
28256
28257
28258
28259
28260
28261 db_found=no
28262 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28263 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28264
28265 # Check whether --with-sqlite was given.
28266 if test "${with_sqlite+set}" = set; then
28267   withval=$with_sqlite;
28268   if test "$withval" != "no"; then
28269      if test "$withval" = "yes"; then
28270         if test -f /usr/local/include/sqlite.h; then
28271            SQLITE_INCDIR=/usr/local/include
28272            if test -d /usr/local/lib64; then
28273               SQLITE_LIBDIR=/usr/local/lib64
28274            else
28275               SQLITE_LIBDIR=/usr/local/lib
28276            fi
28277            SQLITE_BINDIR=/usr/local/bin
28278         elif test -f /usr/include/sqlite.h; then
28279            SQLITE_INCDIR=/usr/include
28280            if test -d /usr/lib64; then
28281               SQLITE_LIBDIR=/usr/lib64
28282            else
28283               SQLITE_LIBDIR=/usr/lib
28284            fi
28285            SQLITE_BINDIR=/usr/bin
28286         elif test -f $prefix/include/sqlite.h; then
28287            SQLITE_INCDIR=$prefix/include
28288            if test -d $prefix/lib64; then
28289               SQLITE_LIBDIR=$prefix/lib64
28290            else
28291               SQLITE_LIBDIR=$prefix/lib
28292            fi
28293            SQLITE_BINDIR=$prefix/bin
28294         else
28295            { echo "$as_me:$LINENO: result: no" >&5
28296 echo "${ECHO_T}no" >&6; }
28297            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28298 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28299    { (exit 1); exit 1; }; }
28300         fi
28301      else
28302         if test -f $withval/sqlite.h; then
28303            SQLITE_INCDIR=$withval
28304            SQLITE_LIBDIR=$withval
28305            SQLITE_BINDIR=$withval
28306         elif test -f $withval/include/sqlite.h; then
28307            SQLITE_INCDIR=$withval/include
28308            if test -d $withval/lib64; then
28309               SQLITE_LIBDIR=$withval/lib64
28310            else
28311               SQLITE_LIBDIR=$withval/lib
28312            fi
28313            SQLITE_BINDIR=$withval/bin
28314         else
28315            { echo "$as_me:$LINENO: result: no" >&5
28316 echo "${ECHO_T}no" >&6; }
28317            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28318 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28319    { (exit 1); exit 1; }; }
28320         fi
28321      fi
28322      SQL_INCLUDE=-I$SQLITE_INCDIR
28323      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28324      SQL_BINDIR=$SQLITE_BINDIR
28325      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28326
28327      cat >>confdefs.h <<\_ACEOF
28328 #define HAVE_SQLITE 1
28329 _ACEOF
28330
28331      { echo "$as_me:$LINENO: result: yes" >&5
28332 echo "${ECHO_T}yes" >&6; }
28333      db_found=yes
28334      support_sqlite=yes
28335      db_type=SQLite
28336      DB_TYPE=sqlite
28337
28338   else
28339      { echo "$as_me:$LINENO: result: no" >&5
28340 echo "${ECHO_T}no" >&6; }
28341   fi
28342
28343 else
28344
28345   { echo "$as_me:$LINENO: result: no" >&5
28346 echo "${ECHO_T}no" >&6; }
28347
28348 fi
28349
28350
28351
28352
28353
28354
28355
28356
28357 db_found=no
28358 { echo "$as_me:$LINENO: checking for DBI support" >&5
28359 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28360
28361 # Check whether --with-dbi was given.
28362 if test "${with_dbi+set}" = set; then
28363   withval=$with_dbi;
28364   if test "$withval" != "no"; then
28365      if test "$withval" = "yes"; then
28366         if test -f /usr/local/include/dbi/dbi.h; then
28367            DBI_INCDIR=/usr/local/dbi/include
28368            if test -d /usr/local/lib64; then
28369               DBI_LIBDIR=/usr/local/lib64
28370            else
28371               DBI_LIBDIR=/usr/local/lib
28372            fi
28373            DBI_BINDIR=/usr/local/bin
28374         elif test -f /usr/include/dbi/dbi.h; then
28375            DBI_INCDIR=/usr/include
28376            if test -d /usr/lib64; then
28377               DBI_LIBDIR=/usr/lib64
28378            else
28379               DBI_LIBDIR=/usr/lib
28380            fi
28381            DBI_BINDIR=/usr/bin
28382         elif test -f $prefix/include/dbi/dbi.h; then
28383            DBI_INCDIR=$prefix/include
28384            if test -d $prefix/lib64; then
28385               DBI_LIBDIR=$prefix/lib64
28386            else
28387               DBI_LIBDIR=$prefix/lib
28388            fi
28389            DBI_BINDIR=$prefix/bin
28390         else
28391            { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28394 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28395    { (exit 1); exit 1; }; }
28396         fi
28397         if test -d /usr/local/lib/dbd; then
28398            DRIVERDIR=/usr/local/lib/dbd
28399            if test -d /usr/local/lib64/dbd; then
28400               DRIVERDIR=/usr/local/lib64/dbd
28401            else
28402               DRIVERDIR=/usr/local/lib/dbd
28403            fi
28404         elif test -d /usr/lib/dbd; then
28405            DRIVERDIR=/usr/lib/dbd
28406            if test -d /usr/lib64/dbd; then
28407               DRIVERDIR=/usr/lib64/dbd
28408            else
28409               DRIVERDIR=/usr/lib/dbd
28410            fi
28411         elif test -d $prefix/lib/dbd; then
28412            if test -d $prefix/lib64/dbd; then
28413               DRIVERDIR=$prefix/lib64/dbd
28414            else
28415               DRIVERDIR=$prefix/lib/dbd
28416            fi
28417         else
28418            { echo "$as_me:$LINENO: result: no" >&5
28419 echo "${ECHO_T}no" >&6; }
28420            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28421 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28422    { (exit 1); exit 1; }; }
28423         fi
28424      else
28425         if test -f $withval/dbi.h; then
28426            DBI_INCDIR=$withval
28427            DBI_LIBDIR=$withval
28428            DBI_BINDIR=$withval
28429         elif test -f $withval/include/dbi/dbi.h; then
28430            DBI_INCDIR=$withval/include
28431            if test -d $withval/lib64; then
28432               DBI_LIBDIR=$withval/lib64
28433            else
28434               DBI_LIBDIR=$withval/lib
28435            fi
28436            DBI_BINDIR=$withval/bin
28437         else
28438            { echo "$as_me:$LINENO: result: no" >&5
28439 echo "${ECHO_T}no" >&6; }
28440            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28441 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28442    { (exit 1); exit 1; }; }
28443         fi
28444         if test -d $withval/dbd; then
28445            DRIVERDIR=$withval/dbd
28446         elif test -d $withval/lib/; then
28447            if test -d $withval/lib64/dbd; then
28448               DRIVERDIR=$withval/lib64/dbd
28449            else
28450               DRIVERDIR=$withval/lib/dbd
28451            fi
28452         else
28453            { echo "$as_me:$LINENO: result: no" >&5
28454 echo "${ECHO_T}no" >&6; }
28455            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28456 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28457    { (exit 1); exit 1; }; }
28458         fi
28459      fi
28460      SQL_INCLUDE=-I$DBI_INCDIR
28461      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28462      SQL_BINDIR=$DBI_BINDIR
28463      SQL_LIB=$DBI_LIBDIR/libdbi.a
28464      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28465
28466
28467 cat >>confdefs.h <<\_ACEOF
28468 #define HAVE_DBI 1
28469 _ACEOF
28470
28471      { echo "$as_me:$LINENO: result: yes" >&5
28472 echo "${ECHO_T}yes" >&6; }
28473      db_found=yes
28474      support_dbi=yes
28475      db_type=DBI
28476      DB_TYPE=dbi
28477      uncomment_dbi=" "
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
28499
28500 db_found=no
28501 db_prog=no
28502 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28503 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28504
28505 # Check whether --with-dbi-driver was given.
28506 if test "${with_dbi_driver+set}" = set; then
28507   withval=$with_dbi_driver;
28508   if test "$withval" != "no"; then
28509      case $withval in
28510         "mysql")
28511            db_prog="mysql"
28512            if test -f /usr/local/mysql/bin/mysql; then
28513               SQL_BINDIR=/usr/local/mysql/bin
28514               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28515                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28516                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28517               else
28518                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28519               fi
28520            elif test -f /usr/bin/mysql; then
28521               SQL_BINDIR=/usr/bin
28522               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28523                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28524                   SQL_LIBDIR=/usr/lib64/mysql
28525               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28526                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28527                   SQL_LIBDIR=/usr/lib/mysql
28528               else
28529                   SQL_LIBDIR=/usr/lib
28530               fi
28531            elif test -f /usr/local/bin/mysql; then
28532               SQL_BINDIR=/usr/local/bin
28533               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28534                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28535                   SQL_LIBDIR=/usr/local/lib64/mysql
28536               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28537                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28538                   SQL_LIBDIR=/usr/local/lib/mysql
28539               else
28540                   SQL_LIBDIR=/usr/local/lib
28541               fi
28542            elif test -f $withval/bin/mysql; then
28543               SQL_BINDIR=$withval/bin
28544               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28545                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28546                   SQL_LIBDIR=$withval/lib64/mysql
28547               elif test -f $withval/lib64/libmysqlclient_r.a \
28548                   -o -f $withval/lib64/libmysqlclient_r.so; then
28549                   SQL_LIBDIR=$withval/lib64
28550               elif test -f $withval/lib/libmysqlclient_r.a \
28551                   -o -f $withval/lib/libmysqlclient_r.so; then
28552                   SQL_LIBDIR=$withval/lib/
28553               else
28554                   SQL_LIBDIR=$withval/lib/mysql
28555               fi
28556            else
28557               { echo "$as_me:$LINENO: result: no" >&5
28558 echo "${ECHO_T}no" >&6; }
28559               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28560 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28561    { (exit 1); exit 1; }; }
28562            fi
28563            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28564         ;;
28565         "postgresql")
28566            db_prog="postgresql"
28567            PG_CONFIG=`which pg_config`
28568            if test -n "$PG_CONFIG"; then
28569               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28570               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28571            elif test -f /usr/local/bin/psql; then
28572               SQL_BINDIR=/usr/local/bin
28573               if test -d /usr/local/lib64; then
28574                  SQL_LIBDIR=/usr/local/lib64
28575               else
28576                  SQL_LIBDIR=/usr/local/lib
28577               fi
28578            elif test -f /usr/bin/psql; then
28579               SQL_BINDIR=/usr/local/bin
28580               if test -d /usr/lib64/postgresql; then
28581                  SQL_LIBDIR=/usr/lib64/postgresql
28582               elif test -d /usr/lib/postgresql; then
28583                  SQL_LIBDIR=/usr/lib/postgresql
28584               elif test -d /usr/lib64; then
28585                  SQL_LIBDIR=/usr/lib64
28586               else
28587                  SQL_LIBDIR=/usr/lib
28588               fi
28589            elif test -f $withval/bin/psql; then
28590               SQL_BINDIR=$withval/bin
28591               if test -d $withval/lib64; then
28592                  SQL_LIBDIR=$withval/lib64
28593               else
28594                  SQL_LIBDIR=$withval/lib
28595               fi
28596            else
28597               { echo "$as_me:$LINENO: result: no" >&5
28598 echo "${ECHO_T}no" >&6; }
28599               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28600 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28601    { (exit 1); exit 1; }; }
28602            fi
28603            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28604         ;;
28605         "sqlite")
28606            db_prog="sqlite"
28607            if test -f /usr/local/bin/sqlite; then
28608               SQL_BINDIR=/usr/local/bin
28609               if test -d /usr/local/lib64; then
28610                  SQL_LIBDIR=/usr/local/lib64
28611               else
28612                  SQL_LIBDIR=/usr/local/lib
28613               fi
28614            elif test -f /usr/bin/sqlite; then
28615               SQL_BINDIR=/usr/bin
28616               if test -d /usr/lib64; then
28617                  SQL_LIBDIR=/usr/lib64
28618               else
28619                  SQL_LIBDIR=/usr/lib
28620               fi
28621            elif test -f $withval/bin/sqlite; then
28622               SQL_BINDIR=$withval/bin
28623               if test -d $withval/lib64; then
28624                  SQL_LIBDIR=$withval/lib64
28625               else
28626                  SQL_LIBDIR=$withval/lib
28627               fi
28628            else
28629               { echo "$as_me:$LINENO: result: no" >&5
28630 echo "${ECHO_T}no" >&6; }
28631               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28632 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28633    { (exit 1); exit 1; }; }
28634            fi
28635            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28636         ;;
28637         "sqlite3")
28638            db_prog="sqlite3"
28639            if test -f /usr/local/bin/sqlite3; then
28640               SQL_BINDIR=/usr/local/bin
28641               if test -d /usr/local/lib64; then
28642                  SQL_LIBDIR=/usr/local/lib64
28643               else
28644                  SQL_LIBDIR=/usr/local/lib
28645               fi
28646            elif test -f /usr/bin/sqlite3; then
28647               SQL_BINDIR=/usr/bin
28648               if test -d /usr/lib64; then
28649                  SQL_LIBDIR=/usr/lib64
28650               else
28651                  SQL_LIBDIR=/usr/lib
28652               fi
28653            elif test -f $withval/bin/sqlite3; then
28654               SQL_BINDIR=$withval/bin
28655               if test -d $withval/lib64; then
28656                  SQL_LIBDIR=$withval/lib64
28657               else
28658                  SQL_LIBDIR=$withval/lib
28659               fi
28660            else
28661               { echo "$as_me:$LINENO: result: no" >&5
28662 echo "${ECHO_T}no" >&6; }
28663               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28664 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28665    { (exit 1); exit 1; }; }
28666            fi
28667            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28668         ;;
28669         *)
28670            { echo "$as_me:$LINENO: result: no" >&5
28671 echo "${ECHO_T}no" >&6; }
28672            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28673 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28674    { (exit 1); exit 1; }; }
28675         ;;
28676      esac
28677
28678      { echo "$as_me:$LINENO: result: yes" >&5
28679 echo "${ECHO_T}yes" >&6; }
28680      DB_PROG=$db_prog
28681   else
28682      { echo "$as_me:$LINENO: result: no" >&5
28683 echo "${ECHO_T}no" >&6; }
28684   fi
28685
28686 else
28687
28688   { echo "$as_me:$LINENO: result: no" >&5
28689 echo "${ECHO_T}no" >&6; }
28690
28691 fi
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702 support_batch_insert=no
28703 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28704 pkg=$?
28705 if test $pkg = 0; then
28706    support_batch_insert=yes
28707    # Check whether --enable-batch-insert was given.
28708 if test "${enable_batch_insert+set}" = set; then
28709   enableval=$enable_batch_insert;
28710           if test x$enableval = xno; then
28711              support_batch_insert=no
28712           else
28713              support_batch_insert=yes
28714           fi
28715
28716
28717 fi
28718
28719 fi
28720
28721 if test x$DB_TYPE = xpostgresql; then
28722    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28723    pkg=$?
28724    if test $pkg != 0; then
28725       support_batch_insert=no
28726    fi
28727 fi
28728
28729 if test x$DB_TYPE = xdbi; then
28730    DB_TYPE=$DB_PROG
28731    db_type=$DB_PROG
28732    pkg=1
28733       if test $DB_PROG = postgresql; then
28734       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28735       pkg=$?
28736    fi
28737
28738    if test $DB_PROG = mysql; then
28739       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28740       pkg=$?
28741    fi
28742
28743    if test $DB_PROG = sqlite3; then
28744       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28745       pkg=$?
28746    fi
28747
28748    if test $pkg = 0; then
28749       # Check whether --enable-batch-insert was given.
28750 if test "${enable_batch_insert+set}" = set; then
28751   enableval=$enable_batch_insert;
28752              if test x$enableval = xno; then
28753                 support_batch_insert=no
28754              else
28755                 support_batch_insert=yes
28756              fi
28757
28758
28759 fi
28760
28761    fi
28762 else
28763       uncomment_dbi="#"
28764 fi
28765
28766
28767
28768 if test $support_batch_insert = yes ; then
28769
28770 cat >>confdefs.h <<\_ACEOF
28771 #define HAVE_BATCH_FILE_INSERT 1
28772 _ACEOF
28773
28774 fi
28775
28776 cat >>confdefs.h <<\_ACEOF
28777 #define PROTOTYPES 1
28778 _ACEOF
28779
28780
28781 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28782    if test -z "$CCOPTS"; then
28783       CCOPTS='-g -O2 -Wall'
28784    fi
28785    CFLAGS="$CCOPTS"
28786 fi
28787
28788
28789
28790 largefile_support="no"
28791
28792    # Check whether --enable-largefile was given.
28793 if test "${enable_largefile+set}" = set; then
28794   enableval=$enable_largefile;
28795 fi
28796
28797    if test "$enable_largefile" != no; then
28798      if test -n "$ac_tool_prefix"; then
28799   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28800 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28803 if test "${ac_cv_prog_GETCONF+set}" = set; then
28804   echo $ECHO_N "(cached) $ECHO_C" >&6
28805 else
28806   if test -n "$GETCONF"; then
28807   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28808 else
28809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28810 for as_dir in $PATH
28811 do
28812   IFS=$as_save_IFS
28813   test -z "$as_dir" && as_dir=.
28814   for ac_exec_ext in '' $ac_executable_extensions; do
28815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28816     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28818     break 2
28819   fi
28820 done
28821 done
28822 IFS=$as_save_IFS
28823
28824 fi
28825 fi
28826 GETCONF=$ac_cv_prog_GETCONF
28827 if test -n "$GETCONF"; then
28828   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28829 echo "${ECHO_T}$GETCONF" >&6; }
28830 else
28831   { echo "$as_me:$LINENO: result: no" >&5
28832 echo "${ECHO_T}no" >&6; }
28833 fi
28834
28835
28836 fi
28837 if test -z "$ac_cv_prog_GETCONF"; then
28838   ac_ct_GETCONF=$GETCONF
28839   # Extract the first word of "getconf", so it can be a program name with args.
28840 set dummy getconf; ac_word=$2
28841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28843 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28844   echo $ECHO_N "(cached) $ECHO_C" >&6
28845 else
28846   if test -n "$ac_ct_GETCONF"; then
28847   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28848 else
28849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28850 for as_dir in $PATH
28851 do
28852   IFS=$as_save_IFS
28853   test -z "$as_dir" && as_dir=.
28854   for ac_exec_ext in '' $ac_executable_extensions; do
28855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28856     ac_cv_prog_ac_ct_GETCONF="getconf"
28857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28858     break 2
28859   fi
28860 done
28861 done
28862 IFS=$as_save_IFS
28863
28864 fi
28865 fi
28866 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28867 if test -n "$ac_ct_GETCONF"; then
28868   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28869 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28870 else
28871   { echo "$as_me:$LINENO: result: no" >&5
28872 echo "${ECHO_T}no" >&6; }
28873 fi
28874
28875   if test "x$ac_ct_GETCONF" = x; then
28876     GETCONF=""
28877   else
28878     case $cross_compiling:$ac_tool_warned in
28879 yes:)
28880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28881 whose name does not start with the host triplet.  If you think this
28882 configuration is useful to you, please write to autoconf@gnu.org." >&5
28883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28884 whose name does not start with the host triplet.  If you think this
28885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28886 ac_tool_warned=yes ;;
28887 esac
28888     GETCONF=$ac_ct_GETCONF
28889   fi
28890 else
28891   GETCONF="$ac_cv_prog_GETCONF"
28892 fi
28893
28894      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28895 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28896 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28897   echo $ECHO_N "(cached) $ECHO_C" >&6
28898 else
28899   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28900         ac_cv_sys_largefile_CFLAGS=no
28901         case "$host_os" in
28902            # IRIX 6.2 and later require cc -n32.
28903            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28904              if test "$GCC" != yes; then
28905                ac_cv_sys_largefile_CFLAGS=-n32
28906              fi
28907              ac_save_CC="$CC"
28908              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28909              cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915
28916 int
28917 main ()
28918 {
28919
28920   ;
28921   return 0;
28922 }
28923 _ACEOF
28924 rm -f conftest.$ac_objext conftest$ac_exeext
28925 if { (ac_try="$ac_link"
28926 case "(($ac_try" in
28927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928   *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931   (eval "$ac_link") 2>conftest.er1
28932   ac_status=$?
28933   grep -v '^ *+' conftest.er1 >conftest.err
28934   rm -f conftest.er1
28935   cat conftest.err >&5
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); } && {
28938          test -z "$ac_c_werror_flag" ||
28939          test ! -s conftest.err
28940        } && test -s conftest$ac_exeext &&
28941        $as_test_x conftest$ac_exeext; then
28942   :
28943 else
28944   echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.$ac_ext >&5
28946
28947         ac_cv_sys_largefile_CFLAGS=no
28948 fi
28949
28950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28951       conftest$ac_exeext conftest.$ac_ext
28952              CC="$ac_save_CC"
28953            esac
28954       }
28955 fi
28956 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28957 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28958      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28959 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28960 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28961   echo $ECHO_N "(cached) $ECHO_C" >&6
28962 else
28963   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28964         ac_cv_sys_largefile_LDFLAGS=no
28965
28966       }
28967 fi
28968 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28969 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28970      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28971 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28972 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 else
28975   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
28976         ac_cv_sys_largefile_LIBS=no
28977
28978       }
28979 fi
28980 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
28981 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
28982
28983      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
28984        case "$ac_flag" in
28985        no) ;;
28986        -D_FILE_OFFSET_BITS=*) ;;
28987        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
28988        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
28989        -D?* | -I?*)
28990          case "$ac_flag" in
28991    no) ;;
28992    ?*)
28993      case "$CPPFLAGS" in
28994      '') CPPFLAGS="$ac_flag" ;;
28995      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
28996      esac ;;
28997    esac ;;
28998        *)
28999          case "$ac_flag" in
29000    no) ;;
29001    ?*)
29002      case "$CFLAGS" in
29003      '') CFLAGS="$ac_flag" ;;
29004      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29005      esac ;;
29006    esac ;;
29007        esac
29008      done
29009      case "$ac_cv_sys_largefile_LDFLAGS" in
29010    no) ;;
29011    ?*)
29012      case "$LDFLAGS" in
29013      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29014      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29015      esac ;;
29016    esac
29017      case "$ac_cv_sys_largefile_LIBS" in
29018    no) ;;
29019    ?*)
29020      case "$LIBS" in
29021      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29022      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29023      esac ;;
29024    esac
29025      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29026 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29027 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29028   echo $ECHO_N "(cached) $ECHO_C" >&6
29029 else
29030   ac_cv_sys_file_offset_bits=no
29031       ac_cv_sys_file_offset_bits=64
29032       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29033         case "$ac_flag" in
29034         -D_FILE_OFFSET_BITS)
29035           ac_cv_sys_file_offset_bits=1 ;;
29036         -D_FILE_OFFSET_BITS=*)
29037           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29038         esac
29039       done
29040
29041 fi
29042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29044    if test "$ac_cv_sys_file_offset_bits" != no; then
29045
29046 cat >>confdefs.h <<_ACEOF
29047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29048 _ACEOF
29049
29050    fi
29051      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29052 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29053 if test "${ac_cv_sys_largefile_source+set}" = set; then
29054   echo $ECHO_N "(cached) $ECHO_C" >&6
29055 else
29056   ac_cv_sys_largefile_source=no
29057       ac_cv_sys_largefile_source=1
29058       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29059         case "$ac_flag" in
29060         -D_LARGEFILE_SOURCE)
29061           ac_cv_sys_largefile_source=1 ;;
29062         -D_LARGEFILE_SOURCE=*)
29063           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29064         esac
29065       done
29066
29067 fi
29068 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29069 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29070    if test "$ac_cv_sys_largefile_source" != no; then
29071
29072 cat >>confdefs.h <<_ACEOF
29073 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29074 _ACEOF
29075
29076    fi
29077      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29078 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29079 if test "${ac_cv_sys_large_files+set}" = set; then
29080   echo $ECHO_N "(cached) $ECHO_C" >&6
29081 else
29082   ac_cv_sys_large_files=no
29083       ac_cv_sys_large_files=1
29084       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29085         case "$ac_flag" in
29086         -D_LARGE_FILES)
29087           ac_cv_sys_large_files=1 ;;
29088         -D_LARGE_FILES=*)
29089           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29090         esac
29091       done
29092
29093 fi
29094 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29095 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29096    if test "$ac_cv_sys_large_files" != no; then
29097
29098 cat >>confdefs.h <<_ACEOF
29099 #define _LARGE_FILES $ac_cv_sys_large_files
29100 _ACEOF
29101
29102    fi
29103    fi
29104
29105
29106 { echo "$as_me:$LINENO: checking for X" >&5
29107 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29108
29109
29110 # Check whether --with-x was given.
29111 if test "${with_x+set}" = set; then
29112   withval=$with_x;
29113 fi
29114
29115 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29116 if test "x$with_x" = xno; then
29117   # The user explicitly disabled X.
29118   have_x=disabled
29119 else
29120   case $x_includes,$x_libraries in #(
29121     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29122 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29123    { (exit 1); exit 1; }; };; #(
29124     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29125   echo $ECHO_N "(cached) $ECHO_C" >&6
29126 else
29127   # One or both of the vars are not set, and there is no cached value.
29128 ac_x_includes=no ac_x_libraries=no
29129 rm -f -r conftest.dir
29130 if mkdir conftest.dir; then
29131   cd conftest.dir
29132   cat >Imakefile <<'_ACEOF'
29133 incroot:
29134         @echo incroot='${INCROOT}'
29135 usrlibdir:
29136         @echo usrlibdir='${USRLIBDIR}'
29137 libdir:
29138         @echo libdir='${LIBDIR}'
29139 _ACEOF
29140   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29141     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29142     for ac_var in incroot usrlibdir libdir; do
29143       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29144     done
29145     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29146     for ac_extension in a so sl; do
29147       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29148          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29149         ac_im_usrlibdir=$ac_im_libdir; break
29150       fi
29151     done
29152     # Screen out bogus values from the imake configuration.  They are
29153     # bogus both because they are the default anyway, and because
29154     # using them would break gcc on systems where it needs fixed includes.
29155     case $ac_im_incroot in
29156         /usr/include) ac_x_includes= ;;
29157         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29158     esac
29159     case $ac_im_usrlibdir in
29160         /usr/lib | /lib) ;;
29161         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29162     esac
29163   fi
29164   cd ..
29165   rm -f -r conftest.dir
29166 fi
29167
29168 # Standard set of common directories for X headers.
29169 # Check X11 before X11Rn because it is often a symlink to the current release.
29170 ac_x_header_dirs='
29171 /usr/X11/include
29172 /usr/X11R6/include
29173 /usr/X11R5/include
29174 /usr/X11R4/include
29175
29176 /usr/include/X11
29177 /usr/include/X11R6
29178 /usr/include/X11R5
29179 /usr/include/X11R4
29180
29181 /usr/local/X11/include
29182 /usr/local/X11R6/include
29183 /usr/local/X11R5/include
29184 /usr/local/X11R4/include
29185
29186 /usr/local/include/X11
29187 /usr/local/include/X11R6
29188 /usr/local/include/X11R5
29189 /usr/local/include/X11R4
29190
29191 /usr/X386/include
29192 /usr/x386/include
29193 /usr/XFree86/include/X11
29194
29195 /usr/include
29196 /usr/local/include
29197 /usr/unsupported/include
29198 /usr/athena/include
29199 /usr/local/x11r5/include
29200 /usr/lpp/Xamples/include
29201
29202 /usr/openwin/include
29203 /usr/openwin/share/include'
29204
29205 if test "$ac_x_includes" = no; then
29206   # Guess where to find include files, by looking for Xlib.h.
29207   # First, try using that file with no special directory specified.
29208   cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h.  */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h.  */
29214 #include <X11/Xlib.h>
29215 _ACEOF
29216 if { (ac_try="$ac_cpp conftest.$ac_ext"
29217 case "(($ac_try" in
29218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219   *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29223   ac_status=$?
29224   grep -v '^ *+' conftest.er1 >conftest.err
29225   rm -f conftest.er1
29226   cat conftest.err >&5
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); } >/dev/null && {
29229          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29230          test ! -s conftest.err
29231        }; then
29232   # We can compile using X headers with no special include directory.
29233 ac_x_includes=
29234 else
29235   echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29237
29238   for ac_dir in $ac_x_header_dirs; do
29239   if test -r "$ac_dir/X11/Xlib.h"; then
29240     ac_x_includes=$ac_dir
29241     break
29242   fi
29243 done
29244 fi
29245
29246 rm -f conftest.err conftest.$ac_ext
29247 fi # $ac_x_includes = no
29248
29249 if test "$ac_x_libraries" = no; then
29250   # Check for the libraries.
29251   # See if we find them without any special options.
29252   # Don't add to $LIBS permanently.
29253   ac_save_LIBS=$LIBS
29254   LIBS="-lX11 $LIBS"
29255   cat >conftest.$ac_ext <<_ACEOF
29256 /* confdefs.h.  */
29257 _ACEOF
29258 cat confdefs.h >>conftest.$ac_ext
29259 cat >>conftest.$ac_ext <<_ACEOF
29260 /* end confdefs.h.  */
29261 #include <X11/Xlib.h>
29262 int
29263 main ()
29264 {
29265 XrmInitialize ()
29266   ;
29267   return 0;
29268 }
29269 _ACEOF
29270 rm -f conftest.$ac_objext conftest$ac_exeext
29271 if { (ac_try="$ac_link"
29272 case "(($ac_try" in
29273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29274   *) ac_try_echo=$ac_try;;
29275 esac
29276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29277   (eval "$ac_link") 2>conftest.er1
29278   ac_status=$?
29279   grep -v '^ *+' conftest.er1 >conftest.err
29280   rm -f conftest.er1
29281   cat conftest.err >&5
29282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); } && {
29284          test -z "$ac_c_werror_flag" ||
29285          test ! -s conftest.err
29286        } && test -s conftest$ac_exeext &&
29287        $as_test_x conftest$ac_exeext; then
29288   LIBS=$ac_save_LIBS
29289 # We can link X programs with no special library path.
29290 ac_x_libraries=
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295         LIBS=$ac_save_LIBS
29296 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29297 do
29298   # Don't even attempt the hair of trying to link an X program!
29299   for ac_extension in a so sl; do
29300     if test -r "$ac_dir/libX11.$ac_extension"; then
29301       ac_x_libraries=$ac_dir
29302       break 2
29303     fi
29304   done
29305 done
29306 fi
29307
29308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29309       conftest$ac_exeext conftest.$ac_ext
29310 fi # $ac_x_libraries = no
29311
29312 case $ac_x_includes,$ac_x_libraries in #(
29313   no,* | *,no | *\'*)
29314     # Didn't find X, or a directory has "'" in its name.
29315     ac_cv_have_x="have_x=no";; #(
29316   *)
29317     # Record where we found X for the cache.
29318     ac_cv_have_x="have_x=yes\
29319         ac_x_includes='$ac_x_includes'\
29320         ac_x_libraries='$ac_x_libraries'"
29321 esac
29322 fi
29323 ;; #(
29324     *) have_x=yes;;
29325   esac
29326   eval "$ac_cv_have_x"
29327 fi # $with_x != no
29328
29329 if test "$have_x" != yes; then
29330   { echo "$as_me:$LINENO: result: $have_x" >&5
29331 echo "${ECHO_T}$have_x" >&6; }
29332   no_x=yes
29333 else
29334   # If each of the values was on the command line, it overrides each guess.
29335   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29336   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29337   # Update the cache value to reflect the command line values.
29338   ac_cv_have_x="have_x=yes\
29339         ac_x_includes='$x_includes'\
29340         ac_x_libraries='$x_libraries'"
29341   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29342 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29343 fi
29344
29345 if test "$no_x" = yes; then
29346   # Not all programs may use this symbol, but it does not hurt to define it.
29347
29348 cat >>confdefs.h <<\_ACEOF
29349 #define X_DISPLAY_MISSING 1
29350 _ACEOF
29351
29352   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29353 else
29354   if test -n "$x_includes"; then
29355     X_CFLAGS="$X_CFLAGS -I$x_includes"
29356   fi
29357
29358   # It would also be nice to do this for all -L options, not just this one.
29359   if test -n "$x_libraries"; then
29360     X_LIBS="$X_LIBS -L$x_libraries"
29361     # For Solaris; some versions of Sun CC require a space after -R and
29362     # others require no space.  Words are not sufficient . . . .
29363     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29364 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29365     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29366     ac_xsave_c_werror_flag=$ac_c_werror_flag
29367     ac_c_werror_flag=yes
29368     cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374
29375 int
29376 main ()
29377 {
29378
29379   ;
29380   return 0;
29381 }
29382 _ACEOF
29383 rm -f conftest.$ac_objext conftest$ac_exeext
29384 if { (ac_try="$ac_link"
29385 case "(($ac_try" in
29386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29387   *) ac_try_echo=$ac_try;;
29388 esac
29389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29390   (eval "$ac_link") 2>conftest.er1
29391   ac_status=$?
29392   grep -v '^ *+' conftest.er1 >conftest.err
29393   rm -f conftest.er1
29394   cat conftest.err >&5
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); } && {
29397          test -z "$ac_c_werror_flag" ||
29398          test ! -s conftest.err
29399        } && test -s conftest$ac_exeext &&
29400        $as_test_x conftest$ac_exeext; then
29401   { echo "$as_me:$LINENO: result: no" >&5
29402 echo "${ECHO_T}no" >&6; }
29403        X_LIBS="$X_LIBS -R$x_libraries"
29404 else
29405   echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29407
29408         LIBS="$ac_xsave_LIBS -R $x_libraries"
29409        cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h.  */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h.  */
29415
29416 int
29417 main ()
29418 {
29419
29420   ;
29421   return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (ac_try="$ac_link"
29426 case "(($ac_try" in
29427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428   *) ac_try_echo=$ac_try;;
29429 esac
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431   (eval "$ac_link") 2>conftest.er1
29432   ac_status=$?
29433   grep -v '^ *+' conftest.er1 >conftest.err
29434   rm -f conftest.er1
29435   cat conftest.err >&5
29436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437   (exit $ac_status); } && {
29438          test -z "$ac_c_werror_flag" ||
29439          test ! -s conftest.err
29440        } && test -s conftest$ac_exeext &&
29441        $as_test_x conftest$ac_exeext; then
29442   { echo "$as_me:$LINENO: result: yes" >&5
29443 echo "${ECHO_T}yes" >&6; }
29444           X_LIBS="$X_LIBS -R $x_libraries"
29445 else
29446   echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29448
29449         { echo "$as_me:$LINENO: result: neither works" >&5
29450 echo "${ECHO_T}neither works" >&6; }
29451 fi
29452
29453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29454       conftest$ac_exeext conftest.$ac_ext
29455 fi
29456
29457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29458       conftest$ac_exeext conftest.$ac_ext
29459     ac_c_werror_flag=$ac_xsave_c_werror_flag
29460     LIBS=$ac_xsave_LIBS
29461   fi
29462
29463   # Check for system-dependent libraries X programs must link with.
29464   # Do this before checking for the system-independent R6 libraries
29465   # (-lICE), since we may need -lsocket or whatever for X linking.
29466
29467   if test "$ISC" = yes; then
29468     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29469   else
29470     # Martyn Johnson says this is needed for Ultrix, if the X
29471     # libraries were built with DECnet support.  And Karl Berry says
29472     # the Alpha needs dnet_stub (dnet does not exist).
29473     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29474     cat >conftest.$ac_ext <<_ACEOF
29475 /* confdefs.h.  */
29476 _ACEOF
29477 cat confdefs.h >>conftest.$ac_ext
29478 cat >>conftest.$ac_ext <<_ACEOF
29479 /* end confdefs.h.  */
29480
29481 /* Override any GCC internal prototype to avoid an error.
29482    Use char because int might match the return type of a GCC
29483    builtin and then its argument prototype would still apply.  */
29484 #ifdef __cplusplus
29485 extern "C"
29486 #endif
29487 char XOpenDisplay ();
29488 int
29489 main ()
29490 {
29491 return XOpenDisplay ();
29492   ;
29493   return 0;
29494 }
29495 _ACEOF
29496 rm -f conftest.$ac_objext conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500   *) ac_try_echo=$ac_try;;
29501 esac
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503   (eval "$ac_link") 2>conftest.er1
29504   ac_status=$?
29505   grep -v '^ *+' conftest.er1 >conftest.err
29506   rm -f conftest.er1
29507   cat conftest.err >&5
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); } && {
29510          test -z "$ac_c_werror_flag" ||
29511          test ! -s conftest.err
29512        } && test -s conftest$ac_exeext &&
29513        $as_test_x conftest$ac_exeext; then
29514   :
29515 else
29516   echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29518
29519         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29520 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29522   echo $ECHO_N "(cached) $ECHO_C" >&6
29523 else
29524   ac_check_lib_save_LIBS=$LIBS
29525 LIBS="-ldnet  $LIBS"
29526 cat >conftest.$ac_ext <<_ACEOF
29527 /* confdefs.h.  */
29528 _ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h.  */
29532
29533 /* Override any GCC internal prototype to avoid an error.
29534    Use char because int might match the return type of a GCC
29535    builtin and then its argument prototype would still apply.  */
29536 #ifdef __cplusplus
29537 extern "C"
29538 #endif
29539 char dnet_ntoa ();
29540 int
29541 main ()
29542 {
29543 return dnet_ntoa ();
29544   ;
29545   return 0;
29546 }
29547 _ACEOF
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (ac_try="$ac_link"
29550 case "(($ac_try" in
29551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552   *) ac_try_echo=$ac_try;;
29553 esac
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555   (eval "$ac_link") 2>conftest.er1
29556   ac_status=$?
29557   grep -v '^ *+' conftest.er1 >conftest.err
29558   rm -f conftest.er1
29559   cat conftest.err >&5
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); } && {
29562          test -z "$ac_c_werror_flag" ||
29563          test ! -s conftest.err
29564        } && test -s conftest$ac_exeext &&
29565        $as_test_x conftest$ac_exeext; then
29566   ac_cv_lib_dnet_dnet_ntoa=yes
29567 else
29568   echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29570
29571         ac_cv_lib_dnet_dnet_ntoa=no
29572 fi
29573
29574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29575       conftest$ac_exeext conftest.$ac_ext
29576 LIBS=$ac_check_lib_save_LIBS
29577 fi
29578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29579 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29580 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29581   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29582 fi
29583
29584     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29585       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29586 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29587 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29588   echo $ECHO_N "(cached) $ECHO_C" >&6
29589 else
29590   ac_check_lib_save_LIBS=$LIBS
29591 LIBS="-ldnet_stub  $LIBS"
29592 cat >conftest.$ac_ext <<_ACEOF
29593 /* confdefs.h.  */
29594 _ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h.  */
29598
29599 /* Override any GCC internal prototype to avoid an error.
29600    Use char because int might match the return type of a GCC
29601    builtin and then its argument prototype would still apply.  */
29602 #ifdef __cplusplus
29603 extern "C"
29604 #endif
29605 char dnet_ntoa ();
29606 int
29607 main ()
29608 {
29609 return dnet_ntoa ();
29610   ;
29611   return 0;
29612 }
29613 _ACEOF
29614 rm -f conftest.$ac_objext conftest$ac_exeext
29615 if { (ac_try="$ac_link"
29616 case "(($ac_try" in
29617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618   *) ac_try_echo=$ac_try;;
29619 esac
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621   (eval "$ac_link") 2>conftest.er1
29622   ac_status=$?
29623   grep -v '^ *+' conftest.er1 >conftest.err
29624   rm -f conftest.er1
29625   cat conftest.err >&5
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); } && {
29628          test -z "$ac_c_werror_flag" ||
29629          test ! -s conftest.err
29630        } && test -s conftest$ac_exeext &&
29631        $as_test_x conftest$ac_exeext; then
29632   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29633 else
29634   echo "$as_me: failed program was:" >&5
29635 sed 's/^/| /' conftest.$ac_ext >&5
29636
29637         ac_cv_lib_dnet_stub_dnet_ntoa=no
29638 fi
29639
29640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29641       conftest$ac_exeext conftest.$ac_ext
29642 LIBS=$ac_check_lib_save_LIBS
29643 fi
29644 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29645 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29646 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29647   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29648 fi
29649
29650     fi
29651 fi
29652
29653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29654       conftest$ac_exeext conftest.$ac_ext
29655     LIBS="$ac_xsave_LIBS"
29656
29657     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29658     # to get the SysV transport functions.
29659     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29660     # needs -lnsl.
29661     # The nsl library prevents programs from opening the X display
29662     # on Irix 5.2, according to T.E. Dickey.
29663     # The functions gethostbyname, getservbyname, and inet_addr are
29664     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29665     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29666 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29667 if test "${ac_cv_func_gethostbyname+set}" = set; then
29668   echo $ECHO_N "(cached) $ECHO_C" >&6
29669 else
29670   cat >conftest.$ac_ext <<_ACEOF
29671 /* confdefs.h.  */
29672 _ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h.  */
29676 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29678 #define gethostbyname innocuous_gethostbyname
29679
29680 /* System header to define __stub macros and hopefully few prototypes,
29681     which can conflict with char gethostbyname (); below.
29682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29683     <limits.h> exists even on freestanding compilers.  */
29684
29685 #ifdef __STDC__
29686 # include <limits.h>
29687 #else
29688 # include <assert.h>
29689 #endif
29690
29691 #undef gethostbyname
29692
29693 /* Override any GCC internal prototype to avoid an error.
29694    Use char because int might match the return type of a GCC
29695    builtin and then its argument prototype would still apply.  */
29696 #ifdef __cplusplus
29697 extern "C"
29698 #endif
29699 char gethostbyname ();
29700 /* The GNU C library defines this for functions which it implements
29701     to always fail with ENOSYS.  Some functions are actually named
29702     something starting with __ and the normal name is an alias.  */
29703 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29704 choke me
29705 #endif
29706
29707 int
29708 main ()
29709 {
29710 return gethostbyname ();
29711   ;
29712   return 0;
29713 }
29714 _ACEOF
29715 rm -f conftest.$ac_objext conftest$ac_exeext
29716 if { (ac_try="$ac_link"
29717 case "(($ac_try" in
29718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719   *) ac_try_echo=$ac_try;;
29720 esac
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722   (eval "$ac_link") 2>conftest.er1
29723   ac_status=$?
29724   grep -v '^ *+' conftest.er1 >conftest.err
29725   rm -f conftest.er1
29726   cat conftest.err >&5
29727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728   (exit $ac_status); } && {
29729          test -z "$ac_c_werror_flag" ||
29730          test ! -s conftest.err
29731        } && test -s conftest$ac_exeext &&
29732        $as_test_x conftest$ac_exeext; then
29733   ac_cv_func_gethostbyname=yes
29734 else
29735   echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29737
29738         ac_cv_func_gethostbyname=no
29739 fi
29740
29741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29742       conftest$ac_exeext conftest.$ac_ext
29743 fi
29744 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29745 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29746
29747     if test $ac_cv_func_gethostbyname = no; then
29748       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29749 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29750 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29751   echo $ECHO_N "(cached) $ECHO_C" >&6
29752 else
29753   ac_check_lib_save_LIBS=$LIBS
29754 LIBS="-lnsl  $LIBS"
29755 cat >conftest.$ac_ext <<_ACEOF
29756 /* confdefs.h.  */
29757 _ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h.  */
29761
29762 /* Override any GCC internal prototype to avoid an error.
29763    Use char because int might match the return type of a GCC
29764    builtin and then its argument prototype would still apply.  */
29765 #ifdef __cplusplus
29766 extern "C"
29767 #endif
29768 char gethostbyname ();
29769 int
29770 main ()
29771 {
29772 return gethostbyname ();
29773   ;
29774   return 0;
29775 }
29776 _ACEOF
29777 rm -f conftest.$ac_objext conftest$ac_exeext
29778 if { (ac_try="$ac_link"
29779 case "(($ac_try" in
29780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781   *) ac_try_echo=$ac_try;;
29782 esac
29783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29784   (eval "$ac_link") 2>conftest.er1
29785   ac_status=$?
29786   grep -v '^ *+' conftest.er1 >conftest.err
29787   rm -f conftest.er1
29788   cat conftest.err >&5
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); } && {
29791          test -z "$ac_c_werror_flag" ||
29792          test ! -s conftest.err
29793        } && test -s conftest$ac_exeext &&
29794        $as_test_x conftest$ac_exeext; then
29795   ac_cv_lib_nsl_gethostbyname=yes
29796 else
29797   echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29799
29800         ac_cv_lib_nsl_gethostbyname=no
29801 fi
29802
29803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29804       conftest$ac_exeext conftest.$ac_ext
29805 LIBS=$ac_check_lib_save_LIBS
29806 fi
29807 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29808 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29809 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29810   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29811 fi
29812
29813       if test $ac_cv_lib_nsl_gethostbyname = no; then
29814         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29815 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29816 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29817   echo $ECHO_N "(cached) $ECHO_C" >&6
29818 else
29819   ac_check_lib_save_LIBS=$LIBS
29820 LIBS="-lbsd  $LIBS"
29821 cat >conftest.$ac_ext <<_ACEOF
29822 /* confdefs.h.  */
29823 _ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h.  */
29827
29828 /* Override any GCC internal prototype to avoid an error.
29829    Use char because int might match the return type of a GCC
29830    builtin and then its argument prototype would still apply.  */
29831 #ifdef __cplusplus
29832 extern "C"
29833 #endif
29834 char gethostbyname ();
29835 int
29836 main ()
29837 {
29838 return gethostbyname ();
29839   ;
29840   return 0;
29841 }
29842 _ACEOF
29843 rm -f conftest.$ac_objext conftest$ac_exeext
29844 if { (ac_try="$ac_link"
29845 case "(($ac_try" in
29846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847   *) ac_try_echo=$ac_try;;
29848 esac
29849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850   (eval "$ac_link") 2>conftest.er1
29851   ac_status=$?
29852   grep -v '^ *+' conftest.er1 >conftest.err
29853   rm -f conftest.er1
29854   cat conftest.err >&5
29855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856   (exit $ac_status); } && {
29857          test -z "$ac_c_werror_flag" ||
29858          test ! -s conftest.err
29859        } && test -s conftest$ac_exeext &&
29860        $as_test_x conftest$ac_exeext; then
29861   ac_cv_lib_bsd_gethostbyname=yes
29862 else
29863   echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29865
29866         ac_cv_lib_bsd_gethostbyname=no
29867 fi
29868
29869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29870       conftest$ac_exeext conftest.$ac_ext
29871 LIBS=$ac_check_lib_save_LIBS
29872 fi
29873 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29874 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29875 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29876   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29877 fi
29878
29879       fi
29880     fi
29881
29882     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29883     # socket/setsockopt and other routines are undefined under SCO ODT
29884     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29885     # on later versions), says Simon Leinen: it contains gethostby*
29886     # variants that don't use the name server (or something).  -lsocket
29887     # must be given before -lnsl if both are needed.  We assume that
29888     # if connect needs -lnsl, so does gethostbyname.
29889     { echo "$as_me:$LINENO: checking for connect" >&5
29890 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29891 if test "${ac_cv_func_connect+set}" = set; then
29892   echo $ECHO_N "(cached) $ECHO_C" >&6
29893 else
29894   cat >conftest.$ac_ext <<_ACEOF
29895 /* confdefs.h.  */
29896 _ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h.  */
29900 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29902 #define connect innocuous_connect
29903
29904 /* System header to define __stub macros and hopefully few prototypes,
29905     which can conflict with char connect (); below.
29906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29907     <limits.h> exists even on freestanding compilers.  */
29908
29909 #ifdef __STDC__
29910 # include <limits.h>
29911 #else
29912 # include <assert.h>
29913 #endif
29914
29915 #undef connect
29916
29917 /* Override any GCC internal prototype to avoid an error.
29918    Use char because int might match the return type of a GCC
29919    builtin and then its argument prototype would still apply.  */
29920 #ifdef __cplusplus
29921 extern "C"
29922 #endif
29923 char connect ();
29924 /* The GNU C library defines this for functions which it implements
29925     to always fail with ENOSYS.  Some functions are actually named
29926     something starting with __ and the normal name is an alias.  */
29927 #if defined __stub_connect || defined __stub___connect
29928 choke me
29929 #endif
29930
29931 int
29932 main ()
29933 {
29934 return connect ();
29935   ;
29936   return 0;
29937 }
29938 _ACEOF
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (ac_try="$ac_link"
29941 case "(($ac_try" in
29942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943   *) ac_try_echo=$ac_try;;
29944 esac
29945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946   (eval "$ac_link") 2>conftest.er1
29947   ac_status=$?
29948   grep -v '^ *+' conftest.er1 >conftest.err
29949   rm -f conftest.er1
29950   cat conftest.err >&5
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); } && {
29953          test -z "$ac_c_werror_flag" ||
29954          test ! -s conftest.err
29955        } && test -s conftest$ac_exeext &&
29956        $as_test_x conftest$ac_exeext; then
29957   ac_cv_func_connect=yes
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962         ac_cv_func_connect=no
29963 fi
29964
29965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29966       conftest$ac_exeext conftest.$ac_ext
29967 fi
29968 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29969 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29970
29971     if test $ac_cv_func_connect = no; then
29972       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29973 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29974 if test "${ac_cv_lib_socket_connect+set}" = set; then
29975   echo $ECHO_N "(cached) $ECHO_C" >&6
29976 else
29977   ac_check_lib_save_LIBS=$LIBS
29978 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29979 cat >conftest.$ac_ext <<_ACEOF
29980 /* confdefs.h.  */
29981 _ACEOF
29982 cat confdefs.h >>conftest.$ac_ext
29983 cat >>conftest.$ac_ext <<_ACEOF
29984 /* end confdefs.h.  */
29985
29986 /* Override any GCC internal prototype to avoid an error.
29987    Use char because int might match the return type of a GCC
29988    builtin and then its argument prototype would still apply.  */
29989 #ifdef __cplusplus
29990 extern "C"
29991 #endif
29992 char connect ();
29993 int
29994 main ()
29995 {
29996 return connect ();
29997   ;
29998   return 0;
29999 }
30000 _ACEOF
30001 rm -f conftest.$ac_objext conftest$ac_exeext
30002 if { (ac_try="$ac_link"
30003 case "(($ac_try" in
30004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005   *) ac_try_echo=$ac_try;;
30006 esac
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008   (eval "$ac_link") 2>conftest.er1
30009   ac_status=$?
30010   grep -v '^ *+' conftest.er1 >conftest.err
30011   rm -f conftest.er1
30012   cat conftest.err >&5
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); } && {
30015          test -z "$ac_c_werror_flag" ||
30016          test ! -s conftest.err
30017        } && test -s conftest$ac_exeext &&
30018        $as_test_x conftest$ac_exeext; then
30019   ac_cv_lib_socket_connect=yes
30020 else
30021   echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30023
30024         ac_cv_lib_socket_connect=no
30025 fi
30026
30027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30028       conftest$ac_exeext conftest.$ac_ext
30029 LIBS=$ac_check_lib_save_LIBS
30030 fi
30031 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30032 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30033 if test $ac_cv_lib_socket_connect = yes; then
30034   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30035 fi
30036
30037     fi
30038
30039     # Guillermo Gomez says -lposix is necessary on A/UX.
30040     { echo "$as_me:$LINENO: checking for remove" >&5
30041 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30042 if test "${ac_cv_func_remove+set}" = set; then
30043   echo $ECHO_N "(cached) $ECHO_C" >&6
30044 else
30045   cat >conftest.$ac_ext <<_ACEOF
30046 /* confdefs.h.  */
30047 _ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h.  */
30051 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30053 #define remove innocuous_remove
30054
30055 /* System header to define __stub macros and hopefully few prototypes,
30056     which can conflict with char remove (); below.
30057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30058     <limits.h> exists even on freestanding compilers.  */
30059
30060 #ifdef __STDC__
30061 # include <limits.h>
30062 #else
30063 # include <assert.h>
30064 #endif
30065
30066 #undef remove
30067
30068 /* Override any GCC internal prototype to avoid an error.
30069    Use char because int might match the return type of a GCC
30070    builtin and then its argument prototype would still apply.  */
30071 #ifdef __cplusplus
30072 extern "C"
30073 #endif
30074 char remove ();
30075 /* The GNU C library defines this for functions which it implements
30076     to always fail with ENOSYS.  Some functions are actually named
30077     something starting with __ and the normal name is an alias.  */
30078 #if defined __stub_remove || defined __stub___remove
30079 choke me
30080 #endif
30081
30082 int
30083 main ()
30084 {
30085 return remove ();
30086   ;
30087   return 0;
30088 }
30089 _ACEOF
30090 rm -f conftest.$ac_objext conftest$ac_exeext
30091 if { (ac_try="$ac_link"
30092 case "(($ac_try" in
30093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094   *) ac_try_echo=$ac_try;;
30095 esac
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097   (eval "$ac_link") 2>conftest.er1
30098   ac_status=$?
30099   grep -v '^ *+' conftest.er1 >conftest.err
30100   rm -f conftest.er1
30101   cat conftest.err >&5
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); } && {
30104          test -z "$ac_c_werror_flag" ||
30105          test ! -s conftest.err
30106        } && test -s conftest$ac_exeext &&
30107        $as_test_x conftest$ac_exeext; then
30108   ac_cv_func_remove=yes
30109 else
30110   echo "$as_me: failed program was:" >&5
30111 sed 's/^/| /' conftest.$ac_ext >&5
30112
30113         ac_cv_func_remove=no
30114 fi
30115
30116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30117       conftest$ac_exeext conftest.$ac_ext
30118 fi
30119 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30120 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30121
30122     if test $ac_cv_func_remove = no; then
30123       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30124 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30125 if test "${ac_cv_lib_posix_remove+set}" = set; then
30126   echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128   ac_check_lib_save_LIBS=$LIBS
30129 LIBS="-lposix  $LIBS"
30130 cat >conftest.$ac_ext <<_ACEOF
30131 /* confdefs.h.  */
30132 _ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h.  */
30136
30137 /* Override any GCC internal prototype to avoid an error.
30138    Use char because int might match the return type of a GCC
30139    builtin and then its argument prototype would still apply.  */
30140 #ifdef __cplusplus
30141 extern "C"
30142 #endif
30143 char remove ();
30144 int
30145 main ()
30146 {
30147 return remove ();
30148   ;
30149   return 0;
30150 }
30151 _ACEOF
30152 rm -f conftest.$ac_objext conftest$ac_exeext
30153 if { (ac_try="$ac_link"
30154 case "(($ac_try" in
30155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156   *) ac_try_echo=$ac_try;;
30157 esac
30158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159   (eval "$ac_link") 2>conftest.er1
30160   ac_status=$?
30161   grep -v '^ *+' conftest.er1 >conftest.err
30162   rm -f conftest.er1
30163   cat conftest.err >&5
30164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165   (exit $ac_status); } && {
30166          test -z "$ac_c_werror_flag" ||
30167          test ! -s conftest.err
30168        } && test -s conftest$ac_exeext &&
30169        $as_test_x conftest$ac_exeext; then
30170   ac_cv_lib_posix_remove=yes
30171 else
30172   echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30174
30175         ac_cv_lib_posix_remove=no
30176 fi
30177
30178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30179       conftest$ac_exeext conftest.$ac_ext
30180 LIBS=$ac_check_lib_save_LIBS
30181 fi
30182 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30183 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30184 if test $ac_cv_lib_posix_remove = yes; then
30185   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30186 fi
30187
30188     fi
30189
30190     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30191     { echo "$as_me:$LINENO: checking for shmat" >&5
30192 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30193 if test "${ac_cv_func_shmat+set}" = set; then
30194   echo $ECHO_N "(cached) $ECHO_C" >&6
30195 else
30196   cat >conftest.$ac_ext <<_ACEOF
30197 /* confdefs.h.  */
30198 _ACEOF
30199 cat confdefs.h >>conftest.$ac_ext
30200 cat >>conftest.$ac_ext <<_ACEOF
30201 /* end confdefs.h.  */
30202 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30204 #define shmat innocuous_shmat
30205
30206 /* System header to define __stub macros and hopefully few prototypes,
30207     which can conflict with char shmat (); below.
30208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30209     <limits.h> exists even on freestanding compilers.  */
30210
30211 #ifdef __STDC__
30212 # include <limits.h>
30213 #else
30214 # include <assert.h>
30215 #endif
30216
30217 #undef shmat
30218
30219 /* Override any GCC internal prototype to avoid an error.
30220    Use char because int might match the return type of a GCC
30221    builtin and then its argument prototype would still apply.  */
30222 #ifdef __cplusplus
30223 extern "C"
30224 #endif
30225 char shmat ();
30226 /* The GNU C library defines this for functions which it implements
30227     to always fail with ENOSYS.  Some functions are actually named
30228     something starting with __ and the normal name is an alias.  */
30229 #if defined __stub_shmat || defined __stub___shmat
30230 choke me
30231 #endif
30232
30233 int
30234 main ()
30235 {
30236 return shmat ();
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (ac_try="$ac_link"
30243 case "(($ac_try" in
30244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245   *) ac_try_echo=$ac_try;;
30246 esac
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248   (eval "$ac_link") 2>conftest.er1
30249   ac_status=$?
30250   grep -v '^ *+' conftest.er1 >conftest.err
30251   rm -f conftest.er1
30252   cat conftest.err >&5
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); } && {
30255          test -z "$ac_c_werror_flag" ||
30256          test ! -s conftest.err
30257        } && test -s conftest$ac_exeext &&
30258        $as_test_x conftest$ac_exeext; then
30259   ac_cv_func_shmat=yes
30260 else
30261   echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30263
30264         ac_cv_func_shmat=no
30265 fi
30266
30267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30268       conftest$ac_exeext conftest.$ac_ext
30269 fi
30270 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30271 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30272
30273     if test $ac_cv_func_shmat = no; then
30274       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30275 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30276 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30277   echo $ECHO_N "(cached) $ECHO_C" >&6
30278 else
30279   ac_check_lib_save_LIBS=$LIBS
30280 LIBS="-lipc  $LIBS"
30281 cat >conftest.$ac_ext <<_ACEOF
30282 /* confdefs.h.  */
30283 _ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h.  */
30287
30288 /* Override any GCC internal prototype to avoid an error.
30289    Use char because int might match the return type of a GCC
30290    builtin and then its argument prototype would still apply.  */
30291 #ifdef __cplusplus
30292 extern "C"
30293 #endif
30294 char shmat ();
30295 int
30296 main ()
30297 {
30298 return shmat ();
30299   ;
30300   return 0;
30301 }
30302 _ACEOF
30303 rm -f conftest.$ac_objext conftest$ac_exeext
30304 if { (ac_try="$ac_link"
30305 case "(($ac_try" in
30306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307   *) ac_try_echo=$ac_try;;
30308 esac
30309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310   (eval "$ac_link") 2>conftest.er1
30311   ac_status=$?
30312   grep -v '^ *+' conftest.er1 >conftest.err
30313   rm -f conftest.er1
30314   cat conftest.err >&5
30315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316   (exit $ac_status); } && {
30317          test -z "$ac_c_werror_flag" ||
30318          test ! -s conftest.err
30319        } && test -s conftest$ac_exeext &&
30320        $as_test_x conftest$ac_exeext; then
30321   ac_cv_lib_ipc_shmat=yes
30322 else
30323   echo "$as_me: failed program was:" >&5
30324 sed 's/^/| /' conftest.$ac_ext >&5
30325
30326         ac_cv_lib_ipc_shmat=no
30327 fi
30328
30329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30330       conftest$ac_exeext conftest.$ac_ext
30331 LIBS=$ac_check_lib_save_LIBS
30332 fi
30333 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30334 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30335 if test $ac_cv_lib_ipc_shmat = yes; then
30336   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30337 fi
30338
30339     fi
30340   fi
30341
30342   # Check for libraries that X11R6 Xt/Xaw programs need.
30343   ac_save_LDFLAGS=$LDFLAGS
30344   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30345   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30346   # check for ICE first), but we must link in the order -lSM -lICE or
30347   # we get undefined symbols.  So assume we have SM if we have ICE.
30348   # These have to be linked with before -lX11, unlike the other
30349   # libraries we check for below, so use a different variable.
30350   # John Interrante, Karl Berry
30351   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30352 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30353 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30354   echo $ECHO_N "(cached) $ECHO_C" >&6
30355 else
30356   ac_check_lib_save_LIBS=$LIBS
30357 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30358 cat >conftest.$ac_ext <<_ACEOF
30359 /* confdefs.h.  */
30360 _ACEOF
30361 cat confdefs.h >>conftest.$ac_ext
30362 cat >>conftest.$ac_ext <<_ACEOF
30363 /* end confdefs.h.  */
30364
30365 /* Override any GCC internal prototype to avoid an error.
30366    Use char because int might match the return type of a GCC
30367    builtin and then its argument prototype would still apply.  */
30368 #ifdef __cplusplus
30369 extern "C"
30370 #endif
30371 char IceConnectionNumber ();
30372 int
30373 main ()
30374 {
30375 return IceConnectionNumber ();
30376   ;
30377   return 0;
30378 }
30379 _ACEOF
30380 rm -f conftest.$ac_objext conftest$ac_exeext
30381 if { (ac_try="$ac_link"
30382 case "(($ac_try" in
30383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384   *) ac_try_echo=$ac_try;;
30385 esac
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387   (eval "$ac_link") 2>conftest.er1
30388   ac_status=$?
30389   grep -v '^ *+' conftest.er1 >conftest.err
30390   rm -f conftest.er1
30391   cat conftest.err >&5
30392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393   (exit $ac_status); } && {
30394          test -z "$ac_c_werror_flag" ||
30395          test ! -s conftest.err
30396        } && test -s conftest$ac_exeext &&
30397        $as_test_x conftest$ac_exeext; then
30398   ac_cv_lib_ICE_IceConnectionNumber=yes
30399 else
30400   echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30402
30403         ac_cv_lib_ICE_IceConnectionNumber=no
30404 fi
30405
30406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30407       conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30409 fi
30410 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30411 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30412 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30413   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30414 fi
30415
30416   LDFLAGS=$ac_save_LDFLAGS
30417
30418 fi
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451 for ac_header in \
30452    assert.h \
30453    fcntl.h \
30454    grp.h \
30455    pwd.h \
30456    libc.h \
30457    limits.h \
30458    stdarg.h \
30459    stdlib.h \
30460    stdint.h \
30461    string.h \
30462    strings.h \
30463    termios.h \
30464    termcap.h \
30465    term.h \
30466    unistd.h \
30467    sys/bitypes.h \
30468    sys/byteorder.h \
30469    sys/ioctl.h \
30470    sys/select.h \
30471    sys/socket.h \
30472    sys/sockio.h \
30473    sys/stat.h \
30474    sys/time.h \
30475    sys/types.h \
30476    arpa/nameser.h \
30477    resolv.h \
30478    mtio.h \
30479    sys/mtio.h \
30480    sys/tape.h \
30481    regex.h \
30482
30483 do
30484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30486   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30489   echo $ECHO_N "(cached) $ECHO_C" >&6
30490 fi
30491 ac_res=`eval echo '${'$as_ac_Header'}'`
30492                { echo "$as_me:$LINENO: result: $ac_res" >&5
30493 echo "${ECHO_T}$ac_res" >&6; }
30494 else
30495   # Is the header compilable?
30496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30498 cat >conftest.$ac_ext <<_ACEOF
30499 /* confdefs.h.  */
30500 _ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h.  */
30504 $ac_includes_default
30505 #include <$ac_header>
30506 _ACEOF
30507 rm -f conftest.$ac_objext
30508 if { (ac_try="$ac_compile"
30509 case "(($ac_try" in
30510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511   *) ac_try_echo=$ac_try;;
30512 esac
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514   (eval "$ac_compile") 2>conftest.er1
30515   ac_status=$?
30516   grep -v '^ *+' conftest.er1 >conftest.err
30517   rm -f conftest.er1
30518   cat conftest.err >&5
30519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520   (exit $ac_status); } && {
30521          test -z "$ac_c_werror_flag" ||
30522          test ! -s conftest.err
30523        } && test -s conftest.$ac_objext; then
30524   ac_header_compiler=yes
30525 else
30526   echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30528
30529         ac_header_compiler=no
30530 fi
30531
30532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30534 echo "${ECHO_T}$ac_header_compiler" >&6; }
30535
30536 # Is the header present?
30537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30539 cat >conftest.$ac_ext <<_ACEOF
30540 /* confdefs.h.  */
30541 _ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h.  */
30545 #include <$ac_header>
30546 _ACEOF
30547 if { (ac_try="$ac_cpp conftest.$ac_ext"
30548 case "(($ac_try" in
30549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550   *) ac_try_echo=$ac_try;;
30551 esac
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30554   ac_status=$?
30555   grep -v '^ *+' conftest.er1 >conftest.err
30556   rm -f conftest.er1
30557   cat conftest.err >&5
30558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559   (exit $ac_status); } >/dev/null && {
30560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30561          test ! -s conftest.err
30562        }; then
30563   ac_header_preproc=yes
30564 else
30565   echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30567
30568   ac_header_preproc=no
30569 fi
30570
30571 rm -f conftest.err conftest.$ac_ext
30572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30573 echo "${ECHO_T}$ac_header_preproc" >&6; }
30574
30575 # So?  What about this header?
30576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30577   yes:no: )
30578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30582     ac_header_preproc=yes
30583     ;;
30584   no:yes:* )
30585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30587     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30588 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30589     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30591     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30592 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30595     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30597
30598     ;;
30599 esac
30600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30603   echo $ECHO_N "(cached) $ECHO_C" >&6
30604 else
30605   eval "$as_ac_Header=\$ac_header_preproc"
30606 fi
30607 ac_res=`eval echo '${'$as_ac_Header'}'`
30608                { echo "$as_me:$LINENO: result: $ac_res" >&5
30609 echo "${ECHO_T}$ac_res" >&6; }
30610
30611 fi
30612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30613   cat >>confdefs.h <<_ACEOF
30614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30615 _ACEOF
30616
30617 fi
30618
30619 done
30620
30621 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30623 if test "${ac_cv_header_stdc+set}" = set; then
30624   echo $ECHO_N "(cached) $ECHO_C" >&6
30625 else
30626   cat >conftest.$ac_ext <<_ACEOF
30627 /* confdefs.h.  */
30628 _ACEOF
30629 cat confdefs.h >>conftest.$ac_ext
30630 cat >>conftest.$ac_ext <<_ACEOF
30631 /* end confdefs.h.  */
30632 #include <stdlib.h>
30633 #include <stdarg.h>
30634 #include <string.h>
30635 #include <float.h>
30636
30637 int
30638 main ()
30639 {
30640
30641   ;
30642   return 0;
30643 }
30644 _ACEOF
30645 rm -f conftest.$ac_objext
30646 if { (ac_try="$ac_compile"
30647 case "(($ac_try" in
30648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649   *) ac_try_echo=$ac_try;;
30650 esac
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652   (eval "$ac_compile") 2>conftest.er1
30653   ac_status=$?
30654   grep -v '^ *+' conftest.er1 >conftest.err
30655   rm -f conftest.er1
30656   cat conftest.err >&5
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); } && {
30659          test -z "$ac_c_werror_flag" ||
30660          test ! -s conftest.err
30661        } && test -s conftest.$ac_objext; then
30662   ac_cv_header_stdc=yes
30663 else
30664   echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667         ac_cv_header_stdc=no
30668 fi
30669
30670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30671
30672 if test $ac_cv_header_stdc = yes; then
30673   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30674   cat >conftest.$ac_ext <<_ACEOF
30675 /* confdefs.h.  */
30676 _ACEOF
30677 cat confdefs.h >>conftest.$ac_ext
30678 cat >>conftest.$ac_ext <<_ACEOF
30679 /* end confdefs.h.  */
30680 #include <string.h>
30681
30682 _ACEOF
30683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30684   $EGREP "memchr" >/dev/null 2>&1; then
30685   :
30686 else
30687   ac_cv_header_stdc=no
30688 fi
30689 rm -f conftest*
30690
30691 fi
30692
30693 if test $ac_cv_header_stdc = yes; then
30694   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30695   cat >conftest.$ac_ext <<_ACEOF
30696 /* confdefs.h.  */
30697 _ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h.  */
30701 #include <stdlib.h>
30702
30703 _ACEOF
30704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30705   $EGREP "free" >/dev/null 2>&1; then
30706   :
30707 else
30708   ac_cv_header_stdc=no
30709 fi
30710 rm -f conftest*
30711
30712 fi
30713
30714 if test $ac_cv_header_stdc = yes; then
30715   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30716   if test "$cross_compiling" = yes; then
30717   :
30718 else
30719   cat >conftest.$ac_ext <<_ACEOF
30720 /* confdefs.h.  */
30721 _ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h.  */
30725 #include <ctype.h>
30726 #include <stdlib.h>
30727 #if ((' ' & 0x0FF) == 0x020)
30728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30730 #else
30731 # define ISLOWER(c) \
30732                    (('a' <= (c) && (c) <= 'i') \
30733                      || ('j' <= (c) && (c) <= 'r') \
30734                      || ('s' <= (c) && (c) <= 'z'))
30735 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30736 #endif
30737
30738 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30739 int
30740 main ()
30741 {
30742   int i;
30743   for (i = 0; i < 256; i++)
30744     if (XOR (islower (i), ISLOWER (i))
30745         || toupper (i) != TOUPPER (i))
30746       return 2;
30747   return 0;
30748 }
30749 _ACEOF
30750 rm -f conftest$ac_exeext
30751 if { (ac_try="$ac_link"
30752 case "(($ac_try" in
30753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30754   *) ac_try_echo=$ac_try;;
30755 esac
30756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30757   (eval "$ac_link") 2>&5
30758   ac_status=$?
30759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30761   { (case "(($ac_try" in
30762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30763   *) ac_try_echo=$ac_try;;
30764 esac
30765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30766   (eval "$ac_try") 2>&5
30767   ac_status=$?
30768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769   (exit $ac_status); }; }; then
30770   :
30771 else
30772   echo "$as_me: program exited with status $ac_status" >&5
30773 echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30775
30776 ( exit $ac_status )
30777 ac_cv_header_stdc=no
30778 fi
30779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30780 fi
30781
30782
30783 fi
30784 fi
30785 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30786 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30787 if test $ac_cv_header_stdc = yes; then
30788
30789 cat >>confdefs.h <<\_ACEOF
30790 #define STDC_HEADERS 1
30791 _ACEOF
30792
30793 fi
30794
30795 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30798   echo $ECHO_N "(cached) $ECHO_C" >&6
30799 else
30800   cat >conftest.$ac_ext <<_ACEOF
30801 /* confdefs.h.  */
30802 _ACEOF
30803 cat confdefs.h >>conftest.$ac_ext
30804 cat >>conftest.$ac_ext <<_ACEOF
30805 /* end confdefs.h.  */
30806 #include <sys/types.h>
30807 int
30808 main ()
30809 {
30810 return makedev(0, 0);
30811   ;
30812   return 0;
30813 }
30814 _ACEOF
30815 rm -f conftest.$ac_objext conftest$ac_exeext
30816 if { (ac_try="$ac_link"
30817 case "(($ac_try" in
30818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30819   *) ac_try_echo=$ac_try;;
30820 esac
30821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30822   (eval "$ac_link") 2>conftest.er1
30823   ac_status=$?
30824   grep -v '^ *+' conftest.er1 >conftest.err
30825   rm -f conftest.er1
30826   cat conftest.err >&5
30827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828   (exit $ac_status); } && {
30829          test -z "$ac_c_werror_flag" ||
30830          test ! -s conftest.err
30831        } && test -s conftest$ac_exeext &&
30832        $as_test_x conftest$ac_exeext; then
30833   ac_cv_header_sys_types_h_makedev=yes
30834 else
30835   echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838         ac_cv_header_sys_types_h_makedev=no
30839 fi
30840
30841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30842       conftest$ac_exeext conftest.$ac_ext
30843
30844 fi
30845 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30846 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30847
30848 if test $ac_cv_header_sys_types_h_makedev = no; then
30849 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30850   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30851 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30852 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30853   echo $ECHO_N "(cached) $ECHO_C" >&6
30854 fi
30855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30856 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30857 else
30858   # Is the header compilable?
30859 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30860 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30861 cat >conftest.$ac_ext <<_ACEOF
30862 /* confdefs.h.  */
30863 _ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h.  */
30867 $ac_includes_default
30868 #include <sys/mkdev.h>
30869 _ACEOF
30870 rm -f conftest.$ac_objext
30871 if { (ac_try="$ac_compile"
30872 case "(($ac_try" in
30873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30874   *) ac_try_echo=$ac_try;;
30875 esac
30876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30877   (eval "$ac_compile") 2>conftest.er1
30878   ac_status=$?
30879   grep -v '^ *+' conftest.er1 >conftest.err
30880   rm -f conftest.er1
30881   cat conftest.err >&5
30882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883   (exit $ac_status); } && {
30884          test -z "$ac_c_werror_flag" ||
30885          test ! -s conftest.err
30886        } && test -s conftest.$ac_objext; then
30887   ac_header_compiler=yes
30888 else
30889   echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30891
30892         ac_header_compiler=no
30893 fi
30894
30895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30897 echo "${ECHO_T}$ac_header_compiler" >&6; }
30898
30899 # Is the header present?
30900 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30901 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30902 cat >conftest.$ac_ext <<_ACEOF
30903 /* confdefs.h.  */
30904 _ACEOF
30905 cat confdefs.h >>conftest.$ac_ext
30906 cat >>conftest.$ac_ext <<_ACEOF
30907 /* end confdefs.h.  */
30908 #include <sys/mkdev.h>
30909 _ACEOF
30910 if { (ac_try="$ac_cpp conftest.$ac_ext"
30911 case "(($ac_try" in
30912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913   *) ac_try_echo=$ac_try;;
30914 esac
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30917   ac_status=$?
30918   grep -v '^ *+' conftest.er1 >conftest.err
30919   rm -f conftest.er1
30920   cat conftest.err >&5
30921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922   (exit $ac_status); } >/dev/null && {
30923          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30924          test ! -s conftest.err
30925        }; then
30926   ac_header_preproc=yes
30927 else
30928   echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30930
30931   ac_header_preproc=no
30932 fi
30933
30934 rm -f conftest.err conftest.$ac_ext
30935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30936 echo "${ECHO_T}$ac_header_preproc" >&6; }
30937
30938 # So?  What about this header?
30939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30940   yes:no: )
30941     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30942 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30943     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30944 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30945     ac_header_preproc=yes
30946     ;;
30947   no:yes:* )
30948     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30949 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30950     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30951 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30952     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30953 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30954     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30955 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30956     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30957 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30958     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30959 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30960
30961     ;;
30962 esac
30963 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30964 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30965 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30966   echo $ECHO_N "(cached) $ECHO_C" >&6
30967 else
30968   ac_cv_header_sys_mkdev_h=$ac_header_preproc
30969 fi
30970 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30971 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30972
30973 fi
30974 if test $ac_cv_header_sys_mkdev_h = yes; then
30975
30976 cat >>confdefs.h <<\_ACEOF
30977 #define MAJOR_IN_MKDEV 1
30978 _ACEOF
30979
30980 fi
30981
30982
30983
30984   if test $ac_cv_header_sys_mkdev_h = no; then
30985     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30986   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
30987 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
30988 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30989   echo $ECHO_N "(cached) $ECHO_C" >&6
30990 fi
30991 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
30992 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
30993 else
30994   # Is the header compilable?
30995 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
30996 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
30997 cat >conftest.$ac_ext <<_ACEOF
30998 /* confdefs.h.  */
30999 _ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h.  */
31003 $ac_includes_default
31004 #include <sys/sysmacros.h>
31005 _ACEOF
31006 rm -f conftest.$ac_objext
31007 if { (ac_try="$ac_compile"
31008 case "(($ac_try" in
31009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010   *) ac_try_echo=$ac_try;;
31011 esac
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013   (eval "$ac_compile") 2>conftest.er1
31014   ac_status=$?
31015   grep -v '^ *+' conftest.er1 >conftest.err
31016   rm -f conftest.er1
31017   cat conftest.err >&5
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); } && {
31020          test -z "$ac_c_werror_flag" ||
31021          test ! -s conftest.err
31022        } && test -s conftest.$ac_objext; then
31023   ac_header_compiler=yes
31024 else
31025   echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31027
31028         ac_header_compiler=no
31029 fi
31030
31031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31033 echo "${ECHO_T}$ac_header_compiler" >&6; }
31034
31035 # Is the header present?
31036 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31037 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31038 cat >conftest.$ac_ext <<_ACEOF
31039 /* confdefs.h.  */
31040 _ACEOF
31041 cat confdefs.h >>conftest.$ac_ext
31042 cat >>conftest.$ac_ext <<_ACEOF
31043 /* end confdefs.h.  */
31044 #include <sys/sysmacros.h>
31045 _ACEOF
31046 if { (ac_try="$ac_cpp conftest.$ac_ext"
31047 case "(($ac_try" in
31048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049   *) ac_try_echo=$ac_try;;
31050 esac
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31053   ac_status=$?
31054   grep -v '^ *+' conftest.er1 >conftest.err
31055   rm -f conftest.er1
31056   cat conftest.err >&5
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); } >/dev/null && {
31059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31060          test ! -s conftest.err
31061        }; then
31062   ac_header_preproc=yes
31063 else
31064   echo "$as_me: failed program was:" >&5
31065 sed 's/^/| /' conftest.$ac_ext >&5
31066
31067   ac_header_preproc=no
31068 fi
31069
31070 rm -f conftest.err conftest.$ac_ext
31071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31072 echo "${ECHO_T}$ac_header_preproc" >&6; }
31073
31074 # So?  What about this header?
31075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31076   yes:no: )
31077     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31078 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31079     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31080 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31081     ac_header_preproc=yes
31082     ;;
31083   no:yes:* )
31084     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31086     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31087 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31088     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31089 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31090     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31091 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31092     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31093 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31094     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31095 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31096
31097     ;;
31098 esac
31099 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31100 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31101 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31102   echo $ECHO_N "(cached) $ECHO_C" >&6
31103 else
31104   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31105 fi
31106 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31107 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31108
31109 fi
31110 if test $ac_cv_header_sys_sysmacros_h = yes; then
31111
31112 cat >>confdefs.h <<\_ACEOF
31113 #define MAJOR_IN_SYSMACROS 1
31114 _ACEOF
31115
31116 fi
31117
31118
31119   fi
31120 fi
31121
31122
31123
31124
31125
31126
31127 ac_header_dirent=no
31128 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31129   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31130 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31131 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31133   echo $ECHO_N "(cached) $ECHO_C" >&6
31134 else
31135   cat >conftest.$ac_ext <<_ACEOF
31136 /* confdefs.h.  */
31137 _ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h.  */
31141 #include <sys/types.h>
31142 #include <$ac_hdr>
31143
31144 int
31145 main ()
31146 {
31147 if ((DIR *) 0)
31148 return 0;
31149   ;
31150   return 0;
31151 }
31152 _ACEOF
31153 rm -f conftest.$ac_objext
31154 if { (ac_try="$ac_compile"
31155 case "(($ac_try" in
31156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31157   *) ac_try_echo=$ac_try;;
31158 esac
31159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31160   (eval "$ac_compile") 2>conftest.er1
31161   ac_status=$?
31162   grep -v '^ *+' conftest.er1 >conftest.err
31163   rm -f conftest.er1
31164   cat conftest.err >&5
31165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166   (exit $ac_status); } && {
31167          test -z "$ac_c_werror_flag" ||
31168          test ! -s conftest.err
31169        } && test -s conftest.$ac_objext; then
31170   eval "$as_ac_Header=yes"
31171 else
31172   echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31174
31175         eval "$as_ac_Header=no"
31176 fi
31177
31178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31179 fi
31180 ac_res=`eval echo '${'$as_ac_Header'}'`
31181                { echo "$as_me:$LINENO: result: $ac_res" >&5
31182 echo "${ECHO_T}$ac_res" >&6; }
31183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31184   cat >>confdefs.h <<_ACEOF
31185 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31186 _ACEOF
31187
31188 ac_header_dirent=$ac_hdr; break
31189 fi
31190
31191 done
31192 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31193 if test $ac_header_dirent = dirent.h; then
31194   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31195 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31196 if test "${ac_cv_search_opendir+set}" = set; then
31197   echo $ECHO_N "(cached) $ECHO_C" >&6
31198 else
31199   ac_func_search_save_LIBS=$LIBS
31200 cat >conftest.$ac_ext <<_ACEOF
31201 /* confdefs.h.  */
31202 _ACEOF
31203 cat confdefs.h >>conftest.$ac_ext
31204 cat >>conftest.$ac_ext <<_ACEOF
31205 /* end confdefs.h.  */
31206
31207 /* Override any GCC internal prototype to avoid an error.
31208    Use char because int might match the return type of a GCC
31209    builtin and then its argument prototype would still apply.  */
31210 #ifdef __cplusplus
31211 extern "C"
31212 #endif
31213 char opendir ();
31214 int
31215 main ()
31216 {
31217 return opendir ();
31218   ;
31219   return 0;
31220 }
31221 _ACEOF
31222 for ac_lib in '' dir; do
31223   if test -z "$ac_lib"; then
31224     ac_res="none required"
31225   else
31226     ac_res=-l$ac_lib
31227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31228   fi
31229   rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (ac_try="$ac_link"
31231 case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_link") 2>conftest.er1
31237   ac_status=$?
31238   grep -v '^ *+' conftest.er1 >conftest.err
31239   rm -f conftest.er1
31240   cat conftest.err >&5
31241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242   (exit $ac_status); } && {
31243          test -z "$ac_c_werror_flag" ||
31244          test ! -s conftest.err
31245        } && test -s conftest$ac_exeext &&
31246        $as_test_x conftest$ac_exeext; then
31247   ac_cv_search_opendir=$ac_res
31248 else
31249   echo "$as_me: failed program was:" >&5
31250 sed 's/^/| /' conftest.$ac_ext >&5
31251
31252
31253 fi
31254
31255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31256       conftest$ac_exeext
31257   if test "${ac_cv_search_opendir+set}" = set; then
31258   break
31259 fi
31260 done
31261 if test "${ac_cv_search_opendir+set}" = set; then
31262   :
31263 else
31264   ac_cv_search_opendir=no
31265 fi
31266 rm conftest.$ac_ext
31267 LIBS=$ac_func_search_save_LIBS
31268 fi
31269 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31270 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31271 ac_res=$ac_cv_search_opendir
31272 if test "$ac_res" != no; then
31273   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31274
31275 fi
31276
31277 else
31278   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31279 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31280 if test "${ac_cv_search_opendir+set}" = set; then
31281   echo $ECHO_N "(cached) $ECHO_C" >&6
31282 else
31283   ac_func_search_save_LIBS=$LIBS
31284 cat >conftest.$ac_ext <<_ACEOF
31285 /* confdefs.h.  */
31286 _ACEOF
31287 cat confdefs.h >>conftest.$ac_ext
31288 cat >>conftest.$ac_ext <<_ACEOF
31289 /* end confdefs.h.  */
31290
31291 /* Override any GCC internal prototype to avoid an error.
31292    Use char because int might match the return type of a GCC
31293    builtin and then its argument prototype would still apply.  */
31294 #ifdef __cplusplus
31295 extern "C"
31296 #endif
31297 char opendir ();
31298 int
31299 main ()
31300 {
31301 return opendir ();
31302   ;
31303   return 0;
31304 }
31305 _ACEOF
31306 for ac_lib in '' x; do
31307   if test -z "$ac_lib"; then
31308     ac_res="none required"
31309   else
31310     ac_res=-l$ac_lib
31311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31312   fi
31313   rm -f conftest.$ac_objext conftest$ac_exeext
31314 if { (ac_try="$ac_link"
31315 case "(($ac_try" in
31316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317   *) ac_try_echo=$ac_try;;
31318 esac
31319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320   (eval "$ac_link") 2>conftest.er1
31321   ac_status=$?
31322   grep -v '^ *+' conftest.er1 >conftest.err
31323   rm -f conftest.er1
31324   cat conftest.err >&5
31325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326   (exit $ac_status); } && {
31327          test -z "$ac_c_werror_flag" ||
31328          test ! -s conftest.err
31329        } && test -s conftest$ac_exeext &&
31330        $as_test_x conftest$ac_exeext; then
31331   ac_cv_search_opendir=$ac_res
31332 else
31333   echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31335
31336
31337 fi
31338
31339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31340       conftest$ac_exeext
31341   if test "${ac_cv_search_opendir+set}" = set; then
31342   break
31343 fi
31344 done
31345 if test "${ac_cv_search_opendir+set}" = set; then
31346   :
31347 else
31348   ac_cv_search_opendir=no
31349 fi
31350 rm conftest.$ac_ext
31351 LIBS=$ac_func_search_save_LIBS
31352 fi
31353 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31354 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31355 ac_res=$ac_cv_search_opendir
31356 if test "$ac_res" != no; then
31357   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31358
31359 fi
31360
31361 fi
31362
31363 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31364 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31365 if test "${ac_cv_header_stat_broken+set}" = set; then
31366   echo $ECHO_N "(cached) $ECHO_C" >&6
31367 else
31368   cat >conftest.$ac_ext <<_ACEOF
31369 /* confdefs.h.  */
31370 _ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h.  */
31374 #include <sys/types.h>
31375 #include <sys/stat.h>
31376
31377 #if defined S_ISBLK && defined S_IFDIR
31378 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31379 #endif
31380
31381 #if defined S_ISBLK && defined S_IFCHR
31382 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31383 #endif
31384
31385 #if defined S_ISLNK && defined S_IFREG
31386 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31387 #endif
31388
31389 #if defined S_ISSOCK && defined S_IFREG
31390 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31391 #endif
31392
31393 _ACEOF
31394 rm -f conftest.$ac_objext
31395 if { (ac_try="$ac_compile"
31396 case "(($ac_try" in
31397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398   *) ac_try_echo=$ac_try;;
31399 esac
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401   (eval "$ac_compile") 2>conftest.er1
31402   ac_status=$?
31403   grep -v '^ *+' conftest.er1 >conftest.err
31404   rm -f conftest.er1
31405   cat conftest.err >&5
31406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407   (exit $ac_status); } && {
31408          test -z "$ac_c_werror_flag" ||
31409          test ! -s conftest.err
31410        } && test -s conftest.$ac_objext; then
31411   ac_cv_header_stat_broken=no
31412 else
31413   echo "$as_me: failed program was:" >&5
31414 sed 's/^/| /' conftest.$ac_ext >&5
31415
31416         ac_cv_header_stat_broken=yes
31417 fi
31418
31419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31420 fi
31421 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31422 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31423 if test $ac_cv_header_stat_broken = yes; then
31424
31425 cat >>confdefs.h <<\_ACEOF
31426 #define STAT_MACROS_BROKEN 1
31427 _ACEOF
31428
31429 fi
31430
31431 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31432 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31433 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31434   echo $ECHO_N "(cached) $ECHO_C" >&6
31435 else
31436   cat >conftest.$ac_ext <<_ACEOF
31437 /* confdefs.h.  */
31438 _ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h.  */
31442 #include <sys/types.h>
31443 #include <sys/wait.h>
31444 #ifndef WEXITSTATUS
31445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31446 #endif
31447 #ifndef WIFEXITED
31448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31449 #endif
31450
31451 int
31452 main ()
31453 {
31454   int s;
31455   wait (&s);
31456   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31457   ;
31458   return 0;
31459 }
31460 _ACEOF
31461 rm -f conftest.$ac_objext
31462 if { (ac_try="$ac_compile"
31463 case "(($ac_try" in
31464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465   *) ac_try_echo=$ac_try;;
31466 esac
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468   (eval "$ac_compile") 2>conftest.er1
31469   ac_status=$?
31470   grep -v '^ *+' conftest.er1 >conftest.err
31471   rm -f conftest.er1
31472   cat conftest.err >&5
31473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474   (exit $ac_status); } && {
31475          test -z "$ac_c_werror_flag" ||
31476          test ! -s conftest.err
31477        } && test -s conftest.$ac_objext; then
31478   ac_cv_header_sys_wait_h=yes
31479 else
31480   echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31482
31483         ac_cv_header_sys_wait_h=no
31484 fi
31485
31486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31487 fi
31488 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31489 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31490 if test $ac_cv_header_sys_wait_h = yes; then
31491
31492 cat >>confdefs.h <<\_ACEOF
31493 #define HAVE_SYS_WAIT_H 1
31494 _ACEOF
31495
31496 fi
31497
31498 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31499 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31500 if test "${ac_cv_header_time+set}" = set; then
31501   echo $ECHO_N "(cached) $ECHO_C" >&6
31502 else
31503   cat >conftest.$ac_ext <<_ACEOF
31504 /* confdefs.h.  */
31505 _ACEOF
31506 cat confdefs.h >>conftest.$ac_ext
31507 cat >>conftest.$ac_ext <<_ACEOF
31508 /* end confdefs.h.  */
31509 #include <sys/types.h>
31510 #include <sys/time.h>
31511 #include <time.h>
31512
31513 int
31514 main ()
31515 {
31516 if ((struct tm *) 0)
31517 return 0;
31518   ;
31519   return 0;
31520 }
31521 _ACEOF
31522 rm -f conftest.$ac_objext
31523 if { (ac_try="$ac_compile"
31524 case "(($ac_try" in
31525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526   *) ac_try_echo=$ac_try;;
31527 esac
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529   (eval "$ac_compile") 2>conftest.er1
31530   ac_status=$?
31531   grep -v '^ *+' conftest.er1 >conftest.err
31532   rm -f conftest.er1
31533   cat conftest.err >&5
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); } && {
31536          test -z "$ac_c_werror_flag" ||
31537          test ! -s conftest.err
31538        } && test -s conftest.$ac_objext; then
31539   ac_cv_header_time=yes
31540 else
31541   echo "$as_me: failed program was:" >&5
31542 sed 's/^/| /' conftest.$ac_ext >&5
31543
31544         ac_cv_header_time=no
31545 fi
31546
31547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31548 fi
31549 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31550 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31551 if test $ac_cv_header_time = yes; then
31552
31553 cat >>confdefs.h <<\_ACEOF
31554 #define TIME_WITH_SYS_TIME 1
31555 _ACEOF
31556
31557 fi
31558
31559 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31560 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31561 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31562   echo $ECHO_N "(cached) $ECHO_C" >&6
31563 else
31564   cat >conftest.$ac_ext <<_ACEOF
31565 /* confdefs.h.  */
31566 _ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h.  */
31570 $ac_includes_default
31571 int
31572 main ()
31573 {
31574 static struct stat ac_aggr;
31575 if (ac_aggr.st_blksize)
31576 return 0;
31577   ;
31578   return 0;
31579 }
31580 _ACEOF
31581 rm -f conftest.$ac_objext
31582 if { (ac_try="$ac_compile"
31583 case "(($ac_try" in
31584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585   *) ac_try_echo=$ac_try;;
31586 esac
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588   (eval "$ac_compile") 2>conftest.er1
31589   ac_status=$?
31590   grep -v '^ *+' conftest.er1 >conftest.err
31591   rm -f conftest.er1
31592   cat conftest.err >&5
31593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); } && {
31595          test -z "$ac_c_werror_flag" ||
31596          test ! -s conftest.err
31597        } && test -s conftest.$ac_objext; then
31598   ac_cv_member_struct_stat_st_blksize=yes
31599 else
31600   echo "$as_me: failed program was:" >&5
31601 sed 's/^/| /' conftest.$ac_ext >&5
31602
31603         cat >conftest.$ac_ext <<_ACEOF
31604 /* confdefs.h.  */
31605 _ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h.  */
31609 $ac_includes_default
31610 int
31611 main ()
31612 {
31613 static struct stat ac_aggr;
31614 if (sizeof ac_aggr.st_blksize)
31615 return 0;
31616   ;
31617   return 0;
31618 }
31619 _ACEOF
31620 rm -f conftest.$ac_objext
31621 if { (ac_try="$ac_compile"
31622 case "(($ac_try" in
31623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31624   *) ac_try_echo=$ac_try;;
31625 esac
31626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627   (eval "$ac_compile") 2>conftest.er1
31628   ac_status=$?
31629   grep -v '^ *+' conftest.er1 >conftest.err
31630   rm -f conftest.er1
31631   cat conftest.err >&5
31632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633   (exit $ac_status); } && {
31634          test -z "$ac_c_werror_flag" ||
31635          test ! -s conftest.err
31636        } && test -s conftest.$ac_objext; then
31637   ac_cv_member_struct_stat_st_blksize=yes
31638 else
31639   echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31641
31642         ac_cv_member_struct_stat_st_blksize=no
31643 fi
31644
31645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31646 fi
31647
31648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649 fi
31650 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31651 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31652 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31653
31654 cat >>confdefs.h <<_ACEOF
31655 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31656 _ACEOF
31657
31658
31659 cat >>confdefs.h <<\_ACEOF
31660 #define HAVE_ST_BLKSIZE 1
31661 _ACEOF
31662
31663 fi
31664
31665
31666 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31667 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31668 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31669   echo $ECHO_N "(cached) $ECHO_C" >&6
31670 else
31671   cat >conftest.$ac_ext <<_ACEOF
31672 /* confdefs.h.  */
31673 _ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h.  */
31677 $ac_includes_default
31678 int
31679 main ()
31680 {
31681 static struct stat ac_aggr;
31682 if (ac_aggr.st_blocks)
31683 return 0;
31684   ;
31685   return 0;
31686 }
31687 _ACEOF
31688 rm -f conftest.$ac_objext
31689 if { (ac_try="$ac_compile"
31690 case "(($ac_try" in
31691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692   *) ac_try_echo=$ac_try;;
31693 esac
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695   (eval "$ac_compile") 2>conftest.er1
31696   ac_status=$?
31697   grep -v '^ *+' conftest.er1 >conftest.err
31698   rm -f conftest.er1
31699   cat conftest.err >&5
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); } && {
31702          test -z "$ac_c_werror_flag" ||
31703          test ! -s conftest.err
31704        } && test -s conftest.$ac_objext; then
31705   ac_cv_member_struct_stat_st_blocks=yes
31706 else
31707   echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.$ac_ext >&5
31709
31710         cat >conftest.$ac_ext <<_ACEOF
31711 /* confdefs.h.  */
31712 _ACEOF
31713 cat confdefs.h >>conftest.$ac_ext
31714 cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h.  */
31716 $ac_includes_default
31717 int
31718 main ()
31719 {
31720 static struct stat ac_aggr;
31721 if (sizeof ac_aggr.st_blocks)
31722 return 0;
31723   ;
31724   return 0;
31725 }
31726 _ACEOF
31727 rm -f conftest.$ac_objext
31728 if { (ac_try="$ac_compile"
31729 case "(($ac_try" in
31730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731   *) ac_try_echo=$ac_try;;
31732 esac
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734   (eval "$ac_compile") 2>conftest.er1
31735   ac_status=$?
31736   grep -v '^ *+' conftest.er1 >conftest.err
31737   rm -f conftest.er1
31738   cat conftest.err >&5
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); } && {
31741          test -z "$ac_c_werror_flag" ||
31742          test ! -s conftest.err
31743        } && test -s conftest.$ac_objext; then
31744   ac_cv_member_struct_stat_st_blocks=yes
31745 else
31746   echo "$as_me: failed program was:" >&5
31747 sed 's/^/| /' conftest.$ac_ext >&5
31748
31749         ac_cv_member_struct_stat_st_blocks=no
31750 fi
31751
31752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31753 fi
31754
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756 fi
31757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31758 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31759 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31760
31761 cat >>confdefs.h <<_ACEOF
31762 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31763 _ACEOF
31764
31765
31766 cat >>confdefs.h <<\_ACEOF
31767 #define HAVE_ST_BLOCKS 1
31768 _ACEOF
31769
31770 else
31771   case " $LIBOBJS " in
31772   *" fileblocks.$ac_objext "* ) ;;
31773   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31774  ;;
31775 esac
31776
31777 fi
31778
31779
31780 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31781 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31782 if test "${ac_cv_struct_tm+set}" = set; then
31783   echo $ECHO_N "(cached) $ECHO_C" >&6
31784 else
31785   cat >conftest.$ac_ext <<_ACEOF
31786 /* confdefs.h.  */
31787 _ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h.  */
31791 #include <sys/types.h>
31792 #include <time.h>
31793
31794 int
31795 main ()
31796 {
31797 struct tm tm;
31798                                      int *p = &tm.tm_sec;
31799                                      return !p;
31800   ;
31801   return 0;
31802 }
31803 _ACEOF
31804 rm -f conftest.$ac_objext
31805 if { (ac_try="$ac_compile"
31806 case "(($ac_try" in
31807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31808   *) ac_try_echo=$ac_try;;
31809 esac
31810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31811   (eval "$ac_compile") 2>conftest.er1
31812   ac_status=$?
31813   grep -v '^ *+' conftest.er1 >conftest.err
31814   rm -f conftest.er1
31815   cat conftest.err >&5
31816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817   (exit $ac_status); } && {
31818          test -z "$ac_c_werror_flag" ||
31819          test ! -s conftest.err
31820        } && test -s conftest.$ac_objext; then
31821   ac_cv_struct_tm=time.h
31822 else
31823   echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31825
31826         ac_cv_struct_tm=sys/time.h
31827 fi
31828
31829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31830 fi
31831 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31832 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31833 if test $ac_cv_struct_tm = sys/time.h; then
31834
31835 cat >>confdefs.h <<\_ACEOF
31836 #define TM_IN_SYS_TIME 1
31837 _ACEOF
31838
31839 fi
31840
31841 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31842 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31843 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31844   echo $ECHO_N "(cached) $ECHO_C" >&6
31845 else
31846   cat >conftest.$ac_ext <<_ACEOF
31847 /* confdefs.h.  */
31848 _ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h.  */
31852 #include <sys/types.h>
31853 #include <$ac_cv_struct_tm>
31854
31855
31856 int
31857 main ()
31858 {
31859 static struct tm ac_aggr;
31860 if (ac_aggr.tm_zone)
31861 return 0;
31862   ;
31863   return 0;
31864 }
31865 _ACEOF
31866 rm -f conftest.$ac_objext
31867 if { (ac_try="$ac_compile"
31868 case "(($ac_try" in
31869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870   *) ac_try_echo=$ac_try;;
31871 esac
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873   (eval "$ac_compile") 2>conftest.er1
31874   ac_status=$?
31875   grep -v '^ *+' conftest.er1 >conftest.err
31876   rm -f conftest.er1
31877   cat conftest.err >&5
31878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879   (exit $ac_status); } && {
31880          test -z "$ac_c_werror_flag" ||
31881          test ! -s conftest.err
31882        } && test -s conftest.$ac_objext; then
31883   ac_cv_member_struct_tm_tm_zone=yes
31884 else
31885   echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31887
31888         cat >conftest.$ac_ext <<_ACEOF
31889 /* confdefs.h.  */
31890 _ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h.  */
31894 #include <sys/types.h>
31895 #include <$ac_cv_struct_tm>
31896
31897
31898 int
31899 main ()
31900 {
31901 static struct tm ac_aggr;
31902 if (sizeof ac_aggr.tm_zone)
31903 return 0;
31904   ;
31905   return 0;
31906 }
31907 _ACEOF
31908 rm -f conftest.$ac_objext
31909 if { (ac_try="$ac_compile"
31910 case "(($ac_try" in
31911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912   *) ac_try_echo=$ac_try;;
31913 esac
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915   (eval "$ac_compile") 2>conftest.er1
31916   ac_status=$?
31917   grep -v '^ *+' conftest.er1 >conftest.err
31918   rm -f conftest.er1
31919   cat conftest.err >&5
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); } && {
31922          test -z "$ac_c_werror_flag" ||
31923          test ! -s conftest.err
31924        } && test -s conftest.$ac_objext; then
31925   ac_cv_member_struct_tm_tm_zone=yes
31926 else
31927   echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31929
31930         ac_cv_member_struct_tm_tm_zone=no
31931 fi
31932
31933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31934 fi
31935
31936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31937 fi
31938 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31939 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31940 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31941
31942 cat >>confdefs.h <<_ACEOF
31943 #define HAVE_STRUCT_TM_TM_ZONE 1
31944 _ACEOF
31945
31946
31947 fi
31948
31949 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31950
31951 cat >>confdefs.h <<\_ACEOF
31952 #define HAVE_TM_ZONE 1
31953 _ACEOF
31954
31955 else
31956   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31957 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31958 if test "${ac_cv_have_decl_tzname+set}" = set; then
31959   echo $ECHO_N "(cached) $ECHO_C" >&6
31960 else
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 #include <time.h>
31968
31969 int
31970 main ()
31971 {
31972 #ifndef tzname
31973   (void) tzname;
31974 #endif
31975
31976   ;
31977   return 0;
31978 }
31979 _ACEOF
31980 rm -f conftest.$ac_objext
31981 if { (ac_try="$ac_compile"
31982 case "(($ac_try" in
31983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984   *) ac_try_echo=$ac_try;;
31985 esac
31986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987   (eval "$ac_compile") 2>conftest.er1
31988   ac_status=$?
31989   grep -v '^ *+' conftest.er1 >conftest.err
31990   rm -f conftest.er1
31991   cat conftest.err >&5
31992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993   (exit $ac_status); } && {
31994          test -z "$ac_c_werror_flag" ||
31995          test ! -s conftest.err
31996        } && test -s conftest.$ac_objext; then
31997   ac_cv_have_decl_tzname=yes
31998 else
31999   echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32001
32002         ac_cv_have_decl_tzname=no
32003 fi
32004
32005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32006 fi
32007 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32008 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32009 if test $ac_cv_have_decl_tzname = yes; then
32010
32011 cat >>confdefs.h <<_ACEOF
32012 #define HAVE_DECL_TZNAME 1
32013 _ACEOF
32014
32015
32016 else
32017   cat >>confdefs.h <<_ACEOF
32018 #define HAVE_DECL_TZNAME 0
32019 _ACEOF
32020
32021
32022 fi
32023
32024
32025   { echo "$as_me:$LINENO: checking for tzname" >&5
32026 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32027 if test "${ac_cv_var_tzname+set}" = set; then
32028   echo $ECHO_N "(cached) $ECHO_C" >&6
32029 else
32030   cat >conftest.$ac_ext <<_ACEOF
32031 /* confdefs.h.  */
32032 _ACEOF
32033 cat confdefs.h >>conftest.$ac_ext
32034 cat >>conftest.$ac_ext <<_ACEOF
32035 /* end confdefs.h.  */
32036 #include <time.h>
32037 #if !HAVE_DECL_TZNAME
32038 extern char *tzname[];
32039 #endif
32040
32041 int
32042 main ()
32043 {
32044 return tzname[0][0];
32045   ;
32046   return 0;
32047 }
32048 _ACEOF
32049 rm -f conftest.$ac_objext conftest$ac_exeext
32050 if { (ac_try="$ac_link"
32051 case "(($ac_try" in
32052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32053   *) ac_try_echo=$ac_try;;
32054 esac
32055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32056   (eval "$ac_link") 2>conftest.er1
32057   ac_status=$?
32058   grep -v '^ *+' conftest.er1 >conftest.err
32059   rm -f conftest.er1
32060   cat conftest.err >&5
32061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062   (exit $ac_status); } && {
32063          test -z "$ac_c_werror_flag" ||
32064          test ! -s conftest.err
32065        } && test -s conftest$ac_exeext &&
32066        $as_test_x conftest$ac_exeext; then
32067   ac_cv_var_tzname=yes
32068 else
32069   echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32071
32072         ac_cv_var_tzname=no
32073 fi
32074
32075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32076       conftest$ac_exeext conftest.$ac_ext
32077 fi
32078 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32079 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32080   if test $ac_cv_var_tzname = yes; then
32081
32082 cat >>confdefs.h <<\_ACEOF
32083 #define HAVE_TZNAME 1
32084 _ACEOF
32085
32086   fi
32087 fi
32088
32089
32090 { echo "$as_me:$LINENO: checking for utime.h" >&5
32091 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32092 if test "${ba_cv_header_utime_h+set}" = set; then
32093   echo $ECHO_N "(cached) $ECHO_C" >&6
32094 else
32095
32096        cat >conftest.$ac_ext <<_ACEOF
32097 /* confdefs.h.  */
32098 _ACEOF
32099 cat confdefs.h >>conftest.$ac_ext
32100 cat >>conftest.$ac_ext <<_ACEOF
32101 /* end confdefs.h.  */
32102
32103               #include <sys/types.h>
32104               #include <utime.h>
32105
32106 int
32107 main ()
32108 {
32109
32110               struct utimbuf foo
32111
32112   ;
32113   return 0;
32114 }
32115 _ACEOF
32116 rm -f conftest.$ac_objext
32117 if { (ac_try="$ac_compile"
32118 case "(($ac_try" in
32119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120   *) ac_try_echo=$ac_try;;
32121 esac
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123   (eval "$ac_compile") 2>conftest.er1
32124   ac_status=$?
32125   grep -v '^ *+' conftest.er1 >conftest.err
32126   rm -f conftest.er1
32127   cat conftest.err >&5
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); } && {
32130          test -z "$ac_c_werror_flag" ||
32131          test ! -s conftest.err
32132        } && test -s conftest.$ac_objext; then
32133
32134               ba_cv_header_utime_h=yes
32135
32136 else
32137   echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32139
32140
32141               ba_cv_header_utime_h=no
32142
32143
32144 fi
32145
32146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32147
32148
32149 fi
32150 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32151 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32152 test $ba_cv_header_utime_h = yes &&
32153 cat >>confdefs.h <<\_ACEOF
32154 #define HAVE_UTIME_H 1
32155 _ACEOF
32156
32157
32158 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32159 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32160 if test "${ba_cv_header_socklen_t+set}" = set; then
32161   echo $ECHO_N "(cached) $ECHO_C" >&6
32162 else
32163
32164        cat >conftest.$ac_ext <<_ACEOF
32165 /* confdefs.h.  */
32166 _ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h.  */
32170
32171               #include <sys/types.h>
32172               #include <sys/socket.h>
32173
32174 int
32175 main ()
32176 {
32177
32178               socklen_t x
32179
32180   ;
32181   return 0;
32182 }
32183 _ACEOF
32184 rm -f conftest.$ac_objext
32185 if { (ac_try="$ac_compile"
32186 case "(($ac_try" in
32187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188   *) ac_try_echo=$ac_try;;
32189 esac
32190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191   (eval "$ac_compile") 2>conftest.er1
32192   ac_status=$?
32193   grep -v '^ *+' conftest.er1 >conftest.err
32194   rm -f conftest.er1
32195   cat conftest.err >&5
32196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197   (exit $ac_status); } && {
32198          test -z "$ac_c_werror_flag" ||
32199          test ! -s conftest.err
32200        } && test -s conftest.$ac_objext; then
32201
32202              ba_cv_header_socklen_t=yes
32203
32204 else
32205   echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32207
32208
32209              ba_cv_header_socklen_t=no
32210
32211
32212 fi
32213
32214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32215
32216
32217 fi
32218 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32219 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32220 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32221 #define HAVE_SOCKLEN_T 1
32222 _ACEOF
32223
32224
32225 { echo "$as_me:$LINENO: checking for bigendian" >&5
32226 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32227 if test "${ba_cv_bigendian+set}" = set; then
32228   echo $ECHO_N "(cached) $ECHO_C" >&6
32229 else
32230
32231        if test "$cross_compiling" = yes; then
32232
32233              ba_cv_bigendian=no
32234
32235
32236 else
32237   cat >conftest.$ac_ext <<_ACEOF
32238 /* confdefs.h.  */
32239 _ACEOF
32240 cat confdefs.h >>conftest.$ac_ext
32241 cat >>conftest.$ac_ext <<_ACEOF
32242 /* end confdefs.h.  */
32243
32244               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32245
32246 _ACEOF
32247 rm -f conftest$ac_exeext
32248 if { (ac_try="$ac_link"
32249 case "(($ac_try" in
32250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251   *) ac_try_echo=$ac_try;;
32252 esac
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254   (eval "$ac_link") 2>&5
32255   ac_status=$?
32256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32258   { (case "(($ac_try" in
32259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260   *) ac_try_echo=$ac_try;;
32261 esac
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263   (eval "$ac_try") 2>&5
32264   ac_status=$?
32265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266   (exit $ac_status); }; }; then
32267
32268              ba_cv_bigendian=yes
32269
32270 else
32271   echo "$as_me: program exited with status $ac_status" >&5
32272 echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275 ( exit $ac_status )
32276
32277              ba_cv_bigendian=no
32278
32279 fi
32280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32281 fi
32282
32283
32284
32285
32286 fi
32287 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32288 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32289 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32290 #define HAVE_BIGENDIAN 1
32291 _ACEOF
32292
32293
32294 ac_ext=cpp
32295 ac_cpp='$CXXCPP $CPPFLAGS'
32296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32299
32300 { echo "$as_me:$LINENO: checking for typeof" >&5
32301 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32302 if test "${ba_cv_have_typeof+set}" = set; then
32303   echo $ECHO_N "(cached) $ECHO_C" >&6
32304 else
32305
32306        if test "$cross_compiling" = yes; then
32307
32308               ba_cv_have_typeof=no
32309
32310
32311 else
32312   cat >conftest.$ac_ext <<_ACEOF
32313 /* confdefs.h.  */
32314 _ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h.  */
32318
32319               main(){char *a = 0; a = (typeof a)a;}
32320
32321 _ACEOF
32322 rm -f conftest$ac_exeext
32323 if { (ac_try="$ac_link"
32324 case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_link") 2>&5
32330   ac_status=$?
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32333   { (case "(($ac_try" in
32334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335   *) ac_try_echo=$ac_try;;
32336 esac
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338   (eval "$ac_try") 2>&5
32339   ac_status=$?
32340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341   (exit $ac_status); }; }; then
32342
32343               ba_cv_have_typeof=yes
32344
32345 else
32346   echo "$as_me: program exited with status $ac_status" >&5
32347 echo "$as_me: failed program was:" >&5
32348 sed 's/^/| /' conftest.$ac_ext >&5
32349
32350 ( exit $ac_status )
32351
32352               ba_cv_have_typeof=no
32353
32354 fi
32355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32356 fi
32357
32358
32359
32360
32361 fi
32362 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32363 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32364 test $ba_cv_have_typeof = yes &&
32365 cat >>confdefs.h <<\_ACEOF
32366 #define HAVE_TYPEOF 1
32367 _ACEOF
32368
32369 ac_ext=c
32370 ac_cpp='$CPP $CPPFLAGS'
32371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32374
32375
32376 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32377 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32378 if test "${ac_cv_c_const+set}" = set; then
32379   echo $ECHO_N "(cached) $ECHO_C" >&6
32380 else
32381   cat >conftest.$ac_ext <<_ACEOF
32382 /* confdefs.h.  */
32383 _ACEOF
32384 cat confdefs.h >>conftest.$ac_ext
32385 cat >>conftest.$ac_ext <<_ACEOF
32386 /* end confdefs.h.  */
32387
32388 int
32389 main ()
32390 {
32391 /* FIXME: Include the comments suggested by Paul. */
32392 #ifndef __cplusplus
32393   /* Ultrix mips cc rejects this.  */
32394   typedef int charset[2];
32395   const charset cs;
32396   /* SunOS 4.1.1 cc rejects this.  */
32397   char const *const *pcpcc;
32398   char **ppc;
32399   /* NEC SVR4.0.2 mips cc rejects this.  */
32400   struct point {int x, y;};
32401   static struct point const zero = {0,0};
32402   /* AIX XL C 1.02.0.0 rejects this.
32403      It does not let you subtract one const X* pointer from another in
32404      an arm of an if-expression whose if-part is not a constant
32405      expression */
32406   const char *g = "string";
32407   pcpcc = &g + (g ? g-g : 0);
32408   /* HPUX 7.0 cc rejects these. */
32409   ++pcpcc;
32410   ppc = (char**) pcpcc;
32411   pcpcc = (char const *const *) ppc;
32412   { /* SCO 3.2v4 cc rejects this.  */
32413     char *t;
32414     char const *s = 0 ? (char *) 0 : (char const *) 0;
32415
32416     *t++ = 0;
32417     if (s) return 0;
32418   }
32419   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32420     int x[] = {25, 17};
32421     const int *foo = &x[0];
32422     ++foo;
32423   }
32424   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32425     typedef const int *iptr;
32426     iptr p = 0;
32427     ++p;
32428   }
32429   { /* AIX XL C 1.02.0.0 rejects this saying
32430        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32431     struct s { int j; const int *ap[3]; };
32432     struct s *b; b->j = 5;
32433   }
32434   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32435     const int foo = 10;
32436     if (!foo) return 0;
32437   }
32438   return !cs[0] && !zero.x;
32439 #endif
32440
32441   ;
32442   return 0;
32443 }
32444 _ACEOF
32445 rm -f conftest.$ac_objext
32446 if { (ac_try="$ac_compile"
32447 case "(($ac_try" in
32448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449   *) ac_try_echo=$ac_try;;
32450 esac
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452   (eval "$ac_compile") 2>conftest.er1
32453   ac_status=$?
32454   grep -v '^ *+' conftest.er1 >conftest.err
32455   rm -f conftest.er1
32456   cat conftest.err >&5
32457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); } && {
32459          test -z "$ac_c_werror_flag" ||
32460          test ! -s conftest.err
32461        } && test -s conftest.$ac_objext; then
32462   ac_cv_c_const=yes
32463 else
32464   echo "$as_me: failed program was:" >&5
32465 sed 's/^/| /' conftest.$ac_ext >&5
32466
32467         ac_cv_c_const=no
32468 fi
32469
32470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32471 fi
32472 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32473 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32474 if test $ac_cv_c_const = no; then
32475
32476 cat >>confdefs.h <<\_ACEOF
32477 #define const
32478 _ACEOF
32479
32480 fi
32481
32482
32483 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32484 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32485 fstype=no
32486 # The order of these tests is important.
32487 cat >conftest.$ac_ext <<_ACEOF
32488 /* confdefs.h.  */
32489 _ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h.  */
32493
32494        #include <sys/statvfs.h>
32495        #include <sys/fstyp.h>
32496
32497 _ACEOF
32498 if { (ac_try="$ac_cpp conftest.$ac_ext"
32499 case "(($ac_try" in
32500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501   *) ac_try_echo=$ac_try;;
32502 esac
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32505   ac_status=$?
32506   grep -v '^ *+' conftest.er1 >conftest.err
32507   rm -f conftest.er1
32508   cat conftest.err >&5
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); } >/dev/null && {
32511          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32512          test ! -s conftest.err
32513        }; then
32514   cat >>confdefs.h <<\_ACEOF
32515 #define FSTYPE_STATVFS 1
32516 _ACEOF
32517  fstype=SVR4
32518
32519 else
32520   echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32522
32523
32524 fi
32525
32526 rm -f conftest.err conftest.$ac_ext
32527 if test $fstype = no; then
32528    cat >conftest.$ac_ext <<_ACEOF
32529 /* confdefs.h.  */
32530 _ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h.  */
32534
32535           #include <sys/statfs.h>
32536           #include <sys/fstyp.h>
32537
32538 _ACEOF
32539 if { (ac_try="$ac_cpp conftest.$ac_ext"
32540 case "(($ac_try" in
32541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542   *) ac_try_echo=$ac_try;;
32543 esac
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32546   ac_status=$?
32547   grep -v '^ *+' conftest.er1 >conftest.err
32548   rm -f conftest.er1
32549   cat conftest.err >&5
32550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551   (exit $ac_status); } >/dev/null && {
32552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32553          test ! -s conftest.err
32554        }; then
32555   cat >>confdefs.h <<\_ACEOF
32556 #define FSTYPE_USG_STATFS 1
32557 _ACEOF
32558  fstype=SVR3
32559
32560 else
32561   echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32563
32564
32565 fi
32566
32567 rm -f conftest.err conftest.$ac_ext
32568 fi
32569 if test $fstype = no; then
32570    cat >conftest.$ac_ext <<_ACEOF
32571 /* confdefs.h.  */
32572 _ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h.  */
32576
32577           #include <sys/statfs.h>
32578           #include <sys/vmount.h>
32579
32580 _ACEOF
32581 if { (ac_try="$ac_cpp conftest.$ac_ext"
32582 case "(($ac_try" in
32583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584   *) ac_try_echo=$ac_try;;
32585 esac
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32588   ac_status=$?
32589   grep -v '^ *+' conftest.er1 >conftest.err
32590   rm -f conftest.er1
32591   cat conftest.err >&5
32592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593   (exit $ac_status); } >/dev/null && {
32594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32595          test ! -s conftest.err
32596        }; then
32597   cat >>confdefs.h <<\_ACEOF
32598 #define FSTYPE_AIX_STATFS 1
32599 _ACEOF
32600  fstype=AIX
32601
32602 else
32603   echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32605
32606
32607 fi
32608
32609 rm -f conftest.err conftest.$ac_ext
32610 fi
32611 if test $fstype = no; then
32612    cat >conftest.$ac_ext <<_ACEOF
32613 /* confdefs.h.  */
32614 _ACEOF
32615 cat confdefs.h >>conftest.$ac_ext
32616 cat >>conftest.$ac_ext <<_ACEOF
32617 /* end confdefs.h.  */
32618
32619           #include <mntent.h>
32620
32621 _ACEOF
32622 if { (ac_try="$ac_cpp conftest.$ac_ext"
32623 case "(($ac_try" in
32624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32625   *) ac_try_echo=$ac_try;;
32626 esac
32627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32629   ac_status=$?
32630   grep -v '^ *+' conftest.er1 >conftest.err
32631   rm -f conftest.er1
32632   cat conftest.err >&5
32633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634   (exit $ac_status); } >/dev/null && {
32635          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32636          test ! -s conftest.err
32637        }; then
32638   cat >>confdefs.h <<\_ACEOF
32639 #define FSTYPE_MNTENT 1
32640 _ACEOF
32641  fstype=4.3BSD
32642
32643 else
32644   echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32646
32647
32648 fi
32649
32650 rm -f conftest.err conftest.$ac_ext
32651 fi
32652 if test $fstype = no; then
32653    cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659 #include <sys/mount.h>
32660
32661 _ACEOF
32662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32663   $EGREP "f_type;" >/dev/null 2>&1; then
32664   cat >>confdefs.h <<\_ACEOF
32665 #define FSTYPE_STATFS 1
32666 _ACEOF
32667  fstype=4.4BSD/OSF1
32668 fi
32669 rm -f conftest*
32670
32671 fi
32672 if test $fstype = no; then
32673    cat >conftest.$ac_ext <<_ACEOF
32674 /* confdefs.h.  */
32675 _ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h.  */
32679
32680           #include <sys/mount.h>
32681           #include <sys/fs_types.h>
32682
32683 _ACEOF
32684 if { (ac_try="$ac_cpp conftest.$ac_ext"
32685 case "(($ac_try" in
32686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687   *) ac_try_echo=$ac_try;;
32688 esac
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32691   ac_status=$?
32692   grep -v '^ *+' conftest.er1 >conftest.err
32693   rm -f conftest.er1
32694   cat conftest.err >&5
32695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696   (exit $ac_status); } >/dev/null && {
32697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32698          test ! -s conftest.err
32699        }; then
32700   cat >>confdefs.h <<\_ACEOF
32701 #define FSTYPE_GETMNT 1
32702 _ACEOF
32703  fstype=Ultrix
32704
32705 else
32706   echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32708
32709
32710 fi
32711
32712 rm -f conftest.err conftest.$ac_ext
32713 fi
32714 { echo "$as_me:$LINENO: result: $fstype" >&5
32715 echo "${ECHO_T}$fstype" >&6; }
32716
32717 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32718   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32719 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32720 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32721   echo $ECHO_N "(cached) $ECHO_C" >&6
32722 fi
32723 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32724 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32725 else
32726   # Is the header compilable?
32727 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32728 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32729 cat >conftest.$ac_ext <<_ACEOF
32730 /* confdefs.h.  */
32731 _ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h.  */
32735 $ac_includes_default
32736 #include <sys/statvfs.h>
32737 _ACEOF
32738 rm -f conftest.$ac_objext
32739 if { (ac_try="$ac_compile"
32740 case "(($ac_try" in
32741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742   *) ac_try_echo=$ac_try;;
32743 esac
32744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745   (eval "$ac_compile") 2>conftest.er1
32746   ac_status=$?
32747   grep -v '^ *+' conftest.er1 >conftest.err
32748   rm -f conftest.er1
32749   cat conftest.err >&5
32750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751   (exit $ac_status); } && {
32752          test -z "$ac_c_werror_flag" ||
32753          test ! -s conftest.err
32754        } && test -s conftest.$ac_objext; then
32755   ac_header_compiler=yes
32756 else
32757   echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32759
32760         ac_header_compiler=no
32761 fi
32762
32763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32765 echo "${ECHO_T}$ac_header_compiler" >&6; }
32766
32767 # Is the header present?
32768 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32769 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32770 cat >conftest.$ac_ext <<_ACEOF
32771 /* confdefs.h.  */
32772 _ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h.  */
32776 #include <sys/statvfs.h>
32777 _ACEOF
32778 if { (ac_try="$ac_cpp conftest.$ac_ext"
32779 case "(($ac_try" in
32780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781   *) ac_try_echo=$ac_try;;
32782 esac
32783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32785   ac_status=$?
32786   grep -v '^ *+' conftest.er1 >conftest.err
32787   rm -f conftest.er1
32788   cat conftest.err >&5
32789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790   (exit $ac_status); } >/dev/null && {
32791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32792          test ! -s conftest.err
32793        }; then
32794   ac_header_preproc=yes
32795 else
32796   echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32798
32799   ac_header_preproc=no
32800 fi
32801
32802 rm -f conftest.err conftest.$ac_ext
32803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32804 echo "${ECHO_T}$ac_header_preproc" >&6; }
32805
32806 # So?  What about this header?
32807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32808   yes:no: )
32809     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32810 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32811     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32812 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32813     ac_header_preproc=yes
32814     ;;
32815   no:yes:* )
32816     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32817 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32818     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32819 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32820     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32821 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32822     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32823 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32824     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32825 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32826     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32827 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32828
32829     ;;
32830 esac
32831 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32832 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32833 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32834   echo $ECHO_N "(cached) $ECHO_C" >&6
32835 else
32836   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32837 fi
32838 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32839 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32840
32841 fi
32842 if test $ac_cv_header_sys_statvfs_h = yes; then
32843
32844 cat >>confdefs.h <<\_ACEOF
32845 #define HAVE_SYS_STATVFS_H 1
32846 _ACEOF
32847
32848 fi
32849
32850
32851
32852 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32853 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32854 if test "${ac_cv_type_signal+set}" = set; then
32855   echo $ECHO_N "(cached) $ECHO_C" >&6
32856 else
32857   cat >conftest.$ac_ext <<_ACEOF
32858 /* confdefs.h.  */
32859 _ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h.  */
32863 #include <sys/types.h>
32864 #include <signal.h>
32865
32866 int
32867 main ()
32868 {
32869 return *(signal (0, 0)) (0) == 1;
32870   ;
32871   return 0;
32872 }
32873 _ACEOF
32874 rm -f conftest.$ac_objext
32875 if { (ac_try="$ac_compile"
32876 case "(($ac_try" in
32877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32878   *) ac_try_echo=$ac_try;;
32879 esac
32880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32881   (eval "$ac_compile") 2>conftest.er1
32882   ac_status=$?
32883   grep -v '^ *+' conftest.er1 >conftest.err
32884   rm -f conftest.er1
32885   cat conftest.err >&5
32886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887   (exit $ac_status); } && {
32888          test -z "$ac_c_werror_flag" ||
32889          test ! -s conftest.err
32890        } && test -s conftest.$ac_objext; then
32891   ac_cv_type_signal=int
32892 else
32893   echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32895
32896         ac_cv_type_signal=void
32897 fi
32898
32899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32900 fi
32901 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32902 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32903
32904 cat >>confdefs.h <<_ACEOF
32905 #define RETSIGTYPE $ac_cv_type_signal
32906 _ACEOF
32907
32908
32909
32910   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32911 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32912   if test "${bash_cv_signal_vintage+set}" = set; then
32913   echo $ECHO_N "(cached) $ECHO_C" >&6
32914 else
32915
32916     cat >conftest.$ac_ext <<_ACEOF
32917 /* confdefs.h.  */
32918 _ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h.  */
32922 #include <signal.h>
32923 int
32924 main ()
32925 {
32926
32927       sigset_t ss;
32928       struct sigaction sa;
32929       sigemptyset(&ss); sigsuspend(&ss);
32930       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32931       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32932
32933   ;
32934   return 0;
32935 }
32936 _ACEOF
32937 rm -f conftest.$ac_objext conftest$ac_exeext
32938 if { (ac_try="$ac_link"
32939 case "(($ac_try" in
32940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32941   *) ac_try_echo=$ac_try;;
32942 esac
32943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32944   (eval "$ac_link") 2>conftest.er1
32945   ac_status=$?
32946   grep -v '^ *+' conftest.er1 >conftest.err
32947   rm -f conftest.er1
32948   cat conftest.err >&5
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); } && {
32951          test -z "$ac_c_werror_flag" ||
32952          test ! -s conftest.err
32953        } && test -s conftest$ac_exeext &&
32954        $as_test_x conftest$ac_exeext; then
32955   bash_cv_signal_vintage="posix"
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960
32961       cat >conftest.$ac_ext <<_ACEOF
32962 /* confdefs.h.  */
32963 _ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h.  */
32967 #include <signal.h>
32968 int
32969 main ()
32970 {
32971
32972           int mask = sigmask(SIGINT);
32973           sigsetmask(mask); sigblock(mask); sigpause(mask);
32974
32975   ;
32976   return 0;
32977 }
32978 _ACEOF
32979 rm -f conftest.$ac_objext conftest$ac_exeext
32980 if { (ac_try="$ac_link"
32981 case "(($ac_try" in
32982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983   *) ac_try_echo=$ac_try;;
32984 esac
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986   (eval "$ac_link") 2>conftest.er1
32987   ac_status=$?
32988   grep -v '^ *+' conftest.er1 >conftest.err
32989   rm -f conftest.er1
32990   cat conftest.err >&5
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); } && {
32993          test -z "$ac_c_werror_flag" ||
32994          test ! -s conftest.err
32995        } && test -s conftest$ac_exeext &&
32996        $as_test_x conftest$ac_exeext; then
32997   bash_cv_signal_vintage="4.2bsd"
32998 else
32999   echo "$as_me: failed program was:" >&5
33000 sed 's/^/| /' conftest.$ac_ext >&5
33001
33002
33003         cat >conftest.$ac_ext <<_ACEOF
33004 /* confdefs.h.  */
33005 _ACEOF
33006 cat confdefs.h >>conftest.$ac_ext
33007 cat >>conftest.$ac_ext <<_ACEOF
33008 /* end confdefs.h.  */
33009
33010           #include <signal.h>
33011           RETSIGTYPE foo() { }
33012 int
33013 main ()
33014 {
33015
33016                   int mask = sigmask(SIGINT);
33017                   sigset(SIGINT, foo); sigrelse(SIGINT);
33018                   sighold(SIGINT); sigpause(SIGINT);
33019
33020   ;
33021   return 0;
33022 }
33023 _ACEOF
33024 rm -f conftest.$ac_objext conftest$ac_exeext
33025 if { (ac_try="$ac_link"
33026 case "(($ac_try" in
33027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028   *) ac_try_echo=$ac_try;;
33029 esac
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031   (eval "$ac_link") 2>conftest.er1
33032   ac_status=$?
33033   grep -v '^ *+' conftest.er1 >conftest.err
33034   rm -f conftest.er1
33035   cat conftest.err >&5
33036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037   (exit $ac_status); } && {
33038          test -z "$ac_c_werror_flag" ||
33039          test ! -s conftest.err
33040        } && test -s conftest$ac_exeext &&
33041        $as_test_x conftest$ac_exeext; then
33042   bash_cv_signal_vintage="svr3"
33043 else
33044   echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33046
33047         bash_cv_signal_vintage="v7"
33048
33049 fi
33050
33051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33052       conftest$ac_exeext conftest.$ac_ext
33053
33054 fi
33055
33056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33057       conftest$ac_exeext conftest.$ac_ext
33058
33059 fi
33060
33061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33062       conftest$ac_exeext conftest.$ac_ext
33063
33064 fi
33065
33066   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33067 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33068   if test "$bash_cv_signal_vintage" = "posix"; then
33069     cat >>confdefs.h <<\_ACEOF
33070 #define HAVE_POSIX_SIGNALS 1
33071 _ACEOF
33072
33073   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33074     cat >>confdefs.h <<\_ACEOF
33075 #define HAVE_BSD_SIGNALS 1
33076 _ACEOF
33077
33078   elif test "$bash_cv_signal_vintage" = "svr3"; then
33079     cat >>confdefs.h <<\_ACEOF
33080 #define HAVE_USG_SIGHOLD 1
33081 _ACEOF
33082
33083   fi
33084
33085 { echo "$as_me:$LINENO: checking for mode_t" >&5
33086 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33087 if test "${ac_cv_type_mode_t+set}" = set; then
33088   echo $ECHO_N "(cached) $ECHO_C" >&6
33089 else
33090   cat >conftest.$ac_ext <<_ACEOF
33091 /* confdefs.h.  */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h.  */
33096 $ac_includes_default
33097 typedef mode_t ac__type_new_;
33098 int
33099 main ()
33100 {
33101 if ((ac__type_new_ *) 0)
33102   return 0;
33103 if (sizeof (ac__type_new_))
33104   return 0;
33105   ;
33106   return 0;
33107 }
33108 _ACEOF
33109 rm -f conftest.$ac_objext
33110 if { (ac_try="$ac_compile"
33111 case "(($ac_try" in
33112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113   *) ac_try_echo=$ac_try;;
33114 esac
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116   (eval "$ac_compile") 2>conftest.er1
33117   ac_status=$?
33118   grep -v '^ *+' conftest.er1 >conftest.err
33119   rm -f conftest.er1
33120   cat conftest.err >&5
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); } && {
33123          test -z "$ac_c_werror_flag" ||
33124          test ! -s conftest.err
33125        } && test -s conftest.$ac_objext; then
33126   ac_cv_type_mode_t=yes
33127 else
33128   echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33130
33131         ac_cv_type_mode_t=no
33132 fi
33133
33134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33135 fi
33136 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33137 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33138 if test $ac_cv_type_mode_t = yes; then
33139   :
33140 else
33141
33142 cat >>confdefs.h <<_ACEOF
33143 #define mode_t int
33144 _ACEOF
33145
33146 fi
33147
33148 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33149 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33150 if test "${ac_cv_type_uid_t+set}" = set; then
33151   echo $ECHO_N "(cached) $ECHO_C" >&6
33152 else
33153   cat >conftest.$ac_ext <<_ACEOF
33154 /* confdefs.h.  */
33155 _ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h.  */
33159 #include <sys/types.h>
33160
33161 _ACEOF
33162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33163   $EGREP "uid_t" >/dev/null 2>&1; then
33164   ac_cv_type_uid_t=yes
33165 else
33166   ac_cv_type_uid_t=no
33167 fi
33168 rm -f conftest*
33169
33170 fi
33171 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33172 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33173 if test $ac_cv_type_uid_t = no; then
33174
33175 cat >>confdefs.h <<\_ACEOF
33176 #define uid_t int
33177 _ACEOF
33178
33179
33180 cat >>confdefs.h <<\_ACEOF
33181 #define gid_t int
33182 _ACEOF
33183
33184 fi
33185
33186 { echo "$as_me:$LINENO: checking for size_t" >&5
33187 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33188 if test "${ac_cv_type_size_t+set}" = set; then
33189   echo $ECHO_N "(cached) $ECHO_C" >&6
33190 else
33191   cat >conftest.$ac_ext <<_ACEOF
33192 /* confdefs.h.  */
33193 _ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h.  */
33197 $ac_includes_default
33198 typedef size_t ac__type_new_;
33199 int
33200 main ()
33201 {
33202 if ((ac__type_new_ *) 0)
33203   return 0;
33204 if (sizeof (ac__type_new_))
33205   return 0;
33206   ;
33207   return 0;
33208 }
33209 _ACEOF
33210 rm -f conftest.$ac_objext
33211 if { (ac_try="$ac_compile"
33212 case "(($ac_try" in
33213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214   *) ac_try_echo=$ac_try;;
33215 esac
33216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33217   (eval "$ac_compile") 2>conftest.er1
33218   ac_status=$?
33219   grep -v '^ *+' conftest.er1 >conftest.err
33220   rm -f conftest.er1
33221   cat conftest.err >&5
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); } && {
33224          test -z "$ac_c_werror_flag" ||
33225          test ! -s conftest.err
33226        } && test -s conftest.$ac_objext; then
33227   ac_cv_type_size_t=yes
33228 else
33229   echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33231
33232         ac_cv_type_size_t=no
33233 fi
33234
33235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33236 fi
33237 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33238 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33239 if test $ac_cv_type_size_t = yes; then
33240   :
33241 else
33242
33243 cat >>confdefs.h <<_ACEOF
33244 #define size_t unsigned int
33245 _ACEOF
33246
33247 fi
33248
33249 { echo "$as_me:$LINENO: checking for pid_t" >&5
33250 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33251 if test "${ac_cv_type_pid_t+set}" = set; then
33252   echo $ECHO_N "(cached) $ECHO_C" >&6
33253 else
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 $ac_includes_default
33261 typedef pid_t ac__type_new_;
33262 int
33263 main ()
33264 {
33265 if ((ac__type_new_ *) 0)
33266   return 0;
33267 if (sizeof (ac__type_new_))
33268   return 0;
33269   ;
33270   return 0;
33271 }
33272 _ACEOF
33273 rm -f conftest.$ac_objext
33274 if { (ac_try="$ac_compile"
33275 case "(($ac_try" in
33276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277   *) ac_try_echo=$ac_try;;
33278 esac
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280   (eval "$ac_compile") 2>conftest.er1
33281   ac_status=$?
33282   grep -v '^ *+' conftest.er1 >conftest.err
33283   rm -f conftest.er1
33284   cat conftest.err >&5
33285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286   (exit $ac_status); } && {
33287          test -z "$ac_c_werror_flag" ||
33288          test ! -s conftest.err
33289        } && test -s conftest.$ac_objext; then
33290   ac_cv_type_pid_t=yes
33291 else
33292   echo "$as_me: failed program was:" >&5
33293 sed 's/^/| /' conftest.$ac_ext >&5
33294
33295         ac_cv_type_pid_t=no
33296 fi
33297
33298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33299 fi
33300 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33301 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33302 if test $ac_cv_type_pid_t = yes; then
33303   :
33304 else
33305
33306 cat >>confdefs.h <<_ACEOF
33307 #define pid_t int
33308 _ACEOF
33309
33310 fi
33311
33312 { echo "$as_me:$LINENO: checking for off_t" >&5
33313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33314 if test "${ac_cv_type_off_t+set}" = set; then
33315   echo $ECHO_N "(cached) $ECHO_C" >&6
33316 else
33317   cat >conftest.$ac_ext <<_ACEOF
33318 /* confdefs.h.  */
33319 _ACEOF
33320 cat confdefs.h >>conftest.$ac_ext
33321 cat >>conftest.$ac_ext <<_ACEOF
33322 /* end confdefs.h.  */
33323 $ac_includes_default
33324 typedef off_t ac__type_new_;
33325 int
33326 main ()
33327 {
33328 if ((ac__type_new_ *) 0)
33329   return 0;
33330 if (sizeof (ac__type_new_))
33331   return 0;
33332   ;
33333   return 0;
33334 }
33335 _ACEOF
33336 rm -f conftest.$ac_objext
33337 if { (ac_try="$ac_compile"
33338 case "(($ac_try" in
33339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340   *) ac_try_echo=$ac_try;;
33341 esac
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343   (eval "$ac_compile") 2>conftest.er1
33344   ac_status=$?
33345   grep -v '^ *+' conftest.er1 >conftest.err
33346   rm -f conftest.er1
33347   cat conftest.err >&5
33348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349   (exit $ac_status); } && {
33350          test -z "$ac_c_werror_flag" ||
33351          test ! -s conftest.err
33352        } && test -s conftest.$ac_objext; then
33353   ac_cv_type_off_t=yes
33354 else
33355   echo "$as_me: failed program was:" >&5
33356 sed 's/^/| /' conftest.$ac_ext >&5
33357
33358         ac_cv_type_off_t=no
33359 fi
33360
33361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33362 fi
33363 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33364 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33365 if test $ac_cv_type_off_t = yes; then
33366   :
33367 else
33368
33369 cat >>confdefs.h <<_ACEOF
33370 #define off_t long int
33371 _ACEOF
33372
33373 fi
33374
33375 { echo "$as_me:$LINENO: checking for ino_t" >&5
33376 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33377 if test "${ac_cv_type_ino_t+set}" = set; then
33378   echo $ECHO_N "(cached) $ECHO_C" >&6
33379 else
33380   cat >conftest.$ac_ext <<_ACEOF
33381 /* confdefs.h.  */
33382 _ACEOF
33383 cat confdefs.h >>conftest.$ac_ext
33384 cat >>conftest.$ac_ext <<_ACEOF
33385 /* end confdefs.h.  */
33386 $ac_includes_default
33387 typedef ino_t ac__type_new_;
33388 int
33389 main ()
33390 {
33391 if ((ac__type_new_ *) 0)
33392   return 0;
33393 if (sizeof (ac__type_new_))
33394   return 0;
33395   ;
33396   return 0;
33397 }
33398 _ACEOF
33399 rm -f conftest.$ac_objext
33400 if { (ac_try="$ac_compile"
33401 case "(($ac_try" in
33402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403   *) ac_try_echo=$ac_try;;
33404 esac
33405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406   (eval "$ac_compile") 2>conftest.er1
33407   ac_status=$?
33408   grep -v '^ *+' conftest.er1 >conftest.err
33409   rm -f conftest.er1
33410   cat conftest.err >&5
33411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412   (exit $ac_status); } && {
33413          test -z "$ac_c_werror_flag" ||
33414          test ! -s conftest.err
33415        } && test -s conftest.$ac_objext; then
33416   ac_cv_type_ino_t=yes
33417 else
33418   echo "$as_me: failed program was:" >&5
33419 sed 's/^/| /' conftest.$ac_ext >&5
33420
33421         ac_cv_type_ino_t=no
33422 fi
33423
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425 fi
33426 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33427 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33428 if test $ac_cv_type_ino_t = yes; then
33429   :
33430 else
33431
33432 cat >>confdefs.h <<_ACEOF
33433 #define ino_t unsigned long
33434 _ACEOF
33435
33436 fi
33437
33438 { echo "$as_me:$LINENO: checking for dev_t" >&5
33439 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33440 if test "${ac_cv_type_dev_t+set}" = set; then
33441   echo $ECHO_N "(cached) $ECHO_C" >&6
33442 else
33443   cat >conftest.$ac_ext <<_ACEOF
33444 /* confdefs.h.  */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h.  */
33449 $ac_includes_default
33450 typedef dev_t ac__type_new_;
33451 int
33452 main ()
33453 {
33454 if ((ac__type_new_ *) 0)
33455   return 0;
33456 if (sizeof (ac__type_new_))
33457   return 0;
33458   ;
33459   return 0;
33460 }
33461 _ACEOF
33462 rm -f conftest.$ac_objext
33463 if { (ac_try="$ac_compile"
33464 case "(($ac_try" in
33465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33466   *) ac_try_echo=$ac_try;;
33467 esac
33468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33469   (eval "$ac_compile") 2>conftest.er1
33470   ac_status=$?
33471   grep -v '^ *+' conftest.er1 >conftest.err
33472   rm -f conftest.er1
33473   cat conftest.err >&5
33474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475   (exit $ac_status); } && {
33476          test -z "$ac_c_werror_flag" ||
33477          test ! -s conftest.err
33478        } && test -s conftest.$ac_objext; then
33479   ac_cv_type_dev_t=yes
33480 else
33481   echo "$as_me: failed program was:" >&5
33482 sed 's/^/| /' conftest.$ac_ext >&5
33483
33484         ac_cv_type_dev_t=no
33485 fi
33486
33487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33488 fi
33489 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33490 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33491 if test $ac_cv_type_dev_t = yes; then
33492   :
33493 else
33494
33495 cat >>confdefs.h <<_ACEOF
33496 #define dev_t unsigned long
33497 _ACEOF
33498
33499 fi
33500
33501 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33502 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33503 if test "${ac_cv_type_daddr_t+set}" = set; then
33504   echo $ECHO_N "(cached) $ECHO_C" >&6
33505 else
33506   cat >conftest.$ac_ext <<_ACEOF
33507 /* confdefs.h.  */
33508 _ACEOF
33509 cat confdefs.h >>conftest.$ac_ext
33510 cat >>conftest.$ac_ext <<_ACEOF
33511 /* end confdefs.h.  */
33512 $ac_includes_default
33513 typedef daddr_t ac__type_new_;
33514 int
33515 main ()
33516 {
33517 if ((ac__type_new_ *) 0)
33518   return 0;
33519 if (sizeof (ac__type_new_))
33520   return 0;
33521   ;
33522   return 0;
33523 }
33524 _ACEOF
33525 rm -f conftest.$ac_objext
33526 if { (ac_try="$ac_compile"
33527 case "(($ac_try" in
33528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33529   *) ac_try_echo=$ac_try;;
33530 esac
33531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33532   (eval "$ac_compile") 2>conftest.er1
33533   ac_status=$?
33534   grep -v '^ *+' conftest.er1 >conftest.err
33535   rm -f conftest.er1
33536   cat conftest.err >&5
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); } && {
33539          test -z "$ac_c_werror_flag" ||
33540          test ! -s conftest.err
33541        } && test -s conftest.$ac_objext; then
33542   ac_cv_type_daddr_t=yes
33543 else
33544   echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33546
33547         ac_cv_type_daddr_t=no
33548 fi
33549
33550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33551 fi
33552 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33553 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33554 if test $ac_cv_type_daddr_t = yes; then
33555   :
33556 else
33557
33558 cat >>confdefs.h <<_ACEOF
33559 #define daddr_t long
33560 _ACEOF
33561
33562 fi
33563
33564 { echo "$as_me:$LINENO: checking for major_t" >&5
33565 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33566 if test "${ac_cv_type_major_t+set}" = set; then
33567   echo $ECHO_N "(cached) $ECHO_C" >&6
33568 else
33569   cat >conftest.$ac_ext <<_ACEOF
33570 /* confdefs.h.  */
33571 _ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h.  */
33575 $ac_includes_default
33576 typedef major_t ac__type_new_;
33577 int
33578 main ()
33579 {
33580 if ((ac__type_new_ *) 0)
33581   return 0;
33582 if (sizeof (ac__type_new_))
33583   return 0;
33584   ;
33585   return 0;
33586 }
33587 _ACEOF
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592   *) ac_try_echo=$ac_try;;
33593 esac
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595   (eval "$ac_compile") 2>conftest.er1
33596   ac_status=$?
33597   grep -v '^ *+' conftest.er1 >conftest.err
33598   rm -f conftest.er1
33599   cat conftest.err >&5
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); } && {
33602          test -z "$ac_c_werror_flag" ||
33603          test ! -s conftest.err
33604        } && test -s conftest.$ac_objext; then
33605   ac_cv_type_major_t=yes
33606 else
33607   echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33609
33610         ac_cv_type_major_t=no
33611 fi
33612
33613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33614 fi
33615 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33616 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33617 if test $ac_cv_type_major_t = yes; then
33618   :
33619 else
33620
33621 cat >>confdefs.h <<_ACEOF
33622 #define major_t int
33623 _ACEOF
33624
33625 fi
33626
33627 { echo "$as_me:$LINENO: checking for minor_t" >&5
33628 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33629 if test "${ac_cv_type_minor_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 minor_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_minor_t=yes
33669 else
33670   echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33672
33673         ac_cv_type_minor_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_minor_t" >&5
33679 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33680 if test $ac_cv_type_minor_t = yes; then
33681   :
33682 else
33683
33684 cat >>confdefs.h <<_ACEOF
33685 #define minor_t int
33686 _ACEOF
33687
33688 fi
33689
33690 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33691 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33692 if test "${ac_cv_type_ssize_t+set}" = set; then
33693   echo $ECHO_N "(cached) $ECHO_C" >&6
33694 else
33695   cat >conftest.$ac_ext <<_ACEOF
33696 /* confdefs.h.  */
33697 _ACEOF
33698 cat confdefs.h >>conftest.$ac_ext
33699 cat >>conftest.$ac_ext <<_ACEOF
33700 /* end confdefs.h.  */
33701 $ac_includes_default
33702 typedef ssize_t ac__type_new_;
33703 int
33704 main ()
33705 {
33706 if ((ac__type_new_ *) 0)
33707   return 0;
33708 if (sizeof (ac__type_new_))
33709   return 0;
33710   ;
33711   return 0;
33712 }
33713 _ACEOF
33714 rm -f conftest.$ac_objext
33715 if { (ac_try="$ac_compile"
33716 case "(($ac_try" in
33717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718   *) ac_try_echo=$ac_try;;
33719 esac
33720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33721   (eval "$ac_compile") 2>conftest.er1
33722   ac_status=$?
33723   grep -v '^ *+' conftest.er1 >conftest.err
33724   rm -f conftest.er1
33725   cat conftest.err >&5
33726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727   (exit $ac_status); } && {
33728          test -z "$ac_c_werror_flag" ||
33729          test ! -s conftest.err
33730        } && test -s conftest.$ac_objext; then
33731   ac_cv_type_ssize_t=yes
33732 else
33733   echo "$as_me: failed program was:" >&5
33734 sed 's/^/| /' conftest.$ac_ext >&5
33735
33736         ac_cv_type_ssize_t=no
33737 fi
33738
33739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33740 fi
33741 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33742 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33743 if test $ac_cv_type_ssize_t = yes; then
33744   :
33745 else
33746
33747 cat >>confdefs.h <<_ACEOF
33748 #define ssize_t int
33749 _ACEOF
33750
33751 fi
33752
33753 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33754 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33755 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33756   echo $ECHO_N "(cached) $ECHO_C" >&6
33757 else
33758   cat >conftest.$ac_ext <<_ACEOF
33759 /* confdefs.h.  */
33760 _ACEOF
33761 cat confdefs.h >>conftest.$ac_ext
33762 cat >>conftest.$ac_ext <<_ACEOF
33763 /* end confdefs.h.  */
33764 $ac_includes_default
33765 int
33766 main ()
33767 {
33768 static struct stat ac_aggr;
33769 if (ac_aggr.st_blocks)
33770 return 0;
33771   ;
33772   return 0;
33773 }
33774 _ACEOF
33775 rm -f conftest.$ac_objext
33776 if { (ac_try="$ac_compile"
33777 case "(($ac_try" in
33778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779   *) ac_try_echo=$ac_try;;
33780 esac
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782   (eval "$ac_compile") 2>conftest.er1
33783   ac_status=$?
33784   grep -v '^ *+' conftest.er1 >conftest.err
33785   rm -f conftest.er1
33786   cat conftest.err >&5
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); } && {
33789          test -z "$ac_c_werror_flag" ||
33790          test ! -s conftest.err
33791        } && test -s conftest.$ac_objext; then
33792   ac_cv_member_struct_stat_st_blocks=yes
33793 else
33794   echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33796
33797         cat >conftest.$ac_ext <<_ACEOF
33798 /* confdefs.h.  */
33799 _ACEOF
33800 cat confdefs.h >>conftest.$ac_ext
33801 cat >>conftest.$ac_ext <<_ACEOF
33802 /* end confdefs.h.  */
33803 $ac_includes_default
33804 int
33805 main ()
33806 {
33807 static struct stat ac_aggr;
33808 if (sizeof ac_aggr.st_blocks)
33809 return 0;
33810   ;
33811   return 0;
33812 }
33813 _ACEOF
33814 rm -f conftest.$ac_objext
33815 if { (ac_try="$ac_compile"
33816 case "(($ac_try" in
33817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818   *) ac_try_echo=$ac_try;;
33819 esac
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821   (eval "$ac_compile") 2>conftest.er1
33822   ac_status=$?
33823   grep -v '^ *+' conftest.er1 >conftest.err
33824   rm -f conftest.er1
33825   cat conftest.err >&5
33826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827   (exit $ac_status); } && {
33828          test -z "$ac_c_werror_flag" ||
33829          test ! -s conftest.err
33830        } && test -s conftest.$ac_objext; then
33831   ac_cv_member_struct_stat_st_blocks=yes
33832 else
33833   echo "$as_me: failed program was:" >&5
33834 sed 's/^/| /' conftest.$ac_ext >&5
33835
33836         ac_cv_member_struct_stat_st_blocks=no
33837 fi
33838
33839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33840 fi
33841
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33843 fi
33844 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33845 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33846 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33847
33848 cat >>confdefs.h <<_ACEOF
33849 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33850 _ACEOF
33851
33852
33853 cat >>confdefs.h <<\_ACEOF
33854 #define HAVE_ST_BLOCKS 1
33855 _ACEOF
33856
33857 else
33858   case " $LIBOBJS " in
33859   *" fileblocks.$ac_objext "* ) ;;
33860   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33861  ;;
33862 esac
33863
33864 fi
33865
33866
33867 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33868 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33869 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33870   echo $ECHO_N "(cached) $ECHO_C" >&6
33871 else
33872   cat >conftest.$ac_ext <<_ACEOF
33873 /* confdefs.h.  */
33874 _ACEOF
33875 cat confdefs.h >>conftest.$ac_ext
33876 cat >>conftest.$ac_ext <<_ACEOF
33877 /* end confdefs.h.  */
33878 $ac_includes_default
33879 int
33880 main ()
33881 {
33882 static struct stat ac_aggr;
33883 if (ac_aggr.st_rdev)
33884 return 0;
33885   ;
33886   return 0;
33887 }
33888 _ACEOF
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893   *) ac_try_echo=$ac_try;;
33894 esac
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896   (eval "$ac_compile") 2>conftest.er1
33897   ac_status=$?
33898   grep -v '^ *+' conftest.er1 >conftest.err
33899   rm -f conftest.er1
33900   cat conftest.err >&5
33901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902   (exit $ac_status); } && {
33903          test -z "$ac_c_werror_flag" ||
33904          test ! -s conftest.err
33905        } && test -s conftest.$ac_objext; then
33906   ac_cv_member_struct_stat_st_rdev=yes
33907 else
33908   echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33910
33911         cat >conftest.$ac_ext <<_ACEOF
33912 /* confdefs.h.  */
33913 _ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h.  */
33917 $ac_includes_default
33918 int
33919 main ()
33920 {
33921 static struct stat ac_aggr;
33922 if (sizeof ac_aggr.st_rdev)
33923 return 0;
33924   ;
33925   return 0;
33926 }
33927 _ACEOF
33928 rm -f conftest.$ac_objext
33929 if { (ac_try="$ac_compile"
33930 case "(($ac_try" in
33931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932   *) ac_try_echo=$ac_try;;
33933 esac
33934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935   (eval "$ac_compile") 2>conftest.er1
33936   ac_status=$?
33937   grep -v '^ *+' conftest.er1 >conftest.err
33938   rm -f conftest.er1
33939   cat conftest.err >&5
33940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941   (exit $ac_status); } && {
33942          test -z "$ac_c_werror_flag" ||
33943          test ! -s conftest.err
33944        } && test -s conftest.$ac_objext; then
33945   ac_cv_member_struct_stat_st_rdev=yes
33946 else
33947   echo "$as_me: failed program was:" >&5
33948 sed 's/^/| /' conftest.$ac_ext >&5
33949
33950         ac_cv_member_struct_stat_st_rdev=no
33951 fi
33952
33953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33954 fi
33955
33956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33957 fi
33958 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33959 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33960 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33961
33962 cat >>confdefs.h <<_ACEOF
33963 #define HAVE_STRUCT_STAT_ST_RDEV 1
33964 _ACEOF
33965
33966
33967 cat >>confdefs.h <<\_ACEOF
33968 #define HAVE_ST_RDEV 1
33969 _ACEOF
33970
33971 fi
33972
33973
33974 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33975 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
33976 if test "${ac_cv_struct_tm+set}" = set; then
33977   echo $ECHO_N "(cached) $ECHO_C" >&6
33978 else
33979   cat >conftest.$ac_ext <<_ACEOF
33980 /* confdefs.h.  */
33981 _ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h.  */
33985 #include <sys/types.h>
33986 #include <time.h>
33987
33988 int
33989 main ()
33990 {
33991 struct tm tm;
33992                                      int *p = &tm.tm_sec;
33993                                      return !p;
33994   ;
33995   return 0;
33996 }
33997 _ACEOF
33998 rm -f conftest.$ac_objext
33999 if { (ac_try="$ac_compile"
34000 case "(($ac_try" in
34001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002   *) ac_try_echo=$ac_try;;
34003 esac
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005   (eval "$ac_compile") 2>conftest.er1
34006   ac_status=$?
34007   grep -v '^ *+' conftest.er1 >conftest.err
34008   rm -f conftest.er1
34009   cat conftest.err >&5
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); } && {
34012          test -z "$ac_c_werror_flag" ||
34013          test ! -s conftest.err
34014        } && test -s conftest.$ac_objext; then
34015   ac_cv_struct_tm=time.h
34016 else
34017   echo "$as_me: failed program was:" >&5
34018 sed 's/^/| /' conftest.$ac_ext >&5
34019
34020         ac_cv_struct_tm=sys/time.h
34021 fi
34022
34023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34024 fi
34025 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34026 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34027 if test $ac_cv_struct_tm = sys/time.h; then
34028
34029 cat >>confdefs.h <<\_ACEOF
34030 #define TM_IN_SYS_TIME 1
34031 _ACEOF
34032
34033 fi
34034
34035 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34037 if test "${ac_cv_c_const+set}" = set; then
34038   echo $ECHO_N "(cached) $ECHO_C" >&6
34039 else
34040   cat >conftest.$ac_ext <<_ACEOF
34041 /* confdefs.h.  */
34042 _ACEOF
34043 cat confdefs.h >>conftest.$ac_ext
34044 cat >>conftest.$ac_ext <<_ACEOF
34045 /* end confdefs.h.  */
34046
34047 int
34048 main ()
34049 {
34050 /* FIXME: Include the comments suggested by Paul. */
34051 #ifndef __cplusplus
34052   /* Ultrix mips cc rejects this.  */
34053   typedef int charset[2];
34054   const charset cs;
34055   /* SunOS 4.1.1 cc rejects this.  */
34056   char const *const *pcpcc;
34057   char **ppc;
34058   /* NEC SVR4.0.2 mips cc rejects this.  */
34059   struct point {int x, y;};
34060   static struct point const zero = {0,0};
34061   /* AIX XL C 1.02.0.0 rejects this.
34062      It does not let you subtract one const X* pointer from another in
34063      an arm of an if-expression whose if-part is not a constant
34064      expression */
34065   const char *g = "string";
34066   pcpcc = &g + (g ? g-g : 0);
34067   /* HPUX 7.0 cc rejects these. */
34068   ++pcpcc;
34069   ppc = (char**) pcpcc;
34070   pcpcc = (char const *const *) ppc;
34071   { /* SCO 3.2v4 cc rejects this.  */
34072     char *t;
34073     char const *s = 0 ? (char *) 0 : (char const *) 0;
34074
34075     *t++ = 0;
34076     if (s) return 0;
34077   }
34078   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34079     int x[] = {25, 17};
34080     const int *foo = &x[0];
34081     ++foo;
34082   }
34083   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34084     typedef const int *iptr;
34085     iptr p = 0;
34086     ++p;
34087   }
34088   { /* AIX XL C 1.02.0.0 rejects this saying
34089        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34090     struct s { int j; const int *ap[3]; };
34091     struct s *b; b->j = 5;
34092   }
34093   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34094     const int foo = 10;
34095     if (!foo) return 0;
34096   }
34097   return !cs[0] && !zero.x;
34098 #endif
34099
34100   ;
34101   return 0;
34102 }
34103 _ACEOF
34104 rm -f conftest.$ac_objext
34105 if { (ac_try="$ac_compile"
34106 case "(($ac_try" in
34107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108   *) ac_try_echo=$ac_try;;
34109 esac
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111   (eval "$ac_compile") 2>conftest.er1
34112   ac_status=$?
34113   grep -v '^ *+' conftest.er1 >conftest.err
34114   rm -f conftest.er1
34115   cat conftest.err >&5
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); } && {
34118          test -z "$ac_c_werror_flag" ||
34119          test ! -s conftest.err
34120        } && test -s conftest.$ac_objext; then
34121   ac_cv_c_const=yes
34122 else
34123   echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34125
34126         ac_cv_c_const=no
34127 fi
34128
34129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34130 fi
34131 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34132 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34133 if test $ac_cv_c_const = no; then
34134
34135 cat >>confdefs.h <<\_ACEOF
34136 #define const
34137 _ACEOF
34138
34139 fi
34140
34141
34142 { echo "$as_me:$LINENO: checking for char" >&5
34143 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34144 if test "${ac_cv_type_char+set}" = set; then
34145   echo $ECHO_N "(cached) $ECHO_C" >&6
34146 else
34147   cat >conftest.$ac_ext <<_ACEOF
34148 /* confdefs.h.  */
34149 _ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h.  */
34153 $ac_includes_default
34154 typedef char ac__type_new_;
34155 int
34156 main ()
34157 {
34158 if ((ac__type_new_ *) 0)
34159   return 0;
34160 if (sizeof (ac__type_new_))
34161   return 0;
34162   ;
34163   return 0;
34164 }
34165 _ACEOF
34166 rm -f conftest.$ac_objext
34167 if { (ac_try="$ac_compile"
34168 case "(($ac_try" in
34169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170   *) ac_try_echo=$ac_try;;
34171 esac
34172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173   (eval "$ac_compile") 2>conftest.er1
34174   ac_status=$?
34175   grep -v '^ *+' conftest.er1 >conftest.err
34176   rm -f conftest.er1
34177   cat conftest.err >&5
34178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179   (exit $ac_status); } && {
34180          test -z "$ac_c_werror_flag" ||
34181          test ! -s conftest.err
34182        } && test -s conftest.$ac_objext; then
34183   ac_cv_type_char=yes
34184 else
34185   echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34187
34188         ac_cv_type_char=no
34189 fi
34190
34191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34192 fi
34193 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34194 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34195
34196 # The cast to long int works around a bug in the HP C Compiler
34197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34199 # This bug is HP SR number 8606223364.
34200 { echo "$as_me:$LINENO: checking size of char" >&5
34201 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34202 if test "${ac_cv_sizeof_char+set}" = set; then
34203   echo $ECHO_N "(cached) $ECHO_C" >&6
34204 else
34205   if test "$cross_compiling" = yes; then
34206   # Depending upon the size, compute the lo and hi bounds.
34207 cat >conftest.$ac_ext <<_ACEOF
34208 /* confdefs.h.  */
34209 _ACEOF
34210 cat confdefs.h >>conftest.$ac_ext
34211 cat >>conftest.$ac_ext <<_ACEOF
34212 /* end confdefs.h.  */
34213 $ac_includes_default
34214    typedef char ac__type_sizeof_;
34215 int
34216 main ()
34217 {
34218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34219 test_array [0] = 0
34220
34221   ;
34222   return 0;
34223 }
34224 _ACEOF
34225 rm -f conftest.$ac_objext
34226 if { (ac_try="$ac_compile"
34227 case "(($ac_try" in
34228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34229   *) ac_try_echo=$ac_try;;
34230 esac
34231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34232   (eval "$ac_compile") 2>conftest.er1
34233   ac_status=$?
34234   grep -v '^ *+' conftest.er1 >conftest.err
34235   rm -f conftest.er1
34236   cat conftest.err >&5
34237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238   (exit $ac_status); } && {
34239          test -z "$ac_c_werror_flag" ||
34240          test ! -s conftest.err
34241        } && test -s conftest.$ac_objext; then
34242   ac_lo=0 ac_mid=0
34243   while :; do
34244     cat >conftest.$ac_ext <<_ACEOF
34245 /* confdefs.h.  */
34246 _ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h.  */
34250 $ac_includes_default
34251    typedef char ac__type_sizeof_;
34252 int
34253 main ()
34254 {
34255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34256 test_array [0] = 0
34257
34258   ;
34259   return 0;
34260 }
34261 _ACEOF
34262 rm -f conftest.$ac_objext
34263 if { (ac_try="$ac_compile"
34264 case "(($ac_try" in
34265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34266   *) ac_try_echo=$ac_try;;
34267 esac
34268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34269   (eval "$ac_compile") 2>conftest.er1
34270   ac_status=$?
34271   grep -v '^ *+' conftest.er1 >conftest.err
34272   rm -f conftest.er1
34273   cat conftest.err >&5
34274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275   (exit $ac_status); } && {
34276          test -z "$ac_c_werror_flag" ||
34277          test ! -s conftest.err
34278        } && test -s conftest.$ac_objext; then
34279   ac_hi=$ac_mid; break
34280 else
34281   echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34283
34284         ac_lo=`expr $ac_mid + 1`
34285                         if test $ac_lo -le $ac_mid; then
34286                           ac_lo= ac_hi=
34287                           break
34288                         fi
34289                         ac_mid=`expr 2 '*' $ac_mid + 1`
34290 fi
34291
34292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34293   done
34294 else
34295   echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34297
34298         cat >conftest.$ac_ext <<_ACEOF
34299 /* confdefs.h.  */
34300 _ACEOF
34301 cat confdefs.h >>conftest.$ac_ext
34302 cat >>conftest.$ac_ext <<_ACEOF
34303 /* end confdefs.h.  */
34304 $ac_includes_default
34305    typedef char ac__type_sizeof_;
34306 int
34307 main ()
34308 {
34309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34310 test_array [0] = 0
34311
34312   ;
34313   return 0;
34314 }
34315 _ACEOF
34316 rm -f conftest.$ac_objext
34317 if { (ac_try="$ac_compile"
34318 case "(($ac_try" in
34319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34320   *) ac_try_echo=$ac_try;;
34321 esac
34322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34323   (eval "$ac_compile") 2>conftest.er1
34324   ac_status=$?
34325   grep -v '^ *+' conftest.er1 >conftest.err
34326   rm -f conftest.er1
34327   cat conftest.err >&5
34328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329   (exit $ac_status); } && {
34330          test -z "$ac_c_werror_flag" ||
34331          test ! -s conftest.err
34332        } && test -s conftest.$ac_objext; then
34333   ac_hi=-1 ac_mid=-1
34334   while :; do
34335     cat >conftest.$ac_ext <<_ACEOF
34336 /* confdefs.h.  */
34337 _ACEOF
34338 cat confdefs.h >>conftest.$ac_ext
34339 cat >>conftest.$ac_ext <<_ACEOF
34340 /* end confdefs.h.  */
34341 $ac_includes_default
34342    typedef char ac__type_sizeof_;
34343 int
34344 main ()
34345 {
34346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34347 test_array [0] = 0
34348
34349   ;
34350   return 0;
34351 }
34352 _ACEOF
34353 rm -f conftest.$ac_objext
34354 if { (ac_try="$ac_compile"
34355 case "(($ac_try" in
34356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34357   *) ac_try_echo=$ac_try;;
34358 esac
34359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34360   (eval "$ac_compile") 2>conftest.er1
34361   ac_status=$?
34362   grep -v '^ *+' conftest.er1 >conftest.err
34363   rm -f conftest.er1
34364   cat conftest.err >&5
34365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366   (exit $ac_status); } && {
34367          test -z "$ac_c_werror_flag" ||
34368          test ! -s conftest.err
34369        } && test -s conftest.$ac_objext; then
34370   ac_lo=$ac_mid; break
34371 else
34372   echo "$as_me: failed program was:" >&5
34373 sed 's/^/| /' conftest.$ac_ext >&5
34374
34375         ac_hi=`expr '(' $ac_mid ')' - 1`
34376                         if test $ac_mid -le $ac_hi; then
34377                           ac_lo= ac_hi=
34378                           break
34379                         fi
34380                         ac_mid=`expr 2 '*' $ac_mid`
34381 fi
34382
34383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34384   done
34385 else
34386   echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34388
34389         ac_lo= ac_hi=
34390 fi
34391
34392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 fi
34394
34395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34396 # Binary search between lo and hi bounds.
34397 while test "x$ac_lo" != "x$ac_hi"; do
34398   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34399   cat >conftest.$ac_ext <<_ACEOF
34400 /* confdefs.h.  */
34401 _ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h.  */
34405 $ac_includes_default
34406    typedef char ac__type_sizeof_;
34407 int
34408 main ()
34409 {
34410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34411 test_array [0] = 0
34412
34413   ;
34414   return 0;
34415 }
34416 _ACEOF
34417 rm -f conftest.$ac_objext
34418 if { (ac_try="$ac_compile"
34419 case "(($ac_try" in
34420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34421   *) ac_try_echo=$ac_try;;
34422 esac
34423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34424   (eval "$ac_compile") 2>conftest.er1
34425   ac_status=$?
34426   grep -v '^ *+' conftest.er1 >conftest.err
34427   rm -f conftest.er1
34428   cat conftest.err >&5
34429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430   (exit $ac_status); } && {
34431          test -z "$ac_c_werror_flag" ||
34432          test ! -s conftest.err
34433        } && test -s conftest.$ac_objext; then
34434   ac_hi=$ac_mid
34435 else
34436   echo "$as_me: failed program was:" >&5
34437 sed 's/^/| /' conftest.$ac_ext >&5
34438
34439         ac_lo=`expr '(' $ac_mid ')' + 1`
34440 fi
34441
34442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34443 done
34444 case $ac_lo in
34445 ?*) ac_cv_sizeof_char=$ac_lo;;
34446 '') if test "$ac_cv_type_char" = yes; then
34447      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34448 See \`config.log' for more details." >&5
34449 echo "$as_me: error: cannot compute sizeof (char)
34450 See \`config.log' for more details." >&2;}
34451    { (exit 77); exit 77; }; }
34452    else
34453      ac_cv_sizeof_char=0
34454    fi ;;
34455 esac
34456 else
34457   cat >conftest.$ac_ext <<_ACEOF
34458 /* confdefs.h.  */
34459 _ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h.  */
34463 $ac_includes_default
34464    typedef char ac__type_sizeof_;
34465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34467 #include <stdio.h>
34468 #include <stdlib.h>
34469 int
34470 main ()
34471 {
34472
34473   FILE *f = fopen ("conftest.val", "w");
34474   if (! f)
34475     return 1;
34476   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34477     {
34478       long int i = longval ();
34479       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34480         return 1;
34481       fprintf (f, "%ld\n", i);
34482     }
34483   else
34484     {
34485       unsigned long int i = ulongval ();
34486       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34487         return 1;
34488       fprintf (f, "%lu\n", i);
34489     }
34490   return ferror (f) || fclose (f) != 0;
34491
34492   ;
34493   return 0;
34494 }
34495 _ACEOF
34496 rm -f conftest$ac_exeext
34497 if { (ac_try="$ac_link"
34498 case "(($ac_try" in
34499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34500   *) ac_try_echo=$ac_try;;
34501 esac
34502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34503   (eval "$ac_link") 2>&5
34504   ac_status=$?
34505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34507   { (case "(($ac_try" in
34508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509   *) ac_try_echo=$ac_try;;
34510 esac
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512   (eval "$ac_try") 2>&5
34513   ac_status=$?
34514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515   (exit $ac_status); }; }; then
34516   ac_cv_sizeof_char=`cat conftest.val`
34517 else
34518   echo "$as_me: program exited with status $ac_status" >&5
34519 echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34521
34522 ( exit $ac_status )
34523 if test "$ac_cv_type_char" = yes; then
34524      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34525 See \`config.log' for more details." >&5
34526 echo "$as_me: error: cannot compute sizeof (char)
34527 See \`config.log' for more details." >&2;}
34528    { (exit 77); exit 77; }; }
34529    else
34530      ac_cv_sizeof_char=0
34531    fi
34532 fi
34533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34534 fi
34535 rm -f conftest.val
34536 fi
34537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34538 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34539
34540
34541
34542 cat >>confdefs.h <<_ACEOF
34543 #define SIZEOF_CHAR $ac_cv_sizeof_char
34544 _ACEOF
34545
34546
34547 { echo "$as_me:$LINENO: checking for short int" >&5
34548 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34549 if test "${ac_cv_type_short_int+set}" = set; then
34550   echo $ECHO_N "(cached) $ECHO_C" >&6
34551 else
34552   cat >conftest.$ac_ext <<_ACEOF
34553 /* confdefs.h.  */
34554 _ACEOF
34555 cat confdefs.h >>conftest.$ac_ext
34556 cat >>conftest.$ac_ext <<_ACEOF
34557 /* end confdefs.h.  */
34558 $ac_includes_default
34559 typedef short int ac__type_new_;
34560 int
34561 main ()
34562 {
34563 if ((ac__type_new_ *) 0)
34564   return 0;
34565 if (sizeof (ac__type_new_))
34566   return 0;
34567   ;
34568   return 0;
34569 }
34570 _ACEOF
34571 rm -f conftest.$ac_objext
34572 if { (ac_try="$ac_compile"
34573 case "(($ac_try" in
34574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34575   *) ac_try_echo=$ac_try;;
34576 esac
34577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34578   (eval "$ac_compile") 2>conftest.er1
34579   ac_status=$?
34580   grep -v '^ *+' conftest.er1 >conftest.err
34581   rm -f conftest.er1
34582   cat conftest.err >&5
34583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584   (exit $ac_status); } && {
34585          test -z "$ac_c_werror_flag" ||
34586          test ! -s conftest.err
34587        } && test -s conftest.$ac_objext; then
34588   ac_cv_type_short_int=yes
34589 else
34590   echo "$as_me: failed program was:" >&5
34591 sed 's/^/| /' conftest.$ac_ext >&5
34592
34593         ac_cv_type_short_int=no
34594 fi
34595
34596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34597 fi
34598 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34599 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34600
34601 # The cast to long int works around a bug in the HP C Compiler
34602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34604 # This bug is HP SR number 8606223364.
34605 { echo "$as_me:$LINENO: checking size of short int" >&5
34606 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34607 if test "${ac_cv_sizeof_short_int+set}" = set; then
34608   echo $ECHO_N "(cached) $ECHO_C" >&6
34609 else
34610   if test "$cross_compiling" = yes; then
34611   # Depending upon the size, compute the lo and hi bounds.
34612 cat >conftest.$ac_ext <<_ACEOF
34613 /* confdefs.h.  */
34614 _ACEOF
34615 cat confdefs.h >>conftest.$ac_ext
34616 cat >>conftest.$ac_ext <<_ACEOF
34617 /* end confdefs.h.  */
34618 $ac_includes_default
34619    typedef short int ac__type_sizeof_;
34620 int
34621 main ()
34622 {
34623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34624 test_array [0] = 0
34625
34626   ;
34627   return 0;
34628 }
34629 _ACEOF
34630 rm -f conftest.$ac_objext
34631 if { (ac_try="$ac_compile"
34632 case "(($ac_try" in
34633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34634   *) ac_try_echo=$ac_try;;
34635 esac
34636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34637   (eval "$ac_compile") 2>conftest.er1
34638   ac_status=$?
34639   grep -v '^ *+' conftest.er1 >conftest.err
34640   rm -f conftest.er1
34641   cat conftest.err >&5
34642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643   (exit $ac_status); } && {
34644          test -z "$ac_c_werror_flag" ||
34645          test ! -s conftest.err
34646        } && test -s conftest.$ac_objext; then
34647   ac_lo=0 ac_mid=0
34648   while :; do
34649     cat >conftest.$ac_ext <<_ACEOF
34650 /* confdefs.h.  */
34651 _ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h.  */
34655 $ac_includes_default
34656    typedef short int ac__type_sizeof_;
34657 int
34658 main ()
34659 {
34660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34661 test_array [0] = 0
34662
34663   ;
34664   return 0;
34665 }
34666 _ACEOF
34667 rm -f conftest.$ac_objext
34668 if { (ac_try="$ac_compile"
34669 case "(($ac_try" in
34670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34671   *) ac_try_echo=$ac_try;;
34672 esac
34673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34674   (eval "$ac_compile") 2>conftest.er1
34675   ac_status=$?
34676   grep -v '^ *+' conftest.er1 >conftest.err
34677   rm -f conftest.er1
34678   cat conftest.err >&5
34679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680   (exit $ac_status); } && {
34681          test -z "$ac_c_werror_flag" ||
34682          test ! -s conftest.err
34683        } && test -s conftest.$ac_objext; then
34684   ac_hi=$ac_mid; break
34685 else
34686   echo "$as_me: failed program was:" >&5
34687 sed 's/^/| /' conftest.$ac_ext >&5
34688
34689         ac_lo=`expr $ac_mid + 1`
34690                         if test $ac_lo -le $ac_mid; then
34691                           ac_lo= ac_hi=
34692                           break
34693                         fi
34694                         ac_mid=`expr 2 '*' $ac_mid + 1`
34695 fi
34696
34697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34698   done
34699 else
34700   echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34702
34703         cat >conftest.$ac_ext <<_ACEOF
34704 /* confdefs.h.  */
34705 _ACEOF
34706 cat confdefs.h >>conftest.$ac_ext
34707 cat >>conftest.$ac_ext <<_ACEOF
34708 /* end confdefs.h.  */
34709 $ac_includes_default
34710    typedef short int ac__type_sizeof_;
34711 int
34712 main ()
34713 {
34714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34715 test_array [0] = 0
34716
34717   ;
34718   return 0;
34719 }
34720 _ACEOF
34721 rm -f conftest.$ac_objext
34722 if { (ac_try="$ac_compile"
34723 case "(($ac_try" in
34724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34725   *) ac_try_echo=$ac_try;;
34726 esac
34727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34728   (eval "$ac_compile") 2>conftest.er1
34729   ac_status=$?
34730   grep -v '^ *+' conftest.er1 >conftest.err
34731   rm -f conftest.er1
34732   cat conftest.err >&5
34733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734   (exit $ac_status); } && {
34735          test -z "$ac_c_werror_flag" ||
34736          test ! -s conftest.err
34737        } && test -s conftest.$ac_objext; then
34738   ac_hi=-1 ac_mid=-1
34739   while :; do
34740     cat >conftest.$ac_ext <<_ACEOF
34741 /* confdefs.h.  */
34742 _ACEOF
34743 cat confdefs.h >>conftest.$ac_ext
34744 cat >>conftest.$ac_ext <<_ACEOF
34745 /* end confdefs.h.  */
34746 $ac_includes_default
34747    typedef short int ac__type_sizeof_;
34748 int
34749 main ()
34750 {
34751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34752 test_array [0] = 0
34753
34754   ;
34755   return 0;
34756 }
34757 _ACEOF
34758 rm -f conftest.$ac_objext
34759 if { (ac_try="$ac_compile"
34760 case "(($ac_try" in
34761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34762   *) ac_try_echo=$ac_try;;
34763 esac
34764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34765   (eval "$ac_compile") 2>conftest.er1
34766   ac_status=$?
34767   grep -v '^ *+' conftest.er1 >conftest.err
34768   rm -f conftest.er1
34769   cat conftest.err >&5
34770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771   (exit $ac_status); } && {
34772          test -z "$ac_c_werror_flag" ||
34773          test ! -s conftest.err
34774        } && test -s conftest.$ac_objext; then
34775   ac_lo=$ac_mid; break
34776 else
34777   echo "$as_me: failed program was:" >&5
34778 sed 's/^/| /' conftest.$ac_ext >&5
34779
34780         ac_hi=`expr '(' $ac_mid ')' - 1`
34781                         if test $ac_mid -le $ac_hi; then
34782                           ac_lo= ac_hi=
34783                           break
34784                         fi
34785                         ac_mid=`expr 2 '*' $ac_mid`
34786 fi
34787
34788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34789   done
34790 else
34791   echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34793
34794         ac_lo= ac_hi=
34795 fi
34796
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34798 fi
34799
34800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34801 # Binary search between lo and hi bounds.
34802 while test "x$ac_lo" != "x$ac_hi"; do
34803   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34804   cat >conftest.$ac_ext <<_ACEOF
34805 /* confdefs.h.  */
34806 _ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h.  */
34810 $ac_includes_default
34811    typedef short int ac__type_sizeof_;
34812 int
34813 main ()
34814 {
34815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34816 test_array [0] = 0
34817
34818   ;
34819   return 0;
34820 }
34821 _ACEOF
34822 rm -f conftest.$ac_objext
34823 if { (ac_try="$ac_compile"
34824 case "(($ac_try" in
34825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34826   *) ac_try_echo=$ac_try;;
34827 esac
34828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34829   (eval "$ac_compile") 2>conftest.er1
34830   ac_status=$?
34831   grep -v '^ *+' conftest.er1 >conftest.err
34832   rm -f conftest.er1
34833   cat conftest.err >&5
34834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835   (exit $ac_status); } && {
34836          test -z "$ac_c_werror_flag" ||
34837          test ! -s conftest.err
34838        } && test -s conftest.$ac_objext; then
34839   ac_hi=$ac_mid
34840 else
34841   echo "$as_me: failed program was:" >&5
34842 sed 's/^/| /' conftest.$ac_ext >&5
34843
34844         ac_lo=`expr '(' $ac_mid ')' + 1`
34845 fi
34846
34847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34848 done
34849 case $ac_lo in
34850 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34851 '') if test "$ac_cv_type_short_int" = yes; then
34852      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34853 See \`config.log' for more details." >&5
34854 echo "$as_me: error: cannot compute sizeof (short int)
34855 See \`config.log' for more details." >&2;}
34856    { (exit 77); exit 77; }; }
34857    else
34858      ac_cv_sizeof_short_int=0
34859    fi ;;
34860 esac
34861 else
34862   cat >conftest.$ac_ext <<_ACEOF
34863 /* confdefs.h.  */
34864 _ACEOF
34865 cat confdefs.h >>conftest.$ac_ext
34866 cat >>conftest.$ac_ext <<_ACEOF
34867 /* end confdefs.h.  */
34868 $ac_includes_default
34869    typedef short int ac__type_sizeof_;
34870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34872 #include <stdio.h>
34873 #include <stdlib.h>
34874 int
34875 main ()
34876 {
34877
34878   FILE *f = fopen ("conftest.val", "w");
34879   if (! f)
34880     return 1;
34881   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34882     {
34883       long int i = longval ();
34884       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34885         return 1;
34886       fprintf (f, "%ld\n", i);
34887     }
34888   else
34889     {
34890       unsigned long int i = ulongval ();
34891       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34892         return 1;
34893       fprintf (f, "%lu\n", i);
34894     }
34895   return ferror (f) || fclose (f) != 0;
34896
34897   ;
34898   return 0;
34899 }
34900 _ACEOF
34901 rm -f conftest$ac_exeext
34902 if { (ac_try="$ac_link"
34903 case "(($ac_try" in
34904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34905   *) ac_try_echo=$ac_try;;
34906 esac
34907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34908   (eval "$ac_link") 2>&5
34909   ac_status=$?
34910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34912   { (case "(($ac_try" in
34913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34914   *) ac_try_echo=$ac_try;;
34915 esac
34916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34917   (eval "$ac_try") 2>&5
34918   ac_status=$?
34919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920   (exit $ac_status); }; }; then
34921   ac_cv_sizeof_short_int=`cat conftest.val`
34922 else
34923   echo "$as_me: program exited with status $ac_status" >&5
34924 echo "$as_me: failed program was:" >&5
34925 sed 's/^/| /' conftest.$ac_ext >&5
34926
34927 ( exit $ac_status )
34928 if test "$ac_cv_type_short_int" = yes; then
34929      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34930 See \`config.log' for more details." >&5
34931 echo "$as_me: error: cannot compute sizeof (short int)
34932 See \`config.log' for more details." >&2;}
34933    { (exit 77); exit 77; }; }
34934    else
34935      ac_cv_sizeof_short_int=0
34936    fi
34937 fi
34938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34939 fi
34940 rm -f conftest.val
34941 fi
34942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34943 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34944
34945
34946
34947 cat >>confdefs.h <<_ACEOF
34948 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34949 _ACEOF
34950
34951
34952 { echo "$as_me:$LINENO: checking for int" >&5
34953 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34954 if test "${ac_cv_type_int+set}" = set; then
34955   echo $ECHO_N "(cached) $ECHO_C" >&6
34956 else
34957   cat >conftest.$ac_ext <<_ACEOF
34958 /* confdefs.h.  */
34959 _ACEOF
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h.  */
34963 $ac_includes_default
34964 typedef int ac__type_new_;
34965 int
34966 main ()
34967 {
34968 if ((ac__type_new_ *) 0)
34969   return 0;
34970 if (sizeof (ac__type_new_))
34971   return 0;
34972   ;
34973   return 0;
34974 }
34975 _ACEOF
34976 rm -f conftest.$ac_objext
34977 if { (ac_try="$ac_compile"
34978 case "(($ac_try" in
34979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980   *) ac_try_echo=$ac_try;;
34981 esac
34982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983   (eval "$ac_compile") 2>conftest.er1
34984   ac_status=$?
34985   grep -v '^ *+' conftest.er1 >conftest.err
34986   rm -f conftest.er1
34987   cat conftest.err >&5
34988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989   (exit $ac_status); } && {
34990          test -z "$ac_c_werror_flag" ||
34991          test ! -s conftest.err
34992        } && test -s conftest.$ac_objext; then
34993   ac_cv_type_int=yes
34994 else
34995   echo "$as_me: failed program was:" >&5
34996 sed 's/^/| /' conftest.$ac_ext >&5
34997
34998         ac_cv_type_int=no
34999 fi
35000
35001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35002 fi
35003 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35004 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35005
35006 # The cast to long int works around a bug in the HP C Compiler
35007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35009 # This bug is HP SR number 8606223364.
35010 { echo "$as_me:$LINENO: checking size of int" >&5
35011 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35012 if test "${ac_cv_sizeof_int+set}" = set; then
35013   echo $ECHO_N "(cached) $ECHO_C" >&6
35014 else
35015   if test "$cross_compiling" = yes; then
35016   # Depending upon the size, compute the lo and hi bounds.
35017 cat >conftest.$ac_ext <<_ACEOF
35018 /* confdefs.h.  */
35019 _ACEOF
35020 cat confdefs.h >>conftest.$ac_ext
35021 cat >>conftest.$ac_ext <<_ACEOF
35022 /* end confdefs.h.  */
35023 $ac_includes_default
35024    typedef int ac__type_sizeof_;
35025 int
35026 main ()
35027 {
35028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35029 test_array [0] = 0
35030
35031   ;
35032   return 0;
35033 }
35034 _ACEOF
35035 rm -f conftest.$ac_objext
35036 if { (ac_try="$ac_compile"
35037 case "(($ac_try" in
35038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35039   *) ac_try_echo=$ac_try;;
35040 esac
35041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35042   (eval "$ac_compile") 2>conftest.er1
35043   ac_status=$?
35044   grep -v '^ *+' conftest.er1 >conftest.err
35045   rm -f conftest.er1
35046   cat conftest.err >&5
35047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048   (exit $ac_status); } && {
35049          test -z "$ac_c_werror_flag" ||
35050          test ! -s conftest.err
35051        } && test -s conftest.$ac_objext; then
35052   ac_lo=0 ac_mid=0
35053   while :; do
35054     cat >conftest.$ac_ext <<_ACEOF
35055 /* confdefs.h.  */
35056 _ACEOF
35057 cat confdefs.h >>conftest.$ac_ext
35058 cat >>conftest.$ac_ext <<_ACEOF
35059 /* end confdefs.h.  */
35060 $ac_includes_default
35061    typedef int ac__type_sizeof_;
35062 int
35063 main ()
35064 {
35065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35066 test_array [0] = 0
35067
35068   ;
35069   return 0;
35070 }
35071 _ACEOF
35072 rm -f conftest.$ac_objext
35073 if { (ac_try="$ac_compile"
35074 case "(($ac_try" in
35075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35076   *) ac_try_echo=$ac_try;;
35077 esac
35078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35079   (eval "$ac_compile") 2>conftest.er1
35080   ac_status=$?
35081   grep -v '^ *+' conftest.er1 >conftest.err
35082   rm -f conftest.er1
35083   cat conftest.err >&5
35084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085   (exit $ac_status); } && {
35086          test -z "$ac_c_werror_flag" ||
35087          test ! -s conftest.err
35088        } && test -s conftest.$ac_objext; then
35089   ac_hi=$ac_mid; break
35090 else
35091   echo "$as_me: failed program was:" >&5
35092 sed 's/^/| /' conftest.$ac_ext >&5
35093
35094         ac_lo=`expr $ac_mid + 1`
35095                         if test $ac_lo -le $ac_mid; then
35096                           ac_lo= ac_hi=
35097                           break
35098                         fi
35099                         ac_mid=`expr 2 '*' $ac_mid + 1`
35100 fi
35101
35102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35103   done
35104 else
35105   echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35107
35108         cat >conftest.$ac_ext <<_ACEOF
35109 /* confdefs.h.  */
35110 _ACEOF
35111 cat confdefs.h >>conftest.$ac_ext
35112 cat >>conftest.$ac_ext <<_ACEOF
35113 /* end confdefs.h.  */
35114 $ac_includes_default
35115    typedef int ac__type_sizeof_;
35116 int
35117 main ()
35118 {
35119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35120 test_array [0] = 0
35121
35122   ;
35123   return 0;
35124 }
35125 _ACEOF
35126 rm -f conftest.$ac_objext
35127 if { (ac_try="$ac_compile"
35128 case "(($ac_try" in
35129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35130   *) ac_try_echo=$ac_try;;
35131 esac
35132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35133   (eval "$ac_compile") 2>conftest.er1
35134   ac_status=$?
35135   grep -v '^ *+' conftest.er1 >conftest.err
35136   rm -f conftest.er1
35137   cat conftest.err >&5
35138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139   (exit $ac_status); } && {
35140          test -z "$ac_c_werror_flag" ||
35141          test ! -s conftest.err
35142        } && test -s conftest.$ac_objext; then
35143   ac_hi=-1 ac_mid=-1
35144   while :; do
35145     cat >conftest.$ac_ext <<_ACEOF
35146 /* confdefs.h.  */
35147 _ACEOF
35148 cat confdefs.h >>conftest.$ac_ext
35149 cat >>conftest.$ac_ext <<_ACEOF
35150 /* end confdefs.h.  */
35151 $ac_includes_default
35152    typedef int ac__type_sizeof_;
35153 int
35154 main ()
35155 {
35156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35157 test_array [0] = 0
35158
35159   ;
35160   return 0;
35161 }
35162 _ACEOF
35163 rm -f conftest.$ac_objext
35164 if { (ac_try="$ac_compile"
35165 case "(($ac_try" in
35166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35167   *) ac_try_echo=$ac_try;;
35168 esac
35169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35170   (eval "$ac_compile") 2>conftest.er1
35171   ac_status=$?
35172   grep -v '^ *+' conftest.er1 >conftest.err
35173   rm -f conftest.er1
35174   cat conftest.err >&5
35175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176   (exit $ac_status); } && {
35177          test -z "$ac_c_werror_flag" ||
35178          test ! -s conftest.err
35179        } && test -s conftest.$ac_objext; then
35180   ac_lo=$ac_mid; break
35181 else
35182   echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185         ac_hi=`expr '(' $ac_mid ')' - 1`
35186                         if test $ac_mid -le $ac_hi; then
35187                           ac_lo= ac_hi=
35188                           break
35189                         fi
35190                         ac_mid=`expr 2 '*' $ac_mid`
35191 fi
35192
35193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35194   done
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199         ac_lo= ac_hi=
35200 fi
35201
35202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35203 fi
35204
35205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35206 # Binary search between lo and hi bounds.
35207 while test "x$ac_lo" != "x$ac_hi"; do
35208   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35209   cat >conftest.$ac_ext <<_ACEOF
35210 /* confdefs.h.  */
35211 _ACEOF
35212 cat confdefs.h >>conftest.$ac_ext
35213 cat >>conftest.$ac_ext <<_ACEOF
35214 /* end confdefs.h.  */
35215 $ac_includes_default
35216    typedef int ac__type_sizeof_;
35217 int
35218 main ()
35219 {
35220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35221 test_array [0] = 0
35222
35223   ;
35224   return 0;
35225 }
35226 _ACEOF
35227 rm -f conftest.$ac_objext
35228 if { (ac_try="$ac_compile"
35229 case "(($ac_try" in
35230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35231   *) ac_try_echo=$ac_try;;
35232 esac
35233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35234   (eval "$ac_compile") 2>conftest.er1
35235   ac_status=$?
35236   grep -v '^ *+' conftest.er1 >conftest.err
35237   rm -f conftest.er1
35238   cat conftest.err >&5
35239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240   (exit $ac_status); } && {
35241          test -z "$ac_c_werror_flag" ||
35242          test ! -s conftest.err
35243        } && test -s conftest.$ac_objext; then
35244   ac_hi=$ac_mid
35245 else
35246   echo "$as_me: failed program was:" >&5
35247 sed 's/^/| /' conftest.$ac_ext >&5
35248
35249         ac_lo=`expr '(' $ac_mid ')' + 1`
35250 fi
35251
35252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35253 done
35254 case $ac_lo in
35255 ?*) ac_cv_sizeof_int=$ac_lo;;
35256 '') if test "$ac_cv_type_int" = yes; then
35257      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35258 See \`config.log' for more details." >&5
35259 echo "$as_me: error: cannot compute sizeof (int)
35260 See \`config.log' for more details." >&2;}
35261    { (exit 77); exit 77; }; }
35262    else
35263      ac_cv_sizeof_int=0
35264    fi ;;
35265 esac
35266 else
35267   cat >conftest.$ac_ext <<_ACEOF
35268 /* confdefs.h.  */
35269 _ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h.  */
35273 $ac_includes_default
35274    typedef int ac__type_sizeof_;
35275 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35276 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35277 #include <stdio.h>
35278 #include <stdlib.h>
35279 int
35280 main ()
35281 {
35282
35283   FILE *f = fopen ("conftest.val", "w");
35284   if (! f)
35285     return 1;
35286   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35287     {
35288       long int i = longval ();
35289       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35290         return 1;
35291       fprintf (f, "%ld\n", i);
35292     }
35293   else
35294     {
35295       unsigned long int i = ulongval ();
35296       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35297         return 1;
35298       fprintf (f, "%lu\n", i);
35299     }
35300   return ferror (f) || fclose (f) != 0;
35301
35302   ;
35303   return 0;
35304 }
35305 _ACEOF
35306 rm -f conftest$ac_exeext
35307 if { (ac_try="$ac_link"
35308 case "(($ac_try" in
35309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35310   *) ac_try_echo=$ac_try;;
35311 esac
35312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35313   (eval "$ac_link") 2>&5
35314   ac_status=$?
35315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35317   { (case "(($ac_try" in
35318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35319   *) ac_try_echo=$ac_try;;
35320 esac
35321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35322   (eval "$ac_try") 2>&5
35323   ac_status=$?
35324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325   (exit $ac_status); }; }; then
35326   ac_cv_sizeof_int=`cat conftest.val`
35327 else
35328   echo "$as_me: program exited with status $ac_status" >&5
35329 echo "$as_me: failed program was:" >&5
35330 sed 's/^/| /' conftest.$ac_ext >&5
35331
35332 ( exit $ac_status )
35333 if test "$ac_cv_type_int" = yes; then
35334      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35335 See \`config.log' for more details." >&5
35336 echo "$as_me: error: cannot compute sizeof (int)
35337 See \`config.log' for more details." >&2;}
35338    { (exit 77); exit 77; }; }
35339    else
35340      ac_cv_sizeof_int=0
35341    fi
35342 fi
35343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35344 fi
35345 rm -f conftest.val
35346 fi
35347 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35348 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35349
35350
35351
35352 cat >>confdefs.h <<_ACEOF
35353 #define SIZEOF_INT $ac_cv_sizeof_int
35354 _ACEOF
35355
35356
35357 { echo "$as_me:$LINENO: checking for long int" >&5
35358 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35359 if test "${ac_cv_type_long_int+set}" = set; then
35360   echo $ECHO_N "(cached) $ECHO_C" >&6
35361 else
35362   cat >conftest.$ac_ext <<_ACEOF
35363 /* confdefs.h.  */
35364 _ACEOF
35365 cat confdefs.h >>conftest.$ac_ext
35366 cat >>conftest.$ac_ext <<_ACEOF
35367 /* end confdefs.h.  */
35368 $ac_includes_default
35369 typedef long int ac__type_new_;
35370 int
35371 main ()
35372 {
35373 if ((ac__type_new_ *) 0)
35374   return 0;
35375 if (sizeof (ac__type_new_))
35376   return 0;
35377   ;
35378   return 0;
35379 }
35380 _ACEOF
35381 rm -f conftest.$ac_objext
35382 if { (ac_try="$ac_compile"
35383 case "(($ac_try" in
35384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35385   *) ac_try_echo=$ac_try;;
35386 esac
35387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35388   (eval "$ac_compile") 2>conftest.er1
35389   ac_status=$?
35390   grep -v '^ *+' conftest.er1 >conftest.err
35391   rm -f conftest.er1
35392   cat conftest.err >&5
35393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35394   (exit $ac_status); } && {
35395          test -z "$ac_c_werror_flag" ||
35396          test ! -s conftest.err
35397        } && test -s conftest.$ac_objext; then
35398   ac_cv_type_long_int=yes
35399 else
35400   echo "$as_me: failed program was:" >&5
35401 sed 's/^/| /' conftest.$ac_ext >&5
35402
35403         ac_cv_type_long_int=no
35404 fi
35405
35406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35407 fi
35408 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35409 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35410
35411 # The cast to long int works around a bug in the HP C Compiler
35412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35414 # This bug is HP SR number 8606223364.
35415 { echo "$as_me:$LINENO: checking size of long int" >&5
35416 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35417 if test "${ac_cv_sizeof_long_int+set}" = set; then
35418   echo $ECHO_N "(cached) $ECHO_C" >&6
35419 else
35420   if test "$cross_compiling" = yes; then
35421   # Depending upon the size, compute the lo and hi bounds.
35422 cat >conftest.$ac_ext <<_ACEOF
35423 /* confdefs.h.  */
35424 _ACEOF
35425 cat confdefs.h >>conftest.$ac_ext
35426 cat >>conftest.$ac_ext <<_ACEOF
35427 /* end confdefs.h.  */
35428 $ac_includes_default
35429    typedef long int ac__type_sizeof_;
35430 int
35431 main ()
35432 {
35433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35434 test_array [0] = 0
35435
35436   ;
35437   return 0;
35438 }
35439 _ACEOF
35440 rm -f conftest.$ac_objext
35441 if { (ac_try="$ac_compile"
35442 case "(($ac_try" in
35443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35444   *) ac_try_echo=$ac_try;;
35445 esac
35446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35447   (eval "$ac_compile") 2>conftest.er1
35448   ac_status=$?
35449   grep -v '^ *+' conftest.er1 >conftest.err
35450   rm -f conftest.er1
35451   cat conftest.err >&5
35452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453   (exit $ac_status); } && {
35454          test -z "$ac_c_werror_flag" ||
35455          test ! -s conftest.err
35456        } && test -s conftest.$ac_objext; then
35457   ac_lo=0 ac_mid=0
35458   while :; do
35459     cat >conftest.$ac_ext <<_ACEOF
35460 /* confdefs.h.  */
35461 _ACEOF
35462 cat confdefs.h >>conftest.$ac_ext
35463 cat >>conftest.$ac_ext <<_ACEOF
35464 /* end confdefs.h.  */
35465 $ac_includes_default
35466    typedef long int ac__type_sizeof_;
35467 int
35468 main ()
35469 {
35470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35471 test_array [0] = 0
35472
35473   ;
35474   return 0;
35475 }
35476 _ACEOF
35477 rm -f conftest.$ac_objext
35478 if { (ac_try="$ac_compile"
35479 case "(($ac_try" in
35480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35481   *) ac_try_echo=$ac_try;;
35482 esac
35483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35484   (eval "$ac_compile") 2>conftest.er1
35485   ac_status=$?
35486   grep -v '^ *+' conftest.er1 >conftest.err
35487   rm -f conftest.er1
35488   cat conftest.err >&5
35489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490   (exit $ac_status); } && {
35491          test -z "$ac_c_werror_flag" ||
35492          test ! -s conftest.err
35493        } && test -s conftest.$ac_objext; then
35494   ac_hi=$ac_mid; break
35495 else
35496   echo "$as_me: failed program was:" >&5
35497 sed 's/^/| /' conftest.$ac_ext >&5
35498
35499         ac_lo=`expr $ac_mid + 1`
35500                         if test $ac_lo -le $ac_mid; then
35501                           ac_lo= ac_hi=
35502                           break
35503                         fi
35504                         ac_mid=`expr 2 '*' $ac_mid + 1`
35505 fi
35506
35507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35508   done
35509 else
35510   echo "$as_me: failed program was:" >&5
35511 sed 's/^/| /' conftest.$ac_ext >&5
35512
35513         cat >conftest.$ac_ext <<_ACEOF
35514 /* confdefs.h.  */
35515 _ACEOF
35516 cat confdefs.h >>conftest.$ac_ext
35517 cat >>conftest.$ac_ext <<_ACEOF
35518 /* end confdefs.h.  */
35519 $ac_includes_default
35520    typedef long int ac__type_sizeof_;
35521 int
35522 main ()
35523 {
35524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35525 test_array [0] = 0
35526
35527   ;
35528   return 0;
35529 }
35530 _ACEOF
35531 rm -f conftest.$ac_objext
35532 if { (ac_try="$ac_compile"
35533 case "(($ac_try" in
35534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35535   *) ac_try_echo=$ac_try;;
35536 esac
35537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35538   (eval "$ac_compile") 2>conftest.er1
35539   ac_status=$?
35540   grep -v '^ *+' conftest.er1 >conftest.err
35541   rm -f conftest.er1
35542   cat conftest.err >&5
35543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544   (exit $ac_status); } && {
35545          test -z "$ac_c_werror_flag" ||
35546          test ! -s conftest.err
35547        } && test -s conftest.$ac_objext; then
35548   ac_hi=-1 ac_mid=-1
35549   while :; do
35550     cat >conftest.$ac_ext <<_ACEOF
35551 /* confdefs.h.  */
35552 _ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h.  */
35556 $ac_includes_default
35557    typedef long int ac__type_sizeof_;
35558 int
35559 main ()
35560 {
35561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35562 test_array [0] = 0
35563
35564   ;
35565   return 0;
35566 }
35567 _ACEOF
35568 rm -f conftest.$ac_objext
35569 if { (ac_try="$ac_compile"
35570 case "(($ac_try" in
35571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35572   *) ac_try_echo=$ac_try;;
35573 esac
35574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35575   (eval "$ac_compile") 2>conftest.er1
35576   ac_status=$?
35577   grep -v '^ *+' conftest.er1 >conftest.err
35578   rm -f conftest.er1
35579   cat conftest.err >&5
35580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581   (exit $ac_status); } && {
35582          test -z "$ac_c_werror_flag" ||
35583          test ! -s conftest.err
35584        } && test -s conftest.$ac_objext; then
35585   ac_lo=$ac_mid; break
35586 else
35587   echo "$as_me: failed program was:" >&5
35588 sed 's/^/| /' conftest.$ac_ext >&5
35589
35590         ac_hi=`expr '(' $ac_mid ')' - 1`
35591                         if test $ac_mid -le $ac_hi; then
35592                           ac_lo= ac_hi=
35593                           break
35594                         fi
35595                         ac_mid=`expr 2 '*' $ac_mid`
35596 fi
35597
35598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35599   done
35600 else
35601   echo "$as_me: failed program was:" >&5
35602 sed 's/^/| /' conftest.$ac_ext >&5
35603
35604         ac_lo= ac_hi=
35605 fi
35606
35607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35608 fi
35609
35610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35611 # Binary search between lo and hi bounds.
35612 while test "x$ac_lo" != "x$ac_hi"; do
35613   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35614   cat >conftest.$ac_ext <<_ACEOF
35615 /* confdefs.h.  */
35616 _ACEOF
35617 cat confdefs.h >>conftest.$ac_ext
35618 cat >>conftest.$ac_ext <<_ACEOF
35619 /* end confdefs.h.  */
35620 $ac_includes_default
35621    typedef long int ac__type_sizeof_;
35622 int
35623 main ()
35624 {
35625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35626 test_array [0] = 0
35627
35628   ;
35629   return 0;
35630 }
35631 _ACEOF
35632 rm -f conftest.$ac_objext
35633 if { (ac_try="$ac_compile"
35634 case "(($ac_try" in
35635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636   *) ac_try_echo=$ac_try;;
35637 esac
35638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35639   (eval "$ac_compile") 2>conftest.er1
35640   ac_status=$?
35641   grep -v '^ *+' conftest.er1 >conftest.err
35642   rm -f conftest.er1
35643   cat conftest.err >&5
35644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645   (exit $ac_status); } && {
35646          test -z "$ac_c_werror_flag" ||
35647          test ! -s conftest.err
35648        } && test -s conftest.$ac_objext; then
35649   ac_hi=$ac_mid
35650 else
35651   echo "$as_me: failed program was:" >&5
35652 sed 's/^/| /' conftest.$ac_ext >&5
35653
35654         ac_lo=`expr '(' $ac_mid ')' + 1`
35655 fi
35656
35657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 done
35659 case $ac_lo in
35660 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35661 '') if test "$ac_cv_type_long_int" = yes; then
35662      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35663 See \`config.log' for more details." >&5
35664 echo "$as_me: error: cannot compute sizeof (long int)
35665 See \`config.log' for more details." >&2;}
35666    { (exit 77); exit 77; }; }
35667    else
35668      ac_cv_sizeof_long_int=0
35669    fi ;;
35670 esac
35671 else
35672   cat >conftest.$ac_ext <<_ACEOF
35673 /* confdefs.h.  */
35674 _ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h.  */
35678 $ac_includes_default
35679    typedef long int ac__type_sizeof_;
35680 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35681 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35682 #include <stdio.h>
35683 #include <stdlib.h>
35684 int
35685 main ()
35686 {
35687
35688   FILE *f = fopen ("conftest.val", "w");
35689   if (! f)
35690     return 1;
35691   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35692     {
35693       long int i = longval ();
35694       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35695         return 1;
35696       fprintf (f, "%ld\n", i);
35697     }
35698   else
35699     {
35700       unsigned long int i = ulongval ();
35701       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35702         return 1;
35703       fprintf (f, "%lu\n", i);
35704     }
35705   return ferror (f) || fclose (f) != 0;
35706
35707   ;
35708   return 0;
35709 }
35710 _ACEOF
35711 rm -f conftest$ac_exeext
35712 if { (ac_try="$ac_link"
35713 case "(($ac_try" in
35714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715   *) ac_try_echo=$ac_try;;
35716 esac
35717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35718   (eval "$ac_link") 2>&5
35719   ac_status=$?
35720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35722   { (case "(($ac_try" in
35723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35724   *) ac_try_echo=$ac_try;;
35725 esac
35726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35727   (eval "$ac_try") 2>&5
35728   ac_status=$?
35729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730   (exit $ac_status); }; }; then
35731   ac_cv_sizeof_long_int=`cat conftest.val`
35732 else
35733   echo "$as_me: program exited with status $ac_status" >&5
35734 echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35736
35737 ( exit $ac_status )
35738 if test "$ac_cv_type_long_int" = yes; then
35739      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35740 See \`config.log' for more details." >&5
35741 echo "$as_me: error: cannot compute sizeof (long int)
35742 See \`config.log' for more details." >&2;}
35743    { (exit 77); exit 77; }; }
35744    else
35745      ac_cv_sizeof_long_int=0
35746    fi
35747 fi
35748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35749 fi
35750 rm -f conftest.val
35751 fi
35752 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35753 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35754
35755
35756
35757 cat >>confdefs.h <<_ACEOF
35758 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35759 _ACEOF
35760
35761
35762 { echo "$as_me:$LINENO: checking for long long int" >&5
35763 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35764 if test "${ac_cv_type_long_long_int+set}" = set; then
35765   echo $ECHO_N "(cached) $ECHO_C" >&6
35766 else
35767   cat >conftest.$ac_ext <<_ACEOF
35768 /* confdefs.h.  */
35769 _ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h.  */
35773 $ac_includes_default
35774 typedef long long int ac__type_new_;
35775 int
35776 main ()
35777 {
35778 if ((ac__type_new_ *) 0)
35779   return 0;
35780 if (sizeof (ac__type_new_))
35781   return 0;
35782   ;
35783   return 0;
35784 }
35785 _ACEOF
35786 rm -f conftest.$ac_objext
35787 if { (ac_try="$ac_compile"
35788 case "(($ac_try" in
35789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35790   *) ac_try_echo=$ac_try;;
35791 esac
35792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35793   (eval "$ac_compile") 2>conftest.er1
35794   ac_status=$?
35795   grep -v '^ *+' conftest.er1 >conftest.err
35796   rm -f conftest.er1
35797   cat conftest.err >&5
35798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799   (exit $ac_status); } && {
35800          test -z "$ac_c_werror_flag" ||
35801          test ! -s conftest.err
35802        } && test -s conftest.$ac_objext; then
35803   ac_cv_type_long_long_int=yes
35804 else
35805   echo "$as_me: failed program was:" >&5
35806 sed 's/^/| /' conftest.$ac_ext >&5
35807
35808         ac_cv_type_long_long_int=no
35809 fi
35810
35811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35812 fi
35813 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35814 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35815
35816 # The cast to long int works around a bug in the HP C Compiler
35817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35819 # This bug is HP SR number 8606223364.
35820 { echo "$as_me:$LINENO: checking size of long long int" >&5
35821 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35822 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35823   echo $ECHO_N "(cached) $ECHO_C" >&6
35824 else
35825   if test "$cross_compiling" = yes; then
35826   # Depending upon the size, compute the lo and hi bounds.
35827 cat >conftest.$ac_ext <<_ACEOF
35828 /* confdefs.h.  */
35829 _ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h.  */
35833 $ac_includes_default
35834    typedef long long int ac__type_sizeof_;
35835 int
35836 main ()
35837 {
35838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35839 test_array [0] = 0
35840
35841   ;
35842   return 0;
35843 }
35844 _ACEOF
35845 rm -f conftest.$ac_objext
35846 if { (ac_try="$ac_compile"
35847 case "(($ac_try" in
35848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849   *) ac_try_echo=$ac_try;;
35850 esac
35851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35852   (eval "$ac_compile") 2>conftest.er1
35853   ac_status=$?
35854   grep -v '^ *+' conftest.er1 >conftest.err
35855   rm -f conftest.er1
35856   cat conftest.err >&5
35857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858   (exit $ac_status); } && {
35859          test -z "$ac_c_werror_flag" ||
35860          test ! -s conftest.err
35861        } && test -s conftest.$ac_objext; then
35862   ac_lo=0 ac_mid=0
35863   while :; do
35864     cat >conftest.$ac_ext <<_ACEOF
35865 /* confdefs.h.  */
35866 _ACEOF
35867 cat confdefs.h >>conftest.$ac_ext
35868 cat >>conftest.$ac_ext <<_ACEOF
35869 /* end confdefs.h.  */
35870 $ac_includes_default
35871    typedef long long int ac__type_sizeof_;
35872 int
35873 main ()
35874 {
35875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35876 test_array [0] = 0
35877
35878   ;
35879   return 0;
35880 }
35881 _ACEOF
35882 rm -f conftest.$ac_objext
35883 if { (ac_try="$ac_compile"
35884 case "(($ac_try" in
35885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35886   *) ac_try_echo=$ac_try;;
35887 esac
35888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35889   (eval "$ac_compile") 2>conftest.er1
35890   ac_status=$?
35891   grep -v '^ *+' conftest.er1 >conftest.err
35892   rm -f conftest.er1
35893   cat conftest.err >&5
35894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895   (exit $ac_status); } && {
35896          test -z "$ac_c_werror_flag" ||
35897          test ! -s conftest.err
35898        } && test -s conftest.$ac_objext; then
35899   ac_hi=$ac_mid; break
35900 else
35901   echo "$as_me: failed program was:" >&5
35902 sed 's/^/| /' conftest.$ac_ext >&5
35903
35904         ac_lo=`expr $ac_mid + 1`
35905                         if test $ac_lo -le $ac_mid; then
35906                           ac_lo= ac_hi=
35907                           break
35908                         fi
35909                         ac_mid=`expr 2 '*' $ac_mid + 1`
35910 fi
35911
35912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35913   done
35914 else
35915   echo "$as_me: failed program was:" >&5
35916 sed 's/^/| /' conftest.$ac_ext >&5
35917
35918         cat >conftest.$ac_ext <<_ACEOF
35919 /* confdefs.h.  */
35920 _ACEOF
35921 cat confdefs.h >>conftest.$ac_ext
35922 cat >>conftest.$ac_ext <<_ACEOF
35923 /* end confdefs.h.  */
35924 $ac_includes_default
35925    typedef long long int ac__type_sizeof_;
35926 int
35927 main ()
35928 {
35929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35930 test_array [0] = 0
35931
35932   ;
35933   return 0;
35934 }
35935 _ACEOF
35936 rm -f conftest.$ac_objext
35937 if { (ac_try="$ac_compile"
35938 case "(($ac_try" in
35939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35940   *) ac_try_echo=$ac_try;;
35941 esac
35942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35943   (eval "$ac_compile") 2>conftest.er1
35944   ac_status=$?
35945   grep -v '^ *+' conftest.er1 >conftest.err
35946   rm -f conftest.er1
35947   cat conftest.err >&5
35948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949   (exit $ac_status); } && {
35950          test -z "$ac_c_werror_flag" ||
35951          test ! -s conftest.err
35952        } && test -s conftest.$ac_objext; then
35953   ac_hi=-1 ac_mid=-1
35954   while :; do
35955     cat >conftest.$ac_ext <<_ACEOF
35956 /* confdefs.h.  */
35957 _ACEOF
35958 cat confdefs.h >>conftest.$ac_ext
35959 cat >>conftest.$ac_ext <<_ACEOF
35960 /* end confdefs.h.  */
35961 $ac_includes_default
35962    typedef long long int ac__type_sizeof_;
35963 int
35964 main ()
35965 {
35966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35967 test_array [0] = 0
35968
35969   ;
35970   return 0;
35971 }
35972 _ACEOF
35973 rm -f conftest.$ac_objext
35974 if { (ac_try="$ac_compile"
35975 case "(($ac_try" in
35976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35977   *) ac_try_echo=$ac_try;;
35978 esac
35979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35980   (eval "$ac_compile") 2>conftest.er1
35981   ac_status=$?
35982   grep -v '^ *+' conftest.er1 >conftest.err
35983   rm -f conftest.er1
35984   cat conftest.err >&5
35985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986   (exit $ac_status); } && {
35987          test -z "$ac_c_werror_flag" ||
35988          test ! -s conftest.err
35989        } && test -s conftest.$ac_objext; then
35990   ac_lo=$ac_mid; break
35991 else
35992   echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35994
35995         ac_hi=`expr '(' $ac_mid ')' - 1`
35996                         if test $ac_mid -le $ac_hi; then
35997                           ac_lo= ac_hi=
35998                           break
35999                         fi
36000                         ac_mid=`expr 2 '*' $ac_mid`
36001 fi
36002
36003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36004   done
36005 else
36006   echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36008
36009         ac_lo= ac_hi=
36010 fi
36011
36012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36013 fi
36014
36015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36016 # Binary search between lo and hi bounds.
36017 while test "x$ac_lo" != "x$ac_hi"; do
36018   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36019   cat >conftest.$ac_ext <<_ACEOF
36020 /* confdefs.h.  */
36021 _ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h.  */
36025 $ac_includes_default
36026    typedef long long int ac__type_sizeof_;
36027 int
36028 main ()
36029 {
36030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36031 test_array [0] = 0
36032
36033   ;
36034   return 0;
36035 }
36036 _ACEOF
36037 rm -f conftest.$ac_objext
36038 if { (ac_try="$ac_compile"
36039 case "(($ac_try" in
36040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041   *) ac_try_echo=$ac_try;;
36042 esac
36043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044   (eval "$ac_compile") 2>conftest.er1
36045   ac_status=$?
36046   grep -v '^ *+' conftest.er1 >conftest.err
36047   rm -f conftest.er1
36048   cat conftest.err >&5
36049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050   (exit $ac_status); } && {
36051          test -z "$ac_c_werror_flag" ||
36052          test ! -s conftest.err
36053        } && test -s conftest.$ac_objext; then
36054   ac_hi=$ac_mid
36055 else
36056   echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36058
36059         ac_lo=`expr '(' $ac_mid ')' + 1`
36060 fi
36061
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36063 done
36064 case $ac_lo in
36065 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36066 '') if test "$ac_cv_type_long_long_int" = yes; then
36067      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36068 See \`config.log' for more details." >&5
36069 echo "$as_me: error: cannot compute sizeof (long long int)
36070 See \`config.log' for more details." >&2;}
36071    { (exit 77); exit 77; }; }
36072    else
36073      ac_cv_sizeof_long_long_int=0
36074    fi ;;
36075 esac
36076 else
36077   cat >conftest.$ac_ext <<_ACEOF
36078 /* confdefs.h.  */
36079 _ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h.  */
36083 $ac_includes_default
36084    typedef long long int ac__type_sizeof_;
36085 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36086 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36087 #include <stdio.h>
36088 #include <stdlib.h>
36089 int
36090 main ()
36091 {
36092
36093   FILE *f = fopen ("conftest.val", "w");
36094   if (! f)
36095     return 1;
36096   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36097     {
36098       long int i = longval ();
36099       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36100         return 1;
36101       fprintf (f, "%ld\n", i);
36102     }
36103   else
36104     {
36105       unsigned long int i = ulongval ();
36106       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36107         return 1;
36108       fprintf (f, "%lu\n", i);
36109     }
36110   return ferror (f) || fclose (f) != 0;
36111
36112   ;
36113   return 0;
36114 }
36115 _ACEOF
36116 rm -f conftest$ac_exeext
36117 if { (ac_try="$ac_link"
36118 case "(($ac_try" in
36119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120   *) ac_try_echo=$ac_try;;
36121 esac
36122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36123   (eval "$ac_link") 2>&5
36124   ac_status=$?
36125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36127   { (case "(($ac_try" in
36128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129   *) ac_try_echo=$ac_try;;
36130 esac
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132   (eval "$ac_try") 2>&5
36133   ac_status=$?
36134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135   (exit $ac_status); }; }; then
36136   ac_cv_sizeof_long_long_int=`cat conftest.val`
36137 else
36138   echo "$as_me: program exited with status $ac_status" >&5
36139 echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36141
36142 ( exit $ac_status )
36143 if test "$ac_cv_type_long_long_int" = yes; then
36144      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36145 See \`config.log' for more details." >&5
36146 echo "$as_me: error: cannot compute sizeof (long long int)
36147 See \`config.log' for more details." >&2;}
36148    { (exit 77); exit 77; }; }
36149    else
36150      ac_cv_sizeof_long_long_int=0
36151    fi
36152 fi
36153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36154 fi
36155 rm -f conftest.val
36156 fi
36157 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36158 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36159
36160
36161
36162 cat >>confdefs.h <<_ACEOF
36163 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36164 _ACEOF
36165
36166
36167 { echo "$as_me:$LINENO: checking for int *" >&5
36168 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36169 if test "${ac_cv_type_int_p+set}" = set; then
36170   echo $ECHO_N "(cached) $ECHO_C" >&6
36171 else
36172   cat >conftest.$ac_ext <<_ACEOF
36173 /* confdefs.h.  */
36174 _ACEOF
36175 cat confdefs.h >>conftest.$ac_ext
36176 cat >>conftest.$ac_ext <<_ACEOF
36177 /* end confdefs.h.  */
36178 $ac_includes_default
36179 typedef int * ac__type_new_;
36180 int
36181 main ()
36182 {
36183 if ((ac__type_new_ *) 0)
36184   return 0;
36185 if (sizeof (ac__type_new_))
36186   return 0;
36187   ;
36188   return 0;
36189 }
36190 _ACEOF
36191 rm -f conftest.$ac_objext
36192 if { (ac_try="$ac_compile"
36193 case "(($ac_try" in
36194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36195   *) ac_try_echo=$ac_try;;
36196 esac
36197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36198   (eval "$ac_compile") 2>conftest.er1
36199   ac_status=$?
36200   grep -v '^ *+' conftest.er1 >conftest.err
36201   rm -f conftest.er1
36202   cat conftest.err >&5
36203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204   (exit $ac_status); } && {
36205          test -z "$ac_c_werror_flag" ||
36206          test ! -s conftest.err
36207        } && test -s conftest.$ac_objext; then
36208   ac_cv_type_int_p=yes
36209 else
36210   echo "$as_me: failed program was:" >&5
36211 sed 's/^/| /' conftest.$ac_ext >&5
36212
36213         ac_cv_type_int_p=no
36214 fi
36215
36216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36217 fi
36218 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36219 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36220
36221 # The cast to long int works around a bug in the HP C Compiler
36222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36224 # This bug is HP SR number 8606223364.
36225 { echo "$as_me:$LINENO: checking size of int *" >&5
36226 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36227 if test "${ac_cv_sizeof_int_p+set}" = set; then
36228   echo $ECHO_N "(cached) $ECHO_C" >&6
36229 else
36230   if test "$cross_compiling" = yes; then
36231   # Depending upon the size, compute the lo and hi bounds.
36232 cat >conftest.$ac_ext <<_ACEOF
36233 /* confdefs.h.  */
36234 _ACEOF
36235 cat confdefs.h >>conftest.$ac_ext
36236 cat >>conftest.$ac_ext <<_ACEOF
36237 /* end confdefs.h.  */
36238 $ac_includes_default
36239    typedef int * ac__type_sizeof_;
36240 int
36241 main ()
36242 {
36243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36244 test_array [0] = 0
36245
36246   ;
36247   return 0;
36248 }
36249 _ACEOF
36250 rm -f conftest.$ac_objext
36251 if { (ac_try="$ac_compile"
36252 case "(($ac_try" in
36253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36254   *) ac_try_echo=$ac_try;;
36255 esac
36256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36257   (eval "$ac_compile") 2>conftest.er1
36258   ac_status=$?
36259   grep -v '^ *+' conftest.er1 >conftest.err
36260   rm -f conftest.er1
36261   cat conftest.err >&5
36262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263   (exit $ac_status); } && {
36264          test -z "$ac_c_werror_flag" ||
36265          test ! -s conftest.err
36266        } && test -s conftest.$ac_objext; then
36267   ac_lo=0 ac_mid=0
36268   while :; do
36269     cat >conftest.$ac_ext <<_ACEOF
36270 /* confdefs.h.  */
36271 _ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h.  */
36275 $ac_includes_default
36276    typedef int * ac__type_sizeof_;
36277 int
36278 main ()
36279 {
36280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36281 test_array [0] = 0
36282
36283   ;
36284   return 0;
36285 }
36286 _ACEOF
36287 rm -f conftest.$ac_objext
36288 if { (ac_try="$ac_compile"
36289 case "(($ac_try" in
36290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36291   *) ac_try_echo=$ac_try;;
36292 esac
36293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36294   (eval "$ac_compile") 2>conftest.er1
36295   ac_status=$?
36296   grep -v '^ *+' conftest.er1 >conftest.err
36297   rm -f conftest.er1
36298   cat conftest.err >&5
36299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300   (exit $ac_status); } && {
36301          test -z "$ac_c_werror_flag" ||
36302          test ! -s conftest.err
36303        } && test -s conftest.$ac_objext; then
36304   ac_hi=$ac_mid; break
36305 else
36306   echo "$as_me: failed program was:" >&5
36307 sed 's/^/| /' conftest.$ac_ext >&5
36308
36309         ac_lo=`expr $ac_mid + 1`
36310                         if test $ac_lo -le $ac_mid; then
36311                           ac_lo= ac_hi=
36312                           break
36313                         fi
36314                         ac_mid=`expr 2 '*' $ac_mid + 1`
36315 fi
36316
36317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36318   done
36319 else
36320   echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.$ac_ext >&5
36322
36323         cat >conftest.$ac_ext <<_ACEOF
36324 /* confdefs.h.  */
36325 _ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h.  */
36329 $ac_includes_default
36330    typedef int * ac__type_sizeof_;
36331 int
36332 main ()
36333 {
36334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36335 test_array [0] = 0
36336
36337   ;
36338   return 0;
36339 }
36340 _ACEOF
36341 rm -f conftest.$ac_objext
36342 if { (ac_try="$ac_compile"
36343 case "(($ac_try" in
36344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36345   *) ac_try_echo=$ac_try;;
36346 esac
36347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36348   (eval "$ac_compile") 2>conftest.er1
36349   ac_status=$?
36350   grep -v '^ *+' conftest.er1 >conftest.err
36351   rm -f conftest.er1
36352   cat conftest.err >&5
36353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354   (exit $ac_status); } && {
36355          test -z "$ac_c_werror_flag" ||
36356          test ! -s conftest.err
36357        } && test -s conftest.$ac_objext; then
36358   ac_hi=-1 ac_mid=-1
36359   while :; do
36360     cat >conftest.$ac_ext <<_ACEOF
36361 /* confdefs.h.  */
36362 _ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h.  */
36366 $ac_includes_default
36367    typedef int * ac__type_sizeof_;
36368 int
36369 main ()
36370 {
36371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36372 test_array [0] = 0
36373
36374   ;
36375   return 0;
36376 }
36377 _ACEOF
36378 rm -f conftest.$ac_objext
36379 if { (ac_try="$ac_compile"
36380 case "(($ac_try" in
36381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36382   *) ac_try_echo=$ac_try;;
36383 esac
36384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36385   (eval "$ac_compile") 2>conftest.er1
36386   ac_status=$?
36387   grep -v '^ *+' conftest.er1 >conftest.err
36388   rm -f conftest.er1
36389   cat conftest.err >&5
36390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391   (exit $ac_status); } && {
36392          test -z "$ac_c_werror_flag" ||
36393          test ! -s conftest.err
36394        } && test -s conftest.$ac_objext; then
36395   ac_lo=$ac_mid; break
36396 else
36397   echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.$ac_ext >&5
36399
36400         ac_hi=`expr '(' $ac_mid ')' - 1`
36401                         if test $ac_mid -le $ac_hi; then
36402                           ac_lo= ac_hi=
36403                           break
36404                         fi
36405                         ac_mid=`expr 2 '*' $ac_mid`
36406 fi
36407
36408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36409   done
36410 else
36411   echo "$as_me: failed program was:" >&5
36412 sed 's/^/| /' conftest.$ac_ext >&5
36413
36414         ac_lo= ac_hi=
36415 fi
36416
36417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418 fi
36419
36420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36421 # Binary search between lo and hi bounds.
36422 while test "x$ac_lo" != "x$ac_hi"; do
36423   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36424   cat >conftest.$ac_ext <<_ACEOF
36425 /* confdefs.h.  */
36426 _ACEOF
36427 cat confdefs.h >>conftest.$ac_ext
36428 cat >>conftest.$ac_ext <<_ACEOF
36429 /* end confdefs.h.  */
36430 $ac_includes_default
36431    typedef int * ac__type_sizeof_;
36432 int
36433 main ()
36434 {
36435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36436 test_array [0] = 0
36437
36438   ;
36439   return 0;
36440 }
36441 _ACEOF
36442 rm -f conftest.$ac_objext
36443 if { (ac_try="$ac_compile"
36444 case "(($ac_try" in
36445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36446   *) ac_try_echo=$ac_try;;
36447 esac
36448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36449   (eval "$ac_compile") 2>conftest.er1
36450   ac_status=$?
36451   grep -v '^ *+' conftest.er1 >conftest.err
36452   rm -f conftest.er1
36453   cat conftest.err >&5
36454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36455   (exit $ac_status); } && {
36456          test -z "$ac_c_werror_flag" ||
36457          test ! -s conftest.err
36458        } && test -s conftest.$ac_objext; then
36459   ac_hi=$ac_mid
36460 else
36461   echo "$as_me: failed program was:" >&5
36462 sed 's/^/| /' conftest.$ac_ext >&5
36463
36464         ac_lo=`expr '(' $ac_mid ')' + 1`
36465 fi
36466
36467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36468 done
36469 case $ac_lo in
36470 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36471 '') if test "$ac_cv_type_int_p" = yes; then
36472      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36473 See \`config.log' for more details." >&5
36474 echo "$as_me: error: cannot compute sizeof (int *)
36475 See \`config.log' for more details." >&2;}
36476    { (exit 77); exit 77; }; }
36477    else
36478      ac_cv_sizeof_int_p=0
36479    fi ;;
36480 esac
36481 else
36482   cat >conftest.$ac_ext <<_ACEOF
36483 /* confdefs.h.  */
36484 _ACEOF
36485 cat confdefs.h >>conftest.$ac_ext
36486 cat >>conftest.$ac_ext <<_ACEOF
36487 /* end confdefs.h.  */
36488 $ac_includes_default
36489    typedef int * ac__type_sizeof_;
36490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36492 #include <stdio.h>
36493 #include <stdlib.h>
36494 int
36495 main ()
36496 {
36497
36498   FILE *f = fopen ("conftest.val", "w");
36499   if (! f)
36500     return 1;
36501   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36502     {
36503       long int i = longval ();
36504       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36505         return 1;
36506       fprintf (f, "%ld\n", i);
36507     }
36508   else
36509     {
36510       unsigned long int i = ulongval ();
36511       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36512         return 1;
36513       fprintf (f, "%lu\n", i);
36514     }
36515   return ferror (f) || fclose (f) != 0;
36516
36517   ;
36518   return 0;
36519 }
36520 _ACEOF
36521 rm -f conftest$ac_exeext
36522 if { (ac_try="$ac_link"
36523 case "(($ac_try" in
36524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525   *) ac_try_echo=$ac_try;;
36526 esac
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528   (eval "$ac_link") 2>&5
36529   ac_status=$?
36530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36532   { (case "(($ac_try" in
36533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36534   *) ac_try_echo=$ac_try;;
36535 esac
36536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36537   (eval "$ac_try") 2>&5
36538   ac_status=$?
36539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540   (exit $ac_status); }; }; then
36541   ac_cv_sizeof_int_p=`cat conftest.val`
36542 else
36543   echo "$as_me: program exited with status $ac_status" >&5
36544 echo "$as_me: failed program was:" >&5
36545 sed 's/^/| /' conftest.$ac_ext >&5
36546
36547 ( exit $ac_status )
36548 if test "$ac_cv_type_int_p" = yes; then
36549      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36550 See \`config.log' for more details." >&5
36551 echo "$as_me: error: cannot compute sizeof (int *)
36552 See \`config.log' for more details." >&2;}
36553    { (exit 77); exit 77; }; }
36554    else
36555      ac_cv_sizeof_int_p=0
36556    fi
36557 fi
36558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36559 fi
36560 rm -f conftest.val
36561 fi
36562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36563 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36564
36565
36566
36567 cat >>confdefs.h <<_ACEOF
36568 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36569 _ACEOF
36570
36571
36572
36573 { echo "$as_me:$LINENO: checking for u_int type" >&5
36574 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36575 if test "${ac_cv_have_u_int+set}" = set; then
36576   echo $ECHO_N "(cached) $ECHO_C" >&6
36577 else
36578
36579        cat >conftest.$ac_ext <<_ACEOF
36580 /* confdefs.h.  */
36581 _ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h.  */
36585
36586               #include <sys/types.h>
36587
36588 int
36589 main ()
36590 {
36591
36592               u_int a; a = 1;
36593
36594   ;
36595   return 0;
36596 }
36597 _ACEOF
36598 rm -f conftest.$ac_objext
36599 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
36606   ac_status=$?
36607   grep -v '^ *+' conftest.er1 >conftest.err
36608   rm -f conftest.er1
36609   cat conftest.err >&5
36610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611   (exit $ac_status); } && {
36612          test -z "$ac_c_werror_flag" ||
36613          test ! -s conftest.err
36614        } && test -s conftest.$ac_objext; then
36615
36616               ac_cv_have_u_int="yes"
36617
36618 else
36619   echo "$as_me: failed program was:" >&5
36620 sed 's/^/| /' conftest.$ac_ext >&5
36621
36622
36623               ac_cv_have_u_int="no"
36624
36625
36626 fi
36627
36628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36629
36630
36631 fi
36632 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36633 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36634 if test "x$ac_cv_have_u_int" = "xyes" ; then
36635    cat >>confdefs.h <<\_ACEOF
36636 #define HAVE_U_INT 1
36637 _ACEOF
36638
36639    have_u_int=1
36640 fi
36641
36642 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36643 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36644 if test "${ac_cv_have_intmax_t+set}" = set; then
36645   echo $ECHO_N "(cached) $ECHO_C" >&6
36646 else
36647
36648        cat >conftest.$ac_ext <<_ACEOF
36649 /* confdefs.h.  */
36650 _ACEOF
36651 cat confdefs.h >>conftest.$ac_ext
36652 cat >>conftest.$ac_ext <<_ACEOF
36653 /* end confdefs.h.  */
36654
36655               #include <sys/types.h>
36656
36657 int
36658 main ()
36659 {
36660
36661               intmax_t a; a = 1;
36662
36663   ;
36664   return 0;
36665 }
36666 _ACEOF
36667 rm -f conftest.$ac_objext
36668 if { (ac_try="$ac_compile"
36669 case "(($ac_try" in
36670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36671   *) ac_try_echo=$ac_try;;
36672 esac
36673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36674   (eval "$ac_compile") 2>conftest.er1
36675   ac_status=$?
36676   grep -v '^ *+' conftest.er1 >conftest.err
36677   rm -f conftest.er1
36678   cat conftest.err >&5
36679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680   (exit $ac_status); } && {
36681          test -z "$ac_c_werror_flag" ||
36682          test ! -s conftest.err
36683        } && test -s conftest.$ac_objext; then
36684
36685               ac_cv_have_intmax_t="yes"
36686
36687 else
36688   echo "$as_me: failed program was:" >&5
36689 sed 's/^/| /' conftest.$ac_ext >&5
36690
36691
36692               cat >conftest.$ac_ext <<_ACEOF
36693 /* confdefs.h.  */
36694 _ACEOF
36695 cat confdefs.h >>conftest.$ac_ext
36696 cat >>conftest.$ac_ext <<_ACEOF
36697 /* end confdefs.h.  */
36698
36699                      #include <stdint.h>
36700
36701 int
36702 main ()
36703 {
36704
36705                      intmax_t a; a = 1;
36706
36707   ;
36708   return 0;
36709 }
36710 _ACEOF
36711 rm -f conftest.$ac_objext
36712 if { (ac_try="$ac_compile"
36713 case "(($ac_try" in
36714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715   *) ac_try_echo=$ac_try;;
36716 esac
36717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36718   (eval "$ac_compile") 2>conftest.er1
36719   ac_status=$?
36720   grep -v '^ *+' conftest.er1 >conftest.err
36721   rm -f conftest.er1
36722   cat conftest.err >&5
36723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724   (exit $ac_status); } && {
36725          test -z "$ac_c_werror_flag" ||
36726          test ! -s conftest.err
36727        } && test -s conftest.$ac_objext; then
36728
36729                      ac_cv_have_intmax_t="yes"
36730
36731 else
36732   echo "$as_me: failed program was:" >&5
36733 sed 's/^/| /' conftest.$ac_ext >&5
36734
36735
36736                      ac_cv_have_intmax_t="no"
36737
36738
36739 fi
36740
36741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36742
36743
36744 fi
36745
36746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36747
36748
36749 fi
36750 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36751 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36752 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36753    cat >>confdefs.h <<\_ACEOF
36754 #define HAVE_INTMAX_T 1
36755 _ACEOF
36756
36757    have_intmax_t=1
36758 fi
36759
36760 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36761 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36762 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36763   echo $ECHO_N "(cached) $ECHO_C" >&6
36764 else
36765
36766        cat >conftest.$ac_ext <<_ACEOF
36767 /* confdefs.h.  */
36768 _ACEOF
36769 cat confdefs.h >>conftest.$ac_ext
36770 cat >>conftest.$ac_ext <<_ACEOF
36771 /* end confdefs.h.  */
36772
36773               #include <sys/types.h>
36774
36775 int
36776 main ()
36777 {
36778
36779               u_intmax_t a; a = 1;
36780
36781   ;
36782   return 0;
36783 }
36784 _ACEOF
36785 rm -f conftest.$ac_objext
36786 if { (ac_try="$ac_compile"
36787 case "(($ac_try" in
36788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36789   *) ac_try_echo=$ac_try;;
36790 esac
36791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36792   (eval "$ac_compile") 2>conftest.er1
36793   ac_status=$?
36794   grep -v '^ *+' conftest.er1 >conftest.err
36795   rm -f conftest.er1
36796   cat conftest.err >&5
36797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798   (exit $ac_status); } && {
36799          test -z "$ac_c_werror_flag" ||
36800          test ! -s conftest.err
36801        } && test -s conftest.$ac_objext; then
36802
36803               ac_cv_have_u_intmax_t="yes"
36804
36805 else
36806   echo "$as_me: failed program was:" >&5
36807 sed 's/^/| /' conftest.$ac_ext >&5
36808
36809
36810               cat >conftest.$ac_ext <<_ACEOF
36811 /* confdefs.h.  */
36812 _ACEOF
36813 cat confdefs.h >>conftest.$ac_ext
36814 cat >>conftest.$ac_ext <<_ACEOF
36815 /* end confdefs.h.  */
36816
36817                      #include <stdint.h>
36818
36819 int
36820 main ()
36821 {
36822
36823                     u_intmax_t a; a = 1;
36824
36825   ;
36826   return 0;
36827 }
36828 _ACEOF
36829 rm -f conftest.$ac_objext
36830 if { (ac_try="$ac_compile"
36831 case "(($ac_try" in
36832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36833   *) ac_try_echo=$ac_try;;
36834 esac
36835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36836   (eval "$ac_compile") 2>conftest.er1
36837   ac_status=$?
36838   grep -v '^ *+' conftest.er1 >conftest.err
36839   rm -f conftest.er1
36840   cat conftest.err >&5
36841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842   (exit $ac_status); } && {
36843          test -z "$ac_c_werror_flag" ||
36844          test ! -s conftest.err
36845        } && test -s conftest.$ac_objext; then
36846
36847                     ac_cv_have_u_intmax_t="yes"
36848
36849 else
36850   echo "$as_me: failed program was:" >&5
36851 sed 's/^/| /' conftest.$ac_ext >&5
36852
36853
36854                     ac_cv_have_u_intmax_t="no"
36855
36856
36857 fi
36858
36859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36860
36861
36862 fi
36863
36864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36865
36866
36867 fi
36868 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36869 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36870 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36871    cat >>confdefs.h <<\_ACEOF
36872 #define HAVE_U_INTMAX_T 1
36873 _ACEOF
36874
36875    have_u_intmax_t=1
36876 fi
36877
36878 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36879 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36880 if test "${ac_cv_have_intxx_t+set}" = set; then
36881   echo $ECHO_N "(cached) $ECHO_C" >&6
36882 else
36883
36884        cat >conftest.$ac_ext <<_ACEOF
36885 /* confdefs.h.  */
36886 _ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h.  */
36890
36891               #include <sys/types.h>
36892
36893 int
36894 main ()
36895 {
36896
36897               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36898
36899   ;
36900   return 0;
36901 }
36902 _ACEOF
36903 rm -f conftest.$ac_objext
36904 if { (ac_try="$ac_compile"
36905 case "(($ac_try" in
36906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36907   *) ac_try_echo=$ac_try;;
36908 esac
36909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36910   (eval "$ac_compile") 2>conftest.er1
36911   ac_status=$?
36912   grep -v '^ *+' conftest.er1 >conftest.err
36913   rm -f conftest.er1
36914   cat conftest.err >&5
36915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916   (exit $ac_status); } && {
36917          test -z "$ac_c_werror_flag" ||
36918          test ! -s conftest.err
36919        } && test -s conftest.$ac_objext; then
36920
36921               ac_cv_have_intxx_t="yes"
36922
36923 else
36924   echo "$as_me: failed program was:" >&5
36925 sed 's/^/| /' conftest.$ac_ext >&5
36926
36927
36928               ac_cv_have_intxx_t="no"
36929
36930
36931 fi
36932
36933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36934
36935
36936 fi
36937 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36938 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36939 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36940    cat >>confdefs.h <<\_ACEOF
36941 #define HAVE_INTXX_T 1
36942 _ACEOF
36943
36944    have_intxx_t=1
36945 fi
36946
36947 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36948 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36949 if test "${ac_cv_have_int64_t+set}" = set; then
36950   echo $ECHO_N "(cached) $ECHO_C" >&6
36951 else
36952
36953        cat >conftest.$ac_ext <<_ACEOF
36954 /* confdefs.h.  */
36955 _ACEOF
36956 cat confdefs.h >>conftest.$ac_ext
36957 cat >>conftest.$ac_ext <<_ACEOF
36958 /* end confdefs.h.  */
36959
36960               #include <sys/types.h>
36961
36962 int
36963 main ()
36964 {
36965
36966               int64_t a; a = 1;
36967
36968   ;
36969   return 0;
36970 }
36971 _ACEOF
36972 rm -f conftest.$ac_objext
36973 if { (ac_try="$ac_compile"
36974 case "(($ac_try" in
36975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36976   *) ac_try_echo=$ac_try;;
36977 esac
36978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36979   (eval "$ac_compile") 2>conftest.er1
36980   ac_status=$?
36981   grep -v '^ *+' conftest.er1 >conftest.err
36982   rm -f conftest.er1
36983   cat conftest.err >&5
36984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985   (exit $ac_status); } && {
36986          test -z "$ac_c_werror_flag" ||
36987          test ! -s conftest.err
36988        } && test -s conftest.$ac_objext; then
36989
36990               ac_cv_have_int64_t="yes"
36991
36992 else
36993   echo "$as_me: failed program was:" >&5
36994 sed 's/^/| /' conftest.$ac_ext >&5
36995
36996
36997               ac_cv_have_int64_t="no"
36998
36999
37000 fi
37001
37002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37003
37004
37005 fi
37006 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37007 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37008 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37009    cat >>confdefs.h <<\_ACEOF
37010 #define HAVE_INT64_T 1
37011 _ACEOF
37012
37013    have_int64_t=1
37014 fi
37015
37016 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37017 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37018 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37019   echo $ECHO_N "(cached) $ECHO_C" >&6
37020 else
37021
37022        cat >conftest.$ac_ext <<_ACEOF
37023 /* confdefs.h.  */
37024 _ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h.  */
37028
37029               #include <sys/types.h>
37030
37031 int
37032 main ()
37033 {
37034
37035               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37036
37037   ;
37038   return 0;
37039 }
37040 _ACEOF
37041 rm -f conftest.$ac_objext
37042 if { (ac_try="$ac_compile"
37043 case "(($ac_try" in
37044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37045   *) ac_try_echo=$ac_try;;
37046 esac
37047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37048   (eval "$ac_compile") 2>conftest.er1
37049   ac_status=$?
37050   grep -v '^ *+' conftest.er1 >conftest.err
37051   rm -f conftest.er1
37052   cat conftest.err >&5
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); } && {
37055          test -z "$ac_c_werror_flag" ||
37056          test ! -s conftest.err
37057        } && test -s conftest.$ac_objext; then
37058
37059              ac_cv_have_u_intxx_t="yes"
37060
37061 else
37062   echo "$as_me: failed program was:" >&5
37063 sed 's/^/| /' conftest.$ac_ext >&5
37064
37065
37066              ac_cv_have_u_intxx_t="no"
37067
37068
37069 fi
37070
37071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37072
37073
37074 fi
37075 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37076 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37077 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37078    cat >>confdefs.h <<\_ACEOF
37079 #define HAVE_U_INTXX_T 1
37080 _ACEOF
37081
37082    have_u_intxx_t=1
37083 fi
37084
37085 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37086 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37087 if test "${ac_cv_have_u_int64_t+set}" = set; then
37088   echo $ECHO_N "(cached) $ECHO_C" >&6
37089 else
37090
37091        cat >conftest.$ac_ext <<_ACEOF
37092 /* confdefs.h.  */
37093 _ACEOF
37094 cat confdefs.h >>conftest.$ac_ext
37095 cat >>conftest.$ac_ext <<_ACEOF
37096 /* end confdefs.h.  */
37097
37098               #include <sys/types.h>
37099
37100 int
37101 main ()
37102 {
37103
37104               u_int64_t a; a = 1;
37105
37106   ;
37107   return 0;
37108 }
37109 _ACEOF
37110 rm -f conftest.$ac_objext
37111 if { (ac_try="$ac_compile"
37112 case "(($ac_try" in
37113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37114   *) ac_try_echo=$ac_try;;
37115 esac
37116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37117   (eval "$ac_compile") 2>conftest.er1
37118   ac_status=$?
37119   grep -v '^ *+' conftest.er1 >conftest.err
37120   rm -f conftest.er1
37121   cat conftest.err >&5
37122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123   (exit $ac_status); } && {
37124          test -z "$ac_c_werror_flag" ||
37125          test ! -s conftest.err
37126        } && test -s conftest.$ac_objext; then
37127
37128              ac_cv_have_u_int64_t="yes"
37129
37130 else
37131   echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37133
37134
37135              ac_cv_have_u_int64_t="no"
37136
37137
37138 fi
37139
37140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37141
37142
37143 fi
37144 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37145 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37146 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37147    cat >>confdefs.h <<\_ACEOF
37148 #define HAVE_U_INT64_T 1
37149 _ACEOF
37150
37151    have_u_int64_t=1
37152 fi
37153
37154 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37155     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37156 then
37157    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37158 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37159    cat >conftest.$ac_ext <<_ACEOF
37160 /* confdefs.h.  */
37161 _ACEOF
37162 cat confdefs.h >>conftest.$ac_ext
37163 cat >>conftest.$ac_ext <<_ACEOF
37164 /* end confdefs.h.  */
37165
37166           #include <sys/bitypes.h>
37167
37168 int
37169 main ()
37170 {
37171
37172           int8_t a; int16_t b; int32_t c;
37173           u_int8_t e; u_int16_t f; u_int32_t g;
37174           a = b = c = e = f = g = 1;
37175
37176   ;
37177   return 0;
37178 }
37179 _ACEOF
37180 rm -f conftest.$ac_objext
37181 if { (ac_try="$ac_compile"
37182 case "(($ac_try" in
37183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37184   *) ac_try_echo=$ac_try;;
37185 esac
37186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37187   (eval "$ac_compile") 2>conftest.er1
37188   ac_status=$?
37189   grep -v '^ *+' conftest.er1 >conftest.err
37190   rm -f conftest.er1
37191   cat conftest.err >&5
37192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193   (exit $ac_status); } && {
37194          test -z "$ac_c_werror_flag" ||
37195          test ! -s conftest.err
37196        } && test -s conftest.$ac_objext; then
37197
37198           cat >>confdefs.h <<\_ACEOF
37199 #define HAVE_U_INTXX_T 1
37200 _ACEOF
37201
37202           cat >>confdefs.h <<\_ACEOF
37203 #define HAVE_INTXX_T 1
37204 _ACEOF
37205
37206           cat >>confdefs.h <<\_ACEOF
37207 #define HAVE_SYS_BITYPES_H 1
37208 _ACEOF
37209
37210           { echo "$as_me:$LINENO: result: yes" >&5
37211 echo "${ECHO_T}yes" >&6; }
37212
37213 else
37214   echo "$as_me: failed program was:" >&5
37215 sed 's/^/| /' conftest.$ac_ext >&5
37216
37217
37218           { echo "$as_me:$LINENO: result: no" >&5
37219 echo "${ECHO_T}no" >&6; }
37220
37221
37222 fi
37223
37224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37225 fi
37226
37227 if test -z "$have_u_intxx_t" ; then
37228    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37229 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37230 if test "${ac_cv_have_uintxx_t+set}" = set; then
37231   echo $ECHO_N "(cached) $ECHO_C" >&6
37232 else
37233
37234           cat >conftest.$ac_ext <<_ACEOF
37235 /* confdefs.h.  */
37236 _ACEOF
37237 cat confdefs.h >>conftest.$ac_ext
37238 cat >>conftest.$ac_ext <<_ACEOF
37239 /* end confdefs.h.  */
37240
37241                  #include <sys/types.h>
37242
37243 int
37244 main ()
37245 {
37246
37247                  uint8_t a; uint16_t b;
37248                  uint32_t c; a = b = c = 1;
37249
37250   ;
37251   return 0;
37252 }
37253 _ACEOF
37254 rm -f conftest.$ac_objext
37255 if { (ac_try="$ac_compile"
37256 case "(($ac_try" in
37257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37258   *) ac_try_echo=$ac_try;;
37259 esac
37260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37261   (eval "$ac_compile") 2>conftest.er1
37262   ac_status=$?
37263   grep -v '^ *+' conftest.er1 >conftest.err
37264   rm -f conftest.er1
37265   cat conftest.err >&5
37266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267   (exit $ac_status); } && {
37268          test -z "$ac_c_werror_flag" ||
37269          test ! -s conftest.err
37270        } && test -s conftest.$ac_objext; then
37271
37272                 ac_cv_have_uintxx_t="yes"
37273
37274 else
37275   echo "$as_me: failed program was:" >&5
37276 sed 's/^/| /' conftest.$ac_ext >&5
37277
37278
37279                 ac_cv_have_uintxx_t="no"
37280
37281
37282 fi
37283
37284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37285
37286
37287 fi
37288 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37289 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37290    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37291       cat >>confdefs.h <<\_ACEOF
37292 #define HAVE_UINTXX_T 1
37293 _ACEOF
37294
37295    fi
37296 fi
37297
37298 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37299     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37300 then
37301    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37302 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37303    cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h.  */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h.  */
37309
37310           #include <sys/bitypes.h>
37311
37312 int
37313 main ()
37314 {
37315
37316           int64_t a; u_int64_t b;
37317           a = b = 1;
37318
37319   ;
37320   return 0;
37321 }
37322 _ACEOF
37323 rm -f conftest.$ac_objext
37324 if { (ac_try="$ac_compile"
37325 case "(($ac_try" in
37326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37327   *) ac_try_echo=$ac_try;;
37328 esac
37329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37330   (eval "$ac_compile") 2>conftest.er1
37331   ac_status=$?
37332   grep -v '^ *+' conftest.er1 >conftest.err
37333   rm -f conftest.er1
37334   cat conftest.err >&5
37335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37336   (exit $ac_status); } && {
37337          test -z "$ac_c_werror_flag" ||
37338          test ! -s conftest.err
37339        } && test -s conftest.$ac_objext; then
37340
37341           cat >>confdefs.h <<\_ACEOF
37342 #define HAVE_U_INT64_T 1
37343 _ACEOF
37344
37345           cat >>confdefs.h <<\_ACEOF
37346 #define HAVE_INT64_T 1
37347 _ACEOF
37348
37349           { echo "$as_me:$LINENO: result: yes" >&5
37350 echo "${ECHO_T}yes" >&6; }
37351
37352 else
37353   echo "$as_me: failed program was:" >&5
37354 sed 's/^/| /' conftest.$ac_ext >&5
37355
37356
37357           { echo "$as_me:$LINENO: result: no" >&5
37358 echo "${ECHO_T}no" >&6; }
37359
37360
37361 fi
37362
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37364 fi
37365
37366 if (test -z "$have_uintxx_t" && \
37367     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37368 then
37369    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37370 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37371    cat >conftest.$ac_ext <<_ACEOF
37372 /* confdefs.h.  */
37373 _ACEOF
37374 cat confdefs.h >>conftest.$ac_ext
37375 cat >>conftest.$ac_ext <<_ACEOF
37376 /* end confdefs.h.  */
37377
37378           #include <sys/bitypes.h>
37379
37380 int
37381 main ()
37382 {
37383
37384           uint8_t a; uint16_t b;
37385           uint32_t c; a = b = c = 1;
37386
37387   ;
37388   return 0;
37389 }
37390 _ACEOF
37391 rm -f conftest.$ac_objext
37392 if { (ac_try="$ac_compile"
37393 case "(($ac_try" in
37394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395   *) ac_try_echo=$ac_try;;
37396 esac
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398   (eval "$ac_compile") 2>conftest.er1
37399   ac_status=$?
37400   grep -v '^ *+' conftest.er1 >conftest.err
37401   rm -f conftest.er1
37402   cat conftest.err >&5
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); } && {
37405          test -z "$ac_c_werror_flag" ||
37406          test ! -s conftest.err
37407        } && test -s conftest.$ac_objext; then
37408
37409           cat >>confdefs.h <<\_ACEOF
37410 #define HAVE_UINTXX_T 1
37411 _ACEOF
37412
37413           { echo "$as_me:$LINENO: result: yes" >&5
37414 echo "${ECHO_T}yes" >&6; }
37415
37416 else
37417   echo "$as_me: failed program was:" >&5
37418 sed 's/^/| /' conftest.$ac_ext >&5
37419
37420
37421           { echo "$as_me:$LINENO: result: no" >&5
37422 echo "${ECHO_T}no" >&6; }
37423
37424
37425 fi
37426
37427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37428 fi
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443 for ac_func in \
37444    fork \
37445    getcwd \
37446    gethostname \
37447    getpid \
37448    gettimeofday \
37449    setpgid \
37450    setpgrp \
37451    setsid \
37452    signal \
37453    strerror \
37454    strncmp \
37455    strncpy \
37456    vfprintf \
37457
37458 do
37459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37463   echo $ECHO_N "(cached) $ECHO_C" >&6
37464 else
37465   cat >conftest.$ac_ext <<_ACEOF
37466 /* confdefs.h.  */
37467 _ACEOF
37468 cat confdefs.h >>conftest.$ac_ext
37469 cat >>conftest.$ac_ext <<_ACEOF
37470 /* end confdefs.h.  */
37471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37473 #define $ac_func innocuous_$ac_func
37474
37475 /* System header to define __stub macros and hopefully few prototypes,
37476     which can conflict with char $ac_func (); below.
37477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37478     <limits.h> exists even on freestanding compilers.  */
37479
37480 #ifdef __STDC__
37481 # include <limits.h>
37482 #else
37483 # include <assert.h>
37484 #endif
37485
37486 #undef $ac_func
37487
37488 /* Override any GCC internal prototype to avoid an error.
37489    Use char because int might match the return type of a GCC
37490    builtin and then its argument prototype would still apply.  */
37491 #ifdef __cplusplus
37492 extern "C"
37493 #endif
37494 char $ac_func ();
37495 /* The GNU C library defines this for functions which it implements
37496     to always fail with ENOSYS.  Some functions are actually named
37497     something starting with __ and the normal name is an alias.  */
37498 #if defined __stub_$ac_func || defined __stub___$ac_func
37499 choke me
37500 #endif
37501
37502 int
37503 main ()
37504 {
37505 return $ac_func ();
37506   ;
37507   return 0;
37508 }
37509 _ACEOF
37510 rm -f conftest.$ac_objext conftest$ac_exeext
37511 if { (ac_try="$ac_link"
37512 case "(($ac_try" in
37513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37514   *) ac_try_echo=$ac_try;;
37515 esac
37516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37517   (eval "$ac_link") 2>conftest.er1
37518   ac_status=$?
37519   grep -v '^ *+' conftest.er1 >conftest.err
37520   rm -f conftest.er1
37521   cat conftest.err >&5
37522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37523   (exit $ac_status); } && {
37524          test -z "$ac_c_werror_flag" ||
37525          test ! -s conftest.err
37526        } && test -s conftest$ac_exeext &&
37527        $as_test_x conftest$ac_exeext; then
37528   eval "$as_ac_var=yes"
37529 else
37530   echo "$as_me: failed program was:" >&5
37531 sed 's/^/| /' conftest.$ac_ext >&5
37532
37533         eval "$as_ac_var=no"
37534 fi
37535
37536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37537       conftest$ac_exeext conftest.$ac_ext
37538 fi
37539 ac_res=`eval echo '${'$as_ac_var'}'`
37540                { echo "$as_me:$LINENO: result: $ac_res" >&5
37541 echo "${ECHO_T}$ac_res" >&6; }
37542 if test `eval echo '${'$as_ac_var'}'` = yes; then
37543   cat >>confdefs.h <<_ACEOF
37544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37545 _ACEOF
37546
37547 else
37548   echo 'configure: cannot find needed function.'; exit 1
37549
37550 fi
37551 done
37552
37553
37554
37555 for ac_func in fchdir
37556 do
37557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37561   echo $ECHO_N "(cached) $ECHO_C" >&6
37562 else
37563   cat >conftest.$ac_ext <<_ACEOF
37564 /* confdefs.h.  */
37565 _ACEOF
37566 cat confdefs.h >>conftest.$ac_ext
37567 cat >>conftest.$ac_ext <<_ACEOF
37568 /* end confdefs.h.  */
37569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37571 #define $ac_func innocuous_$ac_func
37572
37573 /* System header to define __stub macros and hopefully few prototypes,
37574     which can conflict with char $ac_func (); below.
37575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37576     <limits.h> exists even on freestanding compilers.  */
37577
37578 #ifdef __STDC__
37579 # include <limits.h>
37580 #else
37581 # include <assert.h>
37582 #endif
37583
37584 #undef $ac_func
37585
37586 /* Override any GCC internal prototype to avoid an error.
37587    Use char because int might match the return type of a GCC
37588    builtin and then its argument prototype would still apply.  */
37589 #ifdef __cplusplus
37590 extern "C"
37591 #endif
37592 char $ac_func ();
37593 /* The GNU C library defines this for functions which it implements
37594     to always fail with ENOSYS.  Some functions are actually named
37595     something starting with __ and the normal name is an alias.  */
37596 #if defined __stub_$ac_func || defined __stub___$ac_func
37597 choke me
37598 #endif
37599
37600 int
37601 main ()
37602 {
37603 return $ac_func ();
37604   ;
37605   return 0;
37606 }
37607 _ACEOF
37608 rm -f conftest.$ac_objext conftest$ac_exeext
37609 if { (ac_try="$ac_link"
37610 case "(($ac_try" in
37611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37612   *) ac_try_echo=$ac_try;;
37613 esac
37614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37615   (eval "$ac_link") 2>conftest.er1
37616   ac_status=$?
37617   grep -v '^ *+' conftest.er1 >conftest.err
37618   rm -f conftest.er1
37619   cat conftest.err >&5
37620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621   (exit $ac_status); } && {
37622          test -z "$ac_c_werror_flag" ||
37623          test ! -s conftest.err
37624        } && test -s conftest$ac_exeext &&
37625        $as_test_x conftest$ac_exeext; then
37626   eval "$as_ac_var=yes"
37627 else
37628   echo "$as_me: failed program was:" >&5
37629 sed 's/^/| /' conftest.$ac_ext >&5
37630
37631         eval "$as_ac_var=no"
37632 fi
37633
37634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37635       conftest$ac_exeext conftest.$ac_ext
37636 fi
37637 ac_res=`eval echo '${'$as_ac_var'}'`
37638                { echo "$as_me:$LINENO: result: $ac_res" >&5
37639 echo "${ECHO_T}$ac_res" >&6; }
37640 if test `eval echo '${'$as_ac_var'}'` = yes; then
37641   cat >>confdefs.h <<_ACEOF
37642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37643 _ACEOF
37644  cat >>confdefs.h <<\_ACEOF
37645 #define HAVE_FCHDIR 1
37646 _ACEOF
37647
37648 fi
37649 done
37650
37651
37652 for ac_func in strtoll
37653 do
37654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37658   echo $ECHO_N "(cached) $ECHO_C" >&6
37659 else
37660   cat >conftest.$ac_ext <<_ACEOF
37661 /* confdefs.h.  */
37662 _ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h.  */
37666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37668 #define $ac_func innocuous_$ac_func
37669
37670 /* System header to define __stub macros and hopefully few prototypes,
37671     which can conflict with char $ac_func (); below.
37672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37673     <limits.h> exists even on freestanding compilers.  */
37674
37675 #ifdef __STDC__
37676 # include <limits.h>
37677 #else
37678 # include <assert.h>
37679 #endif
37680
37681 #undef $ac_func
37682
37683 /* Override any GCC internal prototype to avoid an error.
37684    Use char because int might match the return type of a GCC
37685    builtin and then its argument prototype would still apply.  */
37686 #ifdef __cplusplus
37687 extern "C"
37688 #endif
37689 char $ac_func ();
37690 /* The GNU C library defines this for functions which it implements
37691     to always fail with ENOSYS.  Some functions are actually named
37692     something starting with __ and the normal name is an alias.  */
37693 #if defined __stub_$ac_func || defined __stub___$ac_func
37694 choke me
37695 #endif
37696
37697 int
37698 main ()
37699 {
37700 return $ac_func ();
37701   ;
37702   return 0;
37703 }
37704 _ACEOF
37705 rm -f conftest.$ac_objext conftest$ac_exeext
37706 if { (ac_try="$ac_link"
37707 case "(($ac_try" in
37708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709   *) ac_try_echo=$ac_try;;
37710 esac
37711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37712   (eval "$ac_link") 2>conftest.er1
37713   ac_status=$?
37714   grep -v '^ *+' conftest.er1 >conftest.err
37715   rm -f conftest.er1
37716   cat conftest.err >&5
37717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718   (exit $ac_status); } && {
37719          test -z "$ac_c_werror_flag" ||
37720          test ! -s conftest.err
37721        } && test -s conftest$ac_exeext &&
37722        $as_test_x conftest$ac_exeext; then
37723   eval "$as_ac_var=yes"
37724 else
37725   echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37727
37728         eval "$as_ac_var=no"
37729 fi
37730
37731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37732       conftest$ac_exeext conftest.$ac_ext
37733 fi
37734 ac_res=`eval echo '${'$as_ac_var'}'`
37735                { echo "$as_me:$LINENO: result: $ac_res" >&5
37736 echo "${ECHO_T}$ac_res" >&6; }
37737 if test `eval echo '${'$as_ac_var'}'` = yes; then
37738   cat >>confdefs.h <<_ACEOF
37739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37740 _ACEOF
37741  cat >>confdefs.h <<\_ACEOF
37742 #define HAVE_STRTOLL 1
37743 _ACEOF
37744
37745 fi
37746 done
37747
37748
37749 for ac_func in posix_fadvise
37750 do
37751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37755   echo $ECHO_N "(cached) $ECHO_C" >&6
37756 else
37757   cat >conftest.$ac_ext <<_ACEOF
37758 /* confdefs.h.  */
37759 _ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h.  */
37763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37765 #define $ac_func innocuous_$ac_func
37766
37767 /* System header to define __stub macros and hopefully few prototypes,
37768     which can conflict with char $ac_func (); below.
37769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37770     <limits.h> exists even on freestanding compilers.  */
37771
37772 #ifdef __STDC__
37773 # include <limits.h>
37774 #else
37775 # include <assert.h>
37776 #endif
37777
37778 #undef $ac_func
37779
37780 /* Override any GCC internal prototype to avoid an error.
37781    Use char because int might match the return type of a GCC
37782    builtin and then its argument prototype would still apply.  */
37783 #ifdef __cplusplus
37784 extern "C"
37785 #endif
37786 char $ac_func ();
37787 /* The GNU C library defines this for functions which it implements
37788     to always fail with ENOSYS.  Some functions are actually named
37789     something starting with __ and the normal name is an alias.  */
37790 #if defined __stub_$ac_func || defined __stub___$ac_func
37791 choke me
37792 #endif
37793
37794 int
37795 main ()
37796 {
37797 return $ac_func ();
37798   ;
37799   return 0;
37800 }
37801 _ACEOF
37802 rm -f conftest.$ac_objext conftest$ac_exeext
37803 if { (ac_try="$ac_link"
37804 case "(($ac_try" in
37805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37806   *) ac_try_echo=$ac_try;;
37807 esac
37808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37809   (eval "$ac_link") 2>conftest.er1
37810   ac_status=$?
37811   grep -v '^ *+' conftest.er1 >conftest.err
37812   rm -f conftest.er1
37813   cat conftest.err >&5
37814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815   (exit $ac_status); } && {
37816          test -z "$ac_c_werror_flag" ||
37817          test ! -s conftest.err
37818        } && test -s conftest$ac_exeext &&
37819        $as_test_x conftest$ac_exeext; then
37820   eval "$as_ac_var=yes"
37821 else
37822   echo "$as_me: failed program was:" >&5
37823 sed 's/^/| /' conftest.$ac_ext >&5
37824
37825         eval "$as_ac_var=no"
37826 fi
37827
37828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37829       conftest$ac_exeext conftest.$ac_ext
37830 fi
37831 ac_res=`eval echo '${'$as_ac_var'}'`
37832                { echo "$as_me:$LINENO: result: $ac_res" >&5
37833 echo "${ECHO_T}$ac_res" >&6; }
37834 if test `eval echo '${'$as_ac_var'}'` = yes; then
37835   cat >>confdefs.h <<_ACEOF
37836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37837 _ACEOF
37838
37839 fi
37840 done
37841
37842
37843 for ac_func in fdatasync
37844 do
37845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37849   echo $ECHO_N "(cached) $ECHO_C" >&6
37850 else
37851   cat >conftest.$ac_ext <<_ACEOF
37852 /* confdefs.h.  */
37853 _ACEOF
37854 cat confdefs.h >>conftest.$ac_ext
37855 cat >>conftest.$ac_ext <<_ACEOF
37856 /* end confdefs.h.  */
37857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37859 #define $ac_func innocuous_$ac_func
37860
37861 /* System header to define __stub macros and hopefully few prototypes,
37862     which can conflict with char $ac_func (); below.
37863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37864     <limits.h> exists even on freestanding compilers.  */
37865
37866 #ifdef __STDC__
37867 # include <limits.h>
37868 #else
37869 # include <assert.h>
37870 #endif
37871
37872 #undef $ac_func
37873
37874 /* Override any GCC internal prototype to avoid an error.
37875    Use char because int might match the return type of a GCC
37876    builtin and then its argument prototype would still apply.  */
37877 #ifdef __cplusplus
37878 extern "C"
37879 #endif
37880 char $ac_func ();
37881 /* The GNU C library defines this for functions which it implements
37882     to always fail with ENOSYS.  Some functions are actually named
37883     something starting with __ and the normal name is an alias.  */
37884 #if defined __stub_$ac_func || defined __stub___$ac_func
37885 choke me
37886 #endif
37887
37888 int
37889 main ()
37890 {
37891 return $ac_func ();
37892   ;
37893   return 0;
37894 }
37895 _ACEOF
37896 rm -f conftest.$ac_objext conftest$ac_exeext
37897 if { (ac_try="$ac_link"
37898 case "(($ac_try" in
37899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37900   *) ac_try_echo=$ac_try;;
37901 esac
37902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37903   (eval "$ac_link") 2>conftest.er1
37904   ac_status=$?
37905   grep -v '^ *+' conftest.er1 >conftest.err
37906   rm -f conftest.er1
37907   cat conftest.err >&5
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); } && {
37910          test -z "$ac_c_werror_flag" ||
37911          test ! -s conftest.err
37912        } && test -s conftest$ac_exeext &&
37913        $as_test_x conftest$ac_exeext; then
37914   eval "$as_ac_var=yes"
37915 else
37916   echo "$as_me: failed program was:" >&5
37917 sed 's/^/| /' conftest.$ac_ext >&5
37918
37919         eval "$as_ac_var=no"
37920 fi
37921
37922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37923       conftest$ac_exeext conftest.$ac_ext
37924 fi
37925 ac_res=`eval echo '${'$as_ac_var'}'`
37926                { echo "$as_me:$LINENO: result: $ac_res" >&5
37927 echo "${ECHO_T}$ac_res" >&6; }
37928 if test `eval echo '${'$as_ac_var'}'` = yes; then
37929   cat >>confdefs.h <<_ACEOF
37930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37931 _ACEOF
37932
37933 fi
37934 done
37935
37936
37937
37938 for ac_func in chflags
37939 do
37940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37944   echo $ECHO_N "(cached) $ECHO_C" >&6
37945 else
37946   cat >conftest.$ac_ext <<_ACEOF
37947 /* confdefs.h.  */
37948 _ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h.  */
37952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37954 #define $ac_func innocuous_$ac_func
37955
37956 /* System header to define __stub macros and hopefully few prototypes,
37957     which can conflict with char $ac_func (); below.
37958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37959     <limits.h> exists even on freestanding compilers.  */
37960
37961 #ifdef __STDC__
37962 # include <limits.h>
37963 #else
37964 # include <assert.h>
37965 #endif
37966
37967 #undef $ac_func
37968
37969 /* Override any GCC internal prototype to avoid an error.
37970    Use char because int might match the return type of a GCC
37971    builtin and then its argument prototype would still apply.  */
37972 #ifdef __cplusplus
37973 extern "C"
37974 #endif
37975 char $ac_func ();
37976 /* The GNU C library defines this for functions which it implements
37977     to always fail with ENOSYS.  Some functions are actually named
37978     something starting with __ and the normal name is an alias.  */
37979 #if defined __stub_$ac_func || defined __stub___$ac_func
37980 choke me
37981 #endif
37982
37983 int
37984 main ()
37985 {
37986 return $ac_func ();
37987   ;
37988   return 0;
37989 }
37990 _ACEOF
37991 rm -f conftest.$ac_objext conftest$ac_exeext
37992 if { (ac_try="$ac_link"
37993 case "(($ac_try" in
37994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37995   *) ac_try_echo=$ac_try;;
37996 esac
37997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37998   (eval "$ac_link") 2>conftest.er1
37999   ac_status=$?
38000   grep -v '^ *+' conftest.er1 >conftest.err
38001   rm -f conftest.er1
38002   cat conftest.err >&5
38003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004   (exit $ac_status); } && {
38005          test -z "$ac_c_werror_flag" ||
38006          test ! -s conftest.err
38007        } && test -s conftest$ac_exeext &&
38008        $as_test_x conftest$ac_exeext; then
38009   eval "$as_ac_var=yes"
38010 else
38011   echo "$as_me: failed program was:" >&5
38012 sed 's/^/| /' conftest.$ac_ext >&5
38013
38014         eval "$as_ac_var=no"
38015 fi
38016
38017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38018       conftest$ac_exeext conftest.$ac_ext
38019 fi
38020 ac_res=`eval echo '${'$as_ac_var'}'`
38021                { echo "$as_me:$LINENO: result: $ac_res" >&5
38022 echo "${ECHO_T}$ac_res" >&6; }
38023 if test `eval echo '${'$as_ac_var'}'` = yes; then
38024   cat >>confdefs.h <<_ACEOF
38025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38026 _ACEOF
38027
38028 fi
38029 done
38030
38031
38032
38033
38034
38035
38036 for ac_func in snprintf vsnprintf gethostid fseeko
38037 do
38038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38042   echo $ECHO_N "(cached) $ECHO_C" >&6
38043 else
38044   cat >conftest.$ac_ext <<_ACEOF
38045 /* confdefs.h.  */
38046 _ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h.  */
38050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38052 #define $ac_func innocuous_$ac_func
38053
38054 /* System header to define __stub macros and hopefully few prototypes,
38055     which can conflict with char $ac_func (); below.
38056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38057     <limits.h> exists even on freestanding compilers.  */
38058
38059 #ifdef __STDC__
38060 # include <limits.h>
38061 #else
38062 # include <assert.h>
38063 #endif
38064
38065 #undef $ac_func
38066
38067 /* Override any GCC internal prototype to avoid an error.
38068    Use char because int might match the return type of a GCC
38069    builtin and then its argument prototype would still apply.  */
38070 #ifdef __cplusplus
38071 extern "C"
38072 #endif
38073 char $ac_func ();
38074 /* The GNU C library defines this for functions which it implements
38075     to always fail with ENOSYS.  Some functions are actually named
38076     something starting with __ and the normal name is an alias.  */
38077 #if defined __stub_$ac_func || defined __stub___$ac_func
38078 choke me
38079 #endif
38080
38081 int
38082 main ()
38083 {
38084 return $ac_func ();
38085   ;
38086   return 0;
38087 }
38088 _ACEOF
38089 rm -f conftest.$ac_objext conftest$ac_exeext
38090 if { (ac_try="$ac_link"
38091 case "(($ac_try" in
38092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38093   *) ac_try_echo=$ac_try;;
38094 esac
38095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38096   (eval "$ac_link") 2>conftest.er1
38097   ac_status=$?
38098   grep -v '^ *+' conftest.er1 >conftest.err
38099   rm -f conftest.er1
38100   cat conftest.err >&5
38101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102   (exit $ac_status); } && {
38103          test -z "$ac_c_werror_flag" ||
38104          test ! -s conftest.err
38105        } && test -s conftest$ac_exeext &&
38106        $as_test_x conftest$ac_exeext; then
38107   eval "$as_ac_var=yes"
38108 else
38109   echo "$as_me: failed program was:" >&5
38110 sed 's/^/| /' conftest.$ac_ext >&5
38111
38112         eval "$as_ac_var=no"
38113 fi
38114
38115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38116       conftest$ac_exeext conftest.$ac_ext
38117 fi
38118 ac_res=`eval echo '${'$as_ac_var'}'`
38119                { echo "$as_me:$LINENO: result: $ac_res" >&5
38120 echo "${ECHO_T}$ac_res" >&6; }
38121 if test `eval echo '${'$as_ac_var'}'` = yes; then
38122   cat >>confdefs.h <<_ACEOF
38123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38124 _ACEOF
38125
38126 fi
38127 done
38128
38129
38130 { echo "$as_me:$LINENO: checking for va_copy" >&5
38131 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38132 if test "${ba_cv_va_copy+set}" = set; then
38133   echo $ECHO_N "(cached) $ECHO_C" >&6
38134 else
38135
38136        cat >conftest.$ac_ext <<_ACEOF
38137 /* confdefs.h.  */
38138 _ACEOF
38139 cat confdefs.h >>conftest.$ac_ext
38140 cat >>conftest.$ac_ext <<_ACEOF
38141 /* end confdefs.h.  */
38142
38143               #include <stdarg.h>
38144               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38145               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38146
38147 int
38148 main ()
38149 {
38150
38151               call_use_va_copy(1,2,3)
38152
38153   ;
38154   return 0;
38155 }
38156 _ACEOF
38157 rm -f conftest.$ac_objext conftest$ac_exeext
38158 if { (ac_try="$ac_link"
38159 case "(($ac_try" in
38160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38161   *) ac_try_echo=$ac_try;;
38162 esac
38163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38164   (eval "$ac_link") 2>conftest.er1
38165   ac_status=$?
38166   grep -v '^ *+' conftest.er1 >conftest.err
38167   rm -f conftest.er1
38168   cat conftest.err >&5
38169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170   (exit $ac_status); } && {
38171          test -z "$ac_c_werror_flag" ||
38172          test ! -s conftest.err
38173        } && test -s conftest$ac_exeext &&
38174        $as_test_x conftest$ac_exeext; then
38175
38176               ba_cv_va_copy=yes,
38177
38178 else
38179   echo "$as_me: failed program was:" >&5
38180 sed 's/^/| /' conftest.$ac_ext >&5
38181
38182
38183               ba_cv_va_copy=no
38184
38185
38186 fi
38187
38188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38189       conftest$ac_exeext conftest.$ac_ext
38190
38191
38192 fi
38193 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38194 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38195 test $ba_cv_va_copy = yes &&
38196 cat >>confdefs.h <<\_ACEOF
38197 #define HAVE_VA_COPY 1
38198 _ACEOF
38199
38200
38201
38202
38203
38204
38205 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38206 do
38207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38211   echo $ECHO_N "(cached) $ECHO_C" >&6
38212 else
38213   cat >conftest.$ac_ext <<_ACEOF
38214 /* confdefs.h.  */
38215 _ACEOF
38216 cat confdefs.h >>conftest.$ac_ext
38217 cat >>conftest.$ac_ext <<_ACEOF
38218 /* end confdefs.h.  */
38219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38221 #define $ac_func innocuous_$ac_func
38222
38223 /* System header to define __stub macros and hopefully few prototypes,
38224     which can conflict with char $ac_func (); below.
38225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38226     <limits.h> exists even on freestanding compilers.  */
38227
38228 #ifdef __STDC__
38229 # include <limits.h>
38230 #else
38231 # include <assert.h>
38232 #endif
38233
38234 #undef $ac_func
38235
38236 /* Override any GCC internal prototype to avoid an error.
38237    Use char because int might match the return type of a GCC
38238    builtin and then its argument prototype would still apply.  */
38239 #ifdef __cplusplus
38240 extern "C"
38241 #endif
38242 char $ac_func ();
38243 /* The GNU C library defines this for functions which it implements
38244     to always fail with ENOSYS.  Some functions are actually named
38245     something starting with __ and the normal name is an alias.  */
38246 #if defined __stub_$ac_func || defined __stub___$ac_func
38247 choke me
38248 #endif
38249
38250 int
38251 main ()
38252 {
38253 return $ac_func ();
38254   ;
38255   return 0;
38256 }
38257 _ACEOF
38258 rm -f conftest.$ac_objext conftest$ac_exeext
38259 if { (ac_try="$ac_link"
38260 case "(($ac_try" in
38261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38262   *) ac_try_echo=$ac_try;;
38263 esac
38264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38265   (eval "$ac_link") 2>conftest.er1
38266   ac_status=$?
38267   grep -v '^ *+' conftest.er1 >conftest.err
38268   rm -f conftest.er1
38269   cat conftest.err >&5
38270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271   (exit $ac_status); } && {
38272          test -z "$ac_c_werror_flag" ||
38273          test ! -s conftest.err
38274        } && test -s conftest$ac_exeext &&
38275        $as_test_x conftest$ac_exeext; then
38276   eval "$as_ac_var=yes"
38277 else
38278   echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38280
38281         eval "$as_ac_var=no"
38282 fi
38283
38284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38285       conftest$ac_exeext conftest.$ac_ext
38286 fi
38287 ac_res=`eval echo '${'$as_ac_var'}'`
38288                { echo "$as_me:$LINENO: result: $ac_res" >&5
38289 echo "${ECHO_T}$ac_res" >&6; }
38290 if test `eval echo '${'$as_ac_var'}'` = yes; then
38291   cat >>confdefs.h <<_ACEOF
38292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38293 _ACEOF
38294
38295 fi
38296 done
38297
38298
38299 # If resolver functions are not in libc check for -lnsl or -lresolv.
38300 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38301 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38302 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38303   echo $ECHO_N "(cached) $ECHO_C" >&6
38304 else
38305   cat >conftest.$ac_ext <<_ACEOF
38306 /* confdefs.h.  */
38307 _ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h.  */
38311 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38313 #define gethostbyname_r innocuous_gethostbyname_r
38314
38315 /* System header to define __stub macros and hopefully few prototypes,
38316     which can conflict with char gethostbyname_r (); below.
38317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38318     <limits.h> exists even on freestanding compilers.  */
38319
38320 #ifdef __STDC__
38321 # include <limits.h>
38322 #else
38323 # include <assert.h>
38324 #endif
38325
38326 #undef gethostbyname_r
38327
38328 /* Override any GCC internal prototype to avoid an error.
38329    Use char because int might match the return type of a GCC
38330    builtin and then its argument prototype would still apply.  */
38331 #ifdef __cplusplus
38332 extern "C"
38333 #endif
38334 char gethostbyname_r ();
38335 /* The GNU C library defines this for functions which it implements
38336     to always fail with ENOSYS.  Some functions are actually named
38337     something starting with __ and the normal name is an alias.  */
38338 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38339 choke me
38340 #endif
38341
38342 int
38343 main ()
38344 {
38345 return gethostbyname_r ();
38346   ;
38347   return 0;
38348 }
38349 _ACEOF
38350 rm -f conftest.$ac_objext conftest$ac_exeext
38351 if { (ac_try="$ac_link"
38352 case "(($ac_try" in
38353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38354   *) ac_try_echo=$ac_try;;
38355 esac
38356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38357   (eval "$ac_link") 2>conftest.er1
38358   ac_status=$?
38359   grep -v '^ *+' conftest.er1 >conftest.err
38360   rm -f conftest.er1
38361   cat conftest.err >&5
38362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363   (exit $ac_status); } && {
38364          test -z "$ac_c_werror_flag" ||
38365          test ! -s conftest.err
38366        } && test -s conftest$ac_exeext &&
38367        $as_test_x conftest$ac_exeext; then
38368   ac_cv_func_gethostbyname_r=yes
38369 else
38370   echo "$as_me: failed program was:" >&5
38371 sed 's/^/| /' conftest.$ac_ext >&5
38372
38373         ac_cv_func_gethostbyname_r=no
38374 fi
38375
38376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38377       conftest$ac_exeext conftest.$ac_ext
38378 fi
38379 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38380 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38381 if test $ac_cv_func_gethostbyname_r = yes; then
38382   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38383 echo "${ECHO_T}using libc's resolver" >&6; }
38384 else
38385
38386 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38387 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38388 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38389   echo $ECHO_N "(cached) $ECHO_C" >&6
38390 else
38391   ac_check_lib_save_LIBS=$LIBS
38392 LIBS="-lnsl  $LIBS"
38393 cat >conftest.$ac_ext <<_ACEOF
38394 /* confdefs.h.  */
38395 _ACEOF
38396 cat confdefs.h >>conftest.$ac_ext
38397 cat >>conftest.$ac_ext <<_ACEOF
38398 /* end confdefs.h.  */
38399
38400 /* Override any GCC internal prototype to avoid an error.
38401    Use char because int might match the return type of a GCC
38402    builtin and then its argument prototype would still apply.  */
38403 #ifdef __cplusplus
38404 extern "C"
38405 #endif
38406 char gethostbyname_r ();
38407 int
38408 main ()
38409 {
38410 return gethostbyname_r ();
38411   ;
38412   return 0;
38413 }
38414 _ACEOF
38415 rm -f conftest.$ac_objext conftest$ac_exeext
38416 if { (ac_try="$ac_link"
38417 case "(($ac_try" in
38418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38419   *) ac_try_echo=$ac_try;;
38420 esac
38421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38422   (eval "$ac_link") 2>conftest.er1
38423   ac_status=$?
38424   grep -v '^ *+' conftest.er1 >conftest.err
38425   rm -f conftest.er1
38426   cat conftest.err >&5
38427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428   (exit $ac_status); } && {
38429          test -z "$ac_c_werror_flag" ||
38430          test ! -s conftest.err
38431        } && test -s conftest$ac_exeext &&
38432        $as_test_x conftest$ac_exeext; then
38433   ac_cv_lib_nsl_gethostbyname_r=yes
38434 else
38435   echo "$as_me: failed program was:" >&5
38436 sed 's/^/| /' conftest.$ac_ext >&5
38437
38438         ac_cv_lib_nsl_gethostbyname_r=no
38439 fi
38440
38441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38442       conftest$ac_exeext conftest.$ac_ext
38443 LIBS=$ac_check_lib_save_LIBS
38444 fi
38445 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38446 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38447 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38448   cat >>confdefs.h <<_ACEOF
38449 #define HAVE_LIBNSL 1
38450 _ACEOF
38451
38452   LIBS="-lnsl $LIBS"
38453
38454 fi
38455
38456
38457 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38458 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38459 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38460   echo $ECHO_N "(cached) $ECHO_C" >&6
38461 else
38462   ac_check_lib_save_LIBS=$LIBS
38463 LIBS="-lresolv  $LIBS"
38464 cat >conftest.$ac_ext <<_ACEOF
38465 /* confdefs.h.  */
38466 _ACEOF
38467 cat confdefs.h >>conftest.$ac_ext
38468 cat >>conftest.$ac_ext <<_ACEOF
38469 /* end confdefs.h.  */
38470
38471 /* Override any GCC internal prototype to avoid an error.
38472    Use char because int might match the return type of a GCC
38473    builtin and then its argument prototype would still apply.  */
38474 #ifdef __cplusplus
38475 extern "C"
38476 #endif
38477 char gethostbyname_r ();
38478 int
38479 main ()
38480 {
38481 return gethostbyname_r ();
38482   ;
38483   return 0;
38484 }
38485 _ACEOF
38486 rm -f conftest.$ac_objext conftest$ac_exeext
38487 if { (ac_try="$ac_link"
38488 case "(($ac_try" in
38489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38490   *) ac_try_echo=$ac_try;;
38491 esac
38492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38493   (eval "$ac_link") 2>conftest.er1
38494   ac_status=$?
38495   grep -v '^ *+' conftest.er1 >conftest.err
38496   rm -f conftest.er1
38497   cat conftest.err >&5
38498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499   (exit $ac_status); } && {
38500          test -z "$ac_c_werror_flag" ||
38501          test ! -s conftest.err
38502        } && test -s conftest$ac_exeext &&
38503        $as_test_x conftest$ac_exeext; then
38504   ac_cv_lib_resolv_gethostbyname_r=yes
38505 else
38506   echo "$as_me: failed program was:" >&5
38507 sed 's/^/| /' conftest.$ac_ext >&5
38508
38509         ac_cv_lib_resolv_gethostbyname_r=no
38510 fi
38511
38512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38513       conftest$ac_exeext conftest.$ac_ext
38514 LIBS=$ac_check_lib_save_LIBS
38515 fi
38516 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38517 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38518 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38519   cat >>confdefs.h <<_ACEOF
38520 #define HAVE_LIBRESOLV 1
38521 _ACEOF
38522
38523   LIBS="-lresolv $LIBS"
38524
38525 fi
38526
38527 fi
38528
38529
38530
38531 for ac_func in inet_pton
38532 do
38533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38537   echo $ECHO_N "(cached) $ECHO_C" >&6
38538 else
38539   cat >conftest.$ac_ext <<_ACEOF
38540 /* confdefs.h.  */
38541 _ACEOF
38542 cat confdefs.h >>conftest.$ac_ext
38543 cat >>conftest.$ac_ext <<_ACEOF
38544 /* end confdefs.h.  */
38545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38547 #define $ac_func innocuous_$ac_func
38548
38549 /* System header to define __stub macros and hopefully few prototypes,
38550     which can conflict with char $ac_func (); below.
38551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38552     <limits.h> exists even on freestanding compilers.  */
38553
38554 #ifdef __STDC__
38555 # include <limits.h>
38556 #else
38557 # include <assert.h>
38558 #endif
38559
38560 #undef $ac_func
38561
38562 /* Override any GCC internal prototype to avoid an error.
38563    Use char because int might match the return type of a GCC
38564    builtin and then its argument prototype would still apply.  */
38565 #ifdef __cplusplus
38566 extern "C"
38567 #endif
38568 char $ac_func ();
38569 /* The GNU C library defines this for functions which it implements
38570     to always fail with ENOSYS.  Some functions are actually named
38571     something starting with __ and the normal name is an alias.  */
38572 #if defined __stub_$ac_func || defined __stub___$ac_func
38573 choke me
38574 #endif
38575
38576 int
38577 main ()
38578 {
38579 return $ac_func ();
38580   ;
38581   return 0;
38582 }
38583 _ACEOF
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (ac_try="$ac_link"
38586 case "(($ac_try" in
38587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588   *) ac_try_echo=$ac_try;;
38589 esac
38590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591   (eval "$ac_link") 2>conftest.er1
38592   ac_status=$?
38593   grep -v '^ *+' conftest.er1 >conftest.err
38594   rm -f conftest.er1
38595   cat conftest.err >&5
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); } && {
38598          test -z "$ac_c_werror_flag" ||
38599          test ! -s conftest.err
38600        } && test -s conftest$ac_exeext &&
38601        $as_test_x conftest$ac_exeext; then
38602   eval "$as_ac_var=yes"
38603 else
38604   echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38606
38607         eval "$as_ac_var=no"
38608 fi
38609
38610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38611       conftest$ac_exeext conftest.$ac_ext
38612 fi
38613 ac_res=`eval echo '${'$as_ac_var'}'`
38614                { echo "$as_me:$LINENO: result: $ac_res" >&5
38615 echo "${ECHO_T}$ac_res" >&6; }
38616 if test `eval echo '${'$as_ac_var'}'` = yes; then
38617   cat >>confdefs.h <<_ACEOF
38618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38619 _ACEOF
38620  cat >>confdefs.h <<\_ACEOF
38621 #define HAVE_INET_PTON 1
38622 _ACEOF
38623
38624 fi
38625 done
38626
38627
38628 for ac_func in inet_ntop
38629 do
38630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38634   echo $ECHO_N "(cached) $ECHO_C" >&6
38635 else
38636   cat >conftest.$ac_ext <<_ACEOF
38637 /* confdefs.h.  */
38638 _ACEOF
38639 cat confdefs.h >>conftest.$ac_ext
38640 cat >>conftest.$ac_ext <<_ACEOF
38641 /* end confdefs.h.  */
38642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38644 #define $ac_func innocuous_$ac_func
38645
38646 /* System header to define __stub macros and hopefully few prototypes,
38647     which can conflict with char $ac_func (); below.
38648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38649     <limits.h> exists even on freestanding compilers.  */
38650
38651 #ifdef __STDC__
38652 # include <limits.h>
38653 #else
38654 # include <assert.h>
38655 #endif
38656
38657 #undef $ac_func
38658
38659 /* Override any GCC internal prototype to avoid an error.
38660    Use char because int might match the return type of a GCC
38661    builtin and then its argument prototype would still apply.  */
38662 #ifdef __cplusplus
38663 extern "C"
38664 #endif
38665 char $ac_func ();
38666 /* The GNU C library defines this for functions which it implements
38667     to always fail with ENOSYS.  Some functions are actually named
38668     something starting with __ and the normal name is an alias.  */
38669 #if defined __stub_$ac_func || defined __stub___$ac_func
38670 choke me
38671 #endif
38672
38673 int
38674 main ()
38675 {
38676 return $ac_func ();
38677   ;
38678   return 0;
38679 }
38680 _ACEOF
38681 rm -f conftest.$ac_objext conftest$ac_exeext
38682 if { (ac_try="$ac_link"
38683 case "(($ac_try" in
38684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38685   *) ac_try_echo=$ac_try;;
38686 esac
38687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38688   (eval "$ac_link") 2>conftest.er1
38689   ac_status=$?
38690   grep -v '^ *+' conftest.er1 >conftest.err
38691   rm -f conftest.er1
38692   cat conftest.err >&5
38693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694   (exit $ac_status); } && {
38695          test -z "$ac_c_werror_flag" ||
38696          test ! -s conftest.err
38697        } && test -s conftest$ac_exeext &&
38698        $as_test_x conftest$ac_exeext; then
38699   eval "$as_ac_var=yes"
38700 else
38701   echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38703
38704         eval "$as_ac_var=no"
38705 fi
38706
38707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38708       conftest$ac_exeext conftest.$ac_ext
38709 fi
38710 ac_res=`eval echo '${'$as_ac_var'}'`
38711                { echo "$as_me:$LINENO: result: $ac_res" >&5
38712 echo "${ECHO_T}$ac_res" >&6; }
38713 if test `eval echo '${'$as_ac_var'}'` = yes; then
38714   cat >>confdefs.h <<_ACEOF
38715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38716 _ACEOF
38717  cat >>confdefs.h <<\_ACEOF
38718 #define HAVE_INET_NTOP 1
38719 _ACEOF
38720
38721 fi
38722 done
38723
38724
38725 for ac_func in gethostbyname2
38726 do
38727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38731   echo $ECHO_N "(cached) $ECHO_C" >&6
38732 else
38733   cat >conftest.$ac_ext <<_ACEOF
38734 /* confdefs.h.  */
38735 _ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h.  */
38739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38741 #define $ac_func innocuous_$ac_func
38742
38743 /* System header to define __stub macros and hopefully few prototypes,
38744     which can conflict with char $ac_func (); below.
38745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38746     <limits.h> exists even on freestanding compilers.  */
38747
38748 #ifdef __STDC__
38749 # include <limits.h>
38750 #else
38751 # include <assert.h>
38752 #endif
38753
38754 #undef $ac_func
38755
38756 /* Override any GCC internal prototype to avoid an error.
38757    Use char because int might match the return type of a GCC
38758    builtin and then its argument prototype would still apply.  */
38759 #ifdef __cplusplus
38760 extern "C"
38761 #endif
38762 char $ac_func ();
38763 /* The GNU C library defines this for functions which it implements
38764     to always fail with ENOSYS.  Some functions are actually named
38765     something starting with __ and the normal name is an alias.  */
38766 #if defined __stub_$ac_func || defined __stub___$ac_func
38767 choke me
38768 #endif
38769
38770 int
38771 main ()
38772 {
38773 return $ac_func ();
38774   ;
38775   return 0;
38776 }
38777 _ACEOF
38778 rm -f conftest.$ac_objext conftest$ac_exeext
38779 if { (ac_try="$ac_link"
38780 case "(($ac_try" in
38781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38782   *) ac_try_echo=$ac_try;;
38783 esac
38784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38785   (eval "$ac_link") 2>conftest.er1
38786   ac_status=$?
38787   grep -v '^ *+' conftest.er1 >conftest.err
38788   rm -f conftest.er1
38789   cat conftest.err >&5
38790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791   (exit $ac_status); } && {
38792          test -z "$ac_c_werror_flag" ||
38793          test ! -s conftest.err
38794        } && test -s conftest$ac_exeext &&
38795        $as_test_x conftest$ac_exeext; then
38796   eval "$as_ac_var=yes"
38797 else
38798   echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38800
38801         eval "$as_ac_var=no"
38802 fi
38803
38804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38805       conftest$ac_exeext conftest.$ac_ext
38806 fi
38807 ac_res=`eval echo '${'$as_ac_var'}'`
38808                { echo "$as_me:$LINENO: result: $ac_res" >&5
38809 echo "${ECHO_T}$ac_res" >&6; }
38810 if test `eval echo '${'$as_ac_var'}'` = yes; then
38811   cat >>confdefs.h <<_ACEOF
38812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38813 _ACEOF
38814  cat >>confdefs.h <<\_ACEOF
38815 #define HAVE_GETHOSTBYNAME2 1
38816 _ACEOF
38817
38818 fi
38819 done
38820
38821
38822 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38823 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38824 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38825   echo $ECHO_N "(cached) $ECHO_C" >&6
38826 else
38827
38828        cat >conftest.$ac_ext <<_ACEOF
38829 /* confdefs.h.  */
38830 _ACEOF
38831 cat confdefs.h >>conftest.$ac_ext
38832 cat >>conftest.$ac_ext <<_ACEOF
38833 /* end confdefs.h.  */
38834
38835               #include <sys/socket.h>
38836
38837 int
38838 main ()
38839 {
38840
38841               struct sockaddr s; s.sa_len;
38842
38843   ;
38844   return 0;
38845 }
38846 _ACEOF
38847 rm -f conftest.$ac_objext
38848 if { (ac_try="$ac_compile"
38849 case "(($ac_try" in
38850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38851   *) ac_try_echo=$ac_try;;
38852 esac
38853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38854   (eval "$ac_compile") 2>conftest.er1
38855   ac_status=$?
38856   grep -v '^ *+' conftest.er1 >conftest.err
38857   rm -f conftest.er1
38858   cat conftest.err >&5
38859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860   (exit $ac_status); } && {
38861          test -z "$ac_c_werror_flag" ||
38862          test ! -s conftest.err
38863        } && test -s conftest.$ac_objext; then
38864
38865              ac_cv_struct_sockaddr_sa_len=yes
38866
38867 else
38868   echo "$as_me: failed program was:" >&5
38869 sed 's/^/| /' conftest.$ac_ext >&5
38870
38871         ac_cv_struct_sockaddr_sa_len=no
38872
38873
38874 fi
38875
38876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38877
38878
38879 fi
38880 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38881 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38882
38883 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38884
38885 cat >>confdefs.h <<\_ACEOF
38886 #define HAVE_SA_LEN 1
38887 _ACEOF
38888
38889 fi
38890
38891
38892 for ac_func in strftime
38893 do
38894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38898   echo $ECHO_N "(cached) $ECHO_C" >&6
38899 else
38900   cat >conftest.$ac_ext <<_ACEOF
38901 /* confdefs.h.  */
38902 _ACEOF
38903 cat confdefs.h >>conftest.$ac_ext
38904 cat >>conftest.$ac_ext <<_ACEOF
38905 /* end confdefs.h.  */
38906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38908 #define $ac_func innocuous_$ac_func
38909
38910 /* System header to define __stub macros and hopefully few prototypes,
38911     which can conflict with char $ac_func (); below.
38912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38913     <limits.h> exists even on freestanding compilers.  */
38914
38915 #ifdef __STDC__
38916 # include <limits.h>
38917 #else
38918 # include <assert.h>
38919 #endif
38920
38921 #undef $ac_func
38922
38923 /* Override any GCC internal prototype to avoid an error.
38924    Use char because int might match the return type of a GCC
38925    builtin and then its argument prototype would still apply.  */
38926 #ifdef __cplusplus
38927 extern "C"
38928 #endif
38929 char $ac_func ();
38930 /* The GNU C library defines this for functions which it implements
38931     to always fail with ENOSYS.  Some functions are actually named
38932     something starting with __ and the normal name is an alias.  */
38933 #if defined __stub_$ac_func || defined __stub___$ac_func
38934 choke me
38935 #endif
38936
38937 int
38938 main ()
38939 {
38940 return $ac_func ();
38941   ;
38942   return 0;
38943 }
38944 _ACEOF
38945 rm -f conftest.$ac_objext conftest$ac_exeext
38946 if { (ac_try="$ac_link"
38947 case "(($ac_try" in
38948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38949   *) ac_try_echo=$ac_try;;
38950 esac
38951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38952   (eval "$ac_link") 2>conftest.er1
38953   ac_status=$?
38954   grep -v '^ *+' conftest.er1 >conftest.err
38955   rm -f conftest.er1
38956   cat conftest.err >&5
38957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958   (exit $ac_status); } && {
38959          test -z "$ac_c_werror_flag" ||
38960          test ! -s conftest.err
38961        } && test -s conftest$ac_exeext &&
38962        $as_test_x conftest$ac_exeext; then
38963   eval "$as_ac_var=yes"
38964 else
38965   echo "$as_me: failed program was:" >&5
38966 sed 's/^/| /' conftest.$ac_ext >&5
38967
38968         eval "$as_ac_var=no"
38969 fi
38970
38971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38972       conftest$ac_exeext conftest.$ac_ext
38973 fi
38974 ac_res=`eval echo '${'$as_ac_var'}'`
38975                { echo "$as_me:$LINENO: result: $ac_res" >&5
38976 echo "${ECHO_T}$ac_res" >&6; }
38977 if test `eval echo '${'$as_ac_var'}'` = yes; then
38978   cat >>confdefs.h <<_ACEOF
38979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38980 _ACEOF
38981
38982 else
38983   # strftime is in -lintl on SCO UNIX.
38984 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38985 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
38986 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38987   echo $ECHO_N "(cached) $ECHO_C" >&6
38988 else
38989   ac_check_lib_save_LIBS=$LIBS
38990 LIBS="-lintl  $LIBS"
38991 cat >conftest.$ac_ext <<_ACEOF
38992 /* confdefs.h.  */
38993 _ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h.  */
38997
38998 /* Override any GCC internal prototype to avoid an error.
38999    Use char because int might match the return type of a GCC
39000    builtin and then its argument prototype would still apply.  */
39001 #ifdef __cplusplus
39002 extern "C"
39003 #endif
39004 char strftime ();
39005 int
39006 main ()
39007 {
39008 return strftime ();
39009   ;
39010   return 0;
39011 }
39012 _ACEOF
39013 rm -f conftest.$ac_objext conftest$ac_exeext
39014 if { (ac_try="$ac_link"
39015 case "(($ac_try" in
39016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39017   *) ac_try_echo=$ac_try;;
39018 esac
39019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39020   (eval "$ac_link") 2>conftest.er1
39021   ac_status=$?
39022   grep -v '^ *+' conftest.er1 >conftest.err
39023   rm -f conftest.er1
39024   cat conftest.err >&5
39025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39026   (exit $ac_status); } && {
39027          test -z "$ac_c_werror_flag" ||
39028          test ! -s conftest.err
39029        } && test -s conftest$ac_exeext &&
39030        $as_test_x conftest$ac_exeext; then
39031   ac_cv_lib_intl_strftime=yes
39032 else
39033   echo "$as_me: failed program was:" >&5
39034 sed 's/^/| /' conftest.$ac_ext >&5
39035
39036         ac_cv_lib_intl_strftime=no
39037 fi
39038
39039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39040       conftest$ac_exeext conftest.$ac_ext
39041 LIBS=$ac_check_lib_save_LIBS
39042 fi
39043 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39044 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39045 if test $ac_cv_lib_intl_strftime = yes; then
39046   cat >>confdefs.h <<\_ACEOF
39047 #define HAVE_STRFTIME 1
39048 _ACEOF
39049
39050 LIBS="-lintl $LIBS"
39051 fi
39052
39053 fi
39054 done
39055
39056
39057 for ac_func in vprintf
39058 do
39059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39063   echo $ECHO_N "(cached) $ECHO_C" >&6
39064 else
39065   cat >conftest.$ac_ext <<_ACEOF
39066 /* confdefs.h.  */
39067 _ACEOF
39068 cat confdefs.h >>conftest.$ac_ext
39069 cat >>conftest.$ac_ext <<_ACEOF
39070 /* end confdefs.h.  */
39071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39073 #define $ac_func innocuous_$ac_func
39074
39075 /* System header to define __stub macros and hopefully few prototypes,
39076     which can conflict with char $ac_func (); below.
39077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39078     <limits.h> exists even on freestanding compilers.  */
39079
39080 #ifdef __STDC__
39081 # include <limits.h>
39082 #else
39083 # include <assert.h>
39084 #endif
39085
39086 #undef $ac_func
39087
39088 /* Override any GCC internal prototype to avoid an error.
39089    Use char because int might match the return type of a GCC
39090    builtin and then its argument prototype would still apply.  */
39091 #ifdef __cplusplus
39092 extern "C"
39093 #endif
39094 char $ac_func ();
39095 /* The GNU C library defines this for functions which it implements
39096     to always fail with ENOSYS.  Some functions are actually named
39097     something starting with __ and the normal name is an alias.  */
39098 #if defined __stub_$ac_func || defined __stub___$ac_func
39099 choke me
39100 #endif
39101
39102 int
39103 main ()
39104 {
39105 return $ac_func ();
39106   ;
39107   return 0;
39108 }
39109 _ACEOF
39110 rm -f conftest.$ac_objext conftest$ac_exeext
39111 if { (ac_try="$ac_link"
39112 case "(($ac_try" in
39113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39114   *) ac_try_echo=$ac_try;;
39115 esac
39116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39117   (eval "$ac_link") 2>conftest.er1
39118   ac_status=$?
39119   grep -v '^ *+' conftest.er1 >conftest.err
39120   rm -f conftest.er1
39121   cat conftest.err >&5
39122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123   (exit $ac_status); } && {
39124          test -z "$ac_c_werror_flag" ||
39125          test ! -s conftest.err
39126        } && test -s conftest$ac_exeext &&
39127        $as_test_x conftest$ac_exeext; then
39128   eval "$as_ac_var=yes"
39129 else
39130   echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39132
39133         eval "$as_ac_var=no"
39134 fi
39135
39136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39137       conftest$ac_exeext conftest.$ac_ext
39138 fi
39139 ac_res=`eval echo '${'$as_ac_var'}'`
39140                { echo "$as_me:$LINENO: result: $ac_res" >&5
39141 echo "${ECHO_T}$ac_res" >&6; }
39142 if test `eval echo '${'$as_ac_var'}'` = yes; then
39143   cat >>confdefs.h <<_ACEOF
39144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39145 _ACEOF
39146
39147 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39148 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39149 if test "${ac_cv_func__doprnt+set}" = set; then
39150   echo $ECHO_N "(cached) $ECHO_C" >&6
39151 else
39152   cat >conftest.$ac_ext <<_ACEOF
39153 /* confdefs.h.  */
39154 _ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h.  */
39158 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39160 #define _doprnt innocuous__doprnt
39161
39162 /* System header to define __stub macros and hopefully few prototypes,
39163     which can conflict with char _doprnt (); below.
39164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39165     <limits.h> exists even on freestanding compilers.  */
39166
39167 #ifdef __STDC__
39168 # include <limits.h>
39169 #else
39170 # include <assert.h>
39171 #endif
39172
39173 #undef _doprnt
39174
39175 /* Override any GCC internal prototype to avoid an error.
39176    Use char because int might match the return type of a GCC
39177    builtin and then its argument prototype would still apply.  */
39178 #ifdef __cplusplus
39179 extern "C"
39180 #endif
39181 char _doprnt ();
39182 /* The GNU C library defines this for functions which it implements
39183     to always fail with ENOSYS.  Some functions are actually named
39184     something starting with __ and the normal name is an alias.  */
39185 #if defined __stub__doprnt || defined __stub____doprnt
39186 choke me
39187 #endif
39188
39189 int
39190 main ()
39191 {
39192 return _doprnt ();
39193   ;
39194   return 0;
39195 }
39196 _ACEOF
39197 rm -f conftest.$ac_objext conftest$ac_exeext
39198 if { (ac_try="$ac_link"
39199 case "(($ac_try" in
39200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39201   *) ac_try_echo=$ac_try;;
39202 esac
39203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39204   (eval "$ac_link") 2>conftest.er1
39205   ac_status=$?
39206   grep -v '^ *+' conftest.er1 >conftest.err
39207   rm -f conftest.er1
39208   cat conftest.err >&5
39209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210   (exit $ac_status); } && {
39211          test -z "$ac_c_werror_flag" ||
39212          test ! -s conftest.err
39213        } && test -s conftest$ac_exeext &&
39214        $as_test_x conftest$ac_exeext; then
39215   ac_cv_func__doprnt=yes
39216 else
39217   echo "$as_me: failed program was:" >&5
39218 sed 's/^/| /' conftest.$ac_ext >&5
39219
39220         ac_cv_func__doprnt=no
39221 fi
39222
39223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39224       conftest$ac_exeext conftest.$ac_ext
39225 fi
39226 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39227 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39228 if test $ac_cv_func__doprnt = yes; then
39229
39230 cat >>confdefs.h <<\_ACEOF
39231 #define HAVE_DOPRNT 1
39232 _ACEOF
39233
39234 fi
39235
39236 fi
39237 done
39238
39239
39240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39241 # for constant arguments.  Useless!
39242 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39243 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39244 if test "${ac_cv_working_alloca_h+set}" = set; then
39245   echo $ECHO_N "(cached) $ECHO_C" >&6
39246 else
39247   cat >conftest.$ac_ext <<_ACEOF
39248 /* confdefs.h.  */
39249 _ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h.  */
39253 #include <alloca.h>
39254 int
39255 main ()
39256 {
39257 char *p = (char *) alloca (2 * sizeof (int));
39258                           if (p) return 0;
39259   ;
39260   return 0;
39261 }
39262 _ACEOF
39263 rm -f conftest.$ac_objext conftest$ac_exeext
39264 if { (ac_try="$ac_link"
39265 case "(($ac_try" in
39266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39267   *) ac_try_echo=$ac_try;;
39268 esac
39269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39270   (eval "$ac_link") 2>conftest.er1
39271   ac_status=$?
39272   grep -v '^ *+' conftest.er1 >conftest.err
39273   rm -f conftest.er1
39274   cat conftest.err >&5
39275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276   (exit $ac_status); } && {
39277          test -z "$ac_c_werror_flag" ||
39278          test ! -s conftest.err
39279        } && test -s conftest$ac_exeext &&
39280        $as_test_x conftest$ac_exeext; then
39281   ac_cv_working_alloca_h=yes
39282 else
39283   echo "$as_me: failed program was:" >&5
39284 sed 's/^/| /' conftest.$ac_ext >&5
39285
39286         ac_cv_working_alloca_h=no
39287 fi
39288
39289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39290       conftest$ac_exeext conftest.$ac_ext
39291 fi
39292 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39293 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39294 if test $ac_cv_working_alloca_h = yes; then
39295
39296 cat >>confdefs.h <<\_ACEOF
39297 #define HAVE_ALLOCA_H 1
39298 _ACEOF
39299
39300 fi
39301
39302 { echo "$as_me:$LINENO: checking for alloca" >&5
39303 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39304 if test "${ac_cv_func_alloca_works+set}" = set; then
39305   echo $ECHO_N "(cached) $ECHO_C" >&6
39306 else
39307   cat >conftest.$ac_ext <<_ACEOF
39308 /* confdefs.h.  */
39309 _ACEOF
39310 cat confdefs.h >>conftest.$ac_ext
39311 cat >>conftest.$ac_ext <<_ACEOF
39312 /* end confdefs.h.  */
39313 #ifdef __GNUC__
39314 # define alloca __builtin_alloca
39315 #else
39316 # ifdef _MSC_VER
39317 #  include <malloc.h>
39318 #  define alloca _alloca
39319 # else
39320 #  ifdef HAVE_ALLOCA_H
39321 #   include <alloca.h>
39322 #  else
39323 #   ifdef _AIX
39324  #pragma alloca
39325 #   else
39326 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39327 char *alloca ();
39328 #    endif
39329 #   endif
39330 #  endif
39331 # endif
39332 #endif
39333
39334 int
39335 main ()
39336 {
39337 char *p = (char *) alloca (1);
39338                                     if (p) return 0;
39339   ;
39340   return 0;
39341 }
39342 _ACEOF
39343 rm -f conftest.$ac_objext conftest$ac_exeext
39344 if { (ac_try="$ac_link"
39345 case "(($ac_try" in
39346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39347   *) ac_try_echo=$ac_try;;
39348 esac
39349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39350   (eval "$ac_link") 2>conftest.er1
39351   ac_status=$?
39352   grep -v '^ *+' conftest.er1 >conftest.err
39353   rm -f conftest.er1
39354   cat conftest.err >&5
39355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356   (exit $ac_status); } && {
39357          test -z "$ac_c_werror_flag" ||
39358          test ! -s conftest.err
39359        } && test -s conftest$ac_exeext &&
39360        $as_test_x conftest$ac_exeext; then
39361   ac_cv_func_alloca_works=yes
39362 else
39363   echo "$as_me: failed program was:" >&5
39364 sed 's/^/| /' conftest.$ac_ext >&5
39365
39366         ac_cv_func_alloca_works=no
39367 fi
39368
39369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39370       conftest$ac_exeext conftest.$ac_ext
39371 fi
39372 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39373 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39374
39375 if test $ac_cv_func_alloca_works = yes; then
39376
39377 cat >>confdefs.h <<\_ACEOF
39378 #define HAVE_ALLOCA 1
39379 _ACEOF
39380
39381 else
39382   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39383 # that cause trouble.  Some versions do not even contain alloca or
39384 # contain a buggy version.  If you still want to use their alloca,
39385 # use ar to extract alloca.o from them instead of compiling alloca.c.
39386
39387 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39388
39389 cat >>confdefs.h <<\_ACEOF
39390 #define C_ALLOCA 1
39391 _ACEOF
39392
39393
39394 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39395 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39396 if test "${ac_cv_os_cray+set}" = set; then
39397   echo $ECHO_N "(cached) $ECHO_C" >&6
39398 else
39399   cat >conftest.$ac_ext <<_ACEOF
39400 /* confdefs.h.  */
39401 _ACEOF
39402 cat confdefs.h >>conftest.$ac_ext
39403 cat >>conftest.$ac_ext <<_ACEOF
39404 /* end confdefs.h.  */
39405 #if defined CRAY && ! defined CRAY2
39406 webecray
39407 #else
39408 wenotbecray
39409 #endif
39410
39411 _ACEOF
39412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39413   $EGREP "webecray" >/dev/null 2>&1; then
39414   ac_cv_os_cray=yes
39415 else
39416   ac_cv_os_cray=no
39417 fi
39418 rm -f conftest*
39419
39420 fi
39421 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39422 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39423 if test $ac_cv_os_cray = yes; then
39424   for ac_func in _getb67 GETB67 getb67; do
39425     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39429   echo $ECHO_N "(cached) $ECHO_C" >&6
39430 else
39431   cat >conftest.$ac_ext <<_ACEOF
39432 /* confdefs.h.  */
39433 _ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h.  */
39437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39439 #define $ac_func innocuous_$ac_func
39440
39441 /* System header to define __stub macros and hopefully few prototypes,
39442     which can conflict with char $ac_func (); below.
39443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39444     <limits.h> exists even on freestanding compilers.  */
39445
39446 #ifdef __STDC__
39447 # include <limits.h>
39448 #else
39449 # include <assert.h>
39450 #endif
39451
39452 #undef $ac_func
39453
39454 /* Override any GCC internal prototype to avoid an error.
39455    Use char because int might match the return type of a GCC
39456    builtin and then its argument prototype would still apply.  */
39457 #ifdef __cplusplus
39458 extern "C"
39459 #endif
39460 char $ac_func ();
39461 /* The GNU C library defines this for functions which it implements
39462     to always fail with ENOSYS.  Some functions are actually named
39463     something starting with __ and the normal name is an alias.  */
39464 #if defined __stub_$ac_func || defined __stub___$ac_func
39465 choke me
39466 #endif
39467
39468 int
39469 main ()
39470 {
39471 return $ac_func ();
39472   ;
39473   return 0;
39474 }
39475 _ACEOF
39476 rm -f conftest.$ac_objext conftest$ac_exeext
39477 if { (ac_try="$ac_link"
39478 case "(($ac_try" in
39479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480   *) ac_try_echo=$ac_try;;
39481 esac
39482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39483   (eval "$ac_link") 2>conftest.er1
39484   ac_status=$?
39485   grep -v '^ *+' conftest.er1 >conftest.err
39486   rm -f conftest.er1
39487   cat conftest.err >&5
39488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489   (exit $ac_status); } && {
39490          test -z "$ac_c_werror_flag" ||
39491          test ! -s conftest.err
39492        } && test -s conftest$ac_exeext &&
39493        $as_test_x conftest$ac_exeext; then
39494   eval "$as_ac_var=yes"
39495 else
39496   echo "$as_me: failed program was:" >&5
39497 sed 's/^/| /' conftest.$ac_ext >&5
39498
39499         eval "$as_ac_var=no"
39500 fi
39501
39502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39503       conftest$ac_exeext conftest.$ac_ext
39504 fi
39505 ac_res=`eval echo '${'$as_ac_var'}'`
39506                { echo "$as_me:$LINENO: result: $ac_res" >&5
39507 echo "${ECHO_T}$ac_res" >&6; }
39508 if test `eval echo '${'$as_ac_var'}'` = yes; then
39509
39510 cat >>confdefs.h <<_ACEOF
39511 #define CRAY_STACKSEG_END $ac_func
39512 _ACEOF
39513
39514     break
39515 fi
39516
39517   done
39518 fi
39519
39520 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39521 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39522 if test "${ac_cv_c_stack_direction+set}" = set; then
39523   echo $ECHO_N "(cached) $ECHO_C" >&6
39524 else
39525   if test "$cross_compiling" = yes; then
39526   ac_cv_c_stack_direction=0
39527 else
39528   cat >conftest.$ac_ext <<_ACEOF
39529 /* confdefs.h.  */
39530 _ACEOF
39531 cat confdefs.h >>conftest.$ac_ext
39532 cat >>conftest.$ac_ext <<_ACEOF
39533 /* end confdefs.h.  */
39534 $ac_includes_default
39535 int
39536 find_stack_direction ()
39537 {
39538   static char *addr = 0;
39539   auto char dummy;
39540   if (addr == 0)
39541     {
39542       addr = &dummy;
39543       return find_stack_direction ();
39544     }
39545   else
39546     return (&dummy > addr) ? 1 : -1;
39547 }
39548
39549 int
39550 main ()
39551 {
39552   return find_stack_direction () < 0;
39553 }
39554 _ACEOF
39555 rm -f conftest$ac_exeext
39556 if { (ac_try="$ac_link"
39557 case "(($ac_try" in
39558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39559   *) ac_try_echo=$ac_try;;
39560 esac
39561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39562   (eval "$ac_link") 2>&5
39563   ac_status=$?
39564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39566   { (case "(($ac_try" in
39567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39568   *) ac_try_echo=$ac_try;;
39569 esac
39570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39571   (eval "$ac_try") 2>&5
39572   ac_status=$?
39573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39574   (exit $ac_status); }; }; then
39575   ac_cv_c_stack_direction=1
39576 else
39577   echo "$as_me: program exited with status $ac_status" >&5
39578 echo "$as_me: failed program was:" >&5
39579 sed 's/^/| /' conftest.$ac_ext >&5
39580
39581 ( exit $ac_status )
39582 ac_cv_c_stack_direction=-1
39583 fi
39584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39585 fi
39586
39587
39588 fi
39589 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39590 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39591
39592 cat >>confdefs.h <<_ACEOF
39593 #define STACK_DIRECTION $ac_cv_c_stack_direction
39594 _ACEOF
39595
39596
39597 fi
39598
39599 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39600 # -lseq on Dynix/PTX, -lgen on Unixware.
39601 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39602 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39603 if test "${ac_cv_search_getmntent+set}" = set; then
39604   echo $ECHO_N "(cached) $ECHO_C" >&6
39605 else
39606   ac_func_search_save_LIBS=$LIBS
39607 cat >conftest.$ac_ext <<_ACEOF
39608 /* confdefs.h.  */
39609 _ACEOF
39610 cat confdefs.h >>conftest.$ac_ext
39611 cat >>conftest.$ac_ext <<_ACEOF
39612 /* end confdefs.h.  */
39613
39614 /* Override any GCC internal prototype to avoid an error.
39615    Use char because int might match the return type of a GCC
39616    builtin and then its argument prototype would still apply.  */
39617 #ifdef __cplusplus
39618 extern "C"
39619 #endif
39620 char getmntent ();
39621 int
39622 main ()
39623 {
39624 return getmntent ();
39625   ;
39626   return 0;
39627 }
39628 _ACEOF
39629 for ac_lib in '' sun seq gen; do
39630   if test -z "$ac_lib"; then
39631     ac_res="none required"
39632   else
39633     ac_res=-l$ac_lib
39634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39635   fi
39636   rm -f conftest.$ac_objext conftest$ac_exeext
39637 if { (ac_try="$ac_link"
39638 case "(($ac_try" in
39639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39640   *) ac_try_echo=$ac_try;;
39641 esac
39642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39643   (eval "$ac_link") 2>conftest.er1
39644   ac_status=$?
39645   grep -v '^ *+' conftest.er1 >conftest.err
39646   rm -f conftest.er1
39647   cat conftest.err >&5
39648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649   (exit $ac_status); } && {
39650          test -z "$ac_c_werror_flag" ||
39651          test ! -s conftest.err
39652        } && test -s conftest$ac_exeext &&
39653        $as_test_x conftest$ac_exeext; then
39654   ac_cv_search_getmntent=$ac_res
39655 else
39656   echo "$as_me: failed program was:" >&5
39657 sed 's/^/| /' conftest.$ac_ext >&5
39658
39659
39660 fi
39661
39662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39663       conftest$ac_exeext
39664   if test "${ac_cv_search_getmntent+set}" = set; then
39665   break
39666 fi
39667 done
39668 if test "${ac_cv_search_getmntent+set}" = set; then
39669   :
39670 else
39671   ac_cv_search_getmntent=no
39672 fi
39673 rm conftest.$ac_ext
39674 LIBS=$ac_func_search_save_LIBS
39675 fi
39676 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39677 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39678 ac_res=$ac_cv_search_getmntent
39679 if test "$ac_res" != no; then
39680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39681   ac_cv_func_getmntent=yes
39682
39683 cat >>confdefs.h <<\_ACEOF
39684 #define HAVE_GETMNTENT 1
39685 _ACEOF
39686
39687 else
39688   ac_cv_func_getmntent=no
39689 fi
39690
39691
39692 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39693 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39694 if test "${ac_cv_func_closedir_void+set}" = set; then
39695   echo $ECHO_N "(cached) $ECHO_C" >&6
39696 else
39697   if test "$cross_compiling" = yes; then
39698   ac_cv_func_closedir_void=yes
39699 else
39700   cat >conftest.$ac_ext <<_ACEOF
39701 /* confdefs.h.  */
39702 _ACEOF
39703 cat confdefs.h >>conftest.$ac_ext
39704 cat >>conftest.$ac_ext <<_ACEOF
39705 /* end confdefs.h.  */
39706 $ac_includes_default
39707 #include <$ac_header_dirent>
39708 #ifndef __cplusplus
39709 int closedir ();
39710 #endif
39711
39712 int
39713 main ()
39714 {
39715 return closedir (opendir (".")) != 0;
39716   ;
39717   return 0;
39718 }
39719 _ACEOF
39720 rm -f conftest$ac_exeext
39721 if { (ac_try="$ac_link"
39722 case "(($ac_try" in
39723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39724   *) ac_try_echo=$ac_try;;
39725 esac
39726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39727   (eval "$ac_link") 2>&5
39728   ac_status=$?
39729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39731   { (case "(($ac_try" in
39732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39733   *) ac_try_echo=$ac_try;;
39734 esac
39735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39736   (eval "$ac_try") 2>&5
39737   ac_status=$?
39738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739   (exit $ac_status); }; }; then
39740   ac_cv_func_closedir_void=no
39741 else
39742   echo "$as_me: program exited with status $ac_status" >&5
39743 echo "$as_me: failed program was:" >&5
39744 sed 's/^/| /' conftest.$ac_ext >&5
39745
39746 ( exit $ac_status )
39747 ac_cv_func_closedir_void=yes
39748 fi
39749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39750 fi
39751
39752
39753 fi
39754 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39755 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39756 if test $ac_cv_func_closedir_void = yes; then
39757
39758 cat >>confdefs.h <<\_ACEOF
39759 #define CLOSEDIR_VOID 1
39760 _ACEOF
39761
39762 fi
39763
39764 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39765 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39766 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39767   echo $ECHO_N "(cached) $ECHO_C" >&6
39768 else
39769   if test "$cross_compiling" = yes; then
39770   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39771 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39772    { (exit 1); exit 1; }; }
39773 else
39774   cat >conftest.$ac_ext <<_ACEOF
39775 /* confdefs.h.  */
39776 _ACEOF
39777 cat confdefs.h >>conftest.$ac_ext
39778 cat >>conftest.$ac_ext <<_ACEOF
39779 /* end confdefs.h.  */
39780 $ac_includes_default
39781 int
39782 main ()
39783 {
39784 /* If this system has a BSD-style setpgrp which takes arguments,
39785   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39786   exit successfully. */
39787   return setpgrp (1,1) != -1;
39788   ;
39789   return 0;
39790 }
39791 _ACEOF
39792 rm -f conftest$ac_exeext
39793 if { (ac_try="$ac_link"
39794 case "(($ac_try" in
39795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39796   *) ac_try_echo=$ac_try;;
39797 esac
39798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39799   (eval "$ac_link") 2>&5
39800   ac_status=$?
39801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39803   { (case "(($ac_try" in
39804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39805   *) ac_try_echo=$ac_try;;
39806 esac
39807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39808   (eval "$ac_try") 2>&5
39809   ac_status=$?
39810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811   (exit $ac_status); }; }; then
39812   ac_cv_func_setpgrp_void=no
39813 else
39814   echo "$as_me: program exited with status $ac_status" >&5
39815 echo "$as_me: failed program was:" >&5
39816 sed 's/^/| /' conftest.$ac_ext >&5
39817
39818 ( exit $ac_status )
39819 ac_cv_func_setpgrp_void=yes
39820 fi
39821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39822 fi
39823
39824
39825 fi
39826 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39827 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39828 if test $ac_cv_func_setpgrp_void = yes; then
39829
39830 cat >>confdefs.h <<\_ACEOF
39831 #define SETPGRP_VOID 1
39832 _ACEOF
39833
39834 fi
39835              # AC_FUNC_FNMATCH    dnl use local version
39836
39837 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39838 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39839 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39840   echo $ECHO_N "(cached) $ECHO_C" >&6
39841 else
39842   ac_check_lib_save_LIBS=$LIBS
39843 LIBS="-lintl  $LIBS"
39844 cat >conftest.$ac_ext <<_ACEOF
39845 /* confdefs.h.  */
39846 _ACEOF
39847 cat confdefs.h >>conftest.$ac_ext
39848 cat >>conftest.$ac_ext <<_ACEOF
39849 /* end confdefs.h.  */
39850
39851 /* Override any GCC internal prototype to avoid an error.
39852    Use char because int might match the return type of a GCC
39853    builtin and then its argument prototype would still apply.  */
39854 #ifdef __cplusplus
39855 extern "C"
39856 #endif
39857 char gettext ();
39858 int
39859 main ()
39860 {
39861 return gettext ();
39862   ;
39863   return 0;
39864 }
39865 _ACEOF
39866 rm -f conftest.$ac_objext conftest$ac_exeext
39867 if { (ac_try="$ac_link"
39868 case "(($ac_try" in
39869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39870   *) ac_try_echo=$ac_try;;
39871 esac
39872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39873   (eval "$ac_link") 2>conftest.er1
39874   ac_status=$?
39875   grep -v '^ *+' conftest.er1 >conftest.err
39876   rm -f conftest.er1
39877   cat conftest.err >&5
39878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879   (exit $ac_status); } && {
39880          test -z "$ac_c_werror_flag" ||
39881          test ! -s conftest.err
39882        } && test -s conftest$ac_exeext &&
39883        $as_test_x conftest$ac_exeext; then
39884   ac_cv_lib_intl_gettext=yes
39885 else
39886   echo "$as_me: failed program was:" >&5
39887 sed 's/^/| /' conftest.$ac_ext >&5
39888
39889         ac_cv_lib_intl_gettext=no
39890 fi
39891
39892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39893       conftest$ac_exeext conftest.$ac_ext
39894 LIBS=$ac_check_lib_save_LIBS
39895 fi
39896 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39897 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39898 if test $ac_cv_lib_intl_gettext = yes; then
39899   LIBS="$LIBS -lintl"
39900 fi
39901
39902
39903
39904 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39905 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39906 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39907   echo $ECHO_N "(cached) $ECHO_C" >&6
39908 else
39909   ac_check_lib_save_LIBS=$LIBS
39910 LIBS="-lsun  $LIBS"
39911 cat >conftest.$ac_ext <<_ACEOF
39912 /* confdefs.h.  */
39913 _ACEOF
39914 cat confdefs.h >>conftest.$ac_ext
39915 cat >>conftest.$ac_ext <<_ACEOF
39916 /* end confdefs.h.  */
39917
39918 /* Override any GCC internal prototype to avoid an error.
39919    Use char because int might match the return type of a GCC
39920    builtin and then its argument prototype would still apply.  */
39921 #ifdef __cplusplus
39922 extern "C"
39923 #endif
39924 char getpwnam ();
39925 int
39926 main ()
39927 {
39928 return getpwnam ();
39929   ;
39930   return 0;
39931 }
39932 _ACEOF
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (ac_try="$ac_link"
39935 case "(($ac_try" in
39936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937   *) ac_try_echo=$ac_try;;
39938 esac
39939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39940   (eval "$ac_link") 2>conftest.er1
39941   ac_status=$?
39942   grep -v '^ *+' conftest.er1 >conftest.err
39943   rm -f conftest.er1
39944   cat conftest.err >&5
39945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946   (exit $ac_status); } && {
39947          test -z "$ac_c_werror_flag" ||
39948          test ! -s conftest.err
39949        } && test -s conftest$ac_exeext &&
39950        $as_test_x conftest$ac_exeext; then
39951   ac_cv_lib_sun_getpwnam=yes
39952 else
39953   echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39955
39956         ac_cv_lib_sun_getpwnam=no
39957 fi
39958
39959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39960       conftest$ac_exeext conftest.$ac_ext
39961 LIBS=$ac_check_lib_save_LIBS
39962 fi
39963 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39964 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39965 if test $ac_cv_lib_sun_getpwnam = yes; then
39966   cat >>confdefs.h <<_ACEOF
39967 #define HAVE_LIBSUN 1
39968 _ACEOF
39969
39970   LIBS="-lsun $LIBS"
39971
39972 fi
39973
39974
39975
39976 for ac_header in zlib.h
39977 do
39978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
39981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39983   echo $ECHO_N "(cached) $ECHO_C" >&6
39984 fi
39985 ac_res=`eval echo '${'$as_ac_Header'}'`
39986                { echo "$as_me:$LINENO: result: $ac_res" >&5
39987 echo "${ECHO_T}$ac_res" >&6; }
39988 else
39989   # Is the header compilable?
39990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39992 cat >conftest.$ac_ext <<_ACEOF
39993 /* confdefs.h.  */
39994 _ACEOF
39995 cat confdefs.h >>conftest.$ac_ext
39996 cat >>conftest.$ac_ext <<_ACEOF
39997 /* end confdefs.h.  */
39998 $ac_includes_default
39999 #include <$ac_header>
40000 _ACEOF
40001 rm -f conftest.$ac_objext
40002 if { (ac_try="$ac_compile"
40003 case "(($ac_try" in
40004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40005   *) ac_try_echo=$ac_try;;
40006 esac
40007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40008   (eval "$ac_compile") 2>conftest.er1
40009   ac_status=$?
40010   grep -v '^ *+' conftest.er1 >conftest.err
40011   rm -f conftest.er1
40012   cat conftest.err >&5
40013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014   (exit $ac_status); } && {
40015          test -z "$ac_c_werror_flag" ||
40016          test ! -s conftest.err
40017        } && test -s conftest.$ac_objext; then
40018   ac_header_compiler=yes
40019 else
40020   echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40022
40023         ac_header_compiler=no
40024 fi
40025
40026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40028 echo "${ECHO_T}$ac_header_compiler" >&6; }
40029
40030 # Is the header present?
40031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40033 cat >conftest.$ac_ext <<_ACEOF
40034 /* confdefs.h.  */
40035 _ACEOF
40036 cat confdefs.h >>conftest.$ac_ext
40037 cat >>conftest.$ac_ext <<_ACEOF
40038 /* end confdefs.h.  */
40039 #include <$ac_header>
40040 _ACEOF
40041 if { (ac_try="$ac_cpp conftest.$ac_ext"
40042 case "(($ac_try" in
40043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40044   *) ac_try_echo=$ac_try;;
40045 esac
40046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40048   ac_status=$?
40049   grep -v '^ *+' conftest.er1 >conftest.err
40050   rm -f conftest.er1
40051   cat conftest.err >&5
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); } >/dev/null && {
40054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40055          test ! -s conftest.err
40056        }; then
40057   ac_header_preproc=yes
40058 else
40059   echo "$as_me: failed program was:" >&5
40060 sed 's/^/| /' conftest.$ac_ext >&5
40061
40062   ac_header_preproc=no
40063 fi
40064
40065 rm -f conftest.err conftest.$ac_ext
40066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40067 echo "${ECHO_T}$ac_header_preproc" >&6; }
40068
40069 # So?  What about this header?
40070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40071   yes:no: )
40072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40076     ac_header_preproc=yes
40077     ;;
40078   no:yes:* )
40079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40091
40092     ;;
40093 esac
40094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40097   echo $ECHO_N "(cached) $ECHO_C" >&6
40098 else
40099   eval "$as_ac_Header=\$ac_header_preproc"
40100 fi
40101 ac_res=`eval echo '${'$as_ac_Header'}'`
40102                { echo "$as_me:$LINENO: result: $ac_res" >&5
40103 echo "${ECHO_T}$ac_res" >&6; }
40104
40105 fi
40106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40107   cat >>confdefs.h <<_ACEOF
40108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40109 _ACEOF
40110
40111 fi
40112
40113 done
40114
40115 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40116 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40117 if test "${ac_cv_lib_z_deflate+set}" = set; then
40118   echo $ECHO_N "(cached) $ECHO_C" >&6
40119 else
40120   ac_check_lib_save_LIBS=$LIBS
40121 LIBS="-lz  $LIBS"
40122 cat >conftest.$ac_ext <<_ACEOF
40123 /* confdefs.h.  */
40124 _ACEOF
40125 cat confdefs.h >>conftest.$ac_ext
40126 cat >>conftest.$ac_ext <<_ACEOF
40127 /* end confdefs.h.  */
40128
40129 /* Override any GCC internal prototype to avoid an error.
40130    Use char because int might match the return type of a GCC
40131    builtin and then its argument prototype would still apply.  */
40132 #ifdef __cplusplus
40133 extern "C"
40134 #endif
40135 char deflate ();
40136 int
40137 main ()
40138 {
40139 return deflate ();
40140   ;
40141   return 0;
40142 }
40143 _ACEOF
40144 rm -f conftest.$ac_objext conftest$ac_exeext
40145 if { (ac_try="$ac_link"
40146 case "(($ac_try" in
40147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40148   *) ac_try_echo=$ac_try;;
40149 esac
40150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40151   (eval "$ac_link") 2>conftest.er1
40152   ac_status=$?
40153   grep -v '^ *+' conftest.er1 >conftest.err
40154   rm -f conftest.er1
40155   cat conftest.err >&5
40156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157   (exit $ac_status); } && {
40158          test -z "$ac_c_werror_flag" ||
40159          test ! -s conftest.err
40160        } && test -s conftest$ac_exeext &&
40161        $as_test_x conftest$ac_exeext; then
40162   ac_cv_lib_z_deflate=yes
40163 else
40164   echo "$as_me: failed program was:" >&5
40165 sed 's/^/| /' conftest.$ac_ext >&5
40166
40167         ac_cv_lib_z_deflate=no
40168 fi
40169
40170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40171       conftest$ac_exeext conftest.$ac_ext
40172 LIBS=$ac_check_lib_save_LIBS
40173 fi
40174 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40175 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40176 if test $ac_cv_lib_z_deflate = yes; then
40177   FDLIBS="-lz"
40178 fi
40179
40180 have_zlib=no
40181 if test x$FDLIBS = x-lz; then
40182    cat >>confdefs.h <<\_ACEOF
40183 #define HAVE_LIBZ 1
40184 _ACEOF
40185
40186    have_zlib=yes
40187 fi
40188
40189 have_acl=no
40190 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40191   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40192 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40193 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40194   echo $ECHO_N "(cached) $ECHO_C" >&6
40195 fi
40196 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40197 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40198 else
40199   # Is the header compilable?
40200 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40201 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40202 cat >conftest.$ac_ext <<_ACEOF
40203 /* confdefs.h.  */
40204 _ACEOF
40205 cat confdefs.h >>conftest.$ac_ext
40206 cat >>conftest.$ac_ext <<_ACEOF
40207 /* end confdefs.h.  */
40208 $ac_includes_default
40209 #include <sys/acl.h>
40210 _ACEOF
40211 rm -f conftest.$ac_objext
40212 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
40219   ac_status=$?
40220   grep -v '^ *+' conftest.er1 >conftest.err
40221   rm -f conftest.er1
40222   cat conftest.err >&5
40223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224   (exit $ac_status); } && {
40225          test -z "$ac_c_werror_flag" ||
40226          test ! -s conftest.err
40227        } && test -s conftest.$ac_objext; then
40228   ac_header_compiler=yes
40229 else
40230   echo "$as_me: failed program was:" >&5
40231 sed 's/^/| /' conftest.$ac_ext >&5
40232
40233         ac_header_compiler=no
40234 fi
40235
40236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40238 echo "${ECHO_T}$ac_header_compiler" >&6; }
40239
40240 # Is the header present?
40241 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40242 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40243 cat >conftest.$ac_ext <<_ACEOF
40244 /* confdefs.h.  */
40245 _ACEOF
40246 cat confdefs.h >>conftest.$ac_ext
40247 cat >>conftest.$ac_ext <<_ACEOF
40248 /* end confdefs.h.  */
40249 #include <sys/acl.h>
40250 _ACEOF
40251 if { (ac_try="$ac_cpp conftest.$ac_ext"
40252 case "(($ac_try" in
40253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40254   *) ac_try_echo=$ac_try;;
40255 esac
40256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40258   ac_status=$?
40259   grep -v '^ *+' conftest.er1 >conftest.err
40260   rm -f conftest.er1
40261   cat conftest.err >&5
40262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263   (exit $ac_status); } >/dev/null && {
40264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40265          test ! -s conftest.err
40266        }; then
40267   ac_header_preproc=yes
40268 else
40269   echo "$as_me: failed program was:" >&5
40270 sed 's/^/| /' conftest.$ac_ext >&5
40271
40272   ac_header_preproc=no
40273 fi
40274
40275 rm -f conftest.err conftest.$ac_ext
40276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40277 echo "${ECHO_T}$ac_header_preproc" >&6; }
40278
40279 # So?  What about this header?
40280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40281   yes:no: )
40282     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40283 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40284     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40285 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40286     ac_header_preproc=yes
40287     ;;
40288   no:yes:* )
40289     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40290 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40291     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40292 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40293     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40294 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40295     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40296 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40297     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40298 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40299     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40300 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40301
40302     ;;
40303 esac
40304 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40305 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40306 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40307   echo $ECHO_N "(cached) $ECHO_C" >&6
40308 else
40309   ac_cv_header_sys_acl_h=$ac_header_preproc
40310 fi
40311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40312 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40313
40314 fi
40315
40316
40317 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40318 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40319 if test "${ac_cv_func_acl_get_file+set}" = set; then
40320   echo $ECHO_N "(cached) $ECHO_C" >&6
40321 else
40322   cat >conftest.$ac_ext <<_ACEOF
40323 /* confdefs.h.  */
40324 _ACEOF
40325 cat confdefs.h >>conftest.$ac_ext
40326 cat >>conftest.$ac_ext <<_ACEOF
40327 /* end confdefs.h.  */
40328 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40330 #define acl_get_file innocuous_acl_get_file
40331
40332 /* System header to define __stub macros and hopefully few prototypes,
40333     which can conflict with char acl_get_file (); below.
40334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40335     <limits.h> exists even on freestanding compilers.  */
40336
40337 #ifdef __STDC__
40338 # include <limits.h>
40339 #else
40340 # include <assert.h>
40341 #endif
40342
40343 #undef acl_get_file
40344
40345 /* Override any GCC internal prototype to avoid an error.
40346    Use char because int might match the return type of a GCC
40347    builtin and then its argument prototype would still apply.  */
40348 #ifdef __cplusplus
40349 extern "C"
40350 #endif
40351 char acl_get_file ();
40352 /* The GNU C library defines this for functions which it implements
40353     to always fail with ENOSYS.  Some functions are actually named
40354     something starting with __ and the normal name is an alias.  */
40355 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40356 choke me
40357 #endif
40358
40359 int
40360 main ()
40361 {
40362 return acl_get_file ();
40363   ;
40364   return 0;
40365 }
40366 _ACEOF
40367 rm -f conftest.$ac_objext conftest$ac_exeext
40368 if { (ac_try="$ac_link"
40369 case "(($ac_try" in
40370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40371   *) ac_try_echo=$ac_try;;
40372 esac
40373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40374   (eval "$ac_link") 2>conftest.er1
40375   ac_status=$?
40376   grep -v '^ *+' conftest.er1 >conftest.err
40377   rm -f conftest.er1
40378   cat conftest.err >&5
40379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380   (exit $ac_status); } && {
40381          test -z "$ac_c_werror_flag" ||
40382          test ! -s conftest.err
40383        } && test -s conftest$ac_exeext &&
40384        $as_test_x conftest$ac_exeext; then
40385   ac_cv_func_acl_get_file=yes
40386 else
40387   echo "$as_me: failed program was:" >&5
40388 sed 's/^/| /' conftest.$ac_ext >&5
40389
40390         ac_cv_func_acl_get_file=no
40391 fi
40392
40393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40394       conftest$ac_exeext conftest.$ac_ext
40395 fi
40396 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40397 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40398 if test $ac_cv_func_acl_get_file = yes; then
40399   have_acl=yes
40400 else
40401
40402        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40403 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40404 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40405   echo $ECHO_N "(cached) $ECHO_C" >&6
40406 else
40407   ac_check_lib_save_LIBS=$LIBS
40408 LIBS="-lacl  $LIBS"
40409 cat >conftest.$ac_ext <<_ACEOF
40410 /* confdefs.h.  */
40411 _ACEOF
40412 cat confdefs.h >>conftest.$ac_ext
40413 cat >>conftest.$ac_ext <<_ACEOF
40414 /* end confdefs.h.  */
40415
40416 /* Override any GCC internal prototype to avoid an error.
40417    Use char because int might match the return type of a GCC
40418    builtin and then its argument prototype would still apply.  */
40419 #ifdef __cplusplus
40420 extern "C"
40421 #endif
40422 char acl_get_file ();
40423 int
40424 main ()
40425 {
40426 return acl_get_file ();
40427   ;
40428   return 0;
40429 }
40430 _ACEOF
40431 rm -f conftest.$ac_objext conftest$ac_exeext
40432 if { (ac_try="$ac_link"
40433 case "(($ac_try" in
40434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40435   *) ac_try_echo=$ac_try;;
40436 esac
40437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40438   (eval "$ac_link") 2>conftest.er1
40439   ac_status=$?
40440   grep -v '^ *+' conftest.er1 >conftest.err
40441   rm -f conftest.er1
40442   cat conftest.err >&5
40443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444   (exit $ac_status); } && {
40445          test -z "$ac_c_werror_flag" ||
40446          test ! -s conftest.err
40447        } && test -s conftest$ac_exeext &&
40448        $as_test_x conftest$ac_exeext; then
40449   ac_cv_lib_acl_acl_get_file=yes
40450 else
40451   echo "$as_me: failed program was:" >&5
40452 sed 's/^/| /' conftest.$ac_ext >&5
40453
40454         ac_cv_lib_acl_acl_get_file=no
40455 fi
40456
40457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40458       conftest$ac_exeext conftest.$ac_ext
40459 LIBS=$ac_check_lib_save_LIBS
40460 fi
40461 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40462 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40463 if test $ac_cv_lib_acl_acl_get_file = yes; then
40464
40465               have_acl=yes;
40466               FDLIBS="-lacl $FDLIBS"
40467
40468 else
40469
40470               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40471 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40472 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40473   echo $ECHO_N "(cached) $ECHO_C" >&6
40474 else
40475   ac_check_lib_save_LIBS=$LIBS
40476 LIBS="-lsec  $LIBS"
40477 cat >conftest.$ac_ext <<_ACEOF
40478 /* confdefs.h.  */
40479 _ACEOF
40480 cat confdefs.h >>conftest.$ac_ext
40481 cat >>conftest.$ac_ext <<_ACEOF
40482 /* end confdefs.h.  */
40483
40484 /* Override any GCC internal prototype to avoid an error.
40485    Use char because int might match the return type of a GCC
40486    builtin and then its argument prototype would still apply.  */
40487 #ifdef __cplusplus
40488 extern "C"
40489 #endif
40490 char acltotext ();
40491 int
40492 main ()
40493 {
40494 return acltotext ();
40495   ;
40496   return 0;
40497 }
40498 _ACEOF
40499 rm -f conftest.$ac_objext conftest$ac_exeext
40500 if { (ac_try="$ac_link"
40501 case "(($ac_try" in
40502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40503   *) ac_try_echo=$ac_try;;
40504 esac
40505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40506   (eval "$ac_link") 2>conftest.er1
40507   ac_status=$?
40508   grep -v '^ *+' conftest.er1 >conftest.err
40509   rm -f conftest.er1
40510   cat conftest.err >&5
40511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512   (exit $ac_status); } && {
40513          test -z "$ac_c_werror_flag" ||
40514          test ! -s conftest.err
40515        } && test -s conftest$ac_exeext &&
40516        $as_test_x conftest$ac_exeext; then
40517   ac_cv_lib_sec_acltotext=yes
40518 else
40519   echo "$as_me: failed program was:" >&5
40520 sed 's/^/| /' conftest.$ac_ext >&5
40521
40522         ac_cv_lib_sec_acltotext=no
40523 fi
40524
40525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40526       conftest$ac_exeext conftest.$ac_ext
40527 LIBS=$ac_check_lib_save_LIBS
40528 fi
40529 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40530 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40531 if test $ac_cv_lib_sec_acltotext = yes; then
40532
40533                      have_acl=yes;
40534                      FDLIBS="-lsec $FDLIBS"
40535
40536
40537 fi
40538
40539
40540
40541 fi
40542
40543
40544
40545 fi
40546
40547 if test $have_acl = yes; then
40548    cat >>confdefs.h <<\_ACEOF
40549 #define HAVE_ACL 1
40550 _ACEOF
40551
40552 fi
40553
40554 PTHREAD_LIB=""
40555 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40556 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40557 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40558   echo $ECHO_N "(cached) $ECHO_C" >&6
40559 else
40560   ac_check_lib_save_LIBS=$LIBS
40561 LIBS="-lpthread  $LIBS"
40562 cat >conftest.$ac_ext <<_ACEOF
40563 /* confdefs.h.  */
40564 _ACEOF
40565 cat confdefs.h >>conftest.$ac_ext
40566 cat >>conftest.$ac_ext <<_ACEOF
40567 /* end confdefs.h.  */
40568
40569 /* Override any GCC internal prototype to avoid an error.
40570    Use char because int might match the return type of a GCC
40571    builtin and then its argument prototype would still apply.  */
40572 #ifdef __cplusplus
40573 extern "C"
40574 #endif
40575 char pthread_create ();
40576 int
40577 main ()
40578 {
40579 return pthread_create ();
40580   ;
40581   return 0;
40582 }
40583 _ACEOF
40584 rm -f conftest.$ac_objext conftest$ac_exeext
40585 if { (ac_try="$ac_link"
40586 case "(($ac_try" in
40587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40588   *) ac_try_echo=$ac_try;;
40589 esac
40590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40591   (eval "$ac_link") 2>conftest.er1
40592   ac_status=$?
40593   grep -v '^ *+' conftest.er1 >conftest.err
40594   rm -f conftest.er1
40595   cat conftest.err >&5
40596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40597   (exit $ac_status); } && {
40598          test -z "$ac_c_werror_flag" ||
40599          test ! -s conftest.err
40600        } && test -s conftest$ac_exeext &&
40601        $as_test_x conftest$ac_exeext; then
40602   ac_cv_lib_pthread_pthread_create=yes
40603 else
40604   echo "$as_me: failed program was:" >&5
40605 sed 's/^/| /' conftest.$ac_ext >&5
40606
40607         ac_cv_lib_pthread_pthread_create=no
40608 fi
40609
40610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40611       conftest$ac_exeext conftest.$ac_ext
40612 LIBS=$ac_check_lib_save_LIBS
40613 fi
40614 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40615 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40616 if test $ac_cv_lib_pthread_pthread_create = yes; then
40617   PTHREAD_LIB="-lpthread"
40618 else
40619
40620        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40621 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40622 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40623   echo $ECHO_N "(cached) $ECHO_C" >&6
40624 else
40625   ac_check_lib_save_LIBS=$LIBS
40626 LIBS="-lpthreads  $LIBS"
40627 cat >conftest.$ac_ext <<_ACEOF
40628 /* confdefs.h.  */
40629 _ACEOF
40630 cat confdefs.h >>conftest.$ac_ext
40631 cat >>conftest.$ac_ext <<_ACEOF
40632 /* end confdefs.h.  */
40633
40634 /* Override any GCC internal prototype to avoid an error.
40635    Use char because int might match the return type of a GCC
40636    builtin and then its argument prototype would still apply.  */
40637 #ifdef __cplusplus
40638 extern "C"
40639 #endif
40640 char pthread_create ();
40641 int
40642 main ()
40643 {
40644 return pthread_create ();
40645   ;
40646   return 0;
40647 }
40648 _ACEOF
40649 rm -f conftest.$ac_objext conftest$ac_exeext
40650 if { (ac_try="$ac_link"
40651 case "(($ac_try" in
40652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40653   *) ac_try_echo=$ac_try;;
40654 esac
40655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40656   (eval "$ac_link") 2>conftest.er1
40657   ac_status=$?
40658   grep -v '^ *+' conftest.er1 >conftest.err
40659   rm -f conftest.er1
40660   cat conftest.err >&5
40661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662   (exit $ac_status); } && {
40663          test -z "$ac_c_werror_flag" ||
40664          test ! -s conftest.err
40665        } && test -s conftest$ac_exeext &&
40666        $as_test_x conftest$ac_exeext; then
40667   ac_cv_lib_pthreads_pthread_create=yes
40668 else
40669   echo "$as_me: failed program was:" >&5
40670 sed 's/^/| /' conftest.$ac_ext >&5
40671
40672         ac_cv_lib_pthreads_pthread_create=no
40673 fi
40674
40675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40676       conftest$ac_exeext conftest.$ac_ext
40677 LIBS=$ac_check_lib_save_LIBS
40678 fi
40679 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40680 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40681 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40682   PTHREAD_LIB="-lpthreads"
40683 else
40684
40685               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40686 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40687 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40688   echo $ECHO_N "(cached) $ECHO_C" >&6
40689 else
40690   ac_check_lib_save_LIBS=$LIBS
40691 LIBS="-lc_r  $LIBS"
40692 cat >conftest.$ac_ext <<_ACEOF
40693 /* confdefs.h.  */
40694 _ACEOF
40695 cat confdefs.h >>conftest.$ac_ext
40696 cat >>conftest.$ac_ext <<_ACEOF
40697 /* end confdefs.h.  */
40698
40699 /* Override any GCC internal prototype to avoid an error.
40700    Use char because int might match the return type of a GCC
40701    builtin and then its argument prototype would still apply.  */
40702 #ifdef __cplusplus
40703 extern "C"
40704 #endif
40705 char pthread_create ();
40706 int
40707 main ()
40708 {
40709 return pthread_create ();
40710   ;
40711   return 0;
40712 }
40713 _ACEOF
40714 rm -f conftest.$ac_objext conftest$ac_exeext
40715 if { (ac_try="$ac_link"
40716 case "(($ac_try" in
40717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40718   *) ac_try_echo=$ac_try;;
40719 esac
40720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40721   (eval "$ac_link") 2>conftest.er1
40722   ac_status=$?
40723   grep -v '^ *+' conftest.er1 >conftest.err
40724   rm -f conftest.er1
40725   cat conftest.err >&5
40726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40727   (exit $ac_status); } && {
40728          test -z "$ac_c_werror_flag" ||
40729          test ! -s conftest.err
40730        } && test -s conftest$ac_exeext &&
40731        $as_test_x conftest$ac_exeext; then
40732   ac_cv_lib_c_r_pthread_create=yes
40733 else
40734   echo "$as_me: failed program was:" >&5
40735 sed 's/^/| /' conftest.$ac_ext >&5
40736
40737         ac_cv_lib_c_r_pthread_create=no
40738 fi
40739
40740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40741       conftest$ac_exeext conftest.$ac_ext
40742 LIBS=$ac_check_lib_save_LIBS
40743 fi
40744 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40745 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40746 if test $ac_cv_lib_c_r_pthread_create = yes; then
40747   PTHREAD_LIB="-lc_r"
40748 else
40749
40750                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40751 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40752 if test "${ac_cv_func_pthread_create+set}" = set; then
40753   echo $ECHO_N "(cached) $ECHO_C" >&6
40754 else
40755   cat >conftest.$ac_ext <<_ACEOF
40756 /* confdefs.h.  */
40757 _ACEOF
40758 cat confdefs.h >>conftest.$ac_ext
40759 cat >>conftest.$ac_ext <<_ACEOF
40760 /* end confdefs.h.  */
40761 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40763 #define pthread_create innocuous_pthread_create
40764
40765 /* System header to define __stub macros and hopefully few prototypes,
40766     which can conflict with char pthread_create (); below.
40767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40768     <limits.h> exists even on freestanding compilers.  */
40769
40770 #ifdef __STDC__
40771 # include <limits.h>
40772 #else
40773 # include <assert.h>
40774 #endif
40775
40776 #undef pthread_create
40777
40778 /* Override any GCC internal prototype to avoid an error.
40779    Use char because int might match the return type of a GCC
40780    builtin and then its argument prototype would still apply.  */
40781 #ifdef __cplusplus
40782 extern "C"
40783 #endif
40784 char pthread_create ();
40785 /* The GNU C library defines this for functions which it implements
40786     to always fail with ENOSYS.  Some functions are actually named
40787     something starting with __ and the normal name is an alias.  */
40788 #if defined __stub_pthread_create || defined __stub___pthread_create
40789 choke me
40790 #endif
40791
40792 int
40793 main ()
40794 {
40795 return pthread_create ();
40796   ;
40797   return 0;
40798 }
40799 _ACEOF
40800 rm -f conftest.$ac_objext conftest$ac_exeext
40801 if { (ac_try="$ac_link"
40802 case "(($ac_try" in
40803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40804   *) ac_try_echo=$ac_try;;
40805 esac
40806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40807   (eval "$ac_link") 2>conftest.er1
40808   ac_status=$?
40809   grep -v '^ *+' conftest.er1 >conftest.err
40810   rm -f conftest.er1
40811   cat conftest.err >&5
40812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40813   (exit $ac_status); } && {
40814          test -z "$ac_c_werror_flag" ||
40815          test ! -s conftest.err
40816        } && test -s conftest$ac_exeext &&
40817        $as_test_x conftest$ac_exeext; then
40818   ac_cv_func_pthread_create=yes
40819 else
40820   echo "$as_me: failed program was:" >&5
40821 sed 's/^/| /' conftest.$ac_ext >&5
40822
40823         ac_cv_func_pthread_create=no
40824 fi
40825
40826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40827       conftest$ac_exeext conftest.$ac_ext
40828 fi
40829 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40830 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40831
40832
40833
40834 fi
40835
40836
40837
40838 fi
40839
40840
40841
40842 fi
40843
40844
40845
40846 cat >>confdefs.h <<\_ACEOF
40847 #define FDLIBS 1
40848 _ACEOF
40849
40850
40851 CFLAGS=${CFLAGS--O}
40852
40853 if test x$have_gcc = xyes ; then
40854    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40855    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40856 fi
40857 LDFLAGS=${LDFLAGS--O}
40858 DB_LIBS="${SQL_LFLAGS}"
40859 CPPFLAGS="$CPPFLAGS"
40860 CFLAGS="$CFLAGS"
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877 OBJLIST=
40878
40879
40880 lld="lld"
40881 llu="llu"
40882
40883 WCFLAGS=
40884 WLDFLAGS=
40885
40886 PFILES="platforms/Makefile"
40887 PSCMD="ps -e"
40888 WIN32=
40889 MACOSX=
40890 hostname=`uname -n | cut -d '.' -f 1`
40891 if test x${hostname} = x ; then
40892    hostname="localhost"
40893 fi
40894 case "$DISTNAME" in
40895 aix)
40896    DISTVER=`uname -r`
40897    PSCMD="ps -e -o pid,comm"
40898    PFILES="${PFILES} \
40899       platforms/aix/Makefile"
40900    TAPEDRIVE="/dev/rmt0.1"
40901   ;;
40902 alpha)
40903    DISTVER=`uname -r`
40904    PTHREAD_LIB="-lpthread -lexc"
40905    if test "${CC}" = "gcc" ; then
40906       lld="lld"
40907       llu="llu"
40908    else
40909       lld="ld"
40910       llu="lu"
40911    fi
40912    TAPEDRIVE="/dev/nrmt0"
40913   ;;
40914 bsdi)
40915    DISTVER=`uname -a |awk '{print $3}'`
40916    TAPEDRIVE="/dev/nrmt0"
40917    PTHREAD_LIB="-pthread"
40918    CFLAGS="${CFLAGS} -pthread"
40919    PSCMD="ps -ax -o pid,command"
40920    lld="qd"
40921    llu="qu"
40922    PFILES="${PFILES} \
40923        platforms/bsdi/Makefile \
40924        platforms/bsdi/bacula-fd \
40925        platforms/bsdi/bacula-sd \
40926        platforms/bsdi/bacula-dir"
40927    largefile_support="yes"
40928   ;;
40929 cygwin)
40930    DISTVER=`uname -a |awk '{print $3}'`
40931    TAPEDRIVE="/dev/nrst0"
40932    WIN32=win32
40933    WCFLAGS="-mwindows"
40934    WLDFLAGS="-mwindows"
40935   ;;
40936 darwin)
40937    DISTVER=`uname -r`
40938    TAPEDRIVE="/dev/nst0"
40939    PSCMD="ps -e -o pid,command"
40940    MACOSX=macosx
40941    PFILES="${PFILES} \
40942       platforms/darwin/Makefile"
40943   ;;
40944 debian)
40945       ping -c 1 $hostname 2>&1 1>/dev/null
40946    if test ! $? = 0; then
40947       hostname="localhost"
40948    fi
40949    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40950       DISTNAME="ubuntu"
40951    fi
40952    DISTVER=`cat /etc/debian_version`
40953    if test -f /etc/lsb-release ; then
40954       . /etc/lsb-release
40955       if test "x$DISTRIB_ID" != "x" ; then
40956          DISTNAME=$DISTRIB_ID
40957       fi
40958       if test "x$DISTRIB_RELEASE" != "x" ; then
40959          DISTVER=$DISTRIB_RELEASE
40960       fi
40961    fi
40962    if test "$DISTNAME" = "Ubuntu" ; then
40963       DISTNAME="ubuntu"
40964    fi
40965    TAPEDRIVE="/dev/nst0"
40966    PSCMD="ps -e -o pid,command"
40967    if test "$DISTNAME" = "ubuntu" ; then
40968       PFILES="${PFILES} \
40969          platforms/ubuntu/Makefile \
40970          platforms/ubuntu/bacula-fd \
40971          platforms/ubuntu/bacula-sd \
40972          platforms/ubuntu/bacula-dir"
40973    else
40974       PFILES="${PFILES} \
40975          platforms/debian/Makefile \
40976          platforms/debian/bacula-fd \
40977          platforms/debian/bacula-sd \
40978          platforms/debian/bacula-dir"
40979    fi
40980   ;;
40981 freebsd)
40982       ping -c 1 $hostname 2>&1 1>/dev/null
40983    if test ! $? = 0; then
40984       hostname="localhost"
40985    fi
40986    DISTVER=`uname -a |awk '{print $3}'`
40987    VER=`echo $DISTVER | cut -c 1`
40988    if test x$VER = x4 ; then
40989       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
40990       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
40991    fi
40992    lld="qd"
40993    llu="qu"
40994    TAPEDRIVE="/dev/nrsa0"
40995    PSCMD="ps -ax -o pid,command"
40996    PFILES="${PFILES} \
40997        platforms/freebsd/Makefile \
40998        platforms/freebsd/bacula-fd \
40999        platforms/freebsd/bacula-sd \
41000        platforms/freebsd/bacula-dir"
41001    largefile_support="yes"
41002   ;;
41003 hpux)
41004    PSCMD="UNIX95=1; ps -e -o pid,comm"
41005    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41006    DISTVER=`uname -r`
41007    TAPEDRIVE="/dev/rmt/0hnb"
41008    PTHREAD_LIB="-lpthread"
41009    cat >>confdefs.h <<\_ACEOF
41010 #define _INCLUDE_LONGLONG 1
41011 _ACEOF
41012
41013   ;;
41014 irix)
41015    DISTVER=`uname -r`
41016    TAPEDRIVE="/dev/rmt/0cbn"
41017    PSCMD="ps -e -o pid,comm"
41018    PFILES="${PFILES} \
41019        platforms/irix/Makefile \
41020        platforms/irix/bacula-fd \
41021        platforms/irix/bacula-sd \
41022        platforms/irix/bacula-dir"
41023   ;;
41024 netbsd)
41025    DISTVER=`uname -a |awk '{print $3}'`
41026    lld="qd"
41027    llu="qu"
41028    TAPEDRIVE="/dev/nrst0"
41029    PSCMD="ps -ax -o pid,command"
41030    PTHREAD_LIB="-pthread"
41031    CFLAGS="${CFLAGS} -pthread"
41032   ;;
41033 openbsd)
41034    DISTVER=`uname -a |awk '{print $3}'`
41035    lld="qd"
41036    llu="qu"
41037    TAPEDRIVE="/dev/nrst0"
41038    PSCMD="ps -ax -o pid,command"
41039    PTHREAD_LIB="-pthread"
41040    CFLAGS="${CFLAGS} -pthread"
41041    PFILES="${PFILES} \
41042        platforms/openbsd/Makefile \
41043        platforms/openbsd/bacula-fd \
41044        platforms/openbsd/bacula-sd \
41045        platforms/openbsd/bacula-dir"
41046   ;;
41047 redhat)
41048       ping -c 1 $hostname 2>&1 1>/dev/null
41049    if test ! $? = 0; then
41050       hostname="localhost"
41051    fi
41052    if test -f /etc/whitebox-release ; then
41053       f=/etc/whitebox-release
41054    else
41055       f=/etc/redhat-release
41056    fi
41057    if test `cat $f | grep release |\
41058          cut -f 3 -d ' '`x = "Enterprise"x ; then
41059       DISTVER="Enterprise "`cat $f | grep release |\
41060           cut -f 6 -d ' '`
41061    else
41062        DISTVER=`cat /etc/redhat-release | grep release |\
41063            cut -f 5 -d ' '`
41064    fi
41065    TAPEDRIVE="/dev/nst0"
41066    PSCMD="ps -e -o pid,command"
41067    PFILES="${PFILES} \
41068        platforms/redhat/Makefile \
41069        platforms/redhat/bacula-fd \
41070        platforms/redhat/bacula-sd \
41071        platforms/redhat/bacula-dir \
41072        platforms/redhat/bacula.spec \
41073        "
41074   ;;
41075 mandrake)
41076       ping -c 1 $hostname 2>&1 1>/dev/null
41077    if test ! $? = 0; then
41078       hostname="localhost"
41079    fi
41080    DISTVER=`cat /etc/mandrake-release | grep release |\
41081       cut -f 5 -d ' '`
41082    TAPEDRIVE="/dev/nst0"
41083    PSCMD="ps -e -o pid,command"
41084    PFILES="${PFILES} \
41085        platforms/mandrake/Makefile \
41086        platforms/mandrake/bacula-fd \
41087        platforms/mandrake/bacula-sd \
41088        platforms/mandrake/bacula-dir \
41089        platforms/mandrake/bacula.spec \
41090        "
41091   ;;
41092 gentoo)
41093       ping -c 1 $hostname 2>&1 1>/dev/null
41094    if test ! $? = 0; then
41095       hostname="localhost"
41096    fi
41097    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41098    TAPEDRIVE="/dev/nst0"
41099    PSCMD="ps -e -o pid,command"
41100    PFILES="${PFILES} \
41101        platforms/gentoo/Makefile \
41102     platforms/gentoo/bacula-init \
41103        platforms/gentoo/bacula-fd \
41104        platforms/gentoo/bacula-sd \
41105        platforms/gentoo/bacula-dir"
41106   ;;
41107 slackware)
41108       ping -c 1 $hostname 2>&1 1>/dev/null
41109    if test ! $? = 0; then
41110       hostname="localhost"
41111    fi
41112    DISTVER=`cat /etc/slackware-version`
41113    TAPEDRIVE="/dev/nst0"
41114    PSCMD="ps -e -o pid,command"
41115    PFILES="${PFILES} \
41116        platforms/slackware/Makefile \
41117        platforms/slackware/rc.bacula-fd \
41118        platforms/slackware/rc.bacula-sd \
41119        platforms/slackware/rc.bacula-dir\
41120        platforms/slackware/functions.bacula"
41121   ;;
41122 solaris)
41123    DISTVER=`uname -r`
41124    TAPEDRIVE="/dev/rmt/0cbn"
41125    PSCMD="ps -e -o pid,comm"
41126    PFILES="${PFILES} \
41127        platforms/solaris/Makefile \
41128        platforms/solaris/bacula-fd \
41129        platforms/solaris/bacula-sd \
41130        platforms/solaris/bacula-dir"
41131    if test x$DISTVER = x5.6 ; then
41132        cat >>confdefs.h <<\_ACEOF
41133 #define HAVE_OLD_SOCKOPT 1
41134 _ACEOF
41135
41136    fi
41137    LIBS="$LIBS -lresolv"
41138   ;;
41139 suse)
41140       ping -c 1 $hostname 2>&1 1>/dev/null
41141    if test ! $? = 0; then
41142       hostname="localhost"
41143    fi
41144    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41145        cut -f 3 -d ' '`
41146    TAPEDRIVE="/dev/nst0"
41147    PSCMD="ps -e -o pid,command"
41148    PFILES="${PFILES} \
41149        platforms/suse/Makefile \
41150        platforms/suse/bacula-fd \
41151        platforms/suse/bacula-sd \
41152        platforms/suse/bacula-dir \
41153        platforms/suse/bacula \
41154        platforms/suse/bacula.spec"
41155   ;;
41156 suse5)
41157       ping -c 1 $hostname 2>&1 1>/dev/null
41158    if test ! $? = 0; then
41159       hostname="localhost"
41160    fi
41161    DISTNAME=suse
41162    DISTVER=5.x
41163    TAPEDRIVE="/dev/nst0"
41164    PSCMD="ps -e -o pid,command"
41165    PFILES="${PFILES} \
41166        platforms/suse/Makefile \
41167        platforms/suse/bacula-fd \
41168        platforms/suse/bacula-sd \
41169        platforms/suse/bacula-dir"
41170   ;;
41171 unknown)
41172    DISTVER=unknown
41173    TAPEDRIVE="/dev/nst0"
41174   ;;
41175 *)
41176   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41177   ;;
41178 esac
41179
41180
41181
41182 LIBS="$PTHREAD_LIB $LIBS"
41183
41184 cat >>confdefs.h <<_ACEOF
41185 #define lld "$lld"
41186 _ACEOF
41187
41188 cat >>confdefs.h <<_ACEOF
41189 #define llu "$llu"
41190 _ACEOF
41191
41192
41193
41194
41195
41196
41197
41198
41199 MCOMMON=./autoconf/Make.common
41200
41201
41202 if test "x${subsysdir}" = "x${sbindir}" ; then
41203    echo " "
41204    echo " "
41205    echo "You have set both --sbindir and --with-subsys-dir"
41206    echo "  equal to: ${subsysdir} "
41207    echo "This is not permitted. Please reconfigure."
41208    echo " "
41209    echo "Aborting configuration ..."
41210    echo " "
41211    echo " "
41212    exit 1
41213 fi
41214
41215 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
41216
41217 ac_config_commands="$ac_config_commands default"
41218
41219 cat >confcache <<\_ACEOF
41220 # This file is a shell script that caches the results of configure
41221 # tests run on this system so they can be shared between configure
41222 # scripts and configure runs, see configure's option --config-cache.
41223 # It is not useful on other systems.  If it contains results you don't
41224 # want to keep, you may remove or edit it.
41225 #
41226 # config.status only pays attention to the cache file if you give it
41227 # the --recheck option to rerun configure.
41228 #
41229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41231 # following values.
41232
41233 _ACEOF
41234
41235 # The following way of writing the cache mishandles newlines in values,
41236 # but we know of no workaround that is simple, portable, and efficient.
41237 # So, we kill variables containing newlines.
41238 # Ultrix sh set writes to stderr and can't be redirected directly,
41239 # and sets the high bit in the cache file unless we assign to the vars.
41240 (
41241   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41242     eval ac_val=\$$ac_var
41243     case $ac_val in #(
41244     *${as_nl}*)
41245       case $ac_var in #(
41246       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41247 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41248       esac
41249       case $ac_var in #(
41250       _ | IFS | as_nl) ;; #(
41251       *) $as_unset $ac_var ;;
41252       esac ;;
41253     esac
41254   done
41255
41256   (set) 2>&1 |
41257     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41258     *${as_nl}ac_space=\ *)
41259       # `set' does not quote correctly, so add quotes (double-quote
41260       # substitution turns \\\\ into \\, and sed turns \\ into \).
41261       sed -n \
41262         "s/'/'\\\\''/g;
41263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41264       ;; #(
41265     *)
41266       # `set' quotes correctly as required by POSIX, so do not add quotes.
41267       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41268       ;;
41269     esac |
41270     sort
41271 ) |
41272   sed '
41273      /^ac_cv_env_/b end
41274      t clear
41275      :clear
41276      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41277      t end
41278      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41279      :end' >>confcache
41280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41281   if test -w "$cache_file"; then
41282     test "x$cache_file" != "x/dev/null" &&
41283       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41284 echo "$as_me: updating cache $cache_file" >&6;}
41285     cat confcache >$cache_file
41286   else
41287     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41288 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41289   fi
41290 fi
41291 rm -f confcache
41292
41293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41294 # Let make expand exec_prefix.
41295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41296
41297 DEFS=-DHAVE_CONFIG_H
41298
41299 ac_libobjs=
41300 ac_ltlibobjs=
41301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41302   # 1. Remove the extension, and $U if already installed.
41303   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41304   ac_i=`echo "$ac_i" | sed "$ac_script"`
41305   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41306   #    will be set to the directory where LIBOBJS objects are built.
41307   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41308   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41309 done
41310 LIBOBJS=$ac_libobjs
41311
41312 LTLIBOBJS=$ac_ltlibobjs
41313
41314
41315
41316 : ${CONFIG_STATUS=./config.status}
41317 ac_clean_files_save=$ac_clean_files
41318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41321 cat >$CONFIG_STATUS <<_ACEOF
41322 #! $SHELL
41323 # Generated by $as_me.
41324 # Run this file to recreate the current configuration.
41325 # Compiler output produced by configure, useful for debugging
41326 # configure, is in config.log if it exists.
41327
41328 debug=false
41329 ac_cs_recheck=false
41330 ac_cs_silent=false
41331 SHELL=\${CONFIG_SHELL-$SHELL}
41332 _ACEOF
41333
41334 cat >>$CONFIG_STATUS <<\_ACEOF
41335 ## --------------------- ##
41336 ## M4sh Initialization.  ##
41337 ## --------------------- ##
41338
41339 # Be more Bourne compatible
41340 DUALCASE=1; export DUALCASE # for MKS sh
41341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41342   emulate sh
41343   NULLCMD=:
41344   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41345   # is contrary to our usage.  Disable this feature.
41346   alias -g '${1+"$@"}'='"$@"'
41347   setopt NO_GLOB_SUBST
41348 else
41349   case `(set -o) 2>/dev/null` in
41350   *posix*) set -o posix ;;
41351 esac
41352
41353 fi
41354
41355
41356
41357
41358 # PATH needs CR
41359 # Avoid depending upon Character Ranges.
41360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41363 as_cr_digits='0123456789'
41364 as_cr_alnum=$as_cr_Letters$as_cr_digits
41365
41366 # The user is always right.
41367 if test "${PATH_SEPARATOR+set}" != set; then
41368   echo "#! /bin/sh" >conf$$.sh
41369   echo  "exit 0"   >>conf$$.sh
41370   chmod +x conf$$.sh
41371   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41372     PATH_SEPARATOR=';'
41373   else
41374     PATH_SEPARATOR=:
41375   fi
41376   rm -f conf$$.sh
41377 fi
41378
41379 # Support unset when possible.
41380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41381   as_unset=unset
41382 else
41383   as_unset=false
41384 fi
41385
41386
41387 # IFS
41388 # We need space, tab and new line, in precisely that order.  Quoting is
41389 # there to prevent editors from complaining about space-tab.
41390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41391 # splitting by setting IFS to empty value.)
41392 as_nl='
41393 '
41394 IFS=" ""        $as_nl"
41395
41396 # Find who we are.  Look in the path if we contain no directory separator.
41397 case $0 in
41398   *[\\/]* ) as_myself=$0 ;;
41399   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41400 for as_dir in $PATH
41401 do
41402   IFS=$as_save_IFS
41403   test -z "$as_dir" && as_dir=.
41404   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41405 done
41406 IFS=$as_save_IFS
41407
41408      ;;
41409 esac
41410 # We did not find ourselves, most probably we were run as `sh COMMAND'
41411 # in which case we are not to be found in the path.
41412 if test "x$as_myself" = x; then
41413   as_myself=$0
41414 fi
41415 if test ! -f "$as_myself"; then
41416   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41417   { (exit 1); exit 1; }
41418 fi
41419
41420 # Work around bugs in pre-3.0 UWIN ksh.
41421 for as_var in ENV MAIL MAILPATH
41422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41423 done
41424 PS1='$ '
41425 PS2='> '
41426 PS4='+ '
41427
41428 # NLS nuisances.
41429 for as_var in \
41430   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41431   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41432   LC_TELEPHONE LC_TIME
41433 do
41434   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41435     eval $as_var=C; export $as_var
41436   else
41437     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41438   fi
41439 done
41440
41441 # Required to use basename.
41442 if expr a : '\(a\)' >/dev/null 2>&1 &&
41443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41444   as_expr=expr
41445 else
41446   as_expr=false
41447 fi
41448
41449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41450   as_basename=basename
41451 else
41452   as_basename=false
41453 fi
41454
41455
41456 # Name of the executable.
41457 as_me=`$as_basename -- "$0" ||
41458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41459          X"$0" : 'X\(//\)$' \| \
41460          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41461 echo X/"$0" |
41462     sed '/^.*\/\([^/][^/]*\)\/*$/{
41463             s//\1/
41464             q
41465           }
41466           /^X\/\(\/\/\)$/{
41467             s//\1/
41468             q
41469           }
41470           /^X\/\(\/\).*/{
41471             s//\1/
41472             q
41473           }
41474           s/.*/./; q'`
41475
41476 # CDPATH.
41477 $as_unset CDPATH
41478
41479
41480
41481   as_lineno_1=$LINENO
41482   as_lineno_2=$LINENO
41483   test "x$as_lineno_1" != "x$as_lineno_2" &&
41484   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41485
41486   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41487   # uniformly replaced by the line number.  The first 'sed' inserts a
41488   # line-number line after each line using $LINENO; the second 'sed'
41489   # does the real work.  The second script uses 'N' to pair each
41490   # line-number line with the line containing $LINENO, and appends
41491   # trailing '-' during substitution so that $LINENO is not a special
41492   # case at line end.
41493   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41494   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41495   # E. McMahon (1931-1989) for sed's syntax.  :-)
41496   sed -n '
41497     p
41498     /[$]LINENO/=
41499   ' <$as_myself |
41500     sed '
41501       s/[$]LINENO.*/&-/
41502       t lineno
41503       b
41504       :lineno
41505       N
41506       :loop
41507       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41508       t loop
41509       s/-\n.*//
41510     ' >$as_me.lineno &&
41511   chmod +x "$as_me.lineno" ||
41512     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41513    { (exit 1); exit 1; }; }
41514
41515   # Don't try to exec as it changes $[0], causing all sort of problems
41516   # (the dirname of $[0] is not the place where we might find the
41517   # original and so on.  Autoconf is especially sensitive to this).
41518   . "./$as_me.lineno"
41519   # Exit status is that of the last command.
41520   exit
41521 }
41522
41523
41524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41525   as_dirname=dirname
41526 else
41527   as_dirname=false
41528 fi
41529
41530 ECHO_C= ECHO_N= ECHO_T=
41531 case `echo -n x` in
41532 -n*)
41533   case `echo 'x\c'` in
41534   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41535   *)   ECHO_C='\c';;
41536   esac;;
41537 *)
41538   ECHO_N='-n';;
41539 esac
41540
41541 if expr a : '\(a\)' >/dev/null 2>&1 &&
41542    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41543   as_expr=expr
41544 else
41545   as_expr=false
41546 fi
41547
41548 rm -f conf$$ conf$$.exe conf$$.file
41549 if test -d conf$$.dir; then
41550   rm -f conf$$.dir/conf$$.file
41551 else
41552   rm -f conf$$.dir
41553   mkdir conf$$.dir
41554 fi
41555 echo >conf$$.file
41556 if ln -s conf$$.file conf$$ 2>/dev/null; then
41557   as_ln_s='ln -s'
41558   # ... but there are two gotchas:
41559   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41560   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41561   # In both cases, we have to default to `cp -p'.
41562   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41563     as_ln_s='cp -p'
41564 elif ln conf$$.file conf$$ 2>/dev/null; then
41565   as_ln_s=ln
41566 else
41567   as_ln_s='cp -p'
41568 fi
41569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41570 rmdir conf$$.dir 2>/dev/null
41571
41572 if mkdir -p . 2>/dev/null; then
41573   as_mkdir_p=:
41574 else
41575   test -d ./-p && rmdir ./-p
41576   as_mkdir_p=false
41577 fi
41578
41579 if test -x / >/dev/null 2>&1; then
41580   as_test_x='test -x'
41581 else
41582   if ls -dL / >/dev/null 2>&1; then
41583     as_ls_L_option=L
41584   else
41585     as_ls_L_option=
41586   fi
41587   as_test_x='
41588     eval sh -c '\''
41589       if test -d "$1"; then
41590         test -d "$1/.";
41591       else
41592         case $1 in
41593         -*)set "./$1";;
41594         esac;
41595         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41596         ???[sx]*):;;*)false;;esac;fi
41597     '\'' sh
41598   '
41599 fi
41600 as_executable_p=$as_test_x
41601
41602 # Sed expression to map a string onto a valid CPP name.
41603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41604
41605 # Sed expression to map a string onto a valid variable name.
41606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41607
41608
41609 exec 6>&1
41610
41611 # Save the log message, to keep $[0] and so on meaningful, and to
41612 # report actual input values of CONFIG_FILES etc. instead of their
41613 # values after options handling.
41614 ac_log="
41615 This file was extended by $as_me, which was
41616 generated by GNU Autoconf 2.61.  Invocation command line was
41617
41618   CONFIG_FILES    = $CONFIG_FILES
41619   CONFIG_HEADERS  = $CONFIG_HEADERS
41620   CONFIG_LINKS    = $CONFIG_LINKS
41621   CONFIG_COMMANDS = $CONFIG_COMMANDS
41622   $ $0 $@
41623
41624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41625 "
41626
41627 _ACEOF
41628
41629 cat >>$CONFIG_STATUS <<_ACEOF
41630 # Files that config.status was made for.
41631 config_files="$ac_config_files"
41632 config_headers="$ac_config_headers"
41633 config_commands="$ac_config_commands"
41634
41635 _ACEOF
41636
41637 cat >>$CONFIG_STATUS <<\_ACEOF
41638 ac_cs_usage="\
41639 \`$as_me' instantiates files from templates according to the
41640 current configuration.
41641
41642 Usage: $0 [OPTIONS] [FILE]...
41643
41644   -h, --help       print this help, then exit
41645   -V, --version    print version number and configuration settings, then exit
41646   -q, --quiet      do not print progress messages
41647   -d, --debug      don't remove temporary files
41648       --recheck    update $as_me by reconfiguring in the same conditions
41649   --file=FILE[:TEMPLATE]
41650                    instantiate the configuration file FILE
41651   --header=FILE[:TEMPLATE]
41652                    instantiate the configuration header FILE
41653
41654 Configuration files:
41655 $config_files
41656
41657 Configuration headers:
41658 $config_headers
41659
41660 Configuration commands:
41661 $config_commands
41662
41663 Report bugs to <bug-autoconf@gnu.org>."
41664
41665 _ACEOF
41666 cat >>$CONFIG_STATUS <<_ACEOF
41667 ac_cs_version="\\
41668 config.status
41669 configured by $0, generated by GNU Autoconf 2.61,
41670   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41671
41672 Copyright (C) 2006 Free Software Foundation, Inc.
41673 This config.status script is free software; the Free Software Foundation
41674 gives unlimited permission to copy, distribute and modify it."
41675
41676 ac_pwd='$ac_pwd'
41677 srcdir='$srcdir'
41678 INSTALL='$INSTALL'
41679 _ACEOF
41680
41681 cat >>$CONFIG_STATUS <<\_ACEOF
41682 # If no file are specified by the user, then we need to provide default
41683 # value.  By we need to know if files were specified by the user.
41684 ac_need_defaults=:
41685 while test $# != 0
41686 do
41687   case $1 in
41688   --*=*)
41689     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41690     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41691     ac_shift=:
41692     ;;
41693   *)
41694     ac_option=$1
41695     ac_optarg=$2
41696     ac_shift=shift
41697     ;;
41698   esac
41699
41700   case $ac_option in
41701   # Handling of the options.
41702   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41703     ac_cs_recheck=: ;;
41704   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41705     echo "$ac_cs_version"; exit ;;
41706   --debug | --debu | --deb | --de | --d | -d )
41707     debug=: ;;
41708   --file | --fil | --fi | --f )
41709     $ac_shift
41710     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41711     ac_need_defaults=false;;
41712   --header | --heade | --head | --hea )
41713     $ac_shift
41714     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41715     ac_need_defaults=false;;
41716   --he | --h)
41717     # Conflict between --help and --header
41718     { echo "$as_me: error: ambiguous option: $1
41719 Try \`$0 --help' for more information." >&2
41720    { (exit 1); exit 1; }; };;
41721   --help | --hel | -h )
41722     echo "$ac_cs_usage"; exit ;;
41723   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41724   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41725     ac_cs_silent=: ;;
41726
41727   # This is an error.
41728   -*) { echo "$as_me: error: unrecognized option: $1
41729 Try \`$0 --help' for more information." >&2
41730    { (exit 1); exit 1; }; } ;;
41731
41732   *) ac_config_targets="$ac_config_targets $1"
41733      ac_need_defaults=false ;;
41734
41735   esac
41736   shift
41737 done
41738
41739 ac_configure_extra_args=
41740
41741 if $ac_cs_silent; then
41742   exec 6>/dev/null
41743   ac_configure_extra_args="$ac_configure_extra_args --silent"
41744 fi
41745
41746 _ACEOF
41747 cat >>$CONFIG_STATUS <<_ACEOF
41748 if \$ac_cs_recheck; then
41749   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41750   CONFIG_SHELL=$SHELL
41751   export CONFIG_SHELL
41752   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41753 fi
41754
41755 _ACEOF
41756 cat >>$CONFIG_STATUS <<\_ACEOF
41757 exec 5>>config.log
41758 {
41759   echo
41760   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41761 ## Running $as_me. ##
41762 _ASBOX
41763   echo "$ac_log"
41764 } >&5
41765
41766 _ACEOF
41767 cat >>$CONFIG_STATUS <<_ACEOF
41768 #
41769 # INIT-COMMANDS
41770 #
41771
41772
41773 # The HP-UX ksh and POSIX shell print the target directory to stdout
41774 # if CDPATH is set.
41775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41776
41777 sed_quote_subst='$sed_quote_subst'
41778 double_quote_subst='$double_quote_subst'
41779 delay_variable_subst='$delay_variable_subst'
41780 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41781 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41782 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41783 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41784 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41785 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41786 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41787 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41788 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41789 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41790 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41791 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41792 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41793 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41794 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41795 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41796 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41797 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41798 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41799 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41800 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41801 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41802 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41803 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41804 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41805 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41806 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41807 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41808 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41809 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41810 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41811 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41812 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41813 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41814 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41815 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41816 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41817 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41818 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41819 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41820 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41821 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41822 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41823 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41824 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"`'
41825 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"`'
41826 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41827 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41828 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41829 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41831 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41832 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41833 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41834 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41835 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41836 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41837 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41838 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41839 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41840 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41841 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41842 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41845 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41846 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41847 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41848 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41849 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41850 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41851 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41852 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41853 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41854 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41855 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41856 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41857 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41858 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41859 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41860 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41861 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41862 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41863 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41864 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41865 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41866 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41867 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41868 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41869 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41870 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41871 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41872 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41873 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41874 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41875 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41876 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41877 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41878 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41879 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41880 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41881 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41882 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41883 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41884 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41885 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41886 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41887 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41888 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41890 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41891 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41892 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41893 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41894 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41895 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41896 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41897 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41898 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41899 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41900 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41901 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41902 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41903 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41904 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41905 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41906 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41907 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41908 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41909 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41910 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41911 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41912 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41913 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41914 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41915 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41916 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41917 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41918 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41919 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41920 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41921 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41922 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41923 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41924 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41925 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41926 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41927 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41928 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41929 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951
41952 LTCC='$LTCC'
41953 LTCFLAGS='$LTCFLAGS'
41954 compiler='$compiler_DEFAULT'
41955
41956 # Quote evaled strings.
41957 for var in SED \
41958 GREP \
41959 EGREP \
41960 FGREP \
41961 LD \
41962 NM \
41963 LN_S \
41964 lt_SP2NL \
41965 lt_NL2SP \
41966 reload_flag \
41967 OBJDUMP \
41968 deplibs_check_method \
41969 file_magic_cmd \
41970 AR \
41971 AR_FLAGS \
41972 STRIP \
41973 RANLIB \
41974 CC \
41975 CFLAGS \
41976 compiler \
41977 lt_cv_sys_global_symbol_pipe \
41978 lt_cv_sys_global_symbol_to_cdecl \
41979 lt_cv_sys_global_symbol_to_c_name_address \
41980 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41981 SHELL \
41982 ECHO \
41983 lt_prog_compiler_no_builtin_flag \
41984 lt_prog_compiler_wl \
41985 lt_prog_compiler_pic \
41986 lt_prog_compiler_static \
41987 lt_cv_prog_compiler_c_o \
41988 need_locks \
41989 DSYMUTIL \
41990 NMEDIT \
41991 LIPO \
41992 OTOOL \
41993 OTOOL64 \
41994 shrext_cmds \
41995 export_dynamic_flag_spec \
41996 whole_archive_flag_spec \
41997 compiler_needs_object \
41998 with_gnu_ld \
41999 allow_undefined_flag \
42000 no_undefined_flag \
42001 hardcode_libdir_flag_spec \
42002 hardcode_libdir_flag_spec_ld \
42003 hardcode_libdir_separator \
42004 fix_srcfile_path \
42005 exclude_expsyms \
42006 include_expsyms \
42007 file_list_spec \
42008 variables_saved_for_relink \
42009 libname_spec \
42010 library_names_spec \
42011 soname_spec \
42012 finish_eval \
42013 old_striplib \
42014 striplib \
42015 compiler_lib_search_dirs \
42016 predep_objects \
42017 postdep_objects \
42018 predeps \
42019 postdeps \
42020 compiler_lib_search_path \
42021 LD_CXX \
42022 compiler_CXX \
42023 lt_prog_compiler_no_builtin_flag_CXX \
42024 lt_prog_compiler_wl_CXX \
42025 lt_prog_compiler_pic_CXX \
42026 lt_prog_compiler_static_CXX \
42027 lt_cv_prog_compiler_c_o_CXX \
42028 export_dynamic_flag_spec_CXX \
42029 whole_archive_flag_spec_CXX \
42030 compiler_needs_object_CXX \
42031 with_gnu_ld_CXX \
42032 allow_undefined_flag_CXX \
42033 no_undefined_flag_CXX \
42034 hardcode_libdir_flag_spec_CXX \
42035 hardcode_libdir_flag_spec_ld_CXX \
42036 hardcode_libdir_separator_CXX \
42037 fix_srcfile_path_CXX \
42038 exclude_expsyms_CXX \
42039 include_expsyms_CXX \
42040 file_list_spec_CXX \
42041 compiler_lib_search_dirs_CXX \
42042 predep_objects_CXX \
42043 postdep_objects_CXX \
42044 predeps_CXX \
42045 postdeps_CXX \
42046 compiler_lib_search_path_CXX; do
42047     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42048     *[\\\\\\\`\\"\\\$]*)
42049       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42050       ;;
42051     *)
42052       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42053       ;;
42054     esac
42055 done
42056
42057 # Double-quote double-evaled strings.
42058 for var in reload_cmds \
42059 old_postinstall_cmds \
42060 old_postuninstall_cmds \
42061 old_archive_cmds \
42062 extract_expsyms_cmds \
42063 old_archive_from_new_cmds \
42064 old_archive_from_expsyms_cmds \
42065 archive_cmds \
42066 archive_expsym_cmds \
42067 module_cmds \
42068 module_expsym_cmds \
42069 export_symbols_cmds \
42070 prelink_cmds \
42071 postinstall_cmds \
42072 postuninstall_cmds \
42073 finish_cmds \
42074 sys_lib_search_path_spec \
42075 sys_lib_dlsearch_path_spec \
42076 old_archive_cmds_CXX \
42077 old_archive_from_new_cmds_CXX \
42078 old_archive_from_expsyms_cmds_CXX \
42079 archive_cmds_CXX \
42080 archive_expsym_cmds_CXX \
42081 module_cmds_CXX \
42082 module_expsym_cmds_CXX \
42083 export_symbols_cmds_CXX \
42084 prelink_cmds_CXX; do
42085     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42086     *[\\\\\\\`\\"\\\$]*)
42087       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42088       ;;
42089     *)
42090       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42091       ;;
42092     esac
42093 done
42094
42095 # Fix-up fallback echo if it was mangled by the above quoting rules.
42096 case \$lt_ECHO in
42097 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42098   ;;
42099 esac
42100
42101 ac_aux_dir='$ac_aux_dir'
42102 xsi_shell='$xsi_shell'
42103 lt_shell_append='$lt_shell_append'
42104
42105 # See if we are running on zsh, and set the options which allow our
42106 # commands through without removal of \ escapes INIT.
42107 if test -n "\${ZSH_VERSION+set}" ; then
42108    setopt NO_GLOB_SUBST
42109 fi
42110
42111
42112     PACKAGE='$PACKAGE'
42113     VERSION='$VERSION'
42114     TIMESTAMP='$TIMESTAMP'
42115     RM='$RM'
42116     ofile='$ofile'
42117
42118
42119
42120
42121
42122 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42123     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42124     # from automake.
42125     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42126     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42127     LINGUAS="${LINGUAS-%UNSET%}"
42128
42129
42130 _ACEOF
42131
42132 cat >>$CONFIG_STATUS <<\_ACEOF
42133
42134 # Handling of arguments.
42135 for ac_config_target in $ac_config_targets
42136 do
42137   case $ac_config_target in
42138     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42139     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42140     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42141     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42142     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42143     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42144     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42145     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42146     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42147     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42148     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42149     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42150     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42151     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42152     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42153     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42154     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42155     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42156     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42157     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42158     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42159     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42160     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42161     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42162     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42163     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42164     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42165     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42166     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42167     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42168     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42169     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42170     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42171     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42172     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42173     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42174     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42175     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42176     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42177     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42178     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42179     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42180     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42181     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42182     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42183     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42184     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42185     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42186     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42187     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42188     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42189     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42190     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42191     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42192     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42193     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42194     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42195     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42196     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42197     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42198     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42199     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42200     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42201     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42202     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42203     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42204     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42205     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42206     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42207     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42208     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42209     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42210     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42211     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42212     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42213     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42214     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42215     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42216     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42217     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42218     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42219     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42220     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42221     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42222     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42223     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42224     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42225     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42226     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42227     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42228     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42229     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42230     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42231     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42232     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42233     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42234     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42235     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42236     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42237     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42238     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42239     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42240     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42241     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42242     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42243     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42244     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42245     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42246     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42247     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42248     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42249     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42250     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42251
42252   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42254    { (exit 1); exit 1; }; };;
42255   esac
42256 done
42257
42258
42259 # If the user did not use the arguments to specify the items to instantiate,
42260 # then the envvar interface is used.  Set only those that are not.
42261 # We use the long form for the default assignment because of an extremely
42262 # bizarre bug on SunOS 4.1.3.
42263 if $ac_need_defaults; then
42264   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42265   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42266   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42267 fi
42268
42269 # Have a temporary directory for convenience.  Make it in the build tree
42270 # simply because there is no reason against having it here, and in addition,
42271 # creating and moving files from /tmp can sometimes cause problems.
42272 # Hook for its removal unless debugging.
42273 # Note that there is a small window in which the directory will not be cleaned:
42274 # after its creation but before its name has been assigned to `$tmp'.
42275 $debug ||
42276 {
42277   tmp=
42278   trap 'exit_status=$?
42279   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42280 ' 0
42281   trap '{ (exit 1); exit 1; }' 1 2 13 15
42282 }
42283 # Create a (secure) tmp directory for tmp files.
42284
42285 {
42286   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42287   test -n "$tmp" && test -d "$tmp"
42288 }  ||
42289 {
42290   tmp=./conf$$-$RANDOM
42291   (umask 077 && mkdir "$tmp")
42292 } ||
42293 {
42294    echo "$me: cannot create a temporary directory in ." >&2
42295    { (exit 1); exit 1; }
42296 }
42297
42298 #
42299 # Set up the sed scripts for CONFIG_FILES section.
42300 #
42301
42302 # No need to generate the scripts if there are no CONFIG_FILES.
42303 # This happens for instance when ./config.status config.h
42304 if test -n "$CONFIG_FILES"; then
42305
42306 _ACEOF
42307
42308 # Create sed commands to just substitute file output variables.
42309
42310 # Remaining file output variables are in a fragment that also has non-file
42311 # output varibles.
42312
42313
42314
42315 ac_delim='%!_!# '
42316 for ac_last_try in false false false false false :; do
42317   cat >conf$$subs.sed <<_ACEOF
42318 SHELL!$SHELL$ac_delim
42319 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42320 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42321 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42322 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42323 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42324 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42325 exec_prefix!$exec_prefix$ac_delim
42326 prefix!$prefix$ac_delim
42327 program_transform_name!$program_transform_name$ac_delim
42328 bindir!$bindir$ac_delim
42329 sbindir!$sbindir$ac_delim
42330 libexecdir!$libexecdir$ac_delim
42331 datarootdir!$datarootdir$ac_delim
42332 datadir!$datadir$ac_delim
42333 sysconfdir!$sysconfdir$ac_delim
42334 sharedstatedir!$sharedstatedir$ac_delim
42335 localstatedir!$localstatedir$ac_delim
42336 includedir!$includedir$ac_delim
42337 oldincludedir!$oldincludedir$ac_delim
42338 docdir!$docdir$ac_delim
42339 infodir!$infodir$ac_delim
42340 htmldir!$htmldir$ac_delim
42341 dvidir!$dvidir$ac_delim
42342 pdfdir!$pdfdir$ac_delim
42343 psdir!$psdir$ac_delim
42344 libdir!$libdir$ac_delim
42345 localedir!$localedir$ac_delim
42346 mandir!$mandir$ac_delim
42347 DEFS!$DEFS$ac_delim
42348 ECHO_C!$ECHO_C$ac_delim
42349 ECHO_N!$ECHO_N$ac_delim
42350 ECHO_T!$ECHO_T$ac_delim
42351 LIBS!$LIBS$ac_delim
42352 build_alias!$build_alias$ac_delim
42353 host_alias!$host_alias$ac_delim
42354 target_alias!$target_alias$ac_delim
42355 BUILD_DIR!$BUILD_DIR$ac_delim
42356 TOP_DIR!$TOP_DIR$ac_delim
42357 TRUEPRG!$TRUEPRG$ac_delim
42358 FALSEPRG!$FALSEPRG$ac_delim
42359 VERSION!$VERSION$ac_delim
42360 DATE!$DATE$ac_delim
42361 LSMDATE!$LSMDATE$ac_delim
42362 BACULA!$BACULA$ac_delim
42363 post_host!$post_host$ac_delim
42364 CC!$CC$ac_delim
42365 CFLAGS!$CFLAGS$ac_delim
42366 LDFLAGS!$LDFLAGS$ac_delim
42367 CPPFLAGS!$CPPFLAGS$ac_delim
42368 ac_ct_CC!$ac_ct_CC$ac_delim
42369 EXEEXT!$EXEEXT$ac_delim
42370 OBJEXT!$OBJEXT$ac_delim
42371 CXX!$CXX$ac_delim
42372 CXXFLAGS!$CXXFLAGS$ac_delim
42373 ac_ct_CXX!$ac_ct_CXX$ac_delim
42374 CPP!$CPP$ac_delim
42375 GREP!$GREP$ac_delim
42376 EGREP!$EGREP$ac_delim
42377 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42378 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42379 INSTALL_DATA!$INSTALL_DATA$ac_delim
42380 MV!$MV$ac_delim
42381 REMOVE!$REMOVE$ac_delim
42382 CP!$CP$ac_delim
42383 SED!$SED$ac_delim
42384 ECHO!$ECHO$ac_delim
42385 CMP!$CMP$ac_delim
42386 TBL!$TBL$ac_delim
42387 AR!$AR$ac_delim
42388 OPENSSL!$OPENSSL$ac_delim
42389 MTX!$MTX$ac_delim
42390 DD!$DD$ac_delim
42391 MKISOFS!$MKISOFS$ac_delim
42392 PYTHON!$PYTHON$ac_delim
42393 GROWISOFS!$GROWISOFS$ac_delim
42394 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42395 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42396 PKGCONFIG!$PKGCONFIG$ac_delim
42397 QMAKE!$QMAKE$ac_delim
42398 QMAKEQT4!$QMAKEQT4$ac_delim
42399 WXCONFIG!$WXCONFIG$ac_delim
42400 WXFLAGS!$WXFLAGS$ac_delim
42401 CDRECORD!$CDRECORD$ac_delim
42402 PIDOF!$PIDOF$ac_delim
42403 AWK!$AWK$ac_delim
42404 ARFLAGS!$ARFLAGS$ac_delim
42405 MAKE_SHELL!$MAKE_SHELL$ac_delim
42406 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42407 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42408 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42409 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42410 LIBTOOL!$LIBTOOL$ac_delim
42411 build!$build$ac_delim
42412 _ACEOF
42413
42414   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42415     break
42416   elif $ac_last_try; then
42417     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42418 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42419    { (exit 1); exit 1; }; }
42420   else
42421     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42422   fi
42423 done
42424
42425 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42426 if test -n "$ac_eof"; then
42427   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42428   ac_eof=`expr $ac_eof + 1`
42429 fi
42430
42431 cat >>$CONFIG_STATUS <<_ACEOF
42432 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42434 /^[      ]*@MCOMMON@[    ]*$/{
42435 r $MCOMMON
42436 d
42437 }
42438 _ACEOF
42439 sed '
42440 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42441 s/^/s,@/; s/!/@,|#_!!_#|/
42442 :n
42443 t n
42444 s/'"$ac_delim"'$/,g/; t
42445 s/$/\\/; p
42446 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42447 ' >>$CONFIG_STATUS <conf$$subs.sed
42448 rm -f conf$$subs.sed
42449 cat >>$CONFIG_STATUS <<_ACEOF
42450 CEOF$ac_eof
42451 _ACEOF
42452
42453
42454 ac_delim='%!_!# '
42455 for ac_last_try in false false false false false :; do
42456   cat >conf$$subs.sed <<_ACEOF
42457 build_cpu!$build_cpu$ac_delim
42458 build_vendor!$build_vendor$ac_delim
42459 build_os!$build_os$ac_delim
42460 host!$host$ac_delim
42461 host_cpu!$host_cpu$ac_delim
42462 host_vendor!$host_vendor$ac_delim
42463 host_os!$host_os$ac_delim
42464 FGREP!$FGREP$ac_delim
42465 LD!$LD$ac_delim
42466 DUMPBIN!$DUMPBIN$ac_delim
42467 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42468 NM!$NM$ac_delim
42469 LN_S!$LN_S$ac_delim
42470 OBJDUMP!$OBJDUMP$ac_delim
42471 STRIP!$STRIP$ac_delim
42472 RANLIB!$RANLIB$ac_delim
42473 lt_ECHO!$lt_ECHO$ac_delim
42474 DSYMUTIL!$DSYMUTIL$ac_delim
42475 NMEDIT!$NMEDIT$ac_delim
42476 LIPO!$LIPO$ac_delim
42477 OTOOL!$OTOOL$ac_delim
42478 OTOOL64!$OTOOL64$ac_delim
42479 CXXCPP!$CXXCPP$ac_delim
42480 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42481 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42482 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42483 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42484 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42485 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42486 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42487 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42488 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42489 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42490 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42491 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42492 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42493 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42494 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42495 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42496 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42497 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42498 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42499 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42500 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42501 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42502 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42503 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42504 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42505 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42506 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42507 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42508 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42509 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42510 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42511 SET_MAKE!$SET_MAKE$ac_delim
42512 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42513 USE_NLS!$USE_NLS$ac_delim
42514 MSGFMT!$MSGFMT$ac_delim
42515 GMSGFMT!$GMSGFMT$ac_delim
42516 XGETTEXT!$XGETTEXT$ac_delim
42517 MSGMERGE!$MSGMERGE$ac_delim
42518 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42519 LIBICONV!$LIBICONV$ac_delim
42520 LTLIBICONV!$LTLIBICONV$ac_delim
42521 INTLLIBS!$INTLLIBS$ac_delim
42522 LIBINTL!$LIBINTL$ac_delim
42523 LTLIBINTL!$LTLIBINTL$ac_delim
42524 POSUB!$POSUB$ac_delim
42525 GLIBC2!$GLIBC2$ac_delim
42526 ALLOCA!$ALLOCA$ac_delim
42527 GLIBC21!$GLIBC21$ac_delim
42528 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42529 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42530 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42531 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42532 INTLBISON!$INTLBISON$ac_delim
42533 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42534 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42535 CATOBJEXT!$CATOBJEXT$ac_delim
42536 DATADIRNAME!$DATADIRNAME$ac_delim
42537 INSTOBJEXT!$INSTOBJEXT$ac_delim
42538 GENCAT!$GENCAT$ac_delim
42539 INTLOBJS!$INTLOBJS$ac_delim
42540 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42541 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42542 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42543 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42544 GNOME_LIBS!$GNOME_LIBS$ac_delim
42545 GNOME_DIR!$GNOME_DIR$ac_delim
42546 BAT_DIR!$BAT_DIR$ac_delim
42547 QWT_INC!$QWT_INC$ac_delim
42548 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42549 QWT_LIB!$QWT_LIB$ac_delim
42550 QWT!$QWT$ac_delim
42551 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42552 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42553 WX_DIR!$WX_DIR$ac_delim
42554 _ACEOF
42555
42556   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42557     break
42558   elif $ac_last_try; then
42559     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42560 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42561    { (exit 1); exit 1; }; }
42562   else
42563     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42564   fi
42565 done
42566
42567 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42568 if test -n "$ac_eof"; then
42569   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42570   ac_eof=`expr $ac_eof + 1`
42571 fi
42572
42573 cat >>$CONFIG_STATUS <<_ACEOF
42574 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42576 _ACEOF
42577 sed '
42578 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42579 s/^/s,@/; s/!/@,|#_!!_#|/
42580 :n
42581 t n
42582 s/'"$ac_delim"'$/,g/; t
42583 s/$/\\/; p
42584 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42585 ' >>$CONFIG_STATUS <conf$$subs.sed
42586 rm -f conf$$subs.sed
42587 cat >>$CONFIG_STATUS <<_ACEOF
42588 CEOF$ac_eof
42589 _ACEOF
42590
42591
42592 ac_delim='%!_!# '
42593 for ac_last_try in false false false false false :; do
42594   cat >conf$$subs.sed <<_ACEOF
42595 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42596 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42597 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42598 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42599 STATIC_FD!$STATIC_FD$ac_delim
42600 STATIC_SD!$STATIC_SD$ac_delim
42601 STATIC_DIR!$STATIC_DIR$ac_delim
42602 STATIC_CONS!$STATIC_CONS$ac_delim
42603 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42604 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42605 ALL_DIRS!$ALL_DIRS$ac_delim
42606 DIRD_DIR!$DIRD_DIR$ac_delim
42607 DIR_TOOLS!$DIR_TOOLS$ac_delim
42608 STORED_DIR!$STORED_DIR$ac_delim
42609 CONS_INC!$CONS_INC$ac_delim
42610 CONS_OBJ!$CONS_OBJ$ac_delim
42611 CONS_SRC!$CONS_SRC$ac_delim
42612 CONS_LIBS!$CONS_LIBS$ac_delim
42613 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42614 READLINE_SRC!$READLINE_SRC$ac_delim
42615 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42616 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42617 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42618 OPENSSL_INC!$OPENSSL_INC$ac_delim
42619 working_dir!$working_dir$ac_delim
42620 archivedir!$archivedir$ac_delim
42621 scriptdir!$scriptdir$ac_delim
42622 plugindir!$plugindir$ac_delim
42623 dump_email!$dump_email$ac_delim
42624 job_email!$job_email$ac_delim
42625 smtp_host!$smtp_host$ac_delim
42626 piddir!$piddir$ac_delim
42627 subsysdir!$subsysdir$ac_delim
42628 baseport!$baseport$ac_delim
42629 dir_port!$dir_port$ac_delim
42630 fd_port!$fd_port$ac_delim
42631 sd_port!$sd_port$ac_delim
42632 dir_password!$dir_password$ac_delim
42633 fd_password!$fd_password$ac_delim
42634 sd_password!$sd_password$ac_delim
42635 mon_dir_password!$mon_dir_password$ac_delim
42636 mon_fd_password!$mon_fd_password$ac_delim
42637 mon_sd_password!$mon_sd_password$ac_delim
42638 db_name!$db_name$ac_delim
42639 db_user!$db_user$ac_delim
42640 db_password!$db_password$ac_delim
42641 db_port!$db_port$ac_delim
42642 dir_user!$dir_user$ac_delim
42643 dir_group!$dir_group$ac_delim
42644 sd_user!$sd_user$ac_delim
42645 sd_group!$sd_group$ac_delim
42646 fd_user!$fd_user$ac_delim
42647 fd_group!$fd_group$ac_delim
42648 SBINPERM!$SBINPERM$ac_delim
42649 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42650 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42651 SQL_BINDIR!$SQL_BINDIR$ac_delim
42652 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42653 uncomment_dbi!$uncomment_dbi$ac_delim
42654 DB_PROG!$DB_PROG$ac_delim
42655 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42656 cats!$cats$ac_delim
42657 DB_TYPE!$DB_TYPE$ac_delim
42658 GETCONF!$GETCONF$ac_delim
42659 XMKMF!$XMKMF$ac_delim
42660 X_CFLAGS!$X_CFLAGS$ac_delim
42661 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42662 X_LIBS!$X_LIBS$ac_delim
42663 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42664 LIBOBJS!$LIBOBJS$ac_delim
42665 FDLIBS!$FDLIBS$ac_delim
42666 DEBUG!$DEBUG$ac_delim
42667 DINCLUDE!$DINCLUDE$ac_delim
42668 DLIB!$DLIB$ac_delim
42669 DB_LIBS!$DB_LIBS$ac_delim
42670 WCFLAGS!$WCFLAGS$ac_delim
42671 WLDFLAGS!$WLDFLAGS$ac_delim
42672 WRAPLIBS!$WRAPLIBS$ac_delim
42673 OBJLIST!$OBJLIST$ac_delim
42674 hostname!$hostname$ac_delim
42675 TAPEDRIVE!$TAPEDRIVE$ac_delim
42676 PSCMD!$PSCMD$ac_delim
42677 WIN32!$WIN32$ac_delim
42678 MACOSX!$MACOSX$ac_delim
42679 DISTNAME!$DISTNAME$ac_delim
42680 DISTVER!$DISTVER$ac_delim
42681 LTLIBOBJS!$LTLIBOBJS$ac_delim
42682 _ACEOF
42683
42684   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
42685     break
42686   elif $ac_last_try; then
42687     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42688 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42689    { (exit 1); exit 1; }; }
42690   else
42691     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42692   fi
42693 done
42694
42695 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42696 if test -n "$ac_eof"; then
42697   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42698   ac_eof=`expr $ac_eof + 1`
42699 fi
42700
42701 cat >>$CONFIG_STATUS <<_ACEOF
42702 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42704 _ACEOF
42705 sed '
42706 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42707 s/^/s,@/; s/!/@,|#_!!_#|/
42708 :n
42709 t n
42710 s/'"$ac_delim"'$/,g/; t
42711 s/$/\\/; p
42712 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42713 ' >>$CONFIG_STATUS <conf$$subs.sed
42714 rm -f conf$$subs.sed
42715 cat >>$CONFIG_STATUS <<_ACEOF
42716 :end
42717 s/|#_!!_#|//g
42718 CEOF$ac_eof
42719 _ACEOF
42720
42721
42722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42724 # trailing colons and then remove the whole line if VPATH becomes empty
42725 # (actually we leave an empty line to preserve line numbers).
42726 if test "x$srcdir" = x.; then
42727   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42728 s/:*\$(srcdir):*/:/
42729 s/:*\${srcdir}:*/:/
42730 s/:*@srcdir@:*/:/
42731 s/^\([^=]*=[     ]*\):*/\1/
42732 s/:*$//
42733 s/^[^=]*=[       ]*$//
42734 }'
42735 fi
42736
42737 cat >>$CONFIG_STATUS <<\_ACEOF
42738 fi # test -n "$CONFIG_FILES"
42739
42740
42741 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42742 do
42743   case $ac_tag in
42744   :[FHLC]) ac_mode=$ac_tag; continue;;
42745   esac
42746   case $ac_mode$ac_tag in
42747   :[FHL]*:*);;
42748   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42749 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42750    { (exit 1); exit 1; }; };;
42751   :[FH]-) ac_tag=-:-;;
42752   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42753   esac
42754   ac_save_IFS=$IFS
42755   IFS=:
42756   set x $ac_tag
42757   IFS=$ac_save_IFS
42758   shift
42759   ac_file=$1
42760   shift
42761
42762   case $ac_mode in
42763   :L) ac_source=$1;;
42764   :[FH])
42765     ac_file_inputs=
42766     for ac_f
42767     do
42768       case $ac_f in
42769       -) ac_f="$tmp/stdin";;
42770       *) # Look for the file first in the build tree, then in the source tree
42771          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42772          # because $ac_f cannot contain `:'.
42773          test -f "$ac_f" ||
42774            case $ac_f in
42775            [\\/$]*) false;;
42776            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42777            esac ||
42778            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42779 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42780    { (exit 1); exit 1; }; };;
42781       esac
42782       ac_file_inputs="$ac_file_inputs $ac_f"
42783     done
42784
42785     # Let's still pretend it is `configure' which instantiates (i.e., don't
42786     # use $as_me), people would be surprised to read:
42787     #    /* config.h.  Generated by config.status.  */
42788     configure_input="Generated from "`IFS=:
42789           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42790     if test x"$ac_file" != x-; then
42791       configure_input="$ac_file.  $configure_input"
42792       { echo "$as_me:$LINENO: creating $ac_file" >&5
42793 echo "$as_me: creating $ac_file" >&6;}
42794     fi
42795
42796     case $ac_tag in
42797     *:-:* | *:-) cat >"$tmp/stdin";;
42798     esac
42799     ;;
42800   esac
42801
42802   ac_dir=`$as_dirname -- "$ac_file" ||
42803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42804          X"$ac_file" : 'X\(//\)[^/]' \| \
42805          X"$ac_file" : 'X\(//\)$' \| \
42806          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42807 echo X"$ac_file" |
42808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42809             s//\1/
42810             q
42811           }
42812           /^X\(\/\/\)[^/].*/{
42813             s//\1/
42814             q
42815           }
42816           /^X\(\/\/\)$/{
42817             s//\1/
42818             q
42819           }
42820           /^X\(\/\).*/{
42821             s//\1/
42822             q
42823           }
42824           s/.*/./; q'`
42825   { as_dir="$ac_dir"
42826   case $as_dir in #(
42827   -*) as_dir=./$as_dir;;
42828   esac
42829   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42830     as_dirs=
42831     while :; do
42832       case $as_dir in #(
42833       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42834       *) as_qdir=$as_dir;;
42835       esac
42836       as_dirs="'$as_qdir' $as_dirs"
42837       as_dir=`$as_dirname -- "$as_dir" ||
42838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42839          X"$as_dir" : 'X\(//\)[^/]' \| \
42840          X"$as_dir" : 'X\(//\)$' \| \
42841          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42842 echo X"$as_dir" |
42843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42844             s//\1/
42845             q
42846           }
42847           /^X\(\/\/\)[^/].*/{
42848             s//\1/
42849             q
42850           }
42851           /^X\(\/\/\)$/{
42852             s//\1/
42853             q
42854           }
42855           /^X\(\/\).*/{
42856             s//\1/
42857             q
42858           }
42859           s/.*/./; q'`
42860       test -d "$as_dir" && break
42861     done
42862     test -z "$as_dirs" || eval "mkdir $as_dirs"
42863   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42864 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42865    { (exit 1); exit 1; }; }; }
42866   ac_builddir=.
42867
42868 case "$ac_dir" in
42869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42870 *)
42871   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42872   # A ".." for each directory in $ac_dir_suffix.
42873   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42874   case $ac_top_builddir_sub in
42875   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42876   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42877   esac ;;
42878 esac
42879 ac_abs_top_builddir=$ac_pwd
42880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42881 # for backward compatibility:
42882 ac_top_builddir=$ac_top_build_prefix
42883
42884 case $srcdir in
42885   .)  # We are building in place.
42886     ac_srcdir=.
42887     ac_top_srcdir=$ac_top_builddir_sub
42888     ac_abs_top_srcdir=$ac_pwd ;;
42889   [\\/]* | ?:[\\/]* )  # Absolute name.
42890     ac_srcdir=$srcdir$ac_dir_suffix;
42891     ac_top_srcdir=$srcdir
42892     ac_abs_top_srcdir=$srcdir ;;
42893   *) # Relative name.
42894     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42895     ac_top_srcdir=$ac_top_build_prefix$srcdir
42896     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42897 esac
42898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42899
42900
42901   case $ac_mode in
42902   :F)
42903   #
42904   # CONFIG_FILE
42905   #
42906
42907   case $INSTALL in
42908   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42909   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42910   esac
42911 _ACEOF
42912
42913 cat >>$CONFIG_STATUS <<\_ACEOF
42914 # If the template does not know about datarootdir, expand it.
42915 # FIXME: This hack should be removed a few years after 2.60.
42916 ac_datarootdir_hack=; ac_datarootdir_seen=
42917
42918 case `sed -n '/datarootdir/ {
42919   p
42920   q
42921 }
42922 /@datadir@/p
42923 /@docdir@/p
42924 /@infodir@/p
42925 /@localedir@/p
42926 /@mandir@/p
42927 ' $ac_file_inputs` in
42928 *datarootdir*) ac_datarootdir_seen=yes;;
42929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42930   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42931 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42932 _ACEOF
42933 cat >>$CONFIG_STATUS <<_ACEOF
42934   ac_datarootdir_hack='
42935   s&@datadir@&$datadir&g
42936   s&@docdir@&$docdir&g
42937   s&@infodir@&$infodir&g
42938   s&@localedir@&$localedir&g
42939   s&@mandir@&$mandir&g
42940     s&\\\${datarootdir}&$datarootdir&g' ;;
42941 esac
42942 _ACEOF
42943
42944 # Neutralize VPATH when `$srcdir' = `.'.
42945 # Shell code in configure.ac might set extrasub.
42946 # FIXME: do we really want to maintain this feature?
42947 cat >>$CONFIG_STATUS <<_ACEOF
42948   sed "$ac_vpsub
42949 $extrasub
42950 _ACEOF
42951 cat >>$CONFIG_STATUS <<\_ACEOF
42952 :t
42953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42954 s&@configure_input@&$configure_input&;t t
42955 s&@top_builddir@&$ac_top_builddir_sub&;t t
42956 s&@srcdir@&$ac_srcdir&;t t
42957 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42958 s&@top_srcdir@&$ac_top_srcdir&;t t
42959 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42960 s&@builddir@&$ac_builddir&;t t
42961 s&@abs_builddir@&$ac_abs_builddir&;t t
42962 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42963 s&@INSTALL@&$ac_INSTALL&;t t
42964 $ac_datarootdir_hack
42965 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42966
42967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42968   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42969   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42970   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42971 which seems to be undefined.  Please make sure it is defined." >&5
42972 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42973 which seems to be undefined.  Please make sure it is defined." >&2;}
42974
42975   rm -f "$tmp/stdin"
42976   case $ac_file in
42977   -) cat "$tmp/out"; rm -f "$tmp/out";;
42978   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
42979   esac
42980  ;;
42981   :H)
42982   #
42983   # CONFIG_HEADER
42984   #
42985 _ACEOF
42986
42987 # Transform confdefs.h into a sed script `conftest.defines', that
42988 # substitutes the proper values into config.h.in to produce config.h.
42989 rm -f conftest.defines conftest.tail
42990 # First, append a space to every undef/define line, to ease matching.
42991 echo 's/$/ /' >conftest.defines
42992 # Then, protect against being on the right side of a sed subst, or in
42993 # an unquoted here document, in config.status.  If some macros were
42994 # called several times there might be several #defines for the same
42995 # symbol, which is useless.  But do not sort them, since the last
42996 # AC_DEFINE must be honored.
42997 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42998 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
42999 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43000 # PARAMS is the parameter list in the macro definition--in most cases, it's
43001 # just an empty string.
43002 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43003 ac_dB='\\)[      (].*,\\1define\\2'
43004 ac_dC=' '
43005 ac_dD=' ,'
43006
43007 uniq confdefs.h |
43008   sed -n '
43009         t rset
43010         :rset
43011         s/^[     ]*#[    ]*define[       ][      ]*//
43012         t ok
43013         d
43014         :ok
43015         s/[\\&,]/\\&/g
43016         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43017         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43018   ' >>conftest.defines
43019
43020 # Remove the space that was appended to ease matching.
43021 # Then replace #undef with comments.  This is necessary, for
43022 # example, in the case of _POSIX_SOURCE, which is predefined and required
43023 # on some systems where configure will not decide to define it.
43024 # (The regexp can be short, since the line contains either #define or #undef.)
43025 echo 's/ $//
43026 s,^[     #]*u.*,/* & */,' >>conftest.defines
43027
43028 # Break up conftest.defines:
43029 ac_max_sed_lines=50
43030
43031 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43032 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43033 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43034 # et cetera.
43035 ac_in='$ac_file_inputs'
43036 ac_out='"$tmp/out1"'
43037 ac_nxt='"$tmp/out2"'
43038
43039 while :
43040 do
43041   # Write a here document:
43042     cat >>$CONFIG_STATUS <<_ACEOF
43043     # First, check the format of the line:
43044     cat >"\$tmp/defines.sed" <<\\CEOF
43045 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43046 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43047 b
43048 :def
43049 _ACEOF
43050   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43051   echo 'CEOF
43052     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43053   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43054   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43055   grep . conftest.tail >/dev/null || break
43056   rm -f conftest.defines
43057   mv conftest.tail conftest.defines
43058 done
43059 rm -f conftest.defines conftest.tail
43060
43061 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43062 cat >>$CONFIG_STATUS <<\_ACEOF
43063   if test x"$ac_file" != x-; then
43064     echo "/* $configure_input  */" >"$tmp/config.h"
43065     cat "$ac_result" >>"$tmp/config.h"
43066     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43067       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43068 echo "$as_me: $ac_file is unchanged" >&6;}
43069     else
43070       rm -f $ac_file
43071       mv "$tmp/config.h" $ac_file
43072     fi
43073   else
43074     echo "/* $configure_input  */"
43075     cat "$ac_result"
43076   fi
43077   rm -f "$tmp/out12"
43078  ;;
43079
43080   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43081 echo "$as_me: executing $ac_file commands" >&6;}
43082  ;;
43083   esac
43084
43085
43086   case $ac_file$ac_mode in
43087     "libtool":C)
43088
43089     # See if we are running on zsh, and set the options which allow our
43090     # commands through without removal of \ escapes.
43091     if test -n "${ZSH_VERSION+set}" ; then
43092       setopt NO_GLOB_SUBST
43093     fi
43094
43095     cfgfile="${ofile}T"
43096     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43097     $RM "$cfgfile"
43098
43099     cat <<_LT_EOF >> "$cfgfile"
43100 #! $SHELL
43101
43102 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43103 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43104 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43105 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43106 #
43107 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43108 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43109 #   Written by Gordon Matzigkeit, 1996
43110 #
43111 #   This file is part of GNU Libtool.
43112 #
43113 # GNU Libtool is free software; you can redistribute it and/or
43114 # modify it under the terms of the GNU General Public License as
43115 # published by the Free Software Foundation; either version 2 of
43116 # the License, or (at your option) any later version.
43117 #
43118 # As a special exception to the GNU General Public License,
43119 # if you distribute this file as part of a program or library that
43120 # is built using GNU Libtool, you may include this file under the
43121 # same distribution terms that you use for the rest of that program.
43122 #
43123 # GNU Libtool is distributed in the hope that it will be useful,
43124 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43125 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43126 # GNU General Public License for more details.
43127 #
43128 # You should have received a copy of the GNU General Public License
43129 # along with GNU Libtool; see the file COPYING.  If not, a copy
43130 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43131 # obtained by writing to the Free Software Foundation, Inc.,
43132 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43133
43134
43135 # The names of the tagged configurations supported by this script.
43136 available_tags="CXX "
43137
43138 # ### BEGIN LIBTOOL CONFIG
43139
43140 # Which release of libtool.m4 was used?
43141 macro_version=$macro_version
43142 macro_revision=$macro_revision
43143
43144 # Whether or not to build shared libraries.
43145 build_libtool_libs=$enable_shared
43146
43147 # Whether or not to build static libraries.
43148 build_old_libs=$enable_static
43149
43150 # What type of objects to build.
43151 pic_mode=$pic_mode
43152
43153 # Whether or not to optimize for fast installation.
43154 fast_install=$enable_fast_install
43155
43156 # The host system.
43157 host_alias=$host_alias
43158 host=$host
43159 host_os=$host_os
43160
43161 # The build system.
43162 build_alias=$build_alias
43163 build=$build
43164 build_os=$build_os
43165
43166 # A sed program that does not truncate output.
43167 SED=$lt_SED
43168
43169 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43170 Xsed="\$SED -e 1s/^X//"
43171
43172 # A grep program that handles long lines.
43173 GREP=$lt_GREP
43174
43175 # An ERE matcher.
43176 EGREP=$lt_EGREP
43177
43178 # A literal string matcher.
43179 FGREP=$lt_FGREP
43180
43181 # A BSD- or MS-compatible name lister.
43182 NM=$lt_NM
43183
43184 # Whether we need soft or hard links.
43185 LN_S=$lt_LN_S
43186
43187 # What is the maximum length of a command?
43188 max_cmd_len=$max_cmd_len
43189
43190 # Object file suffix (normally "o").
43191 objext=$ac_objext
43192
43193 # Executable file suffix (normally "").
43194 exeext=$exeext
43195
43196 # whether the shell understands "unset".
43197 lt_unset=$lt_unset
43198
43199 # turn spaces into newlines.
43200 SP2NL=$lt_lt_SP2NL
43201
43202 # turn newlines into spaces.
43203 NL2SP=$lt_lt_NL2SP
43204
43205 # How to create reloadable object files.
43206 reload_flag=$lt_reload_flag
43207 reload_cmds=$lt_reload_cmds
43208
43209 # An object symbol dumper.
43210 OBJDUMP=$lt_OBJDUMP
43211
43212 # Method to check whether dependent libraries are shared objects.
43213 deplibs_check_method=$lt_deplibs_check_method
43214
43215 # Command to use when deplibs_check_method == "file_magic".
43216 file_magic_cmd=$lt_file_magic_cmd
43217
43218 # The archiver.
43219 AR=$lt_AR
43220 AR_FLAGS=$lt_AR_FLAGS
43221
43222 # A symbol stripping program.
43223 STRIP=$lt_STRIP
43224
43225 # Commands used to install an old-style archive.
43226 RANLIB=$lt_RANLIB
43227 old_postinstall_cmds=$lt_old_postinstall_cmds
43228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43229
43230 # A C compiler.
43231 LTCC=$lt_CC
43232
43233 # LTCC compiler flags.
43234 LTCFLAGS=$lt_CFLAGS
43235
43236 # Take the output of nm and produce a listing of raw symbols and C names.
43237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43238
43239 # Transform the output of nm in a proper C declaration.
43240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43241
43242 # Transform the output of nm in a C name address pair.
43243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43244
43245 # Transform the output of nm in a C name address pair when lib prefix is needed.
43246 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43247
43248 # The name of the directory that contains temporary libtool files.
43249 objdir=$objdir
43250
43251 # Shell to use when invoking shell scripts.
43252 SHELL=$lt_SHELL
43253
43254 # An echo program that does not interpret backslashes.
43255 ECHO=$lt_ECHO
43256
43257 # Used to examine libraries when file_magic_cmd begins with "file".
43258 MAGIC_CMD=$MAGIC_CMD
43259
43260 # Must we lock files when doing compilation?
43261 need_locks=$lt_need_locks
43262
43263 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43264 DSYMUTIL=$lt_DSYMUTIL
43265
43266 # Tool to change global to local symbols on Mac OS X.
43267 NMEDIT=$lt_NMEDIT
43268
43269 # Tool to manipulate fat objects and archives on Mac OS X.
43270 LIPO=$lt_LIPO
43271
43272 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43273 OTOOL=$lt_OTOOL
43274
43275 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43276 OTOOL64=$lt_OTOOL64
43277
43278 # Old archive suffix (normally "a").
43279 libext=$libext
43280
43281 # Shared library suffix (normally ".so").
43282 shrext_cmds=$lt_shrext_cmds
43283
43284 # The commands to extract the exported symbol list from a shared archive.
43285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43286
43287 # Variables whose values should be saved in libtool wrapper scripts and
43288 # restored at link time.
43289 variables_saved_for_relink=$lt_variables_saved_for_relink
43290
43291 # Do we need the "lib" prefix for modules?
43292 need_lib_prefix=$need_lib_prefix
43293
43294 # Do we need a version for libraries?
43295 need_version=$need_version
43296
43297 # Library versioning type.
43298 version_type=$version_type
43299
43300 # Shared library runtime path variable.
43301 runpath_var=$runpath_var
43302
43303 # Shared library path variable.
43304 shlibpath_var=$shlibpath_var
43305
43306 # Is shlibpath searched before the hard-coded library search path?
43307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43308
43309 # Format of library name prefix.
43310 libname_spec=$lt_libname_spec
43311
43312 # List of archive names.  First name is the real one, the rest are links.
43313 # The last name is the one that the linker finds with -lNAME
43314 library_names_spec=$lt_library_names_spec
43315
43316 # The coded name of the library, if different from the real name.
43317 soname_spec=$lt_soname_spec
43318
43319 # Command to use after installation of a shared archive.
43320 postinstall_cmds=$lt_postinstall_cmds
43321
43322 # Command to use after uninstallation of a shared archive.
43323 postuninstall_cmds=$lt_postuninstall_cmds
43324
43325 # Commands used to finish a libtool library installation in a directory.
43326 finish_cmds=$lt_finish_cmds
43327
43328 # As "finish_cmds", except a single script fragment to be evaled but
43329 # not shown.
43330 finish_eval=$lt_finish_eval
43331
43332 # Whether we should hardcode library paths into libraries.
43333 hardcode_into_libs=$hardcode_into_libs
43334
43335 # Compile-time system search path for libraries.
43336 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43337
43338 # Run-time system search path for libraries.
43339 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43340
43341 # Whether dlopen is supported.
43342 dlopen_support=$enable_dlopen
43343
43344 # Whether dlopen of programs is supported.
43345 dlopen_self=$enable_dlopen_self
43346
43347 # Whether dlopen of statically linked programs is supported.
43348 dlopen_self_static=$enable_dlopen_self_static
43349
43350 # Commands to strip libraries.
43351 old_striplib=$lt_old_striplib
43352 striplib=$lt_striplib
43353
43354
43355 # The linker used to build libraries.
43356 LD=$lt_LD
43357
43358 # Commands used to build an old-style archive.
43359 old_archive_cmds=$lt_old_archive_cmds
43360
43361 # A language specific compiler.
43362 CC=$lt_compiler
43363
43364 # Is the compiler the GNU compiler?
43365 with_gcc=$GCC
43366
43367 # Compiler flag to turn off builtin functions.
43368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43369
43370 # How to pass a linker flag through the compiler.
43371 wl=$lt_lt_prog_compiler_wl
43372
43373 # Additional compiler flags for building library objects.
43374 pic_flag=$lt_lt_prog_compiler_pic
43375
43376 # Compiler flag to prevent dynamic linking.
43377 link_static_flag=$lt_lt_prog_compiler_static
43378
43379 # Does compiler simultaneously support -c and -o options?
43380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43381
43382 # Whether or not to add -lc for building shared libraries.
43383 build_libtool_need_lc=$archive_cmds_need_lc
43384
43385 # Whether or not to disallow shared libs when runtime libs are static.
43386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43387
43388 # Compiler flag to allow reflexive dlopens.
43389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43390
43391 # Compiler flag to generate shared objects directly from archives.
43392 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43393
43394 # Whether the compiler copes with passing no objects directly.
43395 compiler_needs_object=$lt_compiler_needs_object
43396
43397 # Create an old-style archive from a shared archive.
43398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43399
43400 # Create a temporary old-style archive to link instead of a shared archive.
43401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43402
43403 # Commands used to build a shared archive.
43404 archive_cmds=$lt_archive_cmds
43405 archive_expsym_cmds=$lt_archive_expsym_cmds
43406
43407 # Commands used to build a loadable module if different from building
43408 # a shared archive.
43409 module_cmds=$lt_module_cmds
43410 module_expsym_cmds=$lt_module_expsym_cmds
43411
43412 # Whether we are building with GNU ld or not.
43413 with_gnu_ld=$lt_with_gnu_ld
43414
43415 # Flag that allows shared libraries with undefined symbols to be built.
43416 allow_undefined_flag=$lt_allow_undefined_flag
43417
43418 # Flag that enforces no undefined symbols.
43419 no_undefined_flag=$lt_no_undefined_flag
43420
43421 # Flag to hardcode \$libdir into a binary during linking.
43422 # This must work even if \$libdir does not exist
43423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43424
43425 # If ld is used when linking, flag to hardcode \$libdir into a binary
43426 # during linking.  This must work even if \$libdir does not exist.
43427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43428
43429 # Whether we need a single "-rpath" flag with a separated argument.
43430 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43431
43432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43433 # DIR into the resulting binary.
43434 hardcode_direct=$hardcode_direct
43435
43436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43437 # DIR into the resulting binary and the resulting library dependency is
43438 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43439 # library is relocated.
43440 hardcode_direct_absolute=$hardcode_direct_absolute
43441
43442 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43443 # into the resulting binary.
43444 hardcode_minus_L=$hardcode_minus_L
43445
43446 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43447 # into the resulting binary.
43448 hardcode_shlibpath_var=$hardcode_shlibpath_var
43449
43450 # Set to "yes" if building a shared library automatically hardcodes DIR
43451 # into the library and all subsequent libraries and executables linked
43452 # against it.
43453 hardcode_automatic=$hardcode_automatic
43454
43455 # Set to yes if linker adds runtime paths of dependent libraries
43456 # to runtime path list.
43457 inherit_rpath=$inherit_rpath
43458
43459 # Whether libtool must link a program against all its dependency libraries.
43460 link_all_deplibs=$link_all_deplibs
43461
43462 # Fix the shell variable \$srcfile for the compiler.
43463 fix_srcfile_path=$lt_fix_srcfile_path
43464
43465 # Set to "yes" if exported symbols are required.
43466 always_export_symbols=$always_export_symbols
43467
43468 # The commands to list exported symbols.
43469 export_symbols_cmds=$lt_export_symbols_cmds
43470
43471 # Symbols that should not be listed in the preloaded symbols.
43472 exclude_expsyms=$lt_exclude_expsyms
43473
43474 # Symbols that must always be exported.
43475 include_expsyms=$lt_include_expsyms
43476
43477 # Commands necessary for linking programs (against libraries) with templates.
43478 prelink_cmds=$lt_prelink_cmds
43479
43480 # Specify filename containing input files.
43481 file_list_spec=$lt_file_list_spec
43482
43483 # How to hardcode a shared library path into an executable.
43484 hardcode_action=$hardcode_action
43485
43486 # The directories searched by this compiler when creating a shared library.
43487 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43488
43489 # Dependencies to place before and after the objects being linked to
43490 # create a shared library.
43491 predep_objects=$lt_predep_objects
43492 postdep_objects=$lt_postdep_objects
43493 predeps=$lt_predeps
43494 postdeps=$lt_postdeps
43495
43496 # The library search path used internally by the compiler when linking
43497 # a shared library.
43498 compiler_lib_search_path=$lt_compiler_lib_search_path
43499
43500 # ### END LIBTOOL CONFIG
43501
43502 _LT_EOF
43503
43504   case $host_os in
43505   aix3*)
43506     cat <<\_LT_EOF >> "$cfgfile"
43507 # AIX sometimes has problems with the GCC collect2 program.  For some
43508 # reason, if we set the COLLECT_NAMES environment variable, the problems
43509 # vanish in a puff of smoke.
43510 if test "X${COLLECT_NAMES+set}" != Xset; then
43511   COLLECT_NAMES=
43512   export COLLECT_NAMES
43513 fi
43514 _LT_EOF
43515     ;;
43516   esac
43517
43518
43519 ltmain="$ac_aux_dir/ltmain.sh"
43520
43521
43522   # We use sed instead of cat because bash on DJGPP gets confused if
43523   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43524   # text mode, it properly converts lines to CR/LF.  This bash problem
43525   # is reportedly fixed, but why not run on old versions too?
43526   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43527     || (rm -f "$cfgfile"; exit 1)
43528
43529   case $xsi_shell in
43530   yes)
43531     cat << \_LT_EOF >> "$cfgfile"
43532
43533 # func_dirname file append nondir_replacement
43534 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43535 # otherwise set result to NONDIR_REPLACEMENT.
43536 func_dirname ()
43537 {
43538   case ${1} in
43539     */*) func_dirname_result="${1%/*}${2}" ;;
43540     *  ) func_dirname_result="${3}" ;;
43541   esac
43542 }
43543
43544 # func_basename file
43545 func_basename ()
43546 {
43547   func_basename_result="${1##*/}"
43548 }
43549
43550 # func_dirname_and_basename file append nondir_replacement
43551 # perform func_basename and func_dirname in a single function
43552 # call:
43553 #   dirname:  Compute the dirname of FILE.  If nonempty,
43554 #             add APPEND to the result, otherwise set result
43555 #             to NONDIR_REPLACEMENT.
43556 #             value returned in "$func_dirname_result"
43557 #   basename: Compute filename of FILE.
43558 #             value retuned in "$func_basename_result"
43559 # Implementation must be kept synchronized with func_dirname
43560 # and func_basename. For efficiency, we do not delegate to
43561 # those functions but instead duplicate the functionality here.
43562 func_dirname_and_basename ()
43563 {
43564   case ${1} in
43565     */*) func_dirname_result="${1%/*}${2}" ;;
43566     *  ) func_dirname_result="${3}" ;;
43567   esac
43568   func_basename_result="${1##*/}"
43569 }
43570
43571 # func_stripname prefix suffix name
43572 # strip PREFIX and SUFFIX off of NAME.
43573 # PREFIX and SUFFIX must not contain globbing or regex special
43574 # characters, hashes, percent signs, but SUFFIX may contain a leading
43575 # dot (in which case that matches only a dot).
43576 func_stripname ()
43577 {
43578   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43579   # positional parameters, so assign one to ordinary parameter first.
43580   func_stripname_result=${3}
43581   func_stripname_result=${func_stripname_result#"${1}"}
43582   func_stripname_result=${func_stripname_result%"${2}"}
43583 }
43584
43585 # func_opt_split
43586 func_opt_split ()
43587 {
43588   func_opt_split_opt=${1%%=*}
43589   func_opt_split_arg=${1#*=}
43590 }
43591
43592 # func_lo2o object
43593 func_lo2o ()
43594 {
43595   case ${1} in
43596     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43597     *)    func_lo2o_result=${1} ;;
43598   esac
43599 }
43600
43601 # func_xform libobj-or-source
43602 func_xform ()
43603 {
43604   func_xform_result=${1%.*}.lo
43605 }
43606
43607 # func_arith arithmetic-term...
43608 func_arith ()
43609 {
43610   func_arith_result=$(( $* ))
43611 }
43612
43613 # func_len string
43614 # STRING may not start with a hyphen.
43615 func_len ()
43616 {
43617   func_len_result=${#1}
43618 }
43619
43620 _LT_EOF
43621     ;;
43622   *) # Bourne compatible functions.
43623     cat << \_LT_EOF >> "$cfgfile"
43624
43625 # func_dirname file append nondir_replacement
43626 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43627 # otherwise set result to NONDIR_REPLACEMENT.
43628 func_dirname ()
43629 {
43630   # Extract subdirectory from the argument.
43631   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43632   if test "X$func_dirname_result" = "X${1}"; then
43633     func_dirname_result="${3}"
43634   else
43635     func_dirname_result="$func_dirname_result${2}"
43636   fi
43637 }
43638
43639 # func_basename file
43640 func_basename ()
43641 {
43642   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43643 }
43644
43645
43646 # func_stripname prefix suffix name
43647 # strip PREFIX and SUFFIX off of NAME.
43648 # PREFIX and SUFFIX must not contain globbing or regex special
43649 # characters, hashes, percent signs, but SUFFIX may contain a leading
43650 # dot (in which case that matches only a dot).
43651 # func_strip_suffix prefix name
43652 func_stripname ()
43653 {
43654   case ${2} in
43655     .*) func_stripname_result=`$ECHO "X${3}" \
43656            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43657     *)  func_stripname_result=`$ECHO "X${3}" \
43658            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43659   esac
43660 }
43661
43662 # sed scripts:
43663 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43664 my_sed_long_arg='1s/^-[^=]*=//'
43665
43666 # func_opt_split
43667 func_opt_split ()
43668 {
43669   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43670   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43671 }
43672
43673 # func_lo2o object
43674 func_lo2o ()
43675 {
43676   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43677 }
43678
43679 # func_xform libobj-or-source
43680 func_xform ()
43681 {
43682   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43683 }
43684
43685 # func_arith arithmetic-term...
43686 func_arith ()
43687 {
43688   func_arith_result=`expr "$@"`
43689 }
43690
43691 # func_len string
43692 # STRING may not start with a hyphen.
43693 func_len ()
43694 {
43695   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43696 }
43697
43698 _LT_EOF
43699 esac
43700
43701 case $lt_shell_append in
43702   yes)
43703     cat << \_LT_EOF >> "$cfgfile"
43704
43705 # func_append var value
43706 # Append VALUE to the end of shell variable VAR.
43707 func_append ()
43708 {
43709   eval "$1+=\$2"
43710 }
43711 _LT_EOF
43712     ;;
43713   *)
43714     cat << \_LT_EOF >> "$cfgfile"
43715
43716 # func_append var value
43717 # Append VALUE to the end of shell variable VAR.
43718 func_append ()
43719 {
43720   eval "$1=\$$1\$2"
43721 }
43722
43723 _LT_EOF
43724     ;;
43725   esac
43726
43727
43728   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43729     || (rm -f "$cfgfile"; exit 1)
43730
43731   mv -f "$cfgfile" "$ofile" ||
43732     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43733   chmod +x "$ofile"
43734
43735
43736     cat <<_LT_EOF >> "$ofile"
43737
43738 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43739
43740 # The linker used to build libraries.
43741 LD=$lt_LD_CXX
43742
43743 # Commands used to build an old-style archive.
43744 old_archive_cmds=$lt_old_archive_cmds_CXX
43745
43746 # A language specific compiler.
43747 CC=$lt_compiler_CXX
43748
43749 # Is the compiler the GNU compiler?
43750 with_gcc=$GCC_CXX
43751
43752 # Compiler flag to turn off builtin functions.
43753 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43754
43755 # How to pass a linker flag through the compiler.
43756 wl=$lt_lt_prog_compiler_wl_CXX
43757
43758 # Additional compiler flags for building library objects.
43759 pic_flag=$lt_lt_prog_compiler_pic_CXX
43760
43761 # Compiler flag to prevent dynamic linking.
43762 link_static_flag=$lt_lt_prog_compiler_static_CXX
43763
43764 # Does compiler simultaneously support -c and -o options?
43765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43766
43767 # Whether or not to add -lc for building shared libraries.
43768 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43769
43770 # Whether or not to disallow shared libs when runtime libs are static.
43771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43772
43773 # Compiler flag to allow reflexive dlopens.
43774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43775
43776 # Compiler flag to generate shared objects directly from archives.
43777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43778
43779 # Whether the compiler copes with passing no objects directly.
43780 compiler_needs_object=$lt_compiler_needs_object_CXX
43781
43782 # Create an old-style archive from a shared archive.
43783 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43784
43785 # Create a temporary old-style archive to link instead of a shared archive.
43786 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43787
43788 # Commands used to build a shared archive.
43789 archive_cmds=$lt_archive_cmds_CXX
43790 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43791
43792 # Commands used to build a loadable module if different from building
43793 # a shared archive.
43794 module_cmds=$lt_module_cmds_CXX
43795 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43796
43797 # Whether we are building with GNU ld or not.
43798 with_gnu_ld=$lt_with_gnu_ld_CXX
43799
43800 # Flag that allows shared libraries with undefined symbols to be built.
43801 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43802
43803 # Flag that enforces no undefined symbols.
43804 no_undefined_flag=$lt_no_undefined_flag_CXX
43805
43806 # Flag to hardcode \$libdir into a binary during linking.
43807 # This must work even if \$libdir does not exist
43808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43809
43810 # If ld is used when linking, flag to hardcode \$libdir into a binary
43811 # during linking.  This must work even if \$libdir does not exist.
43812 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43813
43814 # Whether we need a single "-rpath" flag with a separated argument.
43815 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43816
43817 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43818 # DIR into the resulting binary.
43819 hardcode_direct=$hardcode_direct_CXX
43820
43821 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43822 # DIR into the resulting binary and the resulting library dependency is
43823 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43824 # library is relocated.
43825 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43826
43827 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43828 # into the resulting binary.
43829 hardcode_minus_L=$hardcode_minus_L_CXX
43830
43831 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43832 # into the resulting binary.
43833 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43834
43835 # Set to "yes" if building a shared library automatically hardcodes DIR
43836 # into the library and all subsequent libraries and executables linked
43837 # against it.
43838 hardcode_automatic=$hardcode_automatic_CXX
43839
43840 # Set to yes if linker adds runtime paths of dependent libraries
43841 # to runtime path list.
43842 inherit_rpath=$inherit_rpath_CXX
43843
43844 # Whether libtool must link a program against all its dependency libraries.
43845 link_all_deplibs=$link_all_deplibs_CXX
43846
43847 # Fix the shell variable \$srcfile for the compiler.
43848 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43849
43850 # Set to "yes" if exported symbols are required.
43851 always_export_symbols=$always_export_symbols_CXX
43852
43853 # The commands to list exported symbols.
43854 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43855
43856 # Symbols that should not be listed in the preloaded symbols.
43857 exclude_expsyms=$lt_exclude_expsyms_CXX
43858
43859 # Symbols that must always be exported.
43860 include_expsyms=$lt_include_expsyms_CXX
43861
43862 # Commands necessary for linking programs (against libraries) with templates.
43863 prelink_cmds=$lt_prelink_cmds_CXX
43864
43865 # Specify filename containing input files.
43866 file_list_spec=$lt_file_list_spec_CXX
43867
43868 # How to hardcode a shared library path into an executable.
43869 hardcode_action=$hardcode_action_CXX
43870
43871 # The directories searched by this compiler when creating a shared library.
43872 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43873
43874 # Dependencies to place before and after the objects being linked to
43875 # create a shared library.
43876 predep_objects=$lt_predep_objects_CXX
43877 postdep_objects=$lt_postdep_objects_CXX
43878 predeps=$lt_predeps_CXX
43879 postdeps=$lt_postdeps_CXX
43880
43881 # The library search path used internally by the compiler when linking
43882 # a shared library.
43883 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43884
43885 # ### END LIBTOOL TAG CONFIG: CXX
43886 _LT_EOF
43887
43888  ;;
43889     "default-1":C)
43890     for ac_file in $CONFIG_FILES; do
43891       # Support "outfile[:infile[:infile...]]"
43892       case "$ac_file" in
43893         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43894       esac
43895       # PO directories have a Makefile.in generated from Makefile.in.in.
43896       case "$ac_file" in */Makefile.in)
43897         # Adjust a relative srcdir.
43898         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43899         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43900         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43901         # In autoconf-2.13 it is called $ac_given_srcdir.
43902         # In autoconf-2.50 it is called $srcdir.
43903         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43904         case "$ac_given_srcdir" in
43905           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43906           /*) top_srcdir="$ac_given_srcdir" ;;
43907           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
43908         esac
43909         # Treat a directory as a PO directory if and only if it has a
43910         # POTFILES.in file. This allows packages to have multiple PO
43911         # directories under different names or in different locations.
43912         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43913           rm -f "$ac_dir/POTFILES"
43914           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43915           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43916           POMAKEFILEDEPS="POTFILES.in"
43917           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43918           # on $ac_dir but don't depend on user-specified configuration
43919           # parameters.
43920           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43921             # The LINGUAS file contains the set of available languages.
43922             if test -n "$OBSOLETE_ALL_LINGUAS"; then
43923               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43924             fi
43925             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43926             # Hide the ALL_LINGUAS assigment from automake.
43927             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43928             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43929           else
43930             # The set of available languages was given in configure.in.
43931             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43932           fi
43933           # Compute POFILES
43934           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43935           # Compute UPDATEPOFILES
43936           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43937           # Compute DUMMYPOFILES
43938           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43939           # Compute GMOFILES
43940           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43941           case "$ac_given_srcdir" in
43942             .) srcdirpre= ;;
43943             *) srcdirpre='$(srcdir)/' ;;
43944           esac
43945           POFILES=
43946           UPDATEPOFILES=
43947           DUMMYPOFILES=
43948           GMOFILES=
43949           for lang in $ALL_LINGUAS; do
43950             POFILES="$POFILES $srcdirpre$lang.po"
43951             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43952             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43953             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43954           done
43955           # CATALOGS depends on both $ac_dir and the user's LINGUAS
43956           # environment variable.
43957           INST_LINGUAS=
43958           if test -n "$ALL_LINGUAS"; then
43959             for presentlang in $ALL_LINGUAS; do
43960               useit=no
43961               if test "%UNSET%" != "$LINGUAS"; then
43962                 desiredlanguages="$LINGUAS"
43963               else
43964                 desiredlanguages="$ALL_LINGUAS"
43965               fi
43966               for desiredlang in $desiredlanguages; do
43967                 # Use the presentlang catalog if desiredlang is
43968                 #   a. equal to presentlang, or
43969                 #   b. a variant of presentlang (because in this case,
43970                 #      presentlang can be used as a fallback for messages
43971                 #      which are not translated in the desiredlang catalog).
43972                 case "$desiredlang" in
43973                   "$presentlang"*) useit=yes;;
43974                 esac
43975               done
43976               if test $useit = yes; then
43977                 INST_LINGUAS="$INST_LINGUAS $presentlang"
43978               fi
43979             done
43980           fi
43981           CATALOGS=
43982           if test -n "$INST_LINGUAS"; then
43983             for lang in $INST_LINGUAS; do
43984               CATALOGS="$CATALOGS $lang.gmo"
43985             done
43986           fi
43987           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
43988           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"
43989           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
43990             if test -f "$f"; then
43991               case "$f" in
43992                 *.orig | *.bak | *~) ;;
43993                 *) cat "$f" >> "$ac_dir/Makefile" ;;
43994               esac
43995             fi
43996           done
43997         fi
43998         ;;
43999       esac
44000     done ;;
44001     "default":C)
44002  ;;
44003
44004   esac
44005 done # for ac_tag
44006
44007
44008 { (exit 0); exit 0; }
44009 _ACEOF
44010 chmod +x $CONFIG_STATUS
44011 ac_clean_files=$ac_clean_files_save
44012
44013
44014 # configure is writing to config.log, and then calls config.status.
44015 # config.status does its own redirection, appending to config.log.
44016 # Unfortunately, on DOS this fails, as config.log is still kept open
44017 # by configure, so config.status won't be able to write to it; its
44018 # output is simply discarded.  So we exec the FD to /dev/null,
44019 # effectively closing config.log, so it can be properly (re)opened and
44020 # appended to by config.status.  When coming back to configure, we
44021 # need to make the FD available again.
44022 if test "$no_create" != yes; then
44023   ac_cs_success=:
44024   ac_config_status_args=
44025   test "$silent" = yes &&
44026     ac_config_status_args="$ac_config_status_args --quiet"
44027   exec 5>/dev/null
44028   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44029   exec 5>>config.log
44030   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44031   # would make configure fail if this is the last instruction.
44032   $ac_cs_success || { (exit 1); exit 1; }
44033 fi
44034
44035
44036 if test "${support_bat}" = "yes" ; then
44037    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44038       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44039       exit 1
44040    fi
44041
44042    QMAKEBIN="qmake"
44043
44044    if test "x$QMAKEQT4" != "xnone"; then
44045        QMAKEBIN=qmake-qt4
44046    fi
44047
44048    cd src/qt-console
44049    chmod 755 install_conf_file build-depkgs-qt-console
44050    echo "Creating bat Makefile"
44051    $QMAKEBIN
44052    make clean
44053    cd ${BUILD_DIR}
44054 fi
44055
44056 if test X"$GCC" = "Xyes" ; then
44057   echo "Doing make of dependencies"
44058   ${MAKE:-make} depend
44059 fi
44060
44061 cd scripts
44062 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44063 chmod 755 dvd-handler dvd-simulator
44064 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44065 cd ..
44066
44067 c=updatedb
44068 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44069 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44070
44071 c=src/cats
44072
44073 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44074 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44075
44076 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44077 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44078
44079 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44080 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44081
44082 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44083 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44084
44085 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44086 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44087
44088 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44089 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44090
44091 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44092 chmod 755 $c/sqlite
44093 chmod 755 $c/mysql
44094
44095 chmod 755 src/win32/build-depkgs-mingw32
44096
44097 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44098    largefile_support="yes"
44099 fi
44100
44101 if test X"$GCC" = "Xyes" ; then
44102                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44103    if test "x${CCVERSION}" = "x" ; then
44104       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44105    fi
44106    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44107    if test x"${CXXVERSION}" = x ; then
44108       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44109    fi
44110 fi
44111
44112 if test "x${db_type}" = "xInternal" ; then
44113    echo " "
44114    echo " "
44115    echo "You have not specified either --enable-client-only or one of the"
44116    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44117    echo "  This is not permitted. Please reconfigure."
44118    echo " "
44119    echo "Aborting the configuration ..."
44120    echo " "
44121    echo " "
44122    exit 1
44123 fi
44124
44125 echo "
44126 Configuration on `date`:
44127
44128    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44129    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44130    Source code location:    ${srcdir}
44131    Install binaries:        ${sbindir}
44132    Install libraries:       ${libdir}
44133    Install config files:    ${sysconfdir}
44134    Scripts directory:       ${scriptdir}
44135    Archive directory:       ${archivedir}
44136    Working directory:       ${working_dir}
44137    PID directory:           ${piddir}
44138    Subsys directory:        ${subsysdir}
44139    Man directory:           ${mandir}
44140    Data directory:          ${datarootdir}
44141    C Compiler:              ${CC} ${CCVERSION}
44142    C++ Compiler:            ${CXX} ${CXXVERSION}
44143    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44144    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44145    Libraries:               ${LIBS}
44146    Statically Linked Tools: ${support_static_tools}
44147    Statically Linked FD:    ${support_static_fd}
44148    Statically Linked SD:    ${support_static_sd}
44149    Statically Linked DIR:   ${support_static_dir}
44150    Statically Linked CONS:  ${support_static_cons}
44151    Database type:           ${db_type}
44152    Database port:           ${db_port}
44153    Database lib:            ${DB_LIBS}
44154    Database name:           ${db_name}
44155    Database user:           ${db_user}
44156
44157    Job Output Email:        ${job_email}
44158    Traceback Email:         ${dump_email}
44159    SMTP Host Address:       ${smtp_host}
44160
44161    Director Port:           ${dir_port}
44162    File daemon Port:        ${fd_port}
44163    Storage daemon Port:     ${sd_port}
44164
44165    Director User:           ${dir_user}
44166    Director Group:          ${dir_group}
44167    Storage Daemon User:     ${sd_user}
44168    Storage DaemonGroup:     ${sd_group}
44169    File Daemon User:        ${fd_user}
44170    File Daemon Group:       ${fd_group}
44171
44172    SQL binaries Directory   ${SQL_BINDIR}
44173
44174    Large file support:      $largefile_support
44175    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44176    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44177    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44178    TLS support:             ${support_tls}
44179    Encryption support:      ${support_crypto}
44180    ZLIB support:            ${have_zlib}
44181    enable-smartalloc:       ${support_smartalloc}
44182    bat support:             ${support_bat} ${QWT_LDFLAGS}
44183    enable-gnome:            ${support_gnome} ${gnome_version}
44184    enable-bwx-console:      ${support_wx_console} ${wx_version}
44185    enable-tray-monitor:     ${support_tray_monitor}
44186    client-only:             ${build_client_only}
44187    build-dird:              ${build_dird}
44188    build-stored:            ${build_stored}
44189    ACL support:             ${have_acl}
44190    Python support:          ${support_python} ${PYTHON_LIBS}
44191    Batch insert enabled:    ${support_batch_insert}
44192
44193   " > config.out
44194
44195 cat config.out