]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Rebuild configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="src/version.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='LTLIBOBJS
788 DISTVER
789 DISTNAME
790 MACOSX
791 WIN32
792 PSCMD
793 TAPEDRIVE
794 OBJLIST
795 WRAPLIBS
796 WLDFLAGS
797 WCFLAGS
798 DB_LIBS
799 DLIB
800 DINCLUDE
801 DEBUG
802 FDLIBS
803 CAP_LIBS
804 ZLIBS
805 LIBOBJS
806 X_EXTRA_LIBS
807 X_LIBS
808 X_PRE_LIBS
809 X_CFLAGS
810 XMKMF
811 GETCONF
812 DB_TYPE
813 cats
814 DB_PROG_LIB
815 DB_PROG
816 uncomment_dbi
817 DBI_DBD_DRIVERDIR
818 SQL_BINDIR
819 SQL_INCLUDE
820 SQL_LFLAGS
821 SBINPERM
822 fd_group
823 fd_user
824 sd_group
825 sd_user
826 dir_group
827 dir_user
828 db_port
829 db_password
830 db_user
831 db_name
832 mon_sd_password
833 mon_fd_password
834 mon_dir_password
835 sd_password
836 fd_password
837 dir_password
838 sd_port
839 fd_port
840 dir_port
841 baseport
842 subsysdir
843 piddir
844 smtp_host
845 job_email
846 dump_email
847 plugindir
848 logdir
849 bsrdir
850 scriptdir
851 hostname
852 basename
853 archivedir
854 working_dir
855 OPENSSL_INC
856 OPENSSL_LIBS
857 PYTHON_INCDIR
858 PYTHON_LIBS
859 READLINE_SRC
860 CONS_LDFLAGS
861 CONS_LIBS
862 CONS_SRC
863 CONS_OBJ
864 CONS_INC
865 STORED_DIR
866 DIR_TOOLS
867 DIRD_DIR
868 ALL_DIRS
869 STATIC_WX_CONS
870 STATIC_GNOME_CONS
871 STATIC_CONS
872 STATIC_DIR
873 STATIC_SD
874 STATIC_FD
875 TTOOL_LDFLAGS
876 TRAY_MONITOR_DIR
877 TRAY_MONITOR_LDFLAGS
878 TRAY_MONITOR_CPPFLAGS
879 WX_DIR
880 WXCONS_LDFLAGS
881 WXCONS_CPPFLAGS
882 QWT
883 QWT_LIB
884 QWT_LDFLAGS
885 QWT_INC
886 BAT_DIR
887 INTL_LIBTOOL_SUFFIX_PREFIX
888 INTLOBJS
889 GENCAT
890 INSTOBJEXT
891 DATADIRNAME
892 CATOBJEXT
893 USE_INCLUDED_LIBINTL
894 BUILD_INCLUDED_LIBINTL
895 INTLBISON
896 HAVE_WPRINTF
897 HAVE_SNPRINTF
898 HAVE_ASPRINTF
899 HAVE_POSIX_PRINTF
900 GLIBC21
901 ALLOCA
902 GLIBC2
903 POSUB
904 LTLIBINTL
905 LIBINTL
906 INTLLIBS
907 LTLIBICONV
908 LIBICONV
909 INTL_MACOSX_LIBS
910 MSGMERGE
911 XGETTEXT
912 GMSGFMT
913 MSGFMT
914 USE_NLS
915 MKINSTALLDIRS
916 SET_MAKE
917 HAVE_DARWIN_OS_FALSE
918 HAVE_DARWIN_OS_TRUE
919 HAVE_IRIX_OS_FALSE
920 HAVE_IRIX_OS_TRUE
921 HAVE_SGI_OS_FALSE
922 HAVE_SGI_OS_TRUE
923 HAVE_BSDI_OS_FALSE
924 HAVE_BSDI_OS_TRUE
925 HAVE_OPENBSD_OS_FALSE
926 HAVE_OPENBSD_OS_TRUE
927 HAVE_NETBSD_OS_FALSE
928 HAVE_NETBSD_OS_TRUE
929 HAVE_FREEBSD_OS_FALSE
930 HAVE_FREEBSD_OS_TRUE
931 HAVE_LINUX_OS_FALSE
932 HAVE_LINUX_OS_TRUE
933 HAVE_HPUX_OS_FALSE
934 HAVE_HPUX_OS_TRUE
935 HAVE_AIX_OS_FALSE
936 HAVE_AIX_OS_TRUE
937 HAVE_OSF1_OS_FALSE
938 HAVE_OSF1_OS_TRUE
939 HAVE_SUN_OS_FALSE
940 HAVE_SUN_OS_TRUE
941 INCLUDE_UNINSTALL_TARGET
942 INCLUDE_INSTALL_TARGET
943 FD_PLUGIN_DIR
944 QMAKE_LIBTOOL
945 LIBTOOL_CLEAN_TARGET
946 LIBTOOL_UNINSTALL_TARGET
947 LIBTOOL_INSTALL_TARGET
948 DEFAULT_SHARED_OBJECT_TYPE
949 DEFAULT_ARCHIVE_TYPE
950 DEFAULT_OBJECT_TYPE
951 CXXCPP
952 OTOOL64
953 OTOOL
954 LIPO
955 NMEDIT
956 DSYMUTIL
957 lt_ECHO
958 RANLIB
959 STRIP
960 OBJDUMP
961 LN_S
962 NM
963 ac_ct_DUMPBIN
964 DUMPBIN
965 LD
966 FGREP
967 host_os
968 host_vendor
969 host_cpu
970 host
971 build_os
972 build_vendor
973 build_cpu
974 build
975 LIBTOOL
976 LOCAL_DEFS
977 LOCAL_LDFLAGS
978 LOCAL_CFLAGS
979 LOCAL_LIBS
980 MAKE_SHELL
981 ARFLAGS
982 AWK
983 PIDOF
984 CDRECORD
985 WXFLAGS
986 WXCONFIG
987 GMAKE
988 QMAKE
989 PKGCONFIG
990 DVDRWFORMAT
991 DVDRWMEDIAINFO
992 GROWISOFS
993 PYTHON
994 MKISOFS
995 DD
996 MTX
997 OPENSSL
998 AR
999 TBL
1000 CMP
1001 ECHO
1002 SED
1003 CP
1004 REMOVE
1005 MV
1006 INSTALL_DATA
1007 INSTALL_SCRIPT
1008 INSTALL_PROGRAM
1009 EGREP
1010 GREP
1011 CPP
1012 ac_ct_CXX
1013 CXXFLAGS
1014 CXX
1015 OBJEXT
1016 EXEEXT
1017 ac_ct_CC
1018 CPPFLAGS
1019 LDFLAGS
1020 CFLAGS
1021 CC
1022 LIBBACFIND_LT_RELEASE
1023 LIBBACSQL_LT_RELEASE
1024 LIBBACPY_LT_RELEASE
1025 LIBBACCFG_LT_RELEASE
1026 LIBBAC_LT_RELEASE
1027 BDB_VERSION
1028 post_host
1029 BACULA
1030 LSMDATE
1031 DATE
1032 VERSION
1033 FALSEPRG
1034 TRUEPRG
1035 WIN32TOPDIR
1036 WIN32MAINDIR
1037 WIN32BUILDDIR
1038 TOP_DIR
1039 BUILD_DIR
1040 target_alias
1041 host_alias
1042 build_alias
1043 LIBS
1044 ECHO_T
1045 ECHO_N
1046 ECHO_C
1047 DEFS
1048 mandir
1049 localedir
1050 libdir
1051 psdir
1052 pdfdir
1053 dvidir
1054 htmldir
1055 infodir
1056 docdir
1057 oldincludedir
1058 includedir
1059 localstatedir
1060 sharedstatedir
1061 sysconfdir
1062 datadir
1063 datarootdir
1064 libexecdir
1065 sbindir
1066 bindir
1067 program_transform_name
1068 prefix
1069 exec_prefix
1070 PACKAGE_BUGREPORT
1071 PACKAGE_STRING
1072 PACKAGE_VERSION
1073 PACKAGE_TARNAME
1074 PACKAGE_NAME
1075 PATH_SEPARATOR
1076 SHELL'
1077 ac_subst_files='MCOMMON'
1078 ac_user_opts='
1079 enable_option_checking
1080 enable_libtool
1081 enable_shared
1082 enable_static
1083 with_pic
1084 enable_fast_install
1085 with_gnu_ld
1086 enable_libtool_lock
1087 enable_includes
1088 enable_nls
1089 enable_rpath
1090 with_libiconv_prefix
1091 with_libintl_prefix
1092 with_included_gettext
1093 enable_gnome
1094 enable_bat
1095 enable_bwx_console
1096 enable_tray_monitor
1097 enable_smartalloc
1098 enable_lockmgr
1099 enable_static_tools
1100 enable_static_fd
1101 enable_static_sd
1102 enable_static_dir
1103 enable_static_cons
1104 enable_client_only
1105 enable_build_dird
1106 enable_build_stored
1107 enable_conio
1108 enable_ipv6
1109 enable_readline
1110 with_readline
1111 with_python
1112 with_tcp_wrappers
1113 with_openssl
1114 with_working_dir
1115 with_archivedir
1116 with_basename
1117 with_hostname
1118 with_scriptdir
1119 with_bsrdir
1120 with_logdir
1121 with_plugindir
1122 with_dump_email
1123 with_job_email
1124 with_smtp_host
1125 with_pid_dir
1126 with_subsys_dir
1127 with_baseport
1128 with_dir_password
1129 with_fd_password
1130 with_sd_password
1131 with_mon_dir_password
1132 with_mon_fd_password
1133 with_mon_sd_password
1134 with_db_name
1135 with_db_user
1136 with_db_password
1137 with_db_port
1138 with_dir_user
1139 with_dir_group
1140 with_sd_user
1141 with_sd_group
1142 with_fd_user
1143 with_fd_group
1144 with_sbin_perm
1145 with_postgresql
1146 with_mysql
1147 with_embedded_mysql
1148 with_ingres
1149 with_sqlite3
1150 with_dbi
1151 with_dbi_driver
1152 enable_batch_insert
1153 enable_largefile
1154 with_x
1155 enable_acl
1156 enable_xattr
1157 '
1158       ac_precious_vars='build_alias
1159 host_alias
1160 target_alias
1161 CC
1162 CFLAGS
1163 LDFLAGS
1164 LIBS
1165 CPPFLAGS
1166 CXX
1167 CXXFLAGS
1168 CCC
1169 CPP
1170 WXCONFIG
1171 WXFLAGS
1172 CXXCPP
1173 XMKMF'
1174
1175
1176 # Initialize some variables set by options.
1177 ac_init_help=
1178 ac_init_version=false
1179 ac_unrecognized_opts=
1180 ac_unrecognized_sep=
1181 # The variables have the same names as the options, with
1182 # dashes changed to underlines.
1183 cache_file=/dev/null
1184 exec_prefix=NONE
1185 no_create=
1186 no_recursion=
1187 prefix=NONE
1188 program_prefix=NONE
1189 program_suffix=NONE
1190 program_transform_name=s,x,x,
1191 silent=
1192 site=
1193 srcdir=
1194 verbose=
1195 x_includes=NONE
1196 x_libraries=NONE
1197
1198 # Installation directory options.
1199 # These are left unexpanded so users can "make install exec_prefix=/foo"
1200 # and all the variables that are supposed to be based on exec_prefix
1201 # by default will actually change.
1202 # Use braces instead of parens because sh, perl, etc. also accept them.
1203 # (The list follows the same order as the GNU Coding Standards.)
1204 bindir='${exec_prefix}/bin'
1205 sbindir='${exec_prefix}/sbin'
1206 libexecdir='${exec_prefix}/libexec'
1207 datarootdir='${prefix}/share'
1208 datadir='${datarootdir}'
1209 sysconfdir='${prefix}/etc'
1210 sharedstatedir='${prefix}/com'
1211 localstatedir='${prefix}/var'
1212 includedir='${prefix}/include'
1213 oldincludedir='/usr/include'
1214 docdir='${datarootdir}/doc/${PACKAGE}'
1215 infodir='${datarootdir}/info'
1216 htmldir='${docdir}'
1217 dvidir='${docdir}'
1218 pdfdir='${docdir}'
1219 psdir='${docdir}'
1220 libdir='${exec_prefix}/lib'
1221 localedir='${datarootdir}/locale'
1222 mandir='${datarootdir}/man'
1223
1224 ac_prev=
1225 ac_dashdash=
1226 for ac_option
1227 do
1228   # If the previous option needs an argument, assign it.
1229   if test -n "$ac_prev"; then
1230     eval $ac_prev=\$ac_option
1231     ac_prev=
1232     continue
1233   fi
1234
1235   case $ac_option in
1236   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1237   *)    ac_optarg=yes ;;
1238   esac
1239
1240   # Accept the important Cygnus configure options, so we can diagnose typos.
1241
1242   case $ac_dashdash$ac_option in
1243   --)
1244     ac_dashdash=yes ;;
1245
1246   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1247     ac_prev=bindir ;;
1248   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1249     bindir=$ac_optarg ;;
1250
1251   -build | --build | --buil | --bui | --bu)
1252     ac_prev=build_alias ;;
1253   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1254     build_alias=$ac_optarg ;;
1255
1256   -cache-file | --cache-file | --cache-fil | --cache-fi \
1257   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1258     ac_prev=cache_file ;;
1259   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1260   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1261     cache_file=$ac_optarg ;;
1262
1263   --config-cache | -C)
1264     cache_file=config.cache ;;
1265
1266   -datadir | --datadir | --datadi | --datad)
1267     ac_prev=datadir ;;
1268   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1269     datadir=$ac_optarg ;;
1270
1271   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1272   | --dataroo | --dataro | --datar)
1273     ac_prev=datarootdir ;;
1274   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1275   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1276     datarootdir=$ac_optarg ;;
1277
1278   -disable-* | --disable-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287       *"
1288 "enable_$ac_useropt"
1289 "*) ;;
1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1291          ac_unrecognized_sep=', ';;
1292     esac
1293     eval enable_$ac_useropt=no ;;
1294
1295   -docdir | --docdir | --docdi | --doc | --do)
1296     ac_prev=docdir ;;
1297   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1298     docdir=$ac_optarg ;;
1299
1300   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1301     ac_prev=dvidir ;;
1302   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1303     dvidir=$ac_optarg ;;
1304
1305   -enable-* | --enable-*)
1306     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1310    { (exit 1); exit 1; }; }
1311     ac_useropt_orig=$ac_useropt
1312     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313     case $ac_user_opts in
1314       *"
1315 "enable_$ac_useropt"
1316 "*) ;;
1317       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1318          ac_unrecognized_sep=', ';;
1319     esac
1320     eval enable_$ac_useropt=\$ac_optarg ;;
1321
1322   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1323   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1324   | --exec | --exe | --ex)
1325     ac_prev=exec_prefix ;;
1326   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1327   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1328   | --exec=* | --exe=* | --ex=*)
1329     exec_prefix=$ac_optarg ;;
1330
1331   -gas | --gas | --ga | --g)
1332     # Obsolete; use --with-gas.
1333     with_gas=yes ;;
1334
1335   -help | --help | --hel | --he | -h)
1336     ac_init_help=long ;;
1337   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1338     ac_init_help=recursive ;;
1339   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1340     ac_init_help=short ;;
1341
1342   -host | --host | --hos | --ho)
1343     ac_prev=host_alias ;;
1344   -host=* | --host=* | --hos=* | --ho=*)
1345     host_alias=$ac_optarg ;;
1346
1347   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1348     ac_prev=htmldir ;;
1349   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1350   | --ht=*)
1351     htmldir=$ac_optarg ;;
1352
1353   -includedir | --includedir | --includedi | --included | --include \
1354   | --includ | --inclu | --incl | --inc)
1355     ac_prev=includedir ;;
1356   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1357   | --includ=* | --inclu=* | --incl=* | --inc=*)
1358     includedir=$ac_optarg ;;
1359
1360   -infodir | --infodir | --infodi | --infod | --info | --inf)
1361     ac_prev=infodir ;;
1362   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1363     infodir=$ac_optarg ;;
1364
1365   -libdir | --libdir | --libdi | --libd)
1366     ac_prev=libdir ;;
1367   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1368     libdir=$ac_optarg ;;
1369
1370   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1371   | --libexe | --libex | --libe)
1372     ac_prev=libexecdir ;;
1373   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1374   | --libexe=* | --libex=* | --libe=*)
1375     libexecdir=$ac_optarg ;;
1376
1377   -localedir | --localedir | --localedi | --localed | --locale)
1378     ac_prev=localedir ;;
1379   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1380     localedir=$ac_optarg ;;
1381
1382   -localstatedir | --localstatedir | --localstatedi | --localstated \
1383   | --localstate | --localstat | --localsta | --localst | --locals)
1384     ac_prev=localstatedir ;;
1385   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1386   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1387     localstatedir=$ac_optarg ;;
1388
1389   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1390     ac_prev=mandir ;;
1391   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1392     mandir=$ac_optarg ;;
1393
1394   -nfp | --nfp | --nf)
1395     # Obsolete; use --without-fp.
1396     with_fp=no ;;
1397
1398   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1399   | --no-cr | --no-c | -n)
1400     no_create=yes ;;
1401
1402   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1403   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1404     no_recursion=yes ;;
1405
1406   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1407   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1408   | --oldin | --oldi | --old | --ol | --o)
1409     ac_prev=oldincludedir ;;
1410   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1411   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1412   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1413     oldincludedir=$ac_optarg ;;
1414
1415   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1416     ac_prev=prefix ;;
1417   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1418     prefix=$ac_optarg ;;
1419
1420   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1421   | --program-pre | --program-pr | --program-p)
1422     ac_prev=program_prefix ;;
1423   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1424   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1425     program_prefix=$ac_optarg ;;
1426
1427   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1428   | --program-suf | --program-su | --program-s)
1429     ac_prev=program_suffix ;;
1430   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1431   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1432     program_suffix=$ac_optarg ;;
1433
1434   -program-transform-name | --program-transform-name \
1435   | --program-transform-nam | --program-transform-na \
1436   | --program-transform-n | --program-transform- \
1437   | --program-transform | --program-transfor \
1438   | --program-transfo | --program-transf \
1439   | --program-trans | --program-tran \
1440   | --progr-tra | --program-tr | --program-t)
1441     ac_prev=program_transform_name ;;
1442   -program-transform-name=* | --program-transform-name=* \
1443   | --program-transform-nam=* | --program-transform-na=* \
1444   | --program-transform-n=* | --program-transform-=* \
1445   | --program-transform=* | --program-transfor=* \
1446   | --program-transfo=* | --program-transf=* \
1447   | --program-trans=* | --program-tran=* \
1448   | --progr-tra=* | --program-tr=* | --program-t=*)
1449     program_transform_name=$ac_optarg ;;
1450
1451   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1452     ac_prev=pdfdir ;;
1453   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1454     pdfdir=$ac_optarg ;;
1455
1456   -psdir | --psdir | --psdi | --psd | --ps)
1457     ac_prev=psdir ;;
1458   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1459     psdir=$ac_optarg ;;
1460
1461   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1462   | -silent | --silent | --silen | --sile | --sil)
1463     silent=yes ;;
1464
1465   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1466     ac_prev=sbindir ;;
1467   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1468   | --sbi=* | --sb=*)
1469     sbindir=$ac_optarg ;;
1470
1471   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1472   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1473   | --sharedst | --shareds | --shared | --share | --shar \
1474   | --sha | --sh)
1475     ac_prev=sharedstatedir ;;
1476   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1477   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1478   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1479   | --sha=* | --sh=*)
1480     sharedstatedir=$ac_optarg ;;
1481
1482   -site | --site | --sit)
1483     ac_prev=site ;;
1484   -site=* | --site=* | --sit=*)
1485     site=$ac_optarg ;;
1486
1487   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1488     ac_prev=srcdir ;;
1489   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1490     srcdir=$ac_optarg ;;
1491
1492   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1493   | --syscon | --sysco | --sysc | --sys | --sy)
1494     ac_prev=sysconfdir ;;
1495   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1496   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1497     sysconfdir=$ac_optarg ;;
1498
1499   -target | --target | --targe | --targ | --tar | --ta | --t)
1500     ac_prev=target_alias ;;
1501   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1502     target_alias=$ac_optarg ;;
1503
1504   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1505     verbose=yes ;;
1506
1507   -version | --version | --versio | --versi | --vers | -V)
1508     ac_init_version=: ;;
1509
1510   -with-* | --with-*)
1511     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1512     # Reject names that are not valid shell variable names.
1513     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1514       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1515    { (exit 1); exit 1; }; }
1516     ac_useropt_orig=$ac_useropt
1517     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518     case $ac_user_opts in
1519       *"
1520 "with_$ac_useropt"
1521 "*) ;;
1522       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523          ac_unrecognized_sep=', ';;
1524     esac
1525     eval with_$ac_useropt=\$ac_optarg ;;
1526
1527   -without-* | --without-*)
1528     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529     # Reject names that are not valid shell variable names.
1530     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1531       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1532    { (exit 1); exit 1; }; }
1533     ac_useropt_orig=$ac_useropt
1534     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535     case $ac_user_opts in
1536       *"
1537 "with_$ac_useropt"
1538 "*) ;;
1539       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540          ac_unrecognized_sep=', ';;
1541     esac
1542     eval with_$ac_useropt=no ;;
1543
1544   --x)
1545     # Obsolete; use --with-x.
1546     with_x=yes ;;
1547
1548   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549   | --x-incl | --x-inc | --x-in | --x-i)
1550     ac_prev=x_includes ;;
1551   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553     x_includes=$ac_optarg ;;
1554
1555   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557     ac_prev=x_libraries ;;
1558   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560     x_libraries=$ac_optarg ;;
1561
1562   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1563 Try \`$0 --help' for more information." >&2
1564    { (exit 1); exit 1; }; }
1565     ;;
1566
1567   *=*)
1568     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1569     # Reject names that are not valid shell variable names.
1570     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1571       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1572    { (exit 1); exit 1; }; }
1573     eval $ac_envvar=\$ac_optarg
1574     export $ac_envvar ;;
1575
1576   *)
1577     # FIXME: should be removed in autoconf 3.0.
1578     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1581     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1582     ;;
1583
1584   esac
1585 done
1586
1587 if test -n "$ac_prev"; then
1588   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1589   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1590    { (exit 1); exit 1; }; }
1591 fi
1592
1593 if test -n "$ac_unrecognized_opts"; then
1594   case $enable_option_checking in
1595     no) ;;
1596     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1597    { (exit 1); exit 1; }; } ;;
1598     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1599   esac
1600 fi
1601
1602 # Check all directory arguments for consistency.
1603 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1604                 datadir sysconfdir sharedstatedir localstatedir includedir \
1605                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1606                 libdir localedir mandir
1607 do
1608   eval ac_val=\$$ac_var
1609   # Remove trailing slashes.
1610   case $ac_val in
1611     */ )
1612       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1613       eval $ac_var=\$ac_val;;
1614   esac
1615   # Be sure to have absolute directory names.
1616   case $ac_val in
1617     [\\/$]* | ?:[\\/]* )  continue;;
1618     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1619   esac
1620   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1621    { (exit 1); exit 1; }; }
1622 done
1623
1624 # There might be people who depend on the old broken behavior: `$host'
1625 # used to hold the argument of --host etc.
1626 # FIXME: To remove some day.
1627 build=$build_alias
1628 host=$host_alias
1629 target=$target_alias
1630
1631 # FIXME: To remove some day.
1632 if test "x$host_alias" != x; then
1633   if test "x$build_alias" = x; then
1634     cross_compiling=maybe
1635     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1636     If a cross compiler is detected then cross compile mode will be used." >&2
1637   elif test "x$build_alias" != "x$host_alias"; then
1638     cross_compiling=yes
1639   fi
1640 fi
1641
1642 ac_tool_prefix=
1643 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1644
1645 test "$silent" = yes && exec 6>/dev/null
1646
1647
1648 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1649 ac_ls_di=`ls -di .` &&
1650 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1651   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1652    { (exit 1); exit 1; }; }
1653 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1654   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1655    { (exit 1); exit 1; }; }
1656
1657
1658 # Find the source files, if location was not specified.
1659 if test -z "$srcdir"; then
1660   ac_srcdir_defaulted=yes
1661   # Try the directory containing this script, then the parent directory.
1662   ac_confdir=`$as_dirname -- "$as_myself" ||
1663 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1664          X"$as_myself" : 'X\(//\)[^/]' \| \
1665          X"$as_myself" : 'X\(//\)$' \| \
1666          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1667 $as_echo X"$as_myself" |
1668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1669             s//\1/
1670             q
1671           }
1672           /^X\(\/\/\)[^/].*/{
1673             s//\1/
1674             q
1675           }
1676           /^X\(\/\/\)$/{
1677             s//\1/
1678             q
1679           }
1680           /^X\(\/\).*/{
1681             s//\1/
1682             q
1683           }
1684           s/.*/./; q'`
1685   srcdir=$ac_confdir
1686   if test ! -r "$srcdir/$ac_unique_file"; then
1687     srcdir=..
1688   fi
1689 else
1690   ac_srcdir_defaulted=no
1691 fi
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1693   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1694   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1695    { (exit 1); exit 1; }; }
1696 fi
1697 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1698 ac_abs_confdir=`(
1699         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1700    { (exit 1); exit 1; }; }
1701         pwd)`
1702 # When building in place, set srcdir=.
1703 if test "$ac_abs_confdir" = "$ac_pwd"; then
1704   srcdir=.
1705 fi
1706 # Remove unnecessary trailing slashes from srcdir.
1707 # Double slashes in file names in object file debugging info
1708 # mess up M-x gdb in Emacs.
1709 case $srcdir in
1710 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1711 esac
1712 for ac_var in $ac_precious_vars; do
1713   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1714   eval ac_env_${ac_var}_value=\$${ac_var}
1715   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1716   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1717 done
1718
1719 #
1720 # Report the --help message.
1721 #
1722 if test "$ac_init_help" = "long"; then
1723   # Omit some internal or obsolete options to make the list less imposing.
1724   # This message is too long to be a string in the A/UX 3.1 sh.
1725   cat <<_ACEOF
1726 \`configure' configures this package to adapt to many kinds of systems.
1727
1728 Usage: $0 [OPTION]... [VAR=VALUE]...
1729
1730 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1731 VAR=VALUE.  See below for descriptions of some of the useful variables.
1732
1733 Defaults for the options are specified in brackets.
1734
1735 Configuration:
1736   -h, --help              display this help and exit
1737       --help=short        display options specific to this package
1738       --help=recursive    display the short help of all the included packages
1739   -V, --version           display version information and exit
1740   -q, --quiet, --silent   do not print \`checking...' messages
1741       --cache-file=FILE   cache test results in FILE [disabled]
1742   -C, --config-cache      alias for \`--cache-file=config.cache'
1743   -n, --no-create         do not create output files
1744       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1745
1746 Installation directories:
1747   --prefix=PREFIX         install architecture-independent files in PREFIX
1748                           [$ac_default_prefix]
1749   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1750                           [PREFIX]
1751
1752 By default, \`make install' will install all the files in
1753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1755 for instance \`--prefix=\$HOME'.
1756
1757 For better control, use the options below.
1758
1759 Fine tuning of the installation directories:
1760   --bindir=DIR            user executables [EPREFIX/bin]
1761   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1762   --libexecdir=DIR        program executables [EPREFIX/libexec]
1763   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1764   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1765   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1766   --libdir=DIR            object code libraries [EPREFIX/lib]
1767   --includedir=DIR        C header files [PREFIX/include]
1768   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1769   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1770   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1771   --infodir=DIR           info documentation [DATAROOTDIR/info]
1772   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1773   --mandir=DIR            man documentation [DATAROOTDIR/man]
1774   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1775   --htmldir=DIR           html documentation [DOCDIR]
1776   --dvidir=DIR            dvi documentation [DOCDIR]
1777   --pdfdir=DIR            pdf documentation [DOCDIR]
1778   --psdir=DIR             ps documentation [DOCDIR]
1779 _ACEOF
1780
1781   cat <<\_ACEOF
1782
1783 X features:
1784   --x-includes=DIR    X include files are in DIR
1785   --x-libraries=DIR   X library files are in DIR
1786
1787 System types:
1788   --build=BUILD     configure for building on BUILD [guessed]
1789   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1790 _ACEOF
1791 fi
1792
1793 if test -n "$ac_init_help"; then
1794
1795   cat <<\_ACEOF
1796
1797 Optional Features:
1798   --disable-option-checking  ignore unrecognized --enable/--with options
1799   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1800   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1801   --enable-libtool        enable building using GNU libtool [default=yes]
1802   --enable-shared[=PKGS]  build shared libraries [default=yes]
1803   --enable-static[=PKGS]  build static libraries [default=no]
1804   --enable-fast-install[=PKGS]
1805                           optimize for fast installation [default=yes]
1806   --disable-libtool-lock  avoid locking (might break parallel builds)
1807   --enable-includes       enable installing of include files [default=no]
1808   --disable-nls           do not use Native Language Support
1809   --disable-rpath         do not hardcode runtime library paths
1810   --enable-gnome          enable build of bgnome-console GUI [default=no]
1811   --enable-bat            enable build of bat Qt4 GUI [default=no]
1812   --enable-bwx-console    enable build of wxWidgets console [default=no]
1813   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1814                           KDE [default=no]
1815   --enable-smartalloc     enable smartalloc debugging support [default=no]
1816   --enable-lockmgr        enable lock manager support [default=no]
1817   --enable-static-tools   enable static tape tools [default=no]
1818   --enable-static-fd      enable static File daemon [default=no]
1819   --enable-static-sd      enable static Storage daemon [default=no]
1820   --enable-static-dir     enable static Director [default=no]
1821   --enable-static-cons    enable static Console [default=no]
1822   --enable-client-only    build client (File daemon) only [default=no]
1823   --enable-build-dird     enable building of dird (Director) [default=yes]
1824   --enable-build-stored   enable building of stored (Storage daemon)
1825                           [default=yes]
1826   --disable-conio         disable conio support [default=no]
1827   --enable-ipv6           enable ipv6 support [default=yes]
1828   --disable-readline      disable readline support [default=yes]
1829   --enable-batch-insert   enable the DB batch insert code [default=no]
1830   --disable-largefile     omit support for large files
1831   --disable-acl           disable acl support [default=auto]
1832   --disable-xattr         disable xattr support [default=auto]
1833
1834 Optional Packages:
1835   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1836   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1837   --with-pic              try to use only PIC/non-PIC objects [default=use
1838                           both]
1839   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1840   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1841   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1842   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1843   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1844   --without-libintl-prefix     don't search for libintl in includedir and libdir
1845   --with-included-gettext use the GNU gettext library included here
1846   --with-readline[=DIR]   specify readline library directory
1847   --with-python[=DIR]     Include Python support. DIR is the Python base
1848                           install directory, default is to search through a
1849                           number of common places for the Python files.
1850   --with-tcp-wrappers[=DIR]
1851                           enable tcpwrappers support
1852   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1853   --with-working-dir=PATH specify path of Bacula working directory
1854   --with-archivedir=PATH  specify path of SD archive directory
1855   --with-basename=RESNAME specify base resource name for daemons
1856   --with-hostname=RESNAME specify host name for daemons
1857   --with-scriptdir=PATH   specify path of Bacula scripts directory
1858   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1859   --with-logdir=PATH      specify path of Bacula logs directory
1860   --with-plugindir=PATH   specify path of Bacula plugins directory
1861   --with-dump-email=EMAIL dump email address
1862   --with-job-email=EMAIL  job output email address
1863   --with-smtp-host=HOST   SMTP mail host address
1864   --with-pid-dir=PATH     specify location of Bacula pid files
1865   --with-subsys-dir=PATH  specify location of Bacula subsys file
1866   --with-baseport=PORT    specify base port address for daemons
1867   --with-dir-password=PASSWORD
1868                           specify Director's password
1869   --with-fd-password=PASSWORD
1870                           specify Client's password
1871   --with-sd-password=PASSWORD
1872                           specify Storage daemon's password
1873   --with-mon-dir-password=PASSWORD
1874                           specify Director's password used by the monitor
1875   --with-mon-fd-password=PASSWORD
1876                           specify Client's password used by the monitor
1877   --with-mon-sd-password=PASSWORD
1878                           specify Storage daemon's password used by the
1879                           monitor
1880   --with-db-name=DBNAME   specify database name [default=bacula]
1881   --with-db-user=UNAME    specify database user [default=bacula]
1882   --with-db-password=PWD  specify database password [default=*none*]
1883   --with-db-port=DBPORT   specify a database port [default=null]
1884   --with-dir-user=USER    specify user for Director daemon
1885   --with-dir-group=GROUP  specify group for Director daemon
1886   --with-sd-user=USER     specify user for Storage daemon
1887   --with-sd-group=GROUP   specify group for Storage daemon
1888   --with-fd-user=USER     specify user for File daemon
1889   --with-fd-group=GROUP   specify group for File daemon
1890   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1891   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1892                           base install directory, [default=/usr/local/pgsql]
1893   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1894                           directory, default is to search through a number of
1895                           common places for the MySQL files.
1896   --with-embedded-mysql[=DIR]
1897                           Include MySQL support. DIR is the MySQL base install
1898                           directory, default is to search through a number of
1899                           common places for the MySQL files.
1900   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1901                           install directory, default is to search through a
1902                           number of common places for the Ingres files.
1903   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1904                           install directory, default is to search through a
1905                           number of common places for the SQLite3 files.
1906   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1907                           directory, default is to search through a number of
1908                           common places for the DBI files.
1909   --with-dbi-driver[=DRIVER]
1910                           Suport for DBI driver. DRIVER is the one DBI driver
1911                           like Mysql, Postgresql, others. Default is to not
1912                           configure any driver.
1913   --with-x                use the X Window System
1914
1915 Some influential environment variables:
1916   CC          C compiler command
1917   CFLAGS      C compiler flags
1918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1919               nonstandard directory <lib dir>
1920   LIBS        libraries to pass to the linker, e.g. -l<library>
1921   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1922               you have headers in a nonstandard directory <include dir>
1923   CXX         C++ compiler command
1924   CXXFLAGS    C++ compiler flags
1925   CPP         C preprocessor
1926   WXCONFIG    wx-config command. On some systems, you must set it to
1927               wx-config-2.6 to use wxWidgets 2.6.
1928   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1929   CXXCPP      C++ preprocessor
1930   XMKMF       Path to xmkmf, Makefile generator for X Window System
1931
1932 Use these variables to override the choices made by `configure' or to help
1933 it to find libraries and programs with nonstandard names/locations.
1934
1935 _ACEOF
1936 ac_status=$?
1937 fi
1938
1939 if test "$ac_init_help" = "recursive"; then
1940   # If there are subdirs, report their specific --help.
1941   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1942     test -d "$ac_dir" ||
1943       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1944       continue
1945     ac_builddir=.
1946
1947 case "$ac_dir" in
1948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1949 *)
1950   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1951   # A ".." for each directory in $ac_dir_suffix.
1952   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1953   case $ac_top_builddir_sub in
1954   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1956   esac ;;
1957 esac
1958 ac_abs_top_builddir=$ac_pwd
1959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1960 # for backward compatibility:
1961 ac_top_builddir=$ac_top_build_prefix
1962
1963 case $srcdir in
1964   .)  # We are building in place.
1965     ac_srcdir=.
1966     ac_top_srcdir=$ac_top_builddir_sub
1967     ac_abs_top_srcdir=$ac_pwd ;;
1968   [\\/]* | ?:[\\/]* )  # Absolute name.
1969     ac_srcdir=$srcdir$ac_dir_suffix;
1970     ac_top_srcdir=$srcdir
1971     ac_abs_top_srcdir=$srcdir ;;
1972   *) # Relative name.
1973     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1974     ac_top_srcdir=$ac_top_build_prefix$srcdir
1975     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1976 esac
1977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1978
1979     cd "$ac_dir" || { ac_status=$?; continue; }
1980     # Check for guested configure.
1981     if test -f "$ac_srcdir/configure.gnu"; then
1982       echo &&
1983       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1984     elif test -f "$ac_srcdir/configure"; then
1985       echo &&
1986       $SHELL "$ac_srcdir/configure" --help=recursive
1987     else
1988       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1989     fi || ac_status=$?
1990     cd "$ac_pwd" || { ac_status=$?; break; }
1991   done
1992 fi
1993
1994 test -n "$ac_init_help" && exit $ac_status
1995 if $ac_init_version; then
1996   cat <<\_ACEOF
1997 configure
1998 generated by GNU Autoconf 2.63
1999
2000 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2001 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2002 This configure script is free software; the Free Software Foundation
2003 gives unlimited permission to copy, distribute and modify it.
2004 _ACEOF
2005   exit
2006 fi
2007 cat >config.log <<_ACEOF
2008 This file contains any messages produced by compilers while
2009 running configure, to aid debugging if configure makes a mistake.
2010
2011 It was created by $as_me, which was
2012 generated by GNU Autoconf 2.63.  Invocation command line was
2013
2014   $ $0 $@
2015
2016 _ACEOF
2017 exec 5>>config.log
2018 {
2019 cat <<_ASUNAME
2020 ## --------- ##
2021 ## Platform. ##
2022 ## --------- ##
2023
2024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2029
2030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2031 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2032
2033 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2034 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2036 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2037 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2038 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2039 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2040
2041 _ASUNAME
2042
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   $as_echo "PATH: $as_dir"
2049 done
2050 IFS=$as_save_IFS
2051
2052 } >&5
2053
2054 cat >&5 <<_ACEOF
2055
2056
2057 ## ----------- ##
2058 ## Core tests. ##
2059 ## ----------- ##
2060
2061 _ACEOF
2062
2063
2064 # Keep a trace of the command line.
2065 # Strip out --no-create and --no-recursion so they do not pile up.
2066 # Strip out --silent because we don't want to record it for future runs.
2067 # Also quote any args containing shell meta-characters.
2068 # Make two passes to allow for proper duplicate-argument suppression.
2069 ac_configure_args=
2070 ac_configure_args0=
2071 ac_configure_args1=
2072 ac_must_keep_next=false
2073 for ac_pass in 1 2
2074 do
2075   for ac_arg
2076   do
2077     case $ac_arg in
2078     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2079     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2080     | -silent | --silent | --silen | --sile | --sil)
2081       continue ;;
2082     *\'*)
2083       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2084     esac
2085     case $ac_pass in
2086     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2087     2)
2088       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2089       if test $ac_must_keep_next = true; then
2090         ac_must_keep_next=false # Got value, back to normal.
2091       else
2092         case $ac_arg in
2093           *=* | --config-cache | -C | -disable-* | --disable-* \
2094           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2095           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2096           | -with-* | --with-* | -without-* | --without-* | --x)
2097             case "$ac_configure_args0 " in
2098               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2099             esac
2100             ;;
2101           -* ) ac_must_keep_next=true ;;
2102         esac
2103       fi
2104       ac_configure_args="$ac_configure_args '$ac_arg'"
2105       ;;
2106     esac
2107   done
2108 done
2109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2111
2112 # When interrupted or exit'd, cleanup temporary files, and complete
2113 # config.log.  We remove comments because anyway the quotes in there
2114 # would cause problems or look ugly.
2115 # WARNING: Use '\'' to represent an apostrophe within the trap.
2116 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2117 trap 'exit_status=$?
2118   # Save into config.log some information that might help in debugging.
2119   {
2120     echo
2121
2122     cat <<\_ASBOX
2123 ## ---------------- ##
2124 ## Cache variables. ##
2125 ## ---------------- ##
2126 _ASBOX
2127     echo
2128     # The following way of writing the cache mishandles newlines in values,
2129 (
2130   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2131     eval ac_val=\$$ac_var
2132     case $ac_val in #(
2133     *${as_nl}*)
2134       case $ac_var in #(
2135       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2136 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2137       esac
2138       case $ac_var in #(
2139       _ | IFS | as_nl) ;; #(
2140       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2141       *) $as_unset $ac_var ;;
2142       esac ;;
2143     esac
2144   done
2145   (set) 2>&1 |
2146     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2147     *${as_nl}ac_space=\ *)
2148       sed -n \
2149         "s/'\''/'\''\\\\'\'''\''/g;
2150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2151       ;; #(
2152     *)
2153       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2154       ;;
2155     esac |
2156     sort
2157 )
2158     echo
2159
2160     cat <<\_ASBOX
2161 ## ----------------- ##
2162 ## Output variables. ##
2163 ## ----------------- ##
2164 _ASBOX
2165     echo
2166     for ac_var in $ac_subst_vars
2167     do
2168       eval ac_val=\$$ac_var
2169       case $ac_val in
2170       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171       esac
2172       $as_echo "$ac_var='\''$ac_val'\''"
2173     done | sort
2174     echo
2175
2176     if test -n "$ac_subst_files"; then
2177       cat <<\_ASBOX
2178 ## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##
2181 _ASBOX
2182       echo
2183       for ac_var in $ac_subst_files
2184       do
2185         eval ac_val=\$$ac_var
2186         case $ac_val in
2187         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188         esac
2189         $as_echo "$ac_var='\''$ac_val'\''"
2190       done | sort
2191       echo
2192     fi
2193
2194     if test -s confdefs.h; then
2195       cat <<\_ASBOX
2196 ## ----------- ##
2197 ## confdefs.h. ##
2198 ## ----------- ##
2199 _ASBOX
2200       echo
2201       cat confdefs.h
2202       echo
2203     fi
2204     test "$ac_signal" != 0 &&
2205       $as_echo "$as_me: caught signal $ac_signal"
2206     $as_echo "$as_me: exit $exit_status"
2207   } >&5
2208   rm -f core *.core core.conftest.* &&
2209     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210     exit $exit_status
2211 ' 0
2212 for ac_signal in 1 2 13 15; do
2213   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2214 done
2215 ac_signal=0
2216
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2219
2220 # Predefined preprocessor variables.
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2224 _ACEOF
2225
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229 _ACEOF
2230
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2234 _ACEOF
2235
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2239 _ACEOF
2240
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244 _ACEOF
2245
2246
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer an explicitly selected file to automatically selected ones.
2249 ac_site_file1=NONE
2250 ac_site_file2=NONE
2251 if test -n "$CONFIG_SITE"; then
2252   ac_site_file1=$CONFIG_SITE
2253 elif test "x$prefix" != xNONE; then
2254   ac_site_file1=$prefix/share/config.site
2255   ac_site_file2=$prefix/etc/config.site
2256 else
2257   ac_site_file1=$ac_default_prefix/share/config.site
2258   ac_site_file2=$ac_default_prefix/etc/config.site
2259 fi
2260 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2261 do
2262   test "x$ac_site_file" = xNONE && continue
2263   if test -r "$ac_site_file"; then
2264     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2265 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2266     sed 's/^/| /' "$ac_site_file" >&5
2267     . "$ac_site_file"
2268   fi
2269 done
2270
2271 if test -r "$cache_file"; then
2272   # Some versions of bash will fail to source /dev/null (special
2273   # files actually), so we avoid doing that.
2274   if test -f "$cache_file"; then
2275     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2277     case $cache_file in
2278       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279       *)                      . "./$cache_file";;
2280     esac
2281   fi
2282 else
2283   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2285   >$cache_file
2286 fi
2287
2288 # Check that the precious variables saved in the cache have kept the same
2289 # value.
2290 ac_cache_corrupted=false
2291 for ac_var in $ac_precious_vars; do
2292   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293   eval ac_new_set=\$ac_env_${ac_var}_set
2294   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295   eval ac_new_val=\$ac_env_${ac_var}_value
2296   case $ac_old_set,$ac_new_set in
2297     set,)
2298       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300       ac_cache_corrupted=: ;;
2301     ,set)
2302       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304       ac_cache_corrupted=: ;;
2305     ,);;
2306     *)
2307       if test "x$ac_old_val" != "x$ac_new_val"; then
2308         # differences in whitespace do not lead to failure.
2309         ac_old_val_w=`echo x $ac_old_val`
2310         ac_new_val_w=`echo x $ac_new_val`
2311         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314           ac_cache_corrupted=:
2315         else
2316           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318           eval $ac_var=\$ac_old_val
2319         fi
2320         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2321 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2322         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2324       fi;;
2325   esac
2326   # Pass precious variables to config.status.
2327   if test "$ac_new_set" = set; then
2328     case $ac_new_val in
2329     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330     *) ac_arg=$ac_var=$ac_new_val ;;
2331     esac
2332     case " $ac_configure_args " in
2333       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2334       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2335     esac
2336   fi
2337 done
2338 if $ac_cache_corrupted; then
2339   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2344 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2345    { (exit 1); exit 1; }; }
2346 fi
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364 ac_ext=c
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369
2370
2371 BUILD_DIR=`pwd`
2372 cd ..
2373 TOP_DIR=`pwd`
2374 cd ${BUILD_DIR}
2375
2376
2377 ac_aux_dir=
2378 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2379   if test -f "$ac_dir/install-sh"; then
2380     ac_aux_dir=$ac_dir
2381     ac_install_sh="$ac_aux_dir/install-sh -c"
2382     break
2383   elif test -f "$ac_dir/install.sh"; then
2384     ac_aux_dir=$ac_dir
2385     ac_install_sh="$ac_aux_dir/install.sh -c"
2386     break
2387   elif test -f "$ac_dir/shtool"; then
2388     ac_aux_dir=$ac_dir
2389     ac_install_sh="$ac_aux_dir/shtool install -c"
2390     break
2391   fi
2392 done
2393 if test -z "$ac_aux_dir"; then
2394   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2395 $as_echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2396    { (exit 1); exit 1; }; }
2397 fi
2398
2399 # These three variables are undocumented and unsupported,
2400 # and are intended to be withdrawn in a future Autoconf release.
2401 # They can cause serious problems if a builder's source tree is in a directory
2402 # whose full name contains unusual characters.
2403 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2404 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2405 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2406
2407
2408 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2409
2410
2411 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2412 WIN32MAINDIR=${BUILD_DIR}
2413 WIN32TOPDIR=${TOP_DIR}
2414
2415
2416
2417
2418 for ac_prog in true
2419 do
2420   # Extract the first word of "$ac_prog", so it can be a program name with args.
2421 set dummy $ac_prog; ac_word=$2
2422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2425   $as_echo_n "(cached) " >&6
2426 else
2427   case $TRUEPRG in
2428   [\\/]* | ?:[\\/]*)
2429   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2430   ;;
2431   *)
2432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2440     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447   ;;
2448 esac
2449 fi
2450 TRUEPRG=$ac_cv_path_TRUEPRG
2451 if test -n "$TRUEPRG"; then
2452   { $as_echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2453 $as_echo "$TRUEPRG" >&6; }
2454 else
2455   { $as_echo "$as_me:$LINENO: result: no" >&5
2456 $as_echo "no" >&6; }
2457 fi
2458
2459
2460   test -n "$TRUEPRG" && break
2461 done
2462 test -n "$TRUEPRG" || TRUEPRG=":"
2463
2464 for ac_prog in false
2465 do
2466   # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2471   $as_echo_n "(cached) " >&6
2472 else
2473   case $FALSEPRG in
2474   [\\/]* | ?:[\\/]*)
2475   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2476   ;;
2477   *)
2478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2486     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493   ;;
2494 esac
2495 fi
2496 FALSEPRG=$ac_cv_path_FALSEPRG
2497 if test -n "$FALSEPRG"; then
2498   { $as_echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2499 $as_echo "$FALSEPRG" >&6; }
2500 else
2501   { $as_echo "$as_me:$LINENO: result: no" >&5
2502 $as_echo "no" >&6; }
2503 fi
2504
2505
2506   test -n "$FALSEPRG" && break
2507 done
2508 test -n "$FALSEPRG" || FALSEPRG=":"
2509
2510
2511
2512 post_host=
2513 if test "x$BACULA" != x; then
2514    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2515 fi
2516 BACULA=${BACULA:-Bacula}
2517 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2518 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2519 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2520 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
2521
2522 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2523 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2524 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2525
2526 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2527 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2528 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2529
2530
2531 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2532
2533 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2534
2535
2536 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2537
2538 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2539
2540
2541 echo "configuring for ${BACULA} $VERSION ($DATE)"
2542
2543
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556   $as_echo_n "(cached) " >&6
2557 else
2558   if test -n "$CC"; then
2559   ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564   IFS=$as_save_IFS
2565   test -z "$as_dir" && as_dir=.
2566   for ac_exec_ext in '' $ac_executable_extensions; do
2567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570     break 2
2571   fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2582 else
2583   { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 fi
2589 if test -z "$ac_cv_prog_CC"; then
2590   ac_ct_CC=$CC
2591   # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596   $as_echo_n "(cached) " >&6
2597 else
2598   if test -n "$ac_ct_CC"; then
2599   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606   for ac_exec_ext in '' $ac_executable_extensions; do
2607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608     ac_cv_prog_ac_ct_CC="gcc"
2609     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2622 else
2623   { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2626
2627   if test "x$ac_ct_CC" = x; then
2628     CC=""
2629   else
2630     case $cross_compiling:$ac_tool_warned in
2631 yes:)
2632 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2634 ac_tool_warned=yes ;;
2635 esac
2636     CC=$ac_ct_CC
2637   fi
2638 else
2639   CC="$ac_cv_prog_CC"
2640 fi
2641
2642 if test -z "$CC"; then
2643           if test -n "$ac_tool_prefix"; then
2644     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}cc; ac_word=$2
2646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then
2649   $as_echo_n "(cached) " >&6
2650 else
2651   if test -n "$CC"; then
2652   ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661     ac_cv_prog_CC="${ac_tool_prefix}cc"
2662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676   { $as_echo "$as_me:$LINENO: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681   fi
2682 fi
2683 if test -z "$CC"; then
2684   # Extract the first word of "cc", so it can be a program name with args.
2685 set dummy cc; ac_word=$2
2686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689   $as_echo_n "(cached) " >&6
2690 else
2691   if test -n "$CC"; then
2692   ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694   ac_prog_rejected=no
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698   IFS=$as_save_IFS
2699   test -z "$as_dir" && as_dir=.
2700   for ac_exec_ext in '' $ac_executable_extensions; do
2701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2703        ac_prog_rejected=yes
2704        continue
2705      fi
2706     ac_cv_prog_CC="cc"
2707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 if test $ac_prog_rejected = yes; then
2715   # We found a bogon in the path, so make sure we never use it.
2716   set dummy $ac_cv_prog_CC
2717   shift
2718   if test $# != 0; then
2719     # We chose a different compiler from the bogus one.
2720     # However, it has the same basename, so the bogon will be chosen
2721     # first if we set CC to just the basename; use the full file name.
2722     shift
2723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724   fi
2725 fi
2726 fi
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2732 else
2733   { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738 fi
2739 if test -z "$CC"; then
2740   if test -n "$ac_tool_prefix"; then
2741   for ac_prog in cl.exe
2742   do
2743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748   $as_echo_n "(cached) " >&6
2749 else
2750   if test -n "$CC"; then
2751   ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756   IFS=$as_save_IFS
2757   test -z "$as_dir" && as_dir=.
2758   for ac_exec_ext in '' $ac_executable_extensions; do
2759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2761     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762     break 2
2763   fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2774 else
2775   { $as_echo "$as_me:$LINENO: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2778
2779
2780     test -n "$CC" && break
2781   done
2782 fi
2783 if test -z "$CC"; then
2784   ac_ct_CC=$CC
2785   for ac_prog in cl.exe
2786 do
2787   # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test -n "$ac_ct_CC"; then
2795   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802   for ac_exec_ext in '' $ac_executable_extensions; do
2803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804     ac_cv_prog_ac_ct_CC="$ac_prog"
2805     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815 if test -n "$ac_ct_CC"; then
2816   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817 $as_echo "$ac_ct_CC" >&6; }
2818 else
2819   { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824   test -n "$ac_ct_CC" && break
2825 done
2826
2827   if test "x$ac_ct_CC" = x; then
2828     CC=""
2829   else
2830     case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836     CC=$ac_ct_CC
2837   fi
2838 fi
2839
2840 fi
2841
2842
2843 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2846 See \`config.log' for more details." >&5
2847 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2848 See \`config.log' for more details." >&2;}
2849    { (exit 1); exit 1; }; }; }
2850
2851 # Provide some information about the compiler.
2852 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2853 set X $ac_compile
2854 ac_compiler=$2
2855 { (ac_try="$ac_compiler --version >&5"
2856 case "(($ac_try" in
2857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858   *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862   (eval "$ac_compiler --version >&5") 2>&5
2863   ac_status=$?
2864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }
2866 { (ac_try="$ac_compiler -v >&5"
2867 case "(($ac_try" in
2868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869   *) ac_try_echo=$ac_try;;
2870 esac
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873   (eval "$ac_compiler -v >&5") 2>&5
2874   ac_status=$?
2875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }
2877 { (ac_try="$ac_compiler -V >&5"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884   (eval "$ac_compiler -V >&5") 2>&5
2885   ac_status=$?
2886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }
2888
2889 cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 ac_clean_files_save=$ac_clean_files
2905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2906 # Try to create an executable without -o first, disregard a.out.
2907 # It will help us diagnose broken compilers, and finding out an intuition
2908 # of exeext.
2909 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2910 $as_echo_n "checking for C compiler default output file name... " >&6; }
2911 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912
2913 # The possible output files:
2914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915
2916 ac_rmfiles=
2917 for ac_file in $ac_files
2918 do
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2921     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922   esac
2923 done
2924 rm -f $ac_rmfiles
2925
2926 if { (ac_try="$ac_link_default"
2927 case "(($ac_try" in
2928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929   *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933   (eval "$ac_link_default") 2>&5
2934   ac_status=$?
2935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; then
2937   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2940 # so that the user can short-circuit this test for compilers unknown to
2941 # Autoconf.
2942 for ac_file in $ac_files ''
2943 do
2944   test -f "$ac_file" || continue
2945   case $ac_file in
2946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2947         ;;
2948     [ab].out )
2949         # We found the default executable, but exeext='' is most
2950         # certainly right.
2951         break;;
2952     *.* )
2953         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954         then :; else
2955            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956         fi
2957         # We set ac_cv_exeext here because the later test for it is not
2958         # safe: cross compilers may not add the suffix if given an `-o'
2959         # argument, so we may need to know it at that point already.
2960         # Even if this section looks crufty: it has the advantage of
2961         # actually working.
2962         break;;
2963     * )
2964         break;;
2965   esac
2966 done
2967 test "$ac_cv_exeext" = no && ac_cv_exeext=
2968
2969 else
2970   ac_file=''
2971 fi
2972
2973 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2974 $as_echo "$ac_file" >&6; }
2975 if test -z "$ac_file"; then
2976   $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2982 See \`config.log' for more details." >&5
2983 $as_echo "$as_me: error: C compiler cannot create executables
2984 See \`config.log' for more details." >&2;}
2985    { (exit 77); exit 77; }; }; }
2986 fi
2987
2988 ac_exeext=$ac_cv_exeext
2989
2990 # Check that the compiler produces executables we can run.  If not, either
2991 # the compiler is broken, or we cross compile.
2992 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993 $as_echo_n "checking whether the C compiler works... " >&6; }
2994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995 # If not cross compiling, check that we can run a simple program.
2996 if test "$cross_compiling" != yes; then
2997   if { ac_try='./$ac_file'
2998   { (case "(($ac_try" in
2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000   *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3003 $as_echo "$ac_try_echo") >&5
3004   (eval "$ac_try") 2>&5
3005   ac_status=$?
3006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; }; then
3008     cross_compiling=no
3009   else
3010     if test "$cross_compiling" = maybe; then
3011         cross_compiling=yes
3012     else
3013         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3016 If you meant to cross compile, use \`--host'.
3017 See \`config.log' for more details." >&5
3018 $as_echo "$as_me: error: cannot run C compiled programs.
3019 If you meant to cross compile, use \`--host'.
3020 See \`config.log' for more details." >&2;}
3021    { (exit 1); exit 1; }; }; }
3022     fi
3023   fi
3024 fi
3025 { $as_echo "$as_me:$LINENO: result: yes" >&5
3026 $as_echo "yes" >&6; }
3027
3028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3029 ac_clean_files=$ac_clean_files_save
3030 # Check that the compiler produces executables we can run.  If not, either
3031 # the compiler is broken, or we cross compile.
3032 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033 $as_echo_n "checking whether we are cross compiling... " >&6; }
3034 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035 $as_echo "$cross_compiling" >&6; }
3036
3037 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038 $as_echo_n "checking for suffix of executables... " >&6; }
3039 if { (ac_try="$ac_link"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046   (eval "$ac_link") 2>&5
3047   ac_status=$?
3048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; then
3050   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3053 # `rm'.
3054 for ac_file in conftest.exe conftest conftest.*; do
3055   test -f "$ac_file" || continue
3056   case $ac_file in
3057     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059           break;;
3060     * ) break;;
3061   esac
3062 done
3063 else
3064   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070    { (exit 1); exit 1; }; }; }
3071 fi
3072
3073 rm -f conftest$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3076
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3079 ac_exeext=$EXEEXT
3080 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083   $as_echo_n "(cached) " >&6
3084 else
3085   cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108   (eval "$ac_compile") 2>&5
3109   ac_status=$?
3110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; then
3112   for ac_file in conftest.o conftest.obj conftest.*; do
3113   test -f "$ac_file" || continue;
3114   case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117        break;;
3118   esac
3119 done
3120 else
3121   $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130    { (exit 1); exit 1; }; }; }
3131 fi
3132
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134 fi
3135 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142   $as_echo_n "(cached) " >&6
3143 else
3144   cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150
3151 int
3152 main ()
3153 {
3154 #ifndef __GNUC__
3155        choke me
3156 #endif
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166   *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170   (eval "$ac_compile") 2>conftest.er1
3171   ac_status=$?
3172   grep -v '^ *+' conftest.er1 >conftest.err
3173   rm -f conftest.er1
3174   cat conftest.err >&5
3175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } && {
3177          test -z "$ac_c_werror_flag" ||
3178          test ! -s conftest.err
3179        } && test -s conftest.$ac_objext; then
3180   ac_compiler_gnu=yes
3181 else
3182   $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185         ac_compiler_gnu=no
3186 fi
3187
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191 fi
3192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3195   GCC=yes
3196 else
3197   GCC=
3198 fi
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_save_CFLAGS=$CFLAGS
3201 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204   $as_echo_n "(cached) " >&6
3205 else
3206   ac_save_c_werror_flag=$ac_c_werror_flag
3207    ac_c_werror_flag=yes
3208    ac_cv_prog_cc_g=no
3209    CFLAGS="-g"
3210    cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h.  */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h.  */
3216
3217 int
3218 main ()
3219 {
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233   (eval "$ac_compile") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } && {
3240          test -z "$ac_c_werror_flag" ||
3241          test ! -s conftest.err
3242        } && test -s conftest.$ac_objext; then
3243   ac_cv_prog_cc_g=yes
3244 else
3245   $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248         CFLAGS=""
3249       cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272   (eval "$ac_compile") 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } && {
3279          test -z "$ac_c_werror_flag" ||
3280          test ! -s conftest.err
3281        } && test -s conftest.$ac_objext; then
3282   :
3283 else
3284   $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287         ac_c_werror_flag=$ac_save_c_werror_flag
3288          CFLAGS="-g"
3289          cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312   (eval "$ac_compile") 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } && {
3319          test -z "$ac_c_werror_flag" ||
3320          test ! -s conftest.err
3321        } && test -s conftest.$ac_objext; then
3322   ac_cv_prog_cc_g=yes
3323 else
3324   $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 fi
3335
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337    ac_c_werror_flag=$ac_save_c_werror_flag
3338 fi
3339 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342   CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344   if test "$GCC" = yes; then
3345     CFLAGS="-g -O2"
3346   else
3347     CFLAGS="-g"
3348   fi
3349 else
3350   if test "$GCC" = yes; then
3351     CFLAGS="-O2"
3352   else
3353     CFLAGS=
3354   fi
3355 fi
3356 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359   $as_echo_n "(cached) " >&6
3360 else
3361   ac_cv_prog_cc_c89=no
3362 ac_save_CC=$CC
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #include <stdarg.h>
3370 #include <stdio.h>
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3377      char **p;
3378      int i;
3379 {
3380   return p[i];
3381 }
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3383 {
3384   char *s;
3385   va_list v;
3386   va_start (v,p);
3387   s = g (p, va_arg (v,int));
3388   va_end (v);
3389   return s;
3390 }
3391
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3393    function prototypes and stuff, but not '\xHH' hex character constants.
3394    These don't provoke an error unfortunately, instead are silently treated
3395    as 'x'.  The following induces an error, until -std is added to get
3396    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3397    array size at least.  It's necessary to write '\x00'==0 to get something
3398    that's true only with -std.  */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402    inside strings and character constants.  */
3403 #define FOO(x) 'x'
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 int argc;
3411 char **argv;
3412 int
3413 main ()
3414 {
3415 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3416   ;
3417   return 0;
3418 }
3419 _ACEOF
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 do
3423   CC="$ac_save_CC $ac_arg"
3424   rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432   (eval "$ac_compile") 2>conftest.er1
3433   ac_status=$?
3434   grep -v '^ *+' conftest.er1 >conftest.err
3435   rm -f conftest.er1
3436   cat conftest.err >&5
3437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); } && {
3439          test -z "$ac_c_werror_flag" ||
3440          test ! -s conftest.err
3441        } && test -s conftest.$ac_objext; then
3442   ac_cv_prog_cc_c89=$ac_arg
3443 else
3444   $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447
3448 fi
3449
3450 rm -f core conftest.err conftest.$ac_objext
3451   test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 done
3453 rm -f conftest.$ac_ext
3454 CC=$ac_save_CC
3455
3456 fi
3457 # AC_CACHE_VAL
3458 case "x$ac_cv_prog_cc_c89" in
3459   x)
3460     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3462   xno)
3463     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3464 $as_echo "unsupported" >&6; } ;;
3465   *)
3466     CC="$CC $ac_cv_prog_cc_c89"
3467     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469 esac
3470
3471
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478 ac_ext=cpp
3479 ac_cpp='$CXXCPP $CPPFLAGS'
3480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3483 if test -z "$CXX"; then
3484   if test -n "$CCC"; then
3485     CXX=$CCC
3486   else
3487     if test -n "$ac_tool_prefix"; then
3488   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3489   do
3490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_CXX+set}" = set; then
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -n "$CXX"; then
3498   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505   for ac_exec_ext in '' $ac_executable_extensions; do
3506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3508     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 CXX=$ac_cv_prog_CXX
3518 if test -n "$CXX"; then
3519   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3520 $as_echo "$CXX" >&6; }
3521 else
3522   { $as_echo "$as_me:$LINENO: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527     test -n "$CXX" && break
3528   done
3529 fi
3530 if test -z "$CXX"; then
3531   ac_ct_CXX=$CXX
3532   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3533 do
3534   # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3539   $as_echo_n "(cached) " >&6
3540 else
3541   if test -n "$ac_ct_CXX"; then
3542   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549   for ac_exec_ext in '' $ac_executable_extensions; do
3550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551     ac_cv_prog_ac_ct_CXX="$ac_prog"
3552     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556 done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3562 if test -n "$ac_ct_CXX"; then
3563   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3564 $as_echo "$ac_ct_CXX" >&6; }
3565 else
3566   { $as_echo "$as_me:$LINENO: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570
3571   test -n "$ac_ct_CXX" && break
3572 done
3573
3574   if test "x$ac_ct_CXX" = x; then
3575     CXX="g++"
3576   else
3577     case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583     CXX=$ac_ct_CXX
3584   fi
3585 fi
3586
3587   fi
3588 fi
3589 # Provide some information about the compiler.
3590 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3591 set X $ac_compile
3592 ac_compiler=$2
3593 { (ac_try="$ac_compiler --version >&5"
3594 case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3599 $as_echo "$ac_try_echo") >&5
3600   (eval "$ac_compiler --version >&5") 2>&5
3601   ac_status=$?
3602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); }
3604 { (ac_try="$ac_compiler -v >&5"
3605 case "(($ac_try" in
3606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607   *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3610 $as_echo "$ac_try_echo") >&5
3611   (eval "$ac_compiler -v >&5") 2>&5
3612   ac_status=$?
3613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); }
3615 { (ac_try="$ac_compiler -V >&5"
3616 case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622   (eval "$ac_compiler -V >&5") 2>&5
3623   ac_status=$?
3624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }
3626
3627 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3628 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3629 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3630   $as_echo_n "(cached) " >&6
3631 else
3632   cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h.  */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h.  */
3638
3639 int
3640 main ()
3641 {
3642 #ifndef __GNUC__
3643        choke me
3644 #endif
3645
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3657 $as_echo "$ac_try_echo") >&5
3658   (eval "$ac_compile") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } && {
3665          test -z "$ac_cxx_werror_flag" ||
3666          test ! -s conftest.err
3667        } && test -s conftest.$ac_objext; then
3668   ac_compiler_gnu=yes
3669 else
3670   $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673         ac_compiler_gnu=no
3674 fi
3675
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3678
3679 fi
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3681 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3682 if test $ac_compiler_gnu = yes; then
3683   GXX=yes
3684 else
3685   GXX=
3686 fi
3687 ac_test_CXXFLAGS=${CXXFLAGS+set}
3688 ac_save_CXXFLAGS=$CXXFLAGS
3689 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3690 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3691 if test "${ac_cv_prog_cxx_g+set}" = set; then
3692   $as_echo_n "(cached) " >&6
3693 else
3694   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3695    ac_cxx_werror_flag=yes
3696    ac_cv_prog_cxx_g=no
3697    CXXFLAGS="-g"
3698    cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704
3705 int
3706 main ()
3707 {
3708
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (ac_try="$ac_compile"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720 $as_echo "$ac_try_echo") >&5
3721   (eval "$ac_compile") 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } && {
3728          test -z "$ac_cxx_werror_flag" ||
3729          test ! -s conftest.err
3730        } && test -s conftest.$ac_objext; then
3731   ac_cv_prog_cxx_g=yes
3732 else
3733   $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736         CXXFLAGS=""
3737       cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h.  */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h.  */
3743
3744 int
3745 main ()
3746 {
3747
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3754 case "(($ac_try" in
3755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756   *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759 $as_echo "$ac_try_echo") >&5
3760   (eval "$ac_compile") 2>conftest.er1
3761   ac_status=$?
3762   grep -v '^ *+' conftest.er1 >conftest.err
3763   rm -f conftest.er1
3764   cat conftest.err >&5
3765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); } && {
3767          test -z "$ac_cxx_werror_flag" ||
3768          test ! -s conftest.err
3769        } && test -s conftest.$ac_objext; then
3770   :
3771 else
3772   $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3776          CXXFLAGS="-g"
3777          cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3799 $as_echo "$ac_try_echo") >&5
3800   (eval "$ac_compile") 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } && {
3807          test -z "$ac_cxx_werror_flag" ||
3808          test ! -s conftest.err
3809        } && test -s conftest.$ac_objext; then
3810   ac_cv_prog_cxx_g=yes
3811 else
3812   $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815
3816 fi
3817
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3826 fi
3827 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3828 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3829 if test "$ac_test_CXXFLAGS" = set; then
3830   CXXFLAGS=$ac_save_CXXFLAGS
3831 elif test $ac_cv_prog_cxx_g = yes; then
3832   if test "$GXX" = yes; then
3833     CXXFLAGS="-g -O2"
3834   else
3835     CXXFLAGS="-g"
3836   fi
3837 else
3838   if test "$GXX" = yes; then
3839     CXXFLAGS="-O2"
3840   else
3841     CXXFLAGS=
3842   fi
3843 fi
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850 if test "x$CC" != xcc; then
3851   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3852 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3853 else
3854   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3855 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3856 fi
3857 set dummy $CC; ac_cc=`$as_echo "$2" |
3858                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3859 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3860   $as_echo_n "(cached) " >&6
3861 else
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868
3869 int
3870 main ()
3871 {
3872
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 # Make sure it works both with $CC and with simple cc.
3878 # We do the test twice because some compilers refuse to overwrite an
3879 # existing .o file with -o, though they will create one.
3880 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3881 rm -f conftest2.*
3882 if { (case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3887 $as_echo "$ac_try_echo") >&5
3888   (eval "$ac_try") 2>&5
3889   ac_status=$?
3890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); } &&
3892    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898   (eval "$ac_try") 2>&5
3899   ac_status=$?
3900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); };
3902 then
3903   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3904   if test "x$CC" != xcc; then
3905     # Test first that cc exists at all.
3906     if { ac_try='cc -c conftest.$ac_ext >&5'
3907   { (case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3912 $as_echo "$ac_try_echo") >&5
3913   (eval "$ac_try") 2>&5
3914   ac_status=$?
3915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); }; }; then
3917       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3918       rm -f conftest2.*
3919       if { (case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924 $as_echo "$ac_try_echo") >&5
3925   (eval "$ac_try") 2>&5
3926   ac_status=$?
3927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); } &&
3929          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3934 $as_echo "$ac_try_echo") >&5
3935   (eval "$ac_try") 2>&5
3936   ac_status=$?
3937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); };
3939       then
3940         # cc works too.
3941         :
3942       else
3943         # cc exists but doesn't like -o.
3944         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3945       fi
3946     fi
3947   fi
3948 else
3949   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3950 fi
3951 rm -f core conftest*
3952
3953 fi
3954 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3955   { $as_echo "$as_me:$LINENO: result: yes" >&5
3956 $as_echo "yes" >&6; }
3957 else
3958   { $as_echo "$as_me:$LINENO: result: no" >&5
3959 $as_echo "no" >&6; }
3960
3961 cat >>confdefs.h <<\_ACEOF
3962 #define NO_MINUS_C_MINUS_O 1
3963 _ACEOF
3964
3965 fi
3966
3967 ac_ext=c
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3973 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3974 # On Suns, sometimes $CPP names a directory.
3975 if test -n "$CPP" && test -d "$CPP"; then
3976   CPP=
3977 fi
3978 if test -z "$CPP"; then
3979   if test "${ac_cv_prog_CPP+set}" = set; then
3980   $as_echo_n "(cached) " >&6
3981 else
3982       # Double quotes because CPP needs to be expanded
3983     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3984     do
3985       ac_preproc_ok=false
3986 for ac_c_preproc_warn_flag in '' yes
3987 do
3988   # Use a header file that comes with gcc, so configuring glibc
3989   # with a fresh cross-compiler works.
3990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991   # <limits.h> exists even on freestanding compilers.
3992   # On the NeXT, cc -E runs the code through the compiler's parser,
3993   # not just through cpp. "Syntax error" is here to catch this case.
3994   cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4005                      Syntax error
4006 _ACEOF
4007 if { (ac_try="$ac_cpp conftest.$ac_ext"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4013 $as_echo "$ac_try_echo") >&5
4014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4015   ac_status=$?
4016   grep -v '^ *+' conftest.er1 >conftest.err
4017   rm -f conftest.er1
4018   cat conftest.err >&5
4019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } >/dev/null && {
4021          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022          test ! -s conftest.err
4023        }; then
4024   :
4025 else
4026   $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029   # Broken: fails on valid input.
4030 continue
4031 fi
4032
4033 rm -f conftest.err conftest.$ac_ext
4034
4035   # OK, works on sane cases.  Now check whether nonexistent headers
4036   # can be detected and how.
4037   cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 #include <ac_nonexistent.h>
4044 _ACEOF
4045 if { (ac_try="$ac_cpp conftest.$ac_ext"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051 $as_echo "$ac_try_echo") >&5
4052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4053   ac_status=$?
4054   grep -v '^ *+' conftest.er1 >conftest.err
4055   rm -f conftest.er1
4056   cat conftest.err >&5
4057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } >/dev/null && {
4059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4060          test ! -s conftest.err
4061        }; then
4062   # Broken: success on invalid input.
4063 continue
4064 else
4065   $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068   # Passes both tests.
4069 ac_preproc_ok=:
4070 break
4071 fi
4072
4073 rm -f conftest.err conftest.$ac_ext
4074
4075 done
4076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4077 rm -f conftest.err conftest.$ac_ext
4078 if $ac_preproc_ok; then
4079   break
4080 fi
4081
4082     done
4083     ac_cv_prog_CPP=$CPP
4084
4085 fi
4086   CPP=$ac_cv_prog_CPP
4087 else
4088   ac_cv_prog_CPP=$CPP
4089 fi
4090 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4091 $as_echo "$CPP" >&6; }
4092 ac_preproc_ok=false
4093 for ac_c_preproc_warn_flag in '' yes
4094 do
4095   # Use a header file that comes with gcc, so configuring glibc
4096   # with a fresh cross-compiler works.
4097   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098   # <limits.h> exists even on freestanding compilers.
4099   # On the NeXT, cc -E runs the code through the compiler's parser,
4100   # not just through cpp. "Syntax error" is here to catch this case.
4101   cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107 #ifdef __STDC__
4108 # include <limits.h>
4109 #else
4110 # include <assert.h>
4111 #endif
4112                      Syntax error
4113 _ACEOF
4114 if { (ac_try="$ac_cpp conftest.$ac_ext"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4120 $as_echo "$ac_try_echo") >&5
4121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4122   ac_status=$?
4123   grep -v '^ *+' conftest.er1 >conftest.err
4124   rm -f conftest.er1
4125   cat conftest.err >&5
4126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } >/dev/null && {
4128          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4129          test ! -s conftest.err
4130        }; then
4131   :
4132 else
4133   $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136   # Broken: fails on valid input.
4137 continue
4138 fi
4139
4140 rm -f conftest.err conftest.$ac_ext
4141
4142   # OK, works on sane cases.  Now check whether nonexistent headers
4143   # can be detected and how.
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 <ac_nonexistent.h>
4151 _ACEOF
4152 if { (ac_try="$ac_cpp conftest.$ac_ext"
4153 case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4158 $as_echo "$ac_try_echo") >&5
4159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } >/dev/null && {
4166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        }; then
4169   # Broken: success on invalid input.
4170 continue
4171 else
4172   $as_echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175   # Passes both tests.
4176 ac_preproc_ok=:
4177 break
4178 fi
4179
4180 rm -f conftest.err conftest.$ac_ext
4181
4182 done
4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184 rm -f conftest.err conftest.$ac_ext
4185 if $ac_preproc_ok; then
4186   :
4187 else
4188   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4190 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4191 See \`config.log' for more details." >&5
4192 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log' for more details." >&2;}
4194    { (exit 1); exit 1; }; }; }
4195 fi
4196
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if test "${ac_cv_path_GREP+set}" = set; then
4207   $as_echo_n "(cached) " >&6
4208 else
4209   if test -z "$GREP"; then
4210   ac_path_GREP_found=false
4211   # Loop through the user's path and test for each of PROGNAME-LIST
4212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_prog in grep ggrep; do
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222   # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4224 *GNU*)
4225   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226 *)
4227   ac_count=0
4228   $as_echo_n 0123456789 >"conftest.in"
4229   while :
4230   do
4231     cat "conftest.in" "conftest.in" >"conftest.tmp"
4232     mv "conftest.tmp" "conftest.in"
4233     cp "conftest.in" "conftest.nl"
4234     $as_echo 'GREP' >> "conftest.nl"
4235     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237     ac_count=`expr $ac_count + 1`
4238     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239       # Best one so far, save it but keep looking for a better one
4240       ac_cv_path_GREP="$ac_path_GREP"
4241       ac_path_GREP_max=$ac_count
4242     fi
4243     # 10*(2^10) chars as input seems more than enough
4244     test $ac_count -gt 10 && break
4245   done
4246   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 esac
4248
4249       $ac_path_GREP_found && break 3
4250     done
4251   done
4252 done
4253 IFS=$as_save_IFS
4254   if test -z "$ac_cv_path_GREP"; then
4255     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4256 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4257    { (exit 1); exit 1; }; }
4258   fi
4259 else
4260   ac_cv_path_GREP=$GREP
4261 fi
4262
4263 fi
4264 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4265 $as_echo "$ac_cv_path_GREP" >&6; }
4266  GREP="$ac_cv_path_GREP"
4267
4268
4269 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4270 $as_echo_n "checking for egrep... " >&6; }
4271 if test "${ac_cv_path_EGREP+set}" = set; then
4272   $as_echo_n "(cached) " >&6
4273 else
4274   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4275    then ac_cv_path_EGREP="$GREP -E"
4276    else
4277      if test -z "$EGREP"; then
4278   ac_path_EGREP_found=false
4279   # Loop through the user's path and test for each of PROGNAME-LIST
4280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_prog in egrep; do
4286     for ac_exec_ext in '' $ac_executable_extensions; do
4287       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4288       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4289 # Check for GNU ac_path_EGREP and select it if it is found.
4290   # Check for GNU $ac_path_EGREP
4291 case `"$ac_path_EGREP" --version 2>&1` in
4292 *GNU*)
4293   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4294 *)
4295   ac_count=0
4296   $as_echo_n 0123456789 >"conftest.in"
4297   while :
4298   do
4299     cat "conftest.in" "conftest.in" >"conftest.tmp"
4300     mv "conftest.tmp" "conftest.in"
4301     cp "conftest.in" "conftest.nl"
4302     $as_echo 'EGREP' >> "conftest.nl"
4303     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305     ac_count=`expr $ac_count + 1`
4306     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307       # Best one so far, save it but keep looking for a better one
4308       ac_cv_path_EGREP="$ac_path_EGREP"
4309       ac_path_EGREP_max=$ac_count
4310     fi
4311     # 10*(2^10) chars as input seems more than enough
4312     test $ac_count -gt 10 && break
4313   done
4314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315 esac
4316
4317       $ac_path_EGREP_found && break 3
4318     done
4319   done
4320 done
4321 IFS=$as_save_IFS
4322   if test -z "$ac_cv_path_EGREP"; then
4323     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4324 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4325    { (exit 1); exit 1; }; }
4326   fi
4327 else
4328   ac_cv_path_EGREP=$EGREP
4329 fi
4330
4331    fi
4332 fi
4333 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4334 $as_echo "$ac_cv_path_EGREP" >&6; }
4335  EGREP="$ac_cv_path_EGREP"
4336
4337
4338 if test $ac_cv_c_compiler_gnu = yes; then
4339     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4340 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4341 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4342   $as_echo_n "(cached) " >&6
4343 else
4344     ac_pattern="Autoconf.*'x'"
4345   cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 #include <sgtty.h>
4352 Autoconf TIOCGETP
4353 _ACEOF
4354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4355   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4356   ac_cv_prog_gcc_traditional=yes
4357 else
4358   ac_cv_prog_gcc_traditional=no
4359 fi
4360 rm -f conftest*
4361
4362
4363   if test $ac_cv_prog_gcc_traditional = no; then
4364     cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 #include <termio.h>
4371 Autoconf TCGETA
4372 _ACEOF
4373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4375   ac_cv_prog_gcc_traditional=yes
4376 fi
4377 rm -f conftest*
4378
4379   fi
4380 fi
4381 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4382 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4383   if test $ac_cv_prog_gcc_traditional = yes; then
4384     CC="$CC -traditional"
4385   fi
4386 fi
4387
4388 BASECC=`basename $CC`
4389 have_gcc=no
4390 if test "x$BASECC" = xgcc; then
4391    cat >>confdefs.h <<\_ACEOF
4392 #define HAVE_GCC 1
4393 _ACEOF
4394
4395    have_gcc=yes
4396 fi
4397 # Extract the first word of "$CXX", so it can be a program name with args.
4398 set dummy $CXX; ac_word=$2
4399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_path_CXX+set}" = set; then
4402   $as_echo_n "(cached) " >&6
4403 else
4404   case $CXX in
4405   [\\/]* | ?:[\\/]*)
4406   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4407   ;;
4408   *)
4409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412   IFS=$as_save_IFS
4413   test -z "$as_dir" && as_dir=.
4414   for ac_exec_ext in '' $ac_executable_extensions; do
4415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4417     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418     break 2
4419   fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4425   ;;
4426 esac
4427 fi
4428 CXX=$ac_cv_path_CXX
4429 if test -n "$CXX"; then
4430   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4431 $as_echo "$CXX" >&6; }
4432 else
4433   { $as_echo "$as_me:$LINENO: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438 if test ! -e $CXX; then
4439    { { $as_echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4440 $as_echo "$as_me: error: Unable to find C++ compiler" >&2;}
4441    { (exit 1); exit 1; }; }
4442 fi
4443
4444 # Find a good install program.  We prefer a C program (faster),
4445 # so one script is as good as another.  But avoid the broken or
4446 # incompatible versions:
4447 # SysV /etc/install, /usr/sbin/install
4448 # SunOS /usr/etc/install
4449 # IRIX /sbin/install
4450 # AIX /bin/install
4451 # AmigaOS /C/install, which installs bootblocks on floppy discs
4452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4455 # OS/2's system install, which has a completely different semantic
4456 # ./install, which can be erroneously created by make from ./install.sh.
4457 # Reject install programs that cannot install multiple files.
4458 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4460 if test -z "$INSTALL"; then
4461 if test "${ac_cv_path_install+set}" = set; then
4462   $as_echo_n "(cached) " >&6
4463 else
4464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   # Account for people who put trailing slashes in PATH elements.
4470 case $as_dir/ in
4471   ./ | .// | /cC/* | \
4472   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4473   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4474   /usr/ucb/* ) ;;
4475   *)
4476     # OSF1 and SCO ODT 3.0 have their own names for install.
4477     # Don't use installbsd from OSF since it installs stuff as root
4478     # by default.
4479     for ac_prog in ginstall scoinst install; do
4480       for ac_exec_ext in '' $ac_executable_extensions; do
4481         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4482           if test $ac_prog = install &&
4483             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4484             # AIX install.  It has an incompatible calling convention.
4485             :
4486           elif test $ac_prog = install &&
4487             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4488             # program-specific install script used by HP pwplus--don't use.
4489             :
4490           else
4491             rm -rf conftest.one conftest.two conftest.dir
4492             echo one > conftest.one
4493             echo two > conftest.two
4494             mkdir conftest.dir
4495             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4496               test -s conftest.one && test -s conftest.two &&
4497               test -s conftest.dir/conftest.one &&
4498               test -s conftest.dir/conftest.two
4499             then
4500               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4501               break 3
4502             fi
4503           fi
4504         fi
4505       done
4506     done
4507     ;;
4508 esac
4509
4510 done
4511 IFS=$as_save_IFS
4512
4513 rm -rf conftest.one conftest.two conftest.dir
4514
4515 fi
4516   if test "${ac_cv_path_install+set}" = set; then
4517     INSTALL=$ac_cv_path_install
4518   else
4519     # As a last resort, use the slow shell script.  Don't cache a
4520     # value for INSTALL within a source directory, because that will
4521     # break other packages using the cache if that directory is
4522     # removed, or if the value is a relative name.
4523     INSTALL=$ac_install_sh
4524   fi
4525 fi
4526 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4527 $as_echo "$INSTALL" >&6; }
4528
4529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4530 # It thinks the first close brace ends the variable substitution.
4531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4532
4533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4534
4535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4536
4537 # Extract the first word of "mv", so it can be a program name with args.
4538 set dummy mv; ac_word=$2
4539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_path_MV+set}" = set; then
4542   $as_echo_n "(cached) " >&6
4543 else
4544   case $MV in
4545   [\\/]* | ?:[\\/]*)
4546   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4547   ;;
4548   *)
4549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4557     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4565   ;;
4566 esac
4567 fi
4568 MV=$ac_cv_path_MV
4569 if test -n "$MV"; then
4570   { $as_echo "$as_me:$LINENO: result: $MV" >&5
4571 $as_echo "$MV" >&6; }
4572 else
4573   { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578 # Extract the first word of "rm", so it can be a program name with args.
4579 set dummy rm; ac_word=$2
4580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_path_REMOVE+set}" = set; then
4583   $as_echo_n "(cached) " >&6
4584 else
4585   case $REMOVE in
4586   [\\/]* | ?:[\\/]*)
4587   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4588   ;;
4589   *)
4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595   for ac_exec_ext in '' $ac_executable_extensions; do
4596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4598     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4606   ;;
4607 esac
4608 fi
4609 REMOVE=$ac_cv_path_REMOVE
4610 if test -n "$REMOVE"; then
4611   { $as_echo "$as_me:$LINENO: result: $REMOVE" >&5
4612 $as_echo "$REMOVE" >&6; }
4613 else
4614   { $as_echo "$as_me:$LINENO: result: no" >&5
4615 $as_echo "no" >&6; }
4616 fi
4617
4618
4619 # Extract the first word of "cp", so it can be a program name with args.
4620 set dummy cp; ac_word=$2
4621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_path_CP+set}" = set; then
4624   $as_echo_n "(cached) " >&6
4625 else
4626   case $CP in
4627   [\\/]* | ?:[\\/]*)
4628   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4629   ;;
4630   *)
4631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636   for ac_exec_ext in '' $ac_executable_extensions; do
4637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4639     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4647   ;;
4648 esac
4649 fi
4650 CP=$ac_cv_path_CP
4651 if test -n "$CP"; then
4652   { $as_echo "$as_me:$LINENO: result: $CP" >&5
4653 $as_echo "$CP" >&6; }
4654 else
4655   { $as_echo "$as_me:$LINENO: result: no" >&5
4656 $as_echo "no" >&6; }
4657 fi
4658
4659
4660 # Extract the first word of "sed", so it can be a program name with args.
4661 set dummy sed; ac_word=$2
4662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_path_SED+set}" = set; then
4665   $as_echo_n "(cached) " >&6
4666 else
4667   case $SED in
4668   [\\/]* | ?:[\\/]*)
4669   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4670   ;;
4671   *)
4672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4680     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681     break 2
4682   fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4688   ;;
4689 esac
4690 fi
4691 SED=$ac_cv_path_SED
4692 if test -n "$SED"; then
4693   { $as_echo "$as_me:$LINENO: result: $SED" >&5
4694 $as_echo "$SED" >&6; }
4695 else
4696   { $as_echo "$as_me:$LINENO: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700
4701 # Extract the first word of "echo", so it can be a program name with args.
4702 set dummy echo; ac_word=$2
4703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if test "${ac_cv_path_ECHO+set}" = set; then
4706   $as_echo_n "(cached) " >&6
4707 else
4708   case $ECHO in
4709   [\\/]* | ?:[\\/]*)
4710   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4711   ;;
4712   *)
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4721     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4729   ;;
4730 esac
4731 fi
4732 ECHO=$ac_cv_path_ECHO
4733 if test -n "$ECHO"; then
4734   { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4735 $as_echo "$ECHO" >&6; }
4736 else
4737   { $as_echo "$as_me:$LINENO: result: no" >&5
4738 $as_echo "no" >&6; }
4739 fi
4740
4741
4742 # Extract the first word of "cmp", so it can be a program name with args.
4743 set dummy cmp; ac_word=$2
4744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_path_CMP+set}" = set; then
4747   $as_echo_n "(cached) " >&6
4748 else
4749   case $CMP in
4750   [\\/]* | ?:[\\/]*)
4751   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4752   ;;
4753   *)
4754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759   for ac_exec_ext in '' $ac_executable_extensions; do
4760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4762     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763     break 2
4764   fi
4765 done
4766 done
4767 IFS=$as_save_IFS
4768
4769   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4770   ;;
4771 esac
4772 fi
4773 CMP=$ac_cv_path_CMP
4774 if test -n "$CMP"; then
4775   { $as_echo "$as_me:$LINENO: result: $CMP" >&5
4776 $as_echo "$CMP" >&6; }
4777 else
4778   { $as_echo "$as_me:$LINENO: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781
4782
4783 # Extract the first word of "tbl", so it can be a program name with args.
4784 set dummy tbl; ac_word=$2
4785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_path_TBL+set}" = set; then
4788   $as_echo_n "(cached) " >&6
4789 else
4790   case $TBL in
4791   [\\/]* | ?:[\\/]*)
4792   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4793   ;;
4794   *)
4795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4811   ;;
4812 esac
4813 fi
4814 TBL=$ac_cv_path_TBL
4815 if test -n "$TBL"; then
4816   { $as_echo "$as_me:$LINENO: result: $TBL" >&5
4817 $as_echo "$TBL" >&6; }
4818 else
4819   { $as_echo "$as_me:$LINENO: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823
4824 # Extract the first word of "ar", so it can be a program name with args.
4825 set dummy ar; ac_word=$2
4826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_path_AR+set}" = set; then
4829   $as_echo_n "(cached) " >&6
4830 else
4831   case $AR in
4832   [\\/]* | ?:[\\/]*)
4833   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4834   ;;
4835   *)
4836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841   for ac_exec_ext in '' $ac_executable_extensions; do
4842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4844     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4852   ;;
4853 esac
4854 fi
4855 AR=$ac_cv_path_AR
4856 if test -n "$AR"; then
4857   { $as_echo "$as_me:$LINENO: result: $AR" >&5
4858 $as_echo "$AR" >&6; }
4859 else
4860   { $as_echo "$as_me:$LINENO: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864
4865 # Extract the first word of "openssl", so it can be a program name with args.
4866 set dummy openssl; ac_word=$2
4867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_path_OPENSSL+set}" = set; then
4870   $as_echo_n "(cached) " >&6
4871 else
4872   case $OPENSSL in
4873   [\\/]* | ?:[\\/]*)
4874   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4875   ;;
4876   *)
4877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882   for ac_exec_ext in '' $ac_executable_extensions; do
4883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4885     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4893   ;;
4894 esac
4895 fi
4896 OPENSSL=$ac_cv_path_OPENSSL
4897 if test -n "$OPENSSL"; then
4898   { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
4899 $as_echo "$OPENSSL" >&6; }
4900 else
4901   { $as_echo "$as_me:$LINENO: result: no" >&5
4902 $as_echo "no" >&6; }
4903 fi
4904
4905
4906 # Extract the first word of "mtx", so it can be a program name with args.
4907 set dummy mtx; ac_word=$2
4908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_path_MTX+set}" = set; then
4911   $as_echo_n "(cached) " >&6
4912 else
4913   case $MTX in
4914   [\\/]* | ?:[\\/]*)
4915   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4916   ;;
4917   *)
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923   for ac_exec_ext in '' $ac_executable_extensions; do
4924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4926     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4932
4933   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4934   ;;
4935 esac
4936 fi
4937 MTX=$ac_cv_path_MTX
4938 if test -n "$MTX"; then
4939   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
4940 $as_echo "$MTX" >&6; }
4941 else
4942   { $as_echo "$as_me:$LINENO: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 # Extract the first word of "dd", so it can be a program name with args.
4948 set dummy dd; ac_word=$2
4949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_path_DD+set}" = set; then
4952   $as_echo_n "(cached) " >&6
4953 else
4954   case $DD in
4955   [\\/]* | ?:[\\/]*)
4956   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4957   ;;
4958   *)
4959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962   IFS=$as_save_IFS
4963   test -z "$as_dir" && as_dir=.
4964   for ac_exec_ext in '' $ac_executable_extensions; do
4965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4967     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968     break 2
4969   fi
4970 done
4971 done
4972 IFS=$as_save_IFS
4973
4974   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4975   ;;
4976 esac
4977 fi
4978 DD=$ac_cv_path_DD
4979 if test -n "$DD"; then
4980   { $as_echo "$as_me:$LINENO: result: $DD" >&5
4981 $as_echo "$DD" >&6; }
4982 else
4983   { $as_echo "$as_me:$LINENO: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 # Extract the first word of "mkisofs", so it can be a program name with args.
4989 set dummy mkisofs; ac_word=$2
4990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_path_MKISOFS+set}" = set; then
4993   $as_echo_n "(cached) " >&6
4994 else
4995   case $MKISOFS in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005   for ac_exec_ext in '' $ac_executable_extensions; do
5006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5008     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012 done
5013 IFS=$as_save_IFS
5014
5015   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5016   ;;
5017 esac
5018 fi
5019 MKISOFS=$ac_cv_path_MKISOFS
5020 if test -n "$MKISOFS"; then
5021   { $as_echo "$as_me:$LINENO: result: $MKISOFS" >&5
5022 $as_echo "$MKISOFS" >&6; }
5023 else
5024   { $as_echo "$as_me:$LINENO: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029 # Extract the first word of "python", so it can be a program name with args.
5030 set dummy python; ac_word=$2
5031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_path_PYTHON+set}" = set; then
5034   $as_echo_n "(cached) " >&6
5035 else
5036   case $PYTHON in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046   for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5049     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5057   ;;
5058 esac
5059 fi
5060 PYTHON=$ac_cv_path_PYTHON
5061 if test -n "$PYTHON"; then
5062   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5063 $as_echo "$PYTHON" >&6; }
5064 else
5065   { $as_echo "$as_me:$LINENO: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 # Extract the first word of "growisofs", so it can be a program name with args.
5071 set dummy growisofs; ac_word=$2
5072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_path_GROWISOFS+set}" = set; then
5075   $as_echo_n "(cached) " >&6
5076 else
5077   case $GROWISOFS in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087   for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5098   ;;
5099 esac
5100 fi
5101 GROWISOFS=$ac_cv_path_GROWISOFS
5102 if test -n "$GROWISOFS"; then
5103   { $as_echo "$as_me:$LINENO: result: $GROWISOFS" >&5
5104 $as_echo "$GROWISOFS" >&6; }
5105 else
5106   { $as_echo "$as_me:$LINENO: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110
5111 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5112 set dummy dvd+rw-mediainfo; ac_word=$2
5113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
5116   $as_echo_n "(cached) " >&6
5117 else
5118   case $DVDRWMEDIAINFO in
5119   [\\/]* | ?:[\\/]*)
5120   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5121   ;;
5122   *)
5123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128   for ac_exec_ext in '' $ac_executable_extensions; do
5129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5131     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5139   ;;
5140 esac
5141 fi
5142 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5143 if test -n "$DVDRWMEDIAINFO"; then
5144   { $as_echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
5145 $as_echo "$DVDRWMEDIAINFO" >&6; }
5146 else
5147   { $as_echo "$as_me:$LINENO: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5153 set dummy dvd+rw-format; ac_word=$2
5154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
5157   $as_echo_n "(cached) " >&6
5158 else
5159   case $DVDRWFORMAT in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for ac_exec_ext in '' $ac_executable_extensions; do
5170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5172     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5180   ;;
5181 esac
5182 fi
5183 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5184 if test -n "$DVDRWFORMAT"; then
5185   { $as_echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5186 $as_echo "$DVDRWFORMAT" >&6; }
5187 else
5188   { $as_echo "$as_me:$LINENO: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 # Extract the first word of "pkg-config", so it can be a program name with args.
5194 set dummy pkg-config; ac_word=$2
5195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5198   $as_echo_n "(cached) " >&6
5199 else
5200   case $PKGCONFIG in
5201   [\\/]* | ?:[\\/]*)
5202   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210   for ac_exec_ext in '' $ac_executable_extensions; do
5211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5213     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5221   ;;
5222 esac
5223 fi
5224 PKGCONFIG=$ac_cv_path_PKGCONFIG
5225 if test -n "$PKGCONFIG"; then
5226   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5227 $as_echo "$PKGCONFIG" >&6; }
5228 else
5229   { $as_echo "$as_me:$LINENO: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "qmake", so it can be a program name with args.
5235 set dummy qmake; ac_word=$2
5236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_path_QMAKE+set}" = set; then
5239   $as_echo_n "(cached) " >&6
5240 else
5241   case $QMAKE in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251   for ac_exec_ext in '' $ac_executable_extensions; do
5252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5262   ;;
5263 esac
5264 fi
5265 QMAKE=$ac_cv_path_QMAKE
5266 if test -n "$QMAKE"; then
5267   { $as_echo "$as_me:$LINENO: result: $QMAKE" >&5
5268 $as_echo "$QMAKE" >&6; }
5269 else
5270   { $as_echo "$as_me:$LINENO: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 # Extract the first word of "gmake", so it can be a program name with args.
5276 set dummy gmake; ac_word=$2
5277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_path_GMAKE+set}" = set; then
5280   $as_echo_n "(cached) " >&6
5281 else
5282   case $GMAKE in
5283   [\\/]* | ?:[\\/]*)
5284   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5285   ;;
5286   *)
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5295     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5303   ;;
5304 esac
5305 fi
5306 GMAKE=$ac_cv_path_GMAKE
5307 if test -n "$GMAKE"; then
5308   { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5
5309 $as_echo "$GMAKE" >&6; }
5310 else
5311   { $as_echo "$as_me:$LINENO: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316
5317 if test "x$WXCONFIG" = x; then
5318    WXCONFIG=wx-config
5319 fi
5320 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5321 set dummy ${WXCONFIG}; ac_word=$2
5322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5325   $as_echo_n "(cached) " >&6
5326 else
5327   case $WXCONFIG in
5328   [\\/]* | ?:[\\/]*)
5329   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5330   ;;
5331   *)
5332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335   IFS=$as_save_IFS
5336   test -z "$as_dir" && as_dir=.
5337   for ac_exec_ext in '' $ac_executable_extensions; do
5338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5340     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341     break 2
5342   fi
5343 done
5344 done
5345 IFS=$as_save_IFS
5346
5347   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5348   ;;
5349 esac
5350 fi
5351 WXCONFIG=$ac_cv_path_WXCONFIG
5352 if test -n "$WXCONFIG"; then
5353   { $as_echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5354 $as_echo "$WXCONFIG" >&6; }
5355 else
5356   { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361
5362 # Extract the first word of "cdrecord", so it can be a program name with args.
5363 set dummy cdrecord; ac_word=$2
5364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_path_CDRECORD+set}" = set; then
5367   $as_echo_n "(cached) " >&6
5368 else
5369   case $CDRECORD in
5370   [\\/]* | ?:[\\/]*)
5371   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5372   ;;
5373   *)
5374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377   IFS=$as_save_IFS
5378   test -z "$as_dir" && as_dir=.
5379   for ac_exec_ext in '' $ac_executable_extensions; do
5380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5382     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383     break 2
5384   fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5390   ;;
5391 esac
5392 fi
5393 CDRECORD=$ac_cv_path_CDRECORD
5394 if test -n "$CDRECORD"; then
5395   { $as_echo "$as_me:$LINENO: result: $CDRECORD" >&5
5396 $as_echo "$CDRECORD" >&6; }
5397 else
5398   { $as_echo "$as_me:$LINENO: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401
5402
5403 # Extract the first word of "pidof", so it can be a program name with args.
5404 set dummy pidof; ac_word=$2
5405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_path_PIDOF+set}" = set; then
5408   $as_echo_n "(cached) " >&6
5409 else
5410   case $PIDOF in
5411   [\\/]* | ?:[\\/]*)
5412   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5413   ;;
5414   *)
5415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418   IFS=$as_save_IFS
5419   test -z "$as_dir" && as_dir=.
5420   for ac_exec_ext in '' $ac_executable_extensions; do
5421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5423     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424     break 2
5425   fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5431   ;;
5432 esac
5433 fi
5434 PIDOF=$ac_cv_path_PIDOF
5435 if test -n "$PIDOF"; then
5436   { $as_echo "$as_me:$LINENO: result: $PIDOF" >&5
5437 $as_echo "$PIDOF" >&6; }
5438 else
5439   { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443
5444 for ac_prog in gawk mawk nawk awk
5445 do
5446   # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_AWK+set}" = set; then
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if test -n "$AWK"; then
5454   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461   for ac_exec_ext in '' $ac_executable_extensions; do
5462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463     ac_cv_prog_AWK="$ac_prog"
5464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 AWK=$ac_cv_prog_AWK
5474 if test -n "$AWK"; then
5475   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5476 $as_echo "$AWK" >&6; }
5477 else
5478   { $as_echo "$as_me:$LINENO: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483   test -n "$AWK" && break
5484 done
5485
5486 # Some AWK programs fail, so test it and warn the user
5487 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5488       { if ((prog == $2) || (("(" prog ")") == $2) ||
5489       (("" prog "") == $2) ||
5490       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5491 else
5492   { { $as_echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5493    The regex engine of $AWK is too broken to be used you
5494    might want to install GNU AWK.
5495    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5496 $as_echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5497    The regex engine of $AWK is too broken to be used you
5498    might want to install GNU AWK.
5499    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5500    { (exit 1); exit 1; }; }
5501 fi
5502 THE_AWK=$AWK
5503 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5504 set dummy $THE_AWK; ac_word=$2
5505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_path_AWK+set}" = set; then
5508   $as_echo_n "(cached) " >&6
5509 else
5510   case $AWK in
5511   [\\/]* | ?:[\\/]*)
5512   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5513   ;;
5514   *)
5515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520   for ac_exec_ext in '' $ac_executable_extensions; do
5521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5531   ;;
5532 esac
5533 fi
5534 AWK=$ac_cv_path_AWK
5535 if test -n "$AWK"; then
5536   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5537 $as_echo "$AWK" >&6; }
5538 else
5539   { $as_echo "$as_me:$LINENO: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543
5544
5545
5546 test -n "$ARFLAG" || ARFLAGS="cr"
5547
5548
5549 MAKE_SHELL=/bin/sh
5550
5551
5552
5553
5554
5555
5556
5557 use_libtool=yes
5558 # Check whether --enable-libtool was given.
5559 if test "${enable_libtool+set}" = set; then
5560   enableval=$enable_libtool;
5561        if test x$enableval = xno; then
5562           use_libtool=no
5563        fi
5564
5565
5566 fi
5567
5568 case `pwd` in
5569   *\ * | *\     *)
5570     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5571 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5572 esac
5573
5574
5575
5576 macro_version='2.2.6'
5577 macro_revision='1.3012'
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591 ltmain="$ac_aux_dir/ltmain.sh"
5592
5593 # Make sure we can run config.sub.
5594 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5595   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5596 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5597    { (exit 1); exit 1; }; }
5598
5599 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5600 $as_echo_n "checking build system type... " >&6; }
5601 if test "${ac_cv_build+set}" = set; then
5602   $as_echo_n "(cached) " >&6
5603 else
5604   ac_build_alias=$build_alias
5605 test "x$ac_build_alias" = x &&
5606   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5607 test "x$ac_build_alias" = x &&
5608   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5609 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5610    { (exit 1); exit 1; }; }
5611 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5612   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5613 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5614    { (exit 1); exit 1; }; }
5615
5616 fi
5617 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5618 $as_echo "$ac_cv_build" >&6; }
5619 case $ac_cv_build in
5620 *-*-*) ;;
5621 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5622 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5623    { (exit 1); exit 1; }; };;
5624 esac
5625 build=$ac_cv_build
5626 ac_save_IFS=$IFS; IFS='-'
5627 set x $ac_cv_build
5628 shift
5629 build_cpu=$1
5630 build_vendor=$2
5631 shift; shift
5632 # Remember, the first character of IFS is used to create $*,
5633 # except with old shells:
5634 build_os=$*
5635 IFS=$ac_save_IFS
5636 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5637
5638
5639 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5640 $as_echo_n "checking host system type... " >&6; }
5641 if test "${ac_cv_host+set}" = set; then
5642   $as_echo_n "(cached) " >&6
5643 else
5644   if test "x$host_alias" = x; then
5645   ac_cv_host=$ac_cv_build
5646 else
5647   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5648     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5649 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5650    { (exit 1); exit 1; }; }
5651 fi
5652
5653 fi
5654 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5655 $as_echo "$ac_cv_host" >&6; }
5656 case $ac_cv_host in
5657 *-*-*) ;;
5658 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5659 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5660    { (exit 1); exit 1; }; };;
5661 esac
5662 host=$ac_cv_host
5663 ac_save_IFS=$IFS; IFS='-'
5664 set x $ac_cv_host
5665 shift
5666 host_cpu=$1
5667 host_vendor=$2
5668 shift; shift
5669 # Remember, the first character of IFS is used to create $*,
5670 # except with old shells:
5671 host_os=$*
5672 IFS=$ac_save_IFS
5673 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5674
5675
5676 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5677 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5678 if test "${ac_cv_path_SED+set}" = set; then
5679   $as_echo_n "(cached) " >&6
5680 else
5681             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5682      for ac_i in 1 2 3 4 5 6 7; do
5683        ac_script="$ac_script$as_nl$ac_script"
5684      done
5685      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5686      $as_unset ac_script || ac_script=
5687      if test -z "$SED"; then
5688   ac_path_SED_found=false
5689   # Loop through the user's path and test for each of PROGNAME-LIST
5690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695   for ac_prog in sed gsed; do
5696     for ac_exec_ext in '' $ac_executable_extensions; do
5697       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5698       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5699 # Check for GNU ac_path_SED and select it if it is found.
5700   # Check for GNU $ac_path_SED
5701 case `"$ac_path_SED" --version 2>&1` in
5702 *GNU*)
5703   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5704 *)
5705   ac_count=0
5706   $as_echo_n 0123456789 >"conftest.in"
5707   while :
5708   do
5709     cat "conftest.in" "conftest.in" >"conftest.tmp"
5710     mv "conftest.tmp" "conftest.in"
5711     cp "conftest.in" "conftest.nl"
5712     $as_echo '' >> "conftest.nl"
5713     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5714     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5715     ac_count=`expr $ac_count + 1`
5716     if test $ac_count -gt ${ac_path_SED_max-0}; then
5717       # Best one so far, save it but keep looking for a better one
5718       ac_cv_path_SED="$ac_path_SED"
5719       ac_path_SED_max=$ac_count
5720     fi
5721     # 10*(2^10) chars as input seems more than enough
5722     test $ac_count -gt 10 && break
5723   done
5724   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5725 esac
5726
5727       $ac_path_SED_found && break 3
5728     done
5729   done
5730 done
5731 IFS=$as_save_IFS
5732   if test -z "$ac_cv_path_SED"; then
5733     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5734 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5735    { (exit 1); exit 1; }; }
5736   fi
5737 else
5738   ac_cv_path_SED=$SED
5739 fi
5740
5741 fi
5742 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5743 $as_echo "$ac_cv_path_SED" >&6; }
5744  SED="$ac_cv_path_SED"
5745   rm -f conftest.sed
5746
5747 test -z "$SED" && SED=sed
5748 Xsed="$SED -e 1s/^X//"
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5761 $as_echo_n "checking for fgrep... " >&6; }
5762 if test "${ac_cv_path_FGREP+set}" = set; then
5763   $as_echo_n "(cached) " >&6
5764 else
5765   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5766    then ac_cv_path_FGREP="$GREP -F"
5767    else
5768      if test -z "$FGREP"; then
5769   ac_path_FGREP_found=false
5770   # Loop through the user's path and test for each of PROGNAME-LIST
5771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776   for ac_prog in fgrep; do
5777     for ac_exec_ext in '' $ac_executable_extensions; do
5778       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5779       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5780 # Check for GNU ac_path_FGREP and select it if it is found.
5781   # Check for GNU $ac_path_FGREP
5782 case `"$ac_path_FGREP" --version 2>&1` in
5783 *GNU*)
5784   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5785 *)
5786   ac_count=0
5787   $as_echo_n 0123456789 >"conftest.in"
5788   while :
5789   do
5790     cat "conftest.in" "conftest.in" >"conftest.tmp"
5791     mv "conftest.tmp" "conftest.in"
5792     cp "conftest.in" "conftest.nl"
5793     $as_echo 'FGREP' >> "conftest.nl"
5794     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5795     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5796     ac_count=`expr $ac_count + 1`
5797     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5798       # Best one so far, save it but keep looking for a better one
5799       ac_cv_path_FGREP="$ac_path_FGREP"
5800       ac_path_FGREP_max=$ac_count
5801     fi
5802     # 10*(2^10) chars as input seems more than enough
5803     test $ac_count -gt 10 && break
5804   done
5805   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5806 esac
5807
5808       $ac_path_FGREP_found && break 3
5809     done
5810   done
5811 done
5812 IFS=$as_save_IFS
5813   if test -z "$ac_cv_path_FGREP"; then
5814     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5815 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5816    { (exit 1); exit 1; }; }
5817   fi
5818 else
5819   ac_cv_path_FGREP=$FGREP
5820 fi
5821
5822    fi
5823 fi
5824 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5825 $as_echo "$ac_cv_path_FGREP" >&6; }
5826  FGREP="$ac_cv_path_FGREP"
5827
5828
5829 test -z "$GREP" && GREP=grep
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 # Check whether --with-gnu-ld was given.
5850 if test "${with_gnu_ld+set}" = set; then
5851   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5852 else
5853   with_gnu_ld=no
5854 fi
5855
5856 ac_prog=ld
5857 if test "$GCC" = yes; then
5858   # Check if gcc -print-prog-name=ld gives a path.
5859   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5860 $as_echo_n "checking for ld used by $CC... " >&6; }
5861   case $host in
5862   *-*-mingw*)
5863     # gcc leaves a trailing carriage return which upsets mingw
5864     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5865   *)
5866     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5867   esac
5868   case $ac_prog in
5869     # Accept absolute paths.
5870     [\\/]* | ?:[\\/]*)
5871       re_direlt='/[^/][^/]*/\.\./'
5872       # Canonicalize the pathname of ld
5873       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5874       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5875         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5876       done
5877       test -z "$LD" && LD="$ac_prog"
5878       ;;
5879   "")
5880     # If it fails, then pretend we aren't using GCC.
5881     ac_prog=ld
5882     ;;
5883   *)
5884     # If it is relative, then search for the first ld in PATH.
5885     with_gnu_ld=unknown
5886     ;;
5887   esac
5888 elif test "$with_gnu_ld" = yes; then
5889   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5890 $as_echo_n "checking for GNU ld... " >&6; }
5891 else
5892   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5893 $as_echo_n "checking for non-GNU ld... " >&6; }
5894 fi
5895 if test "${lt_cv_path_LD+set}" = set; then
5896   $as_echo_n "(cached) " >&6
5897 else
5898   if test -z "$LD"; then
5899   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5900   for ac_dir in $PATH; do
5901     IFS="$lt_save_ifs"
5902     test -z "$ac_dir" && ac_dir=.
5903     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5904       lt_cv_path_LD="$ac_dir/$ac_prog"
5905       # Check to see if the program is GNU ld.  I'd rather use --version,
5906       # but apparently some variants of GNU ld only accept -v.
5907       # Break only if it was the GNU/non-GNU ld that we prefer.
5908       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5909       *GNU* | *'with BFD'*)
5910         test "$with_gnu_ld" != no && break
5911         ;;
5912       *)
5913         test "$with_gnu_ld" != yes && break
5914         ;;
5915       esac
5916     fi
5917   done
5918   IFS="$lt_save_ifs"
5919 else
5920   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5921 fi
5922 fi
5923
5924 LD="$lt_cv_path_LD"
5925 if test -n "$LD"; then
5926   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5927 $as_echo "$LD" >&6; }
5928 else
5929   { $as_echo "$as_me:$LINENO: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5933 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5934    { (exit 1); exit 1; }; }
5935 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5936 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5937 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5938   $as_echo_n "(cached) " >&6
5939 else
5940   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5941 case `$LD -v 2>&1 </dev/null` in
5942 *GNU* | *'with BFD'*)
5943   lt_cv_prog_gnu_ld=yes
5944   ;;
5945 *)
5946   lt_cv_prog_gnu_ld=no
5947   ;;
5948 esac
5949 fi
5950 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5951 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5952 with_gnu_ld=$lt_cv_prog_gnu_ld
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5963 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5964 if test "${lt_cv_path_NM+set}" = set; then
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$NM"; then
5968   # Let the user override the test.
5969   lt_cv_path_NM="$NM"
5970 else
5971   lt_nm_to_check="${ac_tool_prefix}nm"
5972   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5973     lt_nm_to_check="$lt_nm_to_check nm"
5974   fi
5975   for lt_tmp_nm in $lt_nm_to_check; do
5976     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5978       IFS="$lt_save_ifs"
5979       test -z "$ac_dir" && ac_dir=.
5980       tmp_nm="$ac_dir/$lt_tmp_nm"
5981       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5982         # Check to see if the nm accepts a BSD-compat flag.
5983         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5984         #   nm: unknown option "B" ignored
5985         # Tru64's nm complains that /dev/null is an invalid object file
5986         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5987         */dev/null* | *'Invalid file or object type'*)
5988           lt_cv_path_NM="$tmp_nm -B"
5989           break
5990           ;;
5991         *)
5992           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5993           */dev/null*)
5994             lt_cv_path_NM="$tmp_nm -p"
5995             break
5996             ;;
5997           *)
5998             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999             continue # so that we can try to find one that supports BSD flags
6000             ;;
6001           esac
6002           ;;
6003         esac
6004       fi
6005     done
6006     IFS="$lt_save_ifs"
6007   done
6008   : ${lt_cv_path_NM=no}
6009 fi
6010 fi
6011 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6012 $as_echo "$lt_cv_path_NM" >&6; }
6013 if test "$lt_cv_path_NM" != "no"; then
6014   NM="$lt_cv_path_NM"
6015 else
6016   # Didn't find any BSD compatible name lister, look for dumpbin.
6017   if test -n "$ac_tool_prefix"; then
6018   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6019   do
6020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6025   $as_echo_n "(cached) " >&6
6026 else
6027   if test -n "$DUMPBIN"; then
6028   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035   for ac_exec_ext in '' $ac_executable_extensions; do
6036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6038     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 DUMPBIN=$ac_cv_prog_DUMPBIN
6048 if test -n "$DUMPBIN"; then
6049   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6050 $as_echo "$DUMPBIN" >&6; }
6051 else
6052   { $as_echo "$as_me:$LINENO: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056
6057     test -n "$DUMPBIN" && break
6058   done
6059 fi
6060 if test -z "$DUMPBIN"; then
6061   ac_ct_DUMPBIN=$DUMPBIN
6062   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6063 do
6064   # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6069   $as_echo_n "(cached) " >&6
6070 else
6071   if test -n "$ac_ct_DUMPBIN"; then
6072   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079   for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6082     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6092 if test -n "$ac_ct_DUMPBIN"; then
6093   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6094 $as_echo "$ac_ct_DUMPBIN" >&6; }
6095 else
6096   { $as_echo "$as_me:$LINENO: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101   test -n "$ac_ct_DUMPBIN" && break
6102 done
6103
6104   if test "x$ac_ct_DUMPBIN" = x; then
6105     DUMPBIN=":"
6106   else
6107     case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113     DUMPBIN=$ac_ct_DUMPBIN
6114   fi
6115 fi
6116
6117
6118   if test "$DUMPBIN" != ":"; then
6119     NM="$DUMPBIN"
6120   fi
6121 fi
6122 test -z "$NM" && NM=nm
6123
6124
6125
6126
6127
6128
6129 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6130 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6131 if test "${lt_cv_nm_interface+set}" = set; then
6132   $as_echo_n "(cached) " >&6
6133 else
6134   lt_cv_nm_interface="BSD nm"
6135   echo "int some_variable = 0;" > conftest.$ac_ext
6136   (eval echo "\"\$as_me:6136: $ac_compile\"" >&5)
6137   (eval "$ac_compile" 2>conftest.err)
6138   cat conftest.err >&5
6139   (eval echo "\"\$as_me:6139: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6140   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6141   cat conftest.err >&5
6142   (eval echo "\"\$as_me:6142: output\"" >&5)
6143   cat conftest.out >&5
6144   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6145     lt_cv_nm_interface="MS dumpbin"
6146   fi
6147   rm -f conftest*
6148 fi
6149 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6150 $as_echo "$lt_cv_nm_interface" >&6; }
6151
6152 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6153 $as_echo_n "checking whether ln -s works... " >&6; }
6154 LN_S=$as_ln_s
6155 if test "$LN_S" = "ln -s"; then
6156   { $as_echo "$as_me:$LINENO: result: yes" >&5
6157 $as_echo "yes" >&6; }
6158 else
6159   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6160 $as_echo "no, using $LN_S" >&6; }
6161 fi
6162
6163 # find the maximum length of command line arguments
6164 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6166 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6167   $as_echo_n "(cached) " >&6
6168 else
6169     i=0
6170   teststring="ABCD"
6171
6172   case $build_os in
6173   msdosdjgpp*)
6174     # On DJGPP, this test can blow up pretty badly due to problems in libc
6175     # (any single argument exceeding 2000 bytes causes a buffer overrun
6176     # during glob expansion).  Even if it were fixed, the result of this
6177     # check would be larger than it should be.
6178     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6179     ;;
6180
6181   gnu*)
6182     # Under GNU Hurd, this test is not required because there is
6183     # no limit to the length of command line arguments.
6184     # Libtool will interpret -1 as no limit whatsoever
6185     lt_cv_sys_max_cmd_len=-1;
6186     ;;
6187
6188   cygwin* | mingw* | cegcc*)
6189     # On Win9x/ME, this test blows up -- it succeeds, but takes
6190     # about 5 minutes as the teststring grows exponentially.
6191     # Worse, since 9x/ME are not pre-emptively multitasking,
6192     # you end up with a "frozen" computer, even though with patience
6193     # the test eventually succeeds (with a max line length of 256k).
6194     # Instead, let's just punt: use the minimum linelength reported by
6195     # all of the supported platforms: 8192 (on NT/2K/XP).
6196     lt_cv_sys_max_cmd_len=8192;
6197     ;;
6198
6199   amigaos*)
6200     # On AmigaOS with pdksh, this test takes hours, literally.
6201     # So we just punt and use a minimum line length of 8192.
6202     lt_cv_sys_max_cmd_len=8192;
6203     ;;
6204
6205   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6206     # This has been around since 386BSD, at least.  Likely further.
6207     if test -x /sbin/sysctl; then
6208       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209     elif test -x /usr/sbin/sysctl; then
6210       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211     else
6212       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6213     fi
6214     # And add a safety zone
6215     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217     ;;
6218
6219   interix*)
6220     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221     lt_cv_sys_max_cmd_len=196608
6222     ;;
6223
6224   osf*)
6225     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6226     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6227     # nice to cause kernel panics so lets avoid the loop below.
6228     # First set a reasonable default.
6229     lt_cv_sys_max_cmd_len=16384
6230     #
6231     if test -x /sbin/sysconfig; then
6232       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6233         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6234       esac
6235     fi
6236     ;;
6237   sco3.2v5*)
6238     lt_cv_sys_max_cmd_len=102400
6239     ;;
6240   sysv5* | sco5v6* | sysv4.2uw2*)
6241     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6242     if test -n "$kargmax"; then
6243       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6244     else
6245       lt_cv_sys_max_cmd_len=32768
6246     fi
6247     ;;
6248   *)
6249     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6250     if test -n "$lt_cv_sys_max_cmd_len"; then
6251       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6253     else
6254       # Make teststring a little bigger before we do anything with it.
6255       # a 1K string should be a reasonable start.
6256       for i in 1 2 3 4 5 6 7 8 ; do
6257         teststring=$teststring$teststring
6258       done
6259       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6260       # If test is not a shell built-in, we'll probably end up computing a
6261       # maximum length that is only half of the actual maximum length, but
6262       # we can't tell.
6263       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6264                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6265               test $i != 17 # 1/2 MB should be enough
6266       do
6267         i=`expr $i + 1`
6268         teststring=$teststring$teststring
6269       done
6270       # Only check the string length outside the loop.
6271       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6272       teststring=
6273       # Add a significant safety factor because C++ compilers can tack on
6274       # massive amounts of additional arguments before passing them to the
6275       # linker.  It appears as though 1/2 is a usable value.
6276       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6277     fi
6278     ;;
6279   esac
6280
6281 fi
6282
6283 if test -n $lt_cv_sys_max_cmd_len ; then
6284   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6285 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6286 else
6287   { $as_echo "$as_me:$LINENO: result: none" >&5
6288 $as_echo "none" >&6; }
6289 fi
6290 max_cmd_len=$lt_cv_sys_max_cmd_len
6291
6292
6293
6294
6295
6296
6297 : ${CP="cp -f"}
6298 : ${MV="mv -f"}
6299 : ${RM="rm -f"}
6300
6301 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6302 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6303 # Try some XSI features
6304 xsi_shell=no
6305 ( _lt_dummy="a/b/c"
6306   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6307       = c,a/b,, \
6308     && eval 'test $(( 1 + 1 )) -eq 2 \
6309     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6310   && xsi_shell=yes
6311 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6312 $as_echo "$xsi_shell" >&6; }
6313
6314
6315 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6316 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6317 lt_shell_append=no
6318 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6319     >/dev/null 2>&1 \
6320   && lt_shell_append=yes
6321 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6322 $as_echo "$lt_shell_append" >&6; }
6323
6324
6325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6326   lt_unset=unset
6327 else
6328   lt_unset=false
6329 fi
6330
6331
6332
6333
6334
6335 # test EBCDIC or ASCII
6336 case `echo X|tr X '\101'` in
6337  A) # ASCII based system
6338     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6339   lt_SP2NL='tr \040 \012'
6340   lt_NL2SP='tr \015\012 \040\040'
6341   ;;
6342  *) # EBCDIC based system
6343   lt_SP2NL='tr \100 \n'
6344   lt_NL2SP='tr \r\n \100\100'
6345   ;;
6346 esac
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6357 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6358 if test "${lt_cv_ld_reload_flag+set}" = set; then
6359   $as_echo_n "(cached) " >&6
6360 else
6361   lt_cv_ld_reload_flag='-r'
6362 fi
6363 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6364 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6365 reload_flag=$lt_cv_ld_reload_flag
6366 case $reload_flag in
6367 "" | " "*) ;;
6368 *) reload_flag=" $reload_flag" ;;
6369 esac
6370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371 case $host_os in
6372   darwin*)
6373     if test "$GCC" = yes; then
6374       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6375     else
6376       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6377     fi
6378     ;;
6379 esac
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 if test -n "$ac_tool_prefix"; then
6390   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$OBJDUMP"; then
6398   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405   for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6408     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 OBJDUMP=$ac_cv_prog_OBJDUMP
6418 if test -n "$OBJDUMP"; then
6419   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6420 $as_echo "$OBJDUMP" >&6; }
6421 else
6422   { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426
6427 fi
6428 if test -z "$ac_cv_prog_OBJDUMP"; then
6429   ac_ct_OBJDUMP=$OBJDUMP
6430   # Extract the first word of "objdump", so it can be a program name with args.
6431 set dummy objdump; ac_word=$2
6432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$ac_ct_OBJDUMP"; then
6438   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445   for ac_exec_ext in '' $ac_executable_extensions; do
6446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6458 if test -n "$ac_ct_OBJDUMP"; then
6459   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6460 $as_echo "$ac_ct_OBJDUMP" >&6; }
6461 else
6462   { $as_echo "$as_me:$LINENO: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466   if test "x$ac_ct_OBJDUMP" = x; then
6467     OBJDUMP="false"
6468   else
6469     case $cross_compiling:$ac_tool_warned in
6470 yes:)
6471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6474 esac
6475     OBJDUMP=$ac_ct_OBJDUMP
6476   fi
6477 else
6478   OBJDUMP="$ac_cv_prog_OBJDUMP"
6479 fi
6480
6481 test -z "$OBJDUMP" && OBJDUMP=objdump
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6492 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6493 if test "${lt_cv_deplibs_check_method+set}" = set; then
6494   $as_echo_n "(cached) " >&6
6495 else
6496   lt_cv_file_magic_cmd='$MAGIC_CMD'
6497 lt_cv_file_magic_test_file=
6498 lt_cv_deplibs_check_method='unknown'
6499 # Need to set the preceding variable on all platforms that support
6500 # interlibrary dependencies.
6501 # 'none' -- dependencies not supported.
6502 # `unknown' -- same as none, but documents that we really don't know.
6503 # 'pass_all' -- all dependencies passed with no checks.
6504 # 'test_compile' -- check by making test program.
6505 # 'file_magic [[regex]]' -- check by looking for files in library path
6506 # which responds to the $file_magic_cmd with a given extended regex.
6507 # If you have `file' or equivalent on your system and you're not sure
6508 # whether `pass_all' will *always* work, you probably want this one.
6509
6510 case $host_os in
6511 aix[4-9]*)
6512   lt_cv_deplibs_check_method=pass_all
6513   ;;
6514
6515 beos*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 bsdi[45]*)
6520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6521   lt_cv_file_magic_cmd='/usr/bin/file -L'
6522   lt_cv_file_magic_test_file=/shlib/libc.so
6523   ;;
6524
6525 cygwin*)
6526   # func_win32_libid is a shell function defined in ltmain.sh
6527   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6528   lt_cv_file_magic_cmd='func_win32_libid'
6529   ;;
6530
6531 mingw* | pw32*)
6532   # Base MSYS/MinGW do not provide the 'file' command needed by
6533   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6534   # unless we find 'file', for example because we are cross-compiling.
6535   if ( file / ) >/dev/null 2>&1; then
6536     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537     lt_cv_file_magic_cmd='func_win32_libid'
6538   else
6539     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6540     lt_cv_file_magic_cmd='$OBJDUMP -f'
6541   fi
6542   ;;
6543
6544 cegcc)
6545   # use the weaker test based on 'objdump'. See mingw*.
6546   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6547   lt_cv_file_magic_cmd='$OBJDUMP -f'
6548   ;;
6549
6550 darwin* | rhapsody*)
6551   lt_cv_deplibs_check_method=pass_all
6552   ;;
6553
6554 freebsd* | dragonfly*)
6555   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6556     case $host_cpu in
6557     i*86 )
6558       # Not sure whether the presence of OpenBSD here was a mistake.
6559       # Let's accept both of them until this is cleared up.
6560       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6561       lt_cv_file_magic_cmd=/usr/bin/file
6562       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6563       ;;
6564     esac
6565   else
6566     lt_cv_deplibs_check_method=pass_all
6567   fi
6568   ;;
6569
6570 gnu*)
6571   lt_cv_deplibs_check_method=pass_all
6572   ;;
6573
6574 hpux10.20* | hpux11*)
6575   lt_cv_file_magic_cmd=/usr/bin/file
6576   case $host_cpu in
6577   ia64*)
6578     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6579     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6580     ;;
6581   hppa*64*)
6582     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]'
6583     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6584     ;;
6585   *)
6586     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6587     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6588     ;;
6589   esac
6590   ;;
6591
6592 interix[3-9]*)
6593   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6594   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6595   ;;
6596
6597 irix5* | irix6* | nonstopux*)
6598   case $LD in
6599   *-32|*"-32 ") libmagic=32-bit;;
6600   *-n32|*"-n32 ") libmagic=N32;;
6601   *-64|*"-64 ") libmagic=64-bit;;
6602   *) libmagic=never-match;;
6603   esac
6604   lt_cv_deplibs_check_method=pass_all
6605   ;;
6606
6607 # This must be Linux ELF.
6608 linux* | k*bsd*-gnu)
6609   lt_cv_deplibs_check_method=pass_all
6610   ;;
6611
6612 netbsd*)
6613   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6614     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6615   else
6616     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6617   fi
6618   ;;
6619
6620 newos6*)
6621   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6622   lt_cv_file_magic_cmd=/usr/bin/file
6623   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6624   ;;
6625
6626 *nto* | *qnx*)
6627   lt_cv_deplibs_check_method=pass_all
6628   ;;
6629
6630 openbsd*)
6631   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6632     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6633   else
6634     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6635   fi
6636   ;;
6637
6638 osf3* | osf4* | osf5*)
6639   lt_cv_deplibs_check_method=pass_all
6640   ;;
6641
6642 rdos*)
6643   lt_cv_deplibs_check_method=pass_all
6644   ;;
6645
6646 solaris*)
6647   lt_cv_deplibs_check_method=pass_all
6648   ;;
6649
6650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6651   lt_cv_deplibs_check_method=pass_all
6652   ;;
6653
6654 sysv4 | sysv4.3*)
6655   case $host_vendor in
6656   motorola)
6657     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]'
6658     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6659     ;;
6660   ncr)
6661     lt_cv_deplibs_check_method=pass_all
6662     ;;
6663   sequent)
6664     lt_cv_file_magic_cmd='/bin/file'
6665     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6666     ;;
6667   sni)
6668     lt_cv_file_magic_cmd='/bin/file'
6669     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6670     lt_cv_file_magic_test_file=/lib/libc.so
6671     ;;
6672   siemens)
6673     lt_cv_deplibs_check_method=pass_all
6674     ;;
6675   pc)
6676     lt_cv_deplibs_check_method=pass_all
6677     ;;
6678   esac
6679   ;;
6680
6681 tpf*)
6682   lt_cv_deplibs_check_method=pass_all
6683   ;;
6684 esac
6685
6686 fi
6687 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6688 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6689 file_magic_cmd=$lt_cv_file_magic_cmd
6690 deplibs_check_method=$lt_cv_deplibs_check_method
6691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704 if test -n "$ac_tool_prefix"; then
6705   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}ar; ac_word=$2
6707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_prog_AR+set}" = set; then
6710   $as_echo_n "(cached) " >&6
6711 else
6712   if test -n "$AR"; then
6713   ac_cv_prog_AR="$AR" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720   for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_prog_AR="${ac_tool_prefix}ar"
6723     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 AR=$ac_cv_prog_AR
6733 if test -n "$AR"; then
6734   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6735 $as_echo "$AR" >&6; }
6736 else
6737   { $as_echo "$as_me:$LINENO: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741
6742 fi
6743 if test -z "$ac_cv_prog_AR"; then
6744   ac_ct_AR=$AR
6745   # Extract the first word of "ar", so it can be a program name with args.
6746 set dummy ar; ac_word=$2
6747 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6750   $as_echo_n "(cached) " >&6
6751 else
6752   if test -n "$ac_ct_AR"; then
6753   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760   for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_prog_ac_ct_AR="ar"
6763     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6773 if test -n "$ac_ct_AR"; then
6774   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6775 $as_echo "$ac_ct_AR" >&6; }
6776 else
6777   { $as_echo "$as_me:$LINENO: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781   if test "x$ac_ct_AR" = x; then
6782     AR="false"
6783   else
6784     case $cross_compiling:$ac_tool_warned in
6785 yes:)
6786 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6789 esac
6790     AR=$ac_ct_AR
6791   fi
6792 else
6793   AR="$ac_cv_prog_AR"
6794 fi
6795
6796 test -z "$AR" && AR=ar
6797 test -z "$AR_FLAGS" && AR_FLAGS=cru
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809 if test -n "$ac_tool_prefix"; then
6810   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}strip; ac_word=$2
6812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_STRIP+set}" = set; then
6815   $as_echo_n "(cached) " >&6
6816 else
6817   if test -n "$STRIP"; then
6818   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825   for ac_exec_ext in '' $ac_executable_extensions; do
6826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6828     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829     break 2
6830   fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 STRIP=$ac_cv_prog_STRIP
6838 if test -n "$STRIP"; then
6839   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6840 $as_echo "$STRIP" >&6; }
6841 else
6842   { $as_echo "$as_me:$LINENO: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846
6847 fi
6848 if test -z "$ac_cv_prog_STRIP"; then
6849   ac_ct_STRIP=$STRIP
6850   # Extract the first word of "strip", so it can be a program name with args.
6851 set dummy strip; ac_word=$2
6852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6855   $as_echo_n "(cached) " >&6
6856 else
6857   if test -n "$ac_ct_STRIP"; then
6858   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_prog_ac_ct_STRIP="strip"
6868     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6878 if test -n "$ac_ct_STRIP"; then
6879   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6880 $as_echo "$ac_ct_STRIP" >&6; }
6881 else
6882   { $as_echo "$as_me:$LINENO: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886   if test "x$ac_ct_STRIP" = x; then
6887     STRIP=":"
6888   else
6889     case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895     STRIP=$ac_ct_STRIP
6896   fi
6897 else
6898   STRIP="$ac_cv_prog_STRIP"
6899 fi
6900
6901 test -z "$STRIP" && STRIP=:
6902
6903
6904
6905
6906
6907
6908 if test -n "$ac_tool_prefix"; then
6909   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if test "${ac_cv_prog_RANLIB+set}" = set; then
6914   $as_echo_n "(cached) " >&6
6915 else
6916   if test -n "$RANLIB"; then
6917   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924   for ac_exec_ext in '' $ac_executable_extensions; do
6925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6927     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 RANLIB=$ac_cv_prog_RANLIB
6937 if test -n "$RANLIB"; then
6938   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6939 $as_echo "$RANLIB" >&6; }
6940 else
6941   { $as_echo "$as_me:$LINENO: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 fi
6947 if test -z "$ac_cv_prog_RANLIB"; then
6948   ac_ct_RANLIB=$RANLIB
6949   # Extract the first word of "ranlib", so it can be a program name with args.
6950 set dummy ranlib; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6954   $as_echo_n "(cached) " >&6
6955 else
6956   if test -n "$ac_ct_RANLIB"; then
6957   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_prog_ac_ct_RANLIB="ranlib"
6967     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6977 if test -n "$ac_ct_RANLIB"; then
6978   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6979 $as_echo "$ac_ct_RANLIB" >&6; }
6980 else
6981   { $as_echo "$as_me:$LINENO: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985   if test "x$ac_ct_RANLIB" = x; then
6986     RANLIB=":"
6987   else
6988     case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994     RANLIB=$ac_ct_RANLIB
6995   fi
6996 else
6997   RANLIB="$ac_cv_prog_RANLIB"
6998 fi
6999
7000 test -z "$RANLIB" && RANLIB=:
7001
7002
7003
7004
7005
7006
7007 # Determine commands to create old-style static archives.
7008 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7009 old_postinstall_cmds='chmod 644 $oldlib'
7010 old_postuninstall_cmds=
7011
7012 if test -n "$RANLIB"; then
7013   case $host_os in
7014   openbsd*)
7015     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7016     ;;
7017   *)
7018     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7019     ;;
7020   esac
7021   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057 # If no C compiler was specified, use CC.
7058 LTCC=${LTCC-"$CC"}
7059
7060 # If no C compiler flags were specified, use CFLAGS.
7061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062
7063 # Allow CC to be a program name with arguments.
7064 compiler=$CC
7065
7066
7067 # Check for command to grab the raw symbol name followed by C symbol from nm.
7068 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7069 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7070 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7071   $as_echo_n "(cached) " >&6
7072 else
7073
7074 # These are sane defaults that work on at least a few old systems.
7075 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7076
7077 # Character class describing NM global symbol codes.
7078 symcode='[BCDEGRST]'
7079
7080 # Regexp to match symbols that can be accessed directly from C.
7081 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7082
7083 # Define system-specific variables.
7084 case $host_os in
7085 aix*)
7086   symcode='[BCDT]'
7087   ;;
7088 cygwin* | mingw* | pw32* | cegcc*)
7089   symcode='[ABCDGISTW]'
7090   ;;
7091 hpux*)
7092   if test "$host_cpu" = ia64; then
7093     symcode='[ABCDEGRST]'
7094   fi
7095   ;;
7096 irix* | nonstopux*)
7097   symcode='[BCDEGRST]'
7098   ;;
7099 osf*)
7100   symcode='[BCDEGQRST]'
7101   ;;
7102 solaris*)
7103   symcode='[BDRT]'
7104   ;;
7105 sco3.2v5*)
7106   symcode='[DT]'
7107   ;;
7108 sysv4.2uw2*)
7109   symcode='[DT]'
7110   ;;
7111 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7112   symcode='[ABDT]'
7113   ;;
7114 sysv4)
7115   symcode='[DFNSTU]'
7116   ;;
7117 esac
7118
7119 # If we're using GNU nm, then use its standard symbol codes.
7120 case `$NM -V 2>&1` in
7121 *GNU* | *'with BFD'*)
7122   symcode='[ABCDGIRSTW]' ;;
7123 esac
7124
7125 # Transform an extracted symbol line into a proper C declaration.
7126 # Some systems (esp. on ia64) link data and code symbols differently,
7127 # so use this general approach.
7128 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7129
7130 # Transform an extracted symbol line into symbol name and symbol address
7131 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7132 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'"
7133
7134 # Handle CRLF in mingw tool chain
7135 opt_cr=
7136 case $build_os in
7137 mingw*)
7138   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7139   ;;
7140 esac
7141
7142 # Try without a prefix underscore, then with it.
7143 for ac_symprfx in "" "_"; do
7144
7145   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7146   symxfrm="\\1 $ac_symprfx\\2 \\2"
7147
7148   # Write the raw and C identifiers.
7149   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7150     # Fake it for dumpbin and say T for any non-static function
7151     # and D for any global variable.
7152     # Also find C++ and __fastcall symbols from MSVC++,
7153     # which start with @ or ?.
7154     lt_cv_sys_global_symbol_pipe="$AWK '"\
7155 "     {last_section=section; section=\$ 3};"\
7156 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7157 "     \$ 0!~/External *\|/{next};"\
7158 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7159 "     {if(hide[section]) next};"\
7160 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7161 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7162 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7163 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7164 "     ' prfx=^$ac_symprfx"
7165   else
7166     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7167   fi
7168
7169   # Check to see that the pipe works correctly.
7170   pipe_works=no
7171
7172   rm -f conftest*
7173   cat > conftest.$ac_ext <<_LT_EOF
7174 #ifdef __cplusplus
7175 extern "C" {
7176 #endif
7177 char nm_test_var;
7178 void nm_test_func(void);
7179 void nm_test_func(void){}
7180 #ifdef __cplusplus
7181 }
7182 #endif
7183 int main(){nm_test_var='a';nm_test_func();return(0);}
7184 _LT_EOF
7185
7186   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187   (eval $ac_compile) 2>&5
7188   ac_status=$?
7189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; then
7191     # Now try to grab the symbols.
7192     nlist=conftest.nm
7193     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7194   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7195   ac_status=$?
7196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } && test -s "$nlist"; then
7198       # Try sorting and uniquifying the output.
7199       if sort "$nlist" | uniq > "$nlist"T; then
7200         mv -f "$nlist"T "$nlist"
7201       else
7202         rm -f "$nlist"T
7203       fi
7204
7205       # Make sure that we snagged all the symbols we need.
7206       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7207         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7208           cat <<_LT_EOF > conftest.$ac_ext
7209 #ifdef __cplusplus
7210 extern "C" {
7211 #endif
7212
7213 _LT_EOF
7214           # Now generate the symbol file.
7215           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7216
7217           cat <<_LT_EOF >> conftest.$ac_ext
7218
7219 /* The mapping between symbol names and symbols.  */
7220 const struct {
7221   const char *name;
7222   void       *address;
7223 }
7224 lt__PROGRAM__LTX_preloaded_symbols[] =
7225 {
7226   { "@PROGRAM@", (void *) 0 },
7227 _LT_EOF
7228           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7229           cat <<\_LT_EOF >> conftest.$ac_ext
7230   {0, (void *) 0}
7231 };
7232
7233 /* This works around a problem in FreeBSD linker */
7234 #ifdef FREEBSD_WORKAROUND
7235 static const void *lt_preloaded_setup() {
7236   return lt__PROGRAM__LTX_preloaded_symbols;
7237 }
7238 #endif
7239
7240 #ifdef __cplusplus
7241 }
7242 #endif
7243 _LT_EOF
7244           # Now try linking the two files.
7245           mv conftest.$ac_objext conftstm.$ac_objext
7246           lt_save_LIBS="$LIBS"
7247           lt_save_CFLAGS="$CFLAGS"
7248           LIBS="conftstm.$ac_objext"
7249           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7250           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7251   (eval $ac_link) 2>&5
7252   ac_status=$?
7253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7255             pipe_works=yes
7256           fi
7257           LIBS="$lt_save_LIBS"
7258           CFLAGS="$lt_save_CFLAGS"
7259         else
7260           echo "cannot find nm_test_func in $nlist" >&5
7261         fi
7262       else
7263         echo "cannot find nm_test_var in $nlist" >&5
7264       fi
7265     else
7266       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7267     fi
7268   else
7269     echo "$progname: failed program was:" >&5
7270     cat conftest.$ac_ext >&5
7271   fi
7272   rm -rf conftest* conftst*
7273
7274   # Do not use the global_symbol_pipe unless it works.
7275   if test "$pipe_works" = yes; then
7276     break
7277   else
7278     lt_cv_sys_global_symbol_pipe=
7279   fi
7280 done
7281
7282 fi
7283
7284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7285   lt_cv_sys_global_symbol_to_cdecl=
7286 fi
7287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7288   { $as_echo "$as_me:$LINENO: result: failed" >&5
7289 $as_echo "failed" >&6; }
7290 else
7291   { $as_echo "$as_me:$LINENO: result: ok" >&5
7292 $as_echo "ok" >&6; }
7293 fi
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316 # Check whether --enable-libtool-lock was given.
7317 if test "${enable_libtool_lock+set}" = set; then
7318   enableval=$enable_libtool_lock;
7319 fi
7320
7321 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7322
7323 # Some flags need to be propagated to the compiler or linker for good
7324 # libtool support.
7325 case $host in
7326 ia64-*-hpux*)
7327   # Find out which ABI we are using.
7328   echo 'int i;' > conftest.$ac_ext
7329   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330   (eval $ac_compile) 2>&5
7331   ac_status=$?
7332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }; then
7334     case `/usr/bin/file conftest.$ac_objext` in
7335       *ELF-32*)
7336         HPUX_IA64_MODE="32"
7337         ;;
7338       *ELF-64*)
7339         HPUX_IA64_MODE="64"
7340         ;;
7341     esac
7342   fi
7343   rm -rf conftest*
7344   ;;
7345 *-*-irix6*)
7346   # Find out which ABI we are using.
7347   echo '#line 7347 "configure"' > conftest.$ac_ext
7348   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7349   (eval $ac_compile) 2>&5
7350   ac_status=$?
7351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); }; then
7353     if test "$lt_cv_prog_gnu_ld" = yes; then
7354       case `/usr/bin/file conftest.$ac_objext` in
7355         *32-bit*)
7356           LD="${LD-ld} -melf32bsmip"
7357           ;;
7358         *N32*)
7359           LD="${LD-ld} -melf32bmipn32"
7360           ;;
7361         *64-bit*)
7362           LD="${LD-ld} -melf64bmip"
7363         ;;
7364       esac
7365     else
7366       case `/usr/bin/file conftest.$ac_objext` in
7367         *32-bit*)
7368           LD="${LD-ld} -32"
7369           ;;
7370         *N32*)
7371           LD="${LD-ld} -n32"
7372           ;;
7373         *64-bit*)
7374           LD="${LD-ld} -64"
7375           ;;
7376       esac
7377     fi
7378   fi
7379   rm -rf conftest*
7380   ;;
7381
7382 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7383 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7384   # Find out which ABI we are using.
7385   echo 'int i;' > conftest.$ac_ext
7386   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387   (eval $ac_compile) 2>&5
7388   ac_status=$?
7389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; then
7391     case `/usr/bin/file conftest.o` in
7392       *32-bit*)
7393         case $host in
7394           x86_64-*kfreebsd*-gnu)
7395             LD="${LD-ld} -m elf_i386_fbsd"
7396             ;;
7397           x86_64-*linux*)
7398             LD="${LD-ld} -m elf_i386"
7399             ;;
7400           ppc64-*linux*|powerpc64-*linux*)
7401             LD="${LD-ld} -m elf32ppclinux"
7402             ;;
7403           s390x-*linux*)
7404             LD="${LD-ld} -m elf_s390"
7405             ;;
7406           sparc64-*linux*)
7407             LD="${LD-ld} -m elf32_sparc"
7408             ;;
7409         esac
7410         ;;
7411       *64-bit*)
7412         case $host in
7413           x86_64-*kfreebsd*-gnu)
7414             LD="${LD-ld} -m elf_x86_64_fbsd"
7415             ;;
7416           x86_64-*linux*)
7417             LD="${LD-ld} -m elf_x86_64"
7418             ;;
7419           ppc*-*linux*|powerpc*-*linux*)
7420             LD="${LD-ld} -m elf64ppc"
7421             ;;
7422           s390*-*linux*|s390*-*tpf*)
7423             LD="${LD-ld} -m elf64_s390"
7424             ;;
7425           sparc*-*linux*)
7426             LD="${LD-ld} -m elf64_sparc"
7427             ;;
7428         esac
7429         ;;
7430     esac
7431   fi
7432   rm -rf conftest*
7433   ;;
7434
7435 *-*-sco3.2v5*)
7436   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7437   SAVE_CFLAGS="$CFLAGS"
7438   CFLAGS="$CFLAGS -belf"
7439   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7440 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7441 if test "${lt_cv_cc_needs_belf+set}" = set; then
7442   $as_echo_n "(cached) " >&6
7443 else
7444   ac_ext=c
7445 ac_cpp='$CPP $CPPFLAGS'
7446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449
7450      cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456
7457 int
7458 main ()
7459 {
7460
7461   ;
7462   return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7467 case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7472 $as_echo "$ac_try_echo") >&5
7473   (eval "$ac_link") 2>conftest.er1
7474   ac_status=$?
7475   grep -v '^ *+' conftest.er1 >conftest.err
7476   rm -f conftest.er1
7477   cat conftest.err >&5
7478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); } && {
7480          test -z "$ac_c_werror_flag" ||
7481          test ! -s conftest.err
7482        } && test -s conftest$ac_exeext && {
7483          test "$cross_compiling" = yes ||
7484          $as_test_x conftest$ac_exeext
7485        }; then
7486   lt_cv_cc_needs_belf=yes
7487 else
7488   $as_echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491         lt_cv_cc_needs_belf=no
7492 fi
7493
7494 rm -rf conftest.dSYM
7495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7496       conftest$ac_exeext conftest.$ac_ext
7497      ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503 fi
7504 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7505 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7506   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7507     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7508     CFLAGS="$SAVE_CFLAGS"
7509   fi
7510   ;;
7511 sparc*-*solaris*)
7512   # Find out which ABI we are using.
7513   echo 'int i;' > conftest.$ac_ext
7514   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515   (eval $ac_compile) 2>&5
7516   ac_status=$?
7517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; then
7519     case `/usr/bin/file conftest.o` in
7520     *64-bit*)
7521       case $lt_cv_prog_gnu_ld in
7522       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7523       *)
7524         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7525           LD="${LD-ld} -64"
7526         fi
7527         ;;
7528       esac
7529       ;;
7530     esac
7531   fi
7532   rm -rf conftest*
7533   ;;
7534 esac
7535
7536 need_locks="$enable_libtool_lock"
7537
7538
7539   case $host_os in
7540     rhapsody* | darwin*)
7541     if test -n "$ac_tool_prefix"; then
7542   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7544 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7547   $as_echo_n "(cached) " >&6
7548 else
7549   if test -n "$DSYMUTIL"; then
7550   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7560     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7570 if test -n "$DSYMUTIL"; then
7571   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7572 $as_echo "$DSYMUTIL" >&6; }
7573 else
7574   { $as_echo "$as_me:$LINENO: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578
7579 fi
7580 if test -z "$ac_cv_prog_DSYMUTIL"; then
7581   ac_ct_DSYMUTIL=$DSYMUTIL
7582   # Extract the first word of "dsymutil", so it can be a program name with args.
7583 set dummy dsymutil; ac_word=$2
7584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7587   $as_echo_n "(cached) " >&6
7588 else
7589   if test -n "$ac_ct_DSYMUTIL"; then
7590   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595   IFS=$as_save_IFS
7596   test -z "$as_dir" && as_dir=.
7597   for ac_exec_ext in '' $ac_executable_extensions; do
7598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7600     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7610 if test -n "$ac_ct_DSYMUTIL"; then
7611   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7612 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7613 else
7614   { $as_echo "$as_me:$LINENO: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618   if test "x$ac_ct_DSYMUTIL" = x; then
7619     DSYMUTIL=":"
7620   else
7621     case $cross_compiling:$ac_tool_warned in
7622 yes:)
7623 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7626 esac
7627     DSYMUTIL=$ac_ct_DSYMUTIL
7628   fi
7629 else
7630   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7631 fi
7632
7633     if test -n "$ac_tool_prefix"; then
7634   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7639   $as_echo_n "(cached) " >&6
7640 else
7641   if test -n "$NMEDIT"; then
7642   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649   for ac_exec_ext in '' $ac_executable_extensions; do
7650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7652     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 NMEDIT=$ac_cv_prog_NMEDIT
7662 if test -n "$NMEDIT"; then
7663   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7664 $as_echo "$NMEDIT" >&6; }
7665 else
7666   { $as_echo "$as_me:$LINENO: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671 fi
7672 if test -z "$ac_cv_prog_NMEDIT"; then
7673   ac_ct_NMEDIT=$NMEDIT
7674   # Extract the first word of "nmedit", so it can be a program name with args.
7675 set dummy nmedit; ac_word=$2
7676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7679   $as_echo_n "(cached) " >&6
7680 else
7681   if test -n "$ac_ct_NMEDIT"; then
7682   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689   for ac_exec_ext in '' $ac_executable_extensions; do
7690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7692     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7702 if test -n "$ac_ct_NMEDIT"; then
7703   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7704 $as_echo "$ac_ct_NMEDIT" >&6; }
7705 else
7706   { $as_echo "$as_me:$LINENO: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710   if test "x$ac_ct_NMEDIT" = x; then
7711     NMEDIT=":"
7712   else
7713     case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719     NMEDIT=$ac_ct_NMEDIT
7720   fi
7721 else
7722   NMEDIT="$ac_cv_prog_NMEDIT"
7723 fi
7724
7725     if test -n "$ac_tool_prefix"; then
7726   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if test "${ac_cv_prog_LIPO+set}" = set; then
7731   $as_echo_n "(cached) " >&6
7732 else
7733   if test -n "$LIPO"; then
7734   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741   for ac_exec_ext in '' $ac_executable_extensions; do
7742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7744     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 LIPO=$ac_cv_prog_LIPO
7754 if test -n "$LIPO"; then
7755   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7756 $as_echo "$LIPO" >&6; }
7757 else
7758   { $as_echo "$as_me:$LINENO: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763 fi
7764 if test -z "$ac_cv_prog_LIPO"; then
7765   ac_ct_LIPO=$LIPO
7766   # Extract the first word of "lipo", so it can be a program name with args.
7767 set dummy lipo; ac_word=$2
7768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7771   $as_echo_n "(cached) " >&6
7772 else
7773   if test -n "$ac_ct_LIPO"; then
7774   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779   IFS=$as_save_IFS
7780   test -z "$as_dir" && as_dir=.
7781   for ac_exec_ext in '' $ac_executable_extensions; do
7782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783     ac_cv_prog_ac_ct_LIPO="lipo"
7784     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785     break 2
7786   fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7794 if test -n "$ac_ct_LIPO"; then
7795   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7796 $as_echo "$ac_ct_LIPO" >&6; }
7797 else
7798   { $as_echo "$as_me:$LINENO: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802   if test "x$ac_ct_LIPO" = x; then
7803     LIPO=":"
7804   else
7805     case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811     LIPO=$ac_ct_LIPO
7812   fi
7813 else
7814   LIPO="$ac_cv_prog_LIPO"
7815 fi
7816
7817     if test -n "$ac_tool_prefix"; then
7818   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7819 set dummy ${ac_tool_prefix}otool; ac_word=$2
7820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if test "${ac_cv_prog_OTOOL+set}" = set; then
7823   $as_echo_n "(cached) " >&6
7824 else
7825   if test -n "$OTOOL"; then
7826   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   test -z "$as_dir" && as_dir=.
7833   for ac_exec_ext in '' $ac_executable_extensions; do
7834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7836     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840 done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 OTOOL=$ac_cv_prog_OTOOL
7846 if test -n "$OTOOL"; then
7847   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7848 $as_echo "$OTOOL" >&6; }
7849 else
7850   { $as_echo "$as_me:$LINENO: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855 fi
7856 if test -z "$ac_cv_prog_OTOOL"; then
7857   ac_ct_OTOOL=$OTOOL
7858   # Extract the first word of "otool", so it can be a program name with args.
7859 set dummy otool; ac_word=$2
7860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7863   $as_echo_n "(cached) " >&6
7864 else
7865   if test -n "$ac_ct_OTOOL"; then
7866   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871   IFS=$as_save_IFS
7872   test -z "$as_dir" && as_dir=.
7873   for ac_exec_ext in '' $ac_executable_extensions; do
7874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875     ac_cv_prog_ac_ct_OTOOL="otool"
7876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877     break 2
7878   fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7886 if test -n "$ac_ct_OTOOL"; then
7887   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7888 $as_echo "$ac_ct_OTOOL" >&6; }
7889 else
7890   { $as_echo "$as_me:$LINENO: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894   if test "x$ac_ct_OTOOL" = x; then
7895     OTOOL=":"
7896   else
7897     case $cross_compiling:$ac_tool_warned in
7898 yes:)
7899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901 ac_tool_warned=yes ;;
7902 esac
7903     OTOOL=$ac_ct_OTOOL
7904   fi
7905 else
7906   OTOOL="$ac_cv_prog_OTOOL"
7907 fi
7908
7909     if test -n "$ac_tool_prefix"; then
7910   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7915   $as_echo_n "(cached) " >&6
7916 else
7917   if test -n "$OTOOL64"; then
7918   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925   for ac_exec_ext in '' $ac_executable_extensions; do
7926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7928     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 OTOOL64=$ac_cv_prog_OTOOL64
7938 if test -n "$OTOOL64"; then
7939   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7940 $as_echo "$OTOOL64" >&6; }
7941 else
7942   { $as_echo "$as_me:$LINENO: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_OTOOL64"; then
7949   ac_ct_OTOOL64=$OTOOL64
7950   # Extract the first word of "otool64", so it can be a program name with args.
7951 set dummy otool64; ac_word=$2
7952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7955   $as_echo_n "(cached) " >&6
7956 else
7957   if test -n "$ac_ct_OTOOL64"; then
7958   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965   for ac_exec_ext in '' $ac_executable_extensions; do
7966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967     ac_cv_prog_ac_ct_OTOOL64="otool64"
7968     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7978 if test -n "$ac_ct_OTOOL64"; then
7979   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7980 $as_echo "$ac_ct_OTOOL64" >&6; }
7981 else
7982   { $as_echo "$as_me:$LINENO: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986   if test "x$ac_ct_OTOOL64" = x; then
7987     OTOOL64=":"
7988   else
7989     case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7994 esac
7995     OTOOL64=$ac_ct_OTOOL64
7996   fi
7997 else
7998   OTOOL64="$ac_cv_prog_OTOOL64"
7999 fi
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8028 $as_echo_n "checking for -single_module linker flag... " >&6; }
8029 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8030   $as_echo_n "(cached) " >&6
8031 else
8032   lt_cv_apple_cc_single_mod=no
8033       if test -z "${LT_MULTI_MODULE}"; then
8034         # By default we will add the -single_module flag. You can override
8035         # by either setting the environment variable LT_MULTI_MODULE
8036         # non-empty at configure time, or by adding -multi_module to the
8037         # link flags.
8038         rm -rf libconftest.dylib*
8039         echo "int foo(void){return 1;}" > conftest.c
8040         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8041 -dynamiclib -Wl,-single_module conftest.c" >&5
8042         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8043           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8044         _lt_result=$?
8045         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8046           lt_cv_apple_cc_single_mod=yes
8047         else
8048           cat conftest.err >&5
8049         fi
8050         rm -rf libconftest.dylib*
8051         rm -f conftest.*
8052       fi
8053 fi
8054 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8055 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8056     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8057 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8058 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8059   $as_echo_n "(cached) " >&6
8060 else
8061   lt_cv_ld_exported_symbols_list=no
8062       save_LDFLAGS=$LDFLAGS
8063       echo "_main" > conftest.sym
8064       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
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
8072 int
8073 main ()
8074 {
8075
8076   ;
8077   return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (ac_try="$ac_link"
8082 case "(($ac_try" in
8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084   *) ac_try_echo=$ac_try;;
8085 esac
8086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8087 $as_echo "$ac_try_echo") >&5
8088   (eval "$ac_link") 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } && {
8095          test -z "$ac_c_werror_flag" ||
8096          test ! -s conftest.err
8097        } && test -s conftest$ac_exeext && {
8098          test "$cross_compiling" = yes ||
8099          $as_test_x conftest$ac_exeext
8100        }; then
8101   lt_cv_ld_exported_symbols_list=yes
8102 else
8103   $as_echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106         lt_cv_ld_exported_symbols_list=no
8107 fi
8108
8109 rm -rf conftest.dSYM
8110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8111       conftest$ac_exeext conftest.$ac_ext
8112         LDFLAGS="$save_LDFLAGS"
8113
8114 fi
8115 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8116 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8117     case $host_os in
8118     rhapsody* | darwin1.[012])
8119       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8120     darwin1.*)
8121       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122     darwin*) # darwin 5.x on
8123       # if running on 10.5 or later, the deployment target defaults
8124       # to the OS version, if on x86, and 10.4, the deployment
8125       # target defaults to 10.4. Don't you love it?
8126       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8127         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8128           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8129         10.[012]*)
8130           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8131         10.*)
8132           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133       esac
8134     ;;
8135   esac
8136     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8137       _lt_dar_single_mod='$single_module'
8138     fi
8139     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8140       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8141     else
8142       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8143     fi
8144     if test "$DSYMUTIL" != ":"; then
8145       _lt_dsymutil='~$DSYMUTIL $lib || :'
8146     else
8147       _lt_dsymutil=
8148     fi
8149     ;;
8150   esac
8151
8152 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8153 $as_echo_n "checking for ANSI C header files... " >&6; }
8154 if test "${ac_cv_header_stdc+set}" = set; then
8155   $as_echo_n "(cached) " >&6
8156 else
8157   cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163 #include <stdlib.h>
8164 #include <stdarg.h>
8165 #include <string.h>
8166 #include <float.h>
8167
8168 int
8169 main ()
8170 {
8171
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8178 case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8183 $as_echo "$ac_try_echo") >&5
8184   (eval "$ac_compile") 2>conftest.er1
8185   ac_status=$?
8186   grep -v '^ *+' conftest.er1 >conftest.err
8187   rm -f conftest.er1
8188   cat conftest.err >&5
8189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } && {
8191          test -z "$ac_c_werror_flag" ||
8192          test ! -s conftest.err
8193        } && test -s conftest.$ac_objext; then
8194   ac_cv_header_stdc=yes
8195 else
8196   $as_echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199         ac_cv_header_stdc=no
8200 fi
8201
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203
8204 if test $ac_cv_header_stdc = yes; then
8205   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8206   cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212 #include <string.h>
8213
8214 _ACEOF
8215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8216   $EGREP "memchr" >/dev/null 2>&1; then
8217   :
8218 else
8219   ac_cv_header_stdc=no
8220 fi
8221 rm -f conftest*
8222
8223 fi
8224
8225 if test $ac_cv_header_stdc = yes; then
8226   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8227   cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233 #include <stdlib.h>
8234
8235 _ACEOF
8236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8237   $EGREP "free" >/dev/null 2>&1; then
8238   :
8239 else
8240   ac_cv_header_stdc=no
8241 fi
8242 rm -f conftest*
8243
8244 fi
8245
8246 if test $ac_cv_header_stdc = yes; then
8247   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8248   if test "$cross_compiling" = yes; then
8249   :
8250 else
8251   cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 #include <ctype.h>
8258 #include <stdlib.h>
8259 #if ((' ' & 0x0FF) == 0x020)
8260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8262 #else
8263 # define ISLOWER(c) \
8264                    (('a' <= (c) && (c) <= 'i') \
8265                      || ('j' <= (c) && (c) <= 'r') \
8266                      || ('s' <= (c) && (c) <= 'z'))
8267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8268 #endif
8269
8270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8271 int
8272 main ()
8273 {
8274   int i;
8275   for (i = 0; i < 256; i++)
8276     if (XOR (islower (i), ISLOWER (i))
8277         || toupper (i) != TOUPPER (i))
8278       return 2;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest$ac_exeext
8283 if { (ac_try="$ac_link"
8284 case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290   (eval "$ac_link") 2>&5
8291   ac_status=$?
8292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8294   { (case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300   (eval "$ac_try") 2>&5
8301   ac_status=$?
8302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   :
8305 else
8306   $as_echo "$as_me: program exited with status $ac_status" >&5
8307 $as_echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ( exit $ac_status )
8311 ac_cv_header_stdc=no
8312 fi
8313 rm -rf conftest.dSYM
8314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8315 fi
8316
8317
8318 fi
8319 fi
8320 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8321 $as_echo "$ac_cv_header_stdc" >&6; }
8322 if test $ac_cv_header_stdc = yes; then
8323
8324 cat >>confdefs.h <<\_ACEOF
8325 #define STDC_HEADERS 1
8326 _ACEOF
8327
8328 fi
8329
8330 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8341                   inttypes.h stdint.h unistd.h
8342 do
8343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8345 $as_echo_n "checking for $ac_header... " >&6; }
8346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8347   $as_echo_n "(cached) " >&6
8348 else
8349   cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355 $ac_includes_default
8356
8357 #include <$ac_header>
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8361 case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8366 $as_echo "$ac_try_echo") >&5
8367   (eval "$ac_compile") 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } && {
8374          test -z "$ac_c_werror_flag" ||
8375          test ! -s conftest.err
8376        } && test -s conftest.$ac_objext; then
8377   eval "$as_ac_Header=yes"
8378 else
8379   $as_echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382         eval "$as_ac_Header=no"
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 ac_res=`eval 'as_val=${'$as_ac_Header'}
8388                  $as_echo "$as_val"'`
8389                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8390 $as_echo "$ac_res" >&6; }
8391 as_val=`eval 'as_val=${'$as_ac_Header'}
8392                  $as_echo "$as_val"'`
8393    if test "x$as_val" = x""yes; then
8394   cat >>confdefs.h <<_ACEOF
8395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396 _ACEOF
8397
8398 fi
8399
8400 done
8401
8402
8403
8404 for ac_header in dlfcn.h
8405 do
8406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 $as_echo_n "checking for $ac_header... " >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410   $as_echo_n "(cached) " >&6
8411 else
8412   cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418 $ac_includes_default
8419
8420 #include <$ac_header>
8421 _ACEOF
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8424 case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8429 $as_echo "$ac_try_echo") >&5
8430   (eval "$ac_compile") 2>conftest.er1
8431   ac_status=$?
8432   grep -v '^ *+' conftest.er1 >conftest.err
8433   rm -f conftest.er1
8434   cat conftest.err >&5
8435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } && {
8437          test -z "$ac_c_werror_flag" ||
8438          test ! -s conftest.err
8439        } && test -s conftest.$ac_objext; then
8440   eval "$as_ac_Header=yes"
8441 else
8442   $as_echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8444
8445         eval "$as_ac_Header=no"
8446 fi
8447
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 ac_res=`eval 'as_val=${'$as_ac_Header'}
8451                  $as_echo "$as_val"'`
8452                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8453 $as_echo "$ac_res" >&6; }
8454 as_val=`eval 'as_val=${'$as_ac_Header'}
8455                  $as_echo "$as_val"'`
8456    if test "x$as_val" = x""yes; then
8457   cat >>confdefs.h <<_ACEOF
8458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8459 _ACEOF
8460
8461 fi
8462
8463 done
8464
8465
8466
8467 ac_ext=cpp
8468 ac_cpp='$CXXCPP $CPPFLAGS'
8469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8472 if test -z "$CXX"; then
8473   if test -n "$CCC"; then
8474     CXX=$CCC
8475   else
8476     if test -n "$ac_tool_prefix"; then
8477   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8478   do
8479     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if test "${ac_cv_prog_CXX+set}" = set; then
8484   $as_echo_n "(cached) " >&6
8485 else
8486   if test -n "$CXX"; then
8487   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492   IFS=$as_save_IFS
8493   test -z "$as_dir" && as_dir=.
8494   for ac_exec_ext in '' $ac_executable_extensions; do
8495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8498     break 2
8499   fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 CXX=$ac_cv_prog_CXX
8507 if test -n "$CXX"; then
8508   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8509 $as_echo "$CXX" >&6; }
8510 else
8511   { $as_echo "$as_me:$LINENO: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514
8515
8516     test -n "$CXX" && break
8517   done
8518 fi
8519 if test -z "$CXX"; then
8520   ac_ct_CXX=$CXX
8521   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8522 do
8523   # Extract the first word of "$ac_prog", so it can be a program name with args.
8524 set dummy $ac_prog; ac_word=$2
8525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8528   $as_echo_n "(cached) " >&6
8529 else
8530   if test -n "$ac_ct_CXX"; then
8531   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536   IFS=$as_save_IFS
8537   test -z "$as_dir" && as_dir=.
8538   for ac_exec_ext in '' $ac_executable_extensions; do
8539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540     ac_cv_prog_ac_ct_CXX="$ac_prog"
8541     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542     break 2
8543   fi
8544 done
8545 done
8546 IFS=$as_save_IFS
8547
8548 fi
8549 fi
8550 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8551 if test -n "$ac_ct_CXX"; then
8552   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8553 $as_echo "$ac_ct_CXX" >&6; }
8554 else
8555   { $as_echo "$as_me:$LINENO: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559
8560   test -n "$ac_ct_CXX" && break
8561 done
8562
8563   if test "x$ac_ct_CXX" = x; then
8564     CXX="g++"
8565   else
8566     case $cross_compiling:$ac_tool_warned in
8567 yes:)
8568 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8571 esac
8572     CXX=$ac_ct_CXX
8573   fi
8574 fi
8575
8576   fi
8577 fi
8578 # Provide some information about the compiler.
8579 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8580 set X $ac_compile
8581 ac_compiler=$2
8582 { (ac_try="$ac_compiler --version >&5"
8583 case "(($ac_try" in
8584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585   *) ac_try_echo=$ac_try;;
8586 esac
8587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8588 $as_echo "$ac_try_echo") >&5
8589   (eval "$ac_compiler --version >&5") 2>&5
8590   ac_status=$?
8591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }
8593 { (ac_try="$ac_compiler -v >&5"
8594 case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599 $as_echo "$ac_try_echo") >&5
8600   (eval "$ac_compiler -v >&5") 2>&5
8601   ac_status=$?
8602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }
8604 { (ac_try="$ac_compiler -V >&5"
8605 case "(($ac_try" in
8606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607   *) ac_try_echo=$ac_try;;
8608 esac
8609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8610 $as_echo "$ac_try_echo") >&5
8611   (eval "$ac_compiler -V >&5") 2>&5
8612   ac_status=$?
8613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }
8615
8616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8617 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8618 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8619   $as_echo_n "(cached) " >&6
8620 else
8621   cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627
8628 int
8629 main ()
8630 {
8631 #ifndef __GNUC__
8632        choke me
8633 #endif
8634
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8641 case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8646 $as_echo "$ac_try_echo") >&5
8647   (eval "$ac_compile") 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } && {
8654          test -z "$ac_cxx_werror_flag" ||
8655          test ! -s conftest.err
8656        } && test -s conftest.$ac_objext; then
8657   ac_compiler_gnu=yes
8658 else
8659   $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662         ac_compiler_gnu=no
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8667
8668 fi
8669 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8670 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8671 if test $ac_compiler_gnu = yes; then
8672   GXX=yes
8673 else
8674   GXX=
8675 fi
8676 ac_test_CXXFLAGS=${CXXFLAGS+set}
8677 ac_save_CXXFLAGS=$CXXFLAGS
8678 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8679 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8680 if test "${ac_cv_prog_cxx_g+set}" = set; then
8681   $as_echo_n "(cached) " >&6
8682 else
8683   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8684    ac_cxx_werror_flag=yes
8685    ac_cv_prog_cxx_g=no
8686    CXXFLAGS="-g"
8687    cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693
8694 int
8695 main ()
8696 {
8697
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710   (eval "$ac_compile") 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } && {
8717          test -z "$ac_cxx_werror_flag" ||
8718          test ! -s conftest.err
8719        } && test -s conftest.$ac_objext; then
8720   ac_cv_prog_cxx_g=yes
8721 else
8722   $as_echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725         CXXFLAGS=""
8726       cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h.  */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h.  */
8732
8733 int
8734 main ()
8735 {
8736
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (ac_try="$ac_compile"
8743 case "(($ac_try" in
8744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745   *) ac_try_echo=$ac_try;;
8746 esac
8747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8748 $as_echo "$ac_try_echo") >&5
8749   (eval "$ac_compile") 2>conftest.er1
8750   ac_status=$?
8751   grep -v '^ *+' conftest.er1 >conftest.err
8752   rm -f conftest.er1
8753   cat conftest.err >&5
8754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } && {
8756          test -z "$ac_cxx_werror_flag" ||
8757          test ! -s conftest.err
8758        } && test -s conftest.$ac_objext; then
8759   :
8760 else
8761   $as_echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8763
8764         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8765          CXXFLAGS="-g"
8766          cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h.  */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h.  */
8772
8773 int
8774 main ()
8775 {
8776
8777   ;
8778   return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext
8782 if { (ac_try="$ac_compile"
8783 case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8788 $as_echo "$ac_try_echo") >&5
8789   (eval "$ac_compile") 2>conftest.er1
8790   ac_status=$?
8791   grep -v '^ *+' conftest.er1 >conftest.err
8792   rm -f conftest.er1
8793   cat conftest.err >&5
8794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } && {
8796          test -z "$ac_cxx_werror_flag" ||
8797          test ! -s conftest.err
8798        } && test -s conftest.$ac_objext; then
8799   ac_cv_prog_cxx_g=yes
8800 else
8801   $as_echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804
8805 fi
8806
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 fi
8809
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 fi
8812
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8815 fi
8816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8817 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8818 if test "$ac_test_CXXFLAGS" = set; then
8819   CXXFLAGS=$ac_save_CXXFLAGS
8820 elif test $ac_cv_prog_cxx_g = yes; then
8821   if test "$GXX" = yes; then
8822     CXXFLAGS="-g -O2"
8823   else
8824     CXXFLAGS="-g"
8825   fi
8826 else
8827   if test "$GXX" = yes; then
8828     CXXFLAGS="-O2"
8829   else
8830     CXXFLAGS=
8831   fi
8832 fi
8833 ac_ext=c
8834 ac_cpp='$CPP $CPPFLAGS'
8835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8838
8839 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8840     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8841     (test "X$CXX" != "Xg++"))) ; then
8842   ac_ext=cpp
8843 ac_cpp='$CXXCPP $CPPFLAGS'
8844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8847 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8848 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8849 if test -z "$CXXCPP"; then
8850   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8851   $as_echo_n "(cached) " >&6
8852 else
8853       # Double quotes because CXXCPP needs to be expanded
8854     for CXXCPP in "$CXX -E" "/lib/cpp"
8855     do
8856       ac_preproc_ok=false
8857 for ac_cxx_preproc_warn_flag in '' yes
8858 do
8859   # Use a header file that comes with gcc, so configuring glibc
8860   # with a fresh cross-compiler works.
8861   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8862   # <limits.h> exists even on freestanding compilers.
8863   # On the NeXT, cc -E runs the code through the compiler's parser,
8864   # not just through cpp. "Syntax error" is here to catch this case.
8865   cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h.  */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h.  */
8871 #ifdef __STDC__
8872 # include <limits.h>
8873 #else
8874 # include <assert.h>
8875 #endif
8876                      Syntax error
8877 _ACEOF
8878 if { (ac_try="$ac_cpp conftest.$ac_ext"
8879 case "(($ac_try" in
8880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881   *) ac_try_echo=$ac_try;;
8882 esac
8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8886   ac_status=$?
8887   grep -v '^ *+' conftest.er1 >conftest.err
8888   rm -f conftest.er1
8889   cat conftest.err >&5
8890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); } >/dev/null && {
8892          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8893          test ! -s conftest.err
8894        }; then
8895   :
8896 else
8897   $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900   # Broken: fails on valid input.
8901 continue
8902 fi
8903
8904 rm -f conftest.err conftest.$ac_ext
8905
8906   # OK, works on sane cases.  Now check whether nonexistent headers
8907   # can be detected and how.
8908   cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h.  */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h.  */
8914 #include <ac_nonexistent.h>
8915 _ACEOF
8916 if { (ac_try="$ac_cpp conftest.$ac_ext"
8917 case "(($ac_try" in
8918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919   *) ac_try_echo=$ac_try;;
8920 esac
8921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } >/dev/null && {
8930          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8931          test ! -s conftest.err
8932        }; then
8933   # Broken: success on invalid input.
8934 continue
8935 else
8936   $as_echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939   # Passes both tests.
8940 ac_preproc_ok=:
8941 break
8942 fi
8943
8944 rm -f conftest.err conftest.$ac_ext
8945
8946 done
8947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8948 rm -f conftest.err conftest.$ac_ext
8949 if $ac_preproc_ok; then
8950   break
8951 fi
8952
8953     done
8954     ac_cv_prog_CXXCPP=$CXXCPP
8955
8956 fi
8957   CXXCPP=$ac_cv_prog_CXXCPP
8958 else
8959   ac_cv_prog_CXXCPP=$CXXCPP
8960 fi
8961 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8962 $as_echo "$CXXCPP" >&6; }
8963 ac_preproc_ok=false
8964 for ac_cxx_preproc_warn_flag in '' yes
8965 do
8966   # Use a header file that comes with gcc, so configuring glibc
8967   # with a fresh cross-compiler works.
8968   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8969   # <limits.h> exists even on freestanding compilers.
8970   # On the NeXT, cc -E runs the code through the compiler's parser,
8971   # not just through cpp. "Syntax error" is here to catch this case.
8972   cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978 #ifdef __STDC__
8979 # include <limits.h>
8980 #else
8981 # include <assert.h>
8982 #endif
8983                      Syntax error
8984 _ACEOF
8985 if { (ac_try="$ac_cpp conftest.$ac_ext"
8986 case "(($ac_try" in
8987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988   *) ac_try_echo=$ac_try;;
8989 esac
8990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8991 $as_echo "$ac_try_echo") >&5
8992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8993   ac_status=$?
8994   grep -v '^ *+' conftest.er1 >conftest.err
8995   rm -f conftest.er1
8996   cat conftest.err >&5
8997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); } >/dev/null && {
8999          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9000          test ! -s conftest.err
9001        }; then
9002   :
9003 else
9004   $as_echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007   # Broken: fails on valid input.
9008 continue
9009 fi
9010
9011 rm -f conftest.err conftest.$ac_ext
9012
9013   # OK, works on sane cases.  Now check whether nonexistent headers
9014   # can be detected and how.
9015   cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021 #include <ac_nonexistent.h>
9022 _ACEOF
9023 if { (ac_try="$ac_cpp conftest.$ac_ext"
9024 case "(($ac_try" in
9025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026   *) ac_try_echo=$ac_try;;
9027 esac
9028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9029 $as_echo "$ac_try_echo") >&5
9030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9031   ac_status=$?
9032   grep -v '^ *+' conftest.er1 >conftest.err
9033   rm -f conftest.er1
9034   cat conftest.err >&5
9035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } >/dev/null && {
9037          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9038          test ! -s conftest.err
9039        }; then
9040   # Broken: success on invalid input.
9041 continue
9042 else
9043   $as_echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9045
9046   # Passes both tests.
9047 ac_preproc_ok=:
9048 break
9049 fi
9050
9051 rm -f conftest.err conftest.$ac_ext
9052
9053 done
9054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9055 rm -f conftest.err conftest.$ac_ext
9056 if $ac_preproc_ok; then
9057   :
9058 else
9059   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9061 _lt_caught_CXX_error=yes; }
9062 fi
9063
9064 ac_ext=c
9065 ac_cpp='$CPP $CPPFLAGS'
9066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9069
9070 else
9071   _lt_caught_CXX_error=yes
9072 fi
9073
9074
9075
9076
9077
9078 # Set options
9079 # Check whether --enable-shared was given.
9080 if test "${enable_shared+set}" = set; then
9081   enableval=$enable_shared; p=${PACKAGE-default}
9082     case $enableval in
9083     yes) enable_shared=yes ;;
9084     no) enable_shared=no ;;
9085     *)
9086       enable_shared=no
9087       # Look at the argument we got.  We use all the common list separators.
9088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9089       for pkg in $enableval; do
9090         IFS="$lt_save_ifs"
9091         if test "X$pkg" = "X$p"; then
9092           enable_shared=yes
9093         fi
9094       done
9095       IFS="$lt_save_ifs"
9096       ;;
9097     esac
9098 else
9099   enable_shared=yes
9100 fi
9101
9102
9103
9104
9105
9106
9107
9108 # Check whether --enable-static was given.
9109 if test "${enable_static+set}" = set; then
9110   enableval=$enable_static; p=${PACKAGE-default}
9111     case $enableval in
9112     yes) enable_static=yes ;;
9113     no) enable_static=no ;;
9114     *)
9115      enable_static=no
9116       # Look at the argument we got.  We use all the common list separators.
9117       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9118       for pkg in $enableval; do
9119         IFS="$lt_save_ifs"
9120         if test "X$pkg" = "X$p"; then
9121           enable_static=yes
9122         fi
9123       done
9124       IFS="$lt_save_ifs"
9125       ;;
9126     esac
9127 else
9128   enable_static=no
9129 fi
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140         enable_dlopen=no
9141
9142
9143   enable_win32_dll=no
9144
9145
9146
9147
9148
9149 # Check whether --with-pic was given.
9150 if test "${with_pic+set}" = set; then
9151   withval=$with_pic; pic_mode="$withval"
9152 else
9153   pic_mode=default
9154 fi
9155
9156
9157 test -z "$pic_mode" && pic_mode=default
9158
9159
9160
9161
9162
9163
9164
9165   # Check whether --enable-fast-install was given.
9166 if test "${enable_fast_install+set}" = set; then
9167   enableval=$enable_fast_install; p=${PACKAGE-default}
9168     case $enableval in
9169     yes) enable_fast_install=yes ;;
9170     no) enable_fast_install=no ;;
9171     *)
9172       enable_fast_install=no
9173       # Look at the argument we got.  We use all the common list separators.
9174       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9175       for pkg in $enableval; do
9176         IFS="$lt_save_ifs"
9177         if test "X$pkg" = "X$p"; then
9178           enable_fast_install=yes
9179         fi
9180       done
9181       IFS="$lt_save_ifs"
9182       ;;
9183     esac
9184 else
9185   enable_fast_install=yes
9186 fi
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198 # This can be used to rebuild libtool when needed
9199 LIBTOOL_DEPS="$ltmain"
9200
9201 # Always use our own libtool.
9202 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228 test -z "$LN_S" && LN_S="ln -s"
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243 if test -n "${ZSH_VERSION+set}" ; then
9244    setopt NO_GLOB_SUBST
9245 fi
9246
9247 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9248 $as_echo_n "checking for objdir... " >&6; }
9249 if test "${lt_cv_objdir+set}" = set; then
9250   $as_echo_n "(cached) " >&6
9251 else
9252   rm -f .libs 2>/dev/null
9253 mkdir .libs 2>/dev/null
9254 if test -d .libs; then
9255   lt_cv_objdir=.libs
9256 else
9257   # MS-DOS does not allow filenames that begin with a dot.
9258   lt_cv_objdir=_libs
9259 fi
9260 rmdir .libs 2>/dev/null
9261 fi
9262 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9263 $as_echo "$lt_cv_objdir" >&6; }
9264 objdir=$lt_cv_objdir
9265
9266
9267
9268
9269
9270 cat >>confdefs.h <<_ACEOF
9271 #define LT_OBJDIR "$lt_cv_objdir/"
9272 _ACEOF
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290 case $host_os in
9291 aix3*)
9292   # AIX sometimes has problems with the GCC collect2 program.  For some
9293   # reason, if we set the COLLECT_NAMES environment variable, the problems
9294   # vanish in a puff of smoke.
9295   if test "X${COLLECT_NAMES+set}" != Xset; then
9296     COLLECT_NAMES=
9297     export COLLECT_NAMES
9298   fi
9299   ;;
9300 esac
9301
9302 # Sed substitution that helps us do robust quoting.  It backslashifies
9303 # metacharacters that are still active within double-quoted strings.
9304 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9305
9306 # Same as above, but do not quote variable references.
9307 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9308
9309 # Sed substitution to delay expansion of an escaped shell variable in a
9310 # double_quote_subst'ed string.
9311 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9312
9313 # Sed substitution to delay expansion of an escaped single quote.
9314 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9315
9316 # Sed substitution to avoid accidental globbing in evaled expressions
9317 no_glob_subst='s/\*/\\\*/g'
9318
9319 # Global variables:
9320 ofile=libtool
9321 can_build_shared=yes
9322
9323 # All known linkers require a `.a' archive for static linking (except MSVC,
9324 # which needs '.lib').
9325 libext=a
9326
9327 with_gnu_ld="$lt_cv_prog_gnu_ld"
9328
9329 old_CC="$CC"
9330 old_CFLAGS="$CFLAGS"
9331
9332 # Set sane defaults for various variables
9333 test -z "$CC" && CC=cc
9334 test -z "$LTCC" && LTCC=$CC
9335 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9336 test -z "$LD" && LD=ld
9337 test -z "$ac_objext" && ac_objext=o
9338
9339 for cc_temp in $compiler""; do
9340   case $cc_temp in
9341     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9342     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9343     \-*) ;;
9344     *) break;;
9345   esac
9346 done
9347 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9348
9349
9350 # Only perform the check for file, if the check method requires it
9351 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9352 case $deplibs_check_method in
9353 file_magic*)
9354   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9355     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9356 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9358   $as_echo_n "(cached) " >&6
9359 else
9360   case $MAGIC_CMD in
9361 [\\/*] |  ?:[\\/]*)
9362   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9363   ;;
9364 *)
9365   lt_save_MAGIC_CMD="$MAGIC_CMD"
9366   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9367   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9368   for ac_dir in $ac_dummy; do
9369     IFS="$lt_save_ifs"
9370     test -z "$ac_dir" && ac_dir=.
9371     if test -f $ac_dir/${ac_tool_prefix}file; then
9372       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9373       if test -n "$file_magic_test_file"; then
9374         case $deplibs_check_method in
9375         "file_magic "*)
9376           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9377           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9378           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9379             $EGREP "$file_magic_regex" > /dev/null; then
9380             :
9381           else
9382             cat <<_LT_EOF 1>&2
9383
9384 *** Warning: the command libtool uses to detect shared libraries,
9385 *** $file_magic_cmd, produces output that libtool cannot recognize.
9386 *** The result is that libtool may fail to recognize shared libraries
9387 *** as such.  This will affect the creation of libtool libraries that
9388 *** depend on shared libraries, but programs linked with such libtool
9389 *** libraries will work regardless of this problem.  Nevertheless, you
9390 *** may want to report the problem to your system manager and/or to
9391 *** bug-libtool@gnu.org
9392
9393 _LT_EOF
9394           fi ;;
9395         esac
9396       fi
9397       break
9398     fi
9399   done
9400   IFS="$lt_save_ifs"
9401   MAGIC_CMD="$lt_save_MAGIC_CMD"
9402   ;;
9403 esac
9404 fi
9405
9406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9407 if test -n "$MAGIC_CMD"; then
9408   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9409 $as_echo "$MAGIC_CMD" >&6; }
9410 else
9411   { $as_echo "$as_me:$LINENO: result: no" >&5
9412 $as_echo "no" >&6; }
9413 fi
9414
9415
9416
9417
9418
9419 if test -z "$lt_cv_path_MAGIC_CMD"; then
9420   if test -n "$ac_tool_prefix"; then
9421     { $as_echo "$as_me:$LINENO: checking for file" >&5
9422 $as_echo_n "checking for file... " >&6; }
9423 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9424   $as_echo_n "(cached) " >&6
9425 else
9426   case $MAGIC_CMD in
9427 [\\/*] |  ?:[\\/]*)
9428   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9429   ;;
9430 *)
9431   lt_save_MAGIC_CMD="$MAGIC_CMD"
9432   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434   for ac_dir in $ac_dummy; do
9435     IFS="$lt_save_ifs"
9436     test -z "$ac_dir" && ac_dir=.
9437     if test -f $ac_dir/file; then
9438       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9439       if test -n "$file_magic_test_file"; then
9440         case $deplibs_check_method in
9441         "file_magic "*)
9442           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445             $EGREP "$file_magic_regex" > /dev/null; then
9446             :
9447           else
9448             cat <<_LT_EOF 1>&2
9449
9450 *** Warning: the command libtool uses to detect shared libraries,
9451 *** $file_magic_cmd, produces output that libtool cannot recognize.
9452 *** The result is that libtool may fail to recognize shared libraries
9453 *** as such.  This will affect the creation of libtool libraries that
9454 *** depend on shared libraries, but programs linked with such libtool
9455 *** libraries will work regardless of this problem.  Nevertheless, you
9456 *** may want to report the problem to your system manager and/or to
9457 *** bug-libtool@gnu.org
9458
9459 _LT_EOF
9460           fi ;;
9461         esac
9462       fi
9463       break
9464     fi
9465   done
9466   IFS="$lt_save_ifs"
9467   MAGIC_CMD="$lt_save_MAGIC_CMD"
9468   ;;
9469 esac
9470 fi
9471
9472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473 if test -n "$MAGIC_CMD"; then
9474   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9475 $as_echo "$MAGIC_CMD" >&6; }
9476 else
9477   { $as_echo "$as_me:$LINENO: result: no" >&5
9478 $as_echo "no" >&6; }
9479 fi
9480
9481
9482   else
9483     MAGIC_CMD=:
9484   fi
9485 fi
9486
9487   fi
9488   ;;
9489 esac
9490
9491 # Use C for the default configuration in the libtool script
9492
9493 lt_save_CC="$CC"
9494 ac_ext=c
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499
9500
9501 # Source file extension for C test sources.
9502 ac_ext=c
9503
9504 # Object file extension for compiled C test sources.
9505 objext=o
9506 objext=$objext
9507
9508 # Code to be used in simple compile tests
9509 lt_simple_compile_test_code="int some_variable = 0;"
9510
9511 # Code to be used in simple link tests
9512 lt_simple_link_test_code='int main(){return(0);}'
9513
9514
9515
9516
9517
9518
9519
9520 # If no C compiler was specified, use CC.
9521 LTCC=${LTCC-"$CC"}
9522
9523 # If no C compiler flags were specified, use CFLAGS.
9524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9525
9526 # Allow CC to be a program name with arguments.
9527 compiler=$CC
9528
9529 # Save the default compiler, since it gets overwritten when the other
9530 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9531 compiler_DEFAULT=$CC
9532
9533 # save warnings/boilerplate of simple test code
9534 ac_outfile=conftest.$ac_objext
9535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9537 _lt_compiler_boilerplate=`cat conftest.err`
9538 $RM conftest*
9539
9540 ac_outfile=conftest.$ac_objext
9541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9543 _lt_linker_boilerplate=`cat conftest.err`
9544 $RM -r conftest*
9545
9546
9547 ## CAVEAT EMPTOR:
9548 ## There is no encapsulation within the following macros, do not change
9549 ## the running order or otherwise move them around unless you know exactly
9550 ## what you are doing...
9551 if test -n "$compiler"; then
9552
9553 lt_prog_compiler_no_builtin_flag=
9554
9555 if test "$GCC" = yes; then
9556   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9557
9558   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9559 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9560 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9561   $as_echo_n "(cached) " >&6
9562 else
9563   lt_cv_prog_compiler_rtti_exceptions=no
9564    ac_outfile=conftest.$ac_objext
9565    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9566    lt_compiler_flag="-fno-rtti -fno-exceptions"
9567    # Insert the option either (1) after the last *FLAGS variable, or
9568    # (2) before a word containing "conftest.", or (3) at the end.
9569    # Note that $ac_compile itself does not contain backslashes and begins
9570    # with a dollar sign (not a hyphen), so the echo should work correctly.
9571    # The option is referenced via a variable to avoid confusing sed.
9572    lt_compile=`echo "$ac_compile" | $SED \
9573    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9574    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9575    -e 's:$: $lt_compiler_flag:'`
9576    (eval echo "\"\$as_me:9576: $lt_compile\"" >&5)
9577    (eval "$lt_compile" 2>conftest.err)
9578    ac_status=$?
9579    cat conftest.err >&5
9580    echo "$as_me:9580: \$? = $ac_status" >&5
9581    if (exit $ac_status) && test -s "$ac_outfile"; then
9582      # The compiler can only warn and ignore the option if not recognized
9583      # So say no if there are warnings other than the usual output.
9584      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9585      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9586      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9587        lt_cv_prog_compiler_rtti_exceptions=yes
9588      fi
9589    fi
9590    $RM conftest*
9591
9592 fi
9593 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9594 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9595
9596 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9597     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9598 else
9599     :
9600 fi
9601
9602 fi
9603
9604
9605
9606
9607
9608
9609   lt_prog_compiler_wl=
9610 lt_prog_compiler_pic=
9611 lt_prog_compiler_static=
9612
9613 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9614 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9615
9616   if test "$GCC" = yes; then
9617     lt_prog_compiler_wl='-Wl,'
9618     lt_prog_compiler_static='-static'
9619
9620     case $host_os in
9621       aix*)
9622       # All AIX code is PIC.
9623       if test "$host_cpu" = ia64; then
9624         # AIX 5 now supports IA64 processor
9625         lt_prog_compiler_static='-Bstatic'
9626       fi
9627       ;;
9628
9629     amigaos*)
9630       case $host_cpu in
9631       powerpc)
9632             # see comment about AmigaOS4 .so support
9633             lt_prog_compiler_pic='-fPIC'
9634         ;;
9635       m68k)
9636             # FIXME: we need at least 68020 code to build shared libraries, but
9637             # adding the `-m68020' flag to GCC prevents building anything better,
9638             # like `-m68040'.
9639             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9640         ;;
9641       esac
9642       ;;
9643
9644     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9645       # PIC is the default for these OSes.
9646       ;;
9647
9648     mingw* | cygwin* | pw32* | os2* | cegcc*)
9649       # This hack is so that the source file can tell whether it is being
9650       # built for inclusion in a dll (and should export symbols for example).
9651       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9652       # (--disable-auto-import) libraries
9653       lt_prog_compiler_pic='-DDLL_EXPORT'
9654       ;;
9655
9656     darwin* | rhapsody*)
9657       # PIC is the default on this platform
9658       # Common symbols not allowed in MH_DYLIB files
9659       lt_prog_compiler_pic='-fno-common'
9660       ;;
9661
9662     hpux*)
9663       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9664       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9665       # sets the default TLS model and affects inlining.
9666       case $host_cpu in
9667       hppa*64*)
9668         # +Z the default
9669         ;;
9670       *)
9671         lt_prog_compiler_pic='-fPIC'
9672         ;;
9673       esac
9674       ;;
9675
9676     interix[3-9]*)
9677       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9678       # Instead, we relocate shared libraries at runtime.
9679       ;;
9680
9681     msdosdjgpp*)
9682       # Just because we use GCC doesn't mean we suddenly get shared libraries
9683       # on systems that don't support them.
9684       lt_prog_compiler_can_build_shared=no
9685       enable_shared=no
9686       ;;
9687
9688     *nto* | *qnx*)
9689       # QNX uses GNU C++, but need to define -shared option too, otherwise
9690       # it will coredump.
9691       lt_prog_compiler_pic='-fPIC -shared'
9692       ;;
9693
9694     sysv4*MP*)
9695       if test -d /usr/nec; then
9696         lt_prog_compiler_pic=-Kconform_pic
9697       fi
9698       ;;
9699
9700     *)
9701       lt_prog_compiler_pic='-fPIC'
9702       ;;
9703     esac
9704   else
9705     # PORTME Check for flag to pass linker flags through the system compiler.
9706     case $host_os in
9707     aix*)
9708       lt_prog_compiler_wl='-Wl,'
9709       if test "$host_cpu" = ia64; then
9710         # AIX 5 now supports IA64 processor
9711         lt_prog_compiler_static='-Bstatic'
9712       else
9713         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9714       fi
9715       ;;
9716
9717     mingw* | cygwin* | pw32* | os2* | cegcc*)
9718       # This hack is so that the source file can tell whether it is being
9719       # built for inclusion in a dll (and should export symbols for example).
9720       lt_prog_compiler_pic='-DDLL_EXPORT'
9721       ;;
9722
9723     hpux9* | hpux10* | hpux11*)
9724       lt_prog_compiler_wl='-Wl,'
9725       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9726       # not for PA HP-UX.
9727       case $host_cpu in
9728       hppa*64*|ia64*)
9729         # +Z the default
9730         ;;
9731       *)
9732         lt_prog_compiler_pic='+Z'
9733         ;;
9734       esac
9735       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9736       lt_prog_compiler_static='${wl}-a ${wl}archive'
9737       ;;
9738
9739     irix5* | irix6* | nonstopux*)
9740       lt_prog_compiler_wl='-Wl,'
9741       # PIC (with -KPIC) is the default.
9742       lt_prog_compiler_static='-non_shared'
9743       ;;
9744
9745     linux* | k*bsd*-gnu)
9746       case $cc_basename in
9747       # old Intel for x86_64 which still supported -KPIC.
9748       ecc*)
9749         lt_prog_compiler_wl='-Wl,'
9750         lt_prog_compiler_pic='-KPIC'
9751         lt_prog_compiler_static='-static'
9752         ;;
9753       # icc used to be incompatible with GCC.
9754       # ICC 10 doesn't accept -KPIC any more.
9755       icc* | ifort*)
9756         lt_prog_compiler_wl='-Wl,'
9757         lt_prog_compiler_pic='-fPIC'
9758         lt_prog_compiler_static='-static'
9759         ;;
9760       # Lahey Fortran 8.1.
9761       lf95*)
9762         lt_prog_compiler_wl='-Wl,'
9763         lt_prog_compiler_pic='--shared'
9764         lt_prog_compiler_static='--static'
9765         ;;
9766       pgcc* | pgf77* | pgf90* | pgf95*)
9767         # Portland Group compilers (*not* the Pentium gcc compiler,
9768         # which looks to be a dead project)
9769         lt_prog_compiler_wl='-Wl,'
9770         lt_prog_compiler_pic='-fpic'
9771         lt_prog_compiler_static='-Bstatic'
9772         ;;
9773       ccc*)
9774         lt_prog_compiler_wl='-Wl,'
9775         # All Alpha code is PIC.
9776         lt_prog_compiler_static='-non_shared'
9777         ;;
9778       xl*)
9779         # IBM XL C 8.0/Fortran 10.1 on PPC
9780         lt_prog_compiler_wl='-Wl,'
9781         lt_prog_compiler_pic='-qpic'
9782         lt_prog_compiler_static='-qstaticlink'
9783         ;;
9784       *)
9785         case `$CC -V 2>&1 | sed 5q` in
9786         *Sun\ C*)
9787           # Sun C 5.9
9788           lt_prog_compiler_pic='-KPIC'
9789           lt_prog_compiler_static='-Bstatic'
9790           lt_prog_compiler_wl='-Wl,'
9791           ;;
9792         *Sun\ F*)
9793           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9794           lt_prog_compiler_pic='-KPIC'
9795           lt_prog_compiler_static='-Bstatic'
9796           lt_prog_compiler_wl=''
9797           ;;
9798         esac
9799         ;;
9800       esac
9801       ;;
9802
9803     newsos6)
9804       lt_prog_compiler_pic='-KPIC'
9805       lt_prog_compiler_static='-Bstatic'
9806       ;;
9807
9808     *nto* | *qnx*)
9809       # QNX uses GNU C++, but need to define -shared option too, otherwise
9810       # it will coredump.
9811       lt_prog_compiler_pic='-fPIC -shared'
9812       ;;
9813
9814     osf3* | osf4* | osf5*)
9815       lt_prog_compiler_wl='-Wl,'
9816       # All OSF/1 code is PIC.
9817       lt_prog_compiler_static='-non_shared'
9818       ;;
9819
9820     rdos*)
9821       lt_prog_compiler_static='-non_shared'
9822       ;;
9823
9824     solaris*)
9825       lt_prog_compiler_pic='-KPIC'
9826       lt_prog_compiler_static='-Bstatic'
9827       case $cc_basename in
9828       f77* | f90* | f95*)
9829         lt_prog_compiler_wl='-Qoption ld ';;
9830       *)
9831         lt_prog_compiler_wl='-Wl,';;
9832       esac
9833       ;;
9834
9835     sunos4*)
9836       lt_prog_compiler_wl='-Qoption ld '
9837       lt_prog_compiler_pic='-PIC'
9838       lt_prog_compiler_static='-Bstatic'
9839       ;;
9840
9841     sysv4 | sysv4.2uw2* | sysv4.3*)
9842       lt_prog_compiler_wl='-Wl,'
9843       lt_prog_compiler_pic='-KPIC'
9844       lt_prog_compiler_static='-Bstatic'
9845       ;;
9846
9847     sysv4*MP*)
9848       if test -d /usr/nec ;then
9849         lt_prog_compiler_pic='-Kconform_pic'
9850         lt_prog_compiler_static='-Bstatic'
9851       fi
9852       ;;
9853
9854     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9855       lt_prog_compiler_wl='-Wl,'
9856       lt_prog_compiler_pic='-KPIC'
9857       lt_prog_compiler_static='-Bstatic'
9858       ;;
9859
9860     unicos*)
9861       lt_prog_compiler_wl='-Wl,'
9862       lt_prog_compiler_can_build_shared=no
9863       ;;
9864
9865     uts4*)
9866       lt_prog_compiler_pic='-pic'
9867       lt_prog_compiler_static='-Bstatic'
9868       ;;
9869
9870     *)
9871       lt_prog_compiler_can_build_shared=no
9872       ;;
9873     esac
9874   fi
9875
9876 case $host_os in
9877   # For platforms which do not support PIC, -DPIC is meaningless:
9878   *djgpp*)
9879     lt_prog_compiler_pic=
9880     ;;
9881   *)
9882     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9883     ;;
9884 esac
9885 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9886 $as_echo "$lt_prog_compiler_pic" >&6; }
9887
9888
9889
9890
9891
9892
9893 #
9894 # Check to make sure the PIC flag actually works.
9895 #
9896 if test -n "$lt_prog_compiler_pic"; then
9897   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9899 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9900   $as_echo_n "(cached) " >&6
9901 else
9902   lt_cv_prog_compiler_pic_works=no
9903    ac_outfile=conftest.$ac_objext
9904    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9905    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9906    # Insert the option either (1) after the last *FLAGS variable, or
9907    # (2) before a word containing "conftest.", or (3) at the end.
9908    # Note that $ac_compile itself does not contain backslashes and begins
9909    # with a dollar sign (not a hyphen), so the echo should work correctly.
9910    # The option is referenced via a variable to avoid confusing sed.
9911    lt_compile=`echo "$ac_compile" | $SED \
9912    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9914    -e 's:$: $lt_compiler_flag:'`
9915    (eval echo "\"\$as_me:9915: $lt_compile\"" >&5)
9916    (eval "$lt_compile" 2>conftest.err)
9917    ac_status=$?
9918    cat conftest.err >&5
9919    echo "$as_me:9919: \$? = $ac_status" >&5
9920    if (exit $ac_status) && test -s "$ac_outfile"; then
9921      # The compiler can only warn and ignore the option if not recognized
9922      # So say no if there are warnings other than the usual output.
9923      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9924      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9925      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9926        lt_cv_prog_compiler_pic_works=yes
9927      fi
9928    fi
9929    $RM conftest*
9930
9931 fi
9932 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9933 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9934
9935 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9936     case $lt_prog_compiler_pic in
9937      "" | " "*) ;;
9938      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9939      esac
9940 else
9941     lt_prog_compiler_pic=
9942      lt_prog_compiler_can_build_shared=no
9943 fi
9944
9945 fi
9946
9947
9948
9949
9950
9951
9952 #
9953 # Check to make sure the static flag actually works.
9954 #
9955 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9956 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9957 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9958 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9959   $as_echo_n "(cached) " >&6
9960 else
9961   lt_cv_prog_compiler_static_works=no
9962    save_LDFLAGS="$LDFLAGS"
9963    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9964    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9965    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9966      # The linker can only warn and ignore the option if not recognized
9967      # So say no if there are warnings
9968      if test -s conftest.err; then
9969        # Append any errors to the config.log.
9970        cat conftest.err 1>&5
9971        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9972        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973        if diff conftest.exp conftest.er2 >/dev/null; then
9974          lt_cv_prog_compiler_static_works=yes
9975        fi
9976      else
9977        lt_cv_prog_compiler_static_works=yes
9978      fi
9979    fi
9980    $RM -r conftest*
9981    LDFLAGS="$save_LDFLAGS"
9982
9983 fi
9984 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9985 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9986
9987 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9988     :
9989 else
9990     lt_prog_compiler_static=
9991 fi
9992
9993
9994
9995
9996
9997
9998
9999   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10002   $as_echo_n "(cached) " >&6
10003 else
10004   lt_cv_prog_compiler_c_o=no
10005    $RM -r conftest 2>/dev/null
10006    mkdir conftest
10007    cd conftest
10008    mkdir out
10009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010
10011    lt_compiler_flag="-o out/conftest2.$ac_objext"
10012    # Insert the option either (1) after the last *FLAGS variable, or
10013    # (2) before a word containing "conftest.", or (3) at the end.
10014    # Note that $ac_compile itself does not contain backslashes and begins
10015    # with a dollar sign (not a hyphen), so the echo should work correctly.
10016    lt_compile=`echo "$ac_compile" | $SED \
10017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10019    -e 's:$: $lt_compiler_flag:'`
10020    (eval echo "\"\$as_me:10020: $lt_compile\"" >&5)
10021    (eval "$lt_compile" 2>out/conftest.err)
10022    ac_status=$?
10023    cat out/conftest.err >&5
10024    echo "$as_me:10024: \$? = $ac_status" >&5
10025    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10026    then
10027      # The compiler can only warn and ignore the option if not recognized
10028      # So say no if there are warnings
10029      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10030      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10031      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10032        lt_cv_prog_compiler_c_o=yes
10033      fi
10034    fi
10035    chmod u+w . 2>&5
10036    $RM conftest*
10037    # SGI C++ compiler will create directory out/ii_files/ for
10038    # template instantiation
10039    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10040    $RM out/* && rmdir out
10041    cd ..
10042    $RM -r conftest
10043    $RM conftest*
10044
10045 fi
10046 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10047 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10048
10049
10050
10051
10052
10053
10054   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10056 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10057   $as_echo_n "(cached) " >&6
10058 else
10059   lt_cv_prog_compiler_c_o=no
10060    $RM -r conftest 2>/dev/null
10061    mkdir conftest
10062    cd conftest
10063    mkdir out
10064    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10065
10066    lt_compiler_flag="-o out/conftest2.$ac_objext"
10067    # Insert the option either (1) after the last *FLAGS variable, or
10068    # (2) before a word containing "conftest.", or (3) at the end.
10069    # Note that $ac_compile itself does not contain backslashes and begins
10070    # with a dollar sign (not a hyphen), so the echo should work correctly.
10071    lt_compile=`echo "$ac_compile" | $SED \
10072    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10073    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10074    -e 's:$: $lt_compiler_flag:'`
10075    (eval echo "\"\$as_me:10075: $lt_compile\"" >&5)
10076    (eval "$lt_compile" 2>out/conftest.err)
10077    ac_status=$?
10078    cat out/conftest.err >&5
10079    echo "$as_me:10079: \$? = $ac_status" >&5
10080    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10081    then
10082      # The compiler can only warn and ignore the option if not recognized
10083      # So say no if there are warnings
10084      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10085      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10086      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10087        lt_cv_prog_compiler_c_o=yes
10088      fi
10089    fi
10090    chmod u+w . 2>&5
10091    $RM conftest*
10092    # SGI C++ compiler will create directory out/ii_files/ for
10093    # template instantiation
10094    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10095    $RM out/* && rmdir out
10096    cd ..
10097    $RM -r conftest
10098    $RM conftest*
10099
10100 fi
10101 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10102 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10103
10104
10105
10106
10107 hard_links="nottested"
10108 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10109   # do not overwrite the value of need_locks provided by the user
10110   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10111 $as_echo_n "checking if we can lock with hard links... " >&6; }
10112   hard_links=yes
10113   $RM conftest*
10114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10115   touch conftest.a
10116   ln conftest.a conftest.b 2>&5 || hard_links=no
10117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10118   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10119 $as_echo "$hard_links" >&6; }
10120   if test "$hard_links" = no; then
10121     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10122 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10123     need_locks=warn
10124   fi
10125 else
10126   need_locks=no
10127 fi
10128
10129
10130
10131
10132
10133
10134   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10136
10137   runpath_var=
10138   allow_undefined_flag=
10139   always_export_symbols=no
10140   archive_cmds=
10141   archive_expsym_cmds=
10142   compiler_needs_object=no
10143   enable_shared_with_static_runtimes=no
10144   export_dynamic_flag_spec=
10145   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10146   hardcode_automatic=no
10147   hardcode_direct=no
10148   hardcode_direct_absolute=no
10149   hardcode_libdir_flag_spec=
10150   hardcode_libdir_flag_spec_ld=
10151   hardcode_libdir_separator=
10152   hardcode_minus_L=no
10153   hardcode_shlibpath_var=unsupported
10154   inherit_rpath=no
10155   link_all_deplibs=unknown
10156   module_cmds=
10157   module_expsym_cmds=
10158   old_archive_from_new_cmds=
10159   old_archive_from_expsyms_cmds=
10160   thread_safe_flag_spec=
10161   whole_archive_flag_spec=
10162   # include_expsyms should be a list of space-separated symbols to be *always*
10163   # included in the symbol list
10164   include_expsyms=
10165   # exclude_expsyms can be an extended regexp of symbols to exclude
10166   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10167   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10168   # as well as any symbol that contains `d'.
10169   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10170   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10171   # platforms (ab)use it in PIC code, but their linkers get confused if
10172   # the symbol is explicitly referenced.  Since portable code cannot
10173   # rely on this symbol name, it's probably fine to never include it in
10174   # preloaded symbol tables.
10175   # Exclude shared library initialization/finalization symbols.
10176   extract_expsyms_cmds=
10177
10178   case $host_os in
10179   cygwin* | mingw* | pw32* | cegcc*)
10180     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10181     # When not using gcc, we currently assume that we are using
10182     # Microsoft Visual C++.
10183     if test "$GCC" != yes; then
10184       with_gnu_ld=no
10185     fi
10186     ;;
10187   interix*)
10188     # we just hope/assume this is gcc and not c89 (= MSVC++)
10189     with_gnu_ld=yes
10190     ;;
10191   openbsd*)
10192     with_gnu_ld=no
10193     ;;
10194   esac
10195
10196   ld_shlibs=yes
10197   if test "$with_gnu_ld" = yes; then
10198     # If archive_cmds runs LD, not CC, wlarc should be empty
10199     wlarc='${wl}'
10200
10201     # Set some defaults for GNU ld with shared library support. These
10202     # are reset later if shared libraries are not supported. Putting them
10203     # here allows them to be overridden if necessary.
10204     runpath_var=LD_RUN_PATH
10205     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10206     export_dynamic_flag_spec='${wl}--export-dynamic'
10207     # ancient GNU ld didn't support --whole-archive et. al.
10208     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10209       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10210     else
10211       whole_archive_flag_spec=
10212     fi
10213     supports_anon_versioning=no
10214     case `$LD -v 2>&1` in
10215       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10216       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10217       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10218       *\ 2.11.*) ;; # other 2.11 versions
10219       *) supports_anon_versioning=yes ;;
10220     esac
10221
10222     # See if GNU ld supports shared libraries.
10223     case $host_os in
10224     aix[3-9]*)
10225       # On AIX/PPC, the GNU linker is very broken
10226       if test "$host_cpu" != ia64; then
10227         ld_shlibs=no
10228         cat <<_LT_EOF 1>&2
10229
10230 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10231 *** to be unable to reliably create shared libraries on AIX.
10232 *** Therefore, libtool is disabling shared libraries support.  If you
10233 *** really care for shared libraries, you may want to modify your PATH
10234 *** so that a non-GNU linker is found, and then restart.
10235
10236 _LT_EOF
10237       fi
10238       ;;
10239
10240     amigaos*)
10241       case $host_cpu in
10242       powerpc)
10243             # see comment about AmigaOS4 .so support
10244             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245             archive_expsym_cmds=''
10246         ;;
10247       m68k)
10248             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)'
10249             hardcode_libdir_flag_spec='-L$libdir'
10250             hardcode_minus_L=yes
10251         ;;
10252       esac
10253       ;;
10254
10255     beos*)
10256       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257         allow_undefined_flag=unsupported
10258         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10259         # support --undefined.  This deserves some investigation.  FIXME
10260         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10261       else
10262         ld_shlibs=no
10263       fi
10264       ;;
10265
10266     cygwin* | mingw* | pw32* | cegcc*)
10267       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10268       # as there is no search path for DLLs.
10269       hardcode_libdir_flag_spec='-L$libdir'
10270       allow_undefined_flag=unsupported
10271       always_export_symbols=no
10272       enable_shared_with_static_runtimes=yes
10273       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10274
10275       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10276         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10277         # If the export-symbols file already is a .def file (1st line
10278         # is EXPORTS), use it as is; otherwise, prepend...
10279         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10280           cp $export_symbols $output_objdir/$soname.def;
10281         else
10282           echo EXPORTS > $output_objdir/$soname.def;
10283           cat $export_symbols >> $output_objdir/$soname.def;
10284         fi~
10285         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10286       else
10287         ld_shlibs=no
10288       fi
10289       ;;
10290
10291     interix[3-9]*)
10292       hardcode_direct=no
10293       hardcode_shlibpath_var=no
10294       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10295       export_dynamic_flag_spec='${wl}-E'
10296       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10297       # Instead, shared libraries are loaded at an image base (0x10000000 by
10298       # default) and relocated if they conflict, which is a slow very memory
10299       # consuming and fragmenting process.  To avoid this, we pick a random,
10300       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10301       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10302       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10303       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'
10304       ;;
10305
10306     gnu* | linux* | tpf* | k*bsd*-gnu)
10307       tmp_diet=no
10308       if test "$host_os" = linux-dietlibc; then
10309         case $cc_basename in
10310           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10311         esac
10312       fi
10313       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10314          && test "$tmp_diet" = no
10315       then
10316         tmp_addflag=
10317         tmp_sharedflag='-shared'
10318         case $cc_basename,$host_cpu in
10319         pgcc*)                          # Portland Group C compiler
10320           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'
10321           tmp_addflag=' $pic_flag'
10322           ;;
10323         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10324           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'
10325           tmp_addflag=' $pic_flag -Mnomain' ;;
10326         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10327           tmp_addflag=' -i_dynamic' ;;
10328         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10329           tmp_addflag=' -i_dynamic -nofor_main' ;;
10330         ifc* | ifort*)                  # Intel Fortran compiler
10331           tmp_addflag=' -nofor_main' ;;
10332         lf95*)                          # Lahey Fortran 8.1
10333           whole_archive_flag_spec=
10334           tmp_sharedflag='--shared' ;;
10335         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10336           tmp_sharedflag='-qmkshrobj'
10337           tmp_addflag= ;;
10338         esac
10339         case `$CC -V 2>&1 | sed 5q` in
10340         *Sun\ C*)                       # Sun C 5.9
10341           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'
10342           compiler_needs_object=yes
10343           tmp_sharedflag='-G' ;;
10344         *Sun\ F*)                       # Sun Fortran 8.3
10345           tmp_sharedflag='-G' ;;
10346         esac
10347         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10348
10349         if test "x$supports_anon_versioning" = xyes; then
10350           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10351             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10352             echo "local: *; };" >> $output_objdir/$libname.ver~
10353             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10354         fi
10355
10356         case $cc_basename in
10357         xlf*)
10358           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10359           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10360           hardcode_libdir_flag_spec=
10361           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10362           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10363           if test "x$supports_anon_versioning" = xyes; then
10364             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10365               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10366               echo "local: *; };" >> $output_objdir/$libname.ver~
10367               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10368           fi
10369           ;;
10370         esac
10371       else
10372         ld_shlibs=no
10373       fi
10374       ;;
10375
10376     netbsd*)
10377       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10378         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10379         wlarc=
10380       else
10381         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10382         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10383       fi
10384       ;;
10385
10386     solaris*)
10387       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10388         ld_shlibs=no
10389         cat <<_LT_EOF 1>&2
10390
10391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10392 *** create shared libraries on Solaris systems.  Therefore, libtool
10393 *** is disabling shared libraries support.  We urge you to upgrade GNU
10394 *** binutils to release 2.9.1 or newer.  Another option is to modify
10395 *** your PATH or compiler configuration so that the native linker is
10396 *** used, and then restart.
10397
10398 _LT_EOF
10399       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10400         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10401         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10402       else
10403         ld_shlibs=no
10404       fi
10405       ;;
10406
10407     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10408       case `$LD -v 2>&1` in
10409         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10410         ld_shlibs=no
10411         cat <<_LT_EOF 1>&2
10412
10413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10414 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10415 *** is disabling shared libraries support.  We urge you to upgrade GNU
10416 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10417 *** your PATH or compiler configuration so that the native linker is
10418 *** used, and then restart.
10419
10420 _LT_EOF
10421         ;;
10422         *)
10423           # For security reasons, it is highly recommended that you always
10424           # use absolute paths for naming shared libraries, and exclude the
10425           # DT_RUNPATH tag from executables and libraries.  But doing so
10426           # requires that you compile everything twice, which is a pain.
10427           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10428             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10430             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10431           else
10432             ld_shlibs=no
10433           fi
10434         ;;
10435       esac
10436       ;;
10437
10438     sunos4*)
10439       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10440       wlarc=
10441       hardcode_direct=yes
10442       hardcode_shlibpath_var=no
10443       ;;
10444
10445     *)
10446       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10447         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10449       else
10450         ld_shlibs=no
10451       fi
10452       ;;
10453     esac
10454
10455     if test "$ld_shlibs" = no; then
10456       runpath_var=
10457       hardcode_libdir_flag_spec=
10458       export_dynamic_flag_spec=
10459       whole_archive_flag_spec=
10460     fi
10461   else
10462     # PORTME fill in a description of your system's linker (not GNU ld)
10463     case $host_os in
10464     aix3*)
10465       allow_undefined_flag=unsupported
10466       always_export_symbols=yes
10467       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'
10468       # Note: this linker hardcodes the directories in LIBPATH if there
10469       # are no directories specified by -L.
10470       hardcode_minus_L=yes
10471       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10472         # Neither direct hardcoding nor static linking is supported with a
10473         # broken collect2.
10474         hardcode_direct=unsupported
10475       fi
10476       ;;
10477
10478     aix[4-9]*)
10479       if test "$host_cpu" = ia64; then
10480         # On IA64, the linker does run time linking by default, so we don't
10481         # have to do anything special.
10482         aix_use_runtimelinking=no
10483         exp_sym_flag='-Bexport'
10484         no_entry_flag=""
10485       else
10486         # If we're using GNU nm, then we don't want the "-C" option.
10487         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10488         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10489           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'
10490         else
10491           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'
10492         fi
10493         aix_use_runtimelinking=no
10494
10495         # Test if we are trying to use run time linking or normal
10496         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10497         # need to do runtime linking.
10498         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10499           for ld_flag in $LDFLAGS; do
10500           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10501             aix_use_runtimelinking=yes
10502             break
10503           fi
10504           done
10505           ;;
10506         esac
10507
10508         exp_sym_flag='-bexport'
10509         no_entry_flag='-bnoentry'
10510       fi
10511
10512       # When large executables or shared objects are built, AIX ld can
10513       # have problems creating the table of contents.  If linking a library
10514       # or program results in "error TOC overflow" add -mminimal-toc to
10515       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10516       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10517
10518       archive_cmds=''
10519       hardcode_direct=yes
10520       hardcode_direct_absolute=yes
10521       hardcode_libdir_separator=':'
10522       link_all_deplibs=yes
10523       file_list_spec='${wl}-f,'
10524
10525       if test "$GCC" = yes; then
10526         case $host_os in aix4.[012]|aix4.[012].*)
10527         # We only want to do this on AIX 4.2 and lower, the check
10528         # below for broken collect2 doesn't work under 4.3+
10529           collect2name=`${CC} -print-prog-name=collect2`
10530           if test -f "$collect2name" &&
10531            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10532           then
10533           # We have reworked collect2
10534           :
10535           else
10536           # We have old collect2
10537           hardcode_direct=unsupported
10538           # It fails to find uninstalled libraries when the uninstalled
10539           # path is not listed in the libpath.  Setting hardcode_minus_L
10540           # to unsupported forces relinking
10541           hardcode_minus_L=yes
10542           hardcode_libdir_flag_spec='-L$libdir'
10543           hardcode_libdir_separator=
10544           fi
10545           ;;
10546         esac
10547         shared_flag='-shared'
10548         if test "$aix_use_runtimelinking" = yes; then
10549           shared_flag="$shared_flag "'${wl}-G'
10550         fi
10551       else
10552         # not using gcc
10553         if test "$host_cpu" = ia64; then
10554         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10555         # chokes on -Wl,-G. The following line is correct:
10556           shared_flag='-G'
10557         else
10558           if test "$aix_use_runtimelinking" = yes; then
10559             shared_flag='${wl}-G'
10560           else
10561             shared_flag='${wl}-bM:SRE'
10562           fi
10563         fi
10564       fi
10565
10566       export_dynamic_flag_spec='${wl}-bexpall'
10567       # It seems that -bexpall does not export symbols beginning with
10568       # underscore (_), so it is better to generate a list of symbols to export.
10569       always_export_symbols=yes
10570       if test "$aix_use_runtimelinking" = yes; then
10571         # Warning - without using the other runtime loading flags (-brtl),
10572         # -berok will link without error, but may produce a broken library.
10573         allow_undefined_flag='-berok'
10574         # Determine the default libpath from the value encoded in an
10575         # empty executable.
10576         cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582
10583 int
10584 main ()
10585 {
10586
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (ac_try="$ac_link"
10593 case "(($ac_try" in
10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595   *) ac_try_echo=$ac_try;;
10596 esac
10597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10598 $as_echo "$ac_try_echo") >&5
10599   (eval "$ac_link") 2>conftest.er1
10600   ac_status=$?
10601   grep -v '^ *+' conftest.er1 >conftest.err
10602   rm -f conftest.er1
10603   cat conftest.err >&5
10604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } && {
10606          test -z "$ac_c_werror_flag" ||
10607          test ! -s conftest.err
10608        } && test -s conftest$ac_exeext && {
10609          test "$cross_compiling" = yes ||
10610          $as_test_x conftest$ac_exeext
10611        }; then
10612
10613 lt_aix_libpath_sed='
10614     /Import File Strings/,/^$/ {
10615         /^0/ {
10616             s/^0  *\(.*\)$/\1/
10617             p
10618         }
10619     }'
10620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10621 # Check for a 64-bit object if we didn't find anything.
10622 if test -z "$aix_libpath"; then
10623   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10624 fi
10625 else
10626   $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629
10630 fi
10631
10632 rm -rf conftest.dSYM
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634       conftest$ac_exeext conftest.$ac_ext
10635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10636
10637         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10638         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"
10639       else
10640         if test "$host_cpu" = ia64; then
10641           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10642           allow_undefined_flag="-z nodefs"
10643           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"
10644         else
10645          # Determine the default libpath from the value encoded in an
10646          # empty executable.
10647          cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653
10654 int
10655 main ()
10656 {
10657
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666   *) ac_try_echo=$ac_try;;
10667 esac
10668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670   (eval "$ac_link") 2>conftest.er1
10671   ac_status=$?
10672   grep -v '^ *+' conftest.er1 >conftest.err
10673   rm -f conftest.er1
10674   cat conftest.err >&5
10675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } && {
10677          test -z "$ac_c_werror_flag" ||
10678          test ! -s conftest.err
10679        } && test -s conftest$ac_exeext && {
10680          test "$cross_compiling" = yes ||
10681          $as_test_x conftest$ac_exeext
10682        }; then
10683
10684 lt_aix_libpath_sed='
10685     /Import File Strings/,/^$/ {
10686         /^0/ {
10687             s/^0  *\(.*\)$/\1/
10688             p
10689         }
10690     }'
10691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10692 # Check for a 64-bit object if we didn't find anything.
10693 if test -z "$aix_libpath"; then
10694   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10695 fi
10696 else
10697   $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700
10701 fi
10702
10703 rm -rf conftest.dSYM
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705       conftest$ac_exeext conftest.$ac_ext
10706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10707
10708          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10709           # Warning - without using the other run time loading flags,
10710           # -berok will link without error, but may produce a broken library.
10711           no_undefined_flag=' ${wl}-bernotok'
10712           allow_undefined_flag=' ${wl}-berok'
10713           # Exported symbols can be pulled into shared objects from archives
10714           whole_archive_flag_spec='$convenience'
10715           archive_cmds_need_lc=yes
10716           # This is similar to how AIX traditionally builds its shared libraries.
10717           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'
10718         fi
10719       fi
10720       ;;
10721
10722     amigaos*)
10723       case $host_cpu in
10724       powerpc)
10725             # see comment about AmigaOS4 .so support
10726             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727             archive_expsym_cmds=''
10728         ;;
10729       m68k)
10730             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)'
10731             hardcode_libdir_flag_spec='-L$libdir'
10732             hardcode_minus_L=yes
10733         ;;
10734       esac
10735       ;;
10736
10737     bsdi[45]*)
10738       export_dynamic_flag_spec=-rdynamic
10739       ;;
10740
10741     cygwin* | mingw* | pw32* | cegcc*)
10742       # When not using gcc, we currently assume that we are using
10743       # Microsoft Visual C++.
10744       # hardcode_libdir_flag_spec is actually meaningless, as there is
10745       # no search path for DLLs.
10746       hardcode_libdir_flag_spec=' '
10747       allow_undefined_flag=unsupported
10748       # Tell ltmain to make .lib files, not .a files.
10749       libext=lib
10750       # Tell ltmain to make .dll files, not .so files.
10751       shrext_cmds=".dll"
10752       # FIXME: Setting linknames here is a bad hack.
10753       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10754       # The linker will automatically build a .lib file if we build a DLL.
10755       old_archive_from_new_cmds='true'
10756       # FIXME: Should let the user specify the lib program.
10757       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10758       fix_srcfile_path='`cygpath -w "$srcfile"`'
10759       enable_shared_with_static_runtimes=yes
10760       ;;
10761
10762     darwin* | rhapsody*)
10763
10764
10765   archive_cmds_need_lc=no
10766   hardcode_direct=no
10767   hardcode_automatic=yes
10768   hardcode_shlibpath_var=unsupported
10769   whole_archive_flag_spec=''
10770   link_all_deplibs=yes
10771   allow_undefined_flag="$_lt_dar_allow_undefined"
10772   case $cc_basename in
10773      ifort*) _lt_dar_can_shared=yes ;;
10774      *) _lt_dar_can_shared=$GCC ;;
10775   esac
10776   if test "$_lt_dar_can_shared" = "yes"; then
10777     output_verbose_link_cmd=echo
10778     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10779     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10780     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}"
10781     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}"
10782
10783   else
10784   ld_shlibs=no
10785   fi
10786
10787       ;;
10788
10789     dgux*)
10790       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791       hardcode_libdir_flag_spec='-L$libdir'
10792       hardcode_shlibpath_var=no
10793       ;;
10794
10795     freebsd1*)
10796       ld_shlibs=no
10797       ;;
10798
10799     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10800     # support.  Future versions do this automatically, but an explicit c++rt0.o
10801     # does not break anything, and helps significantly (at the cost of a little
10802     # extra space).
10803     freebsd2.2*)
10804       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10805       hardcode_libdir_flag_spec='-R$libdir'
10806       hardcode_direct=yes
10807       hardcode_shlibpath_var=no
10808       ;;
10809
10810     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10811     freebsd2*)
10812       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10813       hardcode_direct=yes
10814       hardcode_minus_L=yes
10815       hardcode_shlibpath_var=no
10816       ;;
10817
10818     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10819     freebsd* | dragonfly*)
10820       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10821       hardcode_libdir_flag_spec='-R$libdir'
10822       hardcode_direct=yes
10823       hardcode_shlibpath_var=no
10824       ;;
10825
10826     hpux9*)
10827       if test "$GCC" = yes; then
10828         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'
10829       else
10830         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'
10831       fi
10832       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10833       hardcode_libdir_separator=:
10834       hardcode_direct=yes
10835
10836       # hardcode_minus_L: Not really in the search PATH,
10837       # but as the default location of the library.
10838       hardcode_minus_L=yes
10839       export_dynamic_flag_spec='${wl}-E'
10840       ;;
10841
10842     hpux10*)
10843       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10844         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10845       else
10846         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10847       fi
10848       if test "$with_gnu_ld" = no; then
10849         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10850         hardcode_libdir_flag_spec_ld='+b $libdir'
10851         hardcode_libdir_separator=:
10852         hardcode_direct=yes
10853         hardcode_direct_absolute=yes
10854         export_dynamic_flag_spec='${wl}-E'
10855         # hardcode_minus_L: Not really in the search PATH,
10856         # but as the default location of the library.
10857         hardcode_minus_L=yes
10858       fi
10859       ;;
10860
10861     hpux11*)
10862       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10863         case $host_cpu in
10864         hppa*64*)
10865           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10866           ;;
10867         ia64*)
10868           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10869           ;;
10870         *)
10871           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10872           ;;
10873         esac
10874       else
10875         case $host_cpu in
10876         hppa*64*)
10877           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10878           ;;
10879         ia64*)
10880           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10881           ;;
10882         *)
10883           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10884           ;;
10885         esac
10886       fi
10887       if test "$with_gnu_ld" = no; then
10888         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10889         hardcode_libdir_separator=:
10890
10891         case $host_cpu in
10892         hppa*64*|ia64*)
10893           hardcode_direct=no
10894           hardcode_shlibpath_var=no
10895           ;;
10896         *)
10897           hardcode_direct=yes
10898           hardcode_direct_absolute=yes
10899           export_dynamic_flag_spec='${wl}-E'
10900
10901           # hardcode_minus_L: Not really in the search PATH,
10902           # but as the default location of the library.
10903           hardcode_minus_L=yes
10904           ;;
10905         esac
10906       fi
10907       ;;
10908
10909     irix5* | irix6* | nonstopux*)
10910       if test "$GCC" = yes; then
10911         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'
10912         # Try to use the -exported_symbol ld option, if it does not
10913         # work, assume that -exports_file does not work either and
10914         # implicitly export all symbols.
10915         save_LDFLAGS="$LDFLAGS"
10916         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10917         cat >conftest.$ac_ext <<_ACEOF
10918 int foo(void) {}
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927 $as_echo "$ac_try_echo") >&5
10928   (eval "$ac_link") 2>conftest.er1
10929   ac_status=$?
10930   grep -v '^ *+' conftest.er1 >conftest.err
10931   rm -f conftest.er1
10932   cat conftest.err >&5
10933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); } && {
10935          test -z "$ac_c_werror_flag" ||
10936          test ! -s conftest.err
10937        } && test -s conftest$ac_exeext && {
10938          test "$cross_compiling" = yes ||
10939          $as_test_x conftest$ac_exeext
10940        }; then
10941   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'
10942
10943 else
10944   $as_echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947
10948 fi
10949
10950 rm -rf conftest.dSYM
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952       conftest$ac_exeext conftest.$ac_ext
10953         LDFLAGS="$save_LDFLAGS"
10954       else
10955         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'
10956         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'
10957       fi
10958       archive_cmds_need_lc='no'
10959       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10960       hardcode_libdir_separator=:
10961       inherit_rpath=yes
10962       link_all_deplibs=yes
10963       ;;
10964
10965     netbsd*)
10966       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10967         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10968       else
10969         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10970       fi
10971       hardcode_libdir_flag_spec='-R$libdir'
10972       hardcode_direct=yes
10973       hardcode_shlibpath_var=no
10974       ;;
10975
10976     newsos6)
10977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978       hardcode_direct=yes
10979       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10980       hardcode_libdir_separator=:
10981       hardcode_shlibpath_var=no
10982       ;;
10983
10984     *nto* | *qnx*)
10985       ;;
10986
10987     openbsd*)
10988       if test -f /usr/libexec/ld.so; then
10989         hardcode_direct=yes
10990         hardcode_shlibpath_var=no
10991         hardcode_direct_absolute=yes
10992         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10993           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10994           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10995           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10996           export_dynamic_flag_spec='${wl}-E'
10997         else
10998           case $host_os in
10999            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11000              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11001              hardcode_libdir_flag_spec='-R$libdir'
11002              ;;
11003            *)
11004              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11005              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11006              ;;
11007           esac
11008         fi
11009       else
11010         ld_shlibs=no
11011       fi
11012       ;;
11013
11014     os2*)
11015       hardcode_libdir_flag_spec='-L$libdir'
11016       hardcode_minus_L=yes
11017       allow_undefined_flag=unsupported
11018       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'
11019       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11020       ;;
11021
11022     osf3*)
11023       if test "$GCC" = yes; then
11024         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11025         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'
11026       else
11027         allow_undefined_flag=' -expect_unresolved \*'
11028         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'
11029       fi
11030       archive_cmds_need_lc='no'
11031       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11032       hardcode_libdir_separator=:
11033       ;;
11034
11035     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11036       if test "$GCC" = yes; then
11037         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11038         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'
11039         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11040       else
11041         allow_undefined_flag=' -expect_unresolved \*'
11042         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'
11043         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~
11044         $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'
11045
11046         # Both c and cxx compiler support -rpath directly
11047         hardcode_libdir_flag_spec='-rpath $libdir'
11048       fi
11049       archive_cmds_need_lc='no'
11050       hardcode_libdir_separator=:
11051       ;;
11052
11053     solaris*)
11054       no_undefined_flag=' -z defs'
11055       if test "$GCC" = yes; then
11056         wlarc='${wl}'
11057         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11059           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11060       else
11061         case `$CC -V 2>&1` in
11062         *"Compilers 5.0"*)
11063           wlarc=''
11064           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11065           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11066           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11067           ;;
11068         *)
11069           wlarc='${wl}'
11070           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11071           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11072           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11073           ;;
11074         esac
11075       fi
11076       hardcode_libdir_flag_spec='-R$libdir'
11077       hardcode_shlibpath_var=no
11078       case $host_os in
11079       solaris2.[0-5] | solaris2.[0-5].*) ;;
11080       *)
11081         # The compiler driver will combine and reorder linker options,
11082         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11083         # but is careful enough not to reorder.
11084         # Supported since Solaris 2.6 (maybe 2.5.1?)
11085         if test "$GCC" = yes; then
11086           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11087         else
11088           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11089         fi
11090         ;;
11091       esac
11092       link_all_deplibs=yes
11093       ;;
11094
11095     sunos4*)
11096       if test "x$host_vendor" = xsequent; then
11097         # Use $CC to link under sequent, because it throws in some extra .o
11098         # files that make .init and .fini sections work.
11099         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11100       else
11101         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11102       fi
11103       hardcode_libdir_flag_spec='-L$libdir'
11104       hardcode_direct=yes
11105       hardcode_minus_L=yes
11106       hardcode_shlibpath_var=no
11107       ;;
11108
11109     sysv4)
11110       case $host_vendor in
11111         sni)
11112           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11113           hardcode_direct=yes # is this really true???
11114         ;;
11115         siemens)
11116           ## LD is ld it makes a PLAMLIB
11117           ## CC just makes a GrossModule.
11118           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11119           reload_cmds='$CC -r -o $output$reload_objs'
11120           hardcode_direct=no
11121         ;;
11122         motorola)
11123           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11124           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11125         ;;
11126       esac
11127       runpath_var='LD_RUN_PATH'
11128       hardcode_shlibpath_var=no
11129       ;;
11130
11131     sysv4.3*)
11132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133       hardcode_shlibpath_var=no
11134       export_dynamic_flag_spec='-Bexport'
11135       ;;
11136
11137     sysv4*MP*)
11138       if test -d /usr/nec; then
11139         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11140         hardcode_shlibpath_var=no
11141         runpath_var=LD_RUN_PATH
11142         hardcode_runpath_var=yes
11143         ld_shlibs=yes
11144       fi
11145       ;;
11146
11147     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11148       no_undefined_flag='${wl}-z,text'
11149       archive_cmds_need_lc=no
11150       hardcode_shlibpath_var=no
11151       runpath_var='LD_RUN_PATH'
11152
11153       if test "$GCC" = yes; then
11154         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156       else
11157         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11158         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159       fi
11160       ;;
11161
11162     sysv5* | sco3.2v5* | sco5v6*)
11163       # Note: We can NOT use -z defs as we might desire, because we do not
11164       # link with -lc, and that would cause any symbols used from libc to
11165       # always be unresolved, which means just about no library would
11166       # ever link correctly.  If we're not using GNU ld we use -z text
11167       # though, which does catch some bad symbols but isn't as heavy-handed
11168       # as -z defs.
11169       no_undefined_flag='${wl}-z,text'
11170       allow_undefined_flag='${wl}-z,nodefs'
11171       archive_cmds_need_lc=no
11172       hardcode_shlibpath_var=no
11173       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11174       hardcode_libdir_separator=':'
11175       link_all_deplibs=yes
11176       export_dynamic_flag_spec='${wl}-Bexport'
11177       runpath_var='LD_RUN_PATH'
11178
11179       if test "$GCC" = yes; then
11180         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11181         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11182       else
11183         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11184         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185       fi
11186       ;;
11187
11188     uts4*)
11189       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11190       hardcode_libdir_flag_spec='-L$libdir'
11191       hardcode_shlibpath_var=no
11192       ;;
11193
11194     *)
11195       ld_shlibs=no
11196       ;;
11197     esac
11198
11199     if test x$host_vendor = xsni; then
11200       case $host in
11201       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11202         export_dynamic_flag_spec='${wl}-Blargedynsym'
11203         ;;
11204       esac
11205     fi
11206   fi
11207
11208 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11209 $as_echo "$ld_shlibs" >&6; }
11210 test "$ld_shlibs" = no && can_build_shared=no
11211
11212 with_gnu_ld=$with_gnu_ld
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228 #
11229 # Do we need to explicitly link libc?
11230 #
11231 case "x$archive_cmds_need_lc" in
11232 x|xyes)
11233   # Assume -lc should be added
11234   archive_cmds_need_lc=yes
11235
11236   if test "$enable_shared" = yes && test "$GCC" = yes; then
11237     case $archive_cmds in
11238     *'~'*)
11239       # FIXME: we may have to deal with multi-command sequences.
11240       ;;
11241     '$CC '*)
11242       # Test whether the compiler implicitly links with -lc since on some
11243       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11244       # to ld, don't add -lc before -lgcc.
11245       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11246 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11247       $RM conftest*
11248       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11249
11250       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251   (eval $ac_compile) 2>&5
11252   ac_status=$?
11253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } 2>conftest.err; then
11255         soname=conftest
11256         lib=conftest
11257         libobjs=conftest.$ac_objext
11258         deplibs=
11259         wl=$lt_prog_compiler_wl
11260         pic_flag=$lt_prog_compiler_pic
11261         compiler_flags=-v
11262         linker_flags=-v
11263         verstring=
11264         output_objdir=.
11265         libname=conftest
11266         lt_save_allow_undefined_flag=$allow_undefined_flag
11267         allow_undefined_flag=
11268         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11269   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11270   ac_status=$?
11271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); }
11273         then
11274           archive_cmds_need_lc=no
11275         else
11276           archive_cmds_need_lc=yes
11277         fi
11278         allow_undefined_flag=$lt_save_allow_undefined_flag
11279       else
11280         cat conftest.err 1>&5
11281       fi
11282       $RM conftest*
11283       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11284 $as_echo "$archive_cmds_need_lc" >&6; }
11285       ;;
11286     esac
11287   fi
11288   ;;
11289 esac
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11449
11450 if test "$GCC" = yes; then
11451   case $host_os in
11452     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11453     *) lt_awk_arg="/^libraries:/" ;;
11454   esac
11455   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11456   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11457     # if the path contains ";" then we assume it to be the separator
11458     # otherwise default to the standard path separator (i.e. ":") - it is
11459     # assumed that no part of a normal pathname contains ";" but that should
11460     # okay in the real world where ";" in dirpaths is itself problematic.
11461     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11462   else
11463     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11464   fi
11465   # Ok, now we have the path, separated by spaces, we can step through it
11466   # and add multilib dir if necessary.
11467   lt_tmp_lt_search_path_spec=
11468   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11469   for lt_sys_path in $lt_search_path_spec; do
11470     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11471       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11472     else
11473       test -d "$lt_sys_path" && \
11474         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11475     fi
11476   done
11477   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11478 BEGIN {RS=" "; FS="/|\n";} {
11479   lt_foo="";
11480   lt_count=0;
11481   for (lt_i = NF; lt_i > 0; lt_i--) {
11482     if ($lt_i != "" && $lt_i != ".") {
11483       if ($lt_i == "..") {
11484         lt_count++;
11485       } else {
11486         if (lt_count == 0) {
11487           lt_foo="/" $lt_i lt_foo;
11488         } else {
11489           lt_count--;
11490         }
11491       }
11492     }
11493   }
11494   if (lt_foo != "") { lt_freq[lt_foo]++; }
11495   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11496 }'`
11497   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11498 else
11499   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11500 fi
11501 library_names_spec=
11502 libname_spec='lib$name'
11503 soname_spec=
11504 shrext_cmds=".so"
11505 postinstall_cmds=
11506 postuninstall_cmds=
11507 finish_cmds=
11508 finish_eval=
11509 shlibpath_var=
11510 shlibpath_overrides_runpath=unknown
11511 version_type=none
11512 dynamic_linker="$host_os ld.so"
11513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11514 need_lib_prefix=unknown
11515 hardcode_into_libs=no
11516
11517 # when you set need_version to no, make sure it does not cause -set_version
11518 # flags to be left without arguments
11519 need_version=unknown
11520
11521 case $host_os in
11522 aix3*)
11523   version_type=linux
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11525   shlibpath_var=LIBPATH
11526
11527   # AIX 3 has no versioning support, so we append a major version to the name.
11528   soname_spec='${libname}${release}${shared_ext}$major'
11529   ;;
11530
11531 aix[4-9]*)
11532   version_type=linux
11533   need_lib_prefix=no
11534   need_version=no
11535   hardcode_into_libs=yes
11536   if test "$host_cpu" = ia64; then
11537     # AIX 5 supports IA64
11538     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11539     shlibpath_var=LD_LIBRARY_PATH
11540   else
11541     # With GCC up to 2.95.x, collect2 would create an import file
11542     # for dependence libraries.  The import file would start with
11543     # the line `#! .'.  This would cause the generated library to
11544     # depend on `.', always an invalid library.  This was fixed in
11545     # development snapshots of GCC prior to 3.0.
11546     case $host_os in
11547       aix4 | aix4.[01] | aix4.[01].*)
11548       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11549            echo ' yes '
11550            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11551         :
11552       else
11553         can_build_shared=no
11554       fi
11555       ;;
11556     esac
11557     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11558     # soname into executable. Probably we can add versioning support to
11559     # collect2, so additional links can be useful in future.
11560     if test "$aix_use_runtimelinking" = yes; then
11561       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11562       # instead of lib<name>.a to let people know that these are not
11563       # typical AIX shared libraries.
11564       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565     else
11566       # We preserve .a as extension for shared libraries through AIX4.2
11567       # and later when we are not doing run time linking.
11568       library_names_spec='${libname}${release}.a $libname.a'
11569       soname_spec='${libname}${release}${shared_ext}$major'
11570     fi
11571     shlibpath_var=LIBPATH
11572   fi
11573   ;;
11574
11575 amigaos*)
11576   case $host_cpu in
11577   powerpc)
11578     # Since July 2007 AmigaOS4 officially supports .so libraries.
11579     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581     ;;
11582   m68k)
11583     library_names_spec='$libname.ixlibrary $libname.a'
11584     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11585     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'
11586     ;;
11587   esac
11588   ;;
11589
11590 beos*)
11591   library_names_spec='${libname}${shared_ext}'
11592   dynamic_linker="$host_os ld.so"
11593   shlibpath_var=LIBRARY_PATH
11594   ;;
11595
11596 bsdi[45]*)
11597   version_type=linux
11598   need_version=no
11599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600   soname_spec='${libname}${release}${shared_ext}$major'
11601   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11602   shlibpath_var=LD_LIBRARY_PATH
11603   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11604   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11605   # the default ld.so.conf also contains /usr/contrib/lib and
11606   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11607   # libtool to hard-code these into programs
11608   ;;
11609
11610 cygwin* | mingw* | pw32* | cegcc*)
11611   version_type=windows
11612   shrext_cmds=".dll"
11613   need_version=no
11614   need_lib_prefix=no
11615
11616   case $GCC,$host_os in
11617   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11618     library_names_spec='$libname.dll.a'
11619     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11620     postinstall_cmds='base_file=`basename \${file}`~
11621       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11622       dldir=$destdir/`dirname \$dlpath`~
11623       test -d \$dldir || mkdir -p \$dldir~
11624       $install_prog $dir/$dlname \$dldir/$dlname~
11625       chmod a+x \$dldir/$dlname~
11626       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11627         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11628       fi'
11629     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11630       dlpath=$dir/\$dldll~
11631        $RM \$dlpath'
11632     shlibpath_overrides_runpath=yes
11633
11634     case $host_os in
11635     cygwin*)
11636       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11637       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11638       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11639       ;;
11640     mingw* | cegcc*)
11641       # MinGW DLLs use traditional 'lib' prefix
11642       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11643       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11644       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11645         # It is most probably a Windows format PATH printed by
11646         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11647         # path with ; separators, and with drive letters. We can handle the
11648         # drive letters (cygwin fileutils understands them), so leave them,
11649         # especially as we might pass files found there to a mingw objdump,
11650         # which wouldn't understand a cygwinified path. Ahh.
11651         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11652       else
11653         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11654       fi
11655       ;;
11656     pw32*)
11657       # pw32 DLLs use 'pw' prefix rather than 'lib'
11658       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11659       ;;
11660     esac
11661     ;;
11662
11663   *)
11664     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11665     ;;
11666   esac
11667   dynamic_linker='Win32 ld.exe'
11668   # FIXME: first we should search . and the directory the executable is in
11669   shlibpath_var=PATH
11670   ;;
11671
11672 darwin* | rhapsody*)
11673   dynamic_linker="$host_os dyld"
11674   version_type=darwin
11675   need_lib_prefix=no
11676   need_version=no
11677   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11678   soname_spec='${libname}${release}${major}$shared_ext'
11679   shlibpath_overrides_runpath=yes
11680   shlibpath_var=DYLD_LIBRARY_PATH
11681   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11682
11683   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11684   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11685   ;;
11686
11687 dgux*)
11688   version_type=linux
11689   need_lib_prefix=no
11690   need_version=no
11691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11692   soname_spec='${libname}${release}${shared_ext}$major'
11693   shlibpath_var=LD_LIBRARY_PATH
11694   ;;
11695
11696 freebsd1*)
11697   dynamic_linker=no
11698   ;;
11699
11700 freebsd* | dragonfly*)
11701   # DragonFly does not have aout.  When/if they implement a new
11702   # versioning mechanism, adjust this.
11703   if test -x /usr/bin/objformat; then
11704     objformat=`/usr/bin/objformat`
11705   else
11706     case $host_os in
11707     freebsd[123]*) objformat=aout ;;
11708     *) objformat=elf ;;
11709     esac
11710   fi
11711   version_type=freebsd-$objformat
11712   case $version_type in
11713     freebsd-elf*)
11714       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11715       need_version=no
11716       need_lib_prefix=no
11717       ;;
11718     freebsd-*)
11719       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11720       need_version=yes
11721       ;;
11722   esac
11723   shlibpath_var=LD_LIBRARY_PATH
11724   case $host_os in
11725   freebsd2*)
11726     shlibpath_overrides_runpath=yes
11727     ;;
11728   freebsd3.[01]* | freebsdelf3.[01]*)
11729     shlibpath_overrides_runpath=yes
11730     hardcode_into_libs=yes
11731     ;;
11732   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11733   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11734     shlibpath_overrides_runpath=no
11735     hardcode_into_libs=yes
11736     ;;
11737   *) # from 4.6 on, and DragonFly
11738     shlibpath_overrides_runpath=yes
11739     hardcode_into_libs=yes
11740     ;;
11741   esac
11742   ;;
11743
11744 gnu*)
11745   version_type=linux
11746   need_lib_prefix=no
11747   need_version=no
11748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11749   soname_spec='${libname}${release}${shared_ext}$major'
11750   shlibpath_var=LD_LIBRARY_PATH
11751   hardcode_into_libs=yes
11752   ;;
11753
11754 hpux9* | hpux10* | hpux11*)
11755   # Give a soname corresponding to the major version so that dld.sl refuses to
11756   # link against other versions.
11757   version_type=sunos
11758   need_lib_prefix=no
11759   need_version=no
11760   case $host_cpu in
11761   ia64*)
11762     shrext_cmds='.so'
11763     hardcode_into_libs=yes
11764     dynamic_linker="$host_os dld.so"
11765     shlibpath_var=LD_LIBRARY_PATH
11766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768     soname_spec='${libname}${release}${shared_ext}$major'
11769     if test "X$HPUX_IA64_MODE" = X32; then
11770       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11771     else
11772       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11773     fi
11774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11775     ;;
11776   hppa*64*)
11777     shrext_cmds='.sl'
11778     hardcode_into_libs=yes
11779     dynamic_linker="$host_os dld.sl"
11780     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783     soname_spec='${libname}${release}${shared_ext}$major'
11784     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11785     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786     ;;
11787   *)
11788     shrext_cmds='.sl'
11789     dynamic_linker="$host_os dld.sl"
11790     shlibpath_var=SHLIB_PATH
11791     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793     soname_spec='${libname}${release}${shared_ext}$major'
11794     ;;
11795   esac
11796   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11797   postinstall_cmds='chmod 555 $lib'
11798   ;;
11799
11800 interix[3-9]*)
11801   version_type=linux
11802   need_lib_prefix=no
11803   need_version=no
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11805   soname_spec='${libname}${release}${shared_ext}$major'
11806   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11807   shlibpath_var=LD_LIBRARY_PATH
11808   shlibpath_overrides_runpath=no
11809   hardcode_into_libs=yes
11810   ;;
11811
11812 irix5* | irix6* | nonstopux*)
11813   case $host_os in
11814     nonstopux*) version_type=nonstopux ;;
11815     *)
11816         if test "$lt_cv_prog_gnu_ld" = yes; then
11817                 version_type=linux
11818         else
11819                 version_type=irix
11820         fi ;;
11821   esac
11822   need_lib_prefix=no
11823   need_version=no
11824   soname_spec='${libname}${release}${shared_ext}$major'
11825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11826   case $host_os in
11827   irix5* | nonstopux*)
11828     libsuff= shlibsuff=
11829     ;;
11830   *)
11831     case $LD in # libtool.m4 will add one of these switches to LD
11832     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11833       libsuff= shlibsuff= libmagic=32-bit;;
11834     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11835       libsuff=32 shlibsuff=N32 libmagic=N32;;
11836     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11837       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11838     *) libsuff= shlibsuff= libmagic=never-match;;
11839     esac
11840     ;;
11841   esac
11842   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11843   shlibpath_overrides_runpath=no
11844   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11845   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11846   hardcode_into_libs=yes
11847   ;;
11848
11849 # No shared lib support for Linux oldld, aout, or coff.
11850 linux*oldld* | linux*aout* | linux*coff*)
11851   dynamic_linker=no
11852   ;;
11853
11854 # This must be Linux ELF.
11855 linux* | k*bsd*-gnu)
11856   version_type=linux
11857   need_lib_prefix=no
11858   need_version=no
11859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860   soname_spec='${libname}${release}${shared_ext}$major'
11861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11862   shlibpath_var=LD_LIBRARY_PATH
11863   shlibpath_overrides_runpath=no
11864   # Some binutils ld are patched to set DT_RUNPATH
11865   save_LDFLAGS=$LDFLAGS
11866   save_libdir=$libdir
11867   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11868        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11869   cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875
11876 int
11877 main ()
11878 {
11879
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (ac_try="$ac_link"
11886 case "(($ac_try" in
11887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888   *) ac_try_echo=$ac_try;;
11889 esac
11890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11891 $as_echo "$ac_try_echo") >&5
11892   (eval "$ac_link") 2>conftest.er1
11893   ac_status=$?
11894   grep -v '^ *+' conftest.er1 >conftest.err
11895   rm -f conftest.er1
11896   cat conftest.err >&5
11897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } && {
11899          test -z "$ac_c_werror_flag" ||
11900          test ! -s conftest.err
11901        } && test -s conftest$ac_exeext && {
11902          test "$cross_compiling" = yes ||
11903          $as_test_x conftest$ac_exeext
11904        }; then
11905   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11906   shlibpath_overrides_runpath=yes
11907 fi
11908
11909 else
11910   $as_echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913
11914 fi
11915
11916 rm -rf conftest.dSYM
11917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11918       conftest$ac_exeext conftest.$ac_ext
11919   LDFLAGS=$save_LDFLAGS
11920   libdir=$save_libdir
11921
11922   # This implies no fast_install, which is unacceptable.
11923   # Some rework will be needed to allow for fast_install
11924   # before this can be enabled.
11925   hardcode_into_libs=yes
11926
11927   # Append ld.so.conf contents to the search path
11928   if test -f /etc/ld.so.conf; then
11929     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' ' '`
11930     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11931   fi
11932
11933   # We used to test for /lib/ld.so.1 and disable shared libraries on
11934   # powerpc, because MkLinux only supported shared libraries with the
11935   # GNU dynamic linker.  Since this was broken with cross compilers,
11936   # most powerpc-linux boxes support dynamic linking these days and
11937   # people can always --disable-shared, the test was removed, and we
11938   # assume the GNU/Linux dynamic linker is in use.
11939   dynamic_linker='GNU/Linux ld.so'
11940   ;;
11941
11942 netbsd*)
11943   version_type=sunos
11944   need_lib_prefix=no
11945   need_version=no
11946   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11948     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11949     dynamic_linker='NetBSD (a.out) ld.so'
11950   else
11951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11952     soname_spec='${libname}${release}${shared_ext}$major'
11953     dynamic_linker='NetBSD ld.elf_so'
11954   fi
11955   shlibpath_var=LD_LIBRARY_PATH
11956   shlibpath_overrides_runpath=yes
11957   hardcode_into_libs=yes
11958   ;;
11959
11960 newsos6)
11961   version_type=linux
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963   shlibpath_var=LD_LIBRARY_PATH
11964   shlibpath_overrides_runpath=yes
11965   ;;
11966
11967 *nto* | *qnx*)
11968   version_type=qnx
11969   need_lib_prefix=no
11970   need_version=no
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972   soname_spec='${libname}${release}${shared_ext}$major'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   shlibpath_overrides_runpath=no
11975   hardcode_into_libs=yes
11976   dynamic_linker='ldqnx.so'
11977   ;;
11978
11979 openbsd*)
11980   version_type=sunos
11981   sys_lib_dlsearch_path_spec="/usr/lib"
11982   need_lib_prefix=no
11983   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11984   case $host_os in
11985     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11986     *)                          need_version=no  ;;
11987   esac
11988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11989   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11990   shlibpath_var=LD_LIBRARY_PATH
11991   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11992     case $host_os in
11993       openbsd2.[89] | openbsd2.[89].*)
11994         shlibpath_overrides_runpath=no
11995         ;;
11996       *)
11997         shlibpath_overrides_runpath=yes
11998         ;;
11999       esac
12000   else
12001     shlibpath_overrides_runpath=yes
12002   fi
12003   ;;
12004
12005 os2*)
12006   libname_spec='$name'
12007   shrext_cmds=".dll"
12008   need_lib_prefix=no
12009   library_names_spec='$libname${shared_ext} $libname.a'
12010   dynamic_linker='OS/2 ld.exe'
12011   shlibpath_var=LIBPATH
12012   ;;
12013
12014 osf3* | osf4* | osf5*)
12015   version_type=osf
12016   need_lib_prefix=no
12017   need_version=no
12018   soname_spec='${libname}${release}${shared_ext}$major'
12019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020   shlibpath_var=LD_LIBRARY_PATH
12021   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12022   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12023   ;;
12024
12025 rdos*)
12026   dynamic_linker=no
12027   ;;
12028
12029 solaris*)
12030   version_type=linux
12031   need_lib_prefix=no
12032   need_version=no
12033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034   soname_spec='${libname}${release}${shared_ext}$major'
12035   shlibpath_var=LD_LIBRARY_PATH
12036   shlibpath_overrides_runpath=yes
12037   hardcode_into_libs=yes
12038   # ldd complains unless libraries are executable
12039   postinstall_cmds='chmod +x $lib'
12040   ;;
12041
12042 sunos4*)
12043   version_type=sunos
12044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12045   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12046   shlibpath_var=LD_LIBRARY_PATH
12047   shlibpath_overrides_runpath=yes
12048   if test "$with_gnu_ld" = yes; then
12049     need_lib_prefix=no
12050   fi
12051   need_version=yes
12052   ;;
12053
12054 sysv4 | sysv4.3*)
12055   version_type=linux
12056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057   soname_spec='${libname}${release}${shared_ext}$major'
12058   shlibpath_var=LD_LIBRARY_PATH
12059   case $host_vendor in
12060     sni)
12061       shlibpath_overrides_runpath=no
12062       need_lib_prefix=no
12063       runpath_var=LD_RUN_PATH
12064       ;;
12065     siemens)
12066       need_lib_prefix=no
12067       ;;
12068     motorola)
12069       need_lib_prefix=no
12070       need_version=no
12071       shlibpath_overrides_runpath=no
12072       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12073       ;;
12074   esac
12075   ;;
12076
12077 sysv4*MP*)
12078   if test -d /usr/nec ;then
12079     version_type=linux
12080     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12081     soname_spec='$libname${shared_ext}.$major'
12082     shlibpath_var=LD_LIBRARY_PATH
12083   fi
12084   ;;
12085
12086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12087   version_type=freebsd-elf
12088   need_lib_prefix=no
12089   need_version=no
12090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12091   soname_spec='${libname}${release}${shared_ext}$major'
12092   shlibpath_var=LD_LIBRARY_PATH
12093   shlibpath_overrides_runpath=yes
12094   hardcode_into_libs=yes
12095   if test "$with_gnu_ld" = yes; then
12096     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12097   else
12098     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12099     case $host_os in
12100       sco3.2v5*)
12101         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12102         ;;
12103     esac
12104   fi
12105   sys_lib_dlsearch_path_spec='/usr/lib'
12106   ;;
12107
12108 tpf*)
12109   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12110   version_type=linux
12111   need_lib_prefix=no
12112   need_version=no
12113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114   shlibpath_var=LD_LIBRARY_PATH
12115   shlibpath_overrides_runpath=no
12116   hardcode_into_libs=yes
12117   ;;
12118
12119 uts4*)
12120   version_type=linux
12121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122   soname_spec='${libname}${release}${shared_ext}$major'
12123   shlibpath_var=LD_LIBRARY_PATH
12124   ;;
12125
12126 *)
12127   dynamic_linker=no
12128   ;;
12129 esac
12130 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12131 $as_echo "$dynamic_linker" >&6; }
12132 test "$dynamic_linker" = no && can_build_shared=no
12133
12134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12135 if test "$GCC" = yes; then
12136   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12137 fi
12138
12139 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12140   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12141 fi
12142 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12143   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12144 fi
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12233 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12234 hardcode_action=
12235 if test -n "$hardcode_libdir_flag_spec" ||
12236    test -n "$runpath_var" ||
12237    test "X$hardcode_automatic" = "Xyes" ; then
12238
12239   # We can hardcode non-existent directories.
12240   if test "$hardcode_direct" != no &&
12241      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12242      # have to relink, otherwise we might link with an installed library
12243      # when we should be linking with a yet-to-be-installed one
12244      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12245      test "$hardcode_minus_L" != no; then
12246     # Linking always hardcodes the temporary library directory.
12247     hardcode_action=relink
12248   else
12249     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12250     hardcode_action=immediate
12251   fi
12252 else
12253   # We cannot hardcode anything, or else we can only hardcode existing
12254   # directories.
12255   hardcode_action=unsupported
12256 fi
12257 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12258 $as_echo "$hardcode_action" >&6; }
12259
12260 if test "$hardcode_action" = relink ||
12261    test "$inherit_rpath" = yes; then
12262   # Fast installation is not supported
12263   enable_fast_install=no
12264 elif test "$shlibpath_overrides_runpath" = yes ||
12265      test "$enable_shared" = no; then
12266   # Fast installation is not necessary
12267   enable_fast_install=needless
12268 fi
12269
12270
12271
12272
12273
12274
12275   if test "x$enable_dlopen" != xyes; then
12276   enable_dlopen=unknown
12277   enable_dlopen_self=unknown
12278   enable_dlopen_self_static=unknown
12279 else
12280   lt_cv_dlopen=no
12281   lt_cv_dlopen_libs=
12282
12283   case $host_os in
12284   beos*)
12285     lt_cv_dlopen="load_add_on"
12286     lt_cv_dlopen_libs=
12287     lt_cv_dlopen_self=yes
12288     ;;
12289
12290   mingw* | pw32* | cegcc*)
12291     lt_cv_dlopen="LoadLibrary"
12292     lt_cv_dlopen_libs=
12293     ;;
12294
12295   cygwin*)
12296     lt_cv_dlopen="dlopen"
12297     lt_cv_dlopen_libs=
12298     ;;
12299
12300   darwin*)
12301   # if libdl is installed we need to link against it
12302     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12303 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12304 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12305   $as_echo_n "(cached) " >&6
12306 else
12307   ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-ldl  $LIBS"
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h.  */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h.  */
12315
12316 /* Override any GCC internal prototype to avoid an error.
12317    Use char because int might match the return type of a GCC
12318    builtin and then its argument prototype would still apply.  */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 char dlopen ();
12323 int
12324 main ()
12325 {
12326 return dlopen ();
12327   ;
12328   return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (ac_try="$ac_link"
12333 case "(($ac_try" in
12334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335   *) ac_try_echo=$ac_try;;
12336 esac
12337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12338 $as_echo "$ac_try_echo") >&5
12339   (eval "$ac_link") 2>conftest.er1
12340   ac_status=$?
12341   grep -v '^ *+' conftest.er1 >conftest.err
12342   rm -f conftest.er1
12343   cat conftest.err >&5
12344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } && {
12346          test -z "$ac_c_werror_flag" ||
12347          test ! -s conftest.err
12348        } && test -s conftest$ac_exeext && {
12349          test "$cross_compiling" = yes ||
12350          $as_test_x conftest$ac_exeext
12351        }; then
12352   ac_cv_lib_dl_dlopen=yes
12353 else
12354   $as_echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_cv_lib_dl_dlopen=no
12358 fi
12359
12360 rm -rf conftest.dSYM
12361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12362       conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12367 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12368   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12369 else
12370
12371     lt_cv_dlopen="dyld"
12372     lt_cv_dlopen_libs=
12373     lt_cv_dlopen_self=yes
12374
12375 fi
12376
12377     ;;
12378
12379   *)
12380     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12381 $as_echo_n "checking for shl_load... " >&6; }
12382 if test "${ac_cv_func_shl_load+set}" = set; then
12383   $as_echo_n "(cached) " >&6
12384 else
12385   cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h.  */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h.  */
12391 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12393 #define shl_load innocuous_shl_load
12394
12395 /* System header to define __stub macros and hopefully few prototypes,
12396     which can conflict with char shl_load (); below.
12397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12398     <limits.h> exists even on freestanding compilers.  */
12399
12400 #ifdef __STDC__
12401 # include <limits.h>
12402 #else
12403 # include <assert.h>
12404 #endif
12405
12406 #undef shl_load
12407
12408 /* Override any GCC internal prototype to avoid an error.
12409    Use char because int might match the return type of a GCC
12410    builtin and then its argument prototype would still apply.  */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char shl_load ();
12415 /* The GNU C library defines this for functions which it implements
12416     to always fail with ENOSYS.  Some functions are actually named
12417     something starting with __ and the normal name is an alias.  */
12418 #if defined __stub_shl_load || defined __stub___shl_load
12419 choke me
12420 #endif
12421
12422 int
12423 main ()
12424 {
12425 return shl_load ();
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (ac_try="$ac_link"
12432 case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12437 $as_echo "$ac_try_echo") >&5
12438   (eval "$ac_link") 2>conftest.er1
12439   ac_status=$?
12440   grep -v '^ *+' conftest.er1 >conftest.err
12441   rm -f conftest.er1
12442   cat conftest.err >&5
12443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } && {
12445          test -z "$ac_c_werror_flag" ||
12446          test ! -s conftest.err
12447        } && test -s conftest$ac_exeext && {
12448          test "$cross_compiling" = yes ||
12449          $as_test_x conftest$ac_exeext
12450        }; then
12451   ac_cv_func_shl_load=yes
12452 else
12453   $as_echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456         ac_cv_func_shl_load=no
12457 fi
12458
12459 rm -rf conftest.dSYM
12460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12461       conftest$ac_exeext conftest.$ac_ext
12462 fi
12463 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12464 $as_echo "$ac_cv_func_shl_load" >&6; }
12465 if test "x$ac_cv_func_shl_load" = x""yes; then
12466   lt_cv_dlopen="shl_load"
12467 else
12468   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12469 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12470 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12471   $as_echo_n "(cached) " >&6
12472 else
12473   ac_check_lib_save_LIBS=$LIBS
12474 LIBS="-ldld  $LIBS"
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481
12482 /* Override any GCC internal prototype to avoid an error.
12483    Use char because int might match the return type of a GCC
12484    builtin and then its argument prototype would still apply.  */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char shl_load ();
12489 int
12490 main ()
12491 {
12492 return shl_load ();
12493   ;
12494   return 0;
12495 }
12496 _ACEOF
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (ac_try="$ac_link"
12499 case "(($ac_try" in
12500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501   *) ac_try_echo=$ac_try;;
12502 esac
12503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12504 $as_echo "$ac_try_echo") >&5
12505   (eval "$ac_link") 2>conftest.er1
12506   ac_status=$?
12507   grep -v '^ *+' conftest.er1 >conftest.err
12508   rm -f conftest.er1
12509   cat conftest.err >&5
12510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); } && {
12512          test -z "$ac_c_werror_flag" ||
12513          test ! -s conftest.err
12514        } && test -s conftest$ac_exeext && {
12515          test "$cross_compiling" = yes ||
12516          $as_test_x conftest$ac_exeext
12517        }; then
12518   ac_cv_lib_dld_shl_load=yes
12519 else
12520   $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523         ac_cv_lib_dld_shl_load=no
12524 fi
12525
12526 rm -rf conftest.dSYM
12527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528       conftest$ac_exeext conftest.$ac_ext
12529 LIBS=$ac_check_lib_save_LIBS
12530 fi
12531 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12532 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12533 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12534   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12535 else
12536   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12537 $as_echo_n "checking for dlopen... " >&6; }
12538 if test "${ac_cv_func_dlopen+set}" = set; then
12539   $as_echo_n "(cached) " >&6
12540 else
12541   cat >conftest.$ac_ext <<_ACEOF
12542 /* confdefs.h.  */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h.  */
12547 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12549 #define dlopen innocuous_dlopen
12550
12551 /* System header to define __stub macros and hopefully few prototypes,
12552     which can conflict with char dlopen (); below.
12553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554     <limits.h> exists even on freestanding compilers.  */
12555
12556 #ifdef __STDC__
12557 # include <limits.h>
12558 #else
12559 # include <assert.h>
12560 #endif
12561
12562 #undef dlopen
12563
12564 /* Override any GCC internal prototype to avoid an error.
12565    Use char because int might match the return type of a GCC
12566    builtin and then its argument prototype would still apply.  */
12567 #ifdef __cplusplus
12568 extern "C"
12569 #endif
12570 char dlopen ();
12571 /* The GNU C library defines this for functions which it implements
12572     to always fail with ENOSYS.  Some functions are actually named
12573     something starting with __ and the normal name is an alias.  */
12574 #if defined __stub_dlopen || defined __stub___dlopen
12575 choke me
12576 #endif
12577
12578 int
12579 main ()
12580 {
12581 return dlopen ();
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (ac_try="$ac_link"
12588 case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12593 $as_echo "$ac_try_echo") >&5
12594   (eval "$ac_link") 2>conftest.er1
12595   ac_status=$?
12596   grep -v '^ *+' conftest.er1 >conftest.err
12597   rm -f conftest.er1
12598   cat conftest.err >&5
12599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } && {
12601          test -z "$ac_c_werror_flag" ||
12602          test ! -s conftest.err
12603        } && test -s conftest$ac_exeext && {
12604          test "$cross_compiling" = yes ||
12605          $as_test_x conftest$ac_exeext
12606        }; then
12607   ac_cv_func_dlopen=yes
12608 else
12609   $as_echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612         ac_cv_func_dlopen=no
12613 fi
12614
12615 rm -rf conftest.dSYM
12616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12617       conftest$ac_exeext conftest.$ac_ext
12618 fi
12619 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12620 $as_echo "$ac_cv_func_dlopen" >&6; }
12621 if test "x$ac_cv_func_dlopen" = x""yes; then
12622   lt_cv_dlopen="dlopen"
12623 else
12624   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12626 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12627   $as_echo_n "(cached) " >&6
12628 else
12629   ac_check_lib_save_LIBS=$LIBS
12630 LIBS="-ldl  $LIBS"
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h.  */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h.  */
12637
12638 /* Override any GCC internal prototype to avoid an error.
12639    Use char because int might match the return type of a GCC
12640    builtin and then its argument prototype would still apply.  */
12641 #ifdef __cplusplus
12642 extern "C"
12643 #endif
12644 char dlopen ();
12645 int
12646 main ()
12647 {
12648 return dlopen ();
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (ac_try="$ac_link"
12655 case "(($ac_try" in
12656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657   *) ac_try_echo=$ac_try;;
12658 esac
12659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12660 $as_echo "$ac_try_echo") >&5
12661   (eval "$ac_link") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } && {
12668          test -z "$ac_c_werror_flag" ||
12669          test ! -s conftest.err
12670        } && test -s conftest$ac_exeext && {
12671          test "$cross_compiling" = yes ||
12672          $as_test_x conftest$ac_exeext
12673        }; then
12674   ac_cv_lib_dl_dlopen=yes
12675 else
12676   $as_echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12678
12679         ac_cv_lib_dl_dlopen=no
12680 fi
12681
12682 rm -rf conftest.dSYM
12683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12684       conftest$ac_exeext conftest.$ac_ext
12685 LIBS=$ac_check_lib_save_LIBS
12686 fi
12687 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12689 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12690   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12691 else
12692   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12693 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12694 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12695   $as_echo_n "(cached) " >&6
12696 else
12697   ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-lsvld  $LIBS"
12699 cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h.  */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h.  */
12705
12706 /* Override any GCC internal prototype to avoid an error.
12707    Use char because int might match the return type of a GCC
12708    builtin and then its argument prototype would still apply.  */
12709 #ifdef __cplusplus
12710 extern "C"
12711 #endif
12712 char dlopen ();
12713 int
12714 main ()
12715 {
12716 return dlopen ();
12717   ;
12718   return 0;
12719 }
12720 _ACEOF
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12728 $as_echo "$ac_try_echo") >&5
12729   (eval "$ac_link") 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } && {
12736          test -z "$ac_c_werror_flag" ||
12737          test ! -s conftest.err
12738        } && test -s conftest$ac_exeext && {
12739          test "$cross_compiling" = yes ||
12740          $as_test_x conftest$ac_exeext
12741        }; then
12742   ac_cv_lib_svld_dlopen=yes
12743 else
12744   $as_echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747         ac_cv_lib_svld_dlopen=no
12748 fi
12749
12750 rm -rf conftest.dSYM
12751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12752       conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12754 fi
12755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12756 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12757 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12758   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12759 else
12760   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12761 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12762 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12763   $as_echo_n "(cached) " >&6
12764 else
12765   ac_check_lib_save_LIBS=$LIBS
12766 LIBS="-ldld  $LIBS"
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773
12774 /* Override any GCC internal prototype to avoid an error.
12775    Use char because int might match the return type of a GCC
12776    builtin and then its argument prototype would still apply.  */
12777 #ifdef __cplusplus
12778 extern "C"
12779 #endif
12780 char dld_link ();
12781 int
12782 main ()
12783 {
12784 return dld_link ();
12785   ;
12786   return 0;
12787 }
12788 _ACEOF
12789 rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (ac_try="$ac_link"
12791 case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12796 $as_echo "$ac_try_echo") >&5
12797   (eval "$ac_link") 2>conftest.er1
12798   ac_status=$?
12799   grep -v '^ *+' conftest.er1 >conftest.err
12800   rm -f conftest.er1
12801   cat conftest.err >&5
12802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } && {
12804          test -z "$ac_c_werror_flag" ||
12805          test ! -s conftest.err
12806        } && test -s conftest$ac_exeext && {
12807          test "$cross_compiling" = yes ||
12808          $as_test_x conftest$ac_exeext
12809        }; then
12810   ac_cv_lib_dld_dld_link=yes
12811 else
12812   $as_echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815         ac_cv_lib_dld_dld_link=no
12816 fi
12817
12818 rm -rf conftest.dSYM
12819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12820       conftest$ac_exeext conftest.$ac_ext
12821 LIBS=$ac_check_lib_save_LIBS
12822 fi
12823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12824 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12825 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12826   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12827 fi
12828
12829
12830 fi
12831
12832
12833 fi
12834
12835
12836 fi
12837
12838
12839 fi
12840
12841
12842 fi
12843
12844     ;;
12845   esac
12846
12847   if test "x$lt_cv_dlopen" != xno; then
12848     enable_dlopen=yes
12849   else
12850     enable_dlopen=no
12851   fi
12852
12853   case $lt_cv_dlopen in
12854   dlopen)
12855     save_CPPFLAGS="$CPPFLAGS"
12856     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12857
12858     save_LDFLAGS="$LDFLAGS"
12859     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12860
12861     save_LIBS="$LIBS"
12862     LIBS="$lt_cv_dlopen_libs $LIBS"
12863
12864     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12865 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12866 if test "${lt_cv_dlopen_self+set}" = set; then
12867   $as_echo_n "(cached) " >&6
12868 else
12869           if test "$cross_compiling" = yes; then :
12870   lt_cv_dlopen_self=cross
12871 else
12872   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12873   lt_status=$lt_dlunknown
12874   cat > conftest.$ac_ext <<_LT_EOF
12875 #line 12875 "configure"
12876 #include "confdefs.h"
12877
12878 #if HAVE_DLFCN_H
12879 #include <dlfcn.h>
12880 #endif
12881
12882 #include <stdio.h>
12883
12884 #ifdef RTLD_GLOBAL
12885 #  define LT_DLGLOBAL           RTLD_GLOBAL
12886 #else
12887 #  ifdef DL_GLOBAL
12888 #    define LT_DLGLOBAL         DL_GLOBAL
12889 #  else
12890 #    define LT_DLGLOBAL         0
12891 #  endif
12892 #endif
12893
12894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12895    find out it does not work in some platform. */
12896 #ifndef LT_DLLAZY_OR_NOW
12897 #  ifdef RTLD_LAZY
12898 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12899 #  else
12900 #    ifdef DL_LAZY
12901 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12902 #    else
12903 #      ifdef RTLD_NOW
12904 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12905 #      else
12906 #        ifdef DL_NOW
12907 #          define LT_DLLAZY_OR_NOW      DL_NOW
12908 #        else
12909 #          define LT_DLLAZY_OR_NOW      0
12910 #        endif
12911 #      endif
12912 #    endif
12913 #  endif
12914 #endif
12915
12916 void fnord() { int i=42;}
12917 int main ()
12918 {
12919   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12920   int status = $lt_dlunknown;
12921
12922   if (self)
12923     {
12924       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12925       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12926       /* dlclose (self); */
12927     }
12928   else
12929     puts (dlerror ());
12930
12931   return status;
12932 }
12933 _LT_EOF
12934   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12935   (eval $ac_link) 2>&5
12936   ac_status=$?
12937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12939     (./conftest; exit; ) >&5 2>/dev/null
12940     lt_status=$?
12941     case x$lt_status in
12942       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12943       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12944       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12945     esac
12946   else :
12947     # compilation failed
12948     lt_cv_dlopen_self=no
12949   fi
12950 fi
12951 rm -fr conftest*
12952
12953
12954 fi
12955 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12956 $as_echo "$lt_cv_dlopen_self" >&6; }
12957
12958     if test "x$lt_cv_dlopen_self" = xyes; then
12959       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12960       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12961 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12962 if test "${lt_cv_dlopen_self_static+set}" = set; then
12963   $as_echo_n "(cached) " >&6
12964 else
12965           if test "$cross_compiling" = yes; then :
12966   lt_cv_dlopen_self_static=cross
12967 else
12968   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12969   lt_status=$lt_dlunknown
12970   cat > conftest.$ac_ext <<_LT_EOF
12971 #line 12971 "configure"
12972 #include "confdefs.h"
12973
12974 #if HAVE_DLFCN_H
12975 #include <dlfcn.h>
12976 #endif
12977
12978 #include <stdio.h>
12979
12980 #ifdef RTLD_GLOBAL
12981 #  define LT_DLGLOBAL           RTLD_GLOBAL
12982 #else
12983 #  ifdef DL_GLOBAL
12984 #    define LT_DLGLOBAL         DL_GLOBAL
12985 #  else
12986 #    define LT_DLGLOBAL         0
12987 #  endif
12988 #endif
12989
12990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12991    find out it does not work in some platform. */
12992 #ifndef LT_DLLAZY_OR_NOW
12993 #  ifdef RTLD_LAZY
12994 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12995 #  else
12996 #    ifdef DL_LAZY
12997 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12998 #    else
12999 #      ifdef RTLD_NOW
13000 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13001 #      else
13002 #        ifdef DL_NOW
13003 #          define LT_DLLAZY_OR_NOW      DL_NOW
13004 #        else
13005 #          define LT_DLLAZY_OR_NOW      0
13006 #        endif
13007 #      endif
13008 #    endif
13009 #  endif
13010 #endif
13011
13012 void fnord() { int i=42;}
13013 int main ()
13014 {
13015   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13016   int status = $lt_dlunknown;
13017
13018   if (self)
13019     {
13020       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13021       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13022       /* dlclose (self); */
13023     }
13024   else
13025     puts (dlerror ());
13026
13027   return status;
13028 }
13029 _LT_EOF
13030   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13031   (eval $ac_link) 2>&5
13032   ac_status=$?
13033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13035     (./conftest; exit; ) >&5 2>/dev/null
13036     lt_status=$?
13037     case x$lt_status in
13038       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13039       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13040       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13041     esac
13042   else :
13043     # compilation failed
13044     lt_cv_dlopen_self_static=no
13045   fi
13046 fi
13047 rm -fr conftest*
13048
13049
13050 fi
13051 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13052 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13053     fi
13054
13055     CPPFLAGS="$save_CPPFLAGS"
13056     LDFLAGS="$save_LDFLAGS"
13057     LIBS="$save_LIBS"
13058     ;;
13059   esac
13060
13061   case $lt_cv_dlopen_self in
13062   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13063   *) enable_dlopen_self=unknown ;;
13064   esac
13065
13066   case $lt_cv_dlopen_self_static in
13067   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13068   *) enable_dlopen_self_static=unknown ;;
13069   esac
13070 fi
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088 striplib=
13089 old_striplib=
13090 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13091 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13092 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13093   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13094   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13095   { $as_echo "$as_me:$LINENO: result: yes" >&5
13096 $as_echo "yes" >&6; }
13097 else
13098 # FIXME - insert some real tests, host_os isn't really good enough
13099   case $host_os in
13100   darwin*)
13101     if test -n "$STRIP" ; then
13102       striplib="$STRIP -x"
13103       old_striplib="$STRIP -S"
13104       { $as_echo "$as_me:$LINENO: result: yes" >&5
13105 $as_echo "yes" >&6; }
13106     else
13107       { $as_echo "$as_me:$LINENO: result: no" >&5
13108 $as_echo "no" >&6; }
13109     fi
13110     ;;
13111   *)
13112     { $as_echo "$as_me:$LINENO: result: no" >&5
13113 $as_echo "no" >&6; }
13114     ;;
13115   esac
13116 fi
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129   # Report which library types will actually be built
13130   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13131 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13132   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13133 $as_echo "$can_build_shared" >&6; }
13134
13135   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13136 $as_echo_n "checking whether to build shared libraries... " >&6; }
13137   test "$can_build_shared" = "no" && enable_shared=no
13138
13139   # On AIX, shared libraries and static libraries use the same namespace, and
13140   # are all built from PIC.
13141   case $host_os in
13142   aix3*)
13143     test "$enable_shared" = yes && enable_static=no
13144     if test -n "$RANLIB"; then
13145       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13146       postinstall_cmds='$RANLIB $lib'
13147     fi
13148     ;;
13149
13150   aix[4-9]*)
13151     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13152       test "$enable_shared" = yes && enable_static=no
13153     fi
13154     ;;
13155   esac
13156   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13157 $as_echo "$enable_shared" >&6; }
13158
13159   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13160 $as_echo_n "checking whether to build static libraries... " >&6; }
13161   # Make sure either enable_shared or enable_static is yes.
13162   test "$enable_shared" = yes || enable_static=yes
13163   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13164 $as_echo "$enable_static" >&6; }
13165
13166
13167
13168
13169 fi
13170 ac_ext=c
13171 ac_cpp='$CPP $CPPFLAGS'
13172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13175
13176 CC="$lt_save_CC"
13177
13178
13179 ac_ext=cpp
13180 ac_cpp='$CXXCPP $CPPFLAGS'
13181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184
13185 archive_cmds_need_lc_CXX=no
13186 allow_undefined_flag_CXX=
13187 always_export_symbols_CXX=no
13188 archive_expsym_cmds_CXX=
13189 compiler_needs_object_CXX=no
13190 export_dynamic_flag_spec_CXX=
13191 hardcode_direct_CXX=no
13192 hardcode_direct_absolute_CXX=no
13193 hardcode_libdir_flag_spec_CXX=
13194 hardcode_libdir_flag_spec_ld_CXX=
13195 hardcode_libdir_separator_CXX=
13196 hardcode_minus_L_CXX=no
13197 hardcode_shlibpath_var_CXX=unsupported
13198 hardcode_automatic_CXX=no
13199 inherit_rpath_CXX=no
13200 module_cmds_CXX=
13201 module_expsym_cmds_CXX=
13202 link_all_deplibs_CXX=unknown
13203 old_archive_cmds_CXX=$old_archive_cmds
13204 no_undefined_flag_CXX=
13205 whole_archive_flag_spec_CXX=
13206 enable_shared_with_static_runtimes_CXX=no
13207
13208 # Source file extension for C++ test sources.
13209 ac_ext=cpp
13210
13211 # Object file extension for compiled C++ test sources.
13212 objext=o
13213 objext_CXX=$objext
13214
13215 # No sense in running all these tests if we already determined that
13216 # the CXX compiler isn't working.  Some variables (like enable_shared)
13217 # are currently assumed to apply to all compilers on this platform,
13218 # and will be corrupted by setting them based on a non-working compiler.
13219 if test "$_lt_caught_CXX_error" != yes; then
13220   # Code to be used in simple compile tests
13221   lt_simple_compile_test_code="int some_variable = 0;"
13222
13223   # Code to be used in simple link tests
13224   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13225
13226   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13227
13228
13229
13230
13231
13232
13233 # If no C compiler was specified, use CC.
13234 LTCC=${LTCC-"$CC"}
13235
13236 # If no C compiler flags were specified, use CFLAGS.
13237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13238
13239 # Allow CC to be a program name with arguments.
13240 compiler=$CC
13241
13242
13243   # save warnings/boilerplate of simple test code
13244   ac_outfile=conftest.$ac_objext
13245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13247 _lt_compiler_boilerplate=`cat conftest.err`
13248 $RM conftest*
13249
13250   ac_outfile=conftest.$ac_objext
13251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13253 _lt_linker_boilerplate=`cat conftest.err`
13254 $RM -r conftest*
13255
13256
13257   # Allow CC to be a program name with arguments.
13258   lt_save_CC=$CC
13259   lt_save_LD=$LD
13260   lt_save_GCC=$GCC
13261   GCC=$GXX
13262   lt_save_with_gnu_ld=$with_gnu_ld
13263   lt_save_path_LD=$lt_cv_path_LD
13264   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13265     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13266   else
13267     $as_unset lt_cv_prog_gnu_ld
13268   fi
13269   if test -n "${lt_cv_path_LDCXX+set}"; then
13270     lt_cv_path_LD=$lt_cv_path_LDCXX
13271   else
13272     $as_unset lt_cv_path_LD
13273   fi
13274   test -z "${LDCXX+set}" || LD=$LDCXX
13275   CC=${CXX-"c++"}
13276   compiler=$CC
13277   compiler_CXX=$CC
13278   for cc_temp in $compiler""; do
13279   case $cc_temp in
13280     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13281     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13282     \-*) ;;
13283     *) break;;
13284   esac
13285 done
13286 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13287
13288
13289   if test -n "$compiler"; then
13290     # We don't want -fno-exception when compiling C++ code, so set the
13291     # no_builtin_flag separately
13292     if test "$GXX" = yes; then
13293       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13294     else
13295       lt_prog_compiler_no_builtin_flag_CXX=
13296     fi
13297
13298     if test "$GXX" = yes; then
13299       # Set up default GNU C++ configuration
13300
13301
13302
13303 # Check whether --with-gnu-ld was given.
13304 if test "${with_gnu_ld+set}" = set; then
13305   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13306 else
13307   with_gnu_ld=no
13308 fi
13309
13310 ac_prog=ld
13311 if test "$GCC" = yes; then
13312   # Check if gcc -print-prog-name=ld gives a path.
13313   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13314 $as_echo_n "checking for ld used by $CC... " >&6; }
13315   case $host in
13316   *-*-mingw*)
13317     # gcc leaves a trailing carriage return which upsets mingw
13318     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13319   *)
13320     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13321   esac
13322   case $ac_prog in
13323     # Accept absolute paths.
13324     [\\/]* | ?:[\\/]*)
13325       re_direlt='/[^/][^/]*/\.\./'
13326       # Canonicalize the pathname of ld
13327       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13328       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13329         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13330       done
13331       test -z "$LD" && LD="$ac_prog"
13332       ;;
13333   "")
13334     # If it fails, then pretend we aren't using GCC.
13335     ac_prog=ld
13336     ;;
13337   *)
13338     # If it is relative, then search for the first ld in PATH.
13339     with_gnu_ld=unknown
13340     ;;
13341   esac
13342 elif test "$with_gnu_ld" = yes; then
13343   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13344 $as_echo_n "checking for GNU ld... " >&6; }
13345 else
13346   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13347 $as_echo_n "checking for non-GNU ld... " >&6; }
13348 fi
13349 if test "${lt_cv_path_LD+set}" = set; then
13350   $as_echo_n "(cached) " >&6
13351 else
13352   if test -z "$LD"; then
13353   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13354   for ac_dir in $PATH; do
13355     IFS="$lt_save_ifs"
13356     test -z "$ac_dir" && ac_dir=.
13357     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13358       lt_cv_path_LD="$ac_dir/$ac_prog"
13359       # Check to see if the program is GNU ld.  I'd rather use --version,
13360       # but apparently some variants of GNU ld only accept -v.
13361       # Break only if it was the GNU/non-GNU ld that we prefer.
13362       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13363       *GNU* | *'with BFD'*)
13364         test "$with_gnu_ld" != no && break
13365         ;;
13366       *)
13367         test "$with_gnu_ld" != yes && break
13368         ;;
13369       esac
13370     fi
13371   done
13372   IFS="$lt_save_ifs"
13373 else
13374   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13375 fi
13376 fi
13377
13378 LD="$lt_cv_path_LD"
13379 if test -n "$LD"; then
13380   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13381 $as_echo "$LD" >&6; }
13382 else
13383   { $as_echo "$as_me:$LINENO: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13387 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13388    { (exit 1); exit 1; }; }
13389 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13392   $as_echo_n "(cached) " >&6
13393 else
13394   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13395 case `$LD -v 2>&1 </dev/null` in
13396 *GNU* | *'with BFD'*)
13397   lt_cv_prog_gnu_ld=yes
13398   ;;
13399 *)
13400   lt_cv_prog_gnu_ld=no
13401   ;;
13402 esac
13403 fi
13404 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13406 with_gnu_ld=$lt_cv_prog_gnu_ld
13407
13408
13409
13410
13411
13412
13413
13414       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13415       # archiving commands below assume that GNU ld is being used.
13416       if test "$with_gnu_ld" = yes; then
13417         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13418         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'
13419
13420         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13421         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422
13423         # If archive_cmds runs LD, not CC, wlarc should be empty
13424         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13425         #     investigate it a little bit more. (MM)
13426         wlarc='${wl}'
13427
13428         # ancient GNU ld didn't support --whole-archive et. al.
13429         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13430           $GREP 'no-whole-archive' > /dev/null; then
13431           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13432         else
13433           whole_archive_flag_spec_CXX=
13434         fi
13435       else
13436         with_gnu_ld=no
13437         wlarc=
13438
13439         # A generic and very simple default shared library creation
13440         # command for GNU C++ for the case where it uses the native
13441         # linker, instead of GNU ld.  If possible, this setting should
13442         # overridden to take advantage of the native linker features on
13443         # the platform it is being used on.
13444         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13445       fi
13446
13447       # Commands to make compiler produce verbose output that lists
13448       # what "hidden" libraries, object files and flags are used when
13449       # linking a shared library.
13450       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13451
13452     else
13453       GXX=no
13454       with_gnu_ld=no
13455       wlarc=
13456     fi
13457
13458     # PORTME: fill in a description of your system's C++ link characteristics
13459     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13461     ld_shlibs_CXX=yes
13462     case $host_os in
13463       aix3*)
13464         # FIXME: insert proper C++ library support
13465         ld_shlibs_CXX=no
13466         ;;
13467       aix[4-9]*)
13468         if test "$host_cpu" = ia64; then
13469           # On IA64, the linker does run time linking by default, so we don't
13470           # have to do anything special.
13471           aix_use_runtimelinking=no
13472           exp_sym_flag='-Bexport'
13473           no_entry_flag=""
13474         else
13475           aix_use_runtimelinking=no
13476
13477           # Test if we are trying to use run time linking or normal
13478           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13479           # need to do runtime linking.
13480           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13481             for ld_flag in $LDFLAGS; do
13482               case $ld_flag in
13483               *-brtl*)
13484                 aix_use_runtimelinking=yes
13485                 break
13486                 ;;
13487               esac
13488             done
13489             ;;
13490           esac
13491
13492           exp_sym_flag='-bexport'
13493           no_entry_flag='-bnoentry'
13494         fi
13495
13496         # When large executables or shared objects are built, AIX ld can
13497         # have problems creating the table of contents.  If linking a library
13498         # or program results in "error TOC overflow" add -mminimal-toc to
13499         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13500         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13501
13502         archive_cmds_CXX=''
13503         hardcode_direct_CXX=yes
13504         hardcode_direct_absolute_CXX=yes
13505         hardcode_libdir_separator_CXX=':'
13506         link_all_deplibs_CXX=yes
13507         file_list_spec_CXX='${wl}-f,'
13508
13509         if test "$GXX" = yes; then
13510           case $host_os in aix4.[012]|aix4.[012].*)
13511           # We only want to do this on AIX 4.2 and lower, the check
13512           # below for broken collect2 doesn't work under 4.3+
13513           collect2name=`${CC} -print-prog-name=collect2`
13514           if test -f "$collect2name" &&
13515              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13516           then
13517             # We have reworked collect2
13518             :
13519           else
13520             # We have old collect2
13521             hardcode_direct_CXX=unsupported
13522             # It fails to find uninstalled libraries when the uninstalled
13523             # path is not listed in the libpath.  Setting hardcode_minus_L
13524             # to unsupported forces relinking
13525             hardcode_minus_L_CXX=yes
13526             hardcode_libdir_flag_spec_CXX='-L$libdir'
13527             hardcode_libdir_separator_CXX=
13528           fi
13529           esac
13530           shared_flag='-shared'
13531           if test "$aix_use_runtimelinking" = yes; then
13532             shared_flag="$shared_flag "'${wl}-G'
13533           fi
13534         else
13535           # not using gcc
13536           if test "$host_cpu" = ia64; then
13537           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13538           # chokes on -Wl,-G. The following line is correct:
13539           shared_flag='-G'
13540           else
13541             if test "$aix_use_runtimelinking" = yes; then
13542               shared_flag='${wl}-G'
13543             else
13544               shared_flag='${wl}-bM:SRE'
13545             fi
13546           fi
13547         fi
13548
13549         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13550         # It seems that -bexpall does not export symbols beginning with
13551         # underscore (_), so it is better to generate a list of symbols to
13552         # export.
13553         always_export_symbols_CXX=yes
13554         if test "$aix_use_runtimelinking" = yes; then
13555           # Warning - without using the other runtime loading flags (-brtl),
13556           # -berok will link without error, but may produce a broken library.
13557           allow_undefined_flag_CXX='-berok'
13558           # Determine the default libpath from the value encoded in an empty
13559           # executable.
13560           cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566
13567 int
13568 main ()
13569 {
13570
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (ac_try="$ac_link"
13577 case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13582 $as_echo "$ac_try_echo") >&5
13583   (eval "$ac_link") 2>conftest.er1
13584   ac_status=$?
13585   grep -v '^ *+' conftest.er1 >conftest.err
13586   rm -f conftest.er1
13587   cat conftest.err >&5
13588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } && {
13590          test -z "$ac_cxx_werror_flag" ||
13591          test ! -s conftest.err
13592        } && test -s conftest$ac_exeext && {
13593          test "$cross_compiling" = yes ||
13594          $as_test_x conftest$ac_exeext
13595        }; then
13596
13597 lt_aix_libpath_sed='
13598     /Import File Strings/,/^$/ {
13599         /^0/ {
13600             s/^0  *\(.*\)$/\1/
13601             p
13602         }
13603     }'
13604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13605 # Check for a 64-bit object if we didn't find anything.
13606 if test -z "$aix_libpath"; then
13607   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13608 fi
13609 else
13610   $as_echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613
13614 fi
13615
13616 rm -rf conftest.dSYM
13617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13618       conftest$ac_exeext conftest.$ac_ext
13619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13620
13621           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13622
13623           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"
13624         else
13625           if test "$host_cpu" = ia64; then
13626             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13627             allow_undefined_flag_CXX="-z nodefs"
13628             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"
13629           else
13630             # Determine the default libpath from the value encoded in an
13631             # empty executable.
13632             cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h.  */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h.  */
13638
13639 int
13640 main ()
13641 {
13642
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651   *) ac_try_echo=$ac_try;;
13652 esac
13653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13654 $as_echo "$ac_try_echo") >&5
13655   (eval "$ac_link") 2>conftest.er1
13656   ac_status=$?
13657   grep -v '^ *+' conftest.er1 >conftest.err
13658   rm -f conftest.er1
13659   cat conftest.err >&5
13660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); } && {
13662          test -z "$ac_cxx_werror_flag" ||
13663          test ! -s conftest.err
13664        } && test -s conftest$ac_exeext && {
13665          test "$cross_compiling" = yes ||
13666          $as_test_x conftest$ac_exeext
13667        }; then
13668
13669 lt_aix_libpath_sed='
13670     /Import File Strings/,/^$/ {
13671         /^0/ {
13672             s/^0  *\(.*\)$/\1/
13673             p
13674         }
13675     }'
13676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13677 # Check for a 64-bit object if we didn't find anything.
13678 if test -z "$aix_libpath"; then
13679   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13680 fi
13681 else
13682   $as_echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685
13686 fi
13687
13688 rm -rf conftest.dSYM
13689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690       conftest$ac_exeext conftest.$ac_ext
13691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13692
13693             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13694             # Warning - without using the other run time loading flags,
13695             # -berok will link without error, but may produce a broken library.
13696             no_undefined_flag_CXX=' ${wl}-bernotok'
13697             allow_undefined_flag_CXX=' ${wl}-berok'
13698             # Exported symbols can be pulled into shared objects from archives
13699             whole_archive_flag_spec_CXX='$convenience'
13700             archive_cmds_need_lc_CXX=yes
13701             # This is similar to how AIX traditionally builds its shared
13702             # libraries.
13703             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'
13704           fi
13705         fi
13706         ;;
13707
13708       beos*)
13709         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13710           allow_undefined_flag_CXX=unsupported
13711           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13712           # support --undefined.  This deserves some investigation.  FIXME
13713           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714         else
13715           ld_shlibs_CXX=no
13716         fi
13717         ;;
13718
13719       chorus*)
13720         case $cc_basename in
13721           *)
13722           # FIXME: insert proper C++ library support
13723           ld_shlibs_CXX=no
13724           ;;
13725         esac
13726         ;;
13727
13728       cygwin* | mingw* | pw32* | cegcc*)
13729         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13730         # as there is no search path for DLLs.
13731         hardcode_libdir_flag_spec_CXX='-L$libdir'
13732         allow_undefined_flag_CXX=unsupported
13733         always_export_symbols_CXX=no
13734         enable_shared_with_static_runtimes_CXX=yes
13735
13736         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13737           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'
13738           # If the export-symbols file already is a .def file (1st line
13739           # is EXPORTS), use it as is; otherwise, prepend...
13740           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13741             cp $export_symbols $output_objdir/$soname.def;
13742           else
13743             echo EXPORTS > $output_objdir/$soname.def;
13744             cat $export_symbols >> $output_objdir/$soname.def;
13745           fi~
13746           $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'
13747         else
13748           ld_shlibs_CXX=no
13749         fi
13750         ;;
13751       darwin* | rhapsody*)
13752
13753
13754   archive_cmds_need_lc_CXX=no
13755   hardcode_direct_CXX=no
13756   hardcode_automatic_CXX=yes
13757   hardcode_shlibpath_var_CXX=unsupported
13758   whole_archive_flag_spec_CXX=''
13759   link_all_deplibs_CXX=yes
13760   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13761   case $cc_basename in
13762      ifort*) _lt_dar_can_shared=yes ;;
13763      *) _lt_dar_can_shared=$GCC ;;
13764   esac
13765   if test "$_lt_dar_can_shared" = "yes"; then
13766     output_verbose_link_cmd=echo
13767     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}"
13768     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13769     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}"
13770     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}"
13771        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13772       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}"
13773       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}"
13774     fi
13775
13776   else
13777   ld_shlibs_CXX=no
13778   fi
13779
13780         ;;
13781
13782       dgux*)
13783         case $cc_basename in
13784           ec++*)
13785             # FIXME: insert proper C++ library support
13786             ld_shlibs_CXX=no
13787             ;;
13788           ghcx*)
13789             # Green Hills C++ Compiler
13790             # FIXME: insert proper C++ library support
13791             ld_shlibs_CXX=no
13792             ;;
13793           *)
13794             # FIXME: insert proper C++ library support
13795             ld_shlibs_CXX=no
13796             ;;
13797         esac
13798         ;;
13799
13800       freebsd[12]*)
13801         # C++ shared libraries reported to be fairly broken before
13802         # switch to ELF
13803         ld_shlibs_CXX=no
13804         ;;
13805
13806       freebsd-elf*)
13807         archive_cmds_need_lc_CXX=no
13808         ;;
13809
13810       freebsd* | dragonfly*)
13811         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13812         # conventions
13813         ld_shlibs_CXX=yes
13814         ;;
13815
13816       gnu*)
13817         ;;
13818
13819       hpux9*)
13820         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13821         hardcode_libdir_separator_CXX=:
13822         export_dynamic_flag_spec_CXX='${wl}-E'
13823         hardcode_direct_CXX=yes
13824         hardcode_minus_L_CXX=yes # Not in the search PATH,
13825                                              # but as the default
13826                                              # location of the library.
13827
13828         case $cc_basename in
13829           CC*)
13830             # FIXME: insert proper C++ library support
13831             ld_shlibs_CXX=no
13832             ;;
13833           aCC*)
13834             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'
13835             # Commands to make compiler produce verbose output that lists
13836             # what "hidden" libraries, object files and flags are used when
13837             # linking a shared library.
13838             #
13839             # There doesn't appear to be a way to prevent this compiler from
13840             # explicitly linking system object files so we need to strip them
13841             # from the output so that they don't get included in the library
13842             # dependencies.
13843             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'
13844             ;;
13845           *)
13846             if test "$GXX" = yes; then
13847               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'
13848             else
13849               # FIXME: insert proper C++ library support
13850               ld_shlibs_CXX=no
13851             fi
13852             ;;
13853         esac
13854         ;;
13855
13856       hpux10*|hpux11*)
13857         if test $with_gnu_ld = no; then
13858           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13859           hardcode_libdir_separator_CXX=:
13860
13861           case $host_cpu in
13862             hppa*64*|ia64*)
13863               ;;
13864             *)
13865               export_dynamic_flag_spec_CXX='${wl}-E'
13866               ;;
13867           esac
13868         fi
13869         case $host_cpu in
13870           hppa*64*|ia64*)
13871             hardcode_direct_CXX=no
13872             hardcode_shlibpath_var_CXX=no
13873             ;;
13874           *)
13875             hardcode_direct_CXX=yes
13876             hardcode_direct_absolute_CXX=yes
13877             hardcode_minus_L_CXX=yes # Not in the search PATH,
13878                                                  # but as the default
13879                                                  # location of the library.
13880             ;;
13881         esac
13882
13883         case $cc_basename in
13884           CC*)
13885             # FIXME: insert proper C++ library support
13886             ld_shlibs_CXX=no
13887             ;;
13888           aCC*)
13889             case $host_cpu in
13890               hppa*64*)
13891                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13892                 ;;
13893               ia64*)
13894                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13895                 ;;
13896               *)
13897                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13898                 ;;
13899             esac
13900             # Commands to make compiler produce verbose output that lists
13901             # what "hidden" libraries, object files and flags are used when
13902             # linking a shared library.
13903             #
13904             # There doesn't appear to be a way to prevent this compiler from
13905             # explicitly linking system object files so we need to strip them
13906             # from the output so that they don't get included in the library
13907             # dependencies.
13908             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'
13909             ;;
13910           *)
13911             if test "$GXX" = yes; then
13912               if test $with_gnu_ld = no; then
13913                 case $host_cpu in
13914                   hppa*64*)
13915                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13916                     ;;
13917                   ia64*)
13918                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13919                     ;;
13920                   *)
13921                     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'
13922                     ;;
13923                 esac
13924               fi
13925             else
13926               # FIXME: insert proper C++ library support
13927               ld_shlibs_CXX=no
13928             fi
13929             ;;
13930         esac
13931         ;;
13932
13933       interix[3-9]*)
13934         hardcode_direct_CXX=no
13935         hardcode_shlibpath_var_CXX=no
13936         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13937         export_dynamic_flag_spec_CXX='${wl}-E'
13938         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13939         # Instead, shared libraries are loaded at an image base (0x10000000 by
13940         # default) and relocated if they conflict, which is a slow very memory
13941         # consuming and fragmenting process.  To avoid this, we pick a random,
13942         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13943         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13944         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'
13945         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'
13946         ;;
13947       irix5* | irix6*)
13948         case $cc_basename in
13949           CC*)
13950             # SGI C++
13951             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'
13952
13953             # Archives containing C++ object files must be created using
13954             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13955             # necessary to make sure instantiated templates are included
13956             # in the archive.
13957             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13958             ;;
13959           *)
13960             if test "$GXX" = yes; then
13961               if test "$with_gnu_ld" = no; then
13962                 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'
13963               else
13964                 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'
13965               fi
13966             fi
13967             link_all_deplibs_CXX=yes
13968             ;;
13969         esac
13970         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13971         hardcode_libdir_separator_CXX=:
13972         inherit_rpath_CXX=yes
13973         ;;
13974
13975       linux* | k*bsd*-gnu)
13976         case $cc_basename in
13977           KCC*)
13978             # Kuck and Associates, Inc. (KAI) C++ Compiler
13979
13980             # KCC will only create a shared library if the output file
13981             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13982             # to its proper name (with version) after linking.
13983             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'
13984             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'
13985             # Commands to make compiler produce verbose output that lists
13986             # what "hidden" libraries, object files and flags are used when
13987             # linking a shared library.
13988             #
13989             # There doesn't appear to be a way to prevent this compiler from
13990             # explicitly linking system object files so we need to strip them
13991             # from the output so that they don't get included in the library
13992             # dependencies.
13993             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'
13994
13995             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13996             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13997
13998             # Archives containing C++ object files must be created using
13999             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14000             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14001             ;;
14002           icpc* | ecpc* )
14003             # Intel C++
14004             with_gnu_ld=yes
14005             # version 8.0 and above of icpc choke on multiply defined symbols
14006             # if we add $predep_objects and $postdep_objects, however 7.1 and
14007             # earlier do not add the objects themselves.
14008             case `$CC -V 2>&1` in
14009               *"Version 7."*)
14010                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011                 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'
14012                 ;;
14013               *)  # Version 8.0 or newer
14014                 tmp_idyn=
14015                 case $host_cpu in
14016                   ia64*) tmp_idyn=' -i_dynamic';;
14017                 esac
14018                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019                 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'
14020                 ;;
14021             esac
14022             archive_cmds_need_lc_CXX=no
14023             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14024             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14025             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14026             ;;
14027           pgCC* | pgcpp*)
14028             # Portland Group C++ compiler
14029             case `$CC -V` in
14030             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14031               prelink_cmds_CXX='tpldir=Template.dir~
14032                 rm -rf $tpldir~
14033                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14034                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14035               old_archive_cmds_CXX='tpldir=Template.dir~
14036                 rm -rf $tpldir~
14037                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14038                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14039                 $RANLIB $oldlib'
14040               archive_cmds_CXX='tpldir=Template.dir~
14041                 rm -rf $tpldir~
14042                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14043                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14044               archive_expsym_cmds_CXX='tpldir=Template.dir~
14045                 rm -rf $tpldir~
14046                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14047                 $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'
14048               ;;
14049             *) # Version 6 will use weak symbols
14050               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14051               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'
14052               ;;
14053             esac
14054
14055             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14056             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14057             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'
14058             ;;
14059           cxx*)
14060             # Compaq C++
14061             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14062             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'
14063
14064             runpath_var=LD_RUN_PATH
14065             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14066             hardcode_libdir_separator_CXX=:
14067
14068             # Commands to make compiler produce verbose output that lists
14069             # what "hidden" libraries, object files and flags are used when
14070             # linking a shared library.
14071             #
14072             # There doesn't appear to be a way to prevent this compiler from
14073             # explicitly linking system object files so we need to strip them
14074             # from the output so that they don't get included in the library
14075             # dependencies.
14076             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'
14077             ;;
14078           xl*)
14079             # IBM XL 8.0 on PPC, with GNU ld
14080             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14081             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14082             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083             if test "x$supports_anon_versioning" = xyes; then
14084               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14085                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14086                 echo "local: *; };" >> $output_objdir/$libname.ver~
14087                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14088             fi
14089             ;;
14090           *)
14091             case `$CC -V 2>&1 | sed 5q` in
14092             *Sun\ C*)
14093               # Sun C++ 5.9
14094               no_undefined_flag_CXX=' -zdefs'
14095               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14096               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'
14097               hardcode_libdir_flag_spec_CXX='-R$libdir'
14098               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'
14099               compiler_needs_object_CXX=yes
14100
14101               # Not sure whether something based on
14102               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14103               # would be better.
14104               output_verbose_link_cmd='echo'
14105
14106               # Archives containing C++ object files must be created using
14107               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14108               # necessary to make sure instantiated templates are included
14109               # in the archive.
14110               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14111               ;;
14112             esac
14113             ;;
14114         esac
14115         ;;
14116
14117       lynxos*)
14118         # FIXME: insert proper C++ library support
14119         ld_shlibs_CXX=no
14120         ;;
14121
14122       m88k*)
14123         # FIXME: insert proper C++ library support
14124         ld_shlibs_CXX=no
14125         ;;
14126
14127       mvs*)
14128         case $cc_basename in
14129           cxx*)
14130             # FIXME: insert proper C++ library support
14131             ld_shlibs_CXX=no
14132             ;;
14133           *)
14134             # FIXME: insert proper C++ library support
14135             ld_shlibs_CXX=no
14136             ;;
14137         esac
14138         ;;
14139
14140       netbsd*)
14141         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14142           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14143           wlarc=
14144           hardcode_libdir_flag_spec_CXX='-R$libdir'
14145           hardcode_direct_CXX=yes
14146           hardcode_shlibpath_var_CXX=no
14147         fi
14148         # Workaround some broken pre-1.5 toolchains
14149         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14150         ;;
14151
14152       *nto* | *qnx*)
14153         ld_shlibs_CXX=yes
14154         ;;
14155
14156       openbsd2*)
14157         # C++ shared libraries are fairly broken
14158         ld_shlibs_CXX=no
14159         ;;
14160
14161       openbsd*)
14162         if test -f /usr/libexec/ld.so; then
14163           hardcode_direct_CXX=yes
14164           hardcode_shlibpath_var_CXX=no
14165           hardcode_direct_absolute_CXX=yes
14166           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14167           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14168           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14170             export_dynamic_flag_spec_CXX='${wl}-E'
14171             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14172           fi
14173           output_verbose_link_cmd=echo
14174         else
14175           ld_shlibs_CXX=no
14176         fi
14177         ;;
14178
14179       osf3* | osf4* | osf5*)
14180         case $cc_basename in
14181           KCC*)
14182             # Kuck and Associates, Inc. (KAI) C++ Compiler
14183
14184             # KCC will only create a shared library if the output file
14185             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14186             # to its proper name (with version) after linking.
14187             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'
14188
14189             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14190             hardcode_libdir_separator_CXX=:
14191
14192             # Archives containing C++ object files must be created using
14193             # the KAI C++ compiler.
14194             case $host in
14195               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14196               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14197             esac
14198             ;;
14199           RCC*)
14200             # Rational C++ 2.4.1
14201             # FIXME: insert proper C++ library support
14202             ld_shlibs_CXX=no
14203             ;;
14204           cxx*)
14205             case $host in
14206               osf3*)
14207                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14208                 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'
14209                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14210                 ;;
14211               *)
14212                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14213                 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'
14214                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14215                   echo "-hidden">> $lib.exp~
14216                   $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~
14217                   $RM $lib.exp'
14218                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14219                 ;;
14220             esac
14221
14222             hardcode_libdir_separator_CXX=:
14223
14224             # Commands to make compiler produce verbose output that lists
14225             # what "hidden" libraries, object files and flags are used when
14226             # linking a shared library.
14227             #
14228             # There doesn't appear to be a way to prevent this compiler from
14229             # explicitly linking system object files so we need to strip them
14230             # from the output so that they don't get included in the library
14231             # dependencies.
14232             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'
14233             ;;
14234           *)
14235             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14236               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14237               case $host in
14238                 osf3*)
14239                   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'
14240                   ;;
14241                 *)
14242                   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'
14243                   ;;
14244               esac
14245
14246               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14247               hardcode_libdir_separator_CXX=:
14248
14249               # Commands to make compiler produce verbose output that lists
14250               # what "hidden" libraries, object files and flags are used when
14251               # linking a shared library.
14252               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14253
14254             else
14255               # FIXME: insert proper C++ library support
14256               ld_shlibs_CXX=no
14257             fi
14258             ;;
14259         esac
14260         ;;
14261
14262       psos*)
14263         # FIXME: insert proper C++ library support
14264         ld_shlibs_CXX=no
14265         ;;
14266
14267       sunos4*)
14268         case $cc_basename in
14269           CC*)
14270             # Sun C++ 4.x
14271             # FIXME: insert proper C++ library support
14272             ld_shlibs_CXX=no
14273             ;;
14274           lcc*)
14275             # Lucid
14276             # FIXME: insert proper C++ library support
14277             ld_shlibs_CXX=no
14278             ;;
14279           *)
14280             # FIXME: insert proper C++ library support
14281             ld_shlibs_CXX=no
14282             ;;
14283         esac
14284         ;;
14285
14286       solaris*)
14287         case $cc_basename in
14288           CC*)
14289             # Sun C++ 4.2, 5.x and Centerline C++
14290             archive_cmds_need_lc_CXX=yes
14291             no_undefined_flag_CXX=' -zdefs'
14292             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14293             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14294               $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'
14295
14296             hardcode_libdir_flag_spec_CXX='-R$libdir'
14297             hardcode_shlibpath_var_CXX=no
14298             case $host_os in
14299               solaris2.[0-5] | solaris2.[0-5].*) ;;
14300               *)
14301                 # The compiler driver will combine and reorder linker options,
14302                 # but understands `-z linker_flag'.
14303                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14304                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14305                 ;;
14306             esac
14307             link_all_deplibs_CXX=yes
14308
14309             output_verbose_link_cmd='echo'
14310
14311             # Archives containing C++ object files must be created using
14312             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14313             # necessary to make sure instantiated templates are included
14314             # in the archive.
14315             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14316             ;;
14317           gcx*)
14318             # Green Hills C++ Compiler
14319             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14320
14321             # The C++ compiler must be used to create the archive.
14322             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14323             ;;
14324           *)
14325             # GNU C++ compiler with Solaris linker
14326             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14327               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14328               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14329                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14330                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14331                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14332
14333                 # Commands to make compiler produce verbose output that lists
14334                 # what "hidden" libraries, object files and flags are used when
14335                 # linking a shared library.
14336                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14337               else
14338                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14339                 # platform.
14340                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14341                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14342                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14343
14344                 # Commands to make compiler produce verbose output that lists
14345                 # what "hidden" libraries, object files and flags are used when
14346                 # linking a shared library.
14347                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14348               fi
14349
14350               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14351               case $host_os in
14352                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14353                 *)
14354                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14355                   ;;
14356               esac
14357             fi
14358             ;;
14359         esac
14360         ;;
14361
14362     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14363       no_undefined_flag_CXX='${wl}-z,text'
14364       archive_cmds_need_lc_CXX=no
14365       hardcode_shlibpath_var_CXX=no
14366       runpath_var='LD_RUN_PATH'
14367
14368       case $cc_basename in
14369         CC*)
14370           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14371           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14372           ;;
14373         *)
14374           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14375           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14376           ;;
14377       esac
14378       ;;
14379
14380       sysv5* | sco3.2v5* | sco5v6*)
14381         # Note: We can NOT use -z defs as we might desire, because we do not
14382         # link with -lc, and that would cause any symbols used from libc to
14383         # always be unresolved, which means just about no library would
14384         # ever link correctly.  If we're not using GNU ld we use -z text
14385         # though, which does catch some bad symbols but isn't as heavy-handed
14386         # as -z defs.
14387         no_undefined_flag_CXX='${wl}-z,text'
14388         allow_undefined_flag_CXX='${wl}-z,nodefs'
14389         archive_cmds_need_lc_CXX=no
14390         hardcode_shlibpath_var_CXX=no
14391         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14392         hardcode_libdir_separator_CXX=':'
14393         link_all_deplibs_CXX=yes
14394         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14395         runpath_var='LD_RUN_PATH'
14396
14397         case $cc_basename in
14398           CC*)
14399             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14400             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14401             ;;
14402           *)
14403             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14404             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14405             ;;
14406         esac
14407       ;;
14408
14409       tandem*)
14410         case $cc_basename in
14411           NCC*)
14412             # NonStop-UX NCC 3.20
14413             # FIXME: insert proper C++ library support
14414             ld_shlibs_CXX=no
14415             ;;
14416           *)
14417             # FIXME: insert proper C++ library support
14418             ld_shlibs_CXX=no
14419             ;;
14420         esac
14421         ;;
14422
14423       vxworks*)
14424         # FIXME: insert proper C++ library support
14425         ld_shlibs_CXX=no
14426         ;;
14427
14428       *)
14429         # FIXME: insert proper C++ library support
14430         ld_shlibs_CXX=no
14431         ;;
14432     esac
14433
14434     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14435 $as_echo "$ld_shlibs_CXX" >&6; }
14436     test "$ld_shlibs_CXX" = no && can_build_shared=no
14437
14438     GCC_CXX="$GXX"
14439     LD_CXX="$LD"
14440
14441     ## CAVEAT EMPTOR:
14442     ## There is no encapsulation within the following macros, do not change
14443     ## the running order or otherwise move them around unless you know exactly
14444     ## what you are doing...
14445     # Dependencies to place before and after the object being linked:
14446 predep_objects_CXX=
14447 postdep_objects_CXX=
14448 predeps_CXX=
14449 postdeps_CXX=
14450 compiler_lib_search_path_CXX=
14451
14452 cat > conftest.$ac_ext <<_LT_EOF
14453 class Foo
14454 {
14455 public:
14456   Foo (void) { a = 0; }
14457 private:
14458   int a;
14459 };
14460 _LT_EOF
14461
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463   (eval $ac_compile) 2>&5
14464   ac_status=$?
14465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; then
14467   # Parse the compiler output and extract the necessary
14468   # objects, libraries and library flags.
14469
14470   # Sentinel used to keep track of whether or not we are before
14471   # the conftest object file.
14472   pre_test_object_deps_done=no
14473
14474   for p in `eval "$output_verbose_link_cmd"`; do
14475     case $p in
14476
14477     -L* | -R* | -l*)
14478        # Some compilers place space between "-{L,R}" and the path.
14479        # Remove the space.
14480        if test $p = "-L" ||
14481           test $p = "-R"; then
14482          prev=$p
14483          continue
14484        else
14485          prev=
14486        fi
14487
14488        if test "$pre_test_object_deps_done" = no; then
14489          case $p in
14490          -L* | -R*)
14491            # Internal compiler library paths should come after those
14492            # provided the user.  The postdeps already come after the
14493            # user supplied libs so there is no need to process them.
14494            if test -z "$compiler_lib_search_path_CXX"; then
14495              compiler_lib_search_path_CXX="${prev}${p}"
14496            else
14497              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14498            fi
14499            ;;
14500          # The "-l" case would never come before the object being
14501          # linked, so don't bother handling this case.
14502          esac
14503        else
14504          if test -z "$postdeps_CXX"; then
14505            postdeps_CXX="${prev}${p}"
14506          else
14507            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14508          fi
14509        fi
14510        ;;
14511
14512     *.$objext)
14513        # This assumes that the test object file only shows up
14514        # once in the compiler output.
14515        if test "$p" = "conftest.$objext"; then
14516          pre_test_object_deps_done=yes
14517          continue
14518        fi
14519
14520        if test "$pre_test_object_deps_done" = no; then
14521          if test -z "$predep_objects_CXX"; then
14522            predep_objects_CXX="$p"
14523          else
14524            predep_objects_CXX="$predep_objects_CXX $p"
14525          fi
14526        else
14527          if test -z "$postdep_objects_CXX"; then
14528            postdep_objects_CXX="$p"
14529          else
14530            postdep_objects_CXX="$postdep_objects_CXX $p"
14531          fi
14532        fi
14533        ;;
14534
14535     *) ;; # Ignore the rest.
14536
14537     esac
14538   done
14539
14540   # Clean up.
14541   rm -f a.out a.exe
14542 else
14543   echo "libtool.m4: error: problem compiling CXX test program"
14544 fi
14545
14546 $RM -f confest.$objext
14547
14548 # PORTME: override above test on systems where it is broken
14549 case $host_os in
14550 interix[3-9]*)
14551   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14552   # hack all around it, let's just trust "g++" to DTRT.
14553   predep_objects_CXX=
14554   postdep_objects_CXX=
14555   postdeps_CXX=
14556   ;;
14557
14558 linux*)
14559   case `$CC -V 2>&1 | sed 5q` in
14560   *Sun\ C*)
14561     # Sun C++ 5.9
14562
14563     # The more standards-conforming stlport4 library is
14564     # incompatible with the Cstd library. Avoid specifying
14565     # it if it's in CXXFLAGS. Ignore libCrun as
14566     # -library=stlport4 depends on it.
14567     case " $CXX $CXXFLAGS " in
14568     *" -library=stlport4 "*)
14569       solaris_use_stlport4=yes
14570       ;;
14571     esac
14572
14573     if test "$solaris_use_stlport4" != yes; then
14574       postdeps_CXX='-library=Cstd -library=Crun'
14575     fi
14576     ;;
14577   esac
14578   ;;
14579
14580 solaris*)
14581   case $cc_basename in
14582   CC*)
14583     # The more standards-conforming stlport4 library is
14584     # incompatible with the Cstd library. Avoid specifying
14585     # it if it's in CXXFLAGS. Ignore libCrun as
14586     # -library=stlport4 depends on it.
14587     case " $CXX $CXXFLAGS " in
14588     *" -library=stlport4 "*)
14589       solaris_use_stlport4=yes
14590       ;;
14591     esac
14592
14593     # Adding this requires a known-good setup of shared libraries for
14594     # Sun compiler versions before 5.6, else PIC objects from an old
14595     # archive will be linked into the output, leading to subtle bugs.
14596     if test "$solaris_use_stlport4" != yes; then
14597       postdeps_CXX='-library=Cstd -library=Crun'
14598     fi
14599     ;;
14600   esac
14601   ;;
14602 esac
14603
14604
14605 case " $postdeps_CXX " in
14606 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14607 esac
14608  compiler_lib_search_dirs_CXX=
14609 if test -n "${compiler_lib_search_path_CXX}"; then
14610  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14611 fi
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643     lt_prog_compiler_wl_CXX=
14644 lt_prog_compiler_pic_CXX=
14645 lt_prog_compiler_static_CXX=
14646
14647 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14648 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14649
14650   # C++ specific cases for pic, static, wl, etc.
14651   if test "$GXX" = yes; then
14652     lt_prog_compiler_wl_CXX='-Wl,'
14653     lt_prog_compiler_static_CXX='-static'
14654
14655     case $host_os in
14656     aix*)
14657       # All AIX code is PIC.
14658       if test "$host_cpu" = ia64; then
14659         # AIX 5 now supports IA64 processor
14660         lt_prog_compiler_static_CXX='-Bstatic'
14661       fi
14662       ;;
14663
14664     amigaos*)
14665       case $host_cpu in
14666       powerpc)
14667             # see comment about AmigaOS4 .so support
14668             lt_prog_compiler_pic_CXX='-fPIC'
14669         ;;
14670       m68k)
14671             # FIXME: we need at least 68020 code to build shared libraries, but
14672             # adding the `-m68020' flag to GCC prevents building anything better,
14673             # like `-m68040'.
14674             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14675         ;;
14676       esac
14677       ;;
14678
14679     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14680       # PIC is the default for these OSes.
14681       ;;
14682     mingw* | cygwin* | os2* | pw32* | cegcc*)
14683       # This hack is so that the source file can tell whether it is being
14684       # built for inclusion in a dll (and should export symbols for example).
14685       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14686       # (--disable-auto-import) libraries
14687       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14688       ;;
14689     darwin* | rhapsody*)
14690       # PIC is the default on this platform
14691       # Common symbols not allowed in MH_DYLIB files
14692       lt_prog_compiler_pic_CXX='-fno-common'
14693       ;;
14694     *djgpp*)
14695       # DJGPP does not support shared libraries at all
14696       lt_prog_compiler_pic_CXX=
14697       ;;
14698     interix[3-9]*)
14699       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14700       # Instead, we relocate shared libraries at runtime.
14701       ;;
14702     sysv4*MP*)
14703       if test -d /usr/nec; then
14704         lt_prog_compiler_pic_CXX=-Kconform_pic
14705       fi
14706       ;;
14707     hpux*)
14708       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14709       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14710       # sets the default TLS model and affects inlining.
14711       case $host_cpu in
14712       hppa*64*)
14713         ;;
14714       *)
14715         lt_prog_compiler_pic_CXX='-fPIC'
14716         ;;
14717       esac
14718       ;;
14719     *qnx* | *nto*)
14720       # QNX uses GNU C++, but need to define -shared option too, otherwise
14721       # it will coredump.
14722       lt_prog_compiler_pic_CXX='-fPIC -shared'
14723       ;;
14724     *)
14725       lt_prog_compiler_pic_CXX='-fPIC'
14726       ;;
14727     esac
14728   else
14729     case $host_os in
14730       aix[4-9]*)
14731         # All AIX code is PIC.
14732         if test "$host_cpu" = ia64; then
14733           # AIX 5 now supports IA64 processor
14734           lt_prog_compiler_static_CXX='-Bstatic'
14735         else
14736           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14737         fi
14738         ;;
14739       chorus*)
14740         case $cc_basename in
14741         cxch68*)
14742           # Green Hills C++ Compiler
14743           # _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"
14744           ;;
14745         esac
14746         ;;
14747       dgux*)
14748         case $cc_basename in
14749           ec++*)
14750             lt_prog_compiler_pic_CXX='-KPIC'
14751             ;;
14752           ghcx*)
14753             # Green Hills C++ Compiler
14754             lt_prog_compiler_pic_CXX='-pic'
14755             ;;
14756           *)
14757             ;;
14758         esac
14759         ;;
14760       freebsd* | dragonfly*)
14761         # FreeBSD uses GNU C++
14762         ;;
14763       hpux9* | hpux10* | hpux11*)
14764         case $cc_basename in
14765           CC*)
14766             lt_prog_compiler_wl_CXX='-Wl,'
14767             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14768             if test "$host_cpu" != ia64; then
14769               lt_prog_compiler_pic_CXX='+Z'
14770             fi
14771             ;;
14772           aCC*)
14773             lt_prog_compiler_wl_CXX='-Wl,'
14774             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14775             case $host_cpu in
14776             hppa*64*|ia64*)
14777               # +Z the default
14778               ;;
14779             *)
14780               lt_prog_compiler_pic_CXX='+Z'
14781               ;;
14782             esac
14783             ;;
14784           *)
14785             ;;
14786         esac
14787         ;;
14788       interix*)
14789         # This is c89, which is MS Visual C++ (no shared libs)
14790         # Anyone wants to do a port?
14791         ;;
14792       irix5* | irix6* | nonstopux*)
14793         case $cc_basename in
14794           CC*)
14795             lt_prog_compiler_wl_CXX='-Wl,'
14796             lt_prog_compiler_static_CXX='-non_shared'
14797             # CC pic flag -KPIC is the default.
14798             ;;
14799           *)
14800             ;;
14801         esac
14802         ;;
14803       linux* | k*bsd*-gnu)
14804         case $cc_basename in
14805           KCC*)
14806             # KAI C++ Compiler
14807             lt_prog_compiler_wl_CXX='--backend -Wl,'
14808             lt_prog_compiler_pic_CXX='-fPIC'
14809             ;;
14810           ecpc* )
14811             # old Intel C++ for x86_64 which still supported -KPIC.
14812             lt_prog_compiler_wl_CXX='-Wl,'
14813             lt_prog_compiler_pic_CXX='-KPIC'
14814             lt_prog_compiler_static_CXX='-static'
14815             ;;
14816           icpc* )
14817             # Intel C++, used to be incompatible with GCC.
14818             # ICC 10 doesn't accept -KPIC any more.
14819             lt_prog_compiler_wl_CXX='-Wl,'
14820             lt_prog_compiler_pic_CXX='-fPIC'
14821             lt_prog_compiler_static_CXX='-static'
14822             ;;
14823           pgCC* | pgcpp*)
14824             # Portland Group C++ compiler
14825             lt_prog_compiler_wl_CXX='-Wl,'
14826             lt_prog_compiler_pic_CXX='-fpic'
14827             lt_prog_compiler_static_CXX='-Bstatic'
14828             ;;
14829           cxx*)
14830             # Compaq C++
14831             # Make sure the PIC flag is empty.  It appears that all Alpha
14832             # Linux and Compaq Tru64 Unix objects are PIC.
14833             lt_prog_compiler_pic_CXX=
14834             lt_prog_compiler_static_CXX='-non_shared'
14835             ;;
14836           xlc* | xlC*)
14837             # IBM XL 8.0 on PPC
14838             lt_prog_compiler_wl_CXX='-Wl,'
14839             lt_prog_compiler_pic_CXX='-qpic'
14840             lt_prog_compiler_static_CXX='-qstaticlink'
14841             ;;
14842           *)
14843             case `$CC -V 2>&1 | sed 5q` in
14844             *Sun\ C*)
14845               # Sun C++ 5.9
14846               lt_prog_compiler_pic_CXX='-KPIC'
14847               lt_prog_compiler_static_CXX='-Bstatic'
14848               lt_prog_compiler_wl_CXX='-Qoption ld '
14849               ;;
14850             esac
14851             ;;
14852         esac
14853         ;;
14854       lynxos*)
14855         ;;
14856       m88k*)
14857         ;;
14858       mvs*)
14859         case $cc_basename in
14860           cxx*)
14861             lt_prog_compiler_pic_CXX='-W c,exportall'
14862             ;;
14863           *)
14864             ;;
14865         esac
14866         ;;
14867       netbsd*)
14868         ;;
14869       *qnx* | *nto*)
14870         # QNX uses GNU C++, but need to define -shared option too, otherwise
14871         # it will coredump.
14872         lt_prog_compiler_pic_CXX='-fPIC -shared'
14873         ;;
14874       osf3* | osf4* | osf5*)
14875         case $cc_basename in
14876           KCC*)
14877             lt_prog_compiler_wl_CXX='--backend -Wl,'
14878             ;;
14879           RCC*)
14880             # Rational C++ 2.4.1
14881             lt_prog_compiler_pic_CXX='-pic'
14882             ;;
14883           cxx*)
14884             # Digital/Compaq C++
14885             lt_prog_compiler_wl_CXX='-Wl,'
14886             # Make sure the PIC flag is empty.  It appears that all Alpha
14887             # Linux and Compaq Tru64 Unix objects are PIC.
14888             lt_prog_compiler_pic_CXX=
14889             lt_prog_compiler_static_CXX='-non_shared'
14890             ;;
14891           *)
14892             ;;
14893         esac
14894         ;;
14895       psos*)
14896         ;;
14897       solaris*)
14898         case $cc_basename in
14899           CC*)
14900             # Sun C++ 4.2, 5.x and Centerline C++
14901             lt_prog_compiler_pic_CXX='-KPIC'
14902             lt_prog_compiler_static_CXX='-Bstatic'
14903             lt_prog_compiler_wl_CXX='-Qoption ld '
14904             ;;
14905           gcx*)
14906             # Green Hills C++ Compiler
14907             lt_prog_compiler_pic_CXX='-PIC'
14908             ;;
14909           *)
14910             ;;
14911         esac
14912         ;;
14913       sunos4*)
14914         case $cc_basename in
14915           CC*)
14916             # Sun C++ 4.x
14917             lt_prog_compiler_pic_CXX='-pic'
14918             lt_prog_compiler_static_CXX='-Bstatic'
14919             ;;
14920           lcc*)
14921             # Lucid
14922             lt_prog_compiler_pic_CXX='-pic'
14923             ;;
14924           *)
14925             ;;
14926         esac
14927         ;;
14928       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14929         case $cc_basename in
14930           CC*)
14931             lt_prog_compiler_wl_CXX='-Wl,'
14932             lt_prog_compiler_pic_CXX='-KPIC'
14933             lt_prog_compiler_static_CXX='-Bstatic'
14934             ;;
14935         esac
14936         ;;
14937       tandem*)
14938         case $cc_basename in
14939           NCC*)
14940             # NonStop-UX NCC 3.20
14941             lt_prog_compiler_pic_CXX='-KPIC'
14942             ;;
14943           *)
14944             ;;
14945         esac
14946         ;;
14947       vxworks*)
14948         ;;
14949       *)
14950         lt_prog_compiler_can_build_shared_CXX=no
14951         ;;
14952     esac
14953   fi
14954
14955 case $host_os in
14956   # For platforms which do not support PIC, -DPIC is meaningless:
14957   *djgpp*)
14958     lt_prog_compiler_pic_CXX=
14959     ;;
14960   *)
14961     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14962     ;;
14963 esac
14964 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14965 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14966
14967
14968
14969 #
14970 # Check to make sure the PIC flag actually works.
14971 #
14972 if test -n "$lt_prog_compiler_pic_CXX"; then
14973   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14974 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14975 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14976   $as_echo_n "(cached) " >&6
14977 else
14978   lt_cv_prog_compiler_pic_works_CXX=no
14979    ac_outfile=conftest.$ac_objext
14980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14981    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14982    # Insert the option either (1) after the last *FLAGS variable, or
14983    # (2) before a word containing "conftest.", or (3) at the end.
14984    # Note that $ac_compile itself does not contain backslashes and begins
14985    # with a dollar sign (not a hyphen), so the echo should work correctly.
14986    # The option is referenced via a variable to avoid confusing sed.
14987    lt_compile=`echo "$ac_compile" | $SED \
14988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14990    -e 's:$: $lt_compiler_flag:'`
14991    (eval echo "\"\$as_me:14991: $lt_compile\"" >&5)
14992    (eval "$lt_compile" 2>conftest.err)
14993    ac_status=$?
14994    cat conftest.err >&5
14995    echo "$as_me:14995: \$? = $ac_status" >&5
14996    if (exit $ac_status) && test -s "$ac_outfile"; then
14997      # The compiler can only warn and ignore the option if not recognized
14998      # So say no if there are warnings other than the usual output.
14999      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15000      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15001      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15002        lt_cv_prog_compiler_pic_works_CXX=yes
15003      fi
15004    fi
15005    $RM conftest*
15006
15007 fi
15008 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15009 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15010
15011 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15012     case $lt_prog_compiler_pic_CXX in
15013      "" | " "*) ;;
15014      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15015      esac
15016 else
15017     lt_prog_compiler_pic_CXX=
15018      lt_prog_compiler_can_build_shared_CXX=no
15019 fi
15020
15021 fi
15022
15023
15024
15025 #
15026 # Check to make sure the static flag actually works.
15027 #
15028 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15029 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15030 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15031 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15032   $as_echo_n "(cached) " >&6
15033 else
15034   lt_cv_prog_compiler_static_works_CXX=no
15035    save_LDFLAGS="$LDFLAGS"
15036    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15037    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15038    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15039      # The linker can only warn and ignore the option if not recognized
15040      # So say no if there are warnings
15041      if test -s conftest.err; then
15042        # Append any errors to the config.log.
15043        cat conftest.err 1>&5
15044        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15045        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15046        if diff conftest.exp conftest.er2 >/dev/null; then
15047          lt_cv_prog_compiler_static_works_CXX=yes
15048        fi
15049      else
15050        lt_cv_prog_compiler_static_works_CXX=yes
15051      fi
15052    fi
15053    $RM -r conftest*
15054    LDFLAGS="$save_LDFLAGS"
15055
15056 fi
15057 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15058 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15059
15060 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15061     :
15062 else
15063     lt_prog_compiler_static_CXX=
15064 fi
15065
15066
15067
15068
15069     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15071 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15072   $as_echo_n "(cached) " >&6
15073 else
15074   lt_cv_prog_compiler_c_o_CXX=no
15075    $RM -r conftest 2>/dev/null
15076    mkdir conftest
15077    cd conftest
15078    mkdir out
15079    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15080
15081    lt_compiler_flag="-o out/conftest2.$ac_objext"
15082    # Insert the option either (1) after the last *FLAGS variable, or
15083    # (2) before a word containing "conftest.", or (3) at the end.
15084    # Note that $ac_compile itself does not contain backslashes and begins
15085    # with a dollar sign (not a hyphen), so the echo should work correctly.
15086    lt_compile=`echo "$ac_compile" | $SED \
15087    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15088    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15089    -e 's:$: $lt_compiler_flag:'`
15090    (eval echo "\"\$as_me:15090: $lt_compile\"" >&5)
15091    (eval "$lt_compile" 2>out/conftest.err)
15092    ac_status=$?
15093    cat out/conftest.err >&5
15094    echo "$as_me:15094: \$? = $ac_status" >&5
15095    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15096    then
15097      # The compiler can only warn and ignore the option if not recognized
15098      # So say no if there are warnings
15099      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15100      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15101      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15102        lt_cv_prog_compiler_c_o_CXX=yes
15103      fi
15104    fi
15105    chmod u+w . 2>&5
15106    $RM conftest*
15107    # SGI C++ compiler will create directory out/ii_files/ for
15108    # template instantiation
15109    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15110    $RM out/* && rmdir out
15111    cd ..
15112    $RM -r conftest
15113    $RM conftest*
15114
15115 fi
15116 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15117 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15118
15119
15120
15121     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15123 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15124   $as_echo_n "(cached) " >&6
15125 else
15126   lt_cv_prog_compiler_c_o_CXX=no
15127    $RM -r conftest 2>/dev/null
15128    mkdir conftest
15129    cd conftest
15130    mkdir out
15131    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15132
15133    lt_compiler_flag="-o out/conftest2.$ac_objext"
15134    # Insert the option either (1) after the last *FLAGS variable, or
15135    # (2) before a word containing "conftest.", or (3) at the end.
15136    # Note that $ac_compile itself does not contain backslashes and begins
15137    # with a dollar sign (not a hyphen), so the echo should work correctly.
15138    lt_compile=`echo "$ac_compile" | $SED \
15139    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15140    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15141    -e 's:$: $lt_compiler_flag:'`
15142    (eval echo "\"\$as_me:15142: $lt_compile\"" >&5)
15143    (eval "$lt_compile" 2>out/conftest.err)
15144    ac_status=$?
15145    cat out/conftest.err >&5
15146    echo "$as_me:15146: \$? = $ac_status" >&5
15147    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15148    then
15149      # The compiler can only warn and ignore the option if not recognized
15150      # So say no if there are warnings
15151      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15152      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15153      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15154        lt_cv_prog_compiler_c_o_CXX=yes
15155      fi
15156    fi
15157    chmod u+w . 2>&5
15158    $RM conftest*
15159    # SGI C++ compiler will create directory out/ii_files/ for
15160    # template instantiation
15161    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15162    $RM out/* && rmdir out
15163    cd ..
15164    $RM -r conftest
15165    $RM conftest*
15166
15167 fi
15168 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15169 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15170
15171
15172
15173
15174 hard_links="nottested"
15175 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15176   # do not overwrite the value of need_locks provided by the user
15177   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15178 $as_echo_n "checking if we can lock with hard links... " >&6; }
15179   hard_links=yes
15180   $RM conftest*
15181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15182   touch conftest.a
15183   ln conftest.a conftest.b 2>&5 || hard_links=no
15184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15185   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15186 $as_echo "$hard_links" >&6; }
15187   if test "$hard_links" = no; then
15188     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15189 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15190     need_locks=warn
15191   fi
15192 else
15193   need_locks=no
15194 fi
15195
15196
15197
15198     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15199 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15200
15201   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15202   case $host_os in
15203   aix[4-9]*)
15204     # If we're using GNU nm, then we don't want the "-C" option.
15205     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15206     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15207       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'
15208     else
15209       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'
15210     fi
15211     ;;
15212   pw32*)
15213     export_symbols_cmds_CXX="$ltdll_cmds"
15214   ;;
15215   cygwin* | mingw* | cegcc*)
15216     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'
15217   ;;
15218   *)
15219     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15220   ;;
15221   esac
15222   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15223
15224 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15225 $as_echo "$ld_shlibs_CXX" >&6; }
15226 test "$ld_shlibs_CXX" = no && can_build_shared=no
15227
15228 with_gnu_ld_CXX=$with_gnu_ld
15229
15230
15231
15232
15233
15234
15235 #
15236 # Do we need to explicitly link libc?
15237 #
15238 case "x$archive_cmds_need_lc_CXX" in
15239 x|xyes)
15240   # Assume -lc should be added
15241   archive_cmds_need_lc_CXX=yes
15242
15243   if test "$enable_shared" = yes && test "$GCC" = yes; then
15244     case $archive_cmds_CXX in
15245     *'~'*)
15246       # FIXME: we may have to deal with multi-command sequences.
15247       ;;
15248     '$CC '*)
15249       # Test whether the compiler implicitly links with -lc since on some
15250       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15251       # to ld, don't add -lc before -lgcc.
15252       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15253 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15254       $RM conftest*
15255       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15256
15257       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258   (eval $ac_compile) 2>&5
15259   ac_status=$?
15260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } 2>conftest.err; then
15262         soname=conftest
15263         lib=conftest
15264         libobjs=conftest.$ac_objext
15265         deplibs=
15266         wl=$lt_prog_compiler_wl_CXX
15267         pic_flag=$lt_prog_compiler_pic_CXX
15268         compiler_flags=-v
15269         linker_flags=-v
15270         verstring=
15271         output_objdir=.
15272         libname=conftest
15273         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15274         allow_undefined_flag_CXX=
15275         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15276   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15277   ac_status=$?
15278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }
15280         then
15281           archive_cmds_need_lc_CXX=no
15282         else
15283           archive_cmds_need_lc_CXX=yes
15284         fi
15285         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15286       else
15287         cat conftest.err 1>&5
15288       fi
15289       $RM conftest*
15290       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15291 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15292       ;;
15293     esac
15294   fi
15295   ;;
15296 esac
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15362 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15363
15364 library_names_spec=
15365 libname_spec='lib$name'
15366 soname_spec=
15367 shrext_cmds=".so"
15368 postinstall_cmds=
15369 postuninstall_cmds=
15370 finish_cmds=
15371 finish_eval=
15372 shlibpath_var=
15373 shlibpath_overrides_runpath=unknown
15374 version_type=none
15375 dynamic_linker="$host_os ld.so"
15376 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15377 need_lib_prefix=unknown
15378 hardcode_into_libs=no
15379
15380 # when you set need_version to no, make sure it does not cause -set_version
15381 # flags to be left without arguments
15382 need_version=unknown
15383
15384 case $host_os in
15385 aix3*)
15386   version_type=linux
15387   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15388   shlibpath_var=LIBPATH
15389
15390   # AIX 3 has no versioning support, so we append a major version to the name.
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   ;;
15393
15394 aix[4-9]*)
15395   version_type=linux
15396   need_lib_prefix=no
15397   need_version=no
15398   hardcode_into_libs=yes
15399   if test "$host_cpu" = ia64; then
15400     # AIX 5 supports IA64
15401     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15402     shlibpath_var=LD_LIBRARY_PATH
15403   else
15404     # With GCC up to 2.95.x, collect2 would create an import file
15405     # for dependence libraries.  The import file would start with
15406     # the line `#! .'.  This would cause the generated library to
15407     # depend on `.', always an invalid library.  This was fixed in
15408     # development snapshots of GCC prior to 3.0.
15409     case $host_os in
15410       aix4 | aix4.[01] | aix4.[01].*)
15411       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15412            echo ' yes '
15413            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15414         :
15415       else
15416         can_build_shared=no
15417       fi
15418       ;;
15419     esac
15420     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15421     # soname into executable. Probably we can add versioning support to
15422     # collect2, so additional links can be useful in future.
15423     if test "$aix_use_runtimelinking" = yes; then
15424       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15425       # instead of lib<name>.a to let people know that these are not
15426       # typical AIX shared libraries.
15427       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428     else
15429       # We preserve .a as extension for shared libraries through AIX4.2
15430       # and later when we are not doing run time linking.
15431       library_names_spec='${libname}${release}.a $libname.a'
15432       soname_spec='${libname}${release}${shared_ext}$major'
15433     fi
15434     shlibpath_var=LIBPATH
15435   fi
15436   ;;
15437
15438 amigaos*)
15439   case $host_cpu in
15440   powerpc)
15441     # Since July 2007 AmigaOS4 officially supports .so libraries.
15442     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444     ;;
15445   m68k)
15446     library_names_spec='$libname.ixlibrary $libname.a'
15447     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15448     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'
15449     ;;
15450   esac
15451   ;;
15452
15453 beos*)
15454   library_names_spec='${libname}${shared_ext}'
15455   dynamic_linker="$host_os ld.so"
15456   shlibpath_var=LIBRARY_PATH
15457   ;;
15458
15459 bsdi[45]*)
15460   version_type=linux
15461   need_version=no
15462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463   soname_spec='${libname}${release}${shared_ext}$major'
15464   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15465   shlibpath_var=LD_LIBRARY_PATH
15466   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15467   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15468   # the default ld.so.conf also contains /usr/contrib/lib and
15469   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15470   # libtool to hard-code these into programs
15471   ;;
15472
15473 cygwin* | mingw* | pw32* | cegcc*)
15474   version_type=windows
15475   shrext_cmds=".dll"
15476   need_version=no
15477   need_lib_prefix=no
15478
15479   case $GCC,$host_os in
15480   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15481     library_names_spec='$libname.dll.a'
15482     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15483     postinstall_cmds='base_file=`basename \${file}`~
15484       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15485       dldir=$destdir/`dirname \$dlpath`~
15486       test -d \$dldir || mkdir -p \$dldir~
15487       $install_prog $dir/$dlname \$dldir/$dlname~
15488       chmod a+x \$dldir/$dlname~
15489       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15490         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15491       fi'
15492     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15493       dlpath=$dir/\$dldll~
15494        $RM \$dlpath'
15495     shlibpath_overrides_runpath=yes
15496
15497     case $host_os in
15498     cygwin*)
15499       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15500       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15501       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15502       ;;
15503     mingw* | cegcc*)
15504       # MinGW DLLs use traditional 'lib' prefix
15505       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15506       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15507       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15508         # It is most probably a Windows format PATH printed by
15509         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15510         # path with ; separators, and with drive letters. We can handle the
15511         # drive letters (cygwin fileutils understands them), so leave them,
15512         # especially as we might pass files found there to a mingw objdump,
15513         # which wouldn't understand a cygwinified path. Ahh.
15514         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15515       else
15516         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15517       fi
15518       ;;
15519     pw32*)
15520       # pw32 DLLs use 'pw' prefix rather than 'lib'
15521       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15522       ;;
15523     esac
15524     ;;
15525
15526   *)
15527     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15528     ;;
15529   esac
15530   dynamic_linker='Win32 ld.exe'
15531   # FIXME: first we should search . and the directory the executable is in
15532   shlibpath_var=PATH
15533   ;;
15534
15535 darwin* | rhapsody*)
15536   dynamic_linker="$host_os dyld"
15537   version_type=darwin
15538   need_lib_prefix=no
15539   need_version=no
15540   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15541   soname_spec='${libname}${release}${major}$shared_ext'
15542   shlibpath_overrides_runpath=yes
15543   shlibpath_var=DYLD_LIBRARY_PATH
15544   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15545
15546   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15547   ;;
15548
15549 dgux*)
15550   version_type=linux
15551   need_lib_prefix=no
15552   need_version=no
15553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15554   soname_spec='${libname}${release}${shared_ext}$major'
15555   shlibpath_var=LD_LIBRARY_PATH
15556   ;;
15557
15558 freebsd1*)
15559   dynamic_linker=no
15560   ;;
15561
15562 freebsd* | dragonfly*)
15563   # DragonFly does not have aout.  When/if they implement a new
15564   # versioning mechanism, adjust this.
15565   if test -x /usr/bin/objformat; then
15566     objformat=`/usr/bin/objformat`
15567   else
15568     case $host_os in
15569     freebsd[123]*) objformat=aout ;;
15570     *) objformat=elf ;;
15571     esac
15572   fi
15573   version_type=freebsd-$objformat
15574   case $version_type in
15575     freebsd-elf*)
15576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15577       need_version=no
15578       need_lib_prefix=no
15579       ;;
15580     freebsd-*)
15581       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15582       need_version=yes
15583       ;;
15584   esac
15585   shlibpath_var=LD_LIBRARY_PATH
15586   case $host_os in
15587   freebsd2*)
15588     shlibpath_overrides_runpath=yes
15589     ;;
15590   freebsd3.[01]* | freebsdelf3.[01]*)
15591     shlibpath_overrides_runpath=yes
15592     hardcode_into_libs=yes
15593     ;;
15594   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15595   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15596     shlibpath_overrides_runpath=no
15597     hardcode_into_libs=yes
15598     ;;
15599   *) # from 4.6 on, and DragonFly
15600     shlibpath_overrides_runpath=yes
15601     hardcode_into_libs=yes
15602     ;;
15603   esac
15604   ;;
15605
15606 gnu*)
15607   version_type=linux
15608   need_lib_prefix=no
15609   need_version=no
15610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15611   soname_spec='${libname}${release}${shared_ext}$major'
15612   shlibpath_var=LD_LIBRARY_PATH
15613   hardcode_into_libs=yes
15614   ;;
15615
15616 hpux9* | hpux10* | hpux11*)
15617   # Give a soname corresponding to the major version so that dld.sl refuses to
15618   # link against other versions.
15619   version_type=sunos
15620   need_lib_prefix=no
15621   need_version=no
15622   case $host_cpu in
15623   ia64*)
15624     shrext_cmds='.so'
15625     hardcode_into_libs=yes
15626     dynamic_linker="$host_os dld.so"
15627     shlibpath_var=LD_LIBRARY_PATH
15628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630     soname_spec='${libname}${release}${shared_ext}$major'
15631     if test "X$HPUX_IA64_MODE" = X32; then
15632       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15633     else
15634       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15635     fi
15636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15637     ;;
15638   hppa*64*)
15639     shrext_cmds='.sl'
15640     hardcode_into_libs=yes
15641     dynamic_linker="$host_os dld.sl"
15642     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15643     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645     soname_spec='${libname}${release}${shared_ext}$major'
15646     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15648     ;;
15649   *)
15650     shrext_cmds='.sl'
15651     dynamic_linker="$host_os dld.sl"
15652     shlibpath_var=SHLIB_PATH
15653     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655     soname_spec='${libname}${release}${shared_ext}$major'
15656     ;;
15657   esac
15658   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15659   postinstall_cmds='chmod 555 $lib'
15660   ;;
15661
15662 interix[3-9]*)
15663   version_type=linux
15664   need_lib_prefix=no
15665   need_version=no
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   shlibpath_overrides_runpath=no
15671   hardcode_into_libs=yes
15672   ;;
15673
15674 irix5* | irix6* | nonstopux*)
15675   case $host_os in
15676     nonstopux*) version_type=nonstopux ;;
15677     *)
15678         if test "$lt_cv_prog_gnu_ld" = yes; then
15679                 version_type=linux
15680         else
15681                 version_type=irix
15682         fi ;;
15683   esac
15684   need_lib_prefix=no
15685   need_version=no
15686   soname_spec='${libname}${release}${shared_ext}$major'
15687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15688   case $host_os in
15689   irix5* | nonstopux*)
15690     libsuff= shlibsuff=
15691     ;;
15692   *)
15693     case $LD in # libtool.m4 will add one of these switches to LD
15694     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15695       libsuff= shlibsuff= libmagic=32-bit;;
15696     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15697       libsuff=32 shlibsuff=N32 libmagic=N32;;
15698     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15699       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15700     *) libsuff= shlibsuff= libmagic=never-match;;
15701     esac
15702     ;;
15703   esac
15704   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15705   shlibpath_overrides_runpath=no
15706   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15707   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15708   hardcode_into_libs=yes
15709   ;;
15710
15711 # No shared lib support for Linux oldld, aout, or coff.
15712 linux*oldld* | linux*aout* | linux*coff*)
15713   dynamic_linker=no
15714   ;;
15715
15716 # This must be Linux ELF.
15717 linux* | k*bsd*-gnu)
15718   version_type=linux
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   # Some binutils ld are patched to set DT_RUNPATH
15727   save_LDFLAGS=$LDFLAGS
15728   save_libdir=$libdir
15729   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15730        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15731   cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h.  */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h.  */
15737
15738 int
15739 main ()
15740 {
15741
15742   ;
15743   return 0;
15744 }
15745 _ACEOF
15746 rm -f conftest.$ac_objext conftest$ac_exeext
15747 if { (ac_try="$ac_link"
15748 case "(($ac_try" in
15749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750   *) ac_try_echo=$ac_try;;
15751 esac
15752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15753 $as_echo "$ac_try_echo") >&5
15754   (eval "$ac_link") 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } && {
15761          test -z "$ac_cxx_werror_flag" ||
15762          test ! -s conftest.err
15763        } && test -s conftest$ac_exeext && {
15764          test "$cross_compiling" = yes ||
15765          $as_test_x conftest$ac_exeext
15766        }; then
15767   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15768   shlibpath_overrides_runpath=yes
15769 fi
15770
15771 else
15772   $as_echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775
15776 fi
15777
15778 rm -rf conftest.dSYM
15779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15780       conftest$ac_exeext conftest.$ac_ext
15781   LDFLAGS=$save_LDFLAGS
15782   libdir=$save_libdir
15783
15784   # This implies no fast_install, which is unacceptable.
15785   # Some rework will be needed to allow for fast_install
15786   # before this can be enabled.
15787   hardcode_into_libs=yes
15788
15789   # Append ld.so.conf contents to the search path
15790   if test -f /etc/ld.so.conf; then
15791     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' ' '`
15792     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15793   fi
15794
15795   # We used to test for /lib/ld.so.1 and disable shared libraries on
15796   # powerpc, because MkLinux only supported shared libraries with the
15797   # GNU dynamic linker.  Since this was broken with cross compilers,
15798   # most powerpc-linux boxes support dynamic linking these days and
15799   # people can always --disable-shared, the test was removed, and we
15800   # assume the GNU/Linux dynamic linker is in use.
15801   dynamic_linker='GNU/Linux ld.so'
15802   ;;
15803
15804 netbsd*)
15805   version_type=sunos
15806   need_lib_prefix=no
15807   need_version=no
15808   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15811     dynamic_linker='NetBSD (a.out) ld.so'
15812   else
15813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15814     soname_spec='${libname}${release}${shared_ext}$major'
15815     dynamic_linker='NetBSD ld.elf_so'
15816   fi
15817   shlibpath_var=LD_LIBRARY_PATH
15818   shlibpath_overrides_runpath=yes
15819   hardcode_into_libs=yes
15820   ;;
15821
15822 newsos6)
15823   version_type=linux
15824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825   shlibpath_var=LD_LIBRARY_PATH
15826   shlibpath_overrides_runpath=yes
15827   ;;
15828
15829 *nto* | *qnx*)
15830   version_type=qnx
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   shlibpath_var=LD_LIBRARY_PATH
15836   shlibpath_overrides_runpath=no
15837   hardcode_into_libs=yes
15838   dynamic_linker='ldqnx.so'
15839   ;;
15840
15841 openbsd*)
15842   version_type=sunos
15843   sys_lib_dlsearch_path_spec="/usr/lib"
15844   need_lib_prefix=no
15845   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15846   case $host_os in
15847     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15848     *)                          need_version=no  ;;
15849   esac
15850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15851   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15852   shlibpath_var=LD_LIBRARY_PATH
15853   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15854     case $host_os in
15855       openbsd2.[89] | openbsd2.[89].*)
15856         shlibpath_overrides_runpath=no
15857         ;;
15858       *)
15859         shlibpath_overrides_runpath=yes
15860         ;;
15861       esac
15862   else
15863     shlibpath_overrides_runpath=yes
15864   fi
15865   ;;
15866
15867 os2*)
15868   libname_spec='$name'
15869   shrext_cmds=".dll"
15870   need_lib_prefix=no
15871   library_names_spec='$libname${shared_ext} $libname.a'
15872   dynamic_linker='OS/2 ld.exe'
15873   shlibpath_var=LIBPATH
15874   ;;
15875
15876 osf3* | osf4* | osf5*)
15877   version_type=osf
15878   need_lib_prefix=no
15879   need_version=no
15880   soname_spec='${libname}${release}${shared_ext}$major'
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882   shlibpath_var=LD_LIBRARY_PATH
15883   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15884   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15885   ;;
15886
15887 rdos*)
15888   dynamic_linker=no
15889   ;;
15890
15891 solaris*)
15892   version_type=linux
15893   need_lib_prefix=no
15894   need_version=no
15895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896   soname_spec='${libname}${release}${shared_ext}$major'
15897   shlibpath_var=LD_LIBRARY_PATH
15898   shlibpath_overrides_runpath=yes
15899   hardcode_into_libs=yes
15900   # ldd complains unless libraries are executable
15901   postinstall_cmds='chmod +x $lib'
15902   ;;
15903
15904 sunos4*)
15905   version_type=sunos
15906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15908   shlibpath_var=LD_LIBRARY_PATH
15909   shlibpath_overrides_runpath=yes
15910   if test "$with_gnu_ld" = yes; then
15911     need_lib_prefix=no
15912   fi
15913   need_version=yes
15914   ;;
15915
15916 sysv4 | sysv4.3*)
15917   version_type=linux
15918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919   soname_spec='${libname}${release}${shared_ext}$major'
15920   shlibpath_var=LD_LIBRARY_PATH
15921   case $host_vendor in
15922     sni)
15923       shlibpath_overrides_runpath=no
15924       need_lib_prefix=no
15925       runpath_var=LD_RUN_PATH
15926       ;;
15927     siemens)
15928       need_lib_prefix=no
15929       ;;
15930     motorola)
15931       need_lib_prefix=no
15932       need_version=no
15933       shlibpath_overrides_runpath=no
15934       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15935       ;;
15936   esac
15937   ;;
15938
15939 sysv4*MP*)
15940   if test -d /usr/nec ;then
15941     version_type=linux
15942     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15943     soname_spec='$libname${shared_ext}.$major'
15944     shlibpath_var=LD_LIBRARY_PATH
15945   fi
15946   ;;
15947
15948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15949   version_type=freebsd-elf
15950   need_lib_prefix=no
15951   need_version=no
15952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   shlibpath_var=LD_LIBRARY_PATH
15955   shlibpath_overrides_runpath=yes
15956   hardcode_into_libs=yes
15957   if test "$with_gnu_ld" = yes; then
15958     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15959   else
15960     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15961     case $host_os in
15962       sco3.2v5*)
15963         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15964         ;;
15965     esac
15966   fi
15967   sys_lib_dlsearch_path_spec='/usr/lib'
15968   ;;
15969
15970 tpf*)
15971   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15972   version_type=linux
15973   need_lib_prefix=no
15974   need_version=no
15975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976   shlibpath_var=LD_LIBRARY_PATH
15977   shlibpath_overrides_runpath=no
15978   hardcode_into_libs=yes
15979   ;;
15980
15981 uts4*)
15982   version_type=linux
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   shlibpath_var=LD_LIBRARY_PATH
15986   ;;
15987
15988 *)
15989   dynamic_linker=no
15990   ;;
15991 esac
15992 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15993 $as_echo "$dynamic_linker" >&6; }
15994 test "$dynamic_linker" = no && can_build_shared=no
15995
15996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15997 if test "$GCC" = yes; then
15998   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15999 fi
16000
16001 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16002   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16003 fi
16004 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16005   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16006 fi
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16044 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16045 hardcode_action_CXX=
16046 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16047    test -n "$runpath_var_CXX" ||
16048    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16049
16050   # We can hardcode non-existent directories.
16051   if test "$hardcode_direct_CXX" != no &&
16052      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16053      # have to relink, otherwise we might link with an installed library
16054      # when we should be linking with a yet-to-be-installed one
16055      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16056      test "$hardcode_minus_L_CXX" != no; then
16057     # Linking always hardcodes the temporary library directory.
16058     hardcode_action_CXX=relink
16059   else
16060     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16061     hardcode_action_CXX=immediate
16062   fi
16063 else
16064   # We cannot hardcode anything, or else we can only hardcode existing
16065   # directories.
16066   hardcode_action_CXX=unsupported
16067 fi
16068 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16069 $as_echo "$hardcode_action_CXX" >&6; }
16070
16071 if test "$hardcode_action_CXX" = relink ||
16072    test "$inherit_rpath_CXX" = yes; then
16073   # Fast installation is not supported
16074   enable_fast_install=no
16075 elif test "$shlibpath_overrides_runpath" = yes ||
16076      test "$enable_shared" = no; then
16077   # Fast installation is not necessary
16078   enable_fast_install=needless
16079 fi
16080
16081
16082
16083
16084
16085
16086
16087   fi # test -n "$compiler"
16088
16089   CC=$lt_save_CC
16090   LDCXX=$LD
16091   LD=$lt_save_LD
16092   GCC=$lt_save_GCC
16093   with_gnu_ld=$lt_save_with_gnu_ld
16094   lt_cv_path_LDCXX=$lt_cv_path_LD
16095   lt_cv_path_LD=$lt_save_path_LD
16096   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16097   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16098 fi # test "$_lt_caught_CXX_error" != yes
16099
16100 ac_ext=c
16101 ac_cpp='$CPP $CPPFLAGS'
16102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118         ac_config_commands="$ac_config_commands libtool"
16119
16120
16121
16122
16123 # Only expand once:
16124
16125
16126
16127
16128 if test x$use_libtool != xno; then
16129    DEFAULT_OBJECT_TYPE=".lo"
16130    DEFAULT_ARCHIVE_TYPE=".la"
16131    DEFAULT_SHARED_OBJECT_TYPE=".la"
16132    LIBTOOL="\$(LIBTOOL)"
16133    LIBTOOL_INSTALL_TARGET="libtool-install"
16134    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16135    LIBTOOL_CLEAN_TARGET="libtool-clean"
16136    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16137    FD_PLUGIN_DIR="src/plugins/fd"
16138    have_plugins=yes
16139 else
16140    DEFAULT_OBJECT_TYPE=".o"
16141    DEFAULT_ARCHIVE_TYPE=".a"
16142    DEFAULT_SHARED_OBJECT_TYPE=".so"
16143    LIBTOOL="# \$(LIBTOOL)"
16144    LIBTOOL_INSTALL_TARGET=""
16145    LIBTOOL_UNINSTALL_TARGET=""
16146    LIBTOOL_CLEAN_TARGET=""
16147    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16148    FD_PLUGIN_DIR=""
16149    have_plugins=no
16150 fi
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162 # Check whether --enable-includes was given.
16163 if test "${enable_includes+set}" = set; then
16164   enableval=$enable_includes;
16165        if test x$enableval = xyes; then
16166           install_includes=yes
16167        fi
16168
16169
16170 fi
16171
16172
16173
16174 if test x$use_libtool != xno -a x$install_includes = xyes; then
16175    INCLUDE_INSTALL_TARGET="install-includes"
16176    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16177 else
16178    INCLUDE_INSTALL_TARGET=""
16179    INCLUDE_UNINSTALL_TARGET=""
16180 fi
16181
16182
16183
16184
16185 { $as_echo "$as_me:$LINENO: checking host system type" >&5
16186 $as_echo_n "checking host system type... " >&6; }
16187 if test "${ac_cv_host+set}" = set; then
16188   $as_echo_n "(cached) " >&6
16189 else
16190   if test "x$host_alias" = x; then
16191   ac_cv_host=$ac_cv_build
16192 else
16193   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16194     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16195 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16196    { (exit 1); exit 1; }; }
16197 fi
16198
16199 fi
16200 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16201 $as_echo "$ac_cv_host" >&6; }
16202 case $ac_cv_host in
16203 *-*-*) ;;
16204 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16205 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
16206    { (exit 1); exit 1; }; };;
16207 esac
16208 host=$ac_cv_host
16209 ac_save_IFS=$IFS; IFS='-'
16210 set x $ac_cv_host
16211 shift
16212 host_cpu=$1
16213 host_vendor=$2
16214 shift; shift
16215 # Remember, the first character of IFS is used to create $*,
16216 # except with old shells:
16217 host_os=$*
16218 IFS=$ac_save_IFS
16219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16220
16221
16222 case $host_os in
16223   *cygwin* ) CYGWIN=yes;;
16224          * ) CYGWIN=no;;
16225 esac
16226
16227 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16228 then
16229
16230
16231 if $TRUEPRG; then
16232   HAVE_SUN_OS_TRUE=
16233   HAVE_SUN_OS_FALSE='#'
16234 else
16235   HAVE_SUN_OS_TRUE='#'
16236   HAVE_SUN_OS_FALSE=
16237 fi
16238         cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_SUN_OS 1
16240 _ACEOF
16241
16242 else
16243
16244
16245 if $FALSEPRG; then
16246   HAVE_SUN_OS_TRUE=
16247   HAVE_SUN_OS_FALSE='#'
16248 else
16249   HAVE_SUN_OS_TRUE='#'
16250   HAVE_SUN_OS_FALSE=
16251 fi
16252 fi
16253
16254 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16255 then
16256
16257
16258 if $TRUEPRG; then
16259   HAVE_OSF1_OS_TRUE=
16260   HAVE_OSF1_OS_FALSE='#'
16261 else
16262   HAVE_OSF1_OS_TRUE='#'
16263   HAVE_OSF1_OS_FALSE=
16264 fi
16265         cat >>confdefs.h <<\_ACEOF
16266 #define HAVE_OSF1_OS 1
16267 _ACEOF
16268
16269 else
16270
16271
16272 if $FALSEPRG; then
16273   HAVE_OSF1_OS_TRUE=
16274   HAVE_OSF1_OS_FALSE='#'
16275 else
16276   HAVE_OSF1_OS_TRUE='#'
16277   HAVE_OSF1_OS_FALSE=
16278 fi
16279 fi
16280
16281 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16282 then
16283
16284
16285 if $TRUEPRG; then
16286   HAVE_AIX_OS_TRUE=
16287   HAVE_AIX_OS_FALSE='#'
16288 else
16289   HAVE_AIX_OS_TRUE='#'
16290   HAVE_AIX_OS_FALSE=
16291 fi
16292         cat >>confdefs.h <<\_ACEOF
16293 #define HAVE_AIX_OS 1
16294 _ACEOF
16295
16296 else
16297
16298
16299 if $FALSEPRG; then
16300   HAVE_AIX_OS_TRUE=
16301   HAVE_AIX_OS_FALSE='#'
16302 else
16303   HAVE_AIX_OS_TRUE='#'
16304   HAVE_AIX_OS_FALSE=
16305 fi
16306 fi
16307
16308 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16309 then
16310
16311
16312 if $TRUEPRG; then
16313   HAVE_HPUX_OS_TRUE=
16314   HAVE_HPUX_OS_FALSE='#'
16315 else
16316   HAVE_HPUX_OS_TRUE='#'
16317   HAVE_HPUX_OS_FALSE=
16318 fi
16319         cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_HPUX_OS 1
16321 _ACEOF
16322
16323 else
16324
16325
16326 if $FALSEPRG; then
16327   HAVE_HPUX_OS_TRUE=
16328   HAVE_HPUX_OS_FALSE='#'
16329 else
16330   HAVE_HPUX_OS_TRUE='#'
16331   HAVE_HPUX_OS_FALSE=
16332 fi
16333 fi
16334
16335 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16336 then
16337
16338
16339 if $TRUEPRG; then
16340   HAVE_LINUX_OS_TRUE=
16341   HAVE_LINUX_OS_FALSE='#'
16342 else
16343   HAVE_LINUX_OS_TRUE='#'
16344   HAVE_LINUX_OS_FALSE=
16345 fi
16346         cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_LINUX_OS 1
16348 _ACEOF
16349
16350 else
16351
16352
16353 if $FALSEPRG; then
16354   HAVE_LINUX_OS_TRUE=
16355   HAVE_LINUX_OS_FALSE='#'
16356 else
16357   HAVE_LINUX_OS_TRUE='#'
16358   HAVE_LINUX_OS_FALSE=
16359 fi
16360 fi
16361
16362 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16363 then
16364
16365
16366 if $TRUEPRG; then
16367   HAVE_FREEBSD_OS_TRUE=
16368   HAVE_FREEBSD_OS_FALSE='#'
16369 else
16370   HAVE_FREEBSD_OS_TRUE='#'
16371   HAVE_FREEBSD_OS_FALSE=
16372 fi
16373         cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_FREEBSD_OS 1
16375 _ACEOF
16376
16377 else
16378
16379
16380 if $FALSEPRG; then
16381   HAVE_FREEBSD_OS_TRUE=
16382   HAVE_FREEBSD_OS_FALSE='#'
16383 else
16384   HAVE_FREEBSD_OS_TRUE='#'
16385   HAVE_FREEBSD_OS_FALSE=
16386 fi
16387 fi
16388
16389 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16390 then
16391
16392
16393 if $TRUEPRG; then
16394   HAVE_NETBSD_OS_TRUE=
16395   HAVE_NETBSD_OS_FALSE='#'
16396 else
16397   HAVE_NETBSD_OS_TRUE='#'
16398   HAVE_NETBSD_OS_FALSE=
16399 fi
16400         cat >>confdefs.h <<\_ACEOF
16401 #define HAVE_NETBSD_OS 1
16402 _ACEOF
16403
16404 else
16405
16406
16407 if $FALSEPRG; then
16408   HAVE_NETBSD_OS_TRUE=
16409   HAVE_NETBSD_OS_FALSE='#'
16410 else
16411   HAVE_NETBSD_OS_TRUE='#'
16412   HAVE_NETBSD_OS_FALSE=
16413 fi
16414 fi
16415
16416 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16417 then
16418
16419
16420 if $TRUEPRG; then
16421   HAVE_OPENBSD_OS_TRUE=
16422   HAVE_OPENBSD_OS_FALSE='#'
16423 else
16424   HAVE_OPENBSD_OS_TRUE='#'
16425   HAVE_OPENBSD_OS_FALSE=
16426 fi
16427         cat >>confdefs.h <<\_ACEOF
16428 #define HAVE_OPENBSD_OS 1
16429 _ACEOF
16430
16431 else
16432
16433
16434 if $FALSEPRG; then
16435   HAVE_OPENBSD_OS_TRUE=
16436   HAVE_OPENBSD_OS_FALSE='#'
16437 else
16438   HAVE_OPENBSD_OS_TRUE='#'
16439   HAVE_OPENBSD_OS_FALSE=
16440 fi
16441 fi
16442
16443 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16444 then
16445
16446
16447 if $TRUEPRG; then
16448   HAVE_BSDI_OS_TRUE=
16449   HAVE_BSDI_OS_FALSE='#'
16450 else
16451   HAVE_BSDI_OS_TRUE='#'
16452   HAVE_BSDI_OS_FALSE=
16453 fi
16454         cat >>confdefs.h <<\_ACEOF
16455 #define HAVE_BSDI_OS 1
16456 _ACEOF
16457
16458 else
16459
16460
16461 if $FALSEPRG; then
16462   HAVE_BSDI_OS_TRUE=
16463   HAVE_BSDI_OS_FALSE='#'
16464 else
16465   HAVE_BSDI_OS_TRUE='#'
16466   HAVE_BSDI_OS_FALSE=
16467 fi
16468 fi
16469
16470 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16471 then
16472
16473
16474 if $TRUEPRG; then
16475   HAVE_SGI_OS_TRUE=
16476   HAVE_SGI_OS_FALSE='#'
16477 else
16478   HAVE_SGI_OS_TRUE='#'
16479   HAVE_SGI_OS_FALSE=
16480 fi
16481         cat >>confdefs.h <<\_ACEOF
16482 #define HAVE_SGI_OS 1
16483 _ACEOF
16484
16485 else
16486
16487
16488 if $FALSEPRG; then
16489   HAVE_SGI_OS_TRUE=
16490   HAVE_SGI_OS_FALSE='#'
16491 else
16492   HAVE_SGI_OS_TRUE='#'
16493   HAVE_SGI_OS_FALSE=
16494 fi
16495 fi
16496
16497 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16498 then
16499
16500
16501 if $TRUEPRG; then
16502   HAVE_IRIX_OS_TRUE=
16503   HAVE_IRIX_OS_FALSE='#'
16504 else
16505   HAVE_IRIX_OS_TRUE='#'
16506   HAVE_IRIX_OS_FALSE=
16507 fi
16508         cat >>confdefs.h <<\_ACEOF
16509 #define HAVE_IRIX_OS 1
16510 _ACEOF
16511
16512 else
16513
16514
16515 if $FALSEPRG; then
16516   HAVE_IRIX_OS_TRUE=
16517   HAVE_IRIX_OS_FALSE='#'
16518 else
16519   HAVE_IRIX_OS_TRUE='#'
16520   HAVE_IRIX_OS_FALSE=
16521 fi
16522 fi
16523
16524 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16525 then
16526
16527
16528 if $TRUEPRG; then
16529   HAVE_DARWIN_OS_TRUE=
16530   HAVE_DARWIN_OS_FALSE='#'
16531 else
16532   HAVE_DARWIN_OS_TRUE='#'
16533   HAVE_DARWIN_OS_FALSE=
16534 fi
16535     cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_DARWIN_OS 1
16537 _ACEOF
16538
16539 else
16540
16541
16542 if $FALSEPRG; then
16543   HAVE_DARWIN_OS_TRUE=
16544   HAVE_DARWIN_OS_FALSE='#'
16545 else
16546   HAVE_DARWIN_OS_TRUE='#'
16547   HAVE_DARWIN_OS_FALSE=
16548 fi
16549 fi
16550
16551
16552 { $as_echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16553 $as_echo_n "checking for Operating System Distribution... " >&6; }
16554 if test "x$DISTNAME" != "x"
16555 then
16556         echo "distname set to $DISTNAME"
16557 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16558 then
16559         DISTNAME=alpha
16560 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16561 then
16562         DISTNAME=aix
16563 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16564 then
16565         DISTNAME=hpux
16566 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16567 then
16568         DISTNAME=solaris
16569 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16570 then
16571         DISTNAME=freebsd
16572 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16573 then
16574         DISTNAME=netbsd
16575 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16576 then
16577         DISTNAME=openbsd
16578 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16579 then
16580         DISTNAME=irix
16581 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16582 then
16583         DISTNAME=bsdi
16584 elif test -f /etc/SuSE-release
16585 then
16586         DISTNAME=suse
16587 elif test -d /etc/SuSEconfig
16588 then
16589         DISTNAME=suse5
16590 elif test -f /etc/mandrake-release
16591 then
16592         DISTNAME=mandrake
16593 elif test -f /etc/whitebox-release
16594 then
16595        DISTNAME=redhat
16596 elif test -f /etc/redhat-release
16597 then
16598         DISTNAME=redhat
16599 elif test -f /etc/gentoo-release
16600 then
16601         DISTNAME=gentoo
16602 elif test -f /etc/debian_version
16603 then
16604         DISTNAME=debian
16605 elif test -f /etc/slackware-version
16606 then
16607         DISTNAME=slackware
16608 elif test x$host_vendor = xapple
16609 then
16610     DISTNAME=osx
16611 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16612 then
16613     DISTNAME=darwin
16614 elif test -f /etc/engarde-version
16615 then
16616         DISTNAME=engarde
16617 elif test -f /etc/arch-release
16618 then
16619         DISTNAME=archlinux
16620 elif test "$CYGWIN" = yes
16621 then
16622         DISTNAME=cygwin
16623         cat >>confdefs.h <<\_ACEOF
16624 #define HAVE_CYGWIN 1
16625 _ACEOF
16626
16627 else
16628         DISTNAME=unknown
16629 fi
16630 { $as_echo "$as_me:$LINENO: result: done" >&5
16631 $as_echo "done" >&6; }
16632
16633
16634 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16636 set x ${MAKE-make}
16637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16638 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16639   $as_echo_n "(cached) " >&6
16640 else
16641   cat >conftest.make <<\_ACEOF
16642 SHELL = /bin/sh
16643 all:
16644         @echo '@@@%%%=$(MAKE)=@@@%%%'
16645 _ACEOF
16646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16648   *@@@%%%=?*=@@@%%%*)
16649     eval ac_cv_prog_make_${ac_make}_set=yes;;
16650   *)
16651     eval ac_cv_prog_make_${ac_make}_set=no;;
16652 esac
16653 rm -f conftest.make
16654 fi
16655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16656   { $as_echo "$as_me:$LINENO: result: yes" >&5
16657 $as_echo "yes" >&6; }
16658   SET_MAKE=
16659 else
16660   { $as_echo "$as_me:$LINENO: result: no" >&5
16661 $as_echo "no" >&6; }
16662   SET_MAKE="MAKE=${MAKE-make}"
16663 fi
16664
16665
16666
16667         MKINSTALLDIRS=
16668   if test -n "$ac_aux_dir"; then
16669     case "$ac_aux_dir" in
16670       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16671       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16672     esac
16673   fi
16674   if test -z "$MKINSTALLDIRS"; then
16675     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16676   fi
16677
16678
16679
16680   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16681 $as_echo_n "checking whether NLS is requested... " >&6; }
16682     # Check whether --enable-nls was given.
16683 if test "${enable_nls+set}" = set; then
16684   enableval=$enable_nls; USE_NLS=$enableval
16685 else
16686   USE_NLS=yes
16687 fi
16688
16689   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16690 $as_echo "$USE_NLS" >&6; }
16691
16692
16693
16694
16695
16696
16697 # Prepare PATH_SEPARATOR.
16698 # The user is always right.
16699 if test "${PATH_SEPARATOR+set}" != set; then
16700   echo "#! /bin/sh" >conf$$.sh
16701   echo  "exit 0"   >>conf$$.sh
16702   chmod +x conf$$.sh
16703   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16704     PATH_SEPARATOR=';'
16705   else
16706     PATH_SEPARATOR=:
16707   fi
16708   rm -f conf$$.sh
16709 fi
16710
16711 # Find out how to test for executable files. Don't use a zero-byte file,
16712 # as systems may use methods other than mode bits to determine executability.
16713 cat >conf$$.file <<_ASEOF
16714 #! /bin/sh
16715 exit 0
16716 _ASEOF
16717 chmod +x conf$$.file
16718 if test -x conf$$.file >/dev/null 2>&1; then
16719   ac_executable_p="test -x"
16720 else
16721   ac_executable_p="test -f"
16722 fi
16723 rm -f conf$$.file
16724
16725 # Extract the first word of "msgfmt", so it can be a program name with args.
16726 set dummy msgfmt; ac_word=$2
16727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16728 $as_echo_n "checking for $ac_word... " >&6; }
16729 if test "${ac_cv_path_MSGFMT+set}" = set; then
16730   $as_echo_n "(cached) " >&6
16731 else
16732   case "$MSGFMT" in
16733   [\\/]* | ?:[\\/]*)
16734     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16735     ;;
16736   *)
16737     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16738     for ac_dir in $PATH; do
16739       IFS="$ac_save_IFS"
16740       test -z "$ac_dir" && ac_dir=.
16741       for ac_exec_ext in '' $ac_executable_extensions; do
16742         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16743           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16744           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16745      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16746             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16747             break 2
16748           fi
16749         fi
16750       done
16751     done
16752     IFS="$ac_save_IFS"
16753   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16754     ;;
16755 esac
16756 fi
16757 MSGFMT="$ac_cv_path_MSGFMT"
16758 if test "$MSGFMT" != ":"; then
16759   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16760 $as_echo "$MSGFMT" >&6; }
16761 else
16762   { $as_echo "$as_me:$LINENO: result: no" >&5
16763 $as_echo "no" >&6; }
16764 fi
16765
16766   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16767 set dummy gmsgfmt; ac_word=$2
16768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16769 $as_echo_n "checking for $ac_word... " >&6; }
16770 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16771   $as_echo_n "(cached) " >&6
16772 else
16773   case $GMSGFMT in
16774   [\\/]* | ?:[\\/]*)
16775   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16776   ;;
16777   *)
16778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779 for as_dir in $PATH
16780 do
16781   IFS=$as_save_IFS
16782   test -z "$as_dir" && as_dir=.
16783   for ac_exec_ext in '' $ac_executable_extensions; do
16784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16785     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16786     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16787     break 2
16788   fi
16789 done
16790 done
16791 IFS=$as_save_IFS
16792
16793   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16794   ;;
16795 esac
16796 fi
16797 GMSGFMT=$ac_cv_path_GMSGFMT
16798 if test -n "$GMSGFMT"; then
16799   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16800 $as_echo "$GMSGFMT" >&6; }
16801 else
16802   { $as_echo "$as_me:$LINENO: result: no" >&5
16803 $as_echo "no" >&6; }
16804 fi
16805
16806
16807
16808
16809 # Prepare PATH_SEPARATOR.
16810 # The user is always right.
16811 if test "${PATH_SEPARATOR+set}" != set; then
16812   echo "#! /bin/sh" >conf$$.sh
16813   echo  "exit 0"   >>conf$$.sh
16814   chmod +x conf$$.sh
16815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16816     PATH_SEPARATOR=';'
16817   else
16818     PATH_SEPARATOR=:
16819   fi
16820   rm -f conf$$.sh
16821 fi
16822
16823 # Find out how to test for executable files. Don't use a zero-byte file,
16824 # as systems may use methods other than mode bits to determine executability.
16825 cat >conf$$.file <<_ASEOF
16826 #! /bin/sh
16827 exit 0
16828 _ASEOF
16829 chmod +x conf$$.file
16830 if test -x conf$$.file >/dev/null 2>&1; then
16831   ac_executable_p="test -x"
16832 else
16833   ac_executable_p="test -f"
16834 fi
16835 rm -f conf$$.file
16836
16837 # Extract the first word of "xgettext", so it can be a program name with args.
16838 set dummy xgettext; ac_word=$2
16839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16840 $as_echo_n "checking for $ac_word... " >&6; }
16841 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16842   $as_echo_n "(cached) " >&6
16843 else
16844   case "$XGETTEXT" in
16845   [\\/]* | ?:[\\/]*)
16846     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16847     ;;
16848   *)
16849     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16850     for ac_dir in $PATH; do
16851       IFS="$ac_save_IFS"
16852       test -z "$ac_dir" && ac_dir=.
16853       for ac_exec_ext in '' $ac_executable_extensions; do
16854         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16855           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16856           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16857      (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
16858             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16859             break 2
16860           fi
16861         fi
16862       done
16863     done
16864     IFS="$ac_save_IFS"
16865   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16866     ;;
16867 esac
16868 fi
16869 XGETTEXT="$ac_cv_path_XGETTEXT"
16870 if test "$XGETTEXT" != ":"; then
16871   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16872 $as_echo "$XGETTEXT" >&6; }
16873 else
16874   { $as_echo "$as_me:$LINENO: result: no" >&5
16875 $as_echo "no" >&6; }
16876 fi
16877
16878     rm -f messages.po
16879
16880
16881 # Prepare PATH_SEPARATOR.
16882 # The user is always right.
16883 if test "${PATH_SEPARATOR+set}" != set; then
16884   echo "#! /bin/sh" >conf$$.sh
16885   echo  "exit 0"   >>conf$$.sh
16886   chmod +x conf$$.sh
16887   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16888     PATH_SEPARATOR=';'
16889   else
16890     PATH_SEPARATOR=:
16891   fi
16892   rm -f conf$$.sh
16893 fi
16894
16895 # Find out how to test for executable files. Don't use a zero-byte file,
16896 # as systems may use methods other than mode bits to determine executability.
16897 cat >conf$$.file <<_ASEOF
16898 #! /bin/sh
16899 exit 0
16900 _ASEOF
16901 chmod +x conf$$.file
16902 if test -x conf$$.file >/dev/null 2>&1; then
16903   ac_executable_p="test -x"
16904 else
16905   ac_executable_p="test -f"
16906 fi
16907 rm -f conf$$.file
16908
16909 # Extract the first word of "msgmerge", so it can be a program name with args.
16910 set dummy msgmerge; ac_word=$2
16911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16912 $as_echo_n "checking for $ac_word... " >&6; }
16913 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16914   $as_echo_n "(cached) " >&6
16915 else
16916   case "$MSGMERGE" in
16917   [\\/]* | ?:[\\/]*)
16918     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16919     ;;
16920   *)
16921     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16922     for ac_dir in $PATH; do
16923       IFS="$ac_save_IFS"
16924       test -z "$ac_dir" && ac_dir=.
16925       for ac_exec_ext in '' $ac_executable_extensions; do
16926         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16927           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16928           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16929             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16930             break 2
16931           fi
16932         fi
16933       done
16934     done
16935     IFS="$ac_save_IFS"
16936   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16937     ;;
16938 esac
16939 fi
16940 MSGMERGE="$ac_cv_path_MSGMERGE"
16941 if test "$MSGMERGE" != ":"; then
16942   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16943 $as_echo "$MSGMERGE" >&6; }
16944 else
16945   { $as_echo "$as_me:$LINENO: result: no" >&5
16946 $as_echo "no" >&6; }
16947 fi
16948
16949
16950       if test "$GMSGFMT" != ":"; then
16951             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16952        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16953       : ;
16954     else
16955       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16956       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16957 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16958       GMSGFMT=":"
16959     fi
16960   fi
16961
16962       if test "$XGETTEXT" != ":"; then
16963             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16964        (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
16965       : ;
16966     else
16967       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16968 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16969       XGETTEXT=":"
16970     fi
16971         rm -f messages.po
16972   fi
16973
16974   ac_config_commands="$ac_config_commands default-1"
16975
16976
16977
16978       if test "X$prefix" = "XNONE"; then
16979     acl_final_prefix="$ac_default_prefix"
16980   else
16981     acl_final_prefix="$prefix"
16982   fi
16983   if test "X$exec_prefix" = "XNONE"; then
16984     acl_final_exec_prefix='${prefix}'
16985   else
16986     acl_final_exec_prefix="$exec_prefix"
16987   fi
16988   acl_save_prefix="$prefix"
16989   prefix="$acl_final_prefix"
16990   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16991   prefix="$acl_save_prefix"
16992
16993
16994 # Check whether --with-gnu-ld was given.
16995 if test "${with_gnu_ld+set}" = set; then
16996   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16997 else
16998   with_gnu_ld=no
16999 fi
17000
17001 # Prepare PATH_SEPARATOR.
17002 # The user is always right.
17003 if test "${PATH_SEPARATOR+set}" != set; then
17004   echo "#! /bin/sh" >conf$$.sh
17005   echo  "exit 0"   >>conf$$.sh
17006   chmod +x conf$$.sh
17007   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17008     PATH_SEPARATOR=';'
17009   else
17010     PATH_SEPARATOR=:
17011   fi
17012   rm -f conf$$.sh
17013 fi
17014 ac_prog=ld
17015 if test "$GCC" = yes; then
17016   # Check if gcc -print-prog-name=ld gives a path.
17017   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17018 $as_echo_n "checking for ld used by GCC... " >&6; }
17019   case $host in
17020   *-*-mingw*)
17021     # gcc leaves a trailing carriage return which upsets mingw
17022     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17023   *)
17024     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17025   esac
17026   case $ac_prog in
17027     # Accept absolute paths.
17028     [\\/]* | [A-Za-z]:[\\/]*)
17029       re_direlt='/[^/][^/]*/\.\./'
17030       # Canonicalize the path of ld
17031       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17032       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17033         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17034       done
17035       test -z "$LD" && LD="$ac_prog"
17036       ;;
17037   "")
17038     # If it fails, then pretend we aren't using GCC.
17039     ac_prog=ld
17040     ;;
17041   *)
17042     # If it is relative, then search for the first ld in PATH.
17043     with_gnu_ld=unknown
17044     ;;
17045   esac
17046 elif test "$with_gnu_ld" = yes; then
17047   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17048 $as_echo_n "checking for GNU ld... " >&6; }
17049 else
17050   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17051 $as_echo_n "checking for non-GNU ld... " >&6; }
17052 fi
17053 if test "${acl_cv_path_LD+set}" = set; then
17054   $as_echo_n "(cached) " >&6
17055 else
17056   if test -z "$LD"; then
17057   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17058   for ac_dir in $PATH; do
17059     test -z "$ac_dir" && ac_dir=.
17060     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17061       acl_cv_path_LD="$ac_dir/$ac_prog"
17062       # Check to see if the program is GNU ld.  I'd rather use --version,
17063       # but apparently some GNU ld's only accept -v.
17064       # Break only if it was the GNU/non-GNU ld that we prefer.
17065       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17066       *GNU* | *'with BFD'*)
17067         test "$with_gnu_ld" != no && break ;;
17068       *)
17069         test "$with_gnu_ld" != yes && break ;;
17070       esac
17071     fi
17072   done
17073   IFS="$ac_save_ifs"
17074 else
17075   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17076 fi
17077 fi
17078
17079 LD="$acl_cv_path_LD"
17080 if test -n "$LD"; then
17081   { $as_echo "$as_me:$LINENO: result: $LD" >&5
17082 $as_echo "$LD" >&6; }
17083 else
17084   { $as_echo "$as_me:$LINENO: result: no" >&5
17085 $as_echo "no" >&6; }
17086 fi
17087 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17088 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17089    { (exit 1); exit 1; }; }
17090 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17091 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17092 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17093   $as_echo_n "(cached) " >&6
17094 else
17095   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17096 case `$LD -v 2>&1 </dev/null` in
17097 *GNU* | *'with BFD'*)
17098   acl_cv_prog_gnu_ld=yes ;;
17099 *)
17100   acl_cv_prog_gnu_ld=no ;;
17101 esac
17102 fi
17103 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17104 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17105 with_gnu_ld=$acl_cv_prog_gnu_ld
17106
17107
17108
17109
17110                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17111 $as_echo_n "checking for shared library run path origin... " >&6; }
17112 if test "${acl_cv_rpath+set}" = set; then
17113   $as_echo_n "(cached) " >&6
17114 else
17115
17116     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17117     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17118     . ./conftest.sh
17119     rm -f ./conftest.sh
17120     acl_cv_rpath=done
17121
17122 fi
17123 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17124 $as_echo "$acl_cv_rpath" >&6; }
17125   wl="$acl_cv_wl"
17126   libext="$acl_cv_libext"
17127   shlibext="$acl_cv_shlibext"
17128   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17129   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17130   hardcode_direct="$acl_cv_hardcode_direct"
17131   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17132     # Check whether --enable-rpath was given.
17133 if test "${enable_rpath+set}" = set; then
17134   enableval=$enable_rpath; :
17135 else
17136   enable_rpath=yes
17137 fi
17138
17139
17140
17141
17142
17143
17144
17145
17146     use_additional=yes
17147
17148   acl_save_prefix="$prefix"
17149   prefix="$acl_final_prefix"
17150   acl_save_exec_prefix="$exec_prefix"
17151   exec_prefix="$acl_final_exec_prefix"
17152
17153     eval additional_includedir=\"$includedir\"
17154     eval additional_libdir=\"$libdir\"
17155
17156   exec_prefix="$acl_save_exec_prefix"
17157   prefix="$acl_save_prefix"
17158
17159
17160 # Check whether --with-libiconv-prefix was given.
17161 if test "${with_libiconv_prefix+set}" = set; then
17162   withval=$with_libiconv_prefix;
17163     if test "X$withval" = "Xno"; then
17164       use_additional=no
17165     else
17166       if test "X$withval" = "X"; then
17167
17168   acl_save_prefix="$prefix"
17169   prefix="$acl_final_prefix"
17170   acl_save_exec_prefix="$exec_prefix"
17171   exec_prefix="$acl_final_exec_prefix"
17172
17173           eval additional_includedir=\"$includedir\"
17174           eval additional_libdir=\"$libdir\"
17175
17176   exec_prefix="$acl_save_exec_prefix"
17177   prefix="$acl_save_prefix"
17178
17179       else
17180         additional_includedir="$withval/include"
17181         additional_libdir="$withval/lib"
17182       fi
17183     fi
17184
17185 fi
17186
17187       LIBICONV=
17188   LTLIBICONV=
17189   INCICONV=
17190   rpathdirs=
17191   ltrpathdirs=
17192   names_already_handled=
17193   names_next_round='iconv '
17194   while test -n "$names_next_round"; do
17195     names_this_round="$names_next_round"
17196     names_next_round=
17197     for name in $names_this_round; do
17198       already_handled=
17199       for n in $names_already_handled; do
17200         if test "$n" = "$name"; then
17201           already_handled=yes
17202           break
17203         fi
17204       done
17205       if test -z "$already_handled"; then
17206         names_already_handled="$names_already_handled $name"
17207                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17208         eval value=\"\$HAVE_LIB$uppername\"
17209         if test -n "$value"; then
17210           if test "$value" = yes; then
17211             eval value=\"\$LIB$uppername\"
17212             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17213             eval value=\"\$LTLIB$uppername\"
17214             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17215           else
17216                                     :
17217           fi
17218         else
17219                               found_dir=
17220           found_la=
17221           found_so=
17222           found_a=
17223           if test $use_additional = yes; then
17224             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17225               found_dir="$additional_libdir"
17226               found_so="$additional_libdir/lib$name.$shlibext"
17227               if test -f "$additional_libdir/lib$name.la"; then
17228                 found_la="$additional_libdir/lib$name.la"
17229               fi
17230             else
17231               if test -f "$additional_libdir/lib$name.$libext"; then
17232                 found_dir="$additional_libdir"
17233                 found_a="$additional_libdir/lib$name.$libext"
17234                 if test -f "$additional_libdir/lib$name.la"; then
17235                   found_la="$additional_libdir/lib$name.la"
17236                 fi
17237               fi
17238             fi
17239           fi
17240           if test "X$found_dir" = "X"; then
17241             for x in $LDFLAGS $LTLIBICONV; do
17242
17243   acl_save_prefix="$prefix"
17244   prefix="$acl_final_prefix"
17245   acl_save_exec_prefix="$exec_prefix"
17246   exec_prefix="$acl_final_exec_prefix"
17247   eval x=\"$x\"
17248   exec_prefix="$acl_save_exec_prefix"
17249   prefix="$acl_save_prefix"
17250
17251               case "$x" in
17252                 -L*)
17253                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17254                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17255                     found_dir="$dir"
17256                     found_so="$dir/lib$name.$shlibext"
17257                     if test -f "$dir/lib$name.la"; then
17258                       found_la="$dir/lib$name.la"
17259                     fi
17260                   else
17261                     if test -f "$dir/lib$name.$libext"; then
17262                       found_dir="$dir"
17263                       found_a="$dir/lib$name.$libext"
17264                       if test -f "$dir/lib$name.la"; then
17265                         found_la="$dir/lib$name.la"
17266                       fi
17267                     fi
17268                   fi
17269                   ;;
17270               esac
17271               if test "X$found_dir" != "X"; then
17272                 break
17273               fi
17274             done
17275           fi
17276           if test "X$found_dir" != "X"; then
17277                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17278             if test "X$found_so" != "X"; then
17279                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17280                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17281               else
17282                                                                                 haveit=
17283                 for x in $ltrpathdirs; do
17284                   if test "X$x" = "X$found_dir"; then
17285                     haveit=yes
17286                     break
17287                   fi
17288                 done
17289                 if test -z "$haveit"; then
17290                   ltrpathdirs="$ltrpathdirs $found_dir"
17291                 fi
17292                                 if test "$hardcode_direct" = yes; then
17293                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17294                 else
17295                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17296                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17297                                                             haveit=
17298                     for x in $rpathdirs; do
17299                       if test "X$x" = "X$found_dir"; then
17300                         haveit=yes
17301                         break
17302                       fi
17303                     done
17304                     if test -z "$haveit"; then
17305                       rpathdirs="$rpathdirs $found_dir"
17306                     fi
17307                   else
17308                                                                                 haveit=
17309                     for x in $LDFLAGS $LIBICONV; do
17310
17311   acl_save_prefix="$prefix"
17312   prefix="$acl_final_prefix"
17313   acl_save_exec_prefix="$exec_prefix"
17314   exec_prefix="$acl_final_exec_prefix"
17315   eval x=\"$x\"
17316   exec_prefix="$acl_save_exec_prefix"
17317   prefix="$acl_save_prefix"
17318
17319                       if test "X$x" = "X-L$found_dir"; then
17320                         haveit=yes
17321                         break
17322                       fi
17323                     done
17324                     if test -z "$haveit"; then
17325                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17326                     fi
17327                     if test "$hardcode_minus_L" != no; then
17328                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17329                     else
17330                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17331                     fi
17332                   fi
17333                 fi
17334               fi
17335             else
17336               if test "X$found_a" != "X"; then
17337                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17338               else
17339                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17340               fi
17341             fi
17342                         additional_includedir=
17343             case "$found_dir" in
17344               */lib | */lib/)
17345                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17346                 additional_includedir="$basedir/include"
17347                 ;;
17348             esac
17349             if test "X$additional_includedir" != "X"; then
17350                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17351                 haveit=
17352                 if test "X$additional_includedir" = "X/usr/local/include"; then
17353                   if test -n "$GCC"; then
17354                     case $host_os in
17355                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17356                     esac
17357                   fi
17358                 fi
17359                 if test -z "$haveit"; then
17360                   for x in $CPPFLAGS $INCICONV; do
17361
17362   acl_save_prefix="$prefix"
17363   prefix="$acl_final_prefix"
17364   acl_save_exec_prefix="$exec_prefix"
17365   exec_prefix="$acl_final_exec_prefix"
17366   eval x=\"$x\"
17367   exec_prefix="$acl_save_exec_prefix"
17368   prefix="$acl_save_prefix"
17369
17370                     if test "X$x" = "X-I$additional_includedir"; then
17371                       haveit=yes
17372                       break
17373                     fi
17374                   done
17375                   if test -z "$haveit"; then
17376                     if test -d "$additional_includedir"; then
17377                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17378                     fi
17379                   fi
17380                 fi
17381               fi
17382             fi
17383                         if test -n "$found_la"; then
17384                                                         save_libdir="$libdir"
17385               case "$found_la" in
17386                 */* | *\\*) . "$found_la" ;;
17387                 *) . "./$found_la" ;;
17388               esac
17389               libdir="$save_libdir"
17390                             for dep in $dependency_libs; do
17391                 case "$dep" in
17392                   -L*)
17393                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17394                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17395                       haveit=
17396                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17397                         if test -n "$GCC"; then
17398                           case $host_os in
17399                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17400                           esac
17401                         fi
17402                       fi
17403                       if test -z "$haveit"; then
17404                         haveit=
17405                         for x in $LDFLAGS $LIBICONV; do
17406
17407   acl_save_prefix="$prefix"
17408   prefix="$acl_final_prefix"
17409   acl_save_exec_prefix="$exec_prefix"
17410   exec_prefix="$acl_final_exec_prefix"
17411   eval x=\"$x\"
17412   exec_prefix="$acl_save_exec_prefix"
17413   prefix="$acl_save_prefix"
17414
17415                           if test "X$x" = "X-L$additional_libdir"; then
17416                             haveit=yes
17417                             break
17418                           fi
17419                         done
17420                         if test -z "$haveit"; then
17421                           if test -d "$additional_libdir"; then
17422                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17423                           fi
17424                         fi
17425                         haveit=
17426                         for x in $LDFLAGS $LTLIBICONV; do
17427
17428   acl_save_prefix="$prefix"
17429   prefix="$acl_final_prefix"
17430   acl_save_exec_prefix="$exec_prefix"
17431   exec_prefix="$acl_final_exec_prefix"
17432   eval x=\"$x\"
17433   exec_prefix="$acl_save_exec_prefix"
17434   prefix="$acl_save_prefix"
17435
17436                           if test "X$x" = "X-L$additional_libdir"; then
17437                             haveit=yes
17438                             break
17439                           fi
17440                         done
17441                         if test -z "$haveit"; then
17442                           if test -d "$additional_libdir"; then
17443                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17444                           fi
17445                         fi
17446                       fi
17447                     fi
17448                     ;;
17449                   -R*)
17450                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17451                     if test "$enable_rpath" != no; then
17452                                                                   haveit=
17453                       for x in $rpathdirs; do
17454                         if test "X$x" = "X$dir"; then
17455                           haveit=yes
17456                           break
17457                         fi
17458                       done
17459                       if test -z "$haveit"; then
17460                         rpathdirs="$rpathdirs $dir"
17461                       fi
17462                                                                   haveit=
17463                       for x in $ltrpathdirs; do
17464                         if test "X$x" = "X$dir"; then
17465                           haveit=yes
17466                           break
17467                         fi
17468                       done
17469                       if test -z "$haveit"; then
17470                         ltrpathdirs="$ltrpathdirs $dir"
17471                       fi
17472                     fi
17473                     ;;
17474                   -l*)
17475                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17476                     ;;
17477                   *.la)
17478                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17479                     ;;
17480                   *)
17481                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17482                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17483                     ;;
17484                 esac
17485               done
17486             fi
17487           else
17488                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17489             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17490           fi
17491         fi
17492       fi
17493     done
17494   done
17495   if test "X$rpathdirs" != "X"; then
17496     if test -n "$hardcode_libdir_separator"; then
17497                         alldirs=
17498       for found_dir in $rpathdirs; do
17499         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17500       done
17501             acl_save_libdir="$libdir"
17502       libdir="$alldirs"
17503       eval flag=\"$hardcode_libdir_flag_spec\"
17504       libdir="$acl_save_libdir"
17505       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17506     else
17507             for found_dir in $rpathdirs; do
17508         acl_save_libdir="$libdir"
17509         libdir="$found_dir"
17510         eval flag=\"$hardcode_libdir_flag_spec\"
17511         libdir="$acl_save_libdir"
17512         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17513       done
17514     fi
17515   fi
17516   if test "X$ltrpathdirs" != "X"; then
17517             for found_dir in $ltrpathdirs; do
17518       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17519     done
17520   fi
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17540 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17541 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17542   $as_echo_n "(cached) " >&6
17543 else
17544   gt_save_CPPFLAGS="$CPPFLAGS"
17545      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17546      gt_save_LIBS="$LIBS"
17547      LIBS="$LIBS -framework CoreFoundation"
17548      cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554 #include <CFPreferences.h>
17555 int
17556 main ()
17557 {
17558 CFPreferencesCopyAppValue(NULL, NULL)
17559   ;
17560   return 0;
17561 }
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567   *) ac_try_echo=$ac_try;;
17568 esac
17569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17570 $as_echo "$ac_try_echo") >&5
17571   (eval "$ac_link") 2>conftest.er1
17572   ac_status=$?
17573   grep -v '^ *+' conftest.er1 >conftest.err
17574   rm -f conftest.er1
17575   cat conftest.err >&5
17576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); } && {
17578          test -z "$ac_c_werror_flag" ||
17579          test ! -s conftest.err
17580        } && test -s conftest$ac_exeext && {
17581          test "$cross_compiling" = yes ||
17582          $as_test_x conftest$ac_exeext
17583        }; then
17584   gt_cv_func_CFPreferencesCopyAppValue=yes
17585 else
17586   $as_echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17588
17589         gt_cv_func_CFPreferencesCopyAppValue=no
17590 fi
17591
17592 rm -rf conftest.dSYM
17593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17594       conftest$ac_exeext conftest.$ac_ext
17595      CPPFLAGS="$gt_save_CPPFLAGS"
17596      LIBS="$gt_save_LIBS"
17597 fi
17598 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17599 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17600   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17601
17602 cat >>confdefs.h <<\_ACEOF
17603 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17604 _ACEOF
17605
17606   fi
17607     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17608 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17609 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17610   $as_echo_n "(cached) " >&6
17611 else
17612   gt_save_CPPFLAGS="$CPPFLAGS"
17613      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17614      gt_save_LIBS="$LIBS"
17615      LIBS="$LIBS -framework CoreFoundation"
17616      cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h.  */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h.  */
17622 #include <CFLocale.h>
17623 int
17624 main ()
17625 {
17626 CFLocaleCopyCurrent();
17627   ;
17628   return 0;
17629 }
17630 _ACEOF
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17638 $as_echo "$ac_try_echo") >&5
17639   (eval "$ac_link") 2>conftest.er1
17640   ac_status=$?
17641   grep -v '^ *+' conftest.er1 >conftest.err
17642   rm -f conftest.er1
17643   cat conftest.err >&5
17644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } && {
17646          test -z "$ac_c_werror_flag" ||
17647          test ! -s conftest.err
17648        } && test -s conftest$ac_exeext && {
17649          test "$cross_compiling" = yes ||
17650          $as_test_x conftest$ac_exeext
17651        }; then
17652   gt_cv_func_CFLocaleCopyCurrent=yes
17653 else
17654   $as_echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657         gt_cv_func_CFLocaleCopyCurrent=no
17658 fi
17659
17660 rm -rf conftest.dSYM
17661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17662       conftest$ac_exeext conftest.$ac_ext
17663      CPPFLAGS="$gt_save_CPPFLAGS"
17664      LIBS="$gt_save_LIBS"
17665 fi
17666 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17667 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17668   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17669
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_CFLOCALECOPYCURRENT 1
17672 _ACEOF
17673
17674   fi
17675   INTL_MACOSX_LIBS=
17676   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17677     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17678   fi
17679
17680
17681
17682
17683   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17684 $as_echo_n "checking whether NLS is requested... " >&6; }
17685     # Check whether --enable-nls was given.
17686 if test "${enable_nls+set}" = set; then
17687   enableval=$enable_nls; USE_NLS=$enableval
17688 else
17689   USE_NLS=yes
17690 fi
17691
17692   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17693 $as_echo "$USE_NLS" >&6; }
17694
17695
17696
17697
17698   LIBINTL=
17699   LTLIBINTL=
17700   POSUB=
17701
17702     if test "$USE_NLS" = "yes"; then
17703     gt_use_preinstalled_gnugettext=no
17704
17705
17706
17707
17708
17709
17710         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17711 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17712 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17713   $as_echo_n "(cached) " >&6
17714 else
17715   cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721 #include <libintl.h>
17722 extern int _nl_msg_cat_cntr;
17723 extern int *_nl_domain_bindings;
17724 int
17725 main ()
17726 {
17727 bindtextdomain ("", "");
17728 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (ac_try="$ac_link"
17735 case "(($ac_try" in
17736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737   *) ac_try_echo=$ac_try;;
17738 esac
17739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741   (eval "$ac_link") 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } && {
17748          test -z "$ac_c_werror_flag" ||
17749          test ! -s conftest.err
17750        } && test -s conftest$ac_exeext && {
17751          test "$cross_compiling" = yes ||
17752          $as_test_x conftest$ac_exeext
17753        }; then
17754   gt_cv_func_gnugettext1_libc=yes
17755 else
17756   $as_echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17758
17759         gt_cv_func_gnugettext1_libc=no
17760 fi
17761
17762 rm -rf conftest.dSYM
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764       conftest$ac_exeext conftest.$ac_ext
17765 fi
17766 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17767 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17768
17769         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17770
17771
17772
17773
17774
17775           am_save_CPPFLAGS="$CPPFLAGS"
17776
17777   for element in $INCICONV; do
17778     haveit=
17779     for x in $CPPFLAGS; do
17780
17781   acl_save_prefix="$prefix"
17782   prefix="$acl_final_prefix"
17783   acl_save_exec_prefix="$exec_prefix"
17784   exec_prefix="$acl_final_exec_prefix"
17785   eval x=\"$x\"
17786   exec_prefix="$acl_save_exec_prefix"
17787   prefix="$acl_save_prefix"
17788
17789       if test "X$x" = "X$element"; then
17790         haveit=yes
17791         break
17792       fi
17793     done
17794     if test -z "$haveit"; then
17795       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17796     fi
17797   done
17798
17799
17800   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
17801 $as_echo_n "checking for iconv... " >&6; }
17802 if test "${am_cv_func_iconv+set}" = set; then
17803   $as_echo_n "(cached) " >&6
17804 else
17805
17806     am_cv_func_iconv="no, consider installing GNU libiconv"
17807     am_cv_lib_iconv=no
17808     cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17814 #include <stdlib.h>
17815 #include <iconv.h>
17816 int
17817 main ()
17818 {
17819 iconv_t cd = iconv_open("","");
17820        iconv(cd,NULL,NULL,NULL,NULL);
17821        iconv_close(cd);
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17833 $as_echo "$ac_try_echo") >&5
17834   (eval "$ac_link") 2>conftest.er1
17835   ac_status=$?
17836   grep -v '^ *+' conftest.er1 >conftest.err
17837   rm -f conftest.er1
17838   cat conftest.err >&5
17839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); } && {
17841          test -z "$ac_c_werror_flag" ||
17842          test ! -s conftest.err
17843        } && test -s conftest$ac_exeext && {
17844          test "$cross_compiling" = yes ||
17845          $as_test_x conftest$ac_exeext
17846        }; then
17847   am_cv_func_iconv=yes
17848 else
17849   $as_echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852
17853 fi
17854
17855 rm -rf conftest.dSYM
17856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17857       conftest$ac_exeext conftest.$ac_ext
17858     if test "$am_cv_func_iconv" != yes; then
17859       am_save_LIBS="$LIBS"
17860       LIBS="$LIBS $LIBICONV"
17861       cat >conftest.$ac_ext <<_ACEOF
17862 /* confdefs.h.  */
17863 _ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h.  */
17867 #include <stdlib.h>
17868 #include <iconv.h>
17869 int
17870 main ()
17871 {
17872 iconv_t cd = iconv_open("","");
17873          iconv(cd,NULL,NULL,NULL,NULL);
17874          iconv_close(cd);
17875   ;
17876   return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (ac_try="$ac_link"
17881 case "(($ac_try" in
17882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883   *) ac_try_echo=$ac_try;;
17884 esac
17885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17886 $as_echo "$ac_try_echo") >&5
17887   (eval "$ac_link") 2>conftest.er1
17888   ac_status=$?
17889   grep -v '^ *+' conftest.er1 >conftest.err
17890   rm -f conftest.er1
17891   cat conftest.err >&5
17892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } && {
17894          test -z "$ac_c_werror_flag" ||
17895          test ! -s conftest.err
17896        } && test -s conftest$ac_exeext && {
17897          test "$cross_compiling" = yes ||
17898          $as_test_x conftest$ac_exeext
17899        }; then
17900   am_cv_lib_iconv=yes
17901         am_cv_func_iconv=yes
17902 else
17903   $as_echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906
17907 fi
17908
17909 rm -rf conftest.dSYM
17910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17911       conftest$ac_exeext conftest.$ac_ext
17912       LIBS="$am_save_LIBS"
17913     fi
17914
17915 fi
17916 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17917 $as_echo "$am_cv_func_iconv" >&6; }
17918   if test "$am_cv_func_iconv" = yes; then
17919
17920 cat >>confdefs.h <<\_ACEOF
17921 #define HAVE_ICONV 1
17922 _ACEOF
17923
17924   fi
17925   if test "$am_cv_lib_iconv" = yes; then
17926     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17927 $as_echo_n "checking how to link with libiconv... " >&6; }
17928     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17929 $as_echo "$LIBICONV" >&6; }
17930   else
17931             CPPFLAGS="$am_save_CPPFLAGS"
17932     LIBICONV=
17933     LTLIBICONV=
17934   fi
17935
17936
17937
17938
17939
17940
17941     use_additional=yes
17942
17943   acl_save_prefix="$prefix"
17944   prefix="$acl_final_prefix"
17945   acl_save_exec_prefix="$exec_prefix"
17946   exec_prefix="$acl_final_exec_prefix"
17947
17948     eval additional_includedir=\"$includedir\"
17949     eval additional_libdir=\"$libdir\"
17950
17951   exec_prefix="$acl_save_exec_prefix"
17952   prefix="$acl_save_prefix"
17953
17954
17955 # Check whether --with-libintl-prefix was given.
17956 if test "${with_libintl_prefix+set}" = set; then
17957   withval=$with_libintl_prefix;
17958     if test "X$withval" = "Xno"; then
17959       use_additional=no
17960     else
17961       if test "X$withval" = "X"; then
17962
17963   acl_save_prefix="$prefix"
17964   prefix="$acl_final_prefix"
17965   acl_save_exec_prefix="$exec_prefix"
17966   exec_prefix="$acl_final_exec_prefix"
17967
17968           eval additional_includedir=\"$includedir\"
17969           eval additional_libdir=\"$libdir\"
17970
17971   exec_prefix="$acl_save_exec_prefix"
17972   prefix="$acl_save_prefix"
17973
17974       else
17975         additional_includedir="$withval/include"
17976         additional_libdir="$withval/lib"
17977       fi
17978     fi
17979
17980 fi
17981
17982       LIBINTL=
17983   LTLIBINTL=
17984   INCINTL=
17985   rpathdirs=
17986   ltrpathdirs=
17987   names_already_handled=
17988   names_next_round='intl '
17989   while test -n "$names_next_round"; do
17990     names_this_round="$names_next_round"
17991     names_next_round=
17992     for name in $names_this_round; do
17993       already_handled=
17994       for n in $names_already_handled; do
17995         if test "$n" = "$name"; then
17996           already_handled=yes
17997           break
17998         fi
17999       done
18000       if test -z "$already_handled"; then
18001         names_already_handled="$names_already_handled $name"
18002                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18003         eval value=\"\$HAVE_LIB$uppername\"
18004         if test -n "$value"; then
18005           if test "$value" = yes; then
18006             eval value=\"\$LIB$uppername\"
18007             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18008             eval value=\"\$LTLIB$uppername\"
18009             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18010           else
18011                                     :
18012           fi
18013         else
18014                               found_dir=
18015           found_la=
18016           found_so=
18017           found_a=
18018           if test $use_additional = yes; then
18019             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18020               found_dir="$additional_libdir"
18021               found_so="$additional_libdir/lib$name.$shlibext"
18022               if test -f "$additional_libdir/lib$name.la"; then
18023                 found_la="$additional_libdir/lib$name.la"
18024               fi
18025             else
18026               if test -f "$additional_libdir/lib$name.$libext"; then
18027                 found_dir="$additional_libdir"
18028                 found_a="$additional_libdir/lib$name.$libext"
18029                 if test -f "$additional_libdir/lib$name.la"; then
18030                   found_la="$additional_libdir/lib$name.la"
18031                 fi
18032               fi
18033             fi
18034           fi
18035           if test "X$found_dir" = "X"; then
18036             for x in $LDFLAGS $LTLIBINTL; do
18037
18038   acl_save_prefix="$prefix"
18039   prefix="$acl_final_prefix"
18040   acl_save_exec_prefix="$exec_prefix"
18041   exec_prefix="$acl_final_exec_prefix"
18042   eval x=\"$x\"
18043   exec_prefix="$acl_save_exec_prefix"
18044   prefix="$acl_save_prefix"
18045
18046               case "$x" in
18047                 -L*)
18048                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18049                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18050                     found_dir="$dir"
18051                     found_so="$dir/lib$name.$shlibext"
18052                     if test -f "$dir/lib$name.la"; then
18053                       found_la="$dir/lib$name.la"
18054                     fi
18055                   else
18056                     if test -f "$dir/lib$name.$libext"; then
18057                       found_dir="$dir"
18058                       found_a="$dir/lib$name.$libext"
18059                       if test -f "$dir/lib$name.la"; then
18060                         found_la="$dir/lib$name.la"
18061                       fi
18062                     fi
18063                   fi
18064                   ;;
18065               esac
18066               if test "X$found_dir" != "X"; then
18067                 break
18068               fi
18069             done
18070           fi
18071           if test "X$found_dir" != "X"; then
18072                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18073             if test "X$found_so" != "X"; then
18074                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18075                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18076               else
18077                                                                                 haveit=
18078                 for x in $ltrpathdirs; do
18079                   if test "X$x" = "X$found_dir"; then
18080                     haveit=yes
18081                     break
18082                   fi
18083                 done
18084                 if test -z "$haveit"; then
18085                   ltrpathdirs="$ltrpathdirs $found_dir"
18086                 fi
18087                                 if test "$hardcode_direct" = yes; then
18088                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18089                 else
18090                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18091                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18092                                                             haveit=
18093                     for x in $rpathdirs; do
18094                       if test "X$x" = "X$found_dir"; then
18095                         haveit=yes
18096                         break
18097                       fi
18098                     done
18099                     if test -z "$haveit"; then
18100                       rpathdirs="$rpathdirs $found_dir"
18101                     fi
18102                   else
18103                                                                                 haveit=
18104                     for x in $LDFLAGS $LIBINTL; do
18105
18106   acl_save_prefix="$prefix"
18107   prefix="$acl_final_prefix"
18108   acl_save_exec_prefix="$exec_prefix"
18109   exec_prefix="$acl_final_exec_prefix"
18110   eval x=\"$x\"
18111   exec_prefix="$acl_save_exec_prefix"
18112   prefix="$acl_save_prefix"
18113
18114                       if test "X$x" = "X-L$found_dir"; then
18115                         haveit=yes
18116                         break
18117                       fi
18118                     done
18119                     if test -z "$haveit"; then
18120                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18121                     fi
18122                     if test "$hardcode_minus_L" != no; then
18123                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18124                     else
18125                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18126                     fi
18127                   fi
18128                 fi
18129               fi
18130             else
18131               if test "X$found_a" != "X"; then
18132                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18133               else
18134                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18135               fi
18136             fi
18137                         additional_includedir=
18138             case "$found_dir" in
18139               */lib | */lib/)
18140                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18141                 additional_includedir="$basedir/include"
18142                 ;;
18143             esac
18144             if test "X$additional_includedir" != "X"; then
18145                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18146                 haveit=
18147                 if test "X$additional_includedir" = "X/usr/local/include"; then
18148                   if test -n "$GCC"; then
18149                     case $host_os in
18150                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18151                     esac
18152                   fi
18153                 fi
18154                 if test -z "$haveit"; then
18155                   for x in $CPPFLAGS $INCINTL; do
18156
18157   acl_save_prefix="$prefix"
18158   prefix="$acl_final_prefix"
18159   acl_save_exec_prefix="$exec_prefix"
18160   exec_prefix="$acl_final_exec_prefix"
18161   eval x=\"$x\"
18162   exec_prefix="$acl_save_exec_prefix"
18163   prefix="$acl_save_prefix"
18164
18165                     if test "X$x" = "X-I$additional_includedir"; then
18166                       haveit=yes
18167                       break
18168                     fi
18169                   done
18170                   if test -z "$haveit"; then
18171                     if test -d "$additional_includedir"; then
18172                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18173                     fi
18174                   fi
18175                 fi
18176               fi
18177             fi
18178                         if test -n "$found_la"; then
18179                                                         save_libdir="$libdir"
18180               case "$found_la" in
18181                 */* | *\\*) . "$found_la" ;;
18182                 *) . "./$found_la" ;;
18183               esac
18184               libdir="$save_libdir"
18185                             for dep in $dependency_libs; do
18186                 case "$dep" in
18187                   -L*)
18188                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18189                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18190                       haveit=
18191                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18192                         if test -n "$GCC"; then
18193                           case $host_os in
18194                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18195                           esac
18196                         fi
18197                       fi
18198                       if test -z "$haveit"; then
18199                         haveit=
18200                         for x in $LDFLAGS $LIBINTL; do
18201
18202   acl_save_prefix="$prefix"
18203   prefix="$acl_final_prefix"
18204   acl_save_exec_prefix="$exec_prefix"
18205   exec_prefix="$acl_final_exec_prefix"
18206   eval x=\"$x\"
18207   exec_prefix="$acl_save_exec_prefix"
18208   prefix="$acl_save_prefix"
18209
18210                           if test "X$x" = "X-L$additional_libdir"; then
18211                             haveit=yes
18212                             break
18213                           fi
18214                         done
18215                         if test -z "$haveit"; then
18216                           if test -d "$additional_libdir"; then
18217                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18218                           fi
18219                         fi
18220                         haveit=
18221                         for x in $LDFLAGS $LTLIBINTL; do
18222
18223   acl_save_prefix="$prefix"
18224   prefix="$acl_final_prefix"
18225   acl_save_exec_prefix="$exec_prefix"
18226   exec_prefix="$acl_final_exec_prefix"
18227   eval x=\"$x\"
18228   exec_prefix="$acl_save_exec_prefix"
18229   prefix="$acl_save_prefix"
18230
18231                           if test "X$x" = "X-L$additional_libdir"; then
18232                             haveit=yes
18233                             break
18234                           fi
18235                         done
18236                         if test -z "$haveit"; then
18237                           if test -d "$additional_libdir"; then
18238                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18239                           fi
18240                         fi
18241                       fi
18242                     fi
18243                     ;;
18244                   -R*)
18245                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18246                     if test "$enable_rpath" != no; then
18247                                                                   haveit=
18248                       for x in $rpathdirs; do
18249                         if test "X$x" = "X$dir"; then
18250                           haveit=yes
18251                           break
18252                         fi
18253                       done
18254                       if test -z "$haveit"; then
18255                         rpathdirs="$rpathdirs $dir"
18256                       fi
18257                                                                   haveit=
18258                       for x in $ltrpathdirs; do
18259                         if test "X$x" = "X$dir"; then
18260                           haveit=yes
18261                           break
18262                         fi
18263                       done
18264                       if test -z "$haveit"; then
18265                         ltrpathdirs="$ltrpathdirs $dir"
18266                       fi
18267                     fi
18268                     ;;
18269                   -l*)
18270                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18271                     ;;
18272                   *.la)
18273                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18274                     ;;
18275                   *)
18276                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18277                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18278                     ;;
18279                 esac
18280               done
18281             fi
18282           else
18283                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18284             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18285           fi
18286         fi
18287       fi
18288     done
18289   done
18290   if test "X$rpathdirs" != "X"; then
18291     if test -n "$hardcode_libdir_separator"; then
18292                         alldirs=
18293       for found_dir in $rpathdirs; do
18294         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18295       done
18296             acl_save_libdir="$libdir"
18297       libdir="$alldirs"
18298       eval flag=\"$hardcode_libdir_flag_spec\"
18299       libdir="$acl_save_libdir"
18300       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18301     else
18302             for found_dir in $rpathdirs; do
18303         acl_save_libdir="$libdir"
18304         libdir="$found_dir"
18305         eval flag=\"$hardcode_libdir_flag_spec\"
18306         libdir="$acl_save_libdir"
18307         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18308       done
18309     fi
18310   fi
18311   if test "X$ltrpathdirs" != "X"; then
18312             for found_dir in $ltrpathdirs; do
18313       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18314     done
18315   fi
18316
18317           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18318 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18319 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18320   $as_echo_n "(cached) " >&6
18321 else
18322   gt_save_CPPFLAGS="$CPPFLAGS"
18323             CPPFLAGS="$CPPFLAGS $INCINTL"
18324             gt_save_LIBS="$LIBS"
18325             LIBS="$LIBS $LIBINTL"
18326                         cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h.  */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h.  */
18332 #include <libintl.h>
18333 extern int _nl_msg_cat_cntr;
18334 extern
18335 #ifdef __cplusplus
18336 "C"
18337 #endif
18338 const char *_nl_expand_alias (const char *);
18339 int
18340 main ()
18341 {
18342 bindtextdomain ("", "");
18343 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18355 $as_echo "$ac_try_echo") >&5
18356   (eval "$ac_link") 2>conftest.er1
18357   ac_status=$?
18358   grep -v '^ *+' conftest.er1 >conftest.err
18359   rm -f conftest.er1
18360   cat conftest.err >&5
18361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); } && {
18363          test -z "$ac_c_werror_flag" ||
18364          test ! -s conftest.err
18365        } && test -s conftest$ac_exeext && {
18366          test "$cross_compiling" = yes ||
18367          $as_test_x conftest$ac_exeext
18368        }; then
18369   gt_cv_func_gnugettext1_libintl=yes
18370 else
18371   $as_echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374         gt_cv_func_gnugettext1_libintl=no
18375 fi
18376
18377 rm -rf conftest.dSYM
18378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18379       conftest$ac_exeext conftest.$ac_ext
18380                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18381               LIBS="$LIBS $LIBICONV"
18382               cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h.  */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h.  */
18388 #include <libintl.h>
18389 extern int _nl_msg_cat_cntr;
18390 extern
18391 #ifdef __cplusplus
18392 "C"
18393 #endif
18394 const char *_nl_expand_alias (const char *);
18395 int
18396 main ()
18397 {
18398 bindtextdomain ("", "");
18399 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18400   ;
18401   return 0;
18402 }
18403 _ACEOF
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (ac_try="$ac_link"
18406 case "(($ac_try" in
18407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408   *) ac_try_echo=$ac_try;;
18409 esac
18410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18411 $as_echo "$ac_try_echo") >&5
18412   (eval "$ac_link") 2>conftest.er1
18413   ac_status=$?
18414   grep -v '^ *+' conftest.er1 >conftest.err
18415   rm -f conftest.er1
18416   cat conftest.err >&5
18417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); } && {
18419          test -z "$ac_c_werror_flag" ||
18420          test ! -s conftest.err
18421        } && test -s conftest$ac_exeext && {
18422          test "$cross_compiling" = yes ||
18423          $as_test_x conftest$ac_exeext
18424        }; then
18425   LIBINTL="$LIBINTL $LIBICONV"
18426                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18427                 gt_cv_func_gnugettext1_libintl=yes
18428
18429 else
18430   $as_echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433
18434 fi
18435
18436 rm -rf conftest.dSYM
18437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18438       conftest$ac_exeext conftest.$ac_ext
18439             fi
18440             CPPFLAGS="$gt_save_CPPFLAGS"
18441             LIBS="$gt_save_LIBS"
18442 fi
18443 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18444 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18445         fi
18446
18447                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18448            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18449                 && test "$PACKAGE" != gettext-runtime \
18450                 && test "$PACKAGE" != gettext-tools; }; then
18451           gt_use_preinstalled_gnugettext=yes
18452         else
18453                     LIBINTL=
18454           LTLIBINTL=
18455           INCINTL=
18456         fi
18457
18458
18459
18460     if test -n "$INTL_MACOSX_LIBS"; then
18461       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18462          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18463                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18464         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18465       fi
18466     fi
18467
18468     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18469        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18470
18471 cat >>confdefs.h <<\_ACEOF
18472 #define ENABLE_NLS 1
18473 _ACEOF
18474
18475     else
18476       USE_NLS=no
18477     fi
18478   fi
18479
18480   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
18481 $as_echo_n "checking whether to use NLS... " >&6; }
18482   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
18483 $as_echo "$USE_NLS" >&6; }
18484   if test "$USE_NLS" = "yes"; then
18485     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18486 $as_echo_n "checking where the gettext function comes from... " >&6; }
18487     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18488       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18489         gt_source="external libintl"
18490       else
18491         gt_source="libc"
18492       fi
18493     else
18494       gt_source="included intl directory"
18495     fi
18496     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
18497 $as_echo "$gt_source" >&6; }
18498   fi
18499
18500   if test "$USE_NLS" = "yes"; then
18501
18502     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18503       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18504         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
18505 $as_echo_n "checking how to link with libintl... " >&6; }
18506         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
18507 $as_echo "$LIBINTL" >&6; }
18508
18509   for element in $INCINTL; do
18510     haveit=
18511     for x in $CPPFLAGS; do
18512
18513   acl_save_prefix="$prefix"
18514   prefix="$acl_final_prefix"
18515   acl_save_exec_prefix="$exec_prefix"
18516   exec_prefix="$acl_final_exec_prefix"
18517   eval x=\"$x\"
18518   exec_prefix="$acl_save_exec_prefix"
18519   prefix="$acl_save_prefix"
18520
18521       if test "X$x" = "X$element"; then
18522         haveit=yes
18523         break
18524       fi
18525     done
18526     if test -z "$haveit"; then
18527       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18528     fi
18529   done
18530
18531       fi
18532
18533
18534 cat >>confdefs.h <<\_ACEOF
18535 #define HAVE_GETTEXT 1
18536 _ACEOF
18537
18538
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_DCGETTEXT 1
18541 _ACEOF
18542
18543     fi
18544
18545         POSUB=po
18546   fi
18547
18548
18549
18550     INTLLIBS="$LIBINTL"
18551
18552
18553
18554
18555
18556
18557
18558 os_name=`uname -s 2>/dev/null`
18559 if test x${prefix} = xNONE ; then
18560    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18561       sysconfdir=/etc/bacula
18562    fi
18563
18564    if test `eval echo ${libdir}` = NONE/lib ; then
18565       case ${os_name} in
18566       Linux)
18567          os_processor=`uname -p 2>/dev/null`
18568          case ${os_processor} in
18569          x86_64)
18570             libdir=/usr/lib64
18571             ;;
18572          *)
18573             libdir=/usr/lib
18574             ;;
18575          esac
18576          ;;
18577       *)
18578          libdir=/usr/lib
18579          ;;
18580       esac
18581    fi
18582
18583    if test `eval echo ${includedir}` = NONE/include ; then
18584       includedir=/usr/include
18585    fi
18586
18587    if test `eval echo ${datarootdir}` = NONE/share ; then
18588       datarootdir=/usr/share
18589    fi
18590    prefix=
18591 fi
18592
18593 if test x${exec_prefix} = xNONE ; then
18594    exec_prefix=${prefix}
18595 fi
18596
18597 sysconfdir=`eval echo ${sysconfdir}`
18598 datarootdir=`eval echo ${datarootdir}`
18599 docdir=`eval echo ${docdir}`
18600 htmldir=`eval echo ${htmldir}`
18601 libdir=`eval echo ${libdir}`
18602 includedir=`eval echo ${includedir}`
18603 localedir=`eval echo ${datarootdir}/locale`
18604 cat >>confdefs.h <<_ACEOF
18605 #define SYSCONFDIR "$sysconfdir"
18606 _ACEOF
18607
18608 cat >>confdefs.h <<_ACEOF
18609 #define LOCALEDIR "$localedir"
18610 _ACEOF
18611
18612
18613 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18614    sbindir=${exec_prefix}/sbin
18615 fi
18616 sbindir=`eval echo ${sbindir}`
18617
18618 if test x$mandir = x'${prefix}/man' ; then
18619    mandir=/usr/share/man
18620 fi
18621
18622 if test x$htmldir = x${docdir} ; then
18623    htmldir=`eval echo ${docdir}bacula/html`
18624 fi
18625
18626 if test x$docdir = x'/usr/share/doc/' ; then
18627    docdir=`eval echo ${docdir}bacula`
18628 fi
18629
18630
18631 for ac_prog in msgfmt
18632 do
18633   # Extract the first word of "$ac_prog", so it can be a program name with args.
18634 set dummy $ac_prog; ac_word=$2
18635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18636 $as_echo_n "checking for $ac_word... " >&6; }
18637 if test "${ac_cv_path_MSGFMT+set}" = set; then
18638   $as_echo_n "(cached) " >&6
18639 else
18640   case $MSGFMT in
18641   [\\/]* | ?:[\\/]*)
18642   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18643   ;;
18644   *)
18645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646 for as_dir in $PATH
18647 do
18648   IFS=$as_save_IFS
18649   test -z "$as_dir" && as_dir=.
18650   for ac_exec_ext in '' $ac_executable_extensions; do
18651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18652     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18653     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18654     break 2
18655   fi
18656 done
18657 done
18658 IFS=$as_save_IFS
18659
18660   ;;
18661 esac
18662 fi
18663 MSGFMT=$ac_cv_path_MSGFMT
18664 if test -n "$MSGFMT"; then
18665   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
18666 $as_echo "$MSGFMT" >&6; }
18667 else
18668   { $as_echo "$as_me:$LINENO: result: no" >&5
18669 $as_echo "no" >&6; }
18670 fi
18671
18672
18673   test -n "$MSGFMT" && break
18674 done
18675 test -n "$MSGFMT" || MSGFMT="no"
18676
18677 if test "$MSGFMT" = "no"
18678 then
18679    echo 'msgfmt program not found, disabling NLS !'
18680    USE_NLS=no
18681    USE_INCLUDED_LIBINTL=no
18682 #else
18683
18684     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18685 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18686 if test "${ac_cv_gnu_library_2+set}" = set; then
18687   $as_echo_n "(cached) " >&6
18688 else
18689   cat >conftest.$ac_ext <<_ACEOF
18690 /* confdefs.h.  */
18691 _ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h.  */
18695
18696 #include <features.h>
18697 #ifdef __GNU_LIBRARY__
18698  #if (__GLIBC__ >= 2)
18699   Lucky GNU user
18700  #endif
18701 #endif
18702
18703 _ACEOF
18704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18705   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18706   ac_cv_gnu_library_2=yes
18707 else
18708   ac_cv_gnu_library_2=no
18709 fi
18710 rm -f conftest*
18711
18712
18713
18714 fi
18715 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18716 $as_echo "$ac_cv_gnu_library_2" >&6; }
18717
18718     GLIBC2="$ac_cv_gnu_library_2"
18719
18720
18721 if test -n "$ac_tool_prefix"; then
18722   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18725 $as_echo_n "checking for $ac_word... " >&6; }
18726 if test "${ac_cv_prog_RANLIB+set}" = set; then
18727   $as_echo_n "(cached) " >&6
18728 else
18729   if test -n "$RANLIB"; then
18730   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18731 else
18732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18733 for as_dir in $PATH
18734 do
18735   IFS=$as_save_IFS
18736   test -z "$as_dir" && as_dir=.
18737   for ac_exec_ext in '' $ac_executable_extensions; do
18738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18739     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18740     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18741     break 2
18742   fi
18743 done
18744 done
18745 IFS=$as_save_IFS
18746
18747 fi
18748 fi
18749 RANLIB=$ac_cv_prog_RANLIB
18750 if test -n "$RANLIB"; then
18751   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18752 $as_echo "$RANLIB" >&6; }
18753 else
18754   { $as_echo "$as_me:$LINENO: result: no" >&5
18755 $as_echo "no" >&6; }
18756 fi
18757
18758
18759 fi
18760 if test -z "$ac_cv_prog_RANLIB"; then
18761   ac_ct_RANLIB=$RANLIB
18762   # Extract the first word of "ranlib", so it can be a program name with args.
18763 set dummy ranlib; ac_word=$2
18764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18765 $as_echo_n "checking for $ac_word... " >&6; }
18766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18767   $as_echo_n "(cached) " >&6
18768 else
18769   if test -n "$ac_ct_RANLIB"; then
18770   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18771 else
18772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773 for as_dir in $PATH
18774 do
18775   IFS=$as_save_IFS
18776   test -z "$as_dir" && as_dir=.
18777   for ac_exec_ext in '' $ac_executable_extensions; do
18778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18779     ac_cv_prog_ac_ct_RANLIB="ranlib"
18780     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18781     break 2
18782   fi
18783 done
18784 done
18785 IFS=$as_save_IFS
18786
18787 fi
18788 fi
18789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18790 if test -n "$ac_ct_RANLIB"; then
18791   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18792 $as_echo "$ac_ct_RANLIB" >&6; }
18793 else
18794   { $as_echo "$as_me:$LINENO: result: no" >&5
18795 $as_echo "no" >&6; }
18796 fi
18797
18798   if test "x$ac_ct_RANLIB" = x; then
18799     RANLIB=":"
18800   else
18801     case $cross_compiling:$ac_tool_warned in
18802 yes:)
18803 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18805 ac_tool_warned=yes ;;
18806 esac
18807     RANLIB=$ac_ct_RANLIB
18808   fi
18809 else
18810   RANLIB="$ac_cv_prog_RANLIB"
18811 fi
18812
18813
18814         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18815 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18816 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18817   $as_echo_n "(cached) " >&6
18818 else
18819   ac_check_lib_save_LIBS=$LIBS
18820 LIBS="-lcposix  $LIBS"
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827
18828 /* Override any GCC internal prototype to avoid an error.
18829    Use char because int might match the return type of a GCC
18830    builtin and then its argument prototype would still apply.  */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char strerror ();
18835 int
18836 main ()
18837 {
18838 return strerror ();
18839   ;
18840   return 0;
18841 }
18842 _ACEOF
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847   *) ac_try_echo=$ac_try;;
18848 esac
18849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18850 $as_echo "$ac_try_echo") >&5
18851   (eval "$ac_link") 2>conftest.er1
18852   ac_status=$?
18853   grep -v '^ *+' conftest.er1 >conftest.err
18854   rm -f conftest.er1
18855   cat conftest.err >&5
18856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); } && {
18858          test -z "$ac_c_werror_flag" ||
18859          test ! -s conftest.err
18860        } && test -s conftest$ac_exeext && {
18861          test "$cross_compiling" = yes ||
18862          $as_test_x conftest$ac_exeext
18863        }; then
18864   ac_cv_lib_cposix_strerror=yes
18865 else
18866   $as_echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18868
18869         ac_cv_lib_cposix_strerror=no
18870 fi
18871
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18874       conftest$ac_exeext conftest.$ac_ext
18875 LIBS=$ac_check_lib_save_LIBS
18876 fi
18877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18878 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18879 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
18880   LIBS="$LIBS -lcposix"
18881 fi
18882
18883
18884
18885 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18886 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18887 if test "${ac_cv_c_const+set}" = set; then
18888   $as_echo_n "(cached) " >&6
18889 else
18890   cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h.  */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h.  */
18896
18897 int
18898 main ()
18899 {
18900 /* FIXME: Include the comments suggested by Paul. */
18901 #ifndef __cplusplus
18902   /* Ultrix mips cc rejects this.  */
18903   typedef int charset[2];
18904   const charset cs;
18905   /* SunOS 4.1.1 cc rejects this.  */
18906   char const *const *pcpcc;
18907   char **ppc;
18908   /* NEC SVR4.0.2 mips cc rejects this.  */
18909   struct point {int x, y;};
18910   static struct point const zero = {0,0};
18911   /* AIX XL C 1.02.0.0 rejects this.
18912      It does not let you subtract one const X* pointer from another in
18913      an arm of an if-expression whose if-part is not a constant
18914      expression */
18915   const char *g = "string";
18916   pcpcc = &g + (g ? g-g : 0);
18917   /* HPUX 7.0 cc rejects these. */
18918   ++pcpcc;
18919   ppc = (char**) pcpcc;
18920   pcpcc = (char const *const *) ppc;
18921   { /* SCO 3.2v4 cc rejects this.  */
18922     char *t;
18923     char const *s = 0 ? (char *) 0 : (char const *) 0;
18924
18925     *t++ = 0;
18926     if (s) return 0;
18927   }
18928   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18929     int x[] = {25, 17};
18930     const int *foo = &x[0];
18931     ++foo;
18932   }
18933   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18934     typedef const int *iptr;
18935     iptr p = 0;
18936     ++p;
18937   }
18938   { /* AIX XL C 1.02.0.0 rejects this saying
18939        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18940     struct s { int j; const int *ap[3]; };
18941     struct s *b; b->j = 5;
18942   }
18943   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18944     const int foo = 10;
18945     if (!foo) return 0;
18946   }
18947   return !cs[0] && !zero.x;
18948 #endif
18949
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext
18955 if { (ac_try="$ac_compile"
18956 case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18961 $as_echo "$ac_try_echo") >&5
18962   (eval "$ac_compile") 2>conftest.er1
18963   ac_status=$?
18964   grep -v '^ *+' conftest.er1 >conftest.err
18965   rm -f conftest.er1
18966   cat conftest.err >&5
18967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); } && {
18969          test -z "$ac_c_werror_flag" ||
18970          test ! -s conftest.err
18971        } && test -s conftest.$ac_objext; then
18972   ac_cv_c_const=yes
18973 else
18974   $as_echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977         ac_cv_c_const=no
18978 fi
18979
18980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 fi
18982 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18983 $as_echo "$ac_cv_c_const" >&6; }
18984 if test $ac_cv_c_const = no; then
18985
18986 cat >>confdefs.h <<\_ACEOF
18987 #define const /**/
18988 _ACEOF
18989
18990 fi
18991
18992
18993   { $as_echo "$as_me:$LINENO: checking for signed" >&5
18994 $as_echo_n "checking for signed... " >&6; }
18995 if test "${bh_cv_c_signed+set}" = set; then
18996   $as_echo_n "(cached) " >&6
18997 else
18998   cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004
19005 int
19006 main ()
19007 {
19008 signed char x;
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020 $as_echo "$ac_try_echo") >&5
19021   (eval "$ac_compile") 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } && {
19028          test -z "$ac_c_werror_flag" ||
19029          test ! -s conftest.err
19030        } && test -s conftest.$ac_objext; then
19031   bh_cv_c_signed=yes
19032 else
19033   $as_echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19035
19036         bh_cv_c_signed=no
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 fi
19041 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19042 $as_echo "$bh_cv_c_signed" >&6; }
19043   if test $bh_cv_c_signed = no; then
19044
19045 cat >>confdefs.h <<\_ACEOF
19046 #define signed /**/
19047 _ACEOF
19048
19049   fi
19050
19051 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19052 $as_echo_n "checking for inline... " >&6; }
19053 if test "${ac_cv_c_inline+set}" = set; then
19054   $as_echo_n "(cached) " >&6
19055 else
19056   ac_cv_c_inline=no
19057 for ac_kw in inline __inline__ __inline; do
19058   cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064 #ifndef __cplusplus
19065 typedef int foo_t;
19066 static $ac_kw foo_t static_foo () {return 0; }
19067 $ac_kw foo_t foo () {return 0; }
19068 #endif
19069
19070 _ACEOF
19071 rm -f conftest.$ac_objext
19072 if { (ac_try="$ac_compile"
19073 case "(($ac_try" in
19074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075   *) ac_try_echo=$ac_try;;
19076 esac
19077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19078 $as_echo "$ac_try_echo") >&5
19079   (eval "$ac_compile") 2>conftest.er1
19080   ac_status=$?
19081   grep -v '^ *+' conftest.er1 >conftest.err
19082   rm -f conftest.er1
19083   cat conftest.err >&5
19084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); } && {
19086          test -z "$ac_c_werror_flag" ||
19087          test ! -s conftest.err
19088        } && test -s conftest.$ac_objext; then
19089   ac_cv_c_inline=$ac_kw
19090 else
19091   $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094
19095 fi
19096
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098   test "$ac_cv_c_inline" != no && break
19099 done
19100
19101 fi
19102 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19103 $as_echo "$ac_cv_c_inline" >&6; }
19104
19105
19106 case $ac_cv_c_inline in
19107   inline | yes) ;;
19108   *)
19109     case $ac_cv_c_inline in
19110       no) ac_val=;;
19111       *) ac_val=$ac_cv_c_inline;;
19112     esac
19113     cat >>confdefs.h <<_ACEOF
19114 #ifndef __cplusplus
19115 #define inline $ac_val
19116 #endif
19117 _ACEOF
19118     ;;
19119 esac
19120
19121 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19122 $as_echo_n "checking for off_t... " >&6; }
19123 if test "${ac_cv_type_off_t+set}" = set; then
19124   $as_echo_n "(cached) " >&6
19125 else
19126   ac_cv_type_off_t=no
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133 $ac_includes_default
19134 int
19135 main ()
19136 {
19137 if (sizeof (off_t))
19138        return 0;
19139   ;
19140   return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext
19144 if { (ac_try="$ac_compile"
19145 case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19150 $as_echo "$ac_try_echo") >&5
19151   (eval "$ac_compile") 2>conftest.er1
19152   ac_status=$?
19153   grep -v '^ *+' conftest.er1 >conftest.err
19154   rm -f conftest.er1
19155   cat conftest.err >&5
19156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); } && {
19158          test -z "$ac_c_werror_flag" ||
19159          test ! -s conftest.err
19160        } && test -s conftest.$ac_objext; then
19161   cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167 $ac_includes_default
19168 int
19169 main ()
19170 {
19171 if (sizeof ((off_t)))
19172           return 0;
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 rm -f conftest.$ac_objext
19178 if { (ac_try="$ac_compile"
19179 case "(($ac_try" in
19180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181   *) ac_try_echo=$ac_try;;
19182 esac
19183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19184 $as_echo "$ac_try_echo") >&5
19185   (eval "$ac_compile") 2>conftest.er1
19186   ac_status=$?
19187   grep -v '^ *+' conftest.er1 >conftest.err
19188   rm -f conftest.er1
19189   cat conftest.err >&5
19190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); } && {
19192          test -z "$ac_c_werror_flag" ||
19193          test ! -s conftest.err
19194        } && test -s conftest.$ac_objext; then
19195   :
19196 else
19197   $as_echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200         ac_cv_type_off_t=yes
19201 fi
19202
19203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204 else
19205   $as_echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208
19209 fi
19210
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212 fi
19213 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19214 $as_echo "$ac_cv_type_off_t" >&6; }
19215 if test "x$ac_cv_type_off_t" = x""yes; then
19216   :
19217 else
19218
19219 cat >>confdefs.h <<_ACEOF
19220 #define off_t long int
19221 _ACEOF
19222
19223 fi
19224
19225 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19226 $as_echo_n "checking for size_t... " >&6; }
19227 if test "${ac_cv_type_size_t+set}" = set; then
19228   $as_echo_n "(cached) " >&6
19229 else
19230   ac_cv_type_size_t=no
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h.  */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h.  */
19237 $ac_includes_default
19238 int
19239 main ()
19240 {
19241 if (sizeof (size_t))
19242        return 0;
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254 $as_echo "$ac_try_echo") >&5
19255   (eval "$ac_compile") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } && {
19262          test -z "$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        } && test -s conftest.$ac_objext; then
19265   cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h.  */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h.  */
19271 $ac_includes_default
19272 int
19273 main ()
19274 {
19275 if (sizeof ((size_t)))
19276           return 0;
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext
19282 if { (ac_try="$ac_compile"
19283 case "(($ac_try" in
19284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285   *) ac_try_echo=$ac_try;;
19286 esac
19287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19288 $as_echo "$ac_try_echo") >&5
19289   (eval "$ac_compile") 2>conftest.er1
19290   ac_status=$?
19291   grep -v '^ *+' conftest.er1 >conftest.err
19292   rm -f conftest.er1
19293   cat conftest.err >&5
19294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } && {
19296          test -z "$ac_c_werror_flag" ||
19297          test ! -s conftest.err
19298        } && test -s conftest.$ac_objext; then
19299   :
19300 else
19301   $as_echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304         ac_cv_type_size_t=yes
19305 fi
19306
19307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 else
19309   $as_echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316 fi
19317 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19318 $as_echo "$ac_cv_type_size_t" >&6; }
19319 if test "x$ac_cv_type_size_t" = x""yes; then
19320   :
19321 else
19322
19323 cat >>confdefs.h <<_ACEOF
19324 #define size_t unsigned int
19325 _ACEOF
19326
19327 fi
19328
19329
19330   { $as_echo "$as_me:$LINENO: checking for long long" >&5
19331 $as_echo_n "checking for long long... " >&6; }
19332 if test "${ac_cv_type_long_long+set}" = set; then
19333   $as_echo_n "(cached) " >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 long long ll = 1LL; int i = 63;
19342 int
19343 main ()
19344 {
19345 long long llmax = (long long) -1;
19346      return ll << i | ll >> i | llmax / ll | llmax % ll;
19347   ;
19348   return 0;
19349 }
19350 _ACEOF
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355   *) ac_try_echo=$ac_try;;
19356 esac
19357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19358 $as_echo "$ac_try_echo") >&5
19359   (eval "$ac_link") 2>conftest.er1
19360   ac_status=$?
19361   grep -v '^ *+' conftest.er1 >conftest.err
19362   rm -f conftest.er1
19363   cat conftest.err >&5
19364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } && {
19366          test -z "$ac_c_werror_flag" ||
19367          test ! -s conftest.err
19368        } && test -s conftest$ac_exeext && {
19369          test "$cross_compiling" = yes ||
19370          $as_test_x conftest$ac_exeext
19371        }; then
19372   ac_cv_type_long_long=yes
19373 else
19374   $as_echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377         ac_cv_type_long_long=no
19378 fi
19379
19380 rm -rf conftest.dSYM
19381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382       conftest$ac_exeext conftest.$ac_ext
19383 fi
19384 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19385 $as_echo "$ac_cv_type_long_long" >&6; }
19386   if test $ac_cv_type_long_long = yes; then
19387
19388 cat >>confdefs.h <<\_ACEOF
19389 #define HAVE_LONG_LONG 1
19390 _ACEOF
19391
19392   fi
19393
19394
19395   { $as_echo "$as_me:$LINENO: checking for long double" >&5
19396 $as_echo_n "checking for long double... " >&6; }
19397 if test "${gt_cv_c_long_double+set}" = set; then
19398   $as_echo_n "(cached) " >&6
19399 else
19400   if test "$GCC" = yes; then
19401        gt_cv_c_long_double=yes
19402      else
19403        cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h.  */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h.  */
19409
19410          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19411          long double foo = 0.0;
19412          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19413          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19414
19415 int
19416 main ()
19417 {
19418
19419   ;
19420   return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext
19424 if { (ac_try="$ac_compile"
19425 case "(($ac_try" in
19426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427   *) ac_try_echo=$ac_try;;
19428 esac
19429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430 $as_echo "$ac_try_echo") >&5
19431   (eval "$ac_compile") 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } && {
19438          test -z "$ac_c_werror_flag" ||
19439          test ! -s conftest.err
19440        } && test -s conftest.$ac_objext; then
19441   gt_cv_c_long_double=yes
19442 else
19443   $as_echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446         gt_cv_c_long_double=no
19447 fi
19448
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450      fi
19451 fi
19452 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19453 $as_echo "$gt_cv_c_long_double" >&6; }
19454   if test $gt_cv_c_long_double = yes; then
19455
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE_LONG_DOUBLE 1
19458 _ACEOF
19459
19460   fi
19461
19462
19463   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
19464 $as_echo_n "checking for wchar_t... " >&6; }
19465 if test "${gt_cv_c_wchar_t+set}" = set; then
19466   $as_echo_n "(cached) " >&6
19467 else
19468   cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h.  */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h.  */
19474 #include <stddef.h>
19475        wchar_t foo = (wchar_t)'\0';
19476 int
19477 main ()
19478 {
19479
19480   ;
19481   return 0;
19482 }
19483 _ACEOF
19484 rm -f conftest.$ac_objext
19485 if { (ac_try="$ac_compile"
19486 case "(($ac_try" in
19487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488   *) ac_try_echo=$ac_try;;
19489 esac
19490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19491 $as_echo "$ac_try_echo") >&5
19492   (eval "$ac_compile") 2>conftest.er1
19493   ac_status=$?
19494   grep -v '^ *+' conftest.er1 >conftest.err
19495   rm -f conftest.er1
19496   cat conftest.err >&5
19497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); } && {
19499          test -z "$ac_c_werror_flag" ||
19500          test ! -s conftest.err
19501        } && test -s conftest.$ac_objext; then
19502   gt_cv_c_wchar_t=yes
19503 else
19504   $as_echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19506
19507         gt_cv_c_wchar_t=no
19508 fi
19509
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19511 fi
19512 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19513 $as_echo "$gt_cv_c_wchar_t" >&6; }
19514   if test $gt_cv_c_wchar_t = yes; then
19515
19516 cat >>confdefs.h <<\_ACEOF
19517 #define HAVE_WCHAR_T 1
19518 _ACEOF
19519
19520   fi
19521
19522
19523   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
19524 $as_echo_n "checking for wint_t... " >&6; }
19525 if test "${gt_cv_c_wint_t+set}" = set; then
19526   $as_echo_n "(cached) " >&6
19527 else
19528   cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h.  */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h.  */
19534 #include <wchar.h>
19535        wint_t foo = (wchar_t)'\0';
19536 int
19537 main ()
19538 {
19539
19540   ;
19541   return 0;
19542 }
19543 _ACEOF
19544 rm -f conftest.$ac_objext
19545 if { (ac_try="$ac_compile"
19546 case "(($ac_try" in
19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548   *) ac_try_echo=$ac_try;;
19549 esac
19550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19551 $as_echo "$ac_try_echo") >&5
19552   (eval "$ac_compile") 2>conftest.er1
19553   ac_status=$?
19554   grep -v '^ *+' conftest.er1 >conftest.err
19555   rm -f conftest.er1
19556   cat conftest.err >&5
19557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } && {
19559          test -z "$ac_c_werror_flag" ||
19560          test ! -s conftest.err
19561        } && test -s conftest.$ac_objext; then
19562   gt_cv_c_wint_t=yes
19563 else
19564   $as_echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567         gt_cv_c_wint_t=no
19568 fi
19569
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 fi
19572 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19573 $as_echo "$gt_cv_c_wint_t" >&6; }
19574   if test $gt_cv_c_wint_t = yes; then
19575
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_WINT_T 1
19578 _ACEOF
19579
19580   fi
19581
19582
19583   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19584 $as_echo_n "checking for inttypes.h... " >&6; }
19585 if test "${gl_cv_header_inttypes_h+set}" = set; then
19586   $as_echo_n "(cached) " >&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 #include <sys/types.h>
19595 #include <inttypes.h>
19596 int
19597 main ()
19598 {
19599 uintmax_t i = (uintmax_t) -1;
19600   ;
19601   return 0;
19602 }
19603 _ACEOF
19604 rm -f conftest.$ac_objext
19605 if { (ac_try="$ac_compile"
19606 case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19611 $as_echo "$ac_try_echo") >&5
19612   (eval "$ac_compile") 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } && {
19619          test -z "$ac_c_werror_flag" ||
19620          test ! -s conftest.err
19621        } && test -s conftest.$ac_objext; then
19622   gl_cv_header_inttypes_h=yes
19623 else
19624   $as_echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627         gl_cv_header_inttypes_h=no
19628 fi
19629
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 fi
19632 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19633 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19634   if test $gl_cv_header_inttypes_h = yes; then
19635
19636 cat >>confdefs.h <<_ACEOF
19637 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19638 _ACEOF
19639
19640   fi
19641
19642
19643   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
19644 $as_echo_n "checking for stdint.h... " >&6; }
19645 if test "${gl_cv_header_stdint_h+set}" = set; then
19646   $as_echo_n "(cached) " >&6
19647 else
19648   cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654 #include <sys/types.h>
19655 #include <stdint.h>
19656 int
19657 main ()
19658 {
19659 uintmax_t i = (uintmax_t) -1;
19660   ;
19661   return 0;
19662 }
19663 _ACEOF
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668   *) ac_try_echo=$ac_try;;
19669 esac
19670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19671 $as_echo "$ac_try_echo") >&5
19672   (eval "$ac_compile") 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   $as_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_objext; then
19682   gl_cv_header_stdint_h=yes
19683 else
19684   $as_echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687         gl_cv_header_stdint_h=no
19688 fi
19689
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19691 fi
19692 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19693 $as_echo "$gl_cv_header_stdint_h" >&6; }
19694   if test $gl_cv_header_stdint_h = yes; then
19695
19696 cat >>confdefs.h <<_ACEOF
19697 #define HAVE_STDINT_H_WITH_UINTMAX 1
19698 _ACEOF
19699
19700   fi
19701
19702
19703
19704
19705   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
19706 $as_echo_n "checking for intmax_t... " >&6; }
19707 if test "${gt_cv_c_intmax_t+set}" = set; then
19708   $as_echo_n "(cached) " >&6
19709 else
19710   cat >conftest.$ac_ext <<_ACEOF
19711 /* confdefs.h.  */
19712 _ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h.  */
19716
19717 #include <stddef.h>
19718 #include <stdlib.h>
19719 #if HAVE_STDINT_H_WITH_UINTMAX
19720 #include <stdint.h>
19721 #endif
19722 #if HAVE_INTTYPES_H_WITH_UINTMAX
19723 #include <inttypes.h>
19724 #endif
19725
19726 int
19727 main ()
19728 {
19729 intmax_t x = -1;
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext
19735 if { (ac_try="$ac_compile"
19736 case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19741 $as_echo "$ac_try_echo") >&5
19742   (eval "$ac_compile") 2>conftest.er1
19743   ac_status=$?
19744   grep -v '^ *+' conftest.er1 >conftest.err
19745   rm -f conftest.er1
19746   cat conftest.err >&5
19747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } && {
19749          test -z "$ac_c_werror_flag" ||
19750          test ! -s conftest.err
19751        } && test -s conftest.$ac_objext; then
19752   gt_cv_c_intmax_t=yes
19753 else
19754   $as_echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757         gt_cv_c_intmax_t=no
19758 fi
19759
19760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19761 fi
19762 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19763 $as_echo "$gt_cv_c_intmax_t" >&6; }
19764   if test $gt_cv_c_intmax_t = yes; then
19765
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_INTMAX_T 1
19768 _ACEOF
19769
19770   fi
19771
19772
19773
19774   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19775 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19776 if test "${gt_cv_func_printf_posix+set}" = set; then
19777   $as_echo_n "(cached) " >&6
19778 else
19779
19780       if test "$cross_compiling" = yes; then
19781
19782         cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h.  */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h.  */
19788
19789 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19790   notposix
19791 #endif
19792
19793 _ACEOF
19794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19795   $EGREP "notposix" >/dev/null 2>&1; then
19796   gt_cv_func_printf_posix="guessing no"
19797 else
19798   gt_cv_func_printf_posix="guessing yes"
19799 fi
19800 rm -f conftest*
19801
19802
19803 else
19804   cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810
19811 #include <stdio.h>
19812 #include <string.h>
19813 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19814    dollar expansion (possibly an autoconf bug).  */
19815 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19816 static char buf[100];
19817 int main ()
19818 {
19819   sprintf (buf, format, 33, 55);
19820   return (strcmp (buf, "55 33") != 0);
19821 }
19822 _ACEOF
19823 rm -f conftest$ac_exeext
19824 if { (ac_try="$ac_link"
19825 case "(($ac_try" in
19826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827   *) ac_try_echo=$ac_try;;
19828 esac
19829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19830 $as_echo "$ac_try_echo") >&5
19831   (eval "$ac_link") 2>&5
19832   ac_status=$?
19833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19835   { (case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841   (eval "$ac_try") 2>&5
19842   ac_status=$?
19843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; }; then
19845   gt_cv_func_printf_posix=yes
19846 else
19847   $as_echo "$as_me: program exited with status $ac_status" >&5
19848 $as_echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851 ( exit $ac_status )
19852 gt_cv_func_printf_posix=no
19853 fi
19854 rm -rf conftest.dSYM
19855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19856 fi
19857
19858
19859
19860 fi
19861 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19862 $as_echo "$gt_cv_func_printf_posix" >&6; }
19863   case $gt_cv_func_printf_posix in
19864     *yes)
19865
19866 cat >>confdefs.h <<\_ACEOF
19867 #define HAVE_POSIX_PRINTF 1
19868 _ACEOF
19869
19870       ;;
19871   esac
19872
19873 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19874 # for constant arguments.  Useless!
19875 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19876 $as_echo_n "checking for working alloca.h... " >&6; }
19877 if test "${ac_cv_working_alloca_h+set}" = set; then
19878   $as_echo_n "(cached) " >&6
19879 else
19880   cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h.  */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h.  */
19886 #include <alloca.h>
19887 int
19888 main ()
19889 {
19890 char *p = (char *) alloca (2 * sizeof (int));
19891                           if (p) return 0;
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext conftest$ac_exeext
19897 if { (ac_try="$ac_link"
19898 case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19903 $as_echo "$ac_try_echo") >&5
19904   (eval "$ac_link") 2>conftest.er1
19905   ac_status=$?
19906   grep -v '^ *+' conftest.er1 >conftest.err
19907   rm -f conftest.er1
19908   cat conftest.err >&5
19909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); } && {
19911          test -z "$ac_c_werror_flag" ||
19912          test ! -s conftest.err
19913        } && test -s conftest$ac_exeext && {
19914          test "$cross_compiling" = yes ||
19915          $as_test_x conftest$ac_exeext
19916        }; then
19917   ac_cv_working_alloca_h=yes
19918 else
19919   $as_echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19921
19922         ac_cv_working_alloca_h=no
19923 fi
19924
19925 rm -rf conftest.dSYM
19926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19927       conftest$ac_exeext conftest.$ac_ext
19928 fi
19929 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19930 $as_echo "$ac_cv_working_alloca_h" >&6; }
19931 if test $ac_cv_working_alloca_h = yes; then
19932
19933 cat >>confdefs.h <<\_ACEOF
19934 #define HAVE_ALLOCA_H 1
19935 _ACEOF
19936
19937 fi
19938
19939 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19940 $as_echo_n "checking for alloca... " >&6; }
19941 if test "${ac_cv_func_alloca_works+set}" = set; then
19942   $as_echo_n "(cached) " >&6
19943 else
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #ifdef __GNUC__
19951 # define alloca __builtin_alloca
19952 #else
19953 # ifdef _MSC_VER
19954 #  include <malloc.h>
19955 #  define alloca _alloca
19956 # else
19957 #  ifdef HAVE_ALLOCA_H
19958 #   include <alloca.h>
19959 #  else
19960 #   ifdef _AIX
19961  #pragma alloca
19962 #   else
19963 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19964 char *alloca ();
19965 #    endif
19966 #   endif
19967 #  endif
19968 # endif
19969 #endif
19970
19971 int
19972 main ()
19973 {
19974 char *p = (char *) alloca (1);
19975                                     if (p) return 0;
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988   (eval "$ac_link") 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } && {
19995          test -z "$ac_c_werror_flag" ||
19996          test ! -s conftest.err
19997        } && test -s conftest$ac_exeext && {
19998          test "$cross_compiling" = yes ||
19999          $as_test_x conftest$ac_exeext
20000        }; then
20001   ac_cv_func_alloca_works=yes
20002 else
20003   $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         ac_cv_func_alloca_works=no
20007 fi
20008
20009 rm -rf conftest.dSYM
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011       conftest$ac_exeext conftest.$ac_ext
20012 fi
20013 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20014 $as_echo "$ac_cv_func_alloca_works" >&6; }
20015
20016 if test $ac_cv_func_alloca_works = yes; then
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define HAVE_ALLOCA 1
20020 _ACEOF
20021
20022 else
20023   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20024 # that cause trouble.  Some versions do not even contain alloca or
20025 # contain a buggy version.  If you still want to use their alloca,
20026 # use ar to extract alloca.o from them instead of compiling alloca.c.
20027
20028 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20029
20030 cat >>confdefs.h <<\_ACEOF
20031 #define C_ALLOCA 1
20032 _ACEOF
20033
20034
20035 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20036 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20037 if test "${ac_cv_os_cray+set}" = set; then
20038   $as_echo_n "(cached) " >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 #if defined CRAY && ! defined CRAY2
20047 webecray
20048 #else
20049 wenotbecray
20050 #endif
20051
20052 _ACEOF
20053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20054   $EGREP "webecray" >/dev/null 2>&1; then
20055   ac_cv_os_cray=yes
20056 else
20057   ac_cv_os_cray=no
20058 fi
20059 rm -f conftest*
20060
20061 fi
20062 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20063 $as_echo "$ac_cv_os_cray" >&6; }
20064 if test $ac_cv_os_cray = yes; then
20065   for ac_func in _getb67 GETB67 getb67; do
20066     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20068 $as_echo_n "checking for $ac_func... " >&6; }
20069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20070   $as_echo_n "(cached) " >&6
20071 else
20072   cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20080 #define $ac_func innocuous_$ac_func
20081
20082 /* System header to define __stub macros and hopefully few prototypes,
20083     which can conflict with char $ac_func (); below.
20084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20085     <limits.h> exists even on freestanding compilers.  */
20086
20087 #ifdef __STDC__
20088 # include <limits.h>
20089 #else
20090 # include <assert.h>
20091 #endif
20092
20093 #undef $ac_func
20094
20095 /* Override any GCC internal prototype to avoid an error.
20096    Use char because int might match the return type of a GCC
20097    builtin and then its argument prototype would still apply.  */
20098 #ifdef __cplusplus
20099 extern "C"
20100 #endif
20101 char $ac_func ();
20102 /* The GNU C library defines this for functions which it implements
20103     to always fail with ENOSYS.  Some functions are actually named
20104     something starting with __ and the normal name is an alias.  */
20105 #if defined __stub_$ac_func || defined __stub___$ac_func
20106 choke me
20107 #endif
20108
20109 int
20110 main ()
20111 {
20112 return $ac_func ();
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext conftest$ac_exeext
20118 if { (ac_try="$ac_link"
20119 case "(($ac_try" in
20120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121   *) ac_try_echo=$ac_try;;
20122 esac
20123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20124 $as_echo "$ac_try_echo") >&5
20125   (eval "$ac_link") 2>conftest.er1
20126   ac_status=$?
20127   grep -v '^ *+' conftest.er1 >conftest.err
20128   rm -f conftest.er1
20129   cat conftest.err >&5
20130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); } && {
20132          test -z "$ac_c_werror_flag" ||
20133          test ! -s conftest.err
20134        } && test -s conftest$ac_exeext && {
20135          test "$cross_compiling" = yes ||
20136          $as_test_x conftest$ac_exeext
20137        }; then
20138   eval "$as_ac_var=yes"
20139 else
20140   $as_echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143         eval "$as_ac_var=no"
20144 fi
20145
20146 rm -rf conftest.dSYM
20147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20148       conftest$ac_exeext conftest.$ac_ext
20149 fi
20150 ac_res=`eval 'as_val=${'$as_ac_var'}
20151                  $as_echo "$as_val"'`
20152                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20153 $as_echo "$ac_res" >&6; }
20154 as_val=`eval 'as_val=${'$as_ac_var'}
20155                  $as_echo "$as_val"'`
20156    if test "x$as_val" = x""yes; then
20157
20158 cat >>confdefs.h <<_ACEOF
20159 #define CRAY_STACKSEG_END $ac_func
20160 _ACEOF
20161
20162     break
20163 fi
20164
20165   done
20166 fi
20167
20168 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20169 $as_echo_n "checking stack direction for C alloca... " >&6; }
20170 if test "${ac_cv_c_stack_direction+set}" = set; then
20171   $as_echo_n "(cached) " >&6
20172 else
20173   if test "$cross_compiling" = yes; then
20174   ac_cv_c_stack_direction=0
20175 else
20176   cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h.  */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h.  */
20182 $ac_includes_default
20183 int
20184 find_stack_direction ()
20185 {
20186   static char *addr = 0;
20187   auto char dummy;
20188   if (addr == 0)
20189     {
20190       addr = &dummy;
20191       return find_stack_direction ();
20192     }
20193   else
20194     return (&dummy > addr) ? 1 : -1;
20195 }
20196
20197 int
20198 main ()
20199 {
20200   return find_stack_direction () < 0;
20201 }
20202 _ACEOF
20203 rm -f conftest$ac_exeext
20204 if { (ac_try="$ac_link"
20205 case "(($ac_try" in
20206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207   *) ac_try_echo=$ac_try;;
20208 esac
20209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20210 $as_echo "$ac_try_echo") >&5
20211   (eval "$ac_link") 2>&5
20212   ac_status=$?
20213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20215   { (case "(($ac_try" in
20216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217   *) ac_try_echo=$ac_try;;
20218 esac
20219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20220 $as_echo "$ac_try_echo") >&5
20221   (eval "$ac_try") 2>&5
20222   ac_status=$?
20223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; }; then
20225   ac_cv_c_stack_direction=1
20226 else
20227   $as_echo "$as_me: program exited with status $ac_status" >&5
20228 $as_echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20230
20231 ( exit $ac_status )
20232 ac_cv_c_stack_direction=-1
20233 fi
20234 rm -rf conftest.dSYM
20235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20236 fi
20237
20238
20239 fi
20240 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20241 $as_echo "$ac_cv_c_stack_direction" >&6; }
20242
20243 cat >>confdefs.h <<_ACEOF
20244 #define STACK_DIRECTION $ac_cv_c_stack_direction
20245 _ACEOF
20246
20247
20248 fi
20249
20250
20251
20252 for ac_header in stdlib.h unistd.h
20253 do
20254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20256   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20257 $as_echo_n "checking for $ac_header... " >&6; }
20258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259   $as_echo_n "(cached) " >&6
20260 fi
20261 ac_res=`eval 'as_val=${'$as_ac_Header'}
20262                  $as_echo "$as_val"'`
20263                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20264 $as_echo "$ac_res" >&6; }
20265 else
20266   # Is the header compilable?
20267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20268 $as_echo_n "checking $ac_header usability... " >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 $ac_includes_default
20276 #include <$ac_header>
20277 _ACEOF
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20285 $as_echo "$ac_try_echo") >&5
20286   (eval "$ac_compile") 2>conftest.er1
20287   ac_status=$?
20288   grep -v '^ *+' conftest.er1 >conftest.err
20289   rm -f conftest.er1
20290   cat conftest.err >&5
20291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } && {
20293          test -z "$ac_c_werror_flag" ||
20294          test ! -s conftest.err
20295        } && test -s conftest.$ac_objext; then
20296   ac_header_compiler=yes
20297 else
20298   $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301         ac_header_compiler=no
20302 fi
20303
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20306 $as_echo "$ac_header_compiler" >&6; }
20307
20308 # Is the header present?
20309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20310 $as_echo_n "checking $ac_header presence... " >&6; }
20311 cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h.  */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h.  */
20317 #include <$ac_header>
20318 _ACEOF
20319 if { (ac_try="$ac_cpp conftest.$ac_ext"
20320 case "(($ac_try" in
20321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322   *) ac_try_echo=$ac_try;;
20323 esac
20324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20325 $as_echo "$ac_try_echo") >&5
20326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } >/dev/null && {
20333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20334          test ! -s conftest.err
20335        }; then
20336   ac_header_preproc=yes
20337 else
20338   $as_echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341   ac_header_preproc=no
20342 fi
20343
20344 rm -f conftest.err conftest.$ac_ext
20345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20346 $as_echo "$ac_header_preproc" >&6; }
20347
20348 # So?  What about this header?
20349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20350   yes:no: )
20351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20355     ac_header_preproc=yes
20356     ;;
20357   no:yes:* )
20358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20361 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20365 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20370
20371     ;;
20372 esac
20373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20374 $as_echo_n "checking for $ac_header... " >&6; }
20375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376   $as_echo_n "(cached) " >&6
20377 else
20378   eval "$as_ac_Header=\$ac_header_preproc"
20379 fi
20380 ac_res=`eval 'as_val=${'$as_ac_Header'}
20381                  $as_echo "$as_val"'`
20382                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20383 $as_echo "$ac_res" >&6; }
20384
20385 fi
20386 as_val=`eval 'as_val=${'$as_ac_Header'}
20387                  $as_echo "$as_val"'`
20388    if test "x$as_val" = x""yes; then
20389   cat >>confdefs.h <<_ACEOF
20390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20391 _ACEOF
20392
20393 fi
20394
20395 done
20396
20397
20398 for ac_func in getpagesize
20399 do
20400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20402 $as_echo_n "checking for $ac_func... " >&6; }
20403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20404   $as_echo_n "(cached) " >&6
20405 else
20406   cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h.  */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h.  */
20412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20414 #define $ac_func innocuous_$ac_func
20415
20416 /* System header to define __stub macros and hopefully few prototypes,
20417     which can conflict with char $ac_func (); below.
20418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20419     <limits.h> exists even on freestanding compilers.  */
20420
20421 #ifdef __STDC__
20422 # include <limits.h>
20423 #else
20424 # include <assert.h>
20425 #endif
20426
20427 #undef $ac_func
20428
20429 /* Override any GCC internal prototype to avoid an error.
20430    Use char because int might match the return type of a GCC
20431    builtin and then its argument prototype would still apply.  */
20432 #ifdef __cplusplus
20433 extern "C"
20434 #endif
20435 char $ac_func ();
20436 /* The GNU C library defines this for functions which it implements
20437     to always fail with ENOSYS.  Some functions are actually named
20438     something starting with __ and the normal name is an alias.  */
20439 #if defined __stub_$ac_func || defined __stub___$ac_func
20440 choke me
20441 #endif
20442
20443 int
20444 main ()
20445 {
20446 return $ac_func ();
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455   *) ac_try_echo=$ac_try;;
20456 esac
20457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20458 $as_echo "$ac_try_echo") >&5
20459   (eval "$ac_link") 2>conftest.er1
20460   ac_status=$?
20461   grep -v '^ *+' conftest.er1 >conftest.err
20462   rm -f conftest.er1
20463   cat conftest.err >&5
20464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } && {
20466          test -z "$ac_c_werror_flag" ||
20467          test ! -s conftest.err
20468        } && test -s conftest$ac_exeext && {
20469          test "$cross_compiling" = yes ||
20470          $as_test_x conftest$ac_exeext
20471        }; then
20472   eval "$as_ac_var=yes"
20473 else
20474   $as_echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20476
20477         eval "$as_ac_var=no"
20478 fi
20479
20480 rm -rf conftest.dSYM
20481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20482       conftest$ac_exeext conftest.$ac_ext
20483 fi
20484 ac_res=`eval 'as_val=${'$as_ac_var'}
20485                  $as_echo "$as_val"'`
20486                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20487 $as_echo "$ac_res" >&6; }
20488 as_val=`eval 'as_val=${'$as_ac_var'}
20489                  $as_echo "$as_val"'`
20490    if test "x$as_val" = x""yes; then
20491   cat >>confdefs.h <<_ACEOF
20492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20493 _ACEOF
20494
20495 fi
20496 done
20497
20498 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20499 $as_echo_n "checking for working mmap... " >&6; }
20500 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20501   $as_echo_n "(cached) " >&6
20502 else
20503   if test "$cross_compiling" = yes; then
20504   ac_cv_func_mmap_fixed_mapped=no
20505 else
20506   cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h.  */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h.  */
20512 $ac_includes_default
20513 /* malloc might have been renamed as rpl_malloc. */
20514 #undef malloc
20515
20516 /* Thanks to Mike Haertel and Jim Avera for this test.
20517    Here is a matrix of mmap possibilities:
20518         mmap private not fixed
20519         mmap private fixed at somewhere currently unmapped
20520         mmap private fixed at somewhere already mapped
20521         mmap shared not fixed
20522         mmap shared fixed at somewhere currently unmapped
20523         mmap shared fixed at somewhere already mapped
20524    For private mappings, we should verify that changes cannot be read()
20525    back from the file, nor mmap's back from the file at a different
20526    address.  (There have been systems where private was not correctly
20527    implemented like the infamous i386 svr4.0, and systems where the
20528    VM page cache was not coherent with the file system buffer cache
20529    like early versions of FreeBSD and possibly contemporary NetBSD.)
20530    For shared mappings, we should conversely verify that changes get
20531    propagated back to all the places they're supposed to be.
20532
20533    Grep wants private fixed already mapped.
20534    The main things grep needs to know about mmap are:
20535    * does it exist and is it safe to write into the mmap'd area
20536    * how to use it (BSD variants)  */
20537
20538 #include <fcntl.h>
20539 #include <sys/mman.h>
20540
20541 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20542 char *malloc ();
20543 #endif
20544
20545 /* This mess was copied from the GNU getpagesize.h.  */
20546 #ifndef HAVE_GETPAGESIZE
20547 /* Assume that all systems that can run configure have sys/param.h.  */
20548 # ifndef HAVE_SYS_PARAM_H
20549 #  define HAVE_SYS_PARAM_H 1
20550 # endif
20551
20552 # ifdef _SC_PAGESIZE
20553 #  define getpagesize() sysconf(_SC_PAGESIZE)
20554 # else /* no _SC_PAGESIZE */
20555 #  ifdef HAVE_SYS_PARAM_H
20556 #   include <sys/param.h>
20557 #   ifdef EXEC_PAGESIZE
20558 #    define getpagesize() EXEC_PAGESIZE
20559 #   else /* no EXEC_PAGESIZE */
20560 #    ifdef NBPG
20561 #     define getpagesize() NBPG * CLSIZE
20562 #     ifndef CLSIZE
20563 #      define CLSIZE 1
20564 #     endif /* no CLSIZE */
20565 #    else /* no NBPG */
20566 #     ifdef NBPC
20567 #      define getpagesize() NBPC
20568 #     else /* no NBPC */
20569 #      ifdef PAGESIZE
20570 #       define getpagesize() PAGESIZE
20571 #      endif /* PAGESIZE */
20572 #     endif /* no NBPC */
20573 #    endif /* no NBPG */
20574 #   endif /* no EXEC_PAGESIZE */
20575 #  else /* no HAVE_SYS_PARAM_H */
20576 #   define getpagesize() 8192   /* punt totally */
20577 #  endif /* no HAVE_SYS_PARAM_H */
20578 # endif /* no _SC_PAGESIZE */
20579
20580 #endif /* no HAVE_GETPAGESIZE */
20581
20582 int
20583 main ()
20584 {
20585   char *data, *data2, *data3;
20586   int i, pagesize;
20587   int fd;
20588
20589   pagesize = getpagesize ();
20590
20591   /* First, make a file with some known garbage in it. */
20592   data = (char *) malloc (pagesize);
20593   if (!data)
20594     return 1;
20595   for (i = 0; i < pagesize; ++i)
20596     *(data + i) = rand ();
20597   umask (0);
20598   fd = creat ("conftest.mmap", 0600);
20599   if (fd < 0)
20600     return 1;
20601   if (write (fd, data, pagesize) != pagesize)
20602     return 1;
20603   close (fd);
20604
20605   /* Next, try to mmap the file at a fixed address which already has
20606      something else allocated at it.  If we can, also make sure that
20607      we see the same garbage.  */
20608   fd = open ("conftest.mmap", O_RDWR);
20609   if (fd < 0)
20610     return 1;
20611   data2 = (char *) malloc (2 * pagesize);
20612   if (!data2)
20613     return 1;
20614   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20615   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20616                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20617     return 1;
20618   for (i = 0; i < pagesize; ++i)
20619     if (*(data + i) != *(data2 + i))
20620       return 1;
20621
20622   /* Finally, make sure that changes to the mapped area do not
20623      percolate back to the file as seen by read().  (This is a bug on
20624      some variants of i386 svr4.0.)  */
20625   for (i = 0; i < pagesize; ++i)
20626     *(data2 + i) = *(data2 + i) + 1;
20627   data3 = (char *) malloc (pagesize);
20628   if (!data3)
20629     return 1;
20630   if (read (fd, data3, pagesize) != pagesize)
20631     return 1;
20632   for (i = 0; i < pagesize; ++i)
20633     if (*(data + i) != *(data3 + i))
20634       return 1;
20635   close (fd);
20636   return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20646 $as_echo "$ac_try_echo") >&5
20647   (eval "$ac_link") 2>&5
20648   ac_status=$?
20649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20651   { (case "(($ac_try" in
20652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653   *) ac_try_echo=$ac_try;;
20654 esac
20655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20656 $as_echo "$ac_try_echo") >&5
20657   (eval "$ac_try") 2>&5
20658   ac_status=$?
20659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); }; }; then
20661   ac_cv_func_mmap_fixed_mapped=yes
20662 else
20663   $as_echo "$as_me: program exited with status $ac_status" >&5
20664 $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667 ( exit $ac_status )
20668 ac_cv_func_mmap_fixed_mapped=no
20669 fi
20670 rm -rf conftest.dSYM
20671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20672 fi
20673
20674
20675 fi
20676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20677 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20678 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20679
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_MMAP 1
20682 _ACEOF
20683
20684 fi
20685 rm -f conftest.mmap
20686
20687
20688     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20689 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20690 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20691   $as_echo_n "(cached) " >&6
20692 else
20693   cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699
20700 #include <features.h>
20701 #ifdef __GNU_LIBRARY__
20702  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20703   Lucky GNU user
20704  #endif
20705 #endif
20706
20707 _ACEOF
20708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20709   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20710   ac_cv_gnu_library_2_1=yes
20711 else
20712   ac_cv_gnu_library_2_1=no
20713 fi
20714 rm -f conftest*
20715
20716
20717
20718 fi
20719 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20720 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20721
20722     GLIBC21="$ac_cv_gnu_library_2_1"
20723
20724
20725
20726
20727   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20728 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20729 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20730   $as_echo_n "(cached) " >&6
20731 else
20732
20733       if test "$cross_compiling" = yes; then
20734
20735           # Guess based on the CPU.
20736           case "$host_cpu" in
20737             alpha* | i3456786 | m68k | s390*)
20738               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20739             *)
20740               gt_cv_int_divbyzero_sigfpe="guessing no";;
20741           esac
20742
20743 else
20744   cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750
20751 #include <stdlib.h>
20752 #include <signal.h>
20753
20754 static void
20755 #ifdef __cplusplus
20756 sigfpe_handler (int sig)
20757 #else
20758 sigfpe_handler (sig) int sig;
20759 #endif
20760 {
20761   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20762   exit (sig != SIGFPE);
20763 }
20764
20765 int x = 1;
20766 int y = 0;
20767 int z;
20768 int nan;
20769
20770 int main ()
20771 {
20772   signal (SIGFPE, sigfpe_handler);
20773 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20774 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20775   signal (SIGTRAP, sigfpe_handler);
20776 #endif
20777 /* Linux/SPARC yields signal SIGILL.  */
20778 #if defined (__sparc__) && defined (__linux__)
20779   signal (SIGILL, sigfpe_handler);
20780 #endif
20781
20782   z = x / y;
20783   nan = y / y;
20784   exit (1);
20785 }
20786
20787 _ACEOF
20788 rm -f conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20795 $as_echo "$ac_try_echo") >&5
20796   (eval "$ac_link") 2>&5
20797   ac_status=$?
20798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800   { (case "(($ac_try" in
20801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802   *) ac_try_echo=$ac_try;;
20803 esac
20804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20805 $as_echo "$ac_try_echo") >&5
20806   (eval "$ac_try") 2>&5
20807   ac_status=$?
20808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   gt_cv_int_divbyzero_sigfpe=yes
20811 else
20812   $as_echo "$as_me: program exited with status $ac_status" >&5
20813 $as_echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 ( exit $ac_status )
20817 gt_cv_int_divbyzero_sigfpe=no
20818 fi
20819 rm -rf conftest.dSYM
20820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20821 fi
20822
20823
20824
20825 fi
20826 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20827 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20828   case "$gt_cv_int_divbyzero_sigfpe" in
20829     *yes) value=1;;
20830     *) value=0;;
20831   esac
20832
20833 cat >>confdefs.h <<_ACEOF
20834 #define INTDIV0_RAISES_SIGFPE $value
20835 _ACEOF
20836
20837
20838
20839   { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20840 $as_echo_n "checking for unsigned long long... " >&6; }
20841 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20842   $as_echo_n "(cached) " >&6
20843 else
20844   cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h.  */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h.  */
20850 unsigned long long ull = 1ULL; int i = 63;
20851 int
20852 main ()
20853 {
20854 unsigned long long ullmax = (unsigned long long) -1;
20855      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20856   ;
20857   return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext conftest$ac_exeext
20861 if { (ac_try="$ac_link"
20862 case "(($ac_try" in
20863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864   *) ac_try_echo=$ac_try;;
20865 esac
20866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20867 $as_echo "$ac_try_echo") >&5
20868   (eval "$ac_link") 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } && {
20875          test -z "$ac_c_werror_flag" ||
20876          test ! -s conftest.err
20877        } && test -s conftest$ac_exeext && {
20878          test "$cross_compiling" = yes ||
20879          $as_test_x conftest$ac_exeext
20880        }; then
20881   ac_cv_type_unsigned_long_long=yes
20882 else
20883   $as_echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886         ac_cv_type_unsigned_long_long=no
20887 fi
20888
20889 rm -rf conftest.dSYM
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891       conftest$ac_exeext conftest.$ac_ext
20892 fi
20893 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20894 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20895   if test $ac_cv_type_unsigned_long_long = yes; then
20896
20897 cat >>confdefs.h <<\_ACEOF
20898 #define HAVE_UNSIGNED_LONG_LONG 1
20899 _ACEOF
20900
20901   fi
20902
20903
20904
20905
20906   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20907
20908     test $ac_cv_type_unsigned_long_long = yes \
20909       && ac_type='unsigned long long' \
20910       || ac_type='unsigned long'
20911
20912 cat >>confdefs.h <<_ACEOF
20913 #define uintmax_t $ac_type
20914 _ACEOF
20915
20916   else
20917
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_UINTMAX_T 1
20920 _ACEOF
20921
20922   fi
20923
20924
20925   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
20926 $as_echo_n "checking for inttypes.h... " >&6; }
20927 if test "${gt_cv_header_inttypes_h+set}" = set; then
20928   $as_echo_n "(cached) " >&6
20929 else
20930
20931     cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 #include <sys/types.h>
20938 #include <inttypes.h>
20939 int
20940 main ()
20941 {
20942
20943   ;
20944   return 0;
20945 }
20946 _ACEOF
20947 rm -f conftest.$ac_objext
20948 if { (ac_try="$ac_compile"
20949 case "(($ac_try" in
20950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951   *) ac_try_echo=$ac_try;;
20952 esac
20953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20954 $as_echo "$ac_try_echo") >&5
20955   (eval "$ac_compile") 2>conftest.er1
20956   ac_status=$?
20957   grep -v '^ *+' conftest.er1 >conftest.err
20958   rm -f conftest.er1
20959   cat conftest.err >&5
20960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } && {
20962          test -z "$ac_c_werror_flag" ||
20963          test ! -s conftest.err
20964        } && test -s conftest.$ac_objext; then
20965   gt_cv_header_inttypes_h=yes
20966 else
20967   $as_echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970         gt_cv_header_inttypes_h=no
20971 fi
20972
20973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20974
20975 fi
20976 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20977 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20978   if test $gt_cv_header_inttypes_h = yes; then
20979
20980 cat >>confdefs.h <<_ACEOF
20981 #define HAVE_INTTYPES_H 1
20982 _ACEOF
20983
20984   fi
20985
20986
20987
20988   if test $gt_cv_header_inttypes_h = yes; then
20989     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20990 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20991 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20992   $as_echo_n "(cached) " >&6
20993 else
20994
20995         cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 #include <inttypes.h>
21002 #ifdef PRId32
21003 char *p = PRId32;
21004 #endif
21005
21006 int
21007 main ()
21008 {
21009
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21021 $as_echo "$ac_try_echo") >&5
21022   (eval "$ac_compile") 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } && {
21029          test -z "$ac_c_werror_flag" ||
21030          test ! -s conftest.err
21031        } && test -s conftest.$ac_objext; then
21032   gt_cv_inttypes_pri_broken=no
21033 else
21034   $as_echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037         gt_cv_inttypes_pri_broken=yes
21038 fi
21039
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041
21042 fi
21043 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21044 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21045   fi
21046   if test "$gt_cv_inttypes_pri_broken" = yes; then
21047
21048 cat >>confdefs.h <<_ACEOF
21049 #define PRI_MACROS_BROKEN 1
21050 _ACEOF
21051
21052   fi
21053
21054
21055
21056 for ac_header in stdint.h
21057 do
21058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21060   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21061 $as_echo_n "checking for $ac_header... " >&6; }
21062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21063   $as_echo_n "(cached) " >&6
21064 fi
21065 ac_res=`eval 'as_val=${'$as_ac_Header'}
21066                  $as_echo "$as_val"'`
21067                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21068 $as_echo "$ac_res" >&6; }
21069 else
21070   # Is the header compilable?
21071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21072 $as_echo_n "checking $ac_header usability... " >&6; }
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 $ac_includes_default
21080 #include <$ac_header>
21081 _ACEOF
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21089 $as_echo "$ac_try_echo") >&5
21090   (eval "$ac_compile") 2>conftest.er1
21091   ac_status=$?
21092   grep -v '^ *+' conftest.er1 >conftest.err
21093   rm -f conftest.er1
21094   cat conftest.err >&5
21095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } && {
21097          test -z "$ac_c_werror_flag" ||
21098          test ! -s conftest.err
21099        } && test -s conftest.$ac_objext; then
21100   ac_header_compiler=yes
21101 else
21102   $as_echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105         ac_header_compiler=no
21106 fi
21107
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21110 $as_echo "$ac_header_compiler" >&6; }
21111
21112 # Is the header present?
21113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21114 $as_echo_n "checking $ac_header presence... " >&6; }
21115 cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h.  */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h.  */
21121 #include <$ac_header>
21122 _ACEOF
21123 if { (ac_try="$ac_cpp conftest.$ac_ext"
21124 case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21129 $as_echo "$ac_try_echo") >&5
21130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21131   ac_status=$?
21132   grep -v '^ *+' conftest.er1 >conftest.err
21133   rm -f conftest.er1
21134   cat conftest.err >&5
21135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); } >/dev/null && {
21137          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21138          test ! -s conftest.err
21139        }; then
21140   ac_header_preproc=yes
21141 else
21142   $as_echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145   ac_header_preproc=no
21146 fi
21147
21148 rm -f conftest.err conftest.$ac_ext
21149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21150 $as_echo "$ac_header_preproc" >&6; }
21151
21152 # So?  What about this header?
21153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21154   yes:no: )
21155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21159     ac_header_preproc=yes
21160     ;;
21161   no:yes:* )
21162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21165 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21169 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21174
21175     ;;
21176 esac
21177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21178 $as_echo_n "checking for $ac_header... " >&6; }
21179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21180   $as_echo_n "(cached) " >&6
21181 else
21182   eval "$as_ac_Header=\$ac_header_preproc"
21183 fi
21184 ac_res=`eval 'as_val=${'$as_ac_Header'}
21185                  $as_echo "$as_val"'`
21186                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21187 $as_echo "$ac_res" >&6; }
21188
21189 fi
21190 as_val=`eval 'as_val=${'$as_ac_Header'}
21191                  $as_echo "$as_val"'`
21192    if test "x$as_val" = x""yes; then
21193   cat >>confdefs.h <<_ACEOF
21194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 _ACEOF
21196
21197 fi
21198
21199 done
21200
21201     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21202 $as_echo_n "checking for SIZE_MAX... " >&6; }
21203   result=
21204   cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h.  */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h.  */
21210
21211 #include <limits.h>
21212 #if HAVE_STDINT_H
21213 #include <stdint.h>
21214 #endif
21215 #ifdef SIZE_MAX
21216 Found it
21217 #endif
21218
21219 _ACEOF
21220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21221   $EGREP "Found it" >/dev/null 2>&1; then
21222   result=yes
21223 fi
21224 rm -f conftest*
21225
21226   if test -z "$result"; then
21227                     if test "$cross_compiling" = yes; then
21228   # Depending upon the size, compute the lo and hi bounds.
21229 cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h.  */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h.  */
21235 #include <stddef.h>
21236 int
21237 main ()
21238 {
21239 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21240 test_array [0] = 0
21241
21242   ;
21243   return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (ac_try="$ac_compile"
21248 case "(($ac_try" in
21249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250   *) ac_try_echo=$ac_try;;
21251 esac
21252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21253 $as_echo "$ac_try_echo") >&5
21254   (eval "$ac_compile") 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } && {
21261          test -z "$ac_c_werror_flag" ||
21262          test ! -s conftest.err
21263        } && test -s conftest.$ac_objext; then
21264   ac_lo=0 ac_mid=0
21265   while :; do
21266     cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h.  */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h.  */
21272 #include <stddef.h>
21273 int
21274 main ()
21275 {
21276 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21277 test_array [0] = 0
21278
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21290 $as_echo "$ac_try_echo") >&5
21291   (eval "$ac_compile") 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } && {
21298          test -z "$ac_c_werror_flag" ||
21299          test ! -s conftest.err
21300        } && test -s conftest.$ac_objext; then
21301   ac_hi=$ac_mid; break
21302 else
21303   $as_echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306         ac_lo=`expr $ac_mid + 1`
21307                         if test $ac_lo -le $ac_mid; then
21308                           ac_lo= ac_hi=
21309                           break
21310                         fi
21311                         ac_mid=`expr 2 '*' $ac_mid + 1`
21312 fi
21313
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315   done
21316 else
21317   $as_echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21319
21320         cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326 #include <stddef.h>
21327 int
21328 main ()
21329 {
21330 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21331 test_array [0] = 0
21332
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341   *) ac_try_echo=$ac_try;;
21342 esac
21343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21344 $as_echo "$ac_try_echo") >&5
21345   (eval "$ac_compile") 2>conftest.er1
21346   ac_status=$?
21347   grep -v '^ *+' conftest.er1 >conftest.err
21348   rm -f conftest.er1
21349   cat conftest.err >&5
21350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); } && {
21352          test -z "$ac_c_werror_flag" ||
21353          test ! -s conftest.err
21354        } && test -s conftest.$ac_objext; then
21355   ac_hi=-1 ac_mid=-1
21356   while :; do
21357     cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h.  */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h.  */
21363 #include <stddef.h>
21364 int
21365 main ()
21366 {
21367 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21368 test_array [0] = 0
21369
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21381 $as_echo "$ac_try_echo") >&5
21382   (eval "$ac_compile") 2>conftest.er1
21383   ac_status=$?
21384   grep -v '^ *+' conftest.er1 >conftest.err
21385   rm -f conftest.er1
21386   cat conftest.err >&5
21387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } && {
21389          test -z "$ac_c_werror_flag" ||
21390          test ! -s conftest.err
21391        } && test -s conftest.$ac_objext; then
21392   ac_lo=$ac_mid; break
21393 else
21394   $as_echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397         ac_hi=`expr '(' $ac_mid ')' - 1`
21398                         if test $ac_mid -le $ac_hi; then
21399                           ac_lo= ac_hi=
21400                           break
21401                         fi
21402                         ac_mid=`expr 2 '*' $ac_mid`
21403 fi
21404
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406   done
21407 else
21408   $as_echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411         ac_lo= ac_hi=
21412 fi
21413
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 fi
21416
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 # Binary search between lo and hi bounds.
21419 while test "x$ac_lo" != "x$ac_hi"; do
21420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21421   cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 #include <stddef.h>
21428 int
21429 main ()
21430 {
21431 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21432 test_array [0] = 0
21433
21434   ;
21435   return 0;
21436 }
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442   *) ac_try_echo=$ac_try;;
21443 esac
21444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21445 $as_echo "$ac_try_echo") >&5
21446   (eval "$ac_compile") 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } && {
21453          test -z "$ac_c_werror_flag" ||
21454          test ! -s conftest.err
21455        } && test -s conftest.$ac_objext; then
21456   ac_hi=$ac_mid
21457 else
21458   $as_echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461         ac_lo=`expr '(' $ac_mid ')' + 1`
21462 fi
21463
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 done
21466 case $ac_lo in
21467 ?*) res_hi=$ac_lo;;
21468 '') result=? ;;
21469 esac
21470 else
21471   cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 #include <stddef.h>
21478 static long int longval () { return ~(size_t)0 / 10; }
21479 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21480 #include <stdio.h>
21481 #include <stdlib.h>
21482 int
21483 main ()
21484 {
21485
21486   FILE *f = fopen ("conftest.val", "w");
21487   if (! f)
21488     return 1;
21489   if ((~(size_t)0 / 10) < 0)
21490     {
21491       long int i = longval ();
21492       if (i != (~(size_t)0 / 10))
21493         return 1;
21494       fprintf (f, "%ld", i);
21495     }
21496   else
21497     {
21498       unsigned long int i = ulongval ();
21499       if (i != (~(size_t)0 / 10))
21500         return 1;
21501       fprintf (f, "%lu", i);
21502     }
21503   /* Do not output a trailing newline, as this causes \r\n confusion
21504      on some platforms.  */
21505   return ferror (f) || fclose (f) != 0;
21506
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21518 $as_echo "$ac_try_echo") >&5
21519   (eval "$ac_link") 2>&5
21520   ac_status=$?
21521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21528 $as_echo "$ac_try_echo") >&5
21529   (eval "$ac_try") 2>&5
21530   ac_status=$?
21531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; }; then
21533   res_hi=`cat conftest.val`
21534 else
21535   $as_echo "$as_me: program exited with status $ac_status" >&5
21536 $as_echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539 ( exit $ac_status )
21540 result=?
21541 fi
21542 rm -rf conftest.dSYM
21543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21544 fi
21545 rm -f conftest.val
21546
21547     if test "$cross_compiling" = yes; then
21548   # Depending upon the size, compute the lo and hi bounds.
21549 cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 #include <stddef.h>
21556 int
21557 main ()
21558 {
21559 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21560 test_array [0] = 0
21561
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570   *) ac_try_echo=$ac_try;;
21571 esac
21572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21573 $as_echo "$ac_try_echo") >&5
21574   (eval "$ac_compile") 2>conftest.er1
21575   ac_status=$?
21576   grep -v '^ *+' conftest.er1 >conftest.err
21577   rm -f conftest.er1
21578   cat conftest.err >&5
21579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } && {
21581          test -z "$ac_c_werror_flag" ||
21582          test ! -s conftest.err
21583        } && test -s conftest.$ac_objext; then
21584   ac_lo=0 ac_mid=0
21585   while :; do
21586     cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592 #include <stddef.h>
21593 int
21594 main ()
21595 {
21596 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21597 test_array [0] = 0
21598
21599   ;
21600   return 0;
21601 }
21602 _ACEOF
21603 rm -f conftest.$ac_objext
21604 if { (ac_try="$ac_compile"
21605 case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21610 $as_echo "$ac_try_echo") >&5
21611   (eval "$ac_compile") 2>conftest.er1
21612   ac_status=$?
21613   grep -v '^ *+' conftest.er1 >conftest.err
21614   rm -f conftest.er1
21615   cat conftest.err >&5
21616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); } && {
21618          test -z "$ac_c_werror_flag" ||
21619          test ! -s conftest.err
21620        } && test -s conftest.$ac_objext; then
21621   ac_hi=$ac_mid; break
21622 else
21623   $as_echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626         ac_lo=`expr $ac_mid + 1`
21627                         if test $ac_lo -le $ac_mid; then
21628                           ac_lo= ac_hi=
21629                           break
21630                         fi
21631                         ac_mid=`expr 2 '*' $ac_mid + 1`
21632 fi
21633
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635   done
21636 else
21637   $as_echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640         cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h.  */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h.  */
21646 #include <stddef.h>
21647 int
21648 main ()
21649 {
21650 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21651 test_array [0] = 0
21652
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 rm -f conftest.$ac_objext
21658 if { (ac_try="$ac_compile"
21659 case "(($ac_try" in
21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661   *) ac_try_echo=$ac_try;;
21662 esac
21663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21664 $as_echo "$ac_try_echo") >&5
21665   (eval "$ac_compile") 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && {
21672          test -z "$ac_c_werror_flag" ||
21673          test ! -s conftest.err
21674        } && test -s conftest.$ac_objext; then
21675   ac_hi=-1 ac_mid=-1
21676   while :; do
21677     cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h.  */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h.  */
21683 #include <stddef.h>
21684 int
21685 main ()
21686 {
21687 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21688 test_array [0] = 0
21689
21690   ;
21691   return 0;
21692 }
21693 _ACEOF
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698   *) ac_try_echo=$ac_try;;
21699 esac
21700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21701 $as_echo "$ac_try_echo") >&5
21702   (eval "$ac_compile") 2>conftest.er1
21703   ac_status=$?
21704   grep -v '^ *+' conftest.er1 >conftest.err
21705   rm -f conftest.er1
21706   cat conftest.err >&5
21707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); } && {
21709          test -z "$ac_c_werror_flag" ||
21710          test ! -s conftest.err
21711        } && test -s conftest.$ac_objext; then
21712   ac_lo=$ac_mid; break
21713 else
21714   $as_echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717         ac_hi=`expr '(' $ac_mid ')' - 1`
21718                         if test $ac_mid -le $ac_hi; then
21719                           ac_lo= ac_hi=
21720                           break
21721                         fi
21722                         ac_mid=`expr 2 '*' $ac_mid`
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726   done
21727 else
21728   $as_echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731         ac_lo= ac_hi=
21732 fi
21733
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735 fi
21736
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 # Binary search between lo and hi bounds.
21739 while test "x$ac_lo" != "x$ac_hi"; do
21740   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21741   cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h.  */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h.  */
21747 #include <stddef.h>
21748 int
21749 main ()
21750 {
21751 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21752 test_array [0] = 0
21753
21754   ;
21755   return 0;
21756 }
21757 _ACEOF
21758 rm -f conftest.$ac_objext
21759 if { (ac_try="$ac_compile"
21760 case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21765 $as_echo "$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   $as_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_hi=$ac_mid
21777 else
21778   $as_echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21780
21781         ac_lo=`expr '(' $ac_mid ')' + 1`
21782 fi
21783
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 done
21786 case $ac_lo in
21787 ?*) res_lo=$ac_lo;;
21788 '') result=? ;;
21789 esac
21790 else
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 <stddef.h>
21798 static long int longval () { return ~(size_t)0 % 10; }
21799 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21800 #include <stdio.h>
21801 #include <stdlib.h>
21802 int
21803 main ()
21804 {
21805
21806   FILE *f = fopen ("conftest.val", "w");
21807   if (! f)
21808     return 1;
21809   if ((~(size_t)0 % 10) < 0)
21810     {
21811       long int i = longval ();
21812       if (i != (~(size_t)0 % 10))
21813         return 1;
21814       fprintf (f, "%ld", i);
21815     }
21816   else
21817     {
21818       unsigned long int i = ulongval ();
21819       if (i != (~(size_t)0 % 10))
21820         return 1;
21821       fprintf (f, "%lu", i);
21822     }
21823   /* Do not output a trailing newline, as this causes \r\n confusion
21824      on some platforms.  */
21825   return ferror (f) || fclose (f) != 0;
21826
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835   *) ac_try_echo=$ac_try;;
21836 esac
21837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838 $as_echo "$ac_try_echo") >&5
21839   (eval "$ac_link") 2>&5
21840   ac_status=$?
21841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21843   { (case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21848 $as_echo "$ac_try_echo") >&5
21849   (eval "$ac_try") 2>&5
21850   ac_status=$?
21851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853   res_lo=`cat conftest.val`
21854 else
21855   $as_echo "$as_me: program exited with status $ac_status" >&5
21856 $as_echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859 ( exit $ac_status )
21860 result=?
21861 fi
21862 rm -rf conftest.dSYM
21863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21864 fi
21865 rm -f conftest.val
21866
21867     if test "$cross_compiling" = yes; then
21868   # Depending upon the size, compute the lo and hi bounds.
21869 cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 #include <stddef.h>
21876 int
21877 main ()
21878 {
21879 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21880 test_array [0] = 0
21881
21882   ;
21883   return 0;
21884 }
21885 _ACEOF
21886 rm -f conftest.$ac_objext
21887 if { (ac_try="$ac_compile"
21888 case "(($ac_try" in
21889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890   *) ac_try_echo=$ac_try;;
21891 esac
21892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21893 $as_echo "$ac_try_echo") >&5
21894   (eval "$ac_compile") 2>conftest.er1
21895   ac_status=$?
21896   grep -v '^ *+' conftest.er1 >conftest.err
21897   rm -f conftest.er1
21898   cat conftest.err >&5
21899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); } && {
21901          test -z "$ac_c_werror_flag" ||
21902          test ! -s conftest.err
21903        } && test -s conftest.$ac_objext; then
21904   ac_lo=0 ac_mid=0
21905   while :; do
21906     cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <stddef.h>
21913 int
21914 main ()
21915 {
21916 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21917 test_array [0] = 0
21918
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 rm -f conftest.$ac_objext
21924 if { (ac_try="$ac_compile"
21925 case "(($ac_try" in
21926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927   *) ac_try_echo=$ac_try;;
21928 esac
21929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21930 $as_echo "$ac_try_echo") >&5
21931   (eval "$ac_compile") 2>conftest.er1
21932   ac_status=$?
21933   grep -v '^ *+' conftest.er1 >conftest.err
21934   rm -f conftest.er1
21935   cat conftest.err >&5
21936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); } && {
21938          test -z "$ac_c_werror_flag" ||
21939          test ! -s conftest.err
21940        } && test -s conftest.$ac_objext; then
21941   ac_hi=$ac_mid; break
21942 else
21943   $as_echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946         ac_lo=`expr $ac_mid + 1`
21947                         if test $ac_lo -le $ac_mid; then
21948                           ac_lo= ac_hi=
21949                           break
21950                         fi
21951                         ac_mid=`expr 2 '*' $ac_mid + 1`
21952 fi
21953
21954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21955   done
21956 else
21957   $as_echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21959
21960         cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h.  */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h.  */
21966 #include <stddef.h>
21967 int
21968 main ()
21969 {
21970 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21971 test_array [0] = 0
21972
21973   ;
21974   return 0;
21975 }
21976 _ACEOF
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981   *) ac_try_echo=$ac_try;;
21982 esac
21983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21984 $as_echo "$ac_try_echo") >&5
21985   (eval "$ac_compile") 2>conftest.er1
21986   ac_status=$?
21987   grep -v '^ *+' conftest.er1 >conftest.err
21988   rm -f conftest.er1
21989   cat conftest.err >&5
21990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); } && {
21992          test -z "$ac_c_werror_flag" ||
21993          test ! -s conftest.err
21994        } && test -s conftest.$ac_objext; then
21995   ac_hi=-1 ac_mid=-1
21996   while :; do
21997     cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003 #include <stddef.h>
22004 int
22005 main ()
22006 {
22007 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22008 test_array [0] = 0
22009
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22021 $as_echo "$ac_try_echo") >&5
22022   (eval "$ac_compile") 2>conftest.er1
22023   ac_status=$?
22024   grep -v '^ *+' conftest.er1 >conftest.err
22025   rm -f conftest.er1
22026   cat conftest.err >&5
22027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } && {
22029          test -z "$ac_c_werror_flag" ||
22030          test ! -s conftest.err
22031        } && test -s conftest.$ac_objext; then
22032   ac_lo=$ac_mid; break
22033 else
22034   $as_echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037         ac_hi=`expr '(' $ac_mid ')' - 1`
22038                         if test $ac_mid -le $ac_hi; then
22039                           ac_lo= ac_hi=
22040                           break
22041                         fi
22042                         ac_mid=`expr 2 '*' $ac_mid`
22043 fi
22044
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046   done
22047 else
22048   $as_echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22050
22051         ac_lo= ac_hi=
22052 fi
22053
22054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055 fi
22056
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058 # Binary search between lo and hi bounds.
22059 while test "x$ac_lo" != "x$ac_hi"; do
22060   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22061   cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 #include <stddef.h>
22068 int
22069 main ()
22070 {
22071 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22072 test_array [0] = 0
22073
22074   ;
22075   return 0;
22076 }
22077 _ACEOF
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082   *) ac_try_echo=$ac_try;;
22083 esac
22084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22085 $as_echo "$ac_try_echo") >&5
22086   (eval "$ac_compile") 2>conftest.er1
22087   ac_status=$?
22088   grep -v '^ *+' conftest.er1 >conftest.err
22089   rm -f conftest.er1
22090   cat conftest.err >&5
22091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); } && {
22093          test -z "$ac_c_werror_flag" ||
22094          test ! -s conftest.err
22095        } && test -s conftest.$ac_objext; then
22096   ac_hi=$ac_mid
22097 else
22098   $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101         ac_lo=`expr '(' $ac_mid ')' + 1`
22102 fi
22103
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 done
22106 case $ac_lo in
22107 ?*) fits_in_uint=$ac_lo;;
22108 '') result=? ;;
22109 esac
22110 else
22111   cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h.  */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h.  */
22117 #include <stddef.h>
22118 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22119 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22120 #include <stdio.h>
22121 #include <stdlib.h>
22122 int
22123 main ()
22124 {
22125
22126   FILE *f = fopen ("conftest.val", "w");
22127   if (! f)
22128     return 1;
22129   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22130     {
22131       long int i = longval ();
22132       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22133         return 1;
22134       fprintf (f, "%ld", i);
22135     }
22136   else
22137     {
22138       unsigned long int i = ulongval ();
22139       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22140         return 1;
22141       fprintf (f, "%lu", i);
22142     }
22143   /* Do not output a trailing newline, as this causes \r\n confusion
22144      on some platforms.  */
22145   return ferror (f) || fclose (f) != 0;
22146
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158 $as_echo "$ac_try_echo") >&5
22159   (eval "$ac_link") 2>&5
22160   ac_status=$?
22161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22163   { (case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169   (eval "$ac_try") 2>&5
22170   ac_status=$?
22171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   fits_in_uint=`cat conftest.val`
22174 else
22175   $as_echo "$as_me: program exited with status $ac_status" >&5
22176 $as_echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179 ( exit $ac_status )
22180 result=?
22181 fi
22182 rm -rf conftest.dSYM
22183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22184 fi
22185 rm -f conftest.val
22186
22187     if test "$fits_in_uint" = 1; then
22188                   cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194 #include <stddef.h>
22195         extern size_t foo;
22196         extern unsigned long foo;
22197
22198 int
22199 main ()
22200 {
22201
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210   *) ac_try_echo=$ac_try;;
22211 esac
22212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22213 $as_echo "$ac_try_echo") >&5
22214   (eval "$ac_compile") 2>conftest.er1
22215   ac_status=$?
22216   grep -v '^ *+' conftest.er1 >conftest.err
22217   rm -f conftest.er1
22218   cat conftest.err >&5
22219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); } && {
22221          test -z "$ac_c_werror_flag" ||
22222          test ! -s conftest.err
22223        } && test -s conftest.$ac_objext; then
22224   fits_in_uint=0
22225 else
22226   $as_echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229
22230 fi
22231
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233     fi
22234     if test -z "$result"; then
22235       if test "$fits_in_uint" = 1; then
22236         result="$res_hi$res_lo"U
22237       else
22238         result="$res_hi$res_lo"UL
22239       fi
22240     else
22241             result='~(size_t)0'
22242     fi
22243   fi
22244   { $as_echo "$as_me:$LINENO: result: $result" >&5
22245 $as_echo "$result" >&6; }
22246   if test "$result" != yes; then
22247
22248 cat >>confdefs.h <<_ACEOF
22249 #define SIZE_MAX $result
22250 _ACEOF
22251
22252   fi
22253
22254
22255
22256
22257
22258 for ac_header in stdint.h
22259 do
22260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22262   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22263 $as_echo_n "checking for $ac_header... " >&6; }
22264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22265   $as_echo_n "(cached) " >&6
22266 fi
22267 ac_res=`eval 'as_val=${'$as_ac_Header'}
22268                  $as_echo "$as_val"'`
22269                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22270 $as_echo "$ac_res" >&6; }
22271 else
22272   # Is the header compilable?
22273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22274 $as_echo_n "checking $ac_header usability... " >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281 $ac_includes_default
22282 #include <$ac_header>
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288   *) ac_try_echo=$ac_try;;
22289 esac
22290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22291 $as_echo "$ac_try_echo") >&5
22292   (eval "$ac_compile") 2>conftest.er1
22293   ac_status=$?
22294   grep -v '^ *+' conftest.er1 >conftest.err
22295   rm -f conftest.er1
22296   cat conftest.err >&5
22297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); } && {
22299          test -z "$ac_c_werror_flag" ||
22300          test ! -s conftest.err
22301        } && test -s conftest.$ac_objext; then
22302   ac_header_compiler=yes
22303 else
22304   $as_echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307         ac_header_compiler=no
22308 fi
22309
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22312 $as_echo "$ac_header_compiler" >&6; }
22313
22314 # Is the header present?
22315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22316 $as_echo_n "checking $ac_header presence... " >&6; }
22317 cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 #include <$ac_header>
22324 _ACEOF
22325 if { (ac_try="$ac_cpp conftest.$ac_ext"
22326 case "(($ac_try" in
22327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328   *) ac_try_echo=$ac_try;;
22329 esac
22330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22331 $as_echo "$ac_try_echo") >&5
22332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } >/dev/null && {
22339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22340          test ! -s conftest.err
22341        }; then
22342   ac_header_preproc=yes
22343 else
22344   $as_echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22346
22347   ac_header_preproc=no
22348 fi
22349
22350 rm -f conftest.err conftest.$ac_ext
22351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22352 $as_echo "$ac_header_preproc" >&6; }
22353
22354 # So?  What about this header?
22355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22356   yes:no: )
22357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22361     ac_header_preproc=yes
22362     ;;
22363   no:yes:* )
22364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22367 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22371 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22376
22377     ;;
22378 esac
22379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22380 $as_echo_n "checking for $ac_header... " >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22382   $as_echo_n "(cached) " >&6
22383 else
22384   eval "$as_ac_Header=\$ac_header_preproc"
22385 fi
22386 ac_res=`eval 'as_val=${'$as_ac_Header'}
22387                  $as_echo "$as_val"'`
22388                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22389 $as_echo "$ac_res" >&6; }
22390
22391 fi
22392 as_val=`eval 'as_val=${'$as_ac_Header'}
22393                  $as_echo "$as_val"'`
22394    if test "x$as_val" = x""yes; then
22395   cat >>confdefs.h <<_ACEOF
22396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22397 _ACEOF
22398
22399 fi
22400
22401 done
22402
22403
22404
22405
22406
22407
22408
22409
22410   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22411 $as_echo_n "checking for ptrdiff_t... " >&6; }
22412 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22413   $as_echo_n "(cached) " >&6
22414 else
22415   ac_cv_type_ptrdiff_t=no
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 $ac_includes_default
22423 int
22424 main ()
22425 {
22426 if (sizeof (ptrdiff_t))
22427        return 0;
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436   *) ac_try_echo=$ac_try;;
22437 esac
22438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22439 $as_echo "$ac_try_echo") >&5
22440   (eval "$ac_compile") 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } && {
22447          test -z "$ac_c_werror_flag" ||
22448          test ! -s conftest.err
22449        } && test -s conftest.$ac_objext; then
22450   cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h.  */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h.  */
22456 $ac_includes_default
22457 int
22458 main ()
22459 {
22460 if (sizeof ((ptrdiff_t)))
22461           return 0;
22462   ;
22463   return 0;
22464 }
22465 _ACEOF
22466 rm -f conftest.$ac_objext
22467 if { (ac_try="$ac_compile"
22468 case "(($ac_try" in
22469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470   *) ac_try_echo=$ac_try;;
22471 esac
22472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22473 $as_echo "$ac_try_echo") >&5
22474   (eval "$ac_compile") 2>conftest.er1
22475   ac_status=$?
22476   grep -v '^ *+' conftest.er1 >conftest.err
22477   rm -f conftest.er1
22478   cat conftest.err >&5
22479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); } && {
22481          test -z "$ac_c_werror_flag" ||
22482          test ! -s conftest.err
22483        } && test -s conftest.$ac_objext; then
22484   :
22485 else
22486   $as_echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489         ac_cv_type_ptrdiff_t=yes
22490 fi
22491
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 else
22494   $as_echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497
22498 fi
22499
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 fi
22502 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22503 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22504 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22505   :
22506 else
22507
22508 cat >>confdefs.h <<\_ACEOF
22509 #define ptrdiff_t long
22510 _ACEOF
22511
22512
22513 fi
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22526 stdlib.h string.h unistd.h sys/param.h
22527 do
22528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22530   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22531 $as_echo_n "checking for $ac_header... " >&6; }
22532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22533   $as_echo_n "(cached) " >&6
22534 fi
22535 ac_res=`eval 'as_val=${'$as_ac_Header'}
22536                  $as_echo "$as_val"'`
22537                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22538 $as_echo "$ac_res" >&6; }
22539 else
22540   # Is the header compilable?
22541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22542 $as_echo_n "checking $ac_header usability... " >&6; }
22543 cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549 $ac_includes_default
22550 #include <$ac_header>
22551 _ACEOF
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556   *) ac_try_echo=$ac_try;;
22557 esac
22558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22559 $as_echo "$ac_try_echo") >&5
22560   (eval "$ac_compile") 2>conftest.er1
22561   ac_status=$?
22562   grep -v '^ *+' conftest.er1 >conftest.err
22563   rm -f conftest.er1
22564   cat conftest.err >&5
22565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); } && {
22567          test -z "$ac_c_werror_flag" ||
22568          test ! -s conftest.err
22569        } && test -s conftest.$ac_objext; then
22570   ac_header_compiler=yes
22571 else
22572   $as_echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22574
22575         ac_header_compiler=no
22576 fi
22577
22578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22580 $as_echo "$ac_header_compiler" >&6; }
22581
22582 # Is the header present?
22583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22584 $as_echo_n "checking $ac_header presence... " >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h.  */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h.  */
22591 #include <$ac_header>
22592 _ACEOF
22593 if { (ac_try="$ac_cpp conftest.$ac_ext"
22594 case "(($ac_try" in
22595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596   *) ac_try_echo=$ac_try;;
22597 esac
22598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22599 $as_echo "$ac_try_echo") >&5
22600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22601   ac_status=$?
22602   grep -v '^ *+' conftest.er1 >conftest.err
22603   rm -f conftest.er1
22604   cat conftest.err >&5
22605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); } >/dev/null && {
22607          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22608          test ! -s conftest.err
22609        }; then
22610   ac_header_preproc=yes
22611 else
22612   $as_echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615   ac_header_preproc=no
22616 fi
22617
22618 rm -f conftest.err conftest.$ac_ext
22619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22620 $as_echo "$ac_header_preproc" >&6; }
22621
22622 # So?  What about this header?
22623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22624   yes:no: )
22625     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22627     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22629     ac_header_preproc=yes
22630     ;;
22631   no:yes:* )
22632     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22634     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22635 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22636     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22638     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22639 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22640     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22642     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22644
22645     ;;
22646 esac
22647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22648 $as_echo_n "checking for $ac_header... " >&6; }
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650   $as_echo_n "(cached) " >&6
22651 else
22652   eval "$as_ac_Header=\$ac_header_preproc"
22653 fi
22654 ac_res=`eval 'as_val=${'$as_ac_Header'}
22655                  $as_echo "$as_val"'`
22656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22657 $as_echo "$ac_res" >&6; }
22658
22659 fi
22660 as_val=`eval 'as_val=${'$as_ac_Header'}
22661                  $as_echo "$as_val"'`
22662    if test "x$as_val" = x""yes; then
22663   cat >>confdefs.h <<_ACEOF
22664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22665 _ACEOF
22666
22667 fi
22668
22669 done
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22695 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22696 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22697 __fsetlocking
22698 do
22699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22700 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22701 $as_echo_n "checking for $ac_func... " >&6; }
22702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22703   $as_echo_n "(cached) " >&6
22704 else
22705   cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22713 #define $ac_func innocuous_$ac_func
22714
22715 /* System header to define __stub macros and hopefully few prototypes,
22716     which can conflict with char $ac_func (); below.
22717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22718     <limits.h> exists even on freestanding compilers.  */
22719
22720 #ifdef __STDC__
22721 # include <limits.h>
22722 #else
22723 # include <assert.h>
22724 #endif
22725
22726 #undef $ac_func
22727
22728 /* Override any GCC internal prototype to avoid an error.
22729    Use char because int might match the return type of a GCC
22730    builtin and then its argument prototype would still apply.  */
22731 #ifdef __cplusplus
22732 extern "C"
22733 #endif
22734 char $ac_func ();
22735 /* The GNU C library defines this for functions which it implements
22736     to always fail with ENOSYS.  Some functions are actually named
22737     something starting with __ and the normal name is an alias.  */
22738 #if defined __stub_$ac_func || defined __stub___$ac_func
22739 choke me
22740 #endif
22741
22742 int
22743 main ()
22744 {
22745 return $ac_func ();
22746   ;
22747   return 0;
22748 }
22749 _ACEOF
22750 rm -f conftest.$ac_objext conftest$ac_exeext
22751 if { (ac_try="$ac_link"
22752 case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22757 $as_echo "$ac_try_echo") >&5
22758   (eval "$ac_link") 2>conftest.er1
22759   ac_status=$?
22760   grep -v '^ *+' conftest.er1 >conftest.err
22761   rm -f conftest.er1
22762   cat conftest.err >&5
22763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } && {
22765          test -z "$ac_c_werror_flag" ||
22766          test ! -s conftest.err
22767        } && test -s conftest$ac_exeext && {
22768          test "$cross_compiling" = yes ||
22769          $as_test_x conftest$ac_exeext
22770        }; then
22771   eval "$as_ac_var=yes"
22772 else
22773   $as_echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776         eval "$as_ac_var=no"
22777 fi
22778
22779 rm -rf conftest.dSYM
22780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22781       conftest$ac_exeext conftest.$ac_ext
22782 fi
22783 ac_res=`eval 'as_val=${'$as_ac_var'}
22784                  $as_echo "$as_val"'`
22785                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22786 $as_echo "$ac_res" >&6; }
22787 as_val=`eval 'as_val=${'$as_ac_var'}
22788                  $as_echo "$as_val"'`
22789    if test "x$as_val" = x""yes; then
22790   cat >>confdefs.h <<_ACEOF
22791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22792 _ACEOF
22793
22794 fi
22795 done
22796
22797
22798
22799   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22800 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22801 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22802   $as_echo_n "(cached) " >&6
22803 else
22804   cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h.  */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h.  */
22810 #include <stdio.h>
22811 int
22812 main ()
22813 {
22814
22815 #ifndef _snprintf
22816   char *p = (char *) _snprintf;
22817 #endif
22818
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827   *) ac_try_echo=$ac_try;;
22828 esac
22829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22830 $as_echo "$ac_try_echo") >&5
22831   (eval "$ac_compile") 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } && {
22838          test -z "$ac_c_werror_flag" ||
22839          test ! -s conftest.err
22840        } && test -s conftest.$ac_objext; then
22841   ac_cv_have_decl__snprintf=yes
22842 else
22843   $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846         ac_cv_have_decl__snprintf=no
22847 fi
22848
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 fi
22851 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22852 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22853   if test $ac_cv_have_decl__snprintf = yes; then
22854     gt_value=1
22855   else
22856     gt_value=0
22857   fi
22858
22859 cat >>confdefs.h <<_ACEOF
22860 #define HAVE_DECL__SNPRINTF $gt_value
22861 _ACEOF
22862
22863
22864
22865   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22866 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22867 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22868   $as_echo_n "(cached) " >&6
22869 else
22870   cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h.  */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h.  */
22876 #include <stdio.h>
22877 int
22878 main ()
22879 {
22880
22881 #ifndef _snwprintf
22882   char *p = (char *) _snwprintf;
22883 #endif
22884
22885   ;
22886   return 0;
22887 }
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893   *) ac_try_echo=$ac_try;;
22894 esac
22895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22896 $as_echo "$ac_try_echo") >&5
22897   (eval "$ac_compile") 2>conftest.er1
22898   ac_status=$?
22899   grep -v '^ *+' conftest.er1 >conftest.err
22900   rm -f conftest.er1
22901   cat conftest.err >&5
22902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); } && {
22904          test -z "$ac_c_werror_flag" ||
22905          test ! -s conftest.err
22906        } && test -s conftest.$ac_objext; then
22907   ac_cv_have_decl__snwprintf=yes
22908 else
22909   $as_echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22911
22912         ac_cv_have_decl__snwprintf=no
22913 fi
22914
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 fi
22917 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22918 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22919   if test $ac_cv_have_decl__snwprintf = yes; then
22920     gt_value=1
22921   else
22922     gt_value=0
22923   fi
22924
22925 cat >>confdefs.h <<_ACEOF
22926 #define HAVE_DECL__SNWPRINTF $gt_value
22927 _ACEOF
22928
22929
22930
22931
22932   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22933 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22934 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22935   $as_echo_n "(cached) " >&6
22936 else
22937   cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943 #include <stdio.h>
22944 int
22945 main ()
22946 {
22947
22948 #ifndef feof_unlocked
22949   char *p = (char *) feof_unlocked;
22950 #endif
22951
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 rm -f conftest.$ac_objext
22957 if { (ac_try="$ac_compile"
22958 case "(($ac_try" in
22959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960   *) ac_try_echo=$ac_try;;
22961 esac
22962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22963 $as_echo "$ac_try_echo") >&5
22964   (eval "$ac_compile") 2>conftest.er1
22965   ac_status=$?
22966   grep -v '^ *+' conftest.er1 >conftest.err
22967   rm -f conftest.er1
22968   cat conftest.err >&5
22969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); } && {
22971          test -z "$ac_c_werror_flag" ||
22972          test ! -s conftest.err
22973        } && test -s conftest.$ac_objext; then
22974   ac_cv_have_decl_feof_unlocked=yes
22975 else
22976   $as_echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22978
22979         ac_cv_have_decl_feof_unlocked=no
22980 fi
22981
22982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983 fi
22984 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22985 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
22986   if test $ac_cv_have_decl_feof_unlocked = yes; then
22987     gt_value=1
22988   else
22989     gt_value=0
22990   fi
22991
22992 cat >>confdefs.h <<_ACEOF
22993 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22994 _ACEOF
22995
22996
22997
22998   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22999 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
23000 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23001   $as_echo_n "(cached) " >&6
23002 else
23003   cat >conftest.$ac_ext <<_ACEOF
23004 /* confdefs.h.  */
23005 _ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h.  */
23009 #include <stdio.h>
23010 int
23011 main ()
23012 {
23013
23014 #ifndef fgets_unlocked
23015   char *p = (char *) fgets_unlocked;
23016 #endif
23017
23018   ;
23019   return 0;
23020 }
23021 _ACEOF
23022 rm -f conftest.$ac_objext
23023 if { (ac_try="$ac_compile"
23024 case "(($ac_try" in
23025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026   *) ac_try_echo=$ac_try;;
23027 esac
23028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23029 $as_echo "$ac_try_echo") >&5
23030   (eval "$ac_compile") 2>conftest.er1
23031   ac_status=$?
23032   grep -v '^ *+' conftest.er1 >conftest.err
23033   rm -f conftest.er1
23034   cat conftest.err >&5
23035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); } && {
23037          test -z "$ac_c_werror_flag" ||
23038          test ! -s conftest.err
23039        } && test -s conftest.$ac_objext; then
23040   ac_cv_have_decl_fgets_unlocked=yes
23041 else
23042   $as_echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23044
23045         ac_cv_have_decl_fgets_unlocked=no
23046 fi
23047
23048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23049 fi
23050 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23051 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
23052   if test $ac_cv_have_decl_fgets_unlocked = yes; then
23053     gt_value=1
23054   else
23055     gt_value=0
23056   fi
23057
23058 cat >>confdefs.h <<_ACEOF
23059 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23060 _ACEOF
23061
23062
23063
23064   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23065 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23066 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23067   $as_echo_n "(cached) " >&6
23068 else
23069   cat >conftest.$ac_ext <<_ACEOF
23070 /* confdefs.h.  */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h.  */
23075 #include <stdio.h>
23076 int
23077 main ()
23078 {
23079
23080 #ifndef getc_unlocked
23081   char *p = (char *) getc_unlocked;
23082 #endif
23083
23084   ;
23085   return 0;
23086 }
23087 _ACEOF
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092   *) ac_try_echo=$ac_try;;
23093 esac
23094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23095 $as_echo "$ac_try_echo") >&5
23096   (eval "$ac_compile") 2>conftest.er1
23097   ac_status=$?
23098   grep -v '^ *+' conftest.er1 >conftest.err
23099   rm -f conftest.er1
23100   cat conftest.err >&5
23101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); } && {
23103          test -z "$ac_c_werror_flag" ||
23104          test ! -s conftest.err
23105        } && test -s conftest.$ac_objext; then
23106   ac_cv_have_decl_getc_unlocked=yes
23107 else
23108   $as_echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23110
23111         ac_cv_have_decl_getc_unlocked=no
23112 fi
23113
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 fi
23116 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23117 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23118   if test $ac_cv_have_decl_getc_unlocked = yes; then
23119     gt_value=1
23120   else
23121     gt_value=0
23122   fi
23123
23124 cat >>confdefs.h <<_ACEOF
23125 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23126 _ACEOF
23127
23128
23129
23130   case $gt_cv_func_printf_posix in
23131     *yes) HAVE_POSIX_PRINTF=1 ;;
23132     *) HAVE_POSIX_PRINTF=0 ;;
23133   esac
23134
23135   if test "$ac_cv_func_asprintf" = yes; then
23136     HAVE_ASPRINTF=1
23137   else
23138     HAVE_ASPRINTF=0
23139   fi
23140
23141   if test "$ac_cv_func_snprintf" = yes; then
23142     HAVE_SNPRINTF=1
23143   else
23144     HAVE_SNPRINTF=0
23145   fi
23146
23147   if test "$ac_cv_func_wprintf" = yes; then
23148     HAVE_WPRINTF=1
23149   else
23150     HAVE_WPRINTF=0
23151   fi
23152
23153
23154
23155
23156
23157
23158
23159           am_save_CPPFLAGS="$CPPFLAGS"
23160
23161   for element in $INCICONV; do
23162     haveit=
23163     for x in $CPPFLAGS; do
23164
23165   acl_save_prefix="$prefix"
23166   prefix="$acl_final_prefix"
23167   acl_save_exec_prefix="$exec_prefix"
23168   exec_prefix="$acl_final_exec_prefix"
23169   eval x=\"$x\"
23170   exec_prefix="$acl_save_exec_prefix"
23171   prefix="$acl_save_prefix"
23172
23173       if test "X$x" = "X$element"; then
23174         haveit=yes
23175         break
23176       fi
23177     done
23178     if test -z "$haveit"; then
23179       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23180     fi
23181   done
23182
23183
23184   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
23185 $as_echo_n "checking for iconv... " >&6; }
23186 if test "${am_cv_func_iconv+set}" = set; then
23187   $as_echo_n "(cached) " >&6
23188 else
23189
23190     am_cv_func_iconv="no, consider installing GNU libiconv"
23191     am_cv_lib_iconv=no
23192     cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h.  */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h.  */
23198 #include <stdlib.h>
23199 #include <iconv.h>
23200 int
23201 main ()
23202 {
23203 iconv_t cd = iconv_open("","");
23204        iconv(cd,NULL,NULL,NULL,NULL);
23205        iconv_close(cd);
23206   ;
23207   return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (ac_try="$ac_link"
23212 case "(($ac_try" in
23213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214   *) ac_try_echo=$ac_try;;
23215 esac
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218   (eval "$ac_link") 2>conftest.er1
23219   ac_status=$?
23220   grep -v '^ *+' conftest.er1 >conftest.err
23221   rm -f conftest.er1
23222   cat conftest.err >&5
23223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } && {
23225          test -z "$ac_c_werror_flag" ||
23226          test ! -s conftest.err
23227        } && test -s conftest$ac_exeext && {
23228          test "$cross_compiling" = yes ||
23229          $as_test_x conftest$ac_exeext
23230        }; then
23231   am_cv_func_iconv=yes
23232 else
23233   $as_echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236
23237 fi
23238
23239 rm -rf conftest.dSYM
23240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23241       conftest$ac_exeext conftest.$ac_ext
23242     if test "$am_cv_func_iconv" != yes; then
23243       am_save_LIBS="$LIBS"
23244       LIBS="$LIBS $LIBICONV"
23245       cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h.  */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h.  */
23251 #include <stdlib.h>
23252 #include <iconv.h>
23253 int
23254 main ()
23255 {
23256 iconv_t cd = iconv_open("","");
23257          iconv(cd,NULL,NULL,NULL,NULL);
23258          iconv_close(cd);
23259   ;
23260   return 0;
23261 }
23262 _ACEOF
23263 rm -f conftest.$ac_objext conftest$ac_exeext
23264 if { (ac_try="$ac_link"
23265 case "(($ac_try" in
23266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267   *) ac_try_echo=$ac_try;;
23268 esac
23269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23270 $as_echo "$ac_try_echo") >&5
23271   (eval "$ac_link") 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } && {
23278          test -z "$ac_c_werror_flag" ||
23279          test ! -s conftest.err
23280        } && test -s conftest$ac_exeext && {
23281          test "$cross_compiling" = yes ||
23282          $as_test_x conftest$ac_exeext
23283        }; then
23284   am_cv_lib_iconv=yes
23285         am_cv_func_iconv=yes
23286 else
23287   $as_echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290
23291 fi
23292
23293 rm -rf conftest.dSYM
23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23295       conftest$ac_exeext conftest.$ac_ext
23296       LIBS="$am_save_LIBS"
23297     fi
23298
23299 fi
23300 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23301 $as_echo "$am_cv_func_iconv" >&6; }
23302   if test "$am_cv_func_iconv" = yes; then
23303
23304 cat >>confdefs.h <<\_ACEOF
23305 #define HAVE_ICONV 1
23306 _ACEOF
23307
23308   fi
23309   if test "$am_cv_lib_iconv" = yes; then
23310     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23311 $as_echo_n "checking how to link with libiconv... " >&6; }
23312     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
23313 $as_echo "$LIBICONV" >&6; }
23314   else
23315             CPPFLAGS="$am_save_CPPFLAGS"
23316     LIBICONV=
23317     LTLIBICONV=
23318   fi
23319
23320
23321
23322   if test "$am_cv_func_iconv" = yes; then
23323     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
23324 $as_echo_n "checking for iconv declaration... " >&6; }
23325     if test "${am_cv_proto_iconv+set}" = set; then
23326   $as_echo_n "(cached) " >&6
23327 else
23328
23329       cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h.  */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h.  */
23335
23336 #include <stdlib.h>
23337 #include <iconv.h>
23338 extern
23339 #ifdef __cplusplus
23340 "C"
23341 #endif
23342 #if defined(__STDC__) || defined(__cplusplus)
23343 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23344 #else
23345 size_t iconv();
23346 #endif
23347
23348 int
23349 main ()
23350 {
23351
23352   ;
23353   return 0;
23354 }
23355 _ACEOF
23356 rm -f conftest.$ac_objext
23357 if { (ac_try="$ac_compile"
23358 case "(($ac_try" in
23359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360   *) ac_try_echo=$ac_try;;
23361 esac
23362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23363 $as_echo "$ac_try_echo") >&5
23364   (eval "$ac_compile") 2>conftest.er1
23365   ac_status=$?
23366   grep -v '^ *+' conftest.er1 >conftest.err
23367   rm -f conftest.er1
23368   cat conftest.err >&5
23369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); } && {
23371          test -z "$ac_c_werror_flag" ||
23372          test ! -s conftest.err
23373        } && test -s conftest.$ac_objext; then
23374   am_cv_proto_iconv_arg1=""
23375 else
23376   $as_echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379         am_cv_proto_iconv_arg1="const"
23380 fi
23381
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383       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);"
23384 fi
23385
23386     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23387     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23388          }$am_cv_proto_iconv" >&5
23389 $as_echo "${ac_t:-
23390          }$am_cv_proto_iconv" >&6; }
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define ICONV_CONST $am_cv_proto_iconv_arg1
23394 _ACEOF
23395
23396   fi
23397
23398
23399   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23400 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23401 if test "${am_cv_langinfo_codeset+set}" = set; then
23402   $as_echo_n "(cached) " >&6
23403 else
23404   cat >conftest.$ac_ext <<_ACEOF
23405 /* confdefs.h.  */
23406 _ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h.  */
23410 #include <langinfo.h>
23411 int
23412 main ()
23413 {
23414 char* cs = nl_langinfo(CODESET);
23415   ;
23416   return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (ac_try="$ac_link"
23421 case "(($ac_try" in
23422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423   *) ac_try_echo=$ac_try;;
23424 esac
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427   (eval "$ac_link") 2>conftest.er1
23428   ac_status=$?
23429   grep -v '^ *+' conftest.er1 >conftest.err
23430   rm -f conftest.er1
23431   cat conftest.err >&5
23432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); } && {
23434          test -z "$ac_c_werror_flag" ||
23435          test ! -s conftest.err
23436        } && test -s conftest$ac_exeext && {
23437          test "$cross_compiling" = yes ||
23438          $as_test_x conftest$ac_exeext
23439        }; then
23440   am_cv_langinfo_codeset=yes
23441 else
23442   $as_echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23444
23445         am_cv_langinfo_codeset=no
23446 fi
23447
23448 rm -rf conftest.dSYM
23449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23450       conftest$ac_exeext conftest.$ac_ext
23451
23452 fi
23453 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23454 $as_echo "$am_cv_langinfo_codeset" >&6; }
23455   if test $am_cv_langinfo_codeset = yes; then
23456
23457 cat >>confdefs.h <<\_ACEOF
23458 #define HAVE_LANGINFO_CODESET 1
23459 _ACEOF
23460
23461   fi
23462
23463   if test $ac_cv_header_locale_h = yes; then
23464
23465   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23466 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23467 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
23468   $as_echo_n "(cached) " >&6
23469 else
23470   cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476 #include <locale.h>
23477 int
23478 main ()
23479 {
23480 return LC_MESSAGES
23481   ;
23482   return 0;
23483 }
23484 _ACEOF
23485 rm -f conftest.$ac_objext conftest$ac_exeext
23486 if { (ac_try="$ac_link"
23487 case "(($ac_try" in
23488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489   *) ac_try_echo=$ac_try;;
23490 esac
23491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23492 $as_echo "$ac_try_echo") >&5
23493   (eval "$ac_link") 2>conftest.er1
23494   ac_status=$?
23495   grep -v '^ *+' conftest.er1 >conftest.err
23496   rm -f conftest.er1
23497   cat conftest.err >&5
23498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } && {
23500          test -z "$ac_c_werror_flag" ||
23501          test ! -s conftest.err
23502        } && test -s conftest$ac_exeext && {
23503          test "$cross_compiling" = yes ||
23504          $as_test_x conftest$ac_exeext
23505        }; then
23506   gt_cv_val_LC_MESSAGES=yes
23507 else
23508   $as_echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23510
23511         gt_cv_val_LC_MESSAGES=no
23512 fi
23513
23514 rm -rf conftest.dSYM
23515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23516       conftest$ac_exeext conftest.$ac_ext
23517 fi
23518 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23519 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
23520   if test $gt_cv_val_LC_MESSAGES = yes; then
23521
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_LC_MESSAGES 1
23524 _ACEOF
23525
23526   fi
23527
23528   fi
23529
23530   if test -n "$INTL_MACOSX_LIBS"; then
23531     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23532   fi
23533
23534                       for ac_prog in bison
23535 do
23536   # Extract the first word of "$ac_prog", so it can be a program name with args.
23537 set dummy $ac_prog; ac_word=$2
23538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23539 $as_echo_n "checking for $ac_word... " >&6; }
23540 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23541   $as_echo_n "(cached) " >&6
23542 else
23543   if test -n "$INTLBISON"; then
23544   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23545 else
23546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23547 for as_dir in $PATH
23548 do
23549   IFS=$as_save_IFS
23550   test -z "$as_dir" && as_dir=.
23551   for ac_exec_ext in '' $ac_executable_extensions; do
23552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23553     ac_cv_prog_INTLBISON="$ac_prog"
23554     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23555     break 2
23556   fi
23557 done
23558 done
23559 IFS=$as_save_IFS
23560
23561 fi
23562 fi
23563 INTLBISON=$ac_cv_prog_INTLBISON
23564 if test -n "$INTLBISON"; then
23565   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
23566 $as_echo "$INTLBISON" >&6; }
23567 else
23568   { $as_echo "$as_me:$LINENO: result: no" >&5
23569 $as_echo "no" >&6; }
23570 fi
23571
23572
23573   test -n "$INTLBISON" && break
23574 done
23575
23576   if test -z "$INTLBISON"; then
23577     ac_verc_fail=yes
23578   else
23579         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
23580 $as_echo_n "checking version of bison... " >&6; }
23581     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23582     case $ac_prog_version in
23583       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23584       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23585          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23586       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23587     esac
23588     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23589 $as_echo "$ac_prog_version" >&6; }
23590   fi
23591   if test $ac_verc_fail = yes; then
23592     INTLBISON=:
23593   fi
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23611 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23612 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23613   $as_echo_n "(cached) " >&6
23614 else
23615   gt_save_CPPFLAGS="$CPPFLAGS"
23616      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23617      gt_save_LIBS="$LIBS"
23618      LIBS="$LIBS -framework CoreFoundation"
23619      cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625 #include <CFPreferences.h>
23626 int
23627 main ()
23628 {
23629 CFPreferencesCopyAppValue(NULL, NULL)
23630   ;
23631   return 0;
23632 }
23633 _ACEOF
23634 rm -f conftest.$ac_objext conftest$ac_exeext
23635 if { (ac_try="$ac_link"
23636 case "(($ac_try" in
23637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638   *) ac_try_echo=$ac_try;;
23639 esac
23640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642   (eval "$ac_link") 2>conftest.er1
23643   ac_status=$?
23644   grep -v '^ *+' conftest.er1 >conftest.err
23645   rm -f conftest.er1
23646   cat conftest.err >&5
23647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); } && {
23649          test -z "$ac_c_werror_flag" ||
23650          test ! -s conftest.err
23651        } && test -s conftest$ac_exeext && {
23652          test "$cross_compiling" = yes ||
23653          $as_test_x conftest$ac_exeext
23654        }; then
23655   gt_cv_func_CFPreferencesCopyAppValue=yes
23656 else
23657   $as_echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23659
23660         gt_cv_func_CFPreferencesCopyAppValue=no
23661 fi
23662
23663 rm -rf conftest.dSYM
23664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23665       conftest$ac_exeext conftest.$ac_ext
23666      CPPFLAGS="$gt_save_CPPFLAGS"
23667      LIBS="$gt_save_LIBS"
23668 fi
23669 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23670 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23671   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23672
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23675 _ACEOF
23676
23677   fi
23678     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23679 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23680 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23681   $as_echo_n "(cached) " >&6
23682 else
23683   gt_save_CPPFLAGS="$CPPFLAGS"
23684      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23685      gt_save_LIBS="$LIBS"
23686      LIBS="$LIBS -framework CoreFoundation"
23687      cat >conftest.$ac_ext <<_ACEOF
23688 /* confdefs.h.  */
23689 _ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h.  */
23693 #include <CFLocale.h>
23694 int
23695 main ()
23696 {
23697 CFLocaleCopyCurrent();
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (ac_try="$ac_link"
23704 case "(($ac_try" in
23705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706   *) ac_try_echo=$ac_try;;
23707 esac
23708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23709 $as_echo "$ac_try_echo") >&5
23710   (eval "$ac_link") 2>conftest.er1
23711   ac_status=$?
23712   grep -v '^ *+' conftest.er1 >conftest.err
23713   rm -f conftest.er1
23714   cat conftest.err >&5
23715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716   (exit $ac_status); } && {
23717          test -z "$ac_c_werror_flag" ||
23718          test ! -s conftest.err
23719        } && test -s conftest$ac_exeext && {
23720          test "$cross_compiling" = yes ||
23721          $as_test_x conftest$ac_exeext
23722        }; then
23723   gt_cv_func_CFLocaleCopyCurrent=yes
23724 else
23725   $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728         gt_cv_func_CFLocaleCopyCurrent=no
23729 fi
23730
23731 rm -rf conftest.dSYM
23732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23733       conftest$ac_exeext conftest.$ac_ext
23734      CPPFLAGS="$gt_save_CPPFLAGS"
23735      LIBS="$gt_save_LIBS"
23736 fi
23737 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23738 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23739   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23740
23741 cat >>confdefs.h <<\_ACEOF
23742 #define HAVE_CFLOCALECOPYCURRENT 1
23743 _ACEOF
23744
23745   fi
23746   INTL_MACOSX_LIBS=
23747   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23748     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23749   fi
23750
23751
23752
23753
23754   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23755 $as_echo_n "checking whether NLS is requested... " >&6; }
23756     # Check whether --enable-nls was given.
23757 if test "${enable_nls+set}" = set; then
23758   enableval=$enable_nls; USE_NLS=$enableval
23759 else
23760   USE_NLS=yes
23761 fi
23762
23763   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23764 $as_echo "$USE_NLS" >&6; }
23765
23766
23767
23768
23769     BUILD_INCLUDED_LIBINTL=no
23770     USE_INCLUDED_LIBINTL=no
23771
23772   LIBINTL=
23773   LTLIBINTL=
23774   POSUB=
23775
23776     if test "$USE_NLS" = "yes"; then
23777     gt_use_preinstalled_gnugettext=no
23778
23779       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23780 $as_echo_n "checking whether included gettext is requested... " >&6; }
23781
23782 # Check whether --with-included-gettext was given.
23783 if test "${with_included_gettext+set}" = set; then
23784   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23785 else
23786   nls_cv_force_use_gnu_gettext=no
23787 fi
23788
23789       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23790 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23791
23792       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23793       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23794
23795
23796
23797
23798
23799
23800         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23801 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23802 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23803   $as_echo_n "(cached) " >&6
23804 else
23805   cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811 #include <libintl.h>
23812 extern int _nl_msg_cat_cntr;
23813 extern int *_nl_domain_bindings;
23814 int
23815 main ()
23816 {
23817 bindtextdomain ("", "");
23818 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest.$ac_objext conftest$ac_exeext
23824 if { (ac_try="$ac_link"
23825 case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23830 $as_echo "$ac_try_echo") >&5
23831   (eval "$ac_link") 2>conftest.er1
23832   ac_status=$?
23833   grep -v '^ *+' conftest.er1 >conftest.err
23834   rm -f conftest.er1
23835   cat conftest.err >&5
23836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); } && {
23838          test -z "$ac_c_werror_flag" ||
23839          test ! -s conftest.err
23840        } && test -s conftest$ac_exeext && {
23841          test "$cross_compiling" = yes ||
23842          $as_test_x conftest$ac_exeext
23843        }; then
23844   gt_cv_func_gnugettext1_libc=yes
23845 else
23846   $as_echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849         gt_cv_func_gnugettext1_libc=no
23850 fi
23851
23852 rm -rf conftest.dSYM
23853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23854       conftest$ac_exeext conftest.$ac_ext
23855 fi
23856 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23857 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
23858
23859         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23860
23861
23862
23863     use_additional=yes
23864
23865   acl_save_prefix="$prefix"
23866   prefix="$acl_final_prefix"
23867   acl_save_exec_prefix="$exec_prefix"
23868   exec_prefix="$acl_final_exec_prefix"
23869
23870     eval additional_includedir=\"$includedir\"
23871     eval additional_libdir=\"$libdir\"
23872
23873   exec_prefix="$acl_save_exec_prefix"
23874   prefix="$acl_save_prefix"
23875
23876
23877 # Check whether --with-libintl-prefix was given.
23878 if test "${with_libintl_prefix+set}" = set; then
23879   withval=$with_libintl_prefix;
23880     if test "X$withval" = "Xno"; then
23881       use_additional=no
23882     else
23883       if test "X$withval" = "X"; then
23884
23885   acl_save_prefix="$prefix"
23886   prefix="$acl_final_prefix"
23887   acl_save_exec_prefix="$exec_prefix"
23888   exec_prefix="$acl_final_exec_prefix"
23889
23890           eval additional_includedir=\"$includedir\"
23891           eval additional_libdir=\"$libdir\"
23892
23893   exec_prefix="$acl_save_exec_prefix"
23894   prefix="$acl_save_prefix"
23895
23896       else
23897         additional_includedir="$withval/include"
23898         additional_libdir="$withval/lib"
23899       fi
23900     fi
23901
23902 fi
23903
23904       LIBINTL=
23905   LTLIBINTL=
23906   INCINTL=
23907   rpathdirs=
23908   ltrpathdirs=
23909   names_already_handled=
23910   names_next_round='intl '
23911   while test -n "$names_next_round"; do
23912     names_this_round="$names_next_round"
23913     names_next_round=
23914     for name in $names_this_round; do
23915       already_handled=
23916       for n in $names_already_handled; do
23917         if test "$n" = "$name"; then
23918           already_handled=yes
23919           break
23920         fi
23921       done
23922       if test -z "$already_handled"; then
23923         names_already_handled="$names_already_handled $name"
23924                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23925         eval value=\"\$HAVE_LIB$uppername\"
23926         if test -n "$value"; then
23927           if test "$value" = yes; then
23928             eval value=\"\$LIB$uppername\"
23929             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23930             eval value=\"\$LTLIB$uppername\"
23931             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23932           else
23933                                     :
23934           fi
23935         else
23936                               found_dir=
23937           found_la=
23938           found_so=
23939           found_a=
23940           if test $use_additional = yes; then
23941             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23942               found_dir="$additional_libdir"
23943               found_so="$additional_libdir/lib$name.$shlibext"
23944               if test -f "$additional_libdir/lib$name.la"; then
23945                 found_la="$additional_libdir/lib$name.la"
23946               fi
23947             else
23948               if test -f "$additional_libdir/lib$name.$libext"; then
23949                 found_dir="$additional_libdir"
23950                 found_a="$additional_libdir/lib$name.$libext"
23951                 if test -f "$additional_libdir/lib$name.la"; then
23952                   found_la="$additional_libdir/lib$name.la"
23953                 fi
23954               fi
23955             fi
23956           fi
23957           if test "X$found_dir" = "X"; then
23958             for x in $LDFLAGS $LTLIBINTL; do
23959
23960   acl_save_prefix="$prefix"
23961   prefix="$acl_final_prefix"
23962   acl_save_exec_prefix="$exec_prefix"
23963   exec_prefix="$acl_final_exec_prefix"
23964   eval x=\"$x\"
23965   exec_prefix="$acl_save_exec_prefix"
23966   prefix="$acl_save_prefix"
23967
23968               case "$x" in
23969                 -L*)
23970                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23971                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23972                     found_dir="$dir"
23973                     found_so="$dir/lib$name.$shlibext"
23974                     if test -f "$dir/lib$name.la"; then
23975                       found_la="$dir/lib$name.la"
23976                     fi
23977                   else
23978                     if test -f "$dir/lib$name.$libext"; then
23979                       found_dir="$dir"
23980                       found_a="$dir/lib$name.$libext"
23981                       if test -f "$dir/lib$name.la"; then
23982                         found_la="$dir/lib$name.la"
23983                       fi
23984                     fi
23985                   fi
23986                   ;;
23987               esac
23988               if test "X$found_dir" != "X"; then
23989                 break
23990               fi
23991             done
23992           fi
23993           if test "X$found_dir" != "X"; then
23994                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23995             if test "X$found_so" != "X"; then
23996                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23997                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23998               else
23999                                                                                 haveit=
24000                 for x in $ltrpathdirs; do
24001                   if test "X$x" = "X$found_dir"; then
24002                     haveit=yes
24003                     break
24004                   fi
24005                 done
24006                 if test -z "$haveit"; then
24007                   ltrpathdirs="$ltrpathdirs $found_dir"
24008                 fi
24009                                 if test "$hardcode_direct" = yes; then
24010                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24011                 else
24012                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24013                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24014                                                             haveit=
24015                     for x in $rpathdirs; do
24016                       if test "X$x" = "X$found_dir"; then
24017                         haveit=yes
24018                         break
24019                       fi
24020                     done
24021                     if test -z "$haveit"; then
24022                       rpathdirs="$rpathdirs $found_dir"
24023                     fi
24024                   else
24025                                                                                 haveit=
24026                     for x in $LDFLAGS $LIBINTL; do
24027
24028   acl_save_prefix="$prefix"
24029   prefix="$acl_final_prefix"
24030   acl_save_exec_prefix="$exec_prefix"
24031   exec_prefix="$acl_final_exec_prefix"
24032   eval x=\"$x\"
24033   exec_prefix="$acl_save_exec_prefix"
24034   prefix="$acl_save_prefix"
24035
24036                       if test "X$x" = "X-L$found_dir"; then
24037                         haveit=yes
24038                         break
24039                       fi
24040                     done
24041                     if test -z "$haveit"; then
24042                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24043                     fi
24044                     if test "$hardcode_minus_L" != no; then
24045                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24046                     else
24047                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24048                     fi
24049                   fi
24050                 fi
24051               fi
24052             else
24053               if test "X$found_a" != "X"; then
24054                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24055               else
24056                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24057               fi
24058             fi
24059                         additional_includedir=
24060             case "$found_dir" in
24061               */lib | */lib/)
24062                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24063                 additional_includedir="$basedir/include"
24064                 ;;
24065             esac
24066             if test "X$additional_includedir" != "X"; then
24067                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24068                 haveit=
24069                 if test "X$additional_includedir" = "X/usr/local/include"; then
24070                   if test -n "$GCC"; then
24071                     case $host_os in
24072                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24073                     esac
24074                   fi
24075                 fi
24076                 if test -z "$haveit"; then
24077                   for x in $CPPFLAGS $INCINTL; do
24078
24079   acl_save_prefix="$prefix"
24080   prefix="$acl_final_prefix"
24081   acl_save_exec_prefix="$exec_prefix"
24082   exec_prefix="$acl_final_exec_prefix"
24083   eval x=\"$x\"
24084   exec_prefix="$acl_save_exec_prefix"
24085   prefix="$acl_save_prefix"
24086
24087                     if test "X$x" = "X-I$additional_includedir"; then
24088                       haveit=yes
24089                       break
24090                     fi
24091                   done
24092                   if test -z "$haveit"; then
24093                     if test -d "$additional_includedir"; then
24094                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24095                     fi
24096                   fi
24097                 fi
24098               fi
24099             fi
24100                         if test -n "$found_la"; then
24101                                                         save_libdir="$libdir"
24102               case "$found_la" in
24103                 */* | *\\*) . "$found_la" ;;
24104                 *) . "./$found_la" ;;
24105               esac
24106               libdir="$save_libdir"
24107                             for dep in $dependency_libs; do
24108                 case "$dep" in
24109                   -L*)
24110                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24111                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
24112                       haveit=
24113                       if test "X$additional_libdir" = "X/usr/local/lib"; then
24114                         if test -n "$GCC"; then
24115                           case $host_os in
24116                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24117                           esac
24118                         fi
24119                       fi
24120                       if test -z "$haveit"; then
24121                         haveit=
24122                         for x in $LDFLAGS $LIBINTL; do
24123
24124   acl_save_prefix="$prefix"
24125   prefix="$acl_final_prefix"
24126   acl_save_exec_prefix="$exec_prefix"
24127   exec_prefix="$acl_final_exec_prefix"
24128   eval x=\"$x\"
24129   exec_prefix="$acl_save_exec_prefix"
24130   prefix="$acl_save_prefix"
24131
24132                           if test "X$x" = "X-L$additional_libdir"; then
24133                             haveit=yes
24134                             break
24135                           fi
24136                         done
24137                         if test -z "$haveit"; then
24138                           if test -d "$additional_libdir"; then
24139                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24140                           fi
24141                         fi
24142                         haveit=
24143                         for x in $LDFLAGS $LTLIBINTL; do
24144
24145   acl_save_prefix="$prefix"
24146   prefix="$acl_final_prefix"
24147   acl_save_exec_prefix="$exec_prefix"
24148   exec_prefix="$acl_final_exec_prefix"
24149   eval x=\"$x\"
24150   exec_prefix="$acl_save_exec_prefix"
24151   prefix="$acl_save_prefix"
24152
24153                           if test "X$x" = "X-L$additional_libdir"; then
24154                             haveit=yes
24155                             break
24156                           fi
24157                         done
24158                         if test -z "$haveit"; then
24159                           if test -d "$additional_libdir"; then
24160                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24161                           fi
24162                         fi
24163                       fi
24164                     fi
24165                     ;;
24166                   -R*)
24167                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24168                     if test "$enable_rpath" != no; then
24169                                                                   haveit=
24170                       for x in $rpathdirs; do
24171                         if test "X$x" = "X$dir"; then
24172                           haveit=yes
24173                           break
24174                         fi
24175                       done
24176                       if test -z "$haveit"; then
24177                         rpathdirs="$rpathdirs $dir"
24178                       fi
24179                                                                   haveit=
24180                       for x in $ltrpathdirs; do
24181                         if test "X$x" = "X$dir"; then
24182                           haveit=yes
24183                           break
24184                         fi
24185                       done
24186                       if test -z "$haveit"; then
24187                         ltrpathdirs="$ltrpathdirs $dir"
24188                       fi
24189                     fi
24190                     ;;
24191                   -l*)
24192                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24193                     ;;
24194                   *.la)
24195                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24196                     ;;
24197                   *)
24198                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24199                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24200                     ;;
24201                 esac
24202               done
24203             fi
24204           else
24205                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24206             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24207           fi
24208         fi
24209       fi
24210     done
24211   done
24212   if test "X$rpathdirs" != "X"; then
24213     if test -n "$hardcode_libdir_separator"; then
24214                         alldirs=
24215       for found_dir in $rpathdirs; do
24216         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24217       done
24218             acl_save_libdir="$libdir"
24219       libdir="$alldirs"
24220       eval flag=\"$hardcode_libdir_flag_spec\"
24221       libdir="$acl_save_libdir"
24222       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24223     else
24224             for found_dir in $rpathdirs; do
24225         acl_save_libdir="$libdir"
24226         libdir="$found_dir"
24227         eval flag=\"$hardcode_libdir_flag_spec\"
24228         libdir="$acl_save_libdir"
24229         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24230       done
24231     fi
24232   fi
24233   if test "X$ltrpathdirs" != "X"; then
24234             for found_dir in $ltrpathdirs; do
24235       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24236     done
24237   fi
24238
24239           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24240 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24241 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
24242   $as_echo_n "(cached) " >&6
24243 else
24244   gt_save_CPPFLAGS="$CPPFLAGS"
24245             CPPFLAGS="$CPPFLAGS $INCINTL"
24246             gt_save_LIBS="$LIBS"
24247             LIBS="$LIBS $LIBINTL"
24248                         cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h.  */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h.  */
24254 #include <libintl.h>
24255 extern int _nl_msg_cat_cntr;
24256 extern
24257 #ifdef __cplusplus
24258 "C"
24259 #endif
24260 const char *_nl_expand_alias (const char *);
24261 int
24262 main ()
24263 {
24264 bindtextdomain ("", "");
24265 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24266   ;
24267   return 0;
24268 }
24269 _ACEOF
24270 rm -f conftest.$ac_objext conftest$ac_exeext
24271 if { (ac_try="$ac_link"
24272 case "(($ac_try" in
24273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274   *) ac_try_echo=$ac_try;;
24275 esac
24276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24277 $as_echo "$ac_try_echo") >&5
24278   (eval "$ac_link") 2>conftest.er1
24279   ac_status=$?
24280   grep -v '^ *+' conftest.er1 >conftest.err
24281   rm -f conftest.er1
24282   cat conftest.err >&5
24283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); } && {
24285          test -z "$ac_c_werror_flag" ||
24286          test ! -s conftest.err
24287        } && test -s conftest$ac_exeext && {
24288          test "$cross_compiling" = yes ||
24289          $as_test_x conftest$ac_exeext
24290        }; then
24291   gt_cv_func_gnugettext1_libintl=yes
24292 else
24293   $as_echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296         gt_cv_func_gnugettext1_libintl=no
24297 fi
24298
24299 rm -rf conftest.dSYM
24300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24301       conftest$ac_exeext conftest.$ac_ext
24302                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
24303               LIBS="$LIBS $LIBICONV"
24304               cat >conftest.$ac_ext <<_ACEOF
24305 /* confdefs.h.  */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h.  */
24310 #include <libintl.h>
24311 extern int _nl_msg_cat_cntr;
24312 extern
24313 #ifdef __cplusplus
24314 "C"
24315 #endif
24316 const char *_nl_expand_alias (const char *);
24317 int
24318 main ()
24319 {
24320 bindtextdomain ("", "");
24321 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24322   ;
24323   return 0;
24324 }
24325 _ACEOF
24326 rm -f conftest.$ac_objext conftest$ac_exeext
24327 if { (ac_try="$ac_link"
24328 case "(($ac_try" in
24329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24330   *) ac_try_echo=$ac_try;;
24331 esac
24332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24333 $as_echo "$ac_try_echo") >&5
24334   (eval "$ac_link") 2>conftest.er1
24335   ac_status=$?
24336   grep -v '^ *+' conftest.er1 >conftest.err
24337   rm -f conftest.er1
24338   cat conftest.err >&5
24339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); } && {
24341          test -z "$ac_c_werror_flag" ||
24342          test ! -s conftest.err
24343        } && test -s conftest$ac_exeext && {
24344          test "$cross_compiling" = yes ||
24345          $as_test_x conftest$ac_exeext
24346        }; then
24347   LIBINTL="$LIBINTL $LIBICONV"
24348                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24349                 gt_cv_func_gnugettext1_libintl=yes
24350
24351 else
24352   $as_echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24354
24355
24356 fi
24357
24358 rm -rf conftest.dSYM
24359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24360       conftest$ac_exeext conftest.$ac_ext
24361             fi
24362             CPPFLAGS="$gt_save_CPPFLAGS"
24363             LIBS="$gt_save_LIBS"
24364 fi
24365 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
24366 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
24367         fi
24368
24369                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
24370            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
24371                 && test "$PACKAGE" != gettext-runtime \
24372                 && test "$PACKAGE" != gettext-tools; }; then
24373           gt_use_preinstalled_gnugettext=yes
24374         else
24375                     LIBINTL=
24376           LTLIBINTL=
24377           INCINTL=
24378         fi
24379
24380
24381         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
24382                               nls_cv_use_gnu_gettext=yes
24383         fi
24384       fi
24385
24386       if test "$nls_cv_use_gnu_gettext" = "yes"; then
24387                 BUILD_INCLUDED_LIBINTL=yes
24388         USE_INCLUDED_LIBINTL=yes
24389         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
24390         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
24391         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
24392       fi
24393
24394       CATOBJEXT=
24395       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24396          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24397                 CATOBJEXT=.gmo
24398       fi
24399
24400
24401     if test -n "$INTL_MACOSX_LIBS"; then
24402       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24403          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24404                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24405         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24406       fi
24407     fi
24408
24409     if test "$gt_use_preinstalled_gnugettext" = "yes" \
24410        || test "$nls_cv_use_gnu_gettext" = "yes"; then
24411
24412 cat >>confdefs.h <<\_ACEOF
24413 #define ENABLE_NLS 1
24414 _ACEOF
24415
24416     else
24417       USE_NLS=no
24418     fi
24419   fi
24420
24421   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
24422 $as_echo_n "checking whether to use NLS... " >&6; }
24423   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
24424 $as_echo "$USE_NLS" >&6; }
24425   if test "$USE_NLS" = "yes"; then
24426     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24427 $as_echo_n "checking where the gettext function comes from... " >&6; }
24428     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24429       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24430         gt_source="external libintl"
24431       else
24432         gt_source="libc"
24433       fi
24434     else
24435       gt_source="included intl directory"
24436     fi
24437     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
24438 $as_echo "$gt_source" >&6; }
24439   fi
24440
24441   if test "$USE_NLS" = "yes"; then
24442
24443     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24444       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24445         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
24446 $as_echo_n "checking how to link with libintl... " >&6; }
24447         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
24448 $as_echo "$LIBINTL" >&6; }
24449
24450   for element in $INCINTL; do
24451     haveit=
24452     for x in $CPPFLAGS; do
24453
24454   acl_save_prefix="$prefix"
24455   prefix="$acl_final_prefix"
24456   acl_save_exec_prefix="$exec_prefix"
24457   exec_prefix="$acl_final_exec_prefix"
24458   eval x=\"$x\"
24459   exec_prefix="$acl_save_exec_prefix"
24460   prefix="$acl_save_prefix"
24461
24462       if test "X$x" = "X$element"; then
24463         haveit=yes
24464         break
24465       fi
24466     done
24467     if test -z "$haveit"; then
24468       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24469     fi
24470   done
24471
24472       fi
24473
24474
24475 cat >>confdefs.h <<\_ACEOF
24476 #define HAVE_GETTEXT 1
24477 _ACEOF
24478
24479
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_DCGETTEXT 1
24482 _ACEOF
24483
24484     fi
24485
24486         POSUB=po
24487   fi
24488
24489
24490             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
24491       BUILD_INCLUDED_LIBINTL=yes
24492     fi
24493
24494
24495
24496
24497
24498         nls_cv_header_intl=
24499     nls_cv_header_libgt=
24500
24501         DATADIRNAME=share
24502
24503
24504         INSTOBJEXT=.mo
24505
24506
24507         GENCAT=gencat
24508
24509
24510         INTLOBJS=
24511     if test "$USE_INCLUDED_LIBINTL" = yes; then
24512       INTLOBJS="\$(GETTOBJS)"
24513     fi
24514
24515
24516         INTL_LIBTOOL_SUFFIX_PREFIX=
24517
24518
24519
24520     INTLLIBS="$LIBINTL"
24521
24522
24523
24524
24525
24526
24527 fi
24528
24529 support_mysql=no
24530 support_sqlite=no
24531 support_sqlite3=no
24532 support_postgresql=no
24533 support_ingres=no
24534 support_dbi=no
24535 support_smartalloc=yes
24536 support_readline=yes
24537 support_conio=yes
24538 support_gnome=no
24539 support_bat=no
24540 support_wx_console=no
24541 support_tray_monitor=no
24542 support_tls=no
24543 support_crypto=no
24544 gnome_version=
24545 wx_version=
24546 support_static_tools=no
24547 support_static_fd=no
24548 support_static_sd=no
24549 support_static_dir=no
24550 support_static_cons=no
24551 support_python=no
24552 build_client_only=no
24553 build_dird=yes
24554 build_stored=yes
24555 cats=
24556 db_type=Internal
24557 support_lockmgr=no
24558 DB_TYPE=bdb
24559
24560
24561 # Check whether --enable-gnome was given.
24562 if test "${enable_gnome+set}" = set; then
24563   enableval=$enable_gnome;
24564        if test x$enableval = xyes; then
24565           support_gnome=yes
24566        fi
24567
24568
24569 fi
24570
24571
24572 GNOME_DIR=
24573 if test x$support_gnome = xyes; then
24574    { { $as_echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24575 $as_echo "$as_me: error: bgnome-console no longer supported" >&2;}
24576    { (exit 1); exit 1; }; }
24577    { { $as_echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24578 $as_echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24579    { (exit 1); exit 1; }; }
24580 fi
24581 # AC_SUBST(GNOME_DIR)
24582
24583 # Check whether --enable-bat was given.
24584 if test "${enable_bat+set}" = set; then
24585   enableval=$enable_bat;
24586        if test x$enableval = xyes; then
24587
24588 cat >>confdefs.h <<\_ACEOF
24589 #define HAVE_BAT 1
24590 _ACEOF
24591
24592           support_bat=yes
24593        fi
24594
24595
24596 fi
24597
24598
24599 BAT_DIR=
24600 if test x$support_bat = xyes; then
24601    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24602    pkg=$?
24603    if test $pkg = 0; then
24604       BAT_DIR=src/qt-console
24605    else
24606       { { $as_echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24607 $as_echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24608    { (exit 1); exit 1; }; }
24609    fi
24610 fi
24611
24612 got_qwt=no
24613 QWT_INC=
24614 QWT_LDFLAGS=
24615 QWT_LIB=
24616 QWT=
24617 no_qwt=no
24618
24619
24620
24621
24622
24623
24624
24625
24626 # Check whether --enable-bwx-console was given.
24627 if test "${enable_bwx_console+set}" = set; then
24628   enableval=$enable_bwx_console;
24629        if test x$enableval = xyes; then
24630           support_wx_console=yes
24631        fi
24632
24633
24634 fi
24635
24636
24637 WX_DIR=
24638 if test x$support_wx_console = xyes; then
24639    abc=`$WXCONFIG $WXFLAGS --cppflags`
24640    pkg=$?
24641    if test $pkg = 0; then
24642       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24643       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24644       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24645
24646
24647
24648       WX_DIR="src/wx-console"
24649    else
24650       echo " "
24651       echo "wx-config program not found. bwx-console disabled."
24652       echo " "
24653       support_wx_console=no
24654    fi
24655 fi
24656
24657
24658 # Check whether --enable-tray-monitor was given.
24659 if test "${enable_tray_monitor+set}" = set; then
24660   enableval=$enable_tray_monitor;
24661        if test x$enableval = xyes; then
24662           support_tray_monitor=yes
24663        fi
24664
24665
24666 fi
24667
24668
24669 TRAY_MONITOR_DIR=
24670 if test x$support_tray_monitor = xyes; then
24671    abc=`$PKGCONFIG --exists gtk+-2.0`
24672    pkg=$?
24673    if test $pkg = 0; then
24674       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24675       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24676
24677
24678       TRAY_MONITOR_DIR=src/tray-monitor
24679       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24680       pkg=$?
24681       if test $pkg = 0; then
24682
24683 cat >>confdefs.h <<\_ACEOF
24684 #define HAVE_GTK_2_4 1
24685 _ACEOF
24686
24687       fi
24688    fi
24689 fi
24690
24691
24692 # Check whether --enable-smartalloc was given.
24693 if test "${enable_smartalloc+set}" = set; then
24694   enableval=$enable_smartalloc;
24695        if test x$enableval = xno; then
24696           support_smartalloc=no
24697        fi
24698
24699
24700 fi
24701
24702
24703 if test x$support_smartalloc = xyes; then
24704
24705 cat >>confdefs.h <<\_ACEOF
24706 #define SMARTALLOC 1
24707 _ACEOF
24708
24709 fi
24710
24711 # Check whether --enable-lockmgr was given.
24712 if test "${enable_lockmgr+set}" = set; then
24713   enableval=$enable_lockmgr;
24714        if test x$enableval = xyes; then
24715           support_lockmgr=yes
24716        fi
24717
24718
24719 fi
24720
24721
24722 if test x$support_lockmgr = xyes; then
24723
24724 cat >>confdefs.h <<\_ACEOF
24725 #define _USE_LOCKMGR 1
24726 _ACEOF
24727
24728 fi
24729
24730
24731 # Check whether --enable-static-tools was given.
24732 if test "${enable_static_tools+set}" = set; then
24733   enableval=$enable_static_tools;
24734        if test x$enableval = xyes; then
24735           if test x$use_libtool = xyes; then
24736              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24737   please rerun configure with --disable-libtool" >&5
24738 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24739   please rerun configure with --disable-libtool" >&2;}
24740    { (exit 1); exit 1; }; }
24741           fi
24742           support_static_tools=yes
24743        fi
24744
24745
24746 fi
24747
24748
24749 TTOOL_LDFLAGS=
24750 if test x$support_static_tools = xyes; then
24751    TTOOL_LDFLAGS="-static"
24752 fi
24753
24754
24755 # Check whether --enable-static-fd was given.
24756 if test "${enable_static_fd+set}" = set; then
24757   enableval=$enable_static_fd;
24758        if test x$enableval = xyes; then
24759           if test x$use_libtool = xyes; then
24760              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24761   please rerun configure with --disable-libtool" >&5
24762 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24763   please rerun configure with --disable-libtool" >&2;}
24764    { (exit 1); exit 1; }; }
24765           fi
24766           support_static_fd=yes
24767        fi
24768
24769
24770 fi
24771
24772
24773 STATIC_FD=
24774 if test x$support_static_fd = xyes; then
24775    STATIC_FD="static-bacula-fd"
24776 fi
24777
24778
24779 # Check whether --enable-static-sd was given.
24780 if test "${enable_static_sd+set}" = set; then
24781   enableval=$enable_static_sd;
24782        if test x$enableval = xyes; then
24783           if test x$use_libtool = xyes; then
24784              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24785   please rerun configure with --disable-libtool" >&5
24786 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24787   please rerun configure with --disable-libtool" >&2;}
24788    { (exit 1); exit 1; }; }
24789           fi
24790           support_static_sd=yes
24791        fi
24792
24793
24794 fi
24795
24796
24797 STATIC_SD=
24798 if test x$support_static_sd = xyes; then
24799    STATIC_SD="static-bacula-sd"
24800 fi
24801
24802
24803 # Check whether --enable-static-dir was given.
24804 if test "${enable_static_dir+set}" = set; then
24805   enableval=$enable_static_dir;
24806        if test x$enableval = xyes; then
24807           if test x$use_libtool = xyes; then
24808              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24809   please rerun configure with --disable-libtool" >&5
24810 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24811   please rerun configure with --disable-libtool" >&2;}
24812    { (exit 1); exit 1; }; }
24813           fi
24814           support_static_dir=yes
24815        fi
24816
24817
24818 fi
24819
24820
24821 STATIC_DIR=
24822 if test x$support_static_dir = xyes; then
24823    STATIC_DIR="static-bacula-dir"
24824 fi
24825
24826
24827 # Check whether --enable-static-cons was given.
24828 if test "${enable_static_cons+set}" = set; then
24829   enableval=$enable_static_cons;
24830        if test x$enableval = xyes; then
24831           if test x$use_libtool = xyes; then
24832              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24833   please rerun configure with --disable-libtool" >&5
24834 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24835   please rerun configure with --disable-libtool" >&2;}
24836    { (exit 1); exit 1; }; }
24837           fi
24838           support_static_cons=yes
24839        fi
24840
24841
24842 fi
24843
24844
24845 STATIC_CONS=
24846 STATIC_GNOME_CONS=
24847 STATIC_WX_CONS=
24848 if test x$support_static_cons = xyes; then
24849    STATIC_CONS="static-bconsole"
24850    STATIC_GNOME_CONS="static-bgnome-console"
24851    STATIC_WX_CONS="static-bwx-console"
24852 fi
24853
24854
24855
24856
24857 # Check whether --enable-client-only was given.
24858 if test "${enable_client_only+set}" = set; then
24859   enableval=$enable_client_only;
24860        if test x$enableval = xyes; then
24861           build_client_only=yes
24862           db_type=None
24863           DB_TYPE=none
24864        fi
24865
24866
24867 fi
24868
24869 if test x$build_client_only = xno; then
24870    ALL_DIRS="subdirs"
24871 else
24872    ALL_DIRS=""
24873 fi
24874
24875
24876 # Check whether --enable-build-dird was given.
24877 if test "${enable_build_dird+set}" = set; then
24878   enableval=$enable_build_dird;
24879        if test x$enableval = xno; then
24880           build_dird=no
24881        fi
24882
24883
24884 fi
24885
24886 if test x$build_dird = xyes; then
24887    DIRD_DIR="src/dird"
24888    DIR_TOOLS="DIRTOOLS"
24889 else
24890    DIRD_DIR=""
24891    DIR_TOOLS="NODIRTOOLS"
24892 fi
24893
24894
24895
24896 # Check whether --enable-build-stored was given.
24897 if test "${enable_build_stored+set}" = set; then
24898   enableval=$enable_build_stored;
24899       if test x$enableval = xno; then
24900          build_stored=no
24901       fi
24902
24903
24904 fi
24905
24906 if test x$build_stored = xyes; then
24907    STORED_DIR="src/stored"
24908 else
24909    STORED_DIR=""
24910 fi
24911
24912
24913 # Check whether --enable-conio was given.
24914 if test "${enable_conio+set}" = set; then
24915   enableval=$enable_conio;
24916        if test x$enableval = xno; then
24917           support_conio=no
24918        fi
24919
24920
24921 fi
24922
24923
24924
24925 support_ipv6=yes
24926 # Check whether --enable-ipv6 was given.
24927 if test "${enable_ipv6+set}" = set; then
24928   enableval=$enable_ipv6;
24929        if test x$enableval = xno; then
24930           support_ipv6=no
24931        fi
24932
24933
24934 fi
24935
24936
24937 if test x$support_ipv6 = xyes; then
24938     cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h.  */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h.  */
24944  #include <sys/types.h>
24945 #include <sys/socket.h>
24946 #include <netinet/in.h>
24947 int
24948 main ()
24949 {
24950 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24951   ;
24952   return 0;
24953 }
24954 _ACEOF
24955 rm -f conftest.$ac_objext conftest$ac_exeext
24956 if { (ac_try="$ac_link"
24957 case "(($ac_try" in
24958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24959   *) ac_try_echo=$ac_try;;
24960 esac
24961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24962 $as_echo "$ac_try_echo") >&5
24963   (eval "$ac_link") 2>conftest.er1
24964   ac_status=$?
24965   grep -v '^ *+' conftest.er1 >conftest.err
24966   rm -f conftest.er1
24967   cat conftest.err >&5
24968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); } && {
24970          test -z "$ac_c_werror_flag" ||
24971          test ! -s conftest.err
24972        } && test -s conftest$ac_exeext && {
24973          test "$cross_compiling" = yes ||
24974          $as_test_x conftest$ac_exeext
24975        }; then
24976   support_ipv6=yes
24977 else
24978   $as_echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24980
24981         support_ipv6=no
24982 fi
24983
24984 rm -rf conftest.dSYM
24985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24986       conftest$ac_exeext conftest.$ac_ext
24987 fi
24988
24989 if test x$support_ipv6 = xyes; then
24990
24991 cat >>confdefs.h <<\_ACEOF
24992 #define HAVE_IPV6 1
24993 _ACEOF
24994
24995 fi
24996
24997 TERM_LIB=""
24998 if test "${ac_cv_header_curses_h+set}" = set; then
24999   { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25000 $as_echo_n "checking for curses.h... " >&6; }
25001 if test "${ac_cv_header_curses_h+set}" = set; then
25002   $as_echo_n "(cached) " >&6
25003 fi
25004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25005 $as_echo "$ac_cv_header_curses_h" >&6; }
25006 else
25007   # Is the header compilable?
25008 { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
25009 $as_echo_n "checking curses.h usability... " >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h.  */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h.  */
25016 $ac_includes_default
25017 #include <curses.h>
25018 _ACEOF
25019 rm -f conftest.$ac_objext
25020 if { (ac_try="$ac_compile"
25021 case "(($ac_try" in
25022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023   *) ac_try_echo=$ac_try;;
25024 esac
25025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25026 $as_echo "$ac_try_echo") >&5
25027   (eval "$ac_compile") 2>conftest.er1
25028   ac_status=$?
25029   grep -v '^ *+' conftest.er1 >conftest.err
25030   rm -f conftest.er1
25031   cat conftest.err >&5
25032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); } && {
25034          test -z "$ac_c_werror_flag" ||
25035          test ! -s conftest.err
25036        } && test -s conftest.$ac_objext; then
25037   ac_header_compiler=yes
25038 else
25039   $as_echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042         ac_header_compiler=no
25043 fi
25044
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25047 $as_echo "$ac_header_compiler" >&6; }
25048
25049 # Is the header present?
25050 { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
25051 $as_echo_n "checking curses.h presence... " >&6; }
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058 #include <curses.h>
25059 _ACEOF
25060 if { (ac_try="$ac_cpp conftest.$ac_ext"
25061 case "(($ac_try" in
25062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063   *) ac_try_echo=$ac_try;;
25064 esac
25065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25066 $as_echo "$ac_try_echo") >&5
25067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25068   ac_status=$?
25069   grep -v '^ *+' conftest.er1 >conftest.err
25070   rm -f conftest.er1
25071   cat conftest.err >&5
25072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); } >/dev/null && {
25074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25075          test ! -s conftest.err
25076        }; then
25077   ac_header_preproc=yes
25078 else
25079   $as_echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25081
25082   ac_header_preproc=no
25083 fi
25084
25085 rm -f conftest.err conftest.$ac_ext
25086 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 $as_echo "$ac_header_preproc" >&6; }
25088
25089 # So?  What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25091   yes:no: )
25092     { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
25093 $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
25095 $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
25096     ac_header_preproc=yes
25097     ;;
25098   no:yes:* )
25099     { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
25100 $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
25101     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
25102 $as_echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
25103     { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
25104 $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
25105     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
25106 $as_echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25107     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
25108 $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
25109     { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
25110 $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
25111
25112     ;;
25113 esac
25114 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25115 $as_echo_n "checking for curses.h... " >&6; }
25116 if test "${ac_cv_header_curses_h+set}" = set; then
25117   $as_echo_n "(cached) " >&6
25118 else
25119   ac_cv_header_curses_h=$ac_header_preproc
25120 fi
25121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25122 $as_echo "$ac_cv_header_curses_h" >&6; }
25123
25124 fi
25125 if test "x$ac_cv_header_curses_h" = x""yes; then
25126    { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
25127 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
25128 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
25129   $as_echo_n "(cached) " >&6
25130 else
25131   ac_check_lib_save_LIBS=$LIBS
25132 LIBS="-lncurses  $LIBS"
25133 cat >conftest.$ac_ext <<_ACEOF
25134 /* confdefs.h.  */
25135 _ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h.  */
25139
25140 /* Override any GCC internal prototype to avoid an error.
25141    Use char because int might match the return type of a GCC
25142    builtin and then its argument prototype would still apply.  */
25143 #ifdef __cplusplus
25144 extern "C"
25145 #endif
25146 char tgetent ();
25147 int
25148 main ()
25149 {
25150 return tgetent ();
25151   ;
25152   return 0;
25153 }
25154 _ACEOF
25155 rm -f conftest.$ac_objext conftest$ac_exeext
25156 if { (ac_try="$ac_link"
25157 case "(($ac_try" in
25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159   *) ac_try_echo=$ac_try;;
25160 esac
25161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25162 $as_echo "$ac_try_echo") >&5
25163   (eval "$ac_link") 2>conftest.er1
25164   ac_status=$?
25165   grep -v '^ *+' conftest.er1 >conftest.err
25166   rm -f conftest.er1
25167   cat conftest.err >&5
25168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); } && {
25170          test -z "$ac_c_werror_flag" ||
25171          test ! -s conftest.err
25172        } && test -s conftest$ac_exeext && {
25173          test "$cross_compiling" = yes ||
25174          $as_test_x conftest$ac_exeext
25175        }; then
25176   ac_cv_lib_ncurses_tgetent=yes
25177 else
25178   $as_echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25180
25181         ac_cv_lib_ncurses_tgetent=no
25182 fi
25183
25184 rm -rf conftest.dSYM
25185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25186       conftest$ac_exeext conftest.$ac_ext
25187 LIBS=$ac_check_lib_save_LIBS
25188 fi
25189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
25190 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
25191 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
25192    TERM_LIB="-lncurses"
25193 else
25194    { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25195 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
25196 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25197   $as_echo_n "(cached) " >&6
25198 else
25199   ac_check_lib_save_LIBS=$LIBS
25200 LIBS="-ltermcap  $LIBS"
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207
25208 /* Override any GCC internal prototype to avoid an error.
25209    Use char because int might match the return type of a GCC
25210    builtin and then its argument prototype would still apply.  */
25211 #ifdef __cplusplus
25212 extern "C"
25213 #endif
25214 char tgetent ();
25215 int
25216 main ()
25217 {
25218 return tgetent ();
25219   ;
25220   return 0;
25221 }
25222 _ACEOF
25223 rm -f conftest.$ac_objext conftest$ac_exeext
25224 if { (ac_try="$ac_link"
25225 case "(($ac_try" in
25226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227   *) ac_try_echo=$ac_try;;
25228 esac
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231   (eval "$ac_link") 2>conftest.er1
25232   ac_status=$?
25233   grep -v '^ *+' conftest.er1 >conftest.err
25234   rm -f conftest.er1
25235   cat conftest.err >&5
25236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); } && {
25238          test -z "$ac_c_werror_flag" ||
25239          test ! -s conftest.err
25240        } && test -s conftest$ac_exeext && {
25241          test "$cross_compiling" = yes ||
25242          $as_test_x conftest$ac_exeext
25243        }; then
25244   ac_cv_lib_termcap_tgetent=yes
25245 else
25246   $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25248
25249         ac_cv_lib_termcap_tgetent=no
25250 fi
25251
25252 rm -rf conftest.dSYM
25253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25254       conftest$ac_exeext conftest.$ac_ext
25255 LIBS=$ac_check_lib_save_LIBS
25256 fi
25257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25258 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
25259 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
25260    TERM_LIB="-ltermcap"
25261 fi
25262
25263
25264 fi
25265
25266
25267 else
25268
25269 for ac_header in curses.h
25270 do
25271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25273   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25274 $as_echo_n "checking for $ac_header... " >&6; }
25275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25276   $as_echo_n "(cached) " >&6
25277 fi
25278 ac_res=`eval 'as_val=${'$as_ac_Header'}
25279                  $as_echo "$as_val"'`
25280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25281 $as_echo "$ac_res" >&6; }
25282 else
25283   # Is the header compilable?
25284 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25285 $as_echo_n "checking $ac_header usability... " >&6; }
25286 cat >conftest.$ac_ext <<_ACEOF
25287 /* confdefs.h.  */
25288 _ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h.  */
25292 $ac_includes_default
25293 #include <$ac_header>
25294 _ACEOF
25295 rm -f conftest.$ac_objext
25296 if { (ac_try="$ac_compile"
25297 case "(($ac_try" in
25298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299   *) ac_try_echo=$ac_try;;
25300 esac
25301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25302 $as_echo "$ac_try_echo") >&5
25303   (eval "$ac_compile") 2>conftest.er1
25304   ac_status=$?
25305   grep -v '^ *+' conftest.er1 >conftest.err
25306   rm -f conftest.er1
25307   cat conftest.err >&5
25308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); } && {
25310          test -z "$ac_c_werror_flag" ||
25311          test ! -s conftest.err
25312        } && test -s conftest.$ac_objext; then
25313   ac_header_compiler=yes
25314 else
25315   $as_echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318         ac_header_compiler=no
25319 fi
25320
25321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25323 $as_echo "$ac_header_compiler" >&6; }
25324
25325 # Is the header present?
25326 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25327 $as_echo_n "checking $ac_header presence... " >&6; }
25328 cat >conftest.$ac_ext <<_ACEOF
25329 /* confdefs.h.  */
25330 _ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h.  */
25334 #include <$ac_header>
25335 _ACEOF
25336 if { (ac_try="$ac_cpp conftest.$ac_ext"
25337 case "(($ac_try" in
25338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339   *) ac_try_echo=$ac_try;;
25340 esac
25341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25342 $as_echo "$ac_try_echo") >&5
25343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25344   ac_status=$?
25345   grep -v '^ *+' conftest.er1 >conftest.err
25346   rm -f conftest.er1
25347   cat conftest.err >&5
25348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); } >/dev/null && {
25350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25351          test ! -s conftest.err
25352        }; then
25353   ac_header_preproc=yes
25354 else
25355   $as_echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25357
25358   ac_header_preproc=no
25359 fi
25360
25361 rm -f conftest.err conftest.$ac_ext
25362 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25363 $as_echo "$ac_header_preproc" >&6; }
25364
25365 # So?  What about this header?
25366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25367   yes:no: )
25368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25369 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25372     ac_header_preproc=yes
25373     ;;
25374   no:yes:* )
25375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25376 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25378 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25380 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25382 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25386 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25387
25388     ;;
25389 esac
25390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25391 $as_echo_n "checking for $ac_header... " >&6; }
25392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25393   $as_echo_n "(cached) " >&6
25394 else
25395   eval "$as_ac_Header=\$ac_header_preproc"
25396 fi
25397 ac_res=`eval 'as_val=${'$as_ac_Header'}
25398                  $as_echo "$as_val"'`
25399                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25400 $as_echo "$ac_res" >&6; }
25401
25402 fi
25403 as_val=`eval 'as_val=${'$as_ac_Header'}
25404                  $as_echo "$as_val"'`
25405    if test "x$as_val" = x""yes; then
25406   cat >>confdefs.h <<_ACEOF
25407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25408 _ACEOF
25409
25410 fi
25411
25412 done
25413
25414      if test "${ac_cv_header_term_h+set}" = set; then
25415   { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25416 $as_echo_n "checking for term.h... " >&6; }
25417 if test "${ac_cv_header_term_h+set}" = set; then
25418   $as_echo_n "(cached) " >&6
25419 fi
25420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25421 $as_echo "$ac_cv_header_term_h" >&6; }
25422 else
25423   # Is the header compilable?
25424 { $as_echo "$as_me:$LINENO: checking term.h usability" >&5
25425 $as_echo_n "checking term.h usability... " >&6; }
25426 cat >conftest.$ac_ext <<_ACEOF
25427 /* confdefs.h.  */
25428 _ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h.  */
25432 $ac_includes_default
25433 #include <term.h>
25434 _ACEOF
25435 rm -f conftest.$ac_objext
25436 if { (ac_try="$ac_compile"
25437 case "(($ac_try" in
25438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25439   *) ac_try_echo=$ac_try;;
25440 esac
25441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25442 $as_echo "$ac_try_echo") >&5
25443   (eval "$ac_compile") 2>conftest.er1
25444   ac_status=$?
25445   grep -v '^ *+' conftest.er1 >conftest.err
25446   rm -f conftest.er1
25447   cat conftest.err >&5
25448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); } && {
25450          test -z "$ac_c_werror_flag" ||
25451          test ! -s conftest.err
25452        } && test -s conftest.$ac_objext; then
25453   ac_header_compiler=yes
25454 else
25455   $as_echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25457
25458         ac_header_compiler=no
25459 fi
25460
25461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25463 $as_echo "$ac_header_compiler" >&6; }
25464
25465 # Is the header present?
25466 { $as_echo "$as_me:$LINENO: checking term.h presence" >&5
25467 $as_echo_n "checking term.h presence... " >&6; }
25468 cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474 #include <term.h>
25475 _ACEOF
25476 if { (ac_try="$ac_cpp conftest.$ac_ext"
25477 case "(($ac_try" in
25478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479   *) ac_try_echo=$ac_try;;
25480 esac
25481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25482 $as_echo "$ac_try_echo") >&5
25483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25484   ac_status=$?
25485   grep -v '^ *+' conftest.er1 >conftest.err
25486   rm -f conftest.er1
25487   cat conftest.err >&5
25488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } >/dev/null && {
25490          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25491          test ! -s conftest.err
25492        }; then
25493   ac_header_preproc=yes
25494 else
25495   $as_echo "$as_me: failed program was:" >&5
25496 sed 's/^/| /' conftest.$ac_ext >&5
25497
25498   ac_header_preproc=no
25499 fi
25500
25501 rm -f conftest.err conftest.$ac_ext
25502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25503 $as_echo "$ac_header_preproc" >&6; }
25504
25505 # So?  What about this header?
25506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25507   yes:no: )
25508     { $as_echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
25509 $as_echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25510     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
25511 $as_echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
25512     ac_header_preproc=yes
25513     ;;
25514   no:yes:* )
25515     { $as_echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
25516 $as_echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
25517     { $as_echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
25518 $as_echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
25519     { $as_echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
25520 $as_echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
25521     { $as_echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
25522 $as_echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25523     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
25524 $as_echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
25525     { $as_echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
25526 $as_echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
25527
25528     ;;
25529 esac
25530 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25531 $as_echo_n "checking for term.h... " >&6; }
25532 if test "${ac_cv_header_term_h+set}" = set; then
25533   $as_echo_n "(cached) " >&6
25534 else
25535   ac_cv_header_term_h=$ac_header_preproc
25536 fi
25537 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25538 $as_echo "$ac_cv_header_term_h" >&6; }
25539
25540 fi
25541 if test "x$ac_cv_header_term_h" = x""yes; then
25542    { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25543 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
25544 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25545   $as_echo_n "(cached) " >&6
25546 else
25547   ac_check_lib_save_LIBS=$LIBS
25548 LIBS="-lcurses  $LIBS"
25549 cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555
25556 /* Override any GCC internal prototype to avoid an error.
25557    Use char because int might match the return type of a GCC
25558    builtin and then its argument prototype would still apply.  */
25559 #ifdef __cplusplus
25560 extern "C"
25561 #endif
25562 char tgetent ();
25563 int
25564 main ()
25565 {
25566 return tgetent ();
25567   ;
25568   return 0;
25569 }
25570 _ACEOF
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (ac_try="$ac_link"
25573 case "(($ac_try" in
25574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25575   *) ac_try_echo=$ac_try;;
25576 esac
25577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25578 $as_echo "$ac_try_echo") >&5
25579   (eval "$ac_link") 2>conftest.er1
25580   ac_status=$?
25581   grep -v '^ *+' conftest.er1 >conftest.err
25582   rm -f conftest.er1
25583   cat conftest.err >&5
25584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585   (exit $ac_status); } && {
25586          test -z "$ac_c_werror_flag" ||
25587          test ! -s conftest.err
25588        } && test -s conftest$ac_exeext && {
25589          test "$cross_compiling" = yes ||
25590          $as_test_x conftest$ac_exeext
25591        }; then
25592   ac_cv_lib_curses_tgetent=yes
25593 else
25594   $as_echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25596
25597         ac_cv_lib_curses_tgetent=no
25598 fi
25599
25600 rm -rf conftest.dSYM
25601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25602       conftest$ac_exeext conftest.$ac_ext
25603 LIBS=$ac_check_lib_save_LIBS
25604 fi
25605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25606 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
25607 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
25608    TERM_LIB="-lcurses"
25609 fi
25610
25611
25612 fi
25613
25614
25615
25616 fi
25617
25618
25619
25620
25621 got_conio="no"
25622 if test x$support_conio = xyes; then
25623    if test x$TERM_LIB != x; then
25624       CONS_LIBS=$TERM_LIB
25625       CONS_OBJ="conio.o"
25626       CONS_SRC="conio.c"
25627       got_conio="yes"
25628       support_readline=no
25629
25630 cat >>confdefs.h <<\_ACEOF
25631 #define HAVE_CONIO 1
25632 _ACEOF
25633
25634    else
25635       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25636    fi
25637 fi
25638
25639
25640 # Check whether --enable-readline was given.
25641 if test "${enable_readline+set}" = set; then
25642   enableval=$enable_readline;
25643        if test x$enableval = xno; then
25644           support_readline=no
25645        fi
25646
25647
25648 fi
25649
25650 if test x$TERM_LIB = x ; then
25651    support_readline=no
25652 fi
25653
25654 got_readline="no"
25655 READLINE_SRC=
25656 if test x$support_readline = xyes; then
25657
25658 # Check whether --with-readline was given.
25659 if test "${with_readline+set}" = set; then
25660   withval=$with_readline;
25661           case "$with_readline" in
25662           no)
25663              :
25664              ;;
25665           yes|*)
25666              if test -f ${with_readline}/readline.h; then
25667                 CONS_INC="-I${with_readline}"
25668                 CONS_LDFLAGS="-L$with_readline"
25669              elif test -f ${with_readline}/include/readline/readline.h; then
25670                 CONS_INC="-I${with_readline}/include/readline"
25671                 CONS_LDFLAGS="-L${with_readline}/lib"
25672                 with_readline="${with_readline}/include/readline"
25673              else
25674                 with_readline="/usr/include/readline"
25675              fi
25676
25677              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25679   { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25680 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25682   $as_echo_n "(cached) " >&6
25683 fi
25684 ac_res=`eval 'as_val=${'$as_ac_Header'}
25685                  $as_echo "$as_val"'`
25686                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25687 $as_echo "$ac_res" >&6; }
25688 else
25689   # Is the header compilable?
25690 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25691 $as_echo_n "checking ${with_readline}/readline.h usability... " >&6; }
25692 cat >conftest.$ac_ext <<_ACEOF
25693 /* confdefs.h.  */
25694 _ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h.  */
25698 $ac_includes_default
25699 #include <${with_readline}/readline.h>
25700 _ACEOF
25701 rm -f conftest.$ac_objext
25702 if { (ac_try="$ac_compile"
25703 case "(($ac_try" in
25704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705   *) ac_try_echo=$ac_try;;
25706 esac
25707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25708 $as_echo "$ac_try_echo") >&5
25709   (eval "$ac_compile") 2>conftest.er1
25710   ac_status=$?
25711   grep -v '^ *+' conftest.er1 >conftest.err
25712   rm -f conftest.er1
25713   cat conftest.err >&5
25714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); } && {
25716          test -z "$ac_c_werror_flag" ||
25717          test ! -s conftest.err
25718        } && test -s conftest.$ac_objext; then
25719   ac_header_compiler=yes
25720 else
25721   $as_echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25723
25724         ac_header_compiler=no
25725 fi
25726
25727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 $as_echo "$ac_header_compiler" >&6; }
25730
25731 # Is the header present?
25732 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25733 $as_echo_n "checking ${with_readline}/readline.h presence... " >&6; }
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740 #include <${with_readline}/readline.h>
25741 _ACEOF
25742 if { (ac_try="$ac_cpp conftest.$ac_ext"
25743 case "(($ac_try" in
25744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745   *) ac_try_echo=$ac_try;;
25746 esac
25747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25748 $as_echo "$ac_try_echo") >&5
25749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25750   ac_status=$?
25751   grep -v '^ *+' conftest.er1 >conftest.err
25752   rm -f conftest.er1
25753   cat conftest.err >&5
25754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755   (exit $ac_status); } >/dev/null && {
25756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25757          test ! -s conftest.err
25758        }; then
25759   ac_header_preproc=yes
25760 else
25761   $as_echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25763
25764   ac_header_preproc=no
25765 fi
25766
25767 rm -f conftest.err conftest.$ac_ext
25768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 $as_echo "$ac_header_preproc" >&6; }
25770
25771 # So?  What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25773   yes:no: )
25774     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25775 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25777 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25778     ac_header_preproc=yes
25779     ;;
25780   no:yes:* )
25781     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25782 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25783     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25784 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25785     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25786 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25787     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25788 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25789     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25790 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25791     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25792 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25793
25794     ;;
25795 esac
25796 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25797 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25799   $as_echo_n "(cached) " >&6
25800 else
25801   eval "$as_ac_Header=\$ac_header_preproc"
25802 fi
25803 ac_res=`eval 'as_val=${'$as_ac_Header'}
25804                  $as_echo "$as_val"'`
25805                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25806 $as_echo "$ac_res" >&6; }
25807
25808 fi
25809 as_val=`eval 'as_val=${'$as_ac_Header'}
25810                  $as_echo "$as_val"'`
25811    if test "x$as_val" = x""yes; then
25812
25813
25814 cat >>confdefs.h <<\_ACEOF
25815 #define HAVE_READLINE 1
25816 _ACEOF
25817
25818                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25819                     got_readline="yes"
25820
25821 else
25822
25823                     echo " "
25824                     echo "readline.h not found. readline turned off ..."
25825                     echo " "
25826
25827
25828 fi
25829
25830
25831              ;;
25832           esac
25833
25834 else
25835
25836                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25837   { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25838 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25839 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25840   $as_echo_n "(cached) " >&6
25841 fi
25842 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25843 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25844 else
25845   # Is the header compilable?
25846 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25847 $as_echo_n "checking /usr/include/readline/readline.h usability... " >&6; }
25848 cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h.  */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h.  */
25854 $ac_includes_default
25855 #include </usr/include/readline/readline.h>
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861   *) ac_try_echo=$ac_try;;
25862 esac
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865   (eval "$ac_compile") 2>conftest.er1
25866   ac_status=$?
25867   grep -v '^ *+' conftest.er1 >conftest.err
25868   rm -f conftest.er1
25869   cat conftest.err >&5
25870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871   (exit $ac_status); } && {
25872          test -z "$ac_c_werror_flag" ||
25873          test ! -s conftest.err
25874        } && test -s conftest.$ac_objext; then
25875   ac_header_compiler=yes
25876 else
25877   $as_echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25879
25880         ac_header_compiler=no
25881 fi
25882
25883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25885 $as_echo "$ac_header_compiler" >&6; }
25886
25887 # Is the header present?
25888 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25889 $as_echo_n "checking /usr/include/readline/readline.h presence... " >&6; }
25890 cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h.  */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h.  */
25896 #include </usr/include/readline/readline.h>
25897 _ACEOF
25898 if { (ac_try="$ac_cpp conftest.$ac_ext"
25899 case "(($ac_try" in
25900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901   *) ac_try_echo=$ac_try;;
25902 esac
25903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25904 $as_echo "$ac_try_echo") >&5
25905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25906   ac_status=$?
25907   grep -v '^ *+' conftest.er1 >conftest.err
25908   rm -f conftest.er1
25909   cat conftest.err >&5
25910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); } >/dev/null && {
25912          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25913          test ! -s conftest.err
25914        }; then
25915   ac_header_preproc=yes
25916 else
25917   $as_echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25919
25920   ac_header_preproc=no
25921 fi
25922
25923 rm -f conftest.err conftest.$ac_ext
25924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25925 $as_echo "$ac_header_preproc" >&6; }
25926
25927 # So?  What about this header?
25928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25929   yes:no: )
25930     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25931 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25932     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25933 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25934     ac_header_preproc=yes
25935     ;;
25936   no:yes:* )
25937     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25938 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25939     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25940 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25941     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25942 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25943     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25944 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25945     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25946 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25947     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25948 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25949
25950     ;;
25951 esac
25952 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25953 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25954 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25955   $as_echo_n "(cached) " >&6
25956 else
25957   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25958 fi
25959 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25960 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25961
25962 fi
25963 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then
25964
25965
25966 cat >>confdefs.h <<\_ACEOF
25967 #define HAVE_READLINE 1
25968 _ACEOF
25969
25970                 got_readline="yes"
25971                 CONS_INC="-I/usr/include/readline"
25972                 CONS_LIBS="-lreadline $TERM_LIB"
25973
25974 else
25975
25976                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25978   { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25979 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
25980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25981   $as_echo_n "(cached) " >&6
25982 fi
25983 ac_res=`eval 'as_val=${'$as_ac_Header'}
25984                  $as_echo "$as_val"'`
25985                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25986 $as_echo "$ac_res" >&6; }
25987 else
25988   # Is the header compilable?
25989 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25990 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h usability... " >&6; }
25991 cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997 $ac_includes_default
25998 #include <${TOP_DIR}/depkgs/readline/readline.h>
25999 _ACEOF
26000 rm -f conftest.$ac_objext
26001 if { (ac_try="$ac_compile"
26002 case "(($ac_try" in
26003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004   *) ac_try_echo=$ac_try;;
26005 esac
26006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26007 $as_echo "$ac_try_echo") >&5
26008   (eval "$ac_compile") 2>conftest.er1
26009   ac_status=$?
26010   grep -v '^ *+' conftest.er1 >conftest.err
26011   rm -f conftest.er1
26012   cat conftest.err >&5
26013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014   (exit $ac_status); } && {
26015          test -z "$ac_c_werror_flag" ||
26016          test ! -s conftest.err
26017        } && test -s conftest.$ac_objext; then
26018   ac_header_compiler=yes
26019 else
26020   $as_echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023         ac_header_compiler=no
26024 fi
26025
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26028 $as_echo "$ac_header_compiler" >&6; }
26029
26030 # Is the header present?
26031 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
26032 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h presence... " >&6; }
26033 cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 #include <${TOP_DIR}/depkgs/readline/readline.h>
26040 _ACEOF
26041 if { (ac_try="$ac_cpp conftest.$ac_ext"
26042 case "(($ac_try" in
26043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044   *) ac_try_echo=$ac_try;;
26045 esac
26046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26047 $as_echo "$ac_try_echo") >&5
26048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26049   ac_status=$?
26050   grep -v '^ *+' conftest.er1 >conftest.err
26051   rm -f conftest.er1
26052   cat conftest.err >&5
26053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); } >/dev/null && {
26055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26056          test ! -s conftest.err
26057        }; then
26058   ac_header_preproc=yes
26059 else
26060   $as_echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26062
26063   ac_header_preproc=no
26064 fi
26065
26066 rm -f conftest.err conftest.$ac_ext
26067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26068 $as_echo "$ac_header_preproc" >&6; }
26069
26070 # So?  What about this header?
26071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26072   yes:no: )
26073     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26074 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26075     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
26076 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
26077     ac_header_preproc=yes
26078     ;;
26079   no:yes:* )
26080     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
26081 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
26082     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
26083 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
26084     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
26085 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
26086     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
26087 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26088     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
26089 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26090     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
26091 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26092
26093     ;;
26094 esac
26095 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26096 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26098   $as_echo_n "(cached) " >&6
26099 else
26100   eval "$as_ac_Header=\$ac_header_preproc"
26101 fi
26102 ac_res=`eval 'as_val=${'$as_ac_Header'}
26103                  $as_echo "$as_val"'`
26104                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26105 $as_echo "$ac_res" >&6; }
26106
26107 fi
26108 as_val=`eval 'as_val=${'$as_ac_Header'}
26109                  $as_echo "$as_val"'`
26110    if test "x$as_val" = x""yes; then
26111
26112
26113 cat >>confdefs.h <<\_ACEOF
26114 #define HAVE_READLINE 1
26115 _ACEOF
26116
26117                         got_readline="yes"
26118                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
26119                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
26120                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
26121                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
26122
26123 else
26124
26125                         echo " "
26126                         echo "readline.h not found. readline turned off ..."
26127                         echo " "
26128
26129
26130 fi
26131
26132
26133
26134
26135 fi
26136
26137
26138
26139
26140 fi
26141
26142 fi
26143
26144
26145
26146
26147
26148
26149
26150
26151 MAKE_SHELL=/bin/sh
26152
26153 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26154 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26155 if test "${ac_cv_header_stat_broken+set}" = set; then
26156   $as_echo_n "(cached) " >&6
26157 else
26158   cat >conftest.$ac_ext <<_ACEOF
26159 /* confdefs.h.  */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h.  */
26164 #include <sys/types.h>
26165 #include <sys/stat.h>
26166
26167 #if defined S_ISBLK && defined S_IFDIR
26168 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26169 #endif
26170
26171 #if defined S_ISBLK && defined S_IFCHR
26172 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26173 #endif
26174
26175 #if defined S_ISLNK && defined S_IFREG
26176 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26177 #endif
26178
26179 #if defined S_ISSOCK && defined S_IFREG
26180 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26181 #endif
26182
26183 _ACEOF
26184 rm -f conftest.$ac_objext
26185 if { (ac_try="$ac_compile"
26186 case "(($ac_try" in
26187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188   *) ac_try_echo=$ac_try;;
26189 esac
26190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26191 $as_echo "$ac_try_echo") >&5
26192   (eval "$ac_compile") 2>conftest.er1
26193   ac_status=$?
26194   grep -v '^ *+' conftest.er1 >conftest.err
26195   rm -f conftest.er1
26196   cat conftest.err >&5
26197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); } && {
26199          test -z "$ac_c_werror_flag" ||
26200          test ! -s conftest.err
26201        } && test -s conftest.$ac_objext; then
26202   ac_cv_header_stat_broken=no
26203 else
26204   $as_echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26206
26207         ac_cv_header_stat_broken=yes
26208 fi
26209
26210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 fi
26212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26213 $as_echo "$ac_cv_header_stat_broken" >&6; }
26214 if test $ac_cv_header_stat_broken = yes; then
26215
26216 cat >>confdefs.h <<\_ACEOF
26217 #define STAT_MACROS_BROKEN 1
26218 _ACEOF
26219
26220 fi
26221
26222
26223
26224
26225
26226
26227 ac_header_dirent=no
26228 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26229   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26230 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26231 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26233   $as_echo_n "(cached) " >&6
26234 else
26235   cat >conftest.$ac_ext <<_ACEOF
26236 /* confdefs.h.  */
26237 _ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h.  */
26241 #include <sys/types.h>
26242 #include <$ac_hdr>
26243
26244 int
26245 main ()
26246 {
26247 if ((DIR *) 0)
26248 return 0;
26249   ;
26250   return 0;
26251 }
26252 _ACEOF
26253 rm -f conftest.$ac_objext
26254 if { (ac_try="$ac_compile"
26255 case "(($ac_try" in
26256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257   *) ac_try_echo=$ac_try;;
26258 esac
26259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26260 $as_echo "$ac_try_echo") >&5
26261   (eval "$ac_compile") 2>conftest.er1
26262   ac_status=$?
26263   grep -v '^ *+' conftest.er1 >conftest.err
26264   rm -f conftest.er1
26265   cat conftest.err >&5
26266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267   (exit $ac_status); } && {
26268          test -z "$ac_c_werror_flag" ||
26269          test ! -s conftest.err
26270        } && test -s conftest.$ac_objext; then
26271   eval "$as_ac_Header=yes"
26272 else
26273   $as_echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26275
26276         eval "$as_ac_Header=no"
26277 fi
26278
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26280 fi
26281 ac_res=`eval 'as_val=${'$as_ac_Header'}
26282                  $as_echo "$as_val"'`
26283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26284 $as_echo "$ac_res" >&6; }
26285 as_val=`eval 'as_val=${'$as_ac_Header'}
26286                  $as_echo "$as_val"'`
26287    if test "x$as_val" = x""yes; then
26288   cat >>confdefs.h <<_ACEOF
26289 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26290 _ACEOF
26291
26292 ac_header_dirent=$ac_hdr; break
26293 fi
26294
26295 done
26296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26297 if test $ac_header_dirent = dirent.h; then
26298   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26299 $as_echo_n "checking for library containing opendir... " >&6; }
26300 if test "${ac_cv_search_opendir+set}" = set; then
26301   $as_echo_n "(cached) " >&6
26302 else
26303   ac_func_search_save_LIBS=$LIBS
26304 cat >conftest.$ac_ext <<_ACEOF
26305 /* confdefs.h.  */
26306 _ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h.  */
26310
26311 /* Override any GCC internal prototype to avoid an error.
26312    Use char because int might match the return type of a GCC
26313    builtin and then its argument prototype would still apply.  */
26314 #ifdef __cplusplus
26315 extern "C"
26316 #endif
26317 char opendir ();
26318 int
26319 main ()
26320 {
26321 return opendir ();
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 for ac_lib in '' dir; do
26327   if test -z "$ac_lib"; then
26328     ac_res="none required"
26329   else
26330     ac_res=-l$ac_lib
26331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26332   fi
26333   rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337   *) ac_try_echo=$ac_try;;
26338 esac
26339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26340 $as_echo "$ac_try_echo") >&5
26341   (eval "$ac_link") 2>conftest.er1
26342   ac_status=$?
26343   grep -v '^ *+' conftest.er1 >conftest.err
26344   rm -f conftest.er1
26345   cat conftest.err >&5
26346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347   (exit $ac_status); } && {
26348          test -z "$ac_c_werror_flag" ||
26349          test ! -s conftest.err
26350        } && test -s conftest$ac_exeext && {
26351          test "$cross_compiling" = yes ||
26352          $as_test_x conftest$ac_exeext
26353        }; then
26354   ac_cv_search_opendir=$ac_res
26355 else
26356   $as_echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26358
26359
26360 fi
26361
26362 rm -rf conftest.dSYM
26363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26364       conftest$ac_exeext
26365   if test "${ac_cv_search_opendir+set}" = set; then
26366   break
26367 fi
26368 done
26369 if test "${ac_cv_search_opendir+set}" = set; then
26370   :
26371 else
26372   ac_cv_search_opendir=no
26373 fi
26374 rm conftest.$ac_ext
26375 LIBS=$ac_func_search_save_LIBS
26376 fi
26377 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26378 $as_echo "$ac_cv_search_opendir" >&6; }
26379 ac_res=$ac_cv_search_opendir
26380 if test "$ac_res" != no; then
26381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26382
26383 fi
26384
26385 else
26386   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26387 $as_echo_n "checking for library containing opendir... " >&6; }
26388 if test "${ac_cv_search_opendir+set}" = set; then
26389   $as_echo_n "(cached) " >&6
26390 else
26391   ac_func_search_save_LIBS=$LIBS
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398
26399 /* Override any GCC internal prototype to avoid an error.
26400    Use char because int might match the return type of a GCC
26401    builtin and then its argument prototype would still apply.  */
26402 #ifdef __cplusplus
26403 extern "C"
26404 #endif
26405 char opendir ();
26406 int
26407 main ()
26408 {
26409 return opendir ();
26410   ;
26411   return 0;
26412 }
26413 _ACEOF
26414 for ac_lib in '' x; do
26415   if test -z "$ac_lib"; then
26416     ac_res="none required"
26417   else
26418     ac_res=-l$ac_lib
26419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26420   fi
26421   rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425   *) ac_try_echo=$ac_try;;
26426 esac
26427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26428 $as_echo "$ac_try_echo") >&5
26429   (eval "$ac_link") 2>conftest.er1
26430   ac_status=$?
26431   grep -v '^ *+' conftest.er1 >conftest.err
26432   rm -f conftest.er1
26433   cat conftest.err >&5
26434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435   (exit $ac_status); } && {
26436          test -z "$ac_c_werror_flag" ||
26437          test ! -s conftest.err
26438        } && test -s conftest$ac_exeext && {
26439          test "$cross_compiling" = yes ||
26440          $as_test_x conftest$ac_exeext
26441        }; then
26442   ac_cv_search_opendir=$ac_res
26443 else
26444   $as_echo "$as_me: failed program was:" >&5
26445 sed 's/^/| /' conftest.$ac_ext >&5
26446
26447
26448 fi
26449
26450 rm -rf conftest.dSYM
26451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26452       conftest$ac_exeext
26453   if test "${ac_cv_search_opendir+set}" = set; then
26454   break
26455 fi
26456 done
26457 if test "${ac_cv_search_opendir+set}" = set; then
26458   :
26459 else
26460   ac_cv_search_opendir=no
26461 fi
26462 rm conftest.$ac_ext
26463 LIBS=$ac_func_search_save_LIBS
26464 fi
26465 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26466 $as_echo "$ac_cv_search_opendir" >&6; }
26467 ac_res=$ac_cv_search_opendir
26468 if test "$ac_res" != no; then
26469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26470
26471 fi
26472
26473 fi
26474
26475
26476
26477
26478
26479
26480
26481
26482 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
26483 do
26484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26485 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26486 $as_echo_n "checking for $ac_func... " >&6; }
26487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26488   $as_echo_n "(cached) " >&6
26489 else
26490   cat >conftest.$ac_ext <<_ACEOF
26491 /* confdefs.h.  */
26492 _ACEOF
26493 cat confdefs.h >>conftest.$ac_ext
26494 cat >>conftest.$ac_ext <<_ACEOF
26495 /* end confdefs.h.  */
26496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26498 #define $ac_func innocuous_$ac_func
26499
26500 /* System header to define __stub macros and hopefully few prototypes,
26501     which can conflict with char $ac_func (); below.
26502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26503     <limits.h> exists even on freestanding compilers.  */
26504
26505 #ifdef __STDC__
26506 # include <limits.h>
26507 #else
26508 # include <assert.h>
26509 #endif
26510
26511 #undef $ac_func
26512
26513 /* Override any GCC internal prototype to avoid an error.
26514    Use char because int might match the return type of a GCC
26515    builtin and then its argument prototype would still apply.  */
26516 #ifdef __cplusplus
26517 extern "C"
26518 #endif
26519 char $ac_func ();
26520 /* The GNU C library defines this for functions which it implements
26521     to always fail with ENOSYS.  Some functions are actually named
26522     something starting with __ and the normal name is an alias.  */
26523 #if defined __stub_$ac_func || defined __stub___$ac_func
26524 choke me
26525 #endif
26526
26527 int
26528 main ()
26529 {
26530 return $ac_func ();
26531   ;
26532   return 0;
26533 }
26534 _ACEOF
26535 rm -f conftest.$ac_objext conftest$ac_exeext
26536 if { (ac_try="$ac_link"
26537 case "(($ac_try" in
26538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539   *) ac_try_echo=$ac_try;;
26540 esac
26541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26542 $as_echo "$ac_try_echo") >&5
26543   (eval "$ac_link") 2>conftest.er1
26544   ac_status=$?
26545   grep -v '^ *+' conftest.er1 >conftest.err
26546   rm -f conftest.er1
26547   cat conftest.err >&5
26548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549   (exit $ac_status); } && {
26550          test -z "$ac_c_werror_flag" ||
26551          test ! -s conftest.err
26552        } && test -s conftest$ac_exeext && {
26553          test "$cross_compiling" = yes ||
26554          $as_test_x conftest$ac_exeext
26555        }; then
26556   eval "$as_ac_var=yes"
26557 else
26558   $as_echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26560
26561         eval "$as_ac_var=no"
26562 fi
26563
26564 rm -rf conftest.dSYM
26565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26566       conftest$ac_exeext conftest.$ac_ext
26567 fi
26568 ac_res=`eval 'as_val=${'$as_ac_var'}
26569                  $as_echo "$as_val"'`
26570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26571 $as_echo "$ac_res" >&6; }
26572 as_val=`eval 'as_val=${'$as_ac_var'}
26573                  $as_echo "$as_val"'`
26574    if test "x$as_val" = x""yes; then
26575   cat >>confdefs.h <<_ACEOF
26576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26577 _ACEOF
26578
26579 fi
26580 done
26581
26582
26583
26584 for ac_func in nanosleep nl_langinfo
26585 do
26586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26588 $as_echo_n "checking for $ac_func... " >&6; }
26589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26590   $as_echo_n "(cached) " >&6
26591 else
26592   cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h.  */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h.  */
26598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26600 #define $ac_func innocuous_$ac_func
26601
26602 /* System header to define __stub macros and hopefully few prototypes,
26603     which can conflict with char $ac_func (); below.
26604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26605     <limits.h> exists even on freestanding compilers.  */
26606
26607 #ifdef __STDC__
26608 # include <limits.h>
26609 #else
26610 # include <assert.h>
26611 #endif
26612
26613 #undef $ac_func
26614
26615 /* Override any GCC internal prototype to avoid an error.
26616    Use char because int might match the return type of a GCC
26617    builtin and then its argument prototype would still apply.  */
26618 #ifdef __cplusplus
26619 extern "C"
26620 #endif
26621 char $ac_func ();
26622 /* The GNU C library defines this for functions which it implements
26623     to always fail with ENOSYS.  Some functions are actually named
26624     something starting with __ and the normal name is an alias.  */
26625 #if defined __stub_$ac_func || defined __stub___$ac_func
26626 choke me
26627 #endif
26628
26629 int
26630 main ()
26631 {
26632 return $ac_func ();
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 rm -f conftest.$ac_objext conftest$ac_exeext
26638 if { (ac_try="$ac_link"
26639 case "(($ac_try" in
26640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641   *) ac_try_echo=$ac_try;;
26642 esac
26643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26644 $as_echo "$ac_try_echo") >&5
26645   (eval "$ac_link") 2>conftest.er1
26646   ac_status=$?
26647   grep -v '^ *+' conftest.er1 >conftest.err
26648   rm -f conftest.er1
26649   cat conftest.err >&5
26650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); } && {
26652          test -z "$ac_c_werror_flag" ||
26653          test ! -s conftest.err
26654        } && test -s conftest$ac_exeext && {
26655          test "$cross_compiling" = yes ||
26656          $as_test_x conftest$ac_exeext
26657        }; then
26658   eval "$as_ac_var=yes"
26659 else
26660   $as_echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26662
26663         eval "$as_ac_var=no"
26664 fi
26665
26666 rm -rf conftest.dSYM
26667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26668       conftest$ac_exeext conftest.$ac_ext
26669 fi
26670 ac_res=`eval 'as_val=${'$as_ac_var'}
26671                  $as_echo "$as_val"'`
26672                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26673 $as_echo "$ac_res" >&6; }
26674 as_val=`eval 'as_val=${'$as_ac_var'}
26675                  $as_echo "$as_val"'`
26676    if test "x$as_val" = x""yes; then
26677   cat >>confdefs.h <<_ACEOF
26678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26679 _ACEOF
26680
26681 fi
26682 done
26683
26684
26685 for ac_header in varargs.h
26686 do
26687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26689   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26690 $as_echo_n "checking for $ac_header... " >&6; }
26691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26692   $as_echo_n "(cached) " >&6
26693 fi
26694 ac_res=`eval 'as_val=${'$as_ac_Header'}
26695                  $as_echo "$as_val"'`
26696                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26697 $as_echo "$ac_res" >&6; }
26698 else
26699   # Is the header compilable?
26700 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26701 $as_echo_n "checking $ac_header usability... " >&6; }
26702 cat >conftest.$ac_ext <<_ACEOF
26703 /* confdefs.h.  */
26704 _ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h.  */
26708 $ac_includes_default
26709 #include <$ac_header>
26710 _ACEOF
26711 rm -f conftest.$ac_objext
26712 if { (ac_try="$ac_compile"
26713 case "(($ac_try" in
26714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26715   *) ac_try_echo=$ac_try;;
26716 esac
26717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26718 $as_echo "$ac_try_echo") >&5
26719   (eval "$ac_compile") 2>conftest.er1
26720   ac_status=$?
26721   grep -v '^ *+' conftest.er1 >conftest.err
26722   rm -f conftest.er1
26723   cat conftest.err >&5
26724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); } && {
26726          test -z "$ac_c_werror_flag" ||
26727          test ! -s conftest.err
26728        } && test -s conftest.$ac_objext; then
26729   ac_header_compiler=yes
26730 else
26731   $as_echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26733
26734         ac_header_compiler=no
26735 fi
26736
26737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26739 $as_echo "$ac_header_compiler" >&6; }
26740
26741 # Is the header present?
26742 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26743 $as_echo_n "checking $ac_header presence... " >&6; }
26744 cat >conftest.$ac_ext <<_ACEOF
26745 /* confdefs.h.  */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h.  */
26750 #include <$ac_header>
26751 _ACEOF
26752 if { (ac_try="$ac_cpp conftest.$ac_ext"
26753 case "(($ac_try" in
26754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755   *) ac_try_echo=$ac_try;;
26756 esac
26757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26758 $as_echo "$ac_try_echo") >&5
26759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26760   ac_status=$?
26761   grep -v '^ *+' conftest.er1 >conftest.err
26762   rm -f conftest.er1
26763   cat conftest.err >&5
26764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); } >/dev/null && {
26766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26767          test ! -s conftest.err
26768        }; then
26769   ac_header_preproc=yes
26770 else
26771   $as_echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774   ac_header_preproc=no
26775 fi
26776
26777 rm -f conftest.err conftest.$ac_ext
26778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26779 $as_echo "$ac_header_preproc" >&6; }
26780
26781 # So?  What about this header?
26782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26783   yes:no: )
26784     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26785 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26786     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26788     ac_header_preproc=yes
26789     ;;
26790   no:yes:* )
26791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26792 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26794 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26796 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26798 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26802 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26803
26804     ;;
26805 esac
26806 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26807 $as_echo_n "checking for $ac_header... " >&6; }
26808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26809   $as_echo_n "(cached) " >&6
26810 else
26811   eval "$as_ac_Header=\$ac_header_preproc"
26812 fi
26813 ac_res=`eval 'as_val=${'$as_ac_Header'}
26814                  $as_echo "$as_val"'`
26815                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26816 $as_echo "$ac_res" >&6; }
26817
26818 fi
26819 as_val=`eval 'as_val=${'$as_ac_Header'}
26820                  $as_echo "$as_val"'`
26821    if test "x$as_val" = x""yes; then
26822   cat >>confdefs.h <<_ACEOF
26823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26824 _ACEOF
26825
26826 fi
26827
26828 done
26829
26830
26831
26832 { $as_echo "$as_me:$LINENO: checking for Python support" >&5
26833 $as_echo_n "checking for Python support... " >&6; }
26834
26835 # Check whether --with-python was given.
26836 if test "${with_python+set}" = set; then
26837   withval=$with_python;
26838        PYTHON_INCDIR=
26839        PYTHON_LIBS=
26840        if test "$withval" != "no"; then
26841           if test "$withval" = "yes"; then
26842              if test -e /usr/bin/python-config ; then
26843                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26844                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26845              else
26846                 for python_root in /usr /usr/local /usr/sfw; do
26847                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26848                       if test -f $python_root/include/${ver}/Python.h; then
26849                          PYTHON_INCDIR=-I$python_root/include/${ver}
26850                          if test -d $python_root/lib64/${ver}/config; then
26851                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26852                          else
26853                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26854                          fi
26855                          break
26856                       fi
26857                    done
26858                 done
26859
26860                 if test x$PYTHON_INCDIR = x; then
26861                    if test -f $prefix/include/Python.h; then
26862                       PYTHON_INCDIR=-I$prefix/include
26863                       if test -d $prefix/lib64/config; then
26864                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26865                       else
26866                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26867                       fi
26868                    else
26869                       { $as_echo "$as_me:$LINENO: result: no" >&5
26870 $as_echo "no" >&6; }
26871                       { { $as_echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26872 $as_echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26873    { (exit 1); exit 1; }; }
26874                    fi
26875                 fi
26876              fi
26877           else
26878              if test -e $withval/bin/python-config ; then
26879                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26880                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26881              elif test -f $withval/Python.h; then
26882                 PYTHON_INCDIR=-I$withval
26883                 PYTHON_LIBS="-L$withval/config -lpython"
26884              elif test -f $withval/include/Python.h; then
26885                 PYTHON_INCDIR=-I$withval/include
26886                 if test -d $withval/lib64/config; then
26887                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26888                 else
26889                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26890                 fi
26891              elif test -f $withval/include/python/Python.h; then
26892                 PYTHON_INCDIR=-I$withval/include/python
26893                 if test -d $withval/lib64/python/config; then
26894                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26895                 else
26896                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26897                 fi
26898              else
26899                 { $as_echo "$as_me:$LINENO: result: no" >&5
26900 $as_echo "no" >&6; }
26901                 { { $as_echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26902 $as_echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26903    { (exit 1); exit 1; }; }
26904              fi
26905           fi
26906
26907           cat >>confdefs.h <<\_ACEOF
26908 #define HAVE_PYTHON 1
26909 _ACEOF
26910
26911           { $as_echo "$as_me:$LINENO: result: yes" >&5
26912 $as_echo "yes" >&6; }
26913           support_python=yes
26914           { $as_echo "$as_me:$LINENO: checking for more Python libs" >&5
26915 $as_echo "$as_me: checking for more Python libs" >&6;}
26916           saved_LIBS="$LIBS"; LIBS=
26917           { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26918 $as_echo_n "checking for library containing shm_open... " >&6; }
26919 if test "${ac_cv_search_shm_open+set}" = set; then
26920   $as_echo_n "(cached) " >&6
26921 else
26922   ac_func_search_save_LIBS=$LIBS
26923 cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929
26930 /* Override any GCC internal prototype to avoid an error.
26931    Use char because int might match the return type of a GCC
26932    builtin and then its argument prototype would still apply.  */
26933 #ifdef __cplusplus
26934 extern "C"
26935 #endif
26936 char shm_open ();
26937 int
26938 main ()
26939 {
26940 return shm_open ();
26941   ;
26942   return 0;
26943 }
26944 _ACEOF
26945 for ac_lib in '' rt; do
26946   if test -z "$ac_lib"; then
26947     ac_res="none required"
26948   else
26949     ac_res=-l$ac_lib
26950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26951   fi
26952   rm -f conftest.$ac_objext conftest$ac_exeext
26953 if { (ac_try="$ac_link"
26954 case "(($ac_try" in
26955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956   *) ac_try_echo=$ac_try;;
26957 esac
26958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26959 $as_echo "$ac_try_echo") >&5
26960   (eval "$ac_link") 2>conftest.er1
26961   ac_status=$?
26962   grep -v '^ *+' conftest.er1 >conftest.err
26963   rm -f conftest.er1
26964   cat conftest.err >&5
26965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); } && {
26967          test -z "$ac_c_werror_flag" ||
26968          test ! -s conftest.err
26969        } && test -s conftest$ac_exeext && {
26970          test "$cross_compiling" = yes ||
26971          $as_test_x conftest$ac_exeext
26972        }; then
26973   ac_cv_search_shm_open=$ac_res
26974 else
26975   $as_echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978
26979 fi
26980
26981 rm -rf conftest.dSYM
26982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26983       conftest$ac_exeext
26984   if test "${ac_cv_search_shm_open+set}" = set; then
26985   break
26986 fi
26987 done
26988 if test "${ac_cv_search_shm_open+set}" = set; then
26989   :
26990 else
26991   ac_cv_search_shm_open=no
26992 fi
26993 rm conftest.$ac_ext
26994 LIBS=$ac_func_search_save_LIBS
26995 fi
26996 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26997 $as_echo "$ac_cv_search_shm_open" >&6; }
26998 ac_res=$ac_cv_search_shm_open
26999 if test "$ac_res" != no; then
27000   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27001
27002 fi
27003
27004
27005 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27006 $as_echo_n "checking for openpty in -lutil... " >&6; }
27007 if test "${ac_cv_lib_util_openpty+set}" = set; then
27008   $as_echo_n "(cached) " >&6
27009 else
27010   ac_check_lib_save_LIBS=$LIBS
27011 LIBS="-lutil  $LIBS"
27012 cat >conftest.$ac_ext <<_ACEOF
27013 /* confdefs.h.  */
27014 _ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h.  */
27018
27019 /* Override any GCC internal prototype to avoid an error.
27020    Use char because int might match the return type of a GCC
27021    builtin and then its argument prototype would still apply.  */
27022 #ifdef __cplusplus
27023 extern "C"
27024 #endif
27025 char openpty ();
27026 int
27027 main ()
27028 {
27029 return openpty ();
27030   ;
27031   return 0;
27032 }
27033 _ACEOF
27034 rm -f conftest.$ac_objext conftest$ac_exeext
27035 if { (ac_try="$ac_link"
27036 case "(($ac_try" in
27037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038   *) ac_try_echo=$ac_try;;
27039 esac
27040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27041 $as_echo "$ac_try_echo") >&5
27042   (eval "$ac_link") 2>conftest.er1
27043   ac_status=$?
27044   grep -v '^ *+' conftest.er1 >conftest.err
27045   rm -f conftest.er1
27046   cat conftest.err >&5
27047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } && {
27049          test -z "$ac_c_werror_flag" ||
27050          test ! -s conftest.err
27051        } && test -s conftest$ac_exeext && {
27052          test "$cross_compiling" = yes ||
27053          $as_test_x conftest$ac_exeext
27054        }; then
27055   ac_cv_lib_util_openpty=yes
27056 else
27057   $as_echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27059
27060         ac_cv_lib_util_openpty=no
27061 fi
27062
27063 rm -rf conftest.dSYM
27064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27065       conftest$ac_exeext conftest.$ac_ext
27066 LIBS=$ac_check_lib_save_LIBS
27067 fi
27068 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27069 $as_echo "$ac_cv_lib_util_openpty" >&6; }
27070 if test "x$ac_cv_lib_util_openpty" = x""yes; then
27071   cat >>confdefs.h <<_ACEOF
27072 #define HAVE_LIBUTIL 1
27073 _ACEOF
27074
27075   LIBS="-lutil $LIBS"
27076
27077 fi
27078
27079           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
27080           LIBS="$saved_LIBS"
27081        else
27082           { $as_echo "$as_me:$LINENO: result: no" >&5
27083 $as_echo "no" >&6; }
27084        fi
27085
27086 else
27087
27088        { $as_echo "$as_me:$LINENO: result: no" >&5
27089 $as_echo "no" >&6; }
27090
27091
27092 fi
27093
27094
27095
27096
27097 { $as_echo "$as_me:$LINENO: checking for socket" >&5
27098 $as_echo_n "checking for socket... " >&6; }
27099 if test "${ac_cv_func_socket+set}" = set; then
27100   $as_echo_n "(cached) " >&6
27101 else
27102   cat >conftest.$ac_ext <<_ACEOF
27103 /* confdefs.h.  */
27104 _ACEOF
27105 cat confdefs.h >>conftest.$ac_ext
27106 cat >>conftest.$ac_ext <<_ACEOF
27107 /* end confdefs.h.  */
27108 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
27109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27110 #define socket innocuous_socket
27111
27112 /* System header to define __stub macros and hopefully few prototypes,
27113     which can conflict with char socket (); below.
27114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27115     <limits.h> exists even on freestanding compilers.  */
27116
27117 #ifdef __STDC__
27118 # include <limits.h>
27119 #else
27120 # include <assert.h>
27121 #endif
27122
27123 #undef socket
27124
27125 /* Override any GCC internal prototype to avoid an error.
27126    Use char because int might match the return type of a GCC
27127    builtin and then its argument prototype would still apply.  */
27128 #ifdef __cplusplus
27129 extern "C"
27130 #endif
27131 char socket ();
27132 /* The GNU C library defines this for functions which it implements
27133     to always fail with ENOSYS.  Some functions are actually named
27134     something starting with __ and the normal name is an alias.  */
27135 #if defined __stub_socket || defined __stub___socket
27136 choke me
27137 #endif
27138
27139 int
27140 main ()
27141 {
27142 return socket ();
27143   ;
27144   return 0;
27145 }
27146 _ACEOF
27147 rm -f conftest.$ac_objext conftest$ac_exeext
27148 if { (ac_try="$ac_link"
27149 case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27154 $as_echo "$ac_try_echo") >&5
27155   (eval "$ac_link") 2>conftest.er1
27156   ac_status=$?
27157   grep -v '^ *+' conftest.er1 >conftest.err
27158   rm -f conftest.er1
27159   cat conftest.err >&5
27160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161   (exit $ac_status); } && {
27162          test -z "$ac_c_werror_flag" ||
27163          test ! -s conftest.err
27164        } && test -s conftest$ac_exeext && {
27165          test "$cross_compiling" = yes ||
27166          $as_test_x conftest$ac_exeext
27167        }; then
27168   ac_cv_func_socket=yes
27169 else
27170   $as_echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27172
27173         ac_cv_func_socket=no
27174 fi
27175
27176 rm -rf conftest.dSYM
27177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27178       conftest$ac_exeext conftest.$ac_ext
27179 fi
27180 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27181 $as_echo "$ac_cv_func_socket" >&6; }
27182 if test "x$ac_cv_func_socket" = x""yes; then
27183   { $as_echo "$as_me:$LINENO: result: using libc's socket" >&5
27184 $as_echo "using libc's socket" >&6; }
27185 else
27186
27187 { $as_echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
27188 $as_echo_n "checking for socket in -lxnet... " >&6; }
27189 if test "${ac_cv_lib_xnet_socket+set}" = set; then
27190   $as_echo_n "(cached) " >&6
27191 else
27192   ac_check_lib_save_LIBS=$LIBS
27193 LIBS="-lxnet  $LIBS"
27194 cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h.  */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h.  */
27200
27201 /* Override any GCC internal prototype to avoid an error.
27202    Use char because int might match the return type of a GCC
27203    builtin and then its argument prototype would still apply.  */
27204 #ifdef __cplusplus
27205 extern "C"
27206 #endif
27207 char socket ();
27208 int
27209 main ()
27210 {
27211 return socket ();
27212   ;
27213   return 0;
27214 }
27215 _ACEOF
27216 rm -f conftest.$ac_objext conftest$ac_exeext
27217 if { (ac_try="$ac_link"
27218 case "(($ac_try" in
27219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220   *) ac_try_echo=$ac_try;;
27221 esac
27222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27223 $as_echo "$ac_try_echo") >&5
27224   (eval "$ac_link") 2>conftest.er1
27225   ac_status=$?
27226   grep -v '^ *+' conftest.er1 >conftest.err
27227   rm -f conftest.er1
27228   cat conftest.err >&5
27229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); } && {
27231          test -z "$ac_c_werror_flag" ||
27232          test ! -s conftest.err
27233        } && test -s conftest$ac_exeext && {
27234          test "$cross_compiling" = yes ||
27235          $as_test_x conftest$ac_exeext
27236        }; then
27237   ac_cv_lib_xnet_socket=yes
27238 else
27239   $as_echo "$as_me: failed program was:" >&5
27240 sed 's/^/| /' conftest.$ac_ext >&5
27241
27242         ac_cv_lib_xnet_socket=no
27243 fi
27244
27245 rm -rf conftest.dSYM
27246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27247       conftest$ac_exeext conftest.$ac_ext
27248 LIBS=$ac_check_lib_save_LIBS
27249 fi
27250 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
27251 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
27252 if test "x$ac_cv_lib_xnet_socket" = x""yes; then
27253   cat >>confdefs.h <<_ACEOF
27254 #define HAVE_LIBXNET 1
27255 _ACEOF
27256
27257   LIBS="-lxnet $LIBS"
27258
27259 fi
27260
27261
27262 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27263 $as_echo_n "checking for socket in -lsocket... " >&6; }
27264 if test "${ac_cv_lib_socket_socket+set}" = set; then
27265   $as_echo_n "(cached) " >&6
27266 else
27267   ac_check_lib_save_LIBS=$LIBS
27268 LIBS="-lsocket  $LIBS"
27269 cat >conftest.$ac_ext <<_ACEOF
27270 /* confdefs.h.  */
27271 _ACEOF
27272 cat confdefs.h >>conftest.$ac_ext
27273 cat >>conftest.$ac_ext <<_ACEOF
27274 /* end confdefs.h.  */
27275
27276 /* Override any GCC internal prototype to avoid an error.
27277    Use char because int might match the return type of a GCC
27278    builtin and then its argument prototype would still apply.  */
27279 #ifdef __cplusplus
27280 extern "C"
27281 #endif
27282 char socket ();
27283 int
27284 main ()
27285 {
27286 return socket ();
27287   ;
27288   return 0;
27289 }
27290 _ACEOF
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (ac_try="$ac_link"
27293 case "(($ac_try" in
27294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295   *) ac_try_echo=$ac_try;;
27296 esac
27297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27298 $as_echo "$ac_try_echo") >&5
27299   (eval "$ac_link") 2>conftest.er1
27300   ac_status=$?
27301   grep -v '^ *+' conftest.er1 >conftest.err
27302   rm -f conftest.er1
27303   cat conftest.err >&5
27304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } && {
27306          test -z "$ac_c_werror_flag" ||
27307          test ! -s conftest.err
27308        } && test -s conftest$ac_exeext && {
27309          test "$cross_compiling" = yes ||
27310          $as_test_x conftest$ac_exeext
27311        }; then
27312   ac_cv_lib_socket_socket=yes
27313 else
27314   $as_echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317         ac_cv_lib_socket_socket=no
27318 fi
27319
27320 rm -rf conftest.dSYM
27321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27322       conftest$ac_exeext conftest.$ac_ext
27323 LIBS=$ac_check_lib_save_LIBS
27324 fi
27325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27326 $as_echo "$ac_cv_lib_socket_socket" >&6; }
27327 if test "x$ac_cv_lib_socket_socket" = x""yes; then
27328   cat >>confdefs.h <<_ACEOF
27329 #define HAVE_LIBSOCKET 1
27330 _ACEOF
27331
27332   LIBS="-lsocket $LIBS"
27333
27334 fi
27335
27336
27337 { $as_echo "$as_me:$LINENO: checking for socket in -linet" >&5
27338 $as_echo_n "checking for socket in -linet... " >&6; }
27339 if test "${ac_cv_lib_inet_socket+set}" = set; then
27340   $as_echo_n "(cached) " >&6
27341 else
27342   ac_check_lib_save_LIBS=$LIBS
27343 LIBS="-linet  $LIBS"
27344 cat >conftest.$ac_ext <<_ACEOF
27345 /* confdefs.h.  */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h.  */
27350
27351 /* Override any GCC internal prototype to avoid an error.
27352    Use char because int might match the return type of a GCC
27353    builtin and then its argument prototype would still apply.  */
27354 #ifdef __cplusplus
27355 extern "C"
27356 #endif
27357 char socket ();
27358 int
27359 main ()
27360 {
27361 return socket ();
27362   ;
27363   return 0;
27364 }
27365 _ACEOF
27366 rm -f conftest.$ac_objext conftest$ac_exeext
27367 if { (ac_try="$ac_link"
27368 case "(($ac_try" in
27369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370   *) ac_try_echo=$ac_try;;
27371 esac
27372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27373 $as_echo "$ac_try_echo") >&5
27374   (eval "$ac_link") 2>conftest.er1
27375   ac_status=$?
27376   grep -v '^ *+' conftest.er1 >conftest.err
27377   rm -f conftest.er1
27378   cat conftest.err >&5
27379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); } && {
27381          test -z "$ac_c_werror_flag" ||
27382          test ! -s conftest.err
27383        } && test -s conftest$ac_exeext && {
27384          test "$cross_compiling" = yes ||
27385          $as_test_x conftest$ac_exeext
27386        }; then
27387   ac_cv_lib_inet_socket=yes
27388 else
27389   $as_echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27391
27392         ac_cv_lib_inet_socket=no
27393 fi
27394
27395 rm -rf conftest.dSYM
27396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27397       conftest$ac_exeext conftest.$ac_ext
27398 LIBS=$ac_check_lib_save_LIBS
27399 fi
27400 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27401 $as_echo "$ac_cv_lib_inet_socket" >&6; }
27402 if test "x$ac_cv_lib_inet_socket" = x""yes; then
27403   cat >>confdefs.h <<_ACEOF
27404 #define HAVE_LIBINET 1
27405 _ACEOF
27406
27407   LIBS="-linet $LIBS"
27408
27409 fi
27410
27411 fi
27412
27413
27414 TCPW_MSG="no"
27415 WRAPLIBS=""
27416
27417 # Check whether --with-tcp-wrappers was given.
27418 if test "${with_tcp_wrappers+set}" = set; then
27419   withval=$with_tcp_wrappers;
27420        if test "x$withval" != "xno" ; then
27421           saved_LIBS="$LIBS"
27422           LIBS="$saved_LIBS -lwrap"
27423           { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
27424 $as_echo_n "checking for library containing nanosleep... " >&6; }
27425 if test "${ac_cv_search_nanosleep+set}" = set; then
27426   $as_echo_n "(cached) " >&6
27427 else
27428   ac_func_search_save_LIBS=$LIBS
27429 cat >conftest.$ac_ext <<_ACEOF
27430 /* confdefs.h.  */
27431 _ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h.  */
27435
27436 /* Override any GCC internal prototype to avoid an error.
27437    Use char because int might match the return type of a GCC
27438    builtin and then its argument prototype would still apply.  */
27439 #ifdef __cplusplus
27440 extern "C"
27441 #endif
27442 char nanosleep ();
27443 int
27444 main ()
27445 {
27446 return nanosleep ();
27447   ;
27448   return 0;
27449 }
27450 _ACEOF
27451 for ac_lib in '' rt; do
27452   if test -z "$ac_lib"; then
27453     ac_res="none required"
27454   else
27455     ac_res=-l$ac_lib
27456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27457   fi
27458   rm -f conftest.$ac_objext conftest$ac_exeext
27459 if { (ac_try="$ac_link"
27460 case "(($ac_try" in
27461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462   *) ac_try_echo=$ac_try;;
27463 esac
27464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27465 $as_echo "$ac_try_echo") >&5
27466   (eval "$ac_link") 2>conftest.er1
27467   ac_status=$?
27468   grep -v '^ *+' conftest.er1 >conftest.err
27469   rm -f conftest.er1
27470   cat conftest.err >&5
27471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); } && {
27473          test -z "$ac_c_werror_flag" ||
27474          test ! -s conftest.err
27475        } && test -s conftest$ac_exeext && {
27476          test "$cross_compiling" = yes ||
27477          $as_test_x conftest$ac_exeext
27478        }; then
27479   ac_cv_search_nanosleep=$ac_res
27480 else
27481   $as_echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27483
27484
27485 fi
27486
27487 rm -rf conftest.dSYM
27488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27489       conftest$ac_exeext
27490   if test "${ac_cv_search_nanosleep+set}" = set; then
27491   break
27492 fi
27493 done
27494 if test "${ac_cv_search_nanosleep+set}" = set; then
27495   :
27496 else
27497   ac_cv_search_nanosleep=no
27498 fi
27499 rm conftest.$ac_ext
27500 LIBS=$ac_func_search_save_LIBS
27501 fi
27502 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
27503 $as_echo "$ac_cv_search_nanosleep" >&6; }
27504 ac_res=$ac_cv_search_nanosleep
27505 if test "$ac_res" != no; then
27506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27507
27508 fi
27509
27510           { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
27511 $as_echo_n "checking for libwrap... " >&6; }
27512           cat >conftest.$ac_ext <<_ACEOF
27513 /* confdefs.h.  */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h.  */
27518
27519                #include <sys/types.h>
27520                #include <tcpd.h>
27521                int deny_severity = 0;
27522                int allow_severity = 0;
27523                struct request_info *req;
27524
27525 int
27526 main ()
27527 {
27528
27529                 hosts_access(req);
27530
27531   ;
27532   return 0;
27533 }
27534 _ACEOF
27535 rm -f conftest.$ac_objext conftest$ac_exeext
27536 if { (ac_try="$ac_link"
27537 case "(($ac_try" in
27538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539   *) ac_try_echo=$ac_try;;
27540 esac
27541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27542 $as_echo "$ac_try_echo") >&5
27543   (eval "$ac_link") 2>conftest.er1
27544   ac_status=$?
27545   grep -v '^ *+' conftest.er1 >conftest.err
27546   rm -f conftest.er1
27547   cat conftest.err >&5
27548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549   (exit $ac_status); } && {
27550          test -z "$ac_c_werror_flag" ||
27551          test ! -s conftest.err
27552        } && test -s conftest$ac_exeext && {
27553          test "$cross_compiling" = yes ||
27554          $as_test_x conftest$ac_exeext
27555        }; then
27556
27557                  { $as_echo "$as_me:$LINENO: result: yes" >&5
27558 $as_echo "yes" >&6; }
27559
27560 cat >>confdefs.h <<\_ACEOF
27561 #define HAVE_LIBWRAP 1
27562 _ACEOF
27563
27564                  TCPW_MSG="yes"
27565                  LIBS="$saved_LIBS"
27566                  WRAPLIBS="-lwrap"
27567
27568 else
27569   $as_echo "$as_me: failed program was:" >&5
27570 sed 's/^/| /' conftest.$ac_ext >&5
27571
27572
27573                  LIBS="$saved_LIBS -lwrap -lnsl"
27574                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
27575                  cat >conftest.$ac_ext <<_ACEOF
27576 /* confdefs.h.  */
27577 _ACEOF
27578 cat confdefs.h >>conftest.$ac_ext
27579 cat >>conftest.$ac_ext <<_ACEOF
27580 /* end confdefs.h.  */
27581
27582                        #include <sys/types.h>
27583                        #include <tcpd.h>
27584                        int deny_severity = 0;
27585                        int allow_severity = 0;
27586                        struct request_info *req;
27587
27588 int
27589 main ()
27590 {
27591
27592                        hosts_access(req);
27593
27594   ;
27595   return 0;
27596 }
27597 _ACEOF
27598 rm -f conftest.$ac_objext conftest$ac_exeext
27599 if { (ac_try="$ac_link"
27600 case "(($ac_try" in
27601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602   *) ac_try_echo=$ac_try;;
27603 esac
27604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27605 $as_echo "$ac_try_echo") >&5
27606   (eval "$ac_link") 2>conftest.er1
27607   ac_status=$?
27608   grep -v '^ *+' conftest.er1 >conftest.err
27609   rm -f conftest.er1
27610   cat conftest.err >&5
27611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612   (exit $ac_status); } && {
27613          test -z "$ac_c_werror_flag" ||
27614          test ! -s conftest.err
27615        } && test -s conftest$ac_exeext && {
27616          test "$cross_compiling" = yes ||
27617          $as_test_x conftest$ac_exeext
27618        }; then
27619
27620                       { $as_echo "$as_me:$LINENO: result: yes" >&5
27621 $as_echo "yes" >&6; }
27622
27623 cat >>confdefs.h <<\_ACEOF
27624 #define HAVE_LIBWRAP 1
27625 _ACEOF
27626
27627                       TCPW_MSG="yes"
27628                       LIBS="$saved_LIBS"
27629                       WRAPLIBS="-lwrap"
27630
27631 else
27632   $as_echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27634
27635
27636                       { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27637 $as_echo "$as_me: error: *** libwrap missing" >&2;}
27638    { (exit 1); exit 1; }; }
27639
27640
27641 fi
27642
27643 rm -rf conftest.dSYM
27644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27645       conftest$ac_exeext conftest.$ac_ext
27646
27647
27648 fi
27649
27650 rm -rf conftest.dSYM
27651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27652       conftest$ac_exeext conftest.$ac_ext
27653        fi
27654
27655
27656 fi
27657
27658
27659 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
27660 $as_echo_n "checking for OpenSSL... " >&6; }
27661
27662 # Check whether --with-openssl was given.
27663 if test "${with_openssl+set}" = set; then
27664   withval=$with_openssl;
27665         with_openssl_directory=${withval}
27666
27667
27668 fi
27669
27670
27671 if test "x$with_openssl_directory" != "xno"; then
27672    OPENSSL_LIBS="-lssl -lcrypto"
27673    OPENSSL_INC=""
27674
27675    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27676       #
27677       # Make sure the $with_openssl_directory also makes sense
27678       #
27679       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27680          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27681          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27682       fi
27683    fi
27684
27685    saved_LIBS="${LIBS}"
27686    saved_CFLAGS="${CFLAGS}"
27687    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27688    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27689
27690    cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696
27697           #include <openssl/ssl.h>
27698
27699 int
27700 main ()
27701 {
27702
27703            CRYPTO_set_id_callback(NULL);
27704
27705   ;
27706   return 0;
27707 }
27708 _ACEOF
27709 rm -f conftest.$ac_objext conftest$ac_exeext
27710 if { (ac_try="$ac_link"
27711 case "(($ac_try" in
27712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713   *) ac_try_echo=$ac_try;;
27714 esac
27715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27716 $as_echo "$ac_try_echo") >&5
27717   (eval "$ac_link") 2>conftest.er1
27718   ac_status=$?
27719   grep -v '^ *+' conftest.er1 >conftest.err
27720   rm -f conftest.er1
27721   cat conftest.err >&5
27722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); } && {
27724          test -z "$ac_c_werror_flag" ||
27725          test ! -s conftest.err
27726        } && test -s conftest$ac_exeext && {
27727          test "$cross_compiling" = yes ||
27728          $as_test_x conftest$ac_exeext
27729        }; then
27730
27731           support_tls="yes"
27732           support_crypto="yes"
27733
27734 else
27735   $as_echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.$ac_ext >&5
27737
27738
27739           support_tls="no"
27740           support_crypto="no"
27741
27742
27743 fi
27744
27745 rm -rf conftest.dSYM
27746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27747       conftest$ac_exeext conftest.$ac_ext
27748
27749    cat >conftest.$ac_ext <<_ACEOF
27750 /* confdefs.h.  */
27751 _ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h.  */
27755
27756           #include <openssl/evp.h>
27757
27758 int
27759 main ()
27760 {
27761
27762           EVP_sha512();
27763
27764   ;
27765   return 0;
27766 }
27767 _ACEOF
27768 rm -f conftest.$ac_objext conftest$ac_exeext
27769 if { (ac_try="$ac_link"
27770 case "(($ac_try" in
27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772   *) ac_try_echo=$ac_try;;
27773 esac
27774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27775 $as_echo "$ac_try_echo") >&5
27776   (eval "$ac_link") 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } && {
27783          test -z "$ac_c_werror_flag" ||
27784          test ! -s conftest.err
27785        } && test -s conftest$ac_exeext && {
27786          test "$cross_compiling" = yes ||
27787          $as_test_x conftest$ac_exeext
27788        }; then
27789
27790           ac_cv_openssl_sha2="yes"
27791
27792 else
27793   $as_echo "$as_me: failed program was:" >&5
27794 sed 's/^/| /' conftest.$ac_ext >&5
27795
27796
27797           ac_cv_openssl_sha2="no"
27798
27799
27800 fi
27801
27802 rm -rf conftest.dSYM
27803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27804       conftest$ac_exeext conftest.$ac_ext
27805
27806                cat >conftest.$ac_ext <<_ACEOF
27807 /* confdefs.h.  */
27808 _ACEOF
27809 cat confdefs.h >>conftest.$ac_ext
27810 cat >>conftest.$ac_ext <<_ACEOF
27811 /* end confdefs.h.  */
27812
27813           #include <openssl/evp.h>
27814
27815 int
27816 main ()
27817 {
27818
27819           EVP_aes_192_cbc();
27820
27821   ;
27822   return 0;
27823 }
27824 _ACEOF
27825 rm -f conftest.$ac_objext conftest$ac_exeext
27826 if { (ac_try="$ac_link"
27827 case "(($ac_try" in
27828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829   *) ac_try_echo=$ac_try;;
27830 esac
27831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27832 $as_echo "$ac_try_echo") >&5
27833   (eval "$ac_link") 2>conftest.er1
27834   ac_status=$?
27835   grep -v '^ *+' conftest.er1 >conftest.err
27836   rm -f conftest.er1
27837   cat conftest.err >&5
27838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839   (exit $ac_status); } && {
27840          test -z "$ac_c_werror_flag" ||
27841          test ! -s conftest.err
27842        } && test -s conftest$ac_exeext && {
27843          test "$cross_compiling" = yes ||
27844          $as_test_x conftest$ac_exeext
27845        }; then
27846
27847           ac_cv_openssl_export="no"
27848
27849 else
27850   $as_echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27852
27853
27854           ac_cv_openssl_export="yes"
27855
27856
27857 fi
27858
27859 rm -rf conftest.dSYM
27860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27861       conftest$ac_exeext conftest.$ac_ext
27862
27863    if test "$support_tls" = "yes"; then
27864
27865 cat >>confdefs.h <<\_ACEOF
27866 #define HAVE_OPENSSL 1
27867 _ACEOF
27868
27869
27870 cat >>confdefs.h <<\_ACEOF
27871 #define HAVE_TLS 1
27872 _ACEOF
27873
27874
27875 cat >>confdefs.h <<\_ACEOF
27876 #define HAVE_CRYPTO 1
27877 _ACEOF
27878
27879    fi
27880
27881    if test "$ac_cv_openssl_sha2" = "yes"; then
27882
27883 cat >>confdefs.h <<\_ACEOF
27884 #define HAVE_SHA2 1
27885 _ACEOF
27886
27887    fi
27888
27889    if test "$ac_cv_openssl_export" = "yes"; then
27890
27891 cat >>confdefs.h <<\_ACEOF
27892 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27893 _ACEOF
27894
27895    fi
27896
27897    if test "$support_crypto" = "yes"; then
27898       { $as_echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27899 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
27900 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27901   $as_echo_n "(cached) " >&6
27902 else
27903   ac_check_lib_save_LIBS=$LIBS
27904 LIBS="-lssl  $LIBS"
27905 cat >conftest.$ac_ext <<_ACEOF
27906 /* confdefs.h.  */
27907 _ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h.  */
27911
27912 /* Override any GCC internal prototype to avoid an error.
27913    Use char because int might match the return type of a GCC
27914    builtin and then its argument prototype would still apply.  */
27915 #ifdef __cplusplus
27916 extern "C"
27917 #endif
27918 char EVP_PKEY_encrypt_old ();
27919 int
27920 main ()
27921 {
27922 return EVP_PKEY_encrypt_old ();
27923   ;
27924   return 0;
27925 }
27926 _ACEOF
27927 rm -f conftest.$ac_objext conftest$ac_exeext
27928 if { (ac_try="$ac_link"
27929 case "(($ac_try" in
27930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931   *) ac_try_echo=$ac_try;;
27932 esac
27933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27934 $as_echo "$ac_try_echo") >&5
27935   (eval "$ac_link") 2>conftest.er1
27936   ac_status=$?
27937   grep -v '^ *+' conftest.er1 >conftest.err
27938   rm -f conftest.er1
27939   cat conftest.err >&5
27940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941   (exit $ac_status); } && {
27942          test -z "$ac_c_werror_flag" ||
27943          test ! -s conftest.err
27944        } && test -s conftest$ac_exeext && {
27945          test "$cross_compiling" = yes ||
27946          $as_test_x conftest$ac_exeext
27947        }; then
27948   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27949 else
27950   $as_echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27952
27953         ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27954 fi
27955
27956 rm -rf conftest.dSYM
27957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27958       conftest$ac_exeext conftest.$ac_ext
27959 LIBS=$ac_check_lib_save_LIBS
27960 fi
27961 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27962 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27963 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then
27964
27965 cat >>confdefs.h <<\_ACEOF
27966 #define HAVE_OPENSSLv1 1
27967 _ACEOF
27968
27969 fi
27970
27971    fi
27972
27973    LIBS="${saved_LIBS}"
27974    CFLAGS="${saved_CFLAGS}"
27975 else
27976    support_tls="no"
27977    support_crypto="no"
27978    OPENSSL_LIBS=""
27979    OPENSSL_INC=""
27980 fi
27981 { $as_echo "$as_me:$LINENO: result: $support_tls" >&5
27982 $as_echo "$support_tls" >&6; }
27983
27984 if test "$support_tls" = "no"; then
27985    OPENSSL_LIBS=""
27986    OPENSSL_INC=""
27987 fi
27988 if test "$support_crypto" = "no"; then
27989    OPENSSL_LIBS=""
27990    OPENSSL_INC=""
27991 fi
27992
27993
27994
27995
27996 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27997 $as_echo_n "checking for library containing dlopen... " >&6; }
27998 if test "${ac_cv_search_dlopen+set}" = set; then
27999   $as_echo_n "(cached) " >&6
28000 else
28001   ac_func_search_save_LIBS=$LIBS
28002 cat >conftest.$ac_ext <<_ACEOF
28003 /* confdefs.h.  */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h.  */
28008
28009 /* Override any GCC internal prototype to avoid an error.
28010    Use char because int might match the return type of a GCC
28011    builtin and then its argument prototype would still apply.  */
28012 #ifdef __cplusplus
28013 extern "C"
28014 #endif
28015 char dlopen ();
28016 int
28017 main ()
28018 {
28019 return dlopen ();
28020   ;
28021   return 0;
28022 }
28023 _ACEOF
28024 for ac_lib in '' dl; do
28025   if test -z "$ac_lib"; then
28026     ac_res="none required"
28027   else
28028     ac_res=-l$ac_lib
28029     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28030   fi
28031   rm -f conftest.$ac_objext conftest$ac_exeext
28032 if { (ac_try="$ac_link"
28033 case "(($ac_try" in
28034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28035   *) ac_try_echo=$ac_try;;
28036 esac
28037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28038 $as_echo "$ac_try_echo") >&5
28039   (eval "$ac_link") 2>conftest.er1
28040   ac_status=$?
28041   grep -v '^ *+' conftest.er1 >conftest.err
28042   rm -f conftest.er1
28043   cat conftest.err >&5
28044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045   (exit $ac_status); } && {
28046          test -z "$ac_c_werror_flag" ||
28047          test ! -s conftest.err
28048        } && test -s conftest$ac_exeext && {
28049          test "$cross_compiling" = yes ||
28050          $as_test_x conftest$ac_exeext
28051        }; then
28052   ac_cv_search_dlopen=$ac_res
28053 else
28054   $as_echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28056
28057
28058 fi
28059
28060 rm -rf conftest.dSYM
28061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28062       conftest$ac_exeext
28063   if test "${ac_cv_search_dlopen+set}" = set; then
28064   break
28065 fi
28066 done
28067 if test "${ac_cv_search_dlopen+set}" = set; then
28068   :
28069 else
28070   ac_cv_search_dlopen=no
28071 fi
28072 rm conftest.$ac_ext
28073 LIBS=$ac_func_search_save_LIBS
28074 fi
28075 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28076 $as_echo "$ac_cv_search_dlopen" >&6; }
28077 ac_res=$ac_cv_search_dlopen
28078 if test "$ac_res" != no; then
28079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28080
28081 fi
28082
28083
28084 working_dir=`eval echo ${prefix}/var/bacula/working`
28085
28086 # Check whether --with-working-dir was given.
28087 if test "${with_working_dir+set}" = set; then
28088   withval=$with_working_dir;
28089        if test "x$withval" != "xno" ; then
28090          working_dir=$withval
28091        fi
28092
28093
28094 fi
28095
28096
28097
28098
28099 archivedir=/tmp
28100
28101 # Check whether --with-archivedir was given.
28102 if test "${with_archivedir+set}" = set; then
28103   withval=$with_archivedir;
28104        if test "x$withval" != "xno" ; then
28105           archivedir=$withval
28106        fi
28107
28108
28109 fi
28110
28111
28112
28113
28114 basename=`hostname`
28115
28116 # Check whether --with-basename was given.
28117 if test "${with_basename+set}" = set; then
28118   withval=$with_basename;
28119        if test "x$withval" != "xno" ; then
28120           basename=$withval
28121        fi
28122
28123
28124 fi
28125
28126
28127
28128
28129 hostname=`uname -n | cut -d '.' -f 1`
28130 if test x${hostname} = x ; then
28131   hostname="localhost"
28132 fi
28133
28134 # Check whether --with-hostname was given.
28135 if test "${with_hostname+set}" = set; then
28136   withval=$with_hostname;
28137        if test "x$withval" != "xno" ; then
28138          hostname=$withval
28139        fi
28140
28141
28142 fi
28143
28144
28145
28146
28147
28148 scriptdir=`eval echo ${sysconfdir}`
28149
28150 # Check whether --with-scriptdir was given.
28151 if test "${with_scriptdir+set}" = set; then
28152   withval=$with_scriptdir;
28153        if test "x$withval" != "xno" ; then
28154           scriptdir=$withval
28155        fi
28156
28157
28158 fi
28159
28160
28161
28162
28163
28164 bsrdir=/tmp
28165
28166 # Check whether --with-bsrdir was given.
28167 if test "${with_bsrdir+set}" = set; then
28168   withval=$with_bsrdir;
28169        if test "x$withval" != "xno" ; then
28170           bsrdir=$withval
28171        fi
28172
28173
28174 fi
28175
28176
28177
28178
28179 logdir=/tmp
28180
28181 # Check whether --with-logdir was given.
28182 if test "${with_logdir+set}" = set; then
28183   withval=$with_logdir;
28184        if test "x$withval" != "xno" ; then
28185           logdir=$withval
28186        fi
28187
28188
28189 fi
28190
28191
28192
28193
28194
28195 # ------------------------------------------
28196 # Where to place plugindir (plugin files)
28197 # ------------------------------------------
28198 plugindir=`eval echo ${libdir}`
28199
28200 # Check whether --with-plugindir was given.
28201 if test "${with_plugindir+set}" = set; then
28202   withval=$with_plugindir;
28203        if test "x$withval" != "xno" ; then
28204           plugindir=$withval
28205        fi
28206
28207
28208 fi
28209
28210
28211
28212
28213 dump_email=root@localhost
28214
28215 # Check whether --with-dump-email was given.
28216 if test "${with_dump_email+set}" = set; then
28217   withval=$with_dump_email;
28218        if test "x$withval" != "xno" ; then
28219           dump_email=$withval
28220        fi
28221
28222
28223 fi
28224
28225
28226
28227
28228 job_email=root@localhost
28229
28230 # Check whether --with-job-email was given.
28231 if test "${with_job_email+set}" = set; then
28232   withval=$with_job_email;
28233        if test "x$withval" != "xno" ; then
28234           job_email=$withval
28235        fi
28236
28237
28238 fi
28239
28240
28241
28242
28243 smtp_host=localhost
28244
28245 # Check whether --with-smtp_host was given.
28246 if test "${with_smtp_host+set}" = set; then
28247   withval=$with_smtp_host;
28248        if test "x$withval" != "xno" ; then
28249           smtp_host=$withval
28250        fi
28251
28252
28253 fi
28254
28255
28256
28257
28258 piddir=/var/run
28259
28260 # Check whether --with-pid-dir was given.
28261 if test "${with_pid_dir+set}" = set; then
28262   withval=$with_pid_dir;
28263        if test "x$withval" != "xno" ; then
28264           piddir=$withval
28265        fi
28266
28267
28268 fi
28269
28270
28271 cat >>confdefs.h <<_ACEOF
28272 #define _PATH_BACULA_PIDDIR "$piddir"
28273 _ACEOF
28274
28275
28276
28277 subsysdir=/var/run/subsys
28278 if test -d /var/run/subsys; then
28279    subsysdir=/var/run/subsys
28280 elif test -d /var/lock/subsys; then
28281    subsysdir=/var/lock/subsys
28282 else
28283    subsysdir=/var/run/subsys
28284 fi
28285
28286 # Check whether --with-subsys-dir was given.
28287 if test "${with_subsys_dir+set}" = set; then
28288   withval=$with_subsys_dir;
28289        if test "x$withval" != "xno" ; then
28290           subsysdir=$withval
28291        fi
28292
28293
28294 fi
28295
28296
28297
28298
28299 baseport=9101
28300
28301 # Check whether --with-baseport was given.
28302 if test "${with_baseport+set}" = set; then
28303   withval=$with_baseport;
28304        if test "x$withval" != "xno" ; then
28305           baseport=$withval
28306        fi
28307
28308
28309 fi
28310
28311
28312
28313 dir_port=`expr $baseport`
28314 fd_port=`expr $baseport + 1`
28315 sd_port=`expr $fd_port + 1`
28316
28317
28318
28319
28320
28321 dir_password=
28322
28323 # Check whether --with-dir-password was given.
28324 if test "${with_dir_password+set}" = set; then
28325   withval=$with_dir_password;
28326        if test "x$withval" != "xno" ; then
28327           dir_password=$withval
28328        fi
28329
28330
28331 fi
28332
28333
28334 if test "x$dir_password" = "x" ; then
28335    if test "x$OPENSSL" = "xnone" ; then
28336       key=`autoconf/randpass 33`
28337    else
28338       key=`openssl rand -base64 33`
28339    fi
28340    dir_password=$key
28341 fi
28342
28343 fd_password=
28344
28345 # Check whether --with-fd-password was given.
28346 if test "${with_fd_password+set}" = set; then
28347   withval=$with_fd_password;
28348        if test "x$withval" != "xno" ; then
28349           fd_password=$withval
28350        fi
28351
28352
28353 fi
28354
28355
28356 if test "x$fd_password" = "x" ; then
28357    if test "x$OPENSSL" = "xnone" ; then
28358       key=`autoconf/randpass 37`
28359    else
28360       key=`openssl rand -base64 33`
28361    fi
28362    fd_password=$key
28363 fi
28364
28365 sd_password=
28366
28367 # Check whether --with-sd-password was given.
28368 if test "${with_sd_password+set}" = set; then
28369   withval=$with_sd_password;
28370        if test "x$withval" != "xno" ; then
28371           sd_password=$withval
28372        fi
28373
28374
28375 fi
28376
28377
28378 if test "x$sd_password" = "x" ; then
28379    if test "x$OPENSSL" = "xnone" ; then
28380       key=`autoconf/randpass 41`
28381    else
28382       key=`openssl rand -base64 33`
28383    fi
28384    sd_password=$key
28385 fi
28386
28387 mon_dir_password=
28388
28389 # Check whether --with-mon-dir-password was given.
28390 if test "${with_mon_dir_password+set}" = set; then
28391   withval=$with_mon_dir_password;
28392        if test "x$withval" != "xno" ; then
28393           mon_dir_password=$withval
28394        fi
28395
28396
28397 fi
28398
28399
28400 if test "x$mon_dir_password" = "x" ; then
28401    if test "x$OPENSSL" = "xnone" ; then
28402       key=`autoconf/randpass 33`
28403    else
28404       key=`openssl rand -base64 33`
28405    fi
28406    mon_dir_password=$key
28407 fi
28408
28409 mon_fd_password=
28410
28411 # Check whether --with-mon-fd-password was given.
28412 if test "${with_mon_fd_password+set}" = set; then
28413   withval=$with_mon_fd_password;
28414        if test "x$withval" != "xno" ; then
28415           mon_fd_password=$withval
28416        fi
28417
28418
28419 fi
28420
28421
28422 if test "x$mon_fd_password" = "x" ; then
28423    if test "x$OPENSSL" = "xnone" ; then
28424       key=`autoconf/randpass 37`
28425    else
28426       key=`openssl rand -base64 33`
28427    fi
28428    mon_fd_password=$key
28429 fi
28430
28431 mon_sd_password=
28432
28433 # Check whether --with-mon-sd-password was given.
28434 if test "${with_mon_sd_password+set}" = set; then
28435   withval=$with_mon_sd_password;
28436        if test "x$withval" != "xno" ; then
28437           mon_sd_password=$withval
28438        fi
28439
28440
28441 fi
28442
28443
28444 if test "x$mon_sd_password" = "x" ; then
28445    if test "x$OPENSSL" = "xnone" ; then
28446       key=`autoconf/randpass 41`
28447    else
28448       key=`openssl rand -base64 33`
28449    fi
28450    mon_sd_password=$key
28451 fi
28452
28453
28454
28455
28456
28457
28458
28459
28460 db_name=bacula
28461
28462 # Check whether --with-db_name was given.
28463 if test "${with_db_name+set}" = set; then
28464   withval=$with_db_name;
28465        if test "x$withval" != "x" ; then
28466           db_name=$withval
28467        fi
28468
28469
28470 fi
28471
28472
28473
28474 db_user=bacula
28475
28476 # Check whether --with-db_user was given.
28477 if test "${with_db_user+set}" = set; then
28478   withval=$with_db_user;
28479        if test "x$withval" != "x" ; then
28480           db_user=$withval
28481        fi
28482
28483
28484 fi
28485
28486
28487
28488 db_password=
28489
28490 # Check whether --with-db_password was given.
28491 if test "${with_db_password+set}" = set; then
28492   withval=$with_db_password;
28493        if test "x$withval" != "x" ; then
28494           db_password=$withval
28495        fi
28496
28497
28498 fi
28499
28500
28501
28502 db_port=" "
28503
28504 # Check whether --with-db_port was given.
28505 if test "${with_db_port+set}" = set; then
28506   withval=$with_db_port;
28507        if test "x$withval" != "x" ; then
28508           db_port=$withval
28509        fi
28510
28511
28512 fi
28513
28514
28515
28516 #
28517 # Handle users and groups for each daemon
28518 #
28519 dir_user=
28520
28521 # Check whether --with-dir_user was given.
28522 if test "${with_dir_user+set}" = set; then
28523   withval=$with_dir_user;
28524        if test "x$withval" != "x" ; then
28525            dir_user=$withval
28526        fi
28527
28528
28529 fi
28530
28531
28532 dir_group=
28533
28534 # Check whether --with-dir_group was given.
28535 if test "${with_dir_group+set}" = set; then
28536   withval=$with_dir_group;
28537        if test "x$withval" != "x" ; then
28538           dir_group=$withval
28539        fi
28540
28541
28542 fi
28543
28544
28545 sd_user=
28546
28547 # Check whether --with-sd_user was given.
28548 if test "${with_sd_user+set}" = set; then
28549   withval=$with_sd_user;
28550        if test "x$withval" != "x" ; then
28551           sd_user=$withval
28552        fi
28553
28554
28555 fi
28556
28557
28558 sd_group=
28559
28560 # Check whether --with-sd_group was given.
28561 if test "${with_sd_group+set}" = set; then
28562   withval=$with_sd_group;
28563        if test "x$withval" != "x" ; then
28564           sd_group=$withval
28565        fi
28566
28567
28568 fi
28569
28570
28571 fd_user=
28572
28573 # Check whether --with-fd_user was given.
28574 if test "${with_fd_user+set}" = set; then
28575   withval=$with_fd_user;
28576        if test "x$withval" != "x" ; then
28577           fd_user=$withval
28578        fi
28579
28580
28581 fi
28582
28583
28584 fd_group=
28585
28586 # Check whether --with-fd_group was given.
28587 if test "${with_fd_group+set}" = set; then
28588   withval=$with_fd_group;
28589        if test "x$withval" != "x" ; then
28590           fd_group=$withval
28591        fi
28592
28593
28594 fi
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604 SBINPERM=0750
28605
28606 # Check whether --with-sbin-perm was given.
28607 if test "${with_sbin_perm+set}" = set; then
28608   withval=$with_sbin_perm;
28609        if test "x$withval" != "x" ; then
28610           SBINPERM=$withval
28611        fi
28612
28613
28614 fi
28615
28616
28617
28618
28619 SQL_LIB=
28620
28621 db_found=no
28622 { $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
28623 $as_echo_n "checking for PostgreSQL support... " >&6; }
28624
28625 # Check whether --with-postgresql was given.
28626 if test "${with_postgresql+set}" = set; then
28627   withval=$with_postgresql;
28628   if test "$withval" != "no"; then
28629       if test "$db_found" = "yes"; then
28630           { $as_echo "$as_me:$LINENO: result: error" >&5
28631 $as_echo "error" >&6; }
28632           { { $as_echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
28633 $as_echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
28634    { (exit 1); exit 1; }; };
28635       fi
28636       if test "$withval" = "yes"; then
28637           PG_CONFIG=`which pg_config`
28638           if test -n "$PG_CONFIG";then
28639               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
28640               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
28641               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28642           elif test -f /usr/local/include/libpq-fe.h; then
28643               POSTGRESQL_INCDIR=/usr/local/include
28644               if test -d /usr/local/lib64; then
28645                  POSTGRESQL_LIBDIR=/usr/local/lib64
28646               else
28647                  POSTGRESQL_LIBDIR=/usr/local/lib
28648               fi
28649               POSTGRESQL_BINDIR=/usr/local/bin
28650           elif test -f /usr/include/libpq-fe.h; then
28651               POSTGRESQL_INCDIR=/usr/include
28652               if test -d /usr/lib64; then
28653                  POSTGRESQL_LIBDIR=/usr/lib64
28654               else
28655                  POSTGRESQL_LIBDIR=/usr/lib
28656               fi
28657               POSTGRESQL_BINDIR=/usr/bin
28658           elif test -f /usr/include/pgsql/libpq-fe.h; then
28659               POSTGRESQL_INCDIR=/usr/include/pgsql
28660               if test -d /usr/lib64/pgsql; then
28661                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28662               else
28663                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28664               fi
28665               POSTGRESQL_BINDIR=/usr/bin
28666           elif test -f /usr/include/postgresql/libpq-fe.h; then
28667               POSTGRESQL_INCDIR=/usr/include/postgresql
28668               if test -d /usr/lib64/postgresql; then
28669                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28670               else
28671                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28672               fi
28673               POSTGRESQL_BINDIR=/usr/bin
28674           else
28675               { $as_echo "$as_me:$LINENO: result: no" >&5
28676 $as_echo "no" >&6; }
28677               { { $as_echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28678 $as_echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28679    { (exit 1); exit 1; }; }
28680           fi
28681       elif test -f $withval/include/libpq-fe.h; then
28682           POSTGRESQL_INCDIR=$withval/include
28683           POSTGRESQL_LIBDIR=$withval/lib
28684           POSTGRESQL_BINDIR=$withval/bin
28685       elif test -f $withval/include/postgresql/libpq-fe.h; then
28686           POSTGRESQL_INCDIR=$withval/include/postgresql
28687      if test -d $withval/lib64; then
28688          POSTGRESQL_LIBDIR=$withval/lib64
28689      else
28690          POSTGRESQL_LIBDIR=$withval/lib
28691      fi
28692           POSTGRESQL_BINDIR=$withval/bin
28693       else
28694           { $as_echo "$as_me:$LINENO: result: no" >&5
28695 $as_echo "no" >&6; }
28696           { { $as_echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28697 $as_echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28698    { (exit 1); exit 1; }; }
28699       fi
28700       cat >>confdefs.h <<\_ACEOF
28701 #define HAVE_POSTGRESQL 1
28702 _ACEOF
28703
28704       { $as_echo "$as_me:$LINENO: result: yes" >&5
28705 $as_echo "yes" >&6; }
28706       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28707       { $as_echo "$as_me:$LINENO: checking for crypt" >&5
28708 $as_echo_n "checking for crypt... " >&6; }
28709 if test "${ac_cv_func_crypt+set}" = set; then
28710   $as_echo_n "(cached) " >&6
28711 else
28712   cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h.  */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h.  */
28718 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28720 #define crypt innocuous_crypt
28721
28722 /* System header to define __stub macros and hopefully few prototypes,
28723     which can conflict with char crypt (); below.
28724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28725     <limits.h> exists even on freestanding compilers.  */
28726
28727 #ifdef __STDC__
28728 # include <limits.h>
28729 #else
28730 # include <assert.h>
28731 #endif
28732
28733 #undef crypt
28734
28735 /* Override any GCC internal prototype to avoid an error.
28736    Use char because int might match the return type of a GCC
28737    builtin and then its argument prototype would still apply.  */
28738 #ifdef __cplusplus
28739 extern "C"
28740 #endif
28741 char crypt ();
28742 /* The GNU C library defines this for functions which it implements
28743     to always fail with ENOSYS.  Some functions are actually named
28744     something starting with __ and the normal name is an alias.  */
28745 #if defined __stub_crypt || defined __stub___crypt
28746 choke me
28747 #endif
28748
28749 int
28750 main ()
28751 {
28752 return crypt ();
28753   ;
28754   return 0;
28755 }
28756 _ACEOF
28757 rm -f conftest.$ac_objext conftest$ac_exeext
28758 if { (ac_try="$ac_link"
28759 case "(($ac_try" in
28760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761   *) ac_try_echo=$ac_try;;
28762 esac
28763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28764 $as_echo "$ac_try_echo") >&5
28765   (eval "$ac_link") 2>conftest.er1
28766   ac_status=$?
28767   grep -v '^ *+' conftest.er1 >conftest.err
28768   rm -f conftest.er1
28769   cat conftest.err >&5
28770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); } && {
28772          test -z "$ac_c_werror_flag" ||
28773          test ! -s conftest.err
28774        } && test -s conftest$ac_exeext && {
28775          test "$cross_compiling" = yes ||
28776          $as_test_x conftest$ac_exeext
28777        }; then
28778   ac_cv_func_crypt=yes
28779 else
28780   $as_echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28782
28783         ac_cv_func_crypt=no
28784 fi
28785
28786 rm -rf conftest.dSYM
28787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28788       conftest$ac_exeext conftest.$ac_ext
28789 fi
28790 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28791 $as_echo "$ac_cv_func_crypt" >&6; }
28792 if test "x$ac_cv_func_crypt" = x""yes; then
28793   :
28794 else
28795   { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28796 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
28797 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28798   $as_echo_n "(cached) " >&6
28799 else
28800   ac_check_lib_save_LIBS=$LIBS
28801 LIBS="-lcrypt  $LIBS"
28802 cat >conftest.$ac_ext <<_ACEOF
28803 /* confdefs.h.  */
28804 _ACEOF
28805 cat confdefs.h >>conftest.$ac_ext
28806 cat >>conftest.$ac_ext <<_ACEOF
28807 /* end confdefs.h.  */
28808
28809 /* Override any GCC internal prototype to avoid an error.
28810    Use char because int might match the return type of a GCC
28811    builtin and then its argument prototype would still apply.  */
28812 #ifdef __cplusplus
28813 extern "C"
28814 #endif
28815 char crypt ();
28816 int
28817 main ()
28818 {
28819 return crypt ();
28820   ;
28821   return 0;
28822 }
28823 _ACEOF
28824 rm -f conftest.$ac_objext conftest$ac_exeext
28825 if { (ac_try="$ac_link"
28826 case "(($ac_try" in
28827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828   *) ac_try_echo=$ac_try;;
28829 esac
28830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28831 $as_echo "$ac_try_echo") >&5
28832   (eval "$ac_link") 2>conftest.er1
28833   ac_status=$?
28834   grep -v '^ *+' conftest.er1 >conftest.err
28835   rm -f conftest.er1
28836   cat conftest.err >&5
28837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); } && {
28839          test -z "$ac_c_werror_flag" ||
28840          test ! -s conftest.err
28841        } && test -s conftest$ac_exeext && {
28842          test "$cross_compiling" = yes ||
28843          $as_test_x conftest$ac_exeext
28844        }; then
28845   ac_cv_lib_crypt_crypt=yes
28846 else
28847   $as_echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850         ac_cv_lib_crypt_crypt=no
28851 fi
28852
28853 rm -rf conftest.dSYM
28854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28855       conftest$ac_exeext conftest.$ac_ext
28856 LIBS=$ac_check_lib_save_LIBS
28857 fi
28858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28859 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
28860 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
28861   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28862 fi
28863
28864 fi
28865
28866       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28867       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28868       SQL_BINDIR=$POSTGRESQL_BINDIR
28869       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28870
28871       db_found=yes
28872       support_postgresql=yes
28873       db_type=PostgreSQL
28874       DB_TYPE=postgresql
28875   else
28876       { $as_echo "$as_me:$LINENO: result: no" >&5
28877 $as_echo "no" >&6; }
28878   fi
28879
28880 else
28881
28882   { $as_echo "$as_me:$LINENO: result: no" >&5
28883 $as_echo "no" >&6; }
28884
28885 fi
28886
28887
28888
28889
28890
28891
28892
28893
28894 db_found=no
28895 { $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
28896 $as_echo_n "checking for MySQL support... " >&6; }
28897
28898 # Check whether --with-mysql was given.
28899 if test "${with_mysql+set}" = set; then
28900   withval=$with_mysql;
28901   if test "$withval" != "no"; then
28902         if test "$withval" = "yes"; then
28903            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28904                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28905                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28906                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28907                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28908                    else
28909                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28910                    fi
28911                    MYSQL_BINDIR=/usr/local/mysql/bin
28912            elif test -f /usr/include/mysql/mysql.h; then
28913                    MYSQL_INCDIR=/usr/include/mysql
28914                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28915                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28916                            MYSQL_LIBDIR=/usr/lib64/mysql
28917                    elif test -f /usr/lib64/libmysqlclient_r.a \
28918                         -o -f /usr/lib64/libmysqlclient_r.so; then
28919                            MYSQL_LIBDIR=/usr/lib64
28920                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28921                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28922                            MYSQL_LIBDIR=/usr/lib/mysql
28923                    else
28924                            MYSQL_LIBDIR=/usr/lib
28925                    fi
28926                    MYSQL_BINDIR=/usr/bin
28927            elif test -f /usr/include/mysql.h; then
28928                    MYSQL_INCDIR=/usr/include
28929                    if test -f /usr/lib64/libmysqlclient_r.a \
28930                         -o -f /usr/lib64/libmysqlclient_r.so; then
28931                            MYSQL_LIBDIR=/usr/lib64
28932                    else
28933                            MYSQL_LIBDIR=/usr/lib
28934                    fi
28935                    MYSQL_BINDIR=/usr/bin
28936            elif test -f /usr/local/include/mysql/mysql.h; then
28937                    MYSQL_INCDIR=/usr/local/include/mysql
28938                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28939                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28940                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28941                    else
28942                            MYSQL_LIBDIR=/usr/local/lib/mysql
28943                    fi
28944                    MYSQL_BINDIR=/usr/local/bin
28945            elif test -f /usr/local/include/mysql.h; then
28946                    MYSQL_INCDIR=/usr/local/include
28947                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28948                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28949                            MYSQL_LIBDIR=/usr/local/lib64
28950                    else
28951                            MYSQL_LIBDIR=/usr/local/lib
28952                    fi
28953                    MYSQL_BINDIR=/usr/local/bin
28954            else
28955               { $as_echo "$as_me:$LINENO: result: no" >&5
28956 $as_echo "no" >&6; }
28957               { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28958 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28959    { (exit 1); exit 1; }; }
28960            fi
28961         else
28962            if test -f $withval/include/mysql/mysql.h; then
28963               MYSQL_INCDIR=$withval/include/mysql
28964               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28965                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28966                  MYSQL_LIBDIR=$withval/lib64/mysql
28967               elif test -f $withval/lib64/libmysqlclient_r.a \
28968                    -o -f $withval/lib64/libmysqlclient_r.so; then
28969                  MYSQL_LIBDIR=$withval/lib64
28970               elif test -f $withval/lib/libmysqlclient_r.a \
28971                    -o -f $withval/lib/libmysqlclient_r.so; then
28972                  MYSQL_LIBDIR=$withval/lib
28973               else
28974                  MYSQL_LIBDIR=$withval/lib/mysql
28975               fi
28976               MYSQL_BINDIR=$withval/bin
28977            elif test -f $withval/include/mysql.h; then
28978               MYSQL_INCDIR=$withval/include
28979               if test -f $withval/lib64/libmysqlclient_r.a \
28980                    -o -f $withval/lib64/libmysqlclient_r.so; then
28981                  MYSQL_LIBDIR=$withval/lib64
28982               else
28983                  MYSQL_LIBDIR=$withval/lib
28984               fi
28985               MYSQL_BINDIR=$withval/bin
28986            else
28987               { $as_echo "$as_me:$LINENO: result: no" >&5
28988 $as_echo "no" >&6; }
28989               { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28990 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28991    { (exit 1); exit 1; }; }
28992            fi
28993         fi
28994     SQL_INCLUDE=-I$MYSQL_INCDIR
28995     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28996          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28997        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28998        cat >>confdefs.h <<\_ACEOF
28999 #define HAVE_THREAD_SAFE_MYSQL 1
29000 _ACEOF
29001
29002     fi
29003     SQL_BINDIR=$MYSQL_BINDIR
29004     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
29005
29006
29007 cat >>confdefs.h <<\_ACEOF
29008 #define HAVE_MYSQL 1
29009 _ACEOF
29010
29011     { $as_echo "$as_me:$LINENO: result: yes" >&5
29012 $as_echo "yes" >&6; }
29013     db_found=yes
29014     support_mysql=yes
29015     db_type=MySQL
29016     DB_TYPE=mysql
29017
29018   else
29019         { $as_echo "$as_me:$LINENO: result: no" >&5
29020 $as_echo "no" >&6; }
29021   fi
29022
29023
29024 fi
29025
29026
29027
29028 # Check whether --with-embedded-mysql was given.
29029 if test "${with_embedded_mysql+set}" = set; then
29030   withval=$with_embedded_mysql;
29031   if test "$withval" != "no"; then
29032         if test "$withval" = "yes"; then
29033                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
29034                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
29035                         if test -d /usr/local/mysql/lib64/mysql; then
29036                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29037                         else
29038                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29039                         fi
29040                         MYSQL_BINDIR=/usr/local/mysql/bin
29041                 elif test -f /usr/include/mysql/mysql.h; then
29042                         MYSQL_INCDIR=/usr/include/mysql
29043                         if test -d /usr/lib64/mysql; then
29044                                 MYSQL_LIBDIR=/usr/lib64/mysql
29045                         else
29046                                 MYSQL_LIBDIR=/usr/lib/mysql
29047                         fi
29048                         MYSQL_BINDIR=/usr/bin
29049                 elif test -f /usr/include/mysql.h; then
29050                         MYSQL_INCDIR=/usr/include
29051                         if test -d /usr/lib64; then
29052                                 MYSQL_LIBDIR=/usr/lib64
29053                         else
29054                                 MYSQL_LIBDIR=/usr/lib
29055                         fi
29056                         MYSQL_BINDIR=/usr/bin
29057                 elif test -f /usr/local/include/mysql/mysql.h; then
29058                         MYSQL_INCDIR=/usr/local/include/mysql
29059                         if test -d /usr/local/lib64/mysql; then
29060                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
29061                         else
29062                                 MYSQL_LIBDIR=/usr/local/lib/mysql
29063                         fi
29064                         MYSQL_BINDIR=/usr/local/bin
29065                 elif test -f /usr/local/include/mysql.h; then
29066                         MYSQL_INCDIR=/usr/local/include
29067                         if test -d /usr/local/lib64; then
29068                                 MYSQL_LIBDIR=/usr/local/lib64
29069                         else
29070                                 MYSQL_LIBDIR=/usr/local/lib
29071                         fi
29072                         MYSQL_BINDIR=/usr/local/bin
29073                 else
29074                    { $as_echo "$as_me:$LINENO: result: no" >&5
29075 $as_echo "no" >&6; }
29076                    { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29077 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29078    { (exit 1); exit 1; }; }
29079                 fi
29080         else
29081                 if test -f $withval/include/mysql/mysql.h; then
29082                         MYSQL_INCDIR=$withval/include/mysql
29083                         if test -d $withval/lib64/mysql; then
29084                                 MYSQL_LIBDIR=$withval/lib64/mysql
29085                         else
29086                                 MYSQL_LIBDIR=$withval/lib/mysql
29087                         fi
29088                         MYSQL_BINDIR=$withval/bin
29089                 elif test -f $withval/include/mysql.h; then
29090                         MYSQL_INCDIR=$withval/include
29091                         if test -d $withval/lib64; then
29092                                 MYSQL_LIBDIR=$withval/lib64
29093                         else
29094                                 MYSQL_LIBDIR=$withval/lib
29095                         fi
29096                         MYSQL_BINDIR=$withval/bin
29097                 else
29098                    { $as_echo "$as_me:$LINENO: result: no" >&5
29099 $as_echo "no" >&6; }
29100                    { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29101 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29102    { (exit 1); exit 1; }; }
29103                 fi
29104         fi
29105     SQL_INCLUDE=-I$MYSQL_INCDIR
29106     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
29107     SQL_BINDIR=$MYSQL_BINDIR
29108     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
29109
29110     cat >>confdefs.h <<\_ACEOF
29111 #define HAVE_MYSQL 1
29112 _ACEOF
29113
29114     cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_EMBEDDED_MYSQL 1
29116 _ACEOF
29117
29118     { $as_echo "$as_me:$LINENO: result: yes" >&5
29119 $as_echo "yes" >&6; }
29120     db_found=yes
29121     support_mysql=yes
29122     db_type=MySQL
29123     DB_TYPE=mysql
29124
29125   else
29126         { $as_echo "$as_me:$LINENO: result: no" >&5
29127 $as_echo "no" >&6; }
29128   fi
29129
29130
29131 fi
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142 db_found=no
29143 { $as_echo "$as_me:$LINENO: checking for Ingres support" >&5
29144 $as_echo_n "checking for Ingres support... " >&6; }
29145
29146 # Check whether --with-ingres was given.
29147 if test "${with_ingres+set}" = set; then
29148   withval=$with_ingres;
29149   if test "$withval" != "no"; then
29150      if test "$withval" = "yes"; then
29151         if test -f ${II_SYSTEM}/files/eqdefc.h; then
29152            INGRES_INCDIR=${II_SYSTEM}/files
29153            INGRES_LIBDIR=${II_SYSTEM}/lib
29154            INGRES_BINDIR=${II_SYSTEM}/bin
29155         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
29156            INGRES_INCDIR=${II_SYSTEM}/ingres/files
29157            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
29158            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
29159         else
29160            { $as_echo "$as_me:$LINENO: result: no" >&5
29161 $as_echo "no" >&6; }
29162            { { $as_echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
29163 $as_echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
29164    { (exit 1); exit 1; }; }
29165         fi
29166      else
29167         if test -f $withval/files/eqdefc.h; then
29168            INGRES_INCDIR=$withval/files
29169            INGRES_LIBDIR=$withval/lib
29170            INGRES_BINDIR=$withval/bin
29171         else
29172            { $as_echo "$as_me:$LINENO: result: no" >&5
29173 $as_echo "no" >&6; }
29174            { { $as_echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
29175 $as_echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
29176    { (exit 1); exit 1; }; }
29177         fi
29178      fi
29179      SQL_INCLUDE=-I$INGRES_INCDIR
29180      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
29181      SQL_BINDIR=$INGRES_BINDIR
29182      SQL_LIB=$INGRES_LIBDIR/libingres.a
29183
29184 cat >>confdefs.h <<\_ACEOF
29185 #define HAVE_INGRES 1
29186 _ACEOF
29187
29188      { $as_echo "$as_me:$LINENO: result: yes" >&5
29189 $as_echo "yes" >&6; }
29190      db_found=yes
29191      support_ingres=yes
29192      db_type=Ingres
29193      DB_TYPE=ingres
29194
29195   else
29196      { $as_echo "$as_me:$LINENO: result: no" >&5
29197 $as_echo "no" >&6; }
29198   fi
29199
29200 else
29201
29202   { $as_echo "$as_me:$LINENO: result: no" >&5
29203 $as_echo "no" >&6; }
29204
29205 fi
29206
29207
29208
29209
29210
29211
29212
29213
29214 db_found=no
29215 { $as_echo "$as_me:$LINENO: checking for SQLite3 support" >&5
29216 $as_echo_n "checking for SQLite3 support... " >&6; }
29217
29218 # Check whether --with-sqlite3 was given.
29219 if test "${with_sqlite3+set}" = set; then
29220   withval=$with_sqlite3;
29221   if test "$withval" != "no"; then
29222      if test "$withval" = "yes"; then
29223         if test -f /usr/local/include/sqlite3.h; then
29224            SQLITE_INCDIR=/usr/local/include
29225            if test -d /usr/local/lib64; then
29226               SQLITE_LIBDIR=/usr/local/lib64
29227            else
29228               SQLITE_LIBDIR=/usr/local/lib
29229            fi
29230            SQLITE_BINDIR=/usr/local/bin
29231         elif test -f /usr/include/sqlite3.h; then
29232            SQLITE_INCDIR=/usr/include
29233            if test -d /usr/lib64; then
29234               SQLITE_LIBDIR=/usr/lib64
29235            else
29236               SQLITE_LIBDIR=/usr/lib
29237            fi
29238            SQLITE_BINDIR=/usr/bin
29239         elif test -f $prefix/include/sqlite3.h; then
29240            SQLITE_INCDIR=$prefix/include
29241            if test -d $prefix/lib64; then
29242               SQLITE_LIBDIR=$prefix/lib64
29243            else
29244               SQLITE_LIBDIR=$prefix/lib
29245            fi
29246            SQLITE_BINDIR=$prefix/bin
29247         else
29248            { $as_echo "$as_me:$LINENO: result: no" >&5
29249 $as_echo "no" >&6; }
29250            { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
29251 $as_echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
29252    { (exit 1); exit 1; }; }
29253         fi
29254      else
29255         if test -f $withval/sqlite3.h; then
29256            SQLITE_INCDIR=$withval
29257            SQLITE_LIBDIR=$withval
29258            SQLITE_BINDIR=$withval
29259         elif test -f $withval/include/sqlite3.h; then
29260            SQLITE_INCDIR=$withval/include
29261            if test -d $withval/lib64; then
29262               SQLITE_LIBDIR=$withval/lib64
29263            else
29264               SQLITE_LIBDIR=$withval/lib
29265            fi
29266            SQLITE_BINDIR=$withval/bin
29267         else
29268            { $as_echo "$as_me:$LINENO: result: no" >&5
29269 $as_echo "no" >&6; }
29270            { { $as_echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
29271 $as_echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
29272    { (exit 1); exit 1; }; }
29273         fi
29274      fi
29275      SQL_INCLUDE=-I$SQLITE_INCDIR
29276      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
29277      SQL_BINDIR=$SQLITE_BINDIR
29278      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
29279
29280      cat >>confdefs.h <<\_ACEOF
29281 #define HAVE_SQLITE3 1
29282 _ACEOF
29283
29284      { $as_echo "$as_me:$LINENO: result: yes" >&5
29285 $as_echo "yes" >&6; }
29286      db_found=yes
29287      support_sqlite3=yes
29288      db_type=SQLite3
29289      DB_TYPE=sqlite3
29290
29291   else
29292      { $as_echo "$as_me:$LINENO: result: no" >&5
29293 $as_echo "no" >&6; }
29294   fi
29295
29296 else
29297
29298   { $as_echo "$as_me:$LINENO: result: no" >&5
29299 $as_echo "no" >&6; }
29300
29301 fi
29302
29303
29304
29305
29306
29307
29308
29309 # BA_CHECK_SQLITE_DB
29310
29311
29312 db_found=no
29313 { $as_echo "$as_me:$LINENO: checking for DBI support" >&5
29314 $as_echo_n "checking for DBI support... " >&6; }
29315
29316 # Check whether --with-dbi was given.
29317 if test "${with_dbi+set}" = set; then
29318   withval=$with_dbi;
29319   if test "$withval" != "no"; then
29320      if test "$withval" = "yes"; then
29321         if test -f /usr/local/include/dbi/dbi.h; then
29322            DBI_INCDIR=/usr/local/dbi/include
29323            if test -d /usr/local/lib64; then
29324               DBI_LIBDIR=/usr/local/lib64
29325            else
29326               DBI_LIBDIR=/usr/local/lib
29327            fi
29328            DBI_BINDIR=/usr/local/bin
29329         elif test -f /usr/include/dbi/dbi.h; then
29330            DBI_INCDIR=/usr/include
29331            if test -d /usr/lib64; then
29332               DBI_LIBDIR=/usr/lib64
29333            else
29334               DBI_LIBDIR=/usr/lib
29335            fi
29336            DBI_BINDIR=/usr/bin
29337         elif test -f $prefix/include/dbi/dbi.h; then
29338            DBI_INCDIR=$prefix/include
29339            if test -d $prefix/lib64; then
29340               DBI_LIBDIR=$prefix/lib64
29341            else
29342               DBI_LIBDIR=$prefix/lib
29343            fi
29344            DBI_BINDIR=$prefix/bin
29345         else
29346            { $as_echo "$as_me:$LINENO: result: no" >&5
29347 $as_echo "no" >&6; }
29348            { { $as_echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
29349 $as_echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
29350    { (exit 1); exit 1; }; }
29351         fi
29352         if test -d /usr/local/lib/dbd; then
29353            DRIVERDIR=/usr/local/lib/dbd
29354            if test -d /usr/local/lib64/dbd; then
29355               DRIVERDIR=/usr/local/lib64/dbd
29356            else
29357               DRIVERDIR=/usr/local/lib/dbd
29358            fi
29359         elif test -d /usr/lib/dbd; then
29360            DRIVERDIR=/usr/lib/dbd
29361            if test -d /usr/lib64/dbd; then
29362               DRIVERDIR=/usr/lib64/dbd
29363            else
29364               DRIVERDIR=/usr/lib/dbd
29365            fi
29366         elif test -d $prefix/lib/dbd; then
29367            if test -d $prefix/lib64/dbd; then
29368               DRIVERDIR=$prefix/lib64/dbd
29369            else
29370               DRIVERDIR=$prefix/lib/dbd
29371            fi
29372         elif test -d /usr/local/lib64/dbd; then
29373            DRIVERDIR=/usr/local/lib64/dbd
29374         elif test -d /usr/lib64/dbd; then
29375            DRIVERDIR=/usr/lib64/dbd
29376         elif test -d $prefix/lib64/dbd; then
29377            DRIVERDIR=$prefix/lib64/dbd
29378         else
29379            { $as_echo "$as_me:$LINENO: result: no" >&5
29380 $as_echo "no" >&6; }
29381            { { $as_echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
29382 $as_echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
29383    { (exit 1); exit 1; }; }
29384         fi
29385      else
29386         if test -f $withval/dbi.h; then
29387            DBI_INCDIR=$withval
29388            DBI_LIBDIR=$withval
29389            DBI_BINDIR=$withval
29390         elif test -f $withval/include/dbi/dbi.h; then
29391            DBI_INCDIR=$withval/include
29392            if test -d $withval/lib64; then
29393               DBI_LIBDIR=$withval/lib64
29394            else
29395               DBI_LIBDIR=$withval/lib
29396            fi
29397            DBI_BINDIR=$withval/bin
29398         else
29399            { $as_echo "$as_me:$LINENO: result: no" >&5
29400 $as_echo "no" >&6; }
29401            { { $as_echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
29402 $as_echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
29403    { (exit 1); exit 1; }; }
29404         fi
29405         if test -d $withval/dbd; then
29406            DRIVERDIR=$withval/dbd
29407         elif test -d $withval/lib/; then
29408            if test -d $withval/lib64/dbd; then
29409               DRIVERDIR=$withval/lib64/dbd
29410            else
29411               DRIVERDIR=$withval/lib/dbd
29412            fi
29413         elif test -d $withval/lib64/dbd; then
29414            DRIVERDIR=$withval/lib64/dbd
29415         else
29416            { $as_echo "$as_me:$LINENO: result: no" >&5
29417 $as_echo "no" >&6; }
29418            { { $as_echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
29419 $as_echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
29420    { (exit 1); exit 1; }; }
29421         fi
29422      fi
29423      SQL_INCLUDE=-I$DBI_INCDIR
29424      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
29425      SQL_BINDIR=$DBI_BINDIR
29426      SQL_LIB=$DBI_LIBDIR/libdbi.a
29427      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
29428
29429
29430 cat >>confdefs.h <<\_ACEOF
29431 #define HAVE_DBI 1
29432 _ACEOF
29433
29434      { $as_echo "$as_me:$LINENO: result: yes" >&5
29435 $as_echo "yes" >&6; }
29436      db_found=yes
29437      support_dbi=yes
29438      db_type=DBI
29439      DB_TYPE=dbi
29440      uncomment_dbi=" "
29441
29442   else
29443      { $as_echo "$as_me:$LINENO: result: no" >&5
29444 $as_echo "no" >&6; }
29445   fi
29446
29447 else
29448
29449   { $as_echo "$as_me:$LINENO: result: no" >&5
29450 $as_echo "no" >&6; }
29451
29452 fi
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463 db_found=no
29464 db_prog=no
29465 { $as_echo "$as_me:$LINENO: checking for DBI drivers support" >&5
29466 $as_echo_n "checking for DBI drivers support... " >&6; }
29467
29468 # Check whether --with-dbi-driver was given.
29469 if test "${with_dbi_driver+set}" = set; then
29470   withval=$with_dbi_driver;
29471   if test "$withval" != "no"; then
29472      case $withval in
29473         "mysql")
29474            db_prog="mysql"
29475            if test -f /usr/local/mysql/bin/mysql; then
29476               SQL_BINDIR=/usr/local/mysql/bin
29477               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
29478                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
29479                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
29480               else
29481                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
29482               fi
29483            elif test -f /usr/bin/mysql; then
29484               SQL_BINDIR=/usr/bin
29485               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29486                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29487                   SQL_LIBDIR=/usr/lib64/mysql
29488               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29489                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29490                   SQL_LIBDIR=/usr/lib/mysql
29491               else
29492                   SQL_LIBDIR=/usr/lib
29493               fi
29494            elif test -f /usr/local/bin/mysql; then
29495               SQL_BINDIR=/usr/local/bin
29496               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29497                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29498                   SQL_LIBDIR=/usr/local/lib64/mysql
29499               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
29500                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
29501                   SQL_LIBDIR=/usr/local/lib/mysql
29502               else
29503                   SQL_LIBDIR=/usr/local/lib
29504               fi
29505            elif test -f $withval/bin/mysql; then
29506               SQL_BINDIR=$withval/bin
29507               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29508                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29509                   SQL_LIBDIR=$withval/lib64/mysql
29510               elif test -f $withval/lib64/libmysqlclient_r.a \
29511                   -o -f $withval/lib64/libmysqlclient_r.so; then
29512                   SQL_LIBDIR=$withval/lib64
29513               elif test -f $withval/lib/libmysqlclient_r.a \
29514                   -o -f $withval/lib/libmysqlclient_r.so; then
29515                   SQL_LIBDIR=$withval/lib/
29516               else
29517                   SQL_LIBDIR=$withval/lib/mysql
29518               fi
29519            else
29520               { $as_echo "$as_me:$LINENO: result: no" >&5
29521 $as_echo "no" >&6; }
29522               { { $as_echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
29523 $as_echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
29524    { (exit 1); exit 1; }; }
29525            fi
29526            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
29527               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
29528            else
29529               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
29530            fi
29531         ;;
29532         "postgresql")
29533            db_prog="postgresql"
29534            PG_CONFIG=`which pg_config`
29535            if test -n "$PG_CONFIG"; then
29536               SQL_BINDIR=`"$PG_CONFIG" --bindir`
29537               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
29538            elif test -f /usr/local/bin/psql; then
29539               SQL_BINDIR=/usr/local/bin
29540               if test -d /usr/local/lib64; then
29541                  SQL_LIBDIR=/usr/local/lib64
29542               else
29543                  SQL_LIBDIR=/usr/local/lib
29544               fi
29545            elif test -f /usr/bin/psql; then
29546               SQL_BINDIR=/usr/local/bin
29547               if test -d /usr/lib64/postgresql; then
29548                  SQL_LIBDIR=/usr/lib64/postgresql
29549               elif test -d /usr/lib/postgresql; then
29550                  SQL_LIBDIR=/usr/lib/postgresql
29551               elif test -d /usr/lib64; then
29552                  SQL_LIBDIR=/usr/lib64
29553               else
29554                  SQL_LIBDIR=/usr/lib
29555               fi
29556            elif test -f $withval/bin/psql; then
29557               SQL_BINDIR=$withval/bin
29558               if test -d $withval/lib64; then
29559                  SQL_LIBDIR=$withval/lib64
29560               else
29561                  SQL_LIBDIR=$withval/lib
29562               fi
29563            else
29564               { $as_echo "$as_me:$LINENO: result: no" >&5
29565 $as_echo "no" >&6; }
29566               { { $as_echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
29567 $as_echo "$as_me: error: Unable to find psql in standard locations" >&2;}
29568    { (exit 1); exit 1; }; }
29569            fi
29570            if test -f $SQL_LIBDIR/libpq.so; then
29571               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
29572            else
29573               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
29574            fi
29575         ;;
29576         "sqlite")
29577            db_prog="sqlite"
29578            if test -f /usr/local/bin/sqlite; then
29579               SQL_BINDIR=/usr/local/bin
29580               if test -d /usr/local/lib64; then
29581                  SQL_LIBDIR=/usr/local/lib64
29582               else
29583                  SQL_LIBDIR=/usr/local/lib
29584               fi
29585            elif test -f /usr/bin/sqlite; then
29586               SQL_BINDIR=/usr/bin
29587               if test -d /usr/lib64; then
29588                  SQL_LIBDIR=/usr/lib64
29589               else
29590                  SQL_LIBDIR=/usr/lib
29591               fi
29592            elif test -f $withval/bin/sqlite; then
29593               SQL_BINDIR=$withval/bin
29594               if test -d $withval/lib64; then
29595                  SQL_LIBDIR=$withval/lib64
29596               else
29597                  SQL_LIBDIR=$withval/lib
29598               fi
29599            else
29600               { $as_echo "$as_me:$LINENO: result: no" >&5
29601 $as_echo "no" >&6; }
29602               { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29603 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29604    { (exit 1); exit 1; }; }
29605            fi
29606            if test -f $SQL_LIBDIR/libsqlite.so; then
29607               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
29608            else
29609               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
29610            fi
29611         ;;
29612         "sqlite3")
29613            db_prog="sqlite3"
29614            if test -f /usr/local/bin/sqlite3; then
29615               SQL_BINDIR=/usr/local/bin
29616               if test -d /usr/local/lib64; then
29617                  SQL_LIBDIR=/usr/local/lib64
29618               else
29619                  SQL_LIBDIR=/usr/local/lib
29620               fi
29621            elif test -f /usr/bin/sqlite3; then
29622               SQL_BINDIR=/usr/bin
29623               if test -d /usr/lib64; then
29624                  SQL_LIBDIR=/usr/lib64
29625               else
29626                  SQL_LIBDIR=/usr/lib
29627               fi
29628            elif test -f $withval/bin/sqlite3; then
29629               SQL_BINDIR=$withval/bin
29630               if test -d $withval/lib64; then
29631                  SQL_LIBDIR=$withval/lib64
29632               else
29633                  SQL_LIBDIR=$withval/lib
29634               fi
29635            else
29636               { $as_echo "$as_me:$LINENO: result: no" >&5
29637 $as_echo "no" >&6; }
29638               { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29639 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29640    { (exit 1); exit 1; }; }
29641            fi
29642            if test -f $SQL_LIBDIR/libsqlite3.so; then
29643               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
29644            else
29645               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
29646            fi
29647         ;;
29648         *)
29649            { $as_echo "$as_me:$LINENO: result: no" >&5
29650 $as_echo "no" >&6; }
29651            { { $as_echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29652 $as_echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29653    { (exit 1); exit 1; }; }
29654         ;;
29655      esac
29656
29657      { $as_echo "$as_me:$LINENO: result: yes" >&5
29658 $as_echo "yes" >&6; }
29659      DB_PROG=$db_prog
29660   else
29661      { $as_echo "$as_me:$LINENO: result: no" >&5
29662 $as_echo "no" >&6; }
29663   fi
29664
29665 else
29666
29667   { $as_echo "$as_me:$LINENO: result: no" >&5
29668 $as_echo "no" >&6; }
29669
29670 fi
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681 support_batch_insert=no
29682 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29683 pkg=$?
29684 if test $pkg = 0; then
29685    support_batch_insert=yes
29686    # Check whether --enable-batch-insert was given.
29687 if test "${enable_batch_insert+set}" = set; then
29688   enableval=$enable_batch_insert;
29689           if test x$enableval = xno; then
29690              support_batch_insert=no
29691           else
29692              support_batch_insert=yes
29693           fi
29694
29695
29696 fi
29697
29698 fi
29699
29700 if test x$support_batch_insert = xno; then
29701   if test x$DB_TYPE = xmysql; then
29702     A=`test -f $MYSQL_LIBDIR/libmysqlclient_r.so && nm -D $MYSQL_LIBDIR/libmysqlclient_r.so | grep pthread_mutex_lock`
29703     pkg=$?
29704     if test $pkg = 0; then
29705       support_batch_insert=yes
29706       # Check whether --enable-batch-insert was given.
29707 if test "${enable_batch_insert+set}" = set; then
29708   enableval=$enable_batch_insert;
29709           if test x$enableval = xno; then
29710              support_batch_insert=no
29711           else
29712              support_batch_insert=yes
29713           fi
29714
29715
29716 fi
29717
29718     fi
29719   fi
29720 fi
29721
29722 saved_LIBS="${LIBS}"
29723 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
29724
29725 if test x$DB_TYPE = xpostgresql; then
29726    support_batch_insert=yes
29727    { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29728 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29729 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29730   $as_echo_n "(cached) " >&6
29731 else
29732   ac_check_lib_save_LIBS=$LIBS
29733 LIBS="-lpq  $LIBS"
29734 cat >conftest.$ac_ext <<_ACEOF
29735 /* confdefs.h.  */
29736 _ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h.  */
29740
29741 /* Override any GCC internal prototype to avoid an error.
29742    Use char because int might match the return type of a GCC
29743    builtin and then its argument prototype would still apply.  */
29744 #ifdef __cplusplus
29745 extern "C"
29746 #endif
29747 char PQisthreadsafe ();
29748 int
29749 main ()
29750 {
29751 return PQisthreadsafe ();
29752   ;
29753   return 0;
29754 }
29755 _ACEOF
29756 rm -f conftest.$ac_objext conftest$ac_exeext
29757 if { (ac_try="$ac_link"
29758 case "(($ac_try" in
29759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760   *) ac_try_echo=$ac_try;;
29761 esac
29762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29763 $as_echo "$ac_try_echo") >&5
29764   (eval "$ac_link") 2>conftest.er1
29765   ac_status=$?
29766   grep -v '^ *+' conftest.er1 >conftest.err
29767   rm -f conftest.er1
29768   cat conftest.err >&5
29769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); } && {
29771          test -z "$ac_c_werror_flag" ||
29772          test ! -s conftest.err
29773        } && test -s conftest$ac_exeext && {
29774          test "$cross_compiling" = yes ||
29775          $as_test_x conftest$ac_exeext
29776        }; then
29777   ac_cv_lib_pq_PQisthreadsafe=yes
29778 else
29779   $as_echo "$as_me: failed program was:" >&5
29780 sed 's/^/| /' conftest.$ac_ext >&5
29781
29782         ac_cv_lib_pq_PQisthreadsafe=no
29783 fi
29784
29785 rm -rf conftest.dSYM
29786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29787       conftest$ac_exeext conftest.$ac_ext
29788 LIBS=$ac_check_lib_save_LIBS
29789 fi
29790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29791 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29792 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29793
29794 cat >>confdefs.h <<\_ACEOF
29795 #define HAVE_PQISTHREADSAFE 1
29796 _ACEOF
29797
29798 fi
29799
29800    { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29801 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29802 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29803   $as_echo_n "(cached) " >&6
29804 else
29805   ac_check_lib_save_LIBS=$LIBS
29806 LIBS="-lpq  $LIBS"
29807 cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h.  */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h.  */
29813
29814 /* Override any GCC internal prototype to avoid an error.
29815    Use char because int might match the return type of a GCC
29816    builtin and then its argument prototype would still apply.  */
29817 #ifdef __cplusplus
29818 extern "C"
29819 #endif
29820 char PQputCopyData ();
29821 int
29822 main ()
29823 {
29824 return PQputCopyData ();
29825   ;
29826   return 0;
29827 }
29828 _ACEOF
29829 rm -f conftest.$ac_objext conftest$ac_exeext
29830 if { (ac_try="$ac_link"
29831 case "(($ac_try" in
29832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833   *) ac_try_echo=$ac_try;;
29834 esac
29835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29836 $as_echo "$ac_try_echo") >&5
29837   (eval "$ac_link") 2>conftest.er1
29838   ac_status=$?
29839   grep -v '^ *+' conftest.er1 >conftest.err
29840   rm -f conftest.er1
29841   cat conftest.err >&5
29842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843   (exit $ac_status); } && {
29844          test -z "$ac_c_werror_flag" ||
29845          test ! -s conftest.err
29846        } && test -s conftest$ac_exeext && {
29847          test "$cross_compiling" = yes ||
29848          $as_test_x conftest$ac_exeext
29849        }; then
29850   ac_cv_lib_pq_PQputCopyData=yes
29851 else
29852   $as_echo "$as_me: failed program was:" >&5
29853 sed 's/^/| /' conftest.$ac_ext >&5
29854
29855         ac_cv_lib_pq_PQputCopyData=no
29856 fi
29857
29858 rm -rf conftest.dSYM
29859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29860       conftest$ac_exeext conftest.$ac_ext
29861 LIBS=$ac_check_lib_save_LIBS
29862 fi
29863 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29864 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29865 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29866
29867 cat >>confdefs.h <<\_ACEOF
29868 #define HAVE_PQ_COPY 1
29869 _ACEOF
29870
29871 fi
29872
29873    test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
29874    pkg=$?
29875    if test $pkg = 0; then
29876       # Check whether --enable-batch-insert was given.
29877 if test "${enable_batch_insert+set}" = set; then
29878   enableval=$enable_batch_insert;
29879              if test x$enableval = xno; then
29880                 support_batch_insert=no
29881              fi
29882
29883
29884 fi
29885
29886    else
29887       support_batch_insert=no
29888    fi
29889 fi
29890
29891 if test x$DB_TYPE = xdbi; then
29892    DB_TYPE=$DB_PROG
29893    db_type=$DB_PROG
29894    pkg=1
29895       if test $DB_PROG = postgresql; then
29896       { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29897 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29898 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29899   $as_echo_n "(cached) " >&6
29900 else
29901   ac_check_lib_save_LIBS=$LIBS
29902 LIBS="-lpq  $LIBS"
29903 cat >conftest.$ac_ext <<_ACEOF
29904 /* confdefs.h.  */
29905 _ACEOF
29906 cat confdefs.h >>conftest.$ac_ext
29907 cat >>conftest.$ac_ext <<_ACEOF
29908 /* end confdefs.h.  */
29909
29910 /* Override any GCC internal prototype to avoid an error.
29911    Use char because int might match the return type of a GCC
29912    builtin and then its argument prototype would still apply.  */
29913 #ifdef __cplusplus
29914 extern "C"
29915 #endif
29916 char PQisthreadsafe ();
29917 int
29918 main ()
29919 {
29920 return PQisthreadsafe ();
29921   ;
29922   return 0;
29923 }
29924 _ACEOF
29925 rm -f conftest.$ac_objext conftest$ac_exeext
29926 if { (ac_try="$ac_link"
29927 case "(($ac_try" in
29928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929   *) ac_try_echo=$ac_try;;
29930 esac
29931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29932 $as_echo "$ac_try_echo") >&5
29933   (eval "$ac_link") 2>conftest.er1
29934   ac_status=$?
29935   grep -v '^ *+' conftest.er1 >conftest.err
29936   rm -f conftest.er1
29937   cat conftest.err >&5
29938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939   (exit $ac_status); } && {
29940          test -z "$ac_c_werror_flag" ||
29941          test ! -s conftest.err
29942        } && test -s conftest$ac_exeext && {
29943          test "$cross_compiling" = yes ||
29944          $as_test_x conftest$ac_exeext
29945        }; then
29946   ac_cv_lib_pq_PQisthreadsafe=yes
29947 else
29948   $as_echo "$as_me: failed program was:" >&5
29949 sed 's/^/| /' conftest.$ac_ext >&5
29950
29951         ac_cv_lib_pq_PQisthreadsafe=no
29952 fi
29953
29954 rm -rf conftest.dSYM
29955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29956       conftest$ac_exeext conftest.$ac_ext
29957 LIBS=$ac_check_lib_save_LIBS
29958 fi
29959 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29960 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29961 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29962   cat >>confdefs.h <<\_ACEOF
29963 #define HAVE_PQISTHREADSAFE 1
29964 _ACEOF
29965
29966 fi
29967
29968       { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29969 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29970 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29971   $as_echo_n "(cached) " >&6
29972 else
29973   ac_check_lib_save_LIBS=$LIBS
29974 LIBS="-lpq  $LIBS"
29975 cat >conftest.$ac_ext <<_ACEOF
29976 /* confdefs.h.  */
29977 _ACEOF
29978 cat confdefs.h >>conftest.$ac_ext
29979 cat >>conftest.$ac_ext <<_ACEOF
29980 /* end confdefs.h.  */
29981
29982 /* Override any GCC internal prototype to avoid an error.
29983    Use char because int might match the return type of a GCC
29984    builtin and then its argument prototype would still apply.  */
29985 #ifdef __cplusplus
29986 extern "C"
29987 #endif
29988 char PQputCopyData ();
29989 int
29990 main ()
29991 {
29992 return PQputCopyData ();
29993   ;
29994   return 0;
29995 }
29996 _ACEOF
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (ac_try="$ac_link"
29999 case "(($ac_try" in
30000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001   *) ac_try_echo=$ac_try;;
30002 esac
30003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30004 $as_echo "$ac_try_echo") >&5
30005   (eval "$ac_link") 2>conftest.er1
30006   ac_status=$?
30007   grep -v '^ *+' conftest.er1 >conftest.err
30008   rm -f conftest.er1
30009   cat conftest.err >&5
30010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011   (exit $ac_status); } && {
30012          test -z "$ac_c_werror_flag" ||
30013          test ! -s conftest.err
30014        } && test -s conftest$ac_exeext && {
30015          test "$cross_compiling" = yes ||
30016          $as_test_x conftest$ac_exeext
30017        }; then
30018   ac_cv_lib_pq_PQputCopyData=yes
30019 else
30020   $as_echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30022
30023         ac_cv_lib_pq_PQputCopyData=no
30024 fi
30025
30026 rm -rf conftest.dSYM
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 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
30032 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
30033 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
30034   cat >>confdefs.h <<\_ACEOF
30035 #define HAVE_PQ_COPY 1
30036 _ACEOF
30037
30038 fi
30039
30040       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
30041       pkg=$?
30042    fi
30043
30044    if test $DB_PROG = mysql; then
30045       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30046       pkg=$?
30047    fi
30048
30049    if test $DB_PROG = sqlite3; then
30050       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30051       pkg=$?
30052       { $as_echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
30053 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
30054 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
30055   $as_echo_n "(cached) " >&6
30056 else
30057   ac_check_lib_save_LIBS=$LIBS
30058 LIBS="-lsqlite3  $LIBS"
30059 cat >conftest.$ac_ext <<_ACEOF
30060 /* confdefs.h.  */
30061 _ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h.  */
30065
30066 /* Override any GCC internal prototype to avoid an error.
30067    Use char because int might match the return type of a GCC
30068    builtin and then its argument prototype would still apply.  */
30069 #ifdef __cplusplus
30070 extern "C"
30071 #endif
30072 char sqlite3_threadsafe ();
30073 int
30074 main ()
30075 {
30076 return sqlite3_threadsafe ();
30077   ;
30078   return 0;
30079 }
30080 _ACEOF
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (ac_try="$ac_link"
30083 case "(($ac_try" in
30084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085   *) ac_try_echo=$ac_try;;
30086 esac
30087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30088 $as_echo "$ac_try_echo") >&5
30089   (eval "$ac_link") 2>conftest.er1
30090   ac_status=$?
30091   grep -v '^ *+' conftest.er1 >conftest.err
30092   rm -f conftest.er1
30093   cat conftest.err >&5
30094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); } && {
30096          test -z "$ac_c_werror_flag" ||
30097          test ! -s conftest.err
30098        } && test -s conftest$ac_exeext && {
30099          test "$cross_compiling" = yes ||
30100          $as_test_x conftest$ac_exeext
30101        }; then
30102   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
30103 else
30104   $as_echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30106
30107         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
30108 fi
30109
30110 rm -rf conftest.dSYM
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112       conftest$ac_exeext conftest.$ac_ext
30113 LIBS=$ac_check_lib_save_LIBS
30114 fi
30115 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
30116 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
30117 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then
30118
30119 cat >>confdefs.h <<\_ACEOF
30120 #define HAVE_SQLITE3_THREADSAFE 1
30121 _ACEOF
30122
30123 fi
30124
30125    fi
30126
30127    if test $pkg = 0; then
30128       # Check whether --enable-batch-insert was given.
30129 if test "${enable_batch_insert+set}" = set; then
30130   enableval=$enable_batch_insert;
30131              if test x$enableval = xno; then
30132                 support_batch_insert=no
30133              else
30134                 support_batch_insert=yes
30135              fi
30136
30137
30138 fi
30139
30140    fi
30141 else
30142       uncomment_dbi="#"
30143 fi
30144
30145 LIBS="${saved_LIBS}"
30146
30147
30148
30149 if test x$DB_TYPE = xingres; then
30150    support_batch_insert=yes
30151 fi
30152
30153 if test $support_batch_insert = yes ; then
30154
30155 cat >>confdefs.h <<\_ACEOF
30156 #define HAVE_BATCH_FILE_INSERT 1
30157 _ACEOF
30158
30159 fi
30160
30161 cat >>confdefs.h <<\_ACEOF
30162 #define PROTOTYPES 1
30163 _ACEOF
30164
30165
30166 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
30167    if test -z "$CCOPTS"; then
30168       CCOPTS='-g -O2 -Wall'
30169    fi
30170    CFLAGS="$CCOPTS"
30171 fi
30172
30173
30174
30175 largefile_support="no"
30176
30177    # Check whether --enable-largefile was given.
30178 if test "${enable_largefile+set}" = set; then
30179   enableval=$enable_largefile;
30180 fi
30181
30182    if test "$enable_largefile" != no; then
30183      if test -n "$ac_tool_prefix"; then
30184   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
30185 set dummy ${ac_tool_prefix}getconf; ac_word=$2
30186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30187 $as_echo_n "checking for $ac_word... " >&6; }
30188 if test "${ac_cv_prog_GETCONF+set}" = set; then
30189   $as_echo_n "(cached) " >&6
30190 else
30191   if test -n "$GETCONF"; then
30192   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
30193 else
30194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30195 for as_dir in $PATH
30196 do
30197   IFS=$as_save_IFS
30198   test -z "$as_dir" && as_dir=.
30199   for ac_exec_ext in '' $ac_executable_extensions; do
30200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30201     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
30202     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30203     break 2
30204   fi
30205 done
30206 done
30207 IFS=$as_save_IFS
30208
30209 fi
30210 fi
30211 GETCONF=$ac_cv_prog_GETCONF
30212 if test -n "$GETCONF"; then
30213   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
30214 $as_echo "$GETCONF" >&6; }
30215 else
30216   { $as_echo "$as_me:$LINENO: result: no" >&5
30217 $as_echo "no" >&6; }
30218 fi
30219
30220
30221 fi
30222 if test -z "$ac_cv_prog_GETCONF"; then
30223   ac_ct_GETCONF=$GETCONF
30224   # Extract the first word of "getconf", so it can be a program name with args.
30225 set dummy getconf; ac_word=$2
30226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30227 $as_echo_n "checking for $ac_word... " >&6; }
30228 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
30229   $as_echo_n "(cached) " >&6
30230 else
30231   if test -n "$ac_ct_GETCONF"; then
30232   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
30233 else
30234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30235 for as_dir in $PATH
30236 do
30237   IFS=$as_save_IFS
30238   test -z "$as_dir" && as_dir=.
30239   for ac_exec_ext in '' $ac_executable_extensions; do
30240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30241     ac_cv_prog_ac_ct_GETCONF="getconf"
30242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30243     break 2
30244   fi
30245 done
30246 done
30247 IFS=$as_save_IFS
30248
30249 fi
30250 fi
30251 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
30252 if test -n "$ac_ct_GETCONF"; then
30253   { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
30254 $as_echo "$ac_ct_GETCONF" >&6; }
30255 else
30256   { $as_echo "$as_me:$LINENO: result: no" >&5
30257 $as_echo "no" >&6; }
30258 fi
30259
30260   if test "x$ac_ct_GETCONF" = x; then
30261     GETCONF=""
30262   else
30263     case $cross_compiling:$ac_tool_warned in
30264 yes:)
30265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30267 ac_tool_warned=yes ;;
30268 esac
30269     GETCONF=$ac_ct_GETCONF
30270   fi
30271 else
30272   GETCONF="$ac_cv_prog_GETCONF"
30273 fi
30274
30275      { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
30276 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
30277 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
30278   $as_echo_n "(cached) " >&6
30279 else
30280   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
30281         ac_cv_sys_largefile_CFLAGS=no
30282         case "$host_os" in
30283            # IRIX 6.2 and later require cc -n32.
30284            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
30285              if test "$GCC" != yes; then
30286                ac_cv_sys_largefile_CFLAGS=-n32
30287              fi
30288              ac_save_CC="$CC"
30289              CC="$CC $ac_cv_sys_largefile_CFLAGS"
30290              cat >conftest.$ac_ext <<_ACEOF
30291 /* confdefs.h.  */
30292 _ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h.  */
30296
30297 int
30298 main ()
30299 {
30300
30301   ;
30302   return 0;
30303 }
30304 _ACEOF
30305 rm -f conftest.$ac_objext conftest$ac_exeext
30306 if { (ac_try="$ac_link"
30307 case "(($ac_try" in
30308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309   *) ac_try_echo=$ac_try;;
30310 esac
30311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30312 $as_echo "$ac_try_echo") >&5
30313   (eval "$ac_link") 2>conftest.er1
30314   ac_status=$?
30315   grep -v '^ *+' conftest.er1 >conftest.err
30316   rm -f conftest.er1
30317   cat conftest.err >&5
30318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); } && {
30320          test -z "$ac_c_werror_flag" ||
30321          test ! -s conftest.err
30322        } && test -s conftest$ac_exeext && {
30323          test "$cross_compiling" = yes ||
30324          $as_test_x conftest$ac_exeext
30325        }; then
30326   :
30327 else
30328   $as_echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30330
30331         ac_cv_sys_largefile_CFLAGS=no
30332 fi
30333
30334 rm -rf conftest.dSYM
30335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30336       conftest$ac_exeext conftest.$ac_ext
30337              CC="$ac_save_CC"
30338            esac
30339       }
30340 fi
30341 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
30342 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
30343      { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
30344 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
30345 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
30346   $as_echo_n "(cached) " >&6
30347 else
30348   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
30349         ac_cv_sys_largefile_LDFLAGS=no
30350
30351       }
30352 fi
30353 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
30354 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
30355      { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
30356 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
30357 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
30358   $as_echo_n "(cached) " >&6
30359 else
30360   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
30361         ac_cv_sys_largefile_LIBS=no
30362
30363       }
30364 fi
30365 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
30366 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
30367
30368      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30369        case "$ac_flag" in
30370        no) ;;
30371        -D_FILE_OFFSET_BITS=*) ;;
30372        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
30373        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
30374        -D?* | -I?*)
30375          case "$ac_flag" in
30376    no) ;;
30377    ?*)
30378      case "$CPPFLAGS" in
30379      '') CPPFLAGS="$ac_flag" ;;
30380      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
30381      esac ;;
30382    esac ;;
30383        *)
30384          case "$ac_flag" in
30385    no) ;;
30386    ?*)
30387      case "$CFLAGS" in
30388      '') CFLAGS="$ac_flag" ;;
30389      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
30390      esac ;;
30391    esac ;;
30392        esac
30393      done
30394      case "$ac_cv_sys_largefile_LDFLAGS" in
30395    no) ;;
30396    ?*)
30397      case "$LDFLAGS" in
30398      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
30399      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
30400      esac ;;
30401    esac
30402      case "$ac_cv_sys_largefile_LIBS" in
30403    no) ;;
30404    ?*)
30405      case "$LIBS" in
30406      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
30407      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
30408      esac ;;
30409    esac
30410      { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
30411 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
30412 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30413   $as_echo_n "(cached) " >&6
30414 else
30415   ac_cv_sys_file_offset_bits=no
30416       ac_cv_sys_file_offset_bits=64
30417       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30418         case "$ac_flag" in
30419         -D_FILE_OFFSET_BITS)
30420           ac_cv_sys_file_offset_bits=1 ;;
30421         -D_FILE_OFFSET_BITS=*)
30422           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30423         esac
30424       done
30425
30426 fi
30427 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30428 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
30429    if test "$ac_cv_sys_file_offset_bits" != no; then
30430
30431 cat >>confdefs.h <<_ACEOF
30432 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30433 _ACEOF
30434
30435    fi
30436      { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
30437 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
30438 if test "${ac_cv_sys_largefile_source+set}" = set; then
30439   $as_echo_n "(cached) " >&6
30440 else
30441   ac_cv_sys_largefile_source=no
30442       ac_cv_sys_largefile_source=1
30443       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30444         case "$ac_flag" in
30445         -D_LARGEFILE_SOURCE)
30446           ac_cv_sys_largefile_source=1 ;;
30447         -D_LARGEFILE_SOURCE=*)
30448           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30449         esac
30450       done
30451
30452 fi
30453 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
30454 $as_echo "$ac_cv_sys_largefile_source" >&6; }
30455    if test "$ac_cv_sys_largefile_source" != no; then
30456
30457 cat >>confdefs.h <<_ACEOF
30458 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
30459 _ACEOF
30460
30461    fi
30462      { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
30463 $as_echo_n "checking for _LARGE_FILES... " >&6; }
30464 if test "${ac_cv_sys_large_files+set}" = set; then
30465   $as_echo_n "(cached) " >&6
30466 else
30467   ac_cv_sys_large_files=no
30468       ac_cv_sys_large_files=1
30469       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30470         case "$ac_flag" in
30471         -D_LARGE_FILES)
30472           ac_cv_sys_large_files=1 ;;
30473         -D_LARGE_FILES=*)
30474           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30475         esac
30476       done
30477
30478 fi
30479 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30480 $as_echo "$ac_cv_sys_large_files" >&6; }
30481    if test "$ac_cv_sys_large_files" != no; then
30482
30483 cat >>confdefs.h <<_ACEOF
30484 #define _LARGE_FILES $ac_cv_sys_large_files
30485 _ACEOF
30486
30487    fi
30488    fi
30489
30490
30491 { $as_echo "$as_me:$LINENO: checking for X" >&5
30492 $as_echo_n "checking for X... " >&6; }
30493
30494
30495 # Check whether --with-x was given.
30496 if test "${with_x+set}" = set; then
30497   withval=$with_x;
30498 fi
30499
30500 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30501 if test "x$with_x" = xno; then
30502   # The user explicitly disabled X.
30503   have_x=disabled
30504 else
30505   case $x_includes,$x_libraries in #(
30506     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30507 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30508    { (exit 1); exit 1; }; };; #(
30509     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30510   $as_echo_n "(cached) " >&6
30511 else
30512   # One or both of the vars are not set, and there is no cached value.
30513 ac_x_includes=no ac_x_libraries=no
30514 rm -f -r conftest.dir
30515 if mkdir conftest.dir; then
30516   cd conftest.dir
30517   cat >Imakefile <<'_ACEOF'
30518 incroot:
30519         @echo incroot='${INCROOT}'
30520 usrlibdir:
30521         @echo usrlibdir='${USRLIBDIR}'
30522 libdir:
30523         @echo libdir='${LIBDIR}'
30524 _ACEOF
30525   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30526     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30527     for ac_var in incroot usrlibdir libdir; do
30528       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30529     done
30530     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30531     for ac_extension in a so sl dylib la dll; do
30532       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30533          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30534         ac_im_usrlibdir=$ac_im_libdir; break
30535       fi
30536     done
30537     # Screen out bogus values from the imake configuration.  They are
30538     # bogus both because they are the default anyway, and because
30539     # using them would break gcc on systems where it needs fixed includes.
30540     case $ac_im_incroot in
30541         /usr/include) ac_x_includes= ;;
30542         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30543     esac
30544     case $ac_im_usrlibdir in
30545         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30546         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30547     esac
30548   fi
30549   cd ..
30550   rm -f -r conftest.dir
30551 fi
30552
30553 # Standard set of common directories for X headers.
30554 # Check X11 before X11Rn because it is often a symlink to the current release.
30555 ac_x_header_dirs='
30556 /usr/X11/include
30557 /usr/X11R6/include
30558 /usr/X11R5/include
30559 /usr/X11R4/include
30560
30561 /usr/include/X11
30562 /usr/include/X11R6
30563 /usr/include/X11R5
30564 /usr/include/X11R4
30565
30566 /usr/local/X11/include
30567 /usr/local/X11R6/include
30568 /usr/local/X11R5/include
30569 /usr/local/X11R4/include
30570
30571 /usr/local/include/X11
30572 /usr/local/include/X11R6
30573 /usr/local/include/X11R5
30574 /usr/local/include/X11R4
30575
30576 /usr/X386/include
30577 /usr/x386/include
30578 /usr/XFree86/include/X11
30579
30580 /usr/include
30581 /usr/local/include
30582 /usr/unsupported/include
30583 /usr/athena/include
30584 /usr/local/x11r5/include
30585 /usr/lpp/Xamples/include
30586
30587 /usr/openwin/include
30588 /usr/openwin/share/include'
30589
30590 if test "$ac_x_includes" = no; then
30591   # Guess where to find include files, by looking for Xlib.h.
30592   # First, try using that file with no special directory specified.
30593   cat >conftest.$ac_ext <<_ACEOF
30594 /* confdefs.h.  */
30595 _ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h.  */
30599 #include <X11/Xlib.h>
30600 _ACEOF
30601 if { (ac_try="$ac_cpp conftest.$ac_ext"
30602 case "(($ac_try" in
30603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30604   *) ac_try_echo=$ac_try;;
30605 esac
30606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30607 $as_echo "$ac_try_echo") >&5
30608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30609   ac_status=$?
30610   grep -v '^ *+' conftest.er1 >conftest.err
30611   rm -f conftest.er1
30612   cat conftest.err >&5
30613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614   (exit $ac_status); } >/dev/null && {
30615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30616          test ! -s conftest.err
30617        }; then
30618   # We can compile using X headers with no special include directory.
30619 ac_x_includes=
30620 else
30621   $as_echo "$as_me: failed program was:" >&5
30622 sed 's/^/| /' conftest.$ac_ext >&5
30623
30624   for ac_dir in $ac_x_header_dirs; do
30625   if test -r "$ac_dir/X11/Xlib.h"; then
30626     ac_x_includes=$ac_dir
30627     break
30628   fi
30629 done
30630 fi
30631
30632 rm -f conftest.err conftest.$ac_ext
30633 fi # $ac_x_includes = no
30634
30635 if test "$ac_x_libraries" = no; then
30636   # Check for the libraries.
30637   # See if we find them without any special options.
30638   # Don't add to $LIBS permanently.
30639   ac_save_LIBS=$LIBS
30640   LIBS="-lX11 $LIBS"
30641   cat >conftest.$ac_ext <<_ACEOF
30642 /* confdefs.h.  */
30643 _ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h.  */
30647 #include <X11/Xlib.h>
30648 int
30649 main ()
30650 {
30651 XrmInitialize ()
30652   ;
30653   return 0;
30654 }
30655 _ACEOF
30656 rm -f conftest.$ac_objext conftest$ac_exeext
30657 if { (ac_try="$ac_link"
30658 case "(($ac_try" in
30659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660   *) ac_try_echo=$ac_try;;
30661 esac
30662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30663 $as_echo "$ac_try_echo") >&5
30664   (eval "$ac_link") 2>conftest.er1
30665   ac_status=$?
30666   grep -v '^ *+' conftest.er1 >conftest.err
30667   rm -f conftest.er1
30668   cat conftest.err >&5
30669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670   (exit $ac_status); } && {
30671          test -z "$ac_c_werror_flag" ||
30672          test ! -s conftest.err
30673        } && test -s conftest$ac_exeext && {
30674          test "$cross_compiling" = yes ||
30675          $as_test_x conftest$ac_exeext
30676        }; then
30677   LIBS=$ac_save_LIBS
30678 # We can link X programs with no special library path.
30679 ac_x_libraries=
30680 else
30681   $as_echo "$as_me: failed program was:" >&5
30682 sed 's/^/| /' conftest.$ac_ext >&5
30683
30684         LIBS=$ac_save_LIBS
30685 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30686 do
30687   # Don't even attempt the hair of trying to link an X program!
30688   for ac_extension in a so sl dylib la dll; do
30689     if test -r "$ac_dir/libX11.$ac_extension"; then
30690       ac_x_libraries=$ac_dir
30691       break 2
30692     fi
30693   done
30694 done
30695 fi
30696
30697 rm -rf conftest.dSYM
30698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30699       conftest$ac_exeext conftest.$ac_ext
30700 fi # $ac_x_libraries = no
30701
30702 case $ac_x_includes,$ac_x_libraries in #(
30703   no,* | *,no | *\'*)
30704     # Didn't find X, or a directory has "'" in its name.
30705     ac_cv_have_x="have_x=no";; #(
30706   *)
30707     # Record where we found X for the cache.
30708     ac_cv_have_x="have_x=yes\
30709         ac_x_includes='$ac_x_includes'\
30710         ac_x_libraries='$ac_x_libraries'"
30711 esac
30712 fi
30713 ;; #(
30714     *) have_x=yes;;
30715   esac
30716   eval "$ac_cv_have_x"
30717 fi # $with_x != no
30718
30719 if test "$have_x" != yes; then
30720   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30721 $as_echo "$have_x" >&6; }
30722   no_x=yes
30723 else
30724   # If each of the values was on the command line, it overrides each guess.
30725   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30726   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30727   # Update the cache value to reflect the command line values.
30728   ac_cv_have_x="have_x=yes\
30729         ac_x_includes='$x_includes'\
30730         ac_x_libraries='$x_libraries'"
30731   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30732 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30733 fi
30734
30735 if test "$no_x" = yes; then
30736   # Not all programs may use this symbol, but it does not hurt to define it.
30737
30738 cat >>confdefs.h <<\_ACEOF
30739 #define X_DISPLAY_MISSING 1
30740 _ACEOF
30741
30742   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30743 else
30744   if test -n "$x_includes"; then
30745     X_CFLAGS="$X_CFLAGS -I$x_includes"
30746   fi
30747
30748   # It would also be nice to do this for all -L options, not just this one.
30749   if test -n "$x_libraries"; then
30750     X_LIBS="$X_LIBS -L$x_libraries"
30751     # For Solaris; some versions of Sun CC require a space after -R and
30752     # others require no space.  Words are not sufficient . . . .
30753     { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30754 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30755     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30756     ac_xsave_c_werror_flag=$ac_c_werror_flag
30757     ac_c_werror_flag=yes
30758     cat >conftest.$ac_ext <<_ACEOF
30759 /* confdefs.h.  */
30760 _ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h.  */
30764
30765 int
30766 main ()
30767 {
30768
30769   ;
30770   return 0;
30771 }
30772 _ACEOF
30773 rm -f conftest.$ac_objext conftest$ac_exeext
30774 if { (ac_try="$ac_link"
30775 case "(($ac_try" in
30776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777   *) ac_try_echo=$ac_try;;
30778 esac
30779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30780 $as_echo "$ac_try_echo") >&5
30781   (eval "$ac_link") 2>conftest.er1
30782   ac_status=$?
30783   grep -v '^ *+' conftest.er1 >conftest.err
30784   rm -f conftest.er1
30785   cat conftest.err >&5
30786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); } && {
30788          test -z "$ac_c_werror_flag" ||
30789          test ! -s conftest.err
30790        } && test -s conftest$ac_exeext && {
30791          test "$cross_compiling" = yes ||
30792          $as_test_x conftest$ac_exeext
30793        }; then
30794   { $as_echo "$as_me:$LINENO: result: no" >&5
30795 $as_echo "no" >&6; }
30796        X_LIBS="$X_LIBS -R$x_libraries"
30797 else
30798   $as_echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30800
30801         LIBS="$ac_xsave_LIBS -R $x_libraries"
30802        cat >conftest.$ac_ext <<_ACEOF
30803 /* confdefs.h.  */
30804 _ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h.  */
30808
30809 int
30810 main ()
30811 {
30812
30813   ;
30814   return 0;
30815 }
30816 _ACEOF
30817 rm -f conftest.$ac_objext conftest$ac_exeext
30818 if { (ac_try="$ac_link"
30819 case "(($ac_try" in
30820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821   *) ac_try_echo=$ac_try;;
30822 esac
30823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30824 $as_echo "$ac_try_echo") >&5
30825   (eval "$ac_link") 2>conftest.er1
30826   ac_status=$?
30827   grep -v '^ *+' conftest.er1 >conftest.err
30828   rm -f conftest.er1
30829   cat conftest.err >&5
30830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831   (exit $ac_status); } && {
30832          test -z "$ac_c_werror_flag" ||
30833          test ! -s conftest.err
30834        } && test -s conftest$ac_exeext && {
30835          test "$cross_compiling" = yes ||
30836          $as_test_x conftest$ac_exeext
30837        }; then
30838   { $as_echo "$as_me:$LINENO: result: yes" >&5
30839 $as_echo "yes" >&6; }
30840           X_LIBS="$X_LIBS -R $x_libraries"
30841 else
30842   $as_echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30844
30845         { $as_echo "$as_me:$LINENO: result: neither works" >&5
30846 $as_echo "neither works" >&6; }
30847 fi
30848
30849 rm -rf conftest.dSYM
30850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30851       conftest$ac_exeext conftest.$ac_ext
30852 fi
30853
30854 rm -rf conftest.dSYM
30855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30856       conftest$ac_exeext conftest.$ac_ext
30857     ac_c_werror_flag=$ac_xsave_c_werror_flag
30858     LIBS=$ac_xsave_LIBS
30859   fi
30860
30861   # Check for system-dependent libraries X programs must link with.
30862   # Do this before checking for the system-independent R6 libraries
30863   # (-lICE), since we may need -lsocket or whatever for X linking.
30864
30865   if test "$ISC" = yes; then
30866     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30867   else
30868     # Martyn Johnson says this is needed for Ultrix, if the X
30869     # libraries were built with DECnet support.  And Karl Berry says
30870     # the Alpha needs dnet_stub (dnet does not exist).
30871     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30872     cat >conftest.$ac_ext <<_ACEOF
30873 /* confdefs.h.  */
30874 _ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h.  */
30878
30879 /* Override any GCC internal prototype to avoid an error.
30880    Use char because int might match the return type of a GCC
30881    builtin and then its argument prototype would still apply.  */
30882 #ifdef __cplusplus
30883 extern "C"
30884 #endif
30885 char XOpenDisplay ();
30886 int
30887 main ()
30888 {
30889 return XOpenDisplay ();
30890   ;
30891   return 0;
30892 }
30893 _ACEOF
30894 rm -f conftest.$ac_objext conftest$ac_exeext
30895 if { (ac_try="$ac_link"
30896 case "(($ac_try" in
30897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30898   *) ac_try_echo=$ac_try;;
30899 esac
30900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30901 $as_echo "$ac_try_echo") >&5
30902   (eval "$ac_link") 2>conftest.er1
30903   ac_status=$?
30904   grep -v '^ *+' conftest.er1 >conftest.err
30905   rm -f conftest.er1
30906   cat conftest.err >&5
30907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); } && {
30909          test -z "$ac_c_werror_flag" ||
30910          test ! -s conftest.err
30911        } && test -s conftest$ac_exeext && {
30912          test "$cross_compiling" = yes ||
30913          $as_test_x conftest$ac_exeext
30914        }; then
30915   :
30916 else
30917   $as_echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30919
30920         { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30921 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30922 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30923   $as_echo_n "(cached) " >&6
30924 else
30925   ac_check_lib_save_LIBS=$LIBS
30926 LIBS="-ldnet  $LIBS"
30927 cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h.  */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h.  */
30933
30934 /* Override any GCC internal prototype to avoid an error.
30935    Use char because int might match the return type of a GCC
30936    builtin and then its argument prototype would still apply.  */
30937 #ifdef __cplusplus
30938 extern "C"
30939 #endif
30940 char dnet_ntoa ();
30941 int
30942 main ()
30943 {
30944 return dnet_ntoa ();
30945   ;
30946   return 0;
30947 }
30948 _ACEOF
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950 if { (ac_try="$ac_link"
30951 case "(($ac_try" in
30952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953   *) ac_try_echo=$ac_try;;
30954 esac
30955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30956 $as_echo "$ac_try_echo") >&5
30957   (eval "$ac_link") 2>conftest.er1
30958   ac_status=$?
30959   grep -v '^ *+' conftest.er1 >conftest.err
30960   rm -f conftest.er1
30961   cat conftest.err >&5
30962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); } && {
30964          test -z "$ac_c_werror_flag" ||
30965          test ! -s conftest.err
30966        } && test -s conftest$ac_exeext && {
30967          test "$cross_compiling" = yes ||
30968          $as_test_x conftest$ac_exeext
30969        }; then
30970   ac_cv_lib_dnet_dnet_ntoa=yes
30971 else
30972   $as_echo "$as_me: failed program was:" >&5
30973 sed 's/^/| /' conftest.$ac_ext >&5
30974
30975         ac_cv_lib_dnet_dnet_ntoa=no
30976 fi
30977
30978 rm -rf conftest.dSYM
30979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30980       conftest$ac_exeext conftest.$ac_ext
30981 LIBS=$ac_check_lib_save_LIBS
30982 fi
30983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30984 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30985 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
30986   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30987 fi
30988
30989     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30990       { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30991 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30992 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30993   $as_echo_n "(cached) " >&6
30994 else
30995   ac_check_lib_save_LIBS=$LIBS
30996 LIBS="-ldnet_stub  $LIBS"
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
31004 /* Override any GCC internal prototype to avoid an error.
31005    Use char because int might match the return type of a GCC
31006    builtin and then its argument prototype would still apply.  */
31007 #ifdef __cplusplus
31008 extern "C"
31009 #endif
31010 char dnet_ntoa ();
31011 int
31012 main ()
31013 {
31014 return dnet_ntoa ();
31015   ;
31016   return 0;
31017 }
31018 _ACEOF
31019 rm -f conftest.$ac_objext conftest$ac_exeext
31020 if { (ac_try="$ac_link"
31021 case "(($ac_try" in
31022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023   *) ac_try_echo=$ac_try;;
31024 esac
31025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31026 $as_echo "$ac_try_echo") >&5
31027   (eval "$ac_link") 2>conftest.er1
31028   ac_status=$?
31029   grep -v '^ *+' conftest.er1 >conftest.err
31030   rm -f conftest.er1
31031   cat conftest.err >&5
31032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033   (exit $ac_status); } && {
31034          test -z "$ac_c_werror_flag" ||
31035          test ! -s conftest.err
31036        } && test -s conftest$ac_exeext && {
31037          test "$cross_compiling" = yes ||
31038          $as_test_x conftest$ac_exeext
31039        }; then
31040   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31041 else
31042   $as_echo "$as_me: failed program was:" >&5
31043 sed 's/^/| /' conftest.$ac_ext >&5
31044
31045         ac_cv_lib_dnet_stub_dnet_ntoa=no
31046 fi
31047
31048 rm -rf conftest.dSYM
31049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31050       conftest$ac_exeext conftest.$ac_ext
31051 LIBS=$ac_check_lib_save_LIBS
31052 fi
31053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31054 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31055 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
31056   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31057 fi
31058
31059     fi
31060 fi
31061
31062 rm -rf conftest.dSYM
31063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31064       conftest$ac_exeext conftest.$ac_ext
31065     LIBS="$ac_xsave_LIBS"
31066
31067     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31068     # to get the SysV transport functions.
31069     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31070     # needs -lnsl.
31071     # The nsl library prevents programs from opening the X display
31072     # on Irix 5.2, according to T.E. Dickey.
31073     # The functions gethostbyname, getservbyname, and inet_addr are
31074     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31075     { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
31076 $as_echo_n "checking for gethostbyname... " >&6; }
31077 if test "${ac_cv_func_gethostbyname+set}" = set; then
31078   $as_echo_n "(cached) " >&6
31079 else
31080   cat >conftest.$ac_ext <<_ACEOF
31081 /* confdefs.h.  */
31082 _ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h.  */
31086 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31088 #define gethostbyname innocuous_gethostbyname
31089
31090 /* System header to define __stub macros and hopefully few prototypes,
31091     which can conflict with char gethostbyname (); below.
31092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31093     <limits.h> exists even on freestanding compilers.  */
31094
31095 #ifdef __STDC__
31096 # include <limits.h>
31097 #else
31098 # include <assert.h>
31099 #endif
31100
31101 #undef gethostbyname
31102
31103 /* Override any GCC internal prototype to avoid an error.
31104    Use char because int might match the return type of a GCC
31105    builtin and then its argument prototype would still apply.  */
31106 #ifdef __cplusplus
31107 extern "C"
31108 #endif
31109 char gethostbyname ();
31110 /* The GNU C library defines this for functions which it implements
31111     to always fail with ENOSYS.  Some functions are actually named
31112     something starting with __ and the normal name is an alias.  */
31113 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31114 choke me
31115 #endif
31116
31117 int
31118 main ()
31119 {
31120 return gethostbyname ();
31121   ;
31122   return 0;
31123 }
31124 _ACEOF
31125 rm -f conftest.$ac_objext conftest$ac_exeext
31126 if { (ac_try="$ac_link"
31127 case "(($ac_try" in
31128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129   *) ac_try_echo=$ac_try;;
31130 esac
31131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31132 $as_echo "$ac_try_echo") >&5
31133   (eval "$ac_link") 2>conftest.er1
31134   ac_status=$?
31135   grep -v '^ *+' conftest.er1 >conftest.err
31136   rm -f conftest.er1
31137   cat conftest.err >&5
31138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } && {
31140          test -z "$ac_c_werror_flag" ||
31141          test ! -s conftest.err
31142        } && test -s conftest$ac_exeext && {
31143          test "$cross_compiling" = yes ||
31144          $as_test_x conftest$ac_exeext
31145        }; then
31146   ac_cv_func_gethostbyname=yes
31147 else
31148   $as_echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31150
31151         ac_cv_func_gethostbyname=no
31152 fi
31153
31154 rm -rf conftest.dSYM
31155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31156       conftest$ac_exeext conftest.$ac_ext
31157 fi
31158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31159 $as_echo "$ac_cv_func_gethostbyname" >&6; }
31160
31161     if test $ac_cv_func_gethostbyname = no; then
31162       { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31163 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
31164 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31165   $as_echo_n "(cached) " >&6
31166 else
31167   ac_check_lib_save_LIBS=$LIBS
31168 LIBS="-lnsl  $LIBS"
31169 cat >conftest.$ac_ext <<_ACEOF
31170 /* confdefs.h.  */
31171 _ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h.  */
31175
31176 /* Override any GCC internal prototype to avoid an error.
31177    Use char because int might match the return type of a GCC
31178    builtin and then its argument prototype would still apply.  */
31179 #ifdef __cplusplus
31180 extern "C"
31181 #endif
31182 char gethostbyname ();
31183 int
31184 main ()
31185 {
31186 return gethostbyname ();
31187   ;
31188   return 0;
31189 }
31190 _ACEOF
31191 rm -f conftest.$ac_objext conftest$ac_exeext
31192 if { (ac_try="$ac_link"
31193 case "(($ac_try" in
31194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31195   *) ac_try_echo=$ac_try;;
31196 esac
31197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31198 $as_echo "$ac_try_echo") >&5
31199   (eval "$ac_link") 2>conftest.er1
31200   ac_status=$?
31201   grep -v '^ *+' conftest.er1 >conftest.err
31202   rm -f conftest.er1
31203   cat conftest.err >&5
31204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); } && {
31206          test -z "$ac_c_werror_flag" ||
31207          test ! -s conftest.err
31208        } && test -s conftest$ac_exeext && {
31209          test "$cross_compiling" = yes ||
31210          $as_test_x conftest$ac_exeext
31211        }; then
31212   ac_cv_lib_nsl_gethostbyname=yes
31213 else
31214   $as_echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31216
31217         ac_cv_lib_nsl_gethostbyname=no
31218 fi
31219
31220 rm -rf conftest.dSYM
31221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31222       conftest$ac_exeext conftest.$ac_ext
31223 LIBS=$ac_check_lib_save_LIBS
31224 fi
31225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31226 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31227 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31228   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31229 fi
31230
31231       if test $ac_cv_lib_nsl_gethostbyname = no; then
31232         { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31233 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31234 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31235   $as_echo_n "(cached) " >&6
31236 else
31237   ac_check_lib_save_LIBS=$LIBS
31238 LIBS="-lbsd  $LIBS"
31239 cat >conftest.$ac_ext <<_ACEOF
31240 /* confdefs.h.  */
31241 _ACEOF
31242 cat confdefs.h >>conftest.$ac_ext
31243 cat >>conftest.$ac_ext <<_ACEOF
31244 /* end confdefs.h.  */
31245
31246 /* Override any GCC internal prototype to avoid an error.
31247    Use char because int might match the return type of a GCC
31248    builtin and then its argument prototype would still apply.  */
31249 #ifdef __cplusplus
31250 extern "C"
31251 #endif
31252 char gethostbyname ();
31253 int
31254 main ()
31255 {
31256 return gethostbyname ();
31257   ;
31258   return 0;
31259 }
31260 _ACEOF
31261 rm -f conftest.$ac_objext conftest$ac_exeext
31262 if { (ac_try="$ac_link"
31263 case "(($ac_try" in
31264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31265   *) ac_try_echo=$ac_try;;
31266 esac
31267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31268 $as_echo "$ac_try_echo") >&5
31269   (eval "$ac_link") 2>conftest.er1
31270   ac_status=$?
31271   grep -v '^ *+' conftest.er1 >conftest.err
31272   rm -f conftest.er1
31273   cat conftest.err >&5
31274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); } && {
31276          test -z "$ac_c_werror_flag" ||
31277          test ! -s conftest.err
31278        } && test -s conftest$ac_exeext && {
31279          test "$cross_compiling" = yes ||
31280          $as_test_x conftest$ac_exeext
31281        }; then
31282   ac_cv_lib_bsd_gethostbyname=yes
31283 else
31284   $as_echo "$as_me: failed program was:" >&5
31285 sed 's/^/| /' conftest.$ac_ext >&5
31286
31287         ac_cv_lib_bsd_gethostbyname=no
31288 fi
31289
31290 rm -rf conftest.dSYM
31291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31292       conftest$ac_exeext conftest.$ac_ext
31293 LIBS=$ac_check_lib_save_LIBS
31294 fi
31295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31296 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31297 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31298   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31299 fi
31300
31301       fi
31302     fi
31303
31304     # lieder@skyler.mavd.honeywell.com says without -lsocket,
31305     # socket/setsockopt and other routines are undefined under SCO ODT
31306     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31307     # on later versions), says Simon Leinen: it contains gethostby*
31308     # variants that don't use the name server (or something).  -lsocket
31309     # must be given before -lnsl if both are needed.  We assume that
31310     # if connect needs -lnsl, so does gethostbyname.
31311     { $as_echo "$as_me:$LINENO: checking for connect" >&5
31312 $as_echo_n "checking for connect... " >&6; }
31313 if test "${ac_cv_func_connect+set}" = set; then
31314   $as_echo_n "(cached) " >&6
31315 else
31316   cat >conftest.$ac_ext <<_ACEOF
31317 /* confdefs.h.  */
31318 _ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h.  */
31322 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31324 #define connect innocuous_connect
31325
31326 /* System header to define __stub macros and hopefully few prototypes,
31327     which can conflict with char connect (); below.
31328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31329     <limits.h> exists even on freestanding compilers.  */
31330
31331 #ifdef __STDC__
31332 # include <limits.h>
31333 #else
31334 # include <assert.h>
31335 #endif
31336
31337 #undef connect
31338
31339 /* Override any GCC internal prototype to avoid an error.
31340    Use char because int might match the return type of a GCC
31341    builtin and then its argument prototype would still apply.  */
31342 #ifdef __cplusplus
31343 extern "C"
31344 #endif
31345 char connect ();
31346 /* The GNU C library defines this for functions which it implements
31347     to always fail with ENOSYS.  Some functions are actually named
31348     something starting with __ and the normal name is an alias.  */
31349 #if defined __stub_connect || defined __stub___connect
31350 choke me
31351 #endif
31352
31353 int
31354 main ()
31355 {
31356 return connect ();
31357   ;
31358   return 0;
31359 }
31360 _ACEOF
31361 rm -f conftest.$ac_objext conftest$ac_exeext
31362 if { (ac_try="$ac_link"
31363 case "(($ac_try" in
31364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365   *) ac_try_echo=$ac_try;;
31366 esac
31367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31368 $as_echo "$ac_try_echo") >&5
31369   (eval "$ac_link") 2>conftest.er1
31370   ac_status=$?
31371   grep -v '^ *+' conftest.er1 >conftest.err
31372   rm -f conftest.er1
31373   cat conftest.err >&5
31374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375   (exit $ac_status); } && {
31376          test -z "$ac_c_werror_flag" ||
31377          test ! -s conftest.err
31378        } && test -s conftest$ac_exeext && {
31379          test "$cross_compiling" = yes ||
31380          $as_test_x conftest$ac_exeext
31381        }; then
31382   ac_cv_func_connect=yes
31383 else
31384   $as_echo "$as_me: failed program was:" >&5
31385 sed 's/^/| /' conftest.$ac_ext >&5
31386
31387         ac_cv_func_connect=no
31388 fi
31389
31390 rm -rf conftest.dSYM
31391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31392       conftest$ac_exeext conftest.$ac_ext
31393 fi
31394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31395 $as_echo "$ac_cv_func_connect" >&6; }
31396
31397     if test $ac_cv_func_connect = no; then
31398       { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31399 $as_echo_n "checking for connect in -lsocket... " >&6; }
31400 if test "${ac_cv_lib_socket_connect+set}" = set; then
31401   $as_echo_n "(cached) " >&6
31402 else
31403   ac_check_lib_save_LIBS=$LIBS
31404 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31405 cat >conftest.$ac_ext <<_ACEOF
31406 /* confdefs.h.  */
31407 _ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h.  */
31411
31412 /* Override any GCC internal prototype to avoid an error.
31413    Use char because int might match the return type of a GCC
31414    builtin and then its argument prototype would still apply.  */
31415 #ifdef __cplusplus
31416 extern "C"
31417 #endif
31418 char connect ();
31419 int
31420 main ()
31421 {
31422 return connect ();
31423   ;
31424   return 0;
31425 }
31426 _ACEOF
31427 rm -f conftest.$ac_objext conftest$ac_exeext
31428 if { (ac_try="$ac_link"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31434 $as_echo "$ac_try_echo") >&5
31435   (eval "$ac_link") 2>conftest.er1
31436   ac_status=$?
31437   grep -v '^ *+' conftest.er1 >conftest.err
31438   rm -f conftest.er1
31439   cat conftest.err >&5
31440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); } && {
31442          test -z "$ac_c_werror_flag" ||
31443          test ! -s conftest.err
31444        } && test -s conftest$ac_exeext && {
31445          test "$cross_compiling" = yes ||
31446          $as_test_x conftest$ac_exeext
31447        }; then
31448   ac_cv_lib_socket_connect=yes
31449 else
31450   $as_echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31452
31453         ac_cv_lib_socket_connect=no
31454 fi
31455
31456 rm -rf conftest.dSYM
31457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31458       conftest$ac_exeext conftest.$ac_ext
31459 LIBS=$ac_check_lib_save_LIBS
31460 fi
31461 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31462 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31463 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31464   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31465 fi
31466
31467     fi
31468
31469     # Guillermo Gomez says -lposix is necessary on A/UX.
31470     { $as_echo "$as_me:$LINENO: checking for remove" >&5
31471 $as_echo_n "checking for remove... " >&6; }
31472 if test "${ac_cv_func_remove+set}" = set; then
31473   $as_echo_n "(cached) " >&6
31474 else
31475   cat >conftest.$ac_ext <<_ACEOF
31476 /* confdefs.h.  */
31477 _ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h.  */
31481 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31483 #define remove innocuous_remove
31484
31485 /* System header to define __stub macros and hopefully few prototypes,
31486     which can conflict with char remove (); below.
31487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31488     <limits.h> exists even on freestanding compilers.  */
31489
31490 #ifdef __STDC__
31491 # include <limits.h>
31492 #else
31493 # include <assert.h>
31494 #endif
31495
31496 #undef remove
31497
31498 /* Override any GCC internal prototype to avoid an error.
31499    Use char because int might match the return type of a GCC
31500    builtin and then its argument prototype would still apply.  */
31501 #ifdef __cplusplus
31502 extern "C"
31503 #endif
31504 char remove ();
31505 /* The GNU C library defines this for functions which it implements
31506     to always fail with ENOSYS.  Some functions are actually named
31507     something starting with __ and the normal name is an alias.  */
31508 #if defined __stub_remove || defined __stub___remove
31509 choke me
31510 #endif
31511
31512 int
31513 main ()
31514 {
31515 return remove ();
31516   ;
31517   return 0;
31518 }
31519 _ACEOF
31520 rm -f conftest.$ac_objext conftest$ac_exeext
31521 if { (ac_try="$ac_link"
31522 case "(($ac_try" in
31523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524   *) ac_try_echo=$ac_try;;
31525 esac
31526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31527 $as_echo "$ac_try_echo") >&5
31528   (eval "$ac_link") 2>conftest.er1
31529   ac_status=$?
31530   grep -v '^ *+' conftest.er1 >conftest.err
31531   rm -f conftest.er1
31532   cat conftest.err >&5
31533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); } && {
31535          test -z "$ac_c_werror_flag" ||
31536          test ! -s conftest.err
31537        } && test -s conftest$ac_exeext && {
31538          test "$cross_compiling" = yes ||
31539          $as_test_x conftest$ac_exeext
31540        }; then
31541   ac_cv_func_remove=yes
31542 else
31543   $as_echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31545
31546         ac_cv_func_remove=no
31547 fi
31548
31549 rm -rf conftest.dSYM
31550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31551       conftest$ac_exeext conftest.$ac_ext
31552 fi
31553 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31554 $as_echo "$ac_cv_func_remove" >&6; }
31555
31556     if test $ac_cv_func_remove = no; then
31557       { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31558 $as_echo_n "checking for remove in -lposix... " >&6; }
31559 if test "${ac_cv_lib_posix_remove+set}" = set; then
31560   $as_echo_n "(cached) " >&6
31561 else
31562   ac_check_lib_save_LIBS=$LIBS
31563 LIBS="-lposix  $LIBS"
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
31571 /* Override any GCC internal prototype to avoid an error.
31572    Use char because int might match the return type of a GCC
31573    builtin and then its argument prototype would still apply.  */
31574 #ifdef __cplusplus
31575 extern "C"
31576 #endif
31577 char remove ();
31578 int
31579 main ()
31580 {
31581 return remove ();
31582   ;
31583   return 0;
31584 }
31585 _ACEOF
31586 rm -f conftest.$ac_objext conftest$ac_exeext
31587 if { (ac_try="$ac_link"
31588 case "(($ac_try" in
31589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590   *) ac_try_echo=$ac_try;;
31591 esac
31592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31593 $as_echo "$ac_try_echo") >&5
31594   (eval "$ac_link") 2>conftest.er1
31595   ac_status=$?
31596   grep -v '^ *+' conftest.er1 >conftest.err
31597   rm -f conftest.er1
31598   cat conftest.err >&5
31599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600   (exit $ac_status); } && {
31601          test -z "$ac_c_werror_flag" ||
31602          test ! -s conftest.err
31603        } && test -s conftest$ac_exeext && {
31604          test "$cross_compiling" = yes ||
31605          $as_test_x conftest$ac_exeext
31606        }; then
31607   ac_cv_lib_posix_remove=yes
31608 else
31609   $as_echo "$as_me: failed program was:" >&5
31610 sed 's/^/| /' conftest.$ac_ext >&5
31611
31612         ac_cv_lib_posix_remove=no
31613 fi
31614
31615 rm -rf conftest.dSYM
31616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31617       conftest$ac_exeext conftest.$ac_ext
31618 LIBS=$ac_check_lib_save_LIBS
31619 fi
31620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31621 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31622 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31623   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31624 fi
31625
31626     fi
31627
31628     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31629     { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31630 $as_echo_n "checking for shmat... " >&6; }
31631 if test "${ac_cv_func_shmat+set}" = set; then
31632   $as_echo_n "(cached) " >&6
31633 else
31634   cat >conftest.$ac_ext <<_ACEOF
31635 /* confdefs.h.  */
31636 _ACEOF
31637 cat confdefs.h >>conftest.$ac_ext
31638 cat >>conftest.$ac_ext <<_ACEOF
31639 /* end confdefs.h.  */
31640 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31642 #define shmat innocuous_shmat
31643
31644 /* System header to define __stub macros and hopefully few prototypes,
31645     which can conflict with char shmat (); below.
31646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31647     <limits.h> exists even on freestanding compilers.  */
31648
31649 #ifdef __STDC__
31650 # include <limits.h>
31651 #else
31652 # include <assert.h>
31653 #endif
31654
31655 #undef shmat
31656
31657 /* Override any GCC internal prototype to avoid an error.
31658    Use char because int might match the return type of a GCC
31659    builtin and then its argument prototype would still apply.  */
31660 #ifdef __cplusplus
31661 extern "C"
31662 #endif
31663 char shmat ();
31664 /* The GNU C library defines this for functions which it implements
31665     to always fail with ENOSYS.  Some functions are actually named
31666     something starting with __ and the normal name is an alias.  */
31667 #if defined __stub_shmat || defined __stub___shmat
31668 choke me
31669 #endif
31670
31671 int
31672 main ()
31673 {
31674 return shmat ();
31675   ;
31676   return 0;
31677 }
31678 _ACEOF
31679 rm -f conftest.$ac_objext conftest$ac_exeext
31680 if { (ac_try="$ac_link"
31681 case "(($ac_try" in
31682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683   *) ac_try_echo=$ac_try;;
31684 esac
31685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31686 $as_echo "$ac_try_echo") >&5
31687   (eval "$ac_link") 2>conftest.er1
31688   ac_status=$?
31689   grep -v '^ *+' conftest.er1 >conftest.err
31690   rm -f conftest.er1
31691   cat conftest.err >&5
31692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693   (exit $ac_status); } && {
31694          test -z "$ac_c_werror_flag" ||
31695          test ! -s conftest.err
31696        } && test -s conftest$ac_exeext && {
31697          test "$cross_compiling" = yes ||
31698          $as_test_x conftest$ac_exeext
31699        }; then
31700   ac_cv_func_shmat=yes
31701 else
31702   $as_echo "$as_me: failed program was:" >&5
31703 sed 's/^/| /' conftest.$ac_ext >&5
31704
31705         ac_cv_func_shmat=no
31706 fi
31707
31708 rm -rf conftest.dSYM
31709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31710       conftest$ac_exeext conftest.$ac_ext
31711 fi
31712 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31713 $as_echo "$ac_cv_func_shmat" >&6; }
31714
31715     if test $ac_cv_func_shmat = no; then
31716       { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31717 $as_echo_n "checking for shmat in -lipc... " >&6; }
31718 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31719   $as_echo_n "(cached) " >&6
31720 else
31721   ac_check_lib_save_LIBS=$LIBS
31722 LIBS="-lipc  $LIBS"
31723 cat >conftest.$ac_ext <<_ACEOF
31724 /* confdefs.h.  */
31725 _ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h.  */
31729
31730 /* Override any GCC internal prototype to avoid an error.
31731    Use char because int might match the return type of a GCC
31732    builtin and then its argument prototype would still apply.  */
31733 #ifdef __cplusplus
31734 extern "C"
31735 #endif
31736 char shmat ();
31737 int
31738 main ()
31739 {
31740 return shmat ();
31741   ;
31742   return 0;
31743 }
31744 _ACEOF
31745 rm -f conftest.$ac_objext conftest$ac_exeext
31746 if { (ac_try="$ac_link"
31747 case "(($ac_try" in
31748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749   *) ac_try_echo=$ac_try;;
31750 esac
31751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31752 $as_echo "$ac_try_echo") >&5
31753   (eval "$ac_link") 2>conftest.er1
31754   ac_status=$?
31755   grep -v '^ *+' conftest.er1 >conftest.err
31756   rm -f conftest.er1
31757   cat conftest.err >&5
31758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759   (exit $ac_status); } && {
31760          test -z "$ac_c_werror_flag" ||
31761          test ! -s conftest.err
31762        } && test -s conftest$ac_exeext && {
31763          test "$cross_compiling" = yes ||
31764          $as_test_x conftest$ac_exeext
31765        }; then
31766   ac_cv_lib_ipc_shmat=yes
31767 else
31768   $as_echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31770
31771         ac_cv_lib_ipc_shmat=no
31772 fi
31773
31774 rm -rf conftest.dSYM
31775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31776       conftest$ac_exeext conftest.$ac_ext
31777 LIBS=$ac_check_lib_save_LIBS
31778 fi
31779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31780 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31781 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31782   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31783 fi
31784
31785     fi
31786   fi
31787
31788   # Check for libraries that X11R6 Xt/Xaw programs need.
31789   ac_save_LDFLAGS=$LDFLAGS
31790   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31791   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31792   # check for ICE first), but we must link in the order -lSM -lICE or
31793   # we get undefined symbols.  So assume we have SM if we have ICE.
31794   # These have to be linked with before -lX11, unlike the other
31795   # libraries we check for below, so use a different variable.
31796   # John Interrante, Karl Berry
31797   { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31798 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31799 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31800   $as_echo_n "(cached) " >&6
31801 else
31802   ac_check_lib_save_LIBS=$LIBS
31803 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31804 cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810
31811 /* Override any GCC internal prototype to avoid an error.
31812    Use char because int might match the return type of a GCC
31813    builtin and then its argument prototype would still apply.  */
31814 #ifdef __cplusplus
31815 extern "C"
31816 #endif
31817 char IceConnectionNumber ();
31818 int
31819 main ()
31820 {
31821 return IceConnectionNumber ();
31822   ;
31823   return 0;
31824 }
31825 _ACEOF
31826 rm -f conftest.$ac_objext conftest$ac_exeext
31827 if { (ac_try="$ac_link"
31828 case "(($ac_try" in
31829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830   *) ac_try_echo=$ac_try;;
31831 esac
31832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31833 $as_echo "$ac_try_echo") >&5
31834   (eval "$ac_link") 2>conftest.er1
31835   ac_status=$?
31836   grep -v '^ *+' conftest.er1 >conftest.err
31837   rm -f conftest.er1
31838   cat conftest.err >&5
31839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); } && {
31841          test -z "$ac_c_werror_flag" ||
31842          test ! -s conftest.err
31843        } && test -s conftest$ac_exeext && {
31844          test "$cross_compiling" = yes ||
31845          $as_test_x conftest$ac_exeext
31846        }; then
31847   ac_cv_lib_ICE_IceConnectionNumber=yes
31848 else
31849   $as_echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31851
31852         ac_cv_lib_ICE_IceConnectionNumber=no
31853 fi
31854
31855 rm -rf conftest.dSYM
31856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31857       conftest$ac_exeext conftest.$ac_ext
31858 LIBS=$ac_check_lib_save_LIBS
31859 fi
31860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31861 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31862 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
31863   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31864 fi
31865
31866   LDFLAGS=$ac_save_LDFLAGS
31867
31868 fi
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900 for ac_header in \
31901    assert.h \
31902    fcntl.h \
31903    grp.h \
31904    pwd.h \
31905    libc.h \
31906    limits.h \
31907    stdarg.h \
31908    stdlib.h \
31909    stdint.h \
31910    string.h \
31911    strings.h \
31912    termios.h \
31913    termcap.h \
31914    term.h \
31915    unistd.h \
31916    sys/bitypes.h \
31917    sys/byteorder.h \
31918    sys/ioctl.h \
31919    sys/select.h \
31920    sys/socket.h \
31921    sys/sockio.h \
31922    sys/stat.h \
31923    sys/time.h \
31924    sys/types.h \
31925    arpa/nameser.h \
31926    mtio.h \
31927    sys/mtio.h \
31928    sys/tape.h \
31929    regex.h \
31930
31931 do
31932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31934   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31935 $as_echo_n "checking for $ac_header... " >&6; }
31936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31937   $as_echo_n "(cached) " >&6
31938 fi
31939 ac_res=`eval 'as_val=${'$as_ac_Header'}
31940                  $as_echo "$as_val"'`
31941                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31942 $as_echo "$ac_res" >&6; }
31943 else
31944   # Is the header compilable?
31945 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31946 $as_echo_n "checking $ac_header usability... " >&6; }
31947 cat >conftest.$ac_ext <<_ACEOF
31948 /* confdefs.h.  */
31949 _ACEOF
31950 cat confdefs.h >>conftest.$ac_ext
31951 cat >>conftest.$ac_ext <<_ACEOF
31952 /* end confdefs.h.  */
31953 $ac_includes_default
31954 #include <$ac_header>
31955 _ACEOF
31956 rm -f conftest.$ac_objext
31957 if { (ac_try="$ac_compile"
31958 case "(($ac_try" in
31959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31960   *) ac_try_echo=$ac_try;;
31961 esac
31962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31963 $as_echo "$ac_try_echo") >&5
31964   (eval "$ac_compile") 2>conftest.er1
31965   ac_status=$?
31966   grep -v '^ *+' conftest.er1 >conftest.err
31967   rm -f conftest.er1
31968   cat conftest.err >&5
31969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970   (exit $ac_status); } && {
31971          test -z "$ac_c_werror_flag" ||
31972          test ! -s conftest.err
31973        } && test -s conftest.$ac_objext; then
31974   ac_header_compiler=yes
31975 else
31976   $as_echo "$as_me: failed program was:" >&5
31977 sed 's/^/| /' conftest.$ac_ext >&5
31978
31979         ac_header_compiler=no
31980 fi
31981
31982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31983 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31984 $as_echo "$ac_header_compiler" >&6; }
31985
31986 # Is the header present?
31987 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31988 $as_echo_n "checking $ac_header presence... " >&6; }
31989 cat >conftest.$ac_ext <<_ACEOF
31990 /* confdefs.h.  */
31991 _ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h.  */
31995 #include <$ac_header>
31996 _ACEOF
31997 if { (ac_try="$ac_cpp conftest.$ac_ext"
31998 case "(($ac_try" in
31999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000   *) ac_try_echo=$ac_try;;
32001 esac
32002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32003 $as_echo "$ac_try_echo") >&5
32004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32005   ac_status=$?
32006   grep -v '^ *+' conftest.er1 >conftest.err
32007   rm -f conftest.er1
32008   cat conftest.err >&5
32009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); } >/dev/null && {
32011          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32012          test ! -s conftest.err
32013        }; then
32014   ac_header_preproc=yes
32015 else
32016   $as_echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32018
32019   ac_header_preproc=no
32020 fi
32021
32022 rm -f conftest.err conftest.$ac_ext
32023 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32024 $as_echo "$ac_header_preproc" >&6; }
32025
32026 # So?  What about this header?
32027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32028   yes:no: )
32029     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32030 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32031     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32032 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32033     ac_header_preproc=yes
32034     ;;
32035   no:yes:* )
32036     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32037 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32038     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32039 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32040     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32041 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32042     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32043 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32044     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32045 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32047 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32048
32049     ;;
32050 esac
32051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32052 $as_echo_n "checking for $ac_header... " >&6; }
32053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32054   $as_echo_n "(cached) " >&6
32055 else
32056   eval "$as_ac_Header=\$ac_header_preproc"
32057 fi
32058 ac_res=`eval 'as_val=${'$as_ac_Header'}
32059                  $as_echo "$as_val"'`
32060                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32061 $as_echo "$ac_res" >&6; }
32062
32063 fi
32064 as_val=`eval 'as_val=${'$as_ac_Header'}
32065                  $as_echo "$as_val"'`
32066    if test "x$as_val" = x""yes; then
32067   cat >>confdefs.h <<_ACEOF
32068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32069 _ACEOF
32070
32071 fi
32072
32073 done
32074
32075 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32076 $as_echo_n "checking for ANSI C header files... " >&6; }
32077 if test "${ac_cv_header_stdc+set}" = set; then
32078   $as_echo_n "(cached) " >&6
32079 else
32080   cat >conftest.$ac_ext <<_ACEOF
32081 /* confdefs.h.  */
32082 _ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h.  */
32086 #include <stdlib.h>
32087 #include <stdarg.h>
32088 #include <string.h>
32089 #include <float.h>
32090
32091 int
32092 main ()
32093 {
32094
32095   ;
32096   return 0;
32097 }
32098 _ACEOF
32099 rm -f conftest.$ac_objext
32100 if { (ac_try="$ac_compile"
32101 case "(($ac_try" in
32102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103   *) ac_try_echo=$ac_try;;
32104 esac
32105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32106 $as_echo "$ac_try_echo") >&5
32107   (eval "$ac_compile") 2>conftest.er1
32108   ac_status=$?
32109   grep -v '^ *+' conftest.er1 >conftest.err
32110   rm -f conftest.er1
32111   cat conftest.err >&5
32112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113   (exit $ac_status); } && {
32114          test -z "$ac_c_werror_flag" ||
32115          test ! -s conftest.err
32116        } && test -s conftest.$ac_objext; then
32117   ac_cv_header_stdc=yes
32118 else
32119   $as_echo "$as_me: failed program was:" >&5
32120 sed 's/^/| /' conftest.$ac_ext >&5
32121
32122         ac_cv_header_stdc=no
32123 fi
32124
32125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32126
32127 if test $ac_cv_header_stdc = yes; then
32128   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32129   cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h.  */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h.  */
32135 #include <string.h>
32136
32137 _ACEOF
32138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32139   $EGREP "memchr" >/dev/null 2>&1; then
32140   :
32141 else
32142   ac_cv_header_stdc=no
32143 fi
32144 rm -f conftest*
32145
32146 fi
32147
32148 if test $ac_cv_header_stdc = yes; then
32149   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32150   cat >conftest.$ac_ext <<_ACEOF
32151 /* confdefs.h.  */
32152 _ACEOF
32153 cat confdefs.h >>conftest.$ac_ext
32154 cat >>conftest.$ac_ext <<_ACEOF
32155 /* end confdefs.h.  */
32156 #include <stdlib.h>
32157
32158 _ACEOF
32159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32160   $EGREP "free" >/dev/null 2>&1; then
32161   :
32162 else
32163   ac_cv_header_stdc=no
32164 fi
32165 rm -f conftest*
32166
32167 fi
32168
32169 if test $ac_cv_header_stdc = yes; then
32170   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32171   if test "$cross_compiling" = yes; then
32172   :
32173 else
32174   cat >conftest.$ac_ext <<_ACEOF
32175 /* confdefs.h.  */
32176 _ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h.  */
32180 #include <ctype.h>
32181 #include <stdlib.h>
32182 #if ((' ' & 0x0FF) == 0x020)
32183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32185 #else
32186 # define ISLOWER(c) \
32187                    (('a' <= (c) && (c) <= 'i') \
32188                      || ('j' <= (c) && (c) <= 'r') \
32189                      || ('s' <= (c) && (c) <= 'z'))
32190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32191 #endif
32192
32193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32194 int
32195 main ()
32196 {
32197   int i;
32198   for (i = 0; i < 256; i++)
32199     if (XOR (islower (i), ISLOWER (i))
32200         || toupper (i) != TOUPPER (i))
32201       return 2;
32202   return 0;
32203 }
32204 _ACEOF
32205 rm -f conftest$ac_exeext
32206 if { (ac_try="$ac_link"
32207 case "(($ac_try" in
32208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209   *) ac_try_echo=$ac_try;;
32210 esac
32211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32212 $as_echo "$ac_try_echo") >&5
32213   (eval "$ac_link") 2>&5
32214   ac_status=$?
32215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32217   { (case "(($ac_try" in
32218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219   *) ac_try_echo=$ac_try;;
32220 esac
32221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32222 $as_echo "$ac_try_echo") >&5
32223   (eval "$ac_try") 2>&5
32224   ac_status=$?
32225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); }; }; then
32227   :
32228 else
32229   $as_echo "$as_me: program exited with status $ac_status" >&5
32230 $as_echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32232
32233 ( exit $ac_status )
32234 ac_cv_header_stdc=no
32235 fi
32236 rm -rf conftest.dSYM
32237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32238 fi
32239
32240
32241 fi
32242 fi
32243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32244 $as_echo "$ac_cv_header_stdc" >&6; }
32245 if test $ac_cv_header_stdc = yes; then
32246
32247 cat >>confdefs.h <<\_ACEOF
32248 #define STDC_HEADERS 1
32249 _ACEOF
32250
32251 fi
32252
32253 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
32254 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
32255 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
32256   $as_echo_n "(cached) " >&6
32257 else
32258   cat >conftest.$ac_ext <<_ACEOF
32259 /* confdefs.h.  */
32260 _ACEOF
32261 cat confdefs.h >>conftest.$ac_ext
32262 cat >>conftest.$ac_ext <<_ACEOF
32263 /* end confdefs.h.  */
32264 #include <sys/types.h>
32265 int
32266 main ()
32267 {
32268 return makedev(0, 0);
32269   ;
32270   return 0;
32271 }
32272 _ACEOF
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (ac_try="$ac_link"
32275 case "(($ac_try" in
32276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277   *) ac_try_echo=$ac_try;;
32278 esac
32279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32280 $as_echo "$ac_try_echo") >&5
32281   (eval "$ac_link") 2>conftest.er1
32282   ac_status=$?
32283   grep -v '^ *+' conftest.er1 >conftest.err
32284   rm -f conftest.er1
32285   cat conftest.err >&5
32286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287   (exit $ac_status); } && {
32288          test -z "$ac_c_werror_flag" ||
32289          test ! -s conftest.err
32290        } && test -s conftest$ac_exeext && {
32291          test "$cross_compiling" = yes ||
32292          $as_test_x conftest$ac_exeext
32293        }; then
32294   ac_cv_header_sys_types_h_makedev=yes
32295 else
32296   $as_echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32298
32299         ac_cv_header_sys_types_h_makedev=no
32300 fi
32301
32302 rm -rf conftest.dSYM
32303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32304       conftest$ac_exeext conftest.$ac_ext
32305
32306 fi
32307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
32308 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
32309
32310 if test $ac_cv_header_sys_types_h_makedev = no; then
32311 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32312   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32313 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32314 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32315   $as_echo_n "(cached) " >&6
32316 fi
32317 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32318 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32319 else
32320   # Is the header compilable?
32321 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
32322 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
32323 cat >conftest.$ac_ext <<_ACEOF
32324 /* confdefs.h.  */
32325 _ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h.  */
32329 $ac_includes_default
32330 #include <sys/mkdev.h>
32331 _ACEOF
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336   *) ac_try_echo=$ac_try;;
32337 esac
32338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32339 $as_echo "$ac_try_echo") >&5
32340   (eval "$ac_compile") 2>conftest.er1
32341   ac_status=$?
32342   grep -v '^ *+' conftest.er1 >conftest.err
32343   rm -f conftest.er1
32344   cat conftest.err >&5
32345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346   (exit $ac_status); } && {
32347          test -z "$ac_c_werror_flag" ||
32348          test ! -s conftest.err
32349        } && test -s conftest.$ac_objext; then
32350   ac_header_compiler=yes
32351 else
32352   $as_echo "$as_me: failed program was:" >&5
32353 sed 's/^/| /' conftest.$ac_ext >&5
32354
32355         ac_header_compiler=no
32356 fi
32357
32358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32359 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32360 $as_echo "$ac_header_compiler" >&6; }
32361
32362 # Is the header present?
32363 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
32364 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
32365 cat >conftest.$ac_ext <<_ACEOF
32366 /* confdefs.h.  */
32367 _ACEOF
32368 cat confdefs.h >>conftest.$ac_ext
32369 cat >>conftest.$ac_ext <<_ACEOF
32370 /* end confdefs.h.  */
32371 #include <sys/mkdev.h>
32372 _ACEOF
32373 if { (ac_try="$ac_cpp conftest.$ac_ext"
32374 case "(($ac_try" in
32375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376   *) ac_try_echo=$ac_try;;
32377 esac
32378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32379 $as_echo "$ac_try_echo") >&5
32380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32381   ac_status=$?
32382   grep -v '^ *+' conftest.er1 >conftest.err
32383   rm -f conftest.er1
32384   cat conftest.err >&5
32385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); } >/dev/null && {
32387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32388          test ! -s conftest.err
32389        }; then
32390   ac_header_preproc=yes
32391 else
32392   $as_echo "$as_me: failed program was:" >&5
32393 sed 's/^/| /' conftest.$ac_ext >&5
32394
32395   ac_header_preproc=no
32396 fi
32397
32398 rm -f conftest.err conftest.$ac_ext
32399 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32400 $as_echo "$ac_header_preproc" >&6; }
32401
32402 # So?  What about this header?
32403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32404   yes:no: )
32405     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32406 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32407     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
32408 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
32409     ac_header_preproc=yes
32410     ;;
32411   no:yes:* )
32412     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
32413 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
32414     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
32415 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
32416     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
32417 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
32418     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
32419 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32420     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
32421 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
32422     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
32423 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
32424
32425     ;;
32426 esac
32427 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32428 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32429 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32430   $as_echo_n "(cached) " >&6
32431 else
32432   ac_cv_header_sys_mkdev_h=$ac_header_preproc
32433 fi
32434 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32435 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32436
32437 fi
32438 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
32439
32440 cat >>confdefs.h <<\_ACEOF
32441 #define MAJOR_IN_MKDEV 1
32442 _ACEOF
32443
32444 fi
32445
32446
32447
32448   if test $ac_cv_header_sys_mkdev_h = no; then
32449     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32450   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32451 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32452 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32453   $as_echo_n "(cached) " >&6
32454 fi
32455 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32456 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32457 else
32458   # Is the header compilable?
32459 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
32460 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
32461 cat >conftest.$ac_ext <<_ACEOF
32462 /* confdefs.h.  */
32463 _ACEOF
32464 cat confdefs.h >>conftest.$ac_ext
32465 cat >>conftest.$ac_ext <<_ACEOF
32466 /* end confdefs.h.  */
32467 $ac_includes_default
32468 #include <sys/sysmacros.h>
32469 _ACEOF
32470 rm -f conftest.$ac_objext
32471 if { (ac_try="$ac_compile"
32472 case "(($ac_try" in
32473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474   *) ac_try_echo=$ac_try;;
32475 esac
32476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32477 $as_echo "$ac_try_echo") >&5
32478   (eval "$ac_compile") 2>conftest.er1
32479   ac_status=$?
32480   grep -v '^ *+' conftest.er1 >conftest.err
32481   rm -f conftest.er1
32482   cat conftest.err >&5
32483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); } && {
32485          test -z "$ac_c_werror_flag" ||
32486          test ! -s conftest.err
32487        } && test -s conftest.$ac_objext; then
32488   ac_header_compiler=yes
32489 else
32490   $as_echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32492
32493         ac_header_compiler=no
32494 fi
32495
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32498 $as_echo "$ac_header_compiler" >&6; }
32499
32500 # Is the header present?
32501 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
32502 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
32503 cat >conftest.$ac_ext <<_ACEOF
32504 /* confdefs.h.  */
32505 _ACEOF
32506 cat confdefs.h >>conftest.$ac_ext
32507 cat >>conftest.$ac_ext <<_ACEOF
32508 /* end confdefs.h.  */
32509 #include <sys/sysmacros.h>
32510 _ACEOF
32511 if { (ac_try="$ac_cpp conftest.$ac_ext"
32512 case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32517 $as_echo "$ac_try_echo") >&5
32518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32519   ac_status=$?
32520   grep -v '^ *+' conftest.er1 >conftest.err
32521   rm -f conftest.er1
32522   cat conftest.err >&5
32523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524   (exit $ac_status); } >/dev/null && {
32525          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32526          test ! -s conftest.err
32527        }; then
32528   ac_header_preproc=yes
32529 else
32530   $as_echo "$as_me: failed program was:" >&5
32531 sed 's/^/| /' conftest.$ac_ext >&5
32532
32533   ac_header_preproc=no
32534 fi
32535
32536 rm -f conftest.err conftest.$ac_ext
32537 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32538 $as_echo "$ac_header_preproc" >&6; }
32539
32540 # So?  What about this header?
32541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32542   yes:no: )
32543     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
32544 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32545     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
32546 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
32547     ac_header_preproc=yes
32548     ;;
32549   no:yes:* )
32550     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
32551 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
32552     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
32553 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
32554     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
32555 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
32556     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
32557 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32558     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
32559 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
32560     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
32561 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
32562
32563     ;;
32564 esac
32565 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32566 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32567 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32568   $as_echo_n "(cached) " >&6
32569 else
32570   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
32571 fi
32572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32573 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32574
32575 fi
32576 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
32577
32578 cat >>confdefs.h <<\_ACEOF
32579 #define MAJOR_IN_SYSMACROS 1
32580 _ACEOF
32581
32582 fi
32583
32584
32585   fi
32586 fi
32587
32588
32589
32590
32591
32592
32593 ac_header_dirent=no
32594 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
32595   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
32596 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
32597 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
32598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32599   $as_echo_n "(cached) " >&6
32600 else
32601   cat >conftest.$ac_ext <<_ACEOF
32602 /* confdefs.h.  */
32603 _ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h.  */
32607 #include <sys/types.h>
32608 #include <$ac_hdr>
32609
32610 int
32611 main ()
32612 {
32613 if ((DIR *) 0)
32614 return 0;
32615   ;
32616   return 0;
32617 }
32618 _ACEOF
32619 rm -f conftest.$ac_objext
32620 if { (ac_try="$ac_compile"
32621 case "(($ac_try" in
32622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623   *) ac_try_echo=$ac_try;;
32624 esac
32625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32626 $as_echo "$ac_try_echo") >&5
32627   (eval "$ac_compile") 2>conftest.er1
32628   ac_status=$?
32629   grep -v '^ *+' conftest.er1 >conftest.err
32630   rm -f conftest.er1
32631   cat conftest.err >&5
32632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633   (exit $ac_status); } && {
32634          test -z "$ac_c_werror_flag" ||
32635          test ! -s conftest.err
32636        } && test -s conftest.$ac_objext; then
32637   eval "$as_ac_Header=yes"
32638 else
32639   $as_echo "$as_me: failed program was:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32641
32642         eval "$as_ac_Header=no"
32643 fi
32644
32645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32646 fi
32647 ac_res=`eval 'as_val=${'$as_ac_Header'}
32648                  $as_echo "$as_val"'`
32649                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32650 $as_echo "$ac_res" >&6; }
32651 as_val=`eval 'as_val=${'$as_ac_Header'}
32652                  $as_echo "$as_val"'`
32653    if test "x$as_val" = x""yes; then
32654   cat >>confdefs.h <<_ACEOF
32655 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
32656 _ACEOF
32657
32658 ac_header_dirent=$ac_hdr; break
32659 fi
32660
32661 done
32662 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
32663 if test $ac_header_dirent = dirent.h; then
32664   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32665 $as_echo_n "checking for library containing opendir... " >&6; }
32666 if test "${ac_cv_search_opendir+set}" = set; then
32667   $as_echo_n "(cached) " >&6
32668 else
32669   ac_func_search_save_LIBS=$LIBS
32670 cat >conftest.$ac_ext <<_ACEOF
32671 /* confdefs.h.  */
32672 _ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h.  */
32676
32677 /* Override any GCC internal prototype to avoid an error.
32678    Use char because int might match the return type of a GCC
32679    builtin and then its argument prototype would still apply.  */
32680 #ifdef __cplusplus
32681 extern "C"
32682 #endif
32683 char opendir ();
32684 int
32685 main ()
32686 {
32687 return opendir ();
32688   ;
32689   return 0;
32690 }
32691 _ACEOF
32692 for ac_lib in '' dir; do
32693   if test -z "$ac_lib"; then
32694     ac_res="none required"
32695   else
32696     ac_res=-l$ac_lib
32697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32698   fi
32699   rm -f conftest.$ac_objext conftest$ac_exeext
32700 if { (ac_try="$ac_link"
32701 case "(($ac_try" in
32702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32703   *) ac_try_echo=$ac_try;;
32704 esac
32705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32706 $as_echo "$ac_try_echo") >&5
32707   (eval "$ac_link") 2>conftest.er1
32708   ac_status=$?
32709   grep -v '^ *+' conftest.er1 >conftest.err
32710   rm -f conftest.er1
32711   cat conftest.err >&5
32712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713   (exit $ac_status); } && {
32714          test -z "$ac_c_werror_flag" ||
32715          test ! -s conftest.err
32716        } && test -s conftest$ac_exeext && {
32717          test "$cross_compiling" = yes ||
32718          $as_test_x conftest$ac_exeext
32719        }; then
32720   ac_cv_search_opendir=$ac_res
32721 else
32722   $as_echo "$as_me: failed program was:" >&5
32723 sed 's/^/| /' conftest.$ac_ext >&5
32724
32725
32726 fi
32727
32728 rm -rf conftest.dSYM
32729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32730       conftest$ac_exeext
32731   if test "${ac_cv_search_opendir+set}" = set; then
32732   break
32733 fi
32734 done
32735 if test "${ac_cv_search_opendir+set}" = set; then
32736   :
32737 else
32738   ac_cv_search_opendir=no
32739 fi
32740 rm conftest.$ac_ext
32741 LIBS=$ac_func_search_save_LIBS
32742 fi
32743 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32744 $as_echo "$ac_cv_search_opendir" >&6; }
32745 ac_res=$ac_cv_search_opendir
32746 if test "$ac_res" != no; then
32747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32748
32749 fi
32750
32751 else
32752   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32753 $as_echo_n "checking for library containing opendir... " >&6; }
32754 if test "${ac_cv_search_opendir+set}" = set; then
32755   $as_echo_n "(cached) " >&6
32756 else
32757   ac_func_search_save_LIBS=$LIBS
32758 cat >conftest.$ac_ext <<_ACEOF
32759 /* confdefs.h.  */
32760 _ACEOF
32761 cat confdefs.h >>conftest.$ac_ext
32762 cat >>conftest.$ac_ext <<_ACEOF
32763 /* end confdefs.h.  */
32764
32765 /* Override any GCC internal prototype to avoid an error.
32766    Use char because int might match the return type of a GCC
32767    builtin and then its argument prototype would still apply.  */
32768 #ifdef __cplusplus
32769 extern "C"
32770 #endif
32771 char opendir ();
32772 int
32773 main ()
32774 {
32775 return opendir ();
32776   ;
32777   return 0;
32778 }
32779 _ACEOF
32780 for ac_lib in '' x; do
32781   if test -z "$ac_lib"; then
32782     ac_res="none required"
32783   else
32784     ac_res=-l$ac_lib
32785     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32786   fi
32787   rm -f conftest.$ac_objext conftest$ac_exeext
32788 if { (ac_try="$ac_link"
32789 case "(($ac_try" in
32790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791   *) ac_try_echo=$ac_try;;
32792 esac
32793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32794 $as_echo "$ac_try_echo") >&5
32795   (eval "$ac_link") 2>conftest.er1
32796   ac_status=$?
32797   grep -v '^ *+' conftest.er1 >conftest.err
32798   rm -f conftest.er1
32799   cat conftest.err >&5
32800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801   (exit $ac_status); } && {
32802          test -z "$ac_c_werror_flag" ||
32803          test ! -s conftest.err
32804        } && test -s conftest$ac_exeext && {
32805          test "$cross_compiling" = yes ||
32806          $as_test_x conftest$ac_exeext
32807        }; then
32808   ac_cv_search_opendir=$ac_res
32809 else
32810   $as_echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.$ac_ext >&5
32812
32813
32814 fi
32815
32816 rm -rf conftest.dSYM
32817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32818       conftest$ac_exeext
32819   if test "${ac_cv_search_opendir+set}" = set; then
32820   break
32821 fi
32822 done
32823 if test "${ac_cv_search_opendir+set}" = set; then
32824   :
32825 else
32826   ac_cv_search_opendir=no
32827 fi
32828 rm conftest.$ac_ext
32829 LIBS=$ac_func_search_save_LIBS
32830 fi
32831 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32832 $as_echo "$ac_cv_search_opendir" >&6; }
32833 ac_res=$ac_cv_search_opendir
32834 if test "$ac_res" != no; then
32835   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32836
32837 fi
32838
32839 fi
32840
32841 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32842 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
32843 if test "${ac_cv_header_stat_broken+set}" = set; then
32844   $as_echo_n "(cached) " >&6
32845 else
32846   cat >conftest.$ac_ext <<_ACEOF
32847 /* confdefs.h.  */
32848 _ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h.  */
32852 #include <sys/types.h>
32853 #include <sys/stat.h>
32854
32855 #if defined S_ISBLK && defined S_IFDIR
32856 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32857 #endif
32858
32859 #if defined S_ISBLK && defined S_IFCHR
32860 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32861 #endif
32862
32863 #if defined S_ISLNK && defined S_IFREG
32864 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32865 #endif
32866
32867 #if defined S_ISSOCK && defined S_IFREG
32868 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32869 #endif
32870
32871 _ACEOF
32872 rm -f conftest.$ac_objext
32873 if { (ac_try="$ac_compile"
32874 case "(($ac_try" in
32875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32876   *) ac_try_echo=$ac_try;;
32877 esac
32878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32879 $as_echo "$ac_try_echo") >&5
32880   (eval "$ac_compile") 2>conftest.er1
32881   ac_status=$?
32882   grep -v '^ *+' conftest.er1 >conftest.err
32883   rm -f conftest.er1
32884   cat conftest.err >&5
32885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); } && {
32887          test -z "$ac_c_werror_flag" ||
32888          test ! -s conftest.err
32889        } && test -s conftest.$ac_objext; then
32890   ac_cv_header_stat_broken=no
32891 else
32892   $as_echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895         ac_cv_header_stat_broken=yes
32896 fi
32897
32898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32899 fi
32900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32901 $as_echo "$ac_cv_header_stat_broken" >&6; }
32902 if test $ac_cv_header_stat_broken = yes; then
32903
32904 cat >>confdefs.h <<\_ACEOF
32905 #define STAT_MACROS_BROKEN 1
32906 _ACEOF
32907
32908 fi
32909
32910 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32911 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
32912 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32913   $as_echo_n "(cached) " >&6
32914 else
32915   cat >conftest.$ac_ext <<_ACEOF
32916 /* confdefs.h.  */
32917 _ACEOF
32918 cat confdefs.h >>conftest.$ac_ext
32919 cat >>conftest.$ac_ext <<_ACEOF
32920 /* end confdefs.h.  */
32921 #include <sys/types.h>
32922 #include <sys/wait.h>
32923 #ifndef WEXITSTATUS
32924 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32925 #endif
32926 #ifndef WIFEXITED
32927 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32928 #endif
32929
32930 int
32931 main ()
32932 {
32933   int s;
32934   wait (&s);
32935   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32936   ;
32937   return 0;
32938 }
32939 _ACEOF
32940 rm -f conftest.$ac_objext
32941 if { (ac_try="$ac_compile"
32942 case "(($ac_try" in
32943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944   *) ac_try_echo=$ac_try;;
32945 esac
32946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32947 $as_echo "$ac_try_echo") >&5
32948   (eval "$ac_compile") 2>conftest.er1
32949   ac_status=$?
32950   grep -v '^ *+' conftest.er1 >conftest.err
32951   rm -f conftest.er1
32952   cat conftest.err >&5
32953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); } && {
32955          test -z "$ac_c_werror_flag" ||
32956          test ! -s conftest.err
32957        } && test -s conftest.$ac_objext; then
32958   ac_cv_header_sys_wait_h=yes
32959 else
32960   $as_echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32962
32963         ac_cv_header_sys_wait_h=no
32964 fi
32965
32966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32967 fi
32968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32969 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
32970 if test $ac_cv_header_sys_wait_h = yes; then
32971
32972 cat >>confdefs.h <<\_ACEOF
32973 #define HAVE_SYS_WAIT_H 1
32974 _ACEOF
32975
32976 fi
32977
32978 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32979 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
32980 if test "${ac_cv_header_time+set}" = set; then
32981   $as_echo_n "(cached) " >&6
32982 else
32983   cat >conftest.$ac_ext <<_ACEOF
32984 /* confdefs.h.  */
32985 _ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h.  */
32989 #include <sys/types.h>
32990 #include <sys/time.h>
32991 #include <time.h>
32992
32993 int
32994 main ()
32995 {
32996 if ((struct tm *) 0)
32997 return 0;
32998   ;
32999   return 0;
33000 }
33001 _ACEOF
33002 rm -f conftest.$ac_objext
33003 if { (ac_try="$ac_compile"
33004 case "(($ac_try" in
33005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006   *) ac_try_echo=$ac_try;;
33007 esac
33008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33009 $as_echo "$ac_try_echo") >&5
33010   (eval "$ac_compile") 2>conftest.er1
33011   ac_status=$?
33012   grep -v '^ *+' conftest.er1 >conftest.err
33013   rm -f conftest.er1
33014   cat conftest.err >&5
33015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); } && {
33017          test -z "$ac_c_werror_flag" ||
33018          test ! -s conftest.err
33019        } && test -s conftest.$ac_objext; then
33020   ac_cv_header_time=yes
33021 else
33022   $as_echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33024
33025         ac_cv_header_time=no
33026 fi
33027
33028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33029 fi
33030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33031 $as_echo "$ac_cv_header_time" >&6; }
33032 if test $ac_cv_header_time = yes; then
33033
33034 cat >>confdefs.h <<\_ACEOF
33035 #define TIME_WITH_SYS_TIME 1
33036 _ACEOF
33037
33038 fi
33039
33040 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33041 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
33042 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33043   $as_echo_n "(cached) " >&6
33044 else
33045   cat >conftest.$ac_ext <<_ACEOF
33046 /* confdefs.h.  */
33047 _ACEOF
33048 cat confdefs.h >>conftest.$ac_ext
33049 cat >>conftest.$ac_ext <<_ACEOF
33050 /* end confdefs.h.  */
33051 $ac_includes_default
33052 int
33053 main ()
33054 {
33055 static struct stat ac_aggr;
33056 if (ac_aggr.st_blksize)
33057 return 0;
33058   ;
33059   return 0;
33060 }
33061 _ACEOF
33062 rm -f conftest.$ac_objext
33063 if { (ac_try="$ac_compile"
33064 case "(($ac_try" in
33065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33066   *) ac_try_echo=$ac_try;;
33067 esac
33068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33069 $as_echo "$ac_try_echo") >&5
33070   (eval "$ac_compile") 2>conftest.er1
33071   ac_status=$?
33072   grep -v '^ *+' conftest.er1 >conftest.err
33073   rm -f conftest.er1
33074   cat conftest.err >&5
33075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); } && {
33077          test -z "$ac_c_werror_flag" ||
33078          test ! -s conftest.err
33079        } && test -s conftest.$ac_objext; then
33080   ac_cv_member_struct_stat_st_blksize=yes
33081 else
33082   $as_echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33084
33085         cat >conftest.$ac_ext <<_ACEOF
33086 /* confdefs.h.  */
33087 _ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h.  */
33091 $ac_includes_default
33092 int
33093 main ()
33094 {
33095 static struct stat ac_aggr;
33096 if (sizeof ac_aggr.st_blksize)
33097 return 0;
33098   ;
33099   return 0;
33100 }
33101 _ACEOF
33102 rm -f conftest.$ac_objext
33103 if { (ac_try="$ac_compile"
33104 case "(($ac_try" in
33105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33106   *) ac_try_echo=$ac_try;;
33107 esac
33108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33109 $as_echo "$ac_try_echo") >&5
33110   (eval "$ac_compile") 2>conftest.er1
33111   ac_status=$?
33112   grep -v '^ *+' conftest.er1 >conftest.err
33113   rm -f conftest.er1
33114   cat conftest.err >&5
33115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116   (exit $ac_status); } && {
33117          test -z "$ac_c_werror_flag" ||
33118          test ! -s conftest.err
33119        } && test -s conftest.$ac_objext; then
33120   ac_cv_member_struct_stat_st_blksize=yes
33121 else
33122   $as_echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33124
33125         ac_cv_member_struct_stat_st_blksize=no
33126 fi
33127
33128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33129 fi
33130
33131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33132 fi
33133 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33134 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
33135 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
33136
33137 cat >>confdefs.h <<_ACEOF
33138 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33139 _ACEOF
33140
33141
33142 cat >>confdefs.h <<\_ACEOF
33143 #define HAVE_ST_BLKSIZE 1
33144 _ACEOF
33145
33146 fi
33147
33148
33149 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33150 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
33151 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33152   $as_echo_n "(cached) " >&6
33153 else
33154   cat >conftest.$ac_ext <<_ACEOF
33155 /* confdefs.h.  */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h.  */
33160 $ac_includes_default
33161 int
33162 main ()
33163 {
33164 static struct stat ac_aggr;
33165 if (ac_aggr.st_blocks)
33166 return 0;
33167   ;
33168   return 0;
33169 }
33170 _ACEOF
33171 rm -f conftest.$ac_objext
33172 if { (ac_try="$ac_compile"
33173 case "(($ac_try" in
33174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175   *) ac_try_echo=$ac_try;;
33176 esac
33177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33178 $as_echo "$ac_try_echo") >&5
33179   (eval "$ac_compile") 2>conftest.er1
33180   ac_status=$?
33181   grep -v '^ *+' conftest.er1 >conftest.err
33182   rm -f conftest.er1
33183   cat conftest.err >&5
33184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); } && {
33186          test -z "$ac_c_werror_flag" ||
33187          test ! -s conftest.err
33188        } && test -s conftest.$ac_objext; then
33189   ac_cv_member_struct_stat_st_blocks=yes
33190 else
33191   $as_echo "$as_me: failed program was:" >&5
33192 sed 's/^/| /' conftest.$ac_ext >&5
33193
33194         cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h.  */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h.  */
33200 $ac_includes_default
33201 int
33202 main ()
33203 {
33204 static struct stat ac_aggr;
33205 if (sizeof ac_aggr.st_blocks)
33206 return 0;
33207   ;
33208   return 0;
33209 }
33210 _ACEOF
33211 rm -f conftest.$ac_objext
33212 if { (ac_try="$ac_compile"
33213 case "(($ac_try" in
33214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215   *) ac_try_echo=$ac_try;;
33216 esac
33217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33218 $as_echo "$ac_try_echo") >&5
33219   (eval "$ac_compile") 2>conftest.er1
33220   ac_status=$?
33221   grep -v '^ *+' conftest.er1 >conftest.err
33222   rm -f conftest.er1
33223   cat conftest.err >&5
33224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225   (exit $ac_status); } && {
33226          test -z "$ac_c_werror_flag" ||
33227          test ! -s conftest.err
33228        } && test -s conftest.$ac_objext; then
33229   ac_cv_member_struct_stat_st_blocks=yes
33230 else
33231   $as_echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33233
33234         ac_cv_member_struct_stat_st_blocks=no
33235 fi
33236
33237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33238 fi
33239
33240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33241 fi
33242 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33243 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
33244 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
33245
33246 cat >>confdefs.h <<_ACEOF
33247 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33248 _ACEOF
33249
33250
33251 cat >>confdefs.h <<\_ACEOF
33252 #define HAVE_ST_BLOCKS 1
33253 _ACEOF
33254
33255 else
33256   case " $LIBOBJS " in
33257   *" fileblocks.$ac_objext "* ) ;;
33258   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33259  ;;
33260 esac
33261
33262 fi
33263
33264
33265 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33266 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33267 if test "${ac_cv_struct_tm+set}" = set; then
33268   $as_echo_n "(cached) " >&6
33269 else
33270   cat >conftest.$ac_ext <<_ACEOF
33271 /* confdefs.h.  */
33272 _ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h.  */
33276 #include <sys/types.h>
33277 #include <time.h>
33278
33279 int
33280 main ()
33281 {
33282 struct tm tm;
33283                                      int *p = &tm.tm_sec;
33284                                      return !p;
33285   ;
33286   return 0;
33287 }
33288 _ACEOF
33289 rm -f conftest.$ac_objext
33290 if { (ac_try="$ac_compile"
33291 case "(($ac_try" in
33292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293   *) ac_try_echo=$ac_try;;
33294 esac
33295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33296 $as_echo "$ac_try_echo") >&5
33297   (eval "$ac_compile") 2>conftest.er1
33298   ac_status=$?
33299   grep -v '^ *+' conftest.er1 >conftest.err
33300   rm -f conftest.er1
33301   cat conftest.err >&5
33302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303   (exit $ac_status); } && {
33304          test -z "$ac_c_werror_flag" ||
33305          test ! -s conftest.err
33306        } && test -s conftest.$ac_objext; then
33307   ac_cv_struct_tm=time.h
33308 else
33309   $as_echo "$as_me: failed program was:" >&5
33310 sed 's/^/| /' conftest.$ac_ext >&5
33311
33312         ac_cv_struct_tm=sys/time.h
33313 fi
33314
33315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33316 fi
33317 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33318 $as_echo "$ac_cv_struct_tm" >&6; }
33319 if test $ac_cv_struct_tm = sys/time.h; then
33320
33321 cat >>confdefs.h <<\_ACEOF
33322 #define TM_IN_SYS_TIME 1
33323 _ACEOF
33324
33325 fi
33326
33327 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
33328 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
33329 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
33330   $as_echo_n "(cached) " >&6
33331 else
33332   cat >conftest.$ac_ext <<_ACEOF
33333 /* confdefs.h.  */
33334 _ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h.  */
33338 #include <sys/types.h>
33339 #include <$ac_cv_struct_tm>
33340
33341
33342 int
33343 main ()
33344 {
33345 static struct tm ac_aggr;
33346 if (ac_aggr.tm_zone)
33347 return 0;
33348   ;
33349   return 0;
33350 }
33351 _ACEOF
33352 rm -f conftest.$ac_objext
33353 if { (ac_try="$ac_compile"
33354 case "(($ac_try" in
33355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33356   *) ac_try_echo=$ac_try;;
33357 esac
33358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33359 $as_echo "$ac_try_echo") >&5
33360   (eval "$ac_compile") 2>conftest.er1
33361   ac_status=$?
33362   grep -v '^ *+' conftest.er1 >conftest.err
33363   rm -f conftest.er1
33364   cat conftest.err >&5
33365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } && {
33367          test -z "$ac_c_werror_flag" ||
33368          test ! -s conftest.err
33369        } && test -s conftest.$ac_objext; then
33370   ac_cv_member_struct_tm_tm_zone=yes
33371 else
33372   $as_echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33374
33375         cat >conftest.$ac_ext <<_ACEOF
33376 /* confdefs.h.  */
33377 _ACEOF
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h.  */
33381 #include <sys/types.h>
33382 #include <$ac_cv_struct_tm>
33383
33384
33385 int
33386 main ()
33387 {
33388 static struct tm ac_aggr;
33389 if (sizeof ac_aggr.tm_zone)
33390 return 0;
33391   ;
33392   return 0;
33393 }
33394 _ACEOF
33395 rm -f conftest.$ac_objext
33396 if { (ac_try="$ac_compile"
33397 case "(($ac_try" in
33398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399   *) ac_try_echo=$ac_try;;
33400 esac
33401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33402 $as_echo "$ac_try_echo") >&5
33403   (eval "$ac_compile") 2>conftest.er1
33404   ac_status=$?
33405   grep -v '^ *+' conftest.er1 >conftest.err
33406   rm -f conftest.er1
33407   cat conftest.err >&5
33408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409   (exit $ac_status); } && {
33410          test -z "$ac_c_werror_flag" ||
33411          test ! -s conftest.err
33412        } && test -s conftest.$ac_objext; then
33413   ac_cv_member_struct_tm_tm_zone=yes
33414 else
33415   $as_echo "$as_me: failed program was:" >&5
33416 sed 's/^/| /' conftest.$ac_ext >&5
33417
33418         ac_cv_member_struct_tm_tm_zone=no
33419 fi
33420
33421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33422 fi
33423
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425 fi
33426 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
33427 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
33428 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
33429
33430 cat >>confdefs.h <<_ACEOF
33431 #define HAVE_STRUCT_TM_TM_ZONE 1
33432 _ACEOF
33433
33434
33435 fi
33436
33437 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33438
33439 cat >>confdefs.h <<\_ACEOF
33440 #define HAVE_TM_ZONE 1
33441 _ACEOF
33442
33443 else
33444   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
33445 $as_echo_n "checking whether tzname is declared... " >&6; }
33446 if test "${ac_cv_have_decl_tzname+set}" = set; then
33447   $as_echo_n "(cached) " >&6
33448 else
33449   cat >conftest.$ac_ext <<_ACEOF
33450 /* confdefs.h.  */
33451 _ACEOF
33452 cat confdefs.h >>conftest.$ac_ext
33453 cat >>conftest.$ac_ext <<_ACEOF
33454 /* end confdefs.h.  */
33455 #include <time.h>
33456
33457 int
33458 main ()
33459 {
33460 #ifndef tzname
33461   (void) tzname;
33462 #endif
33463
33464   ;
33465   return 0;
33466 }
33467 _ACEOF
33468 rm -f conftest.$ac_objext
33469 if { (ac_try="$ac_compile"
33470 case "(($ac_try" in
33471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33472   *) ac_try_echo=$ac_try;;
33473 esac
33474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33475 $as_echo "$ac_try_echo") >&5
33476   (eval "$ac_compile") 2>conftest.er1
33477   ac_status=$?
33478   grep -v '^ *+' conftest.er1 >conftest.err
33479   rm -f conftest.er1
33480   cat conftest.err >&5
33481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482   (exit $ac_status); } && {
33483          test -z "$ac_c_werror_flag" ||
33484          test ! -s conftest.err
33485        } && test -s conftest.$ac_objext; then
33486   ac_cv_have_decl_tzname=yes
33487 else
33488   $as_echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33490
33491         ac_cv_have_decl_tzname=no
33492 fi
33493
33494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33495 fi
33496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
33497 $as_echo "$ac_cv_have_decl_tzname" >&6; }
33498 if test "x$ac_cv_have_decl_tzname" = x""yes; then
33499
33500 cat >>confdefs.h <<_ACEOF
33501 #define HAVE_DECL_TZNAME 1
33502 _ACEOF
33503
33504
33505 else
33506   cat >>confdefs.h <<_ACEOF
33507 #define HAVE_DECL_TZNAME 0
33508 _ACEOF
33509
33510
33511 fi
33512
33513
33514   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
33515 $as_echo_n "checking for tzname... " >&6; }
33516 if test "${ac_cv_var_tzname+set}" = set; then
33517   $as_echo_n "(cached) " >&6
33518 else
33519   cat >conftest.$ac_ext <<_ACEOF
33520 /* confdefs.h.  */
33521 _ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h.  */
33525 #include <time.h>
33526 #if !HAVE_DECL_TZNAME
33527 extern char *tzname[];
33528 #endif
33529
33530 int
33531 main ()
33532 {
33533 return tzname[0][0];
33534   ;
33535   return 0;
33536 }
33537 _ACEOF
33538 rm -f conftest.$ac_objext conftest$ac_exeext
33539 if { (ac_try="$ac_link"
33540 case "(($ac_try" in
33541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33542   *) ac_try_echo=$ac_try;;
33543 esac
33544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33545 $as_echo "$ac_try_echo") >&5
33546   (eval "$ac_link") 2>conftest.er1
33547   ac_status=$?
33548   grep -v '^ *+' conftest.er1 >conftest.err
33549   rm -f conftest.er1
33550   cat conftest.err >&5
33551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552   (exit $ac_status); } && {
33553          test -z "$ac_c_werror_flag" ||
33554          test ! -s conftest.err
33555        } && test -s conftest$ac_exeext && {
33556          test "$cross_compiling" = yes ||
33557          $as_test_x conftest$ac_exeext
33558        }; then
33559   ac_cv_var_tzname=yes
33560 else
33561   $as_echo "$as_me: failed program was:" >&5
33562 sed 's/^/| /' conftest.$ac_ext >&5
33563
33564         ac_cv_var_tzname=no
33565 fi
33566
33567 rm -rf conftest.dSYM
33568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33569       conftest$ac_exeext conftest.$ac_ext
33570 fi
33571 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
33572 $as_echo "$ac_cv_var_tzname" >&6; }
33573   if test $ac_cv_var_tzname = yes; then
33574
33575 cat >>confdefs.h <<\_ACEOF
33576 #define HAVE_TZNAME 1
33577 _ACEOF
33578
33579   fi
33580 fi
33581
33582
33583 { $as_echo "$as_me:$LINENO: checking for utime.h" >&5
33584 $as_echo_n "checking for utime.h... " >&6; }
33585 if test "${ba_cv_header_utime_h+set}" = set; then
33586   $as_echo_n "(cached) " >&6
33587 else
33588
33589        cat >conftest.$ac_ext <<_ACEOF
33590 /* confdefs.h.  */
33591 _ACEOF
33592 cat confdefs.h >>conftest.$ac_ext
33593 cat >>conftest.$ac_ext <<_ACEOF
33594 /* end confdefs.h.  */
33595
33596               #include <sys/types.h>
33597               #include <utime.h>
33598
33599 int
33600 main ()
33601 {
33602
33603               struct utimbuf foo
33604
33605   ;
33606   return 0;
33607 }
33608 _ACEOF
33609 rm -f conftest.$ac_objext
33610 if { (ac_try="$ac_compile"
33611 case "(($ac_try" in
33612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33613   *) ac_try_echo=$ac_try;;
33614 esac
33615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33616 $as_echo "$ac_try_echo") >&5
33617   (eval "$ac_compile") 2>conftest.er1
33618   ac_status=$?
33619   grep -v '^ *+' conftest.er1 >conftest.err
33620   rm -f conftest.er1
33621   cat conftest.err >&5
33622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623   (exit $ac_status); } && {
33624          test -z "$ac_c_werror_flag" ||
33625          test ! -s conftest.err
33626        } && test -s conftest.$ac_objext; then
33627
33628               ba_cv_header_utime_h=yes
33629
33630 else
33631   $as_echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33633
33634
33635               ba_cv_header_utime_h=no
33636
33637
33638 fi
33639
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33641
33642
33643 fi
33644 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
33645 $as_echo "$ba_cv_header_utime_h" >&6; }
33646 test $ba_cv_header_utime_h = yes &&
33647 cat >>confdefs.h <<\_ACEOF
33648 #define HAVE_UTIME_H 1
33649 _ACEOF
33650
33651
33652 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
33653 $as_echo_n "checking for socklen_t... " >&6; }
33654 if test "${ba_cv_header_socklen_t+set}" = set; then
33655   $as_echo_n "(cached) " >&6
33656 else
33657
33658        cat >conftest.$ac_ext <<_ACEOF
33659 /* confdefs.h.  */
33660 _ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h.  */
33664
33665               #include <sys/types.h>
33666               #include <sys/socket.h>
33667
33668 int
33669 main ()
33670 {
33671
33672               socklen_t x
33673
33674   ;
33675   return 0;
33676 }
33677 _ACEOF
33678 rm -f conftest.$ac_objext
33679 if { (ac_try="$ac_compile"
33680 case "(($ac_try" in
33681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33682   *) ac_try_echo=$ac_try;;
33683 esac
33684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33685 $as_echo "$ac_try_echo") >&5
33686   (eval "$ac_compile") 2>conftest.er1
33687   ac_status=$?
33688   grep -v '^ *+' conftest.er1 >conftest.err
33689   rm -f conftest.er1
33690   cat conftest.err >&5
33691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); } && {
33693          test -z "$ac_c_werror_flag" ||
33694          test ! -s conftest.err
33695        } && test -s conftest.$ac_objext; then
33696
33697              ba_cv_header_socklen_t=yes
33698
33699 else
33700   $as_echo "$as_me: failed program was:" >&5
33701 sed 's/^/| /' conftest.$ac_ext >&5
33702
33703
33704              ba_cv_header_socklen_t=no
33705
33706
33707 fi
33708
33709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33710
33711
33712 fi
33713 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
33714 $as_echo "$ba_cv_header_socklen_t" >&6; }
33715 test $ba_cv_header_socklen_t = yes &&
33716 cat >>confdefs.h <<\_ACEOF
33717 #define HAVE_SOCKLEN_T 1
33718 _ACEOF
33719
33720
33721 ac_ext=cpp
33722 ac_cpp='$CXXCPP $CPPFLAGS'
33723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33726
33727 { $as_echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
33728 $as_echo_n "checking for ioctl_req_t... " >&6; }
33729 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
33730   $as_echo_n "(cached) " >&6
33731 else
33732
33733        cat >conftest.$ac_ext <<_ACEOF
33734 /* confdefs.h.  */
33735 _ACEOF
33736 cat confdefs.h >>conftest.$ac_ext
33737 cat >>conftest.$ac_ext <<_ACEOF
33738 /* end confdefs.h.  */
33739
33740               #include <unistd.h>
33741               #include <sys/types.h>
33742               #include <sys/ioctl.h>
33743
33744 int
33745 main ()
33746 {
33747
33748               int (*d_ioctl)(int fd, unsigned long int request, ...);
33749               d_ioctl = ::ioctl;
33750
33751   ;
33752   return 0;
33753 }
33754 _ACEOF
33755 rm -f conftest.$ac_objext
33756 if { (ac_try="$ac_compile"
33757 case "(($ac_try" in
33758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33759   *) ac_try_echo=$ac_try;;
33760 esac
33761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33762 $as_echo "$ac_try_echo") >&5
33763   (eval "$ac_compile") 2>conftest.er1
33764   ac_status=$?
33765   grep -v '^ *+' conftest.er1 >conftest.err
33766   rm -f conftest.er1
33767   cat conftest.err >&5
33768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769   (exit $ac_status); } && {
33770          test -z "$ac_cxx_werror_flag" ||
33771          test ! -s conftest.err
33772        } && test -s conftest.$ac_objext; then
33773
33774              ba_cv_header_ioctl_req_t=yes
33775
33776 else
33777   $as_echo "$as_me: failed program was:" >&5
33778 sed 's/^/| /' conftest.$ac_ext >&5
33779
33780
33781              ba_cv_header_ioctl_req_t=no
33782
33783
33784 fi
33785
33786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33787
33788
33789 fi
33790 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
33791 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
33792 test $ba_cv_header_ioctl_req_t = yes &&
33793 cat >>confdefs.h <<\_ACEOF
33794 #define HAVE_IOCTL_ULINT_REQUEST 1
33795 _ACEOF
33796
33797
33798 ac_ext=c
33799 ac_cpp='$CPP $CPPFLAGS'
33800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33803
33804
33805 ac_ext=cpp
33806 ac_cpp='$CXXCPP $CPPFLAGS'
33807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33810
33811 { $as_echo "$as_me:$LINENO: checking for typeof" >&5
33812 $as_echo_n "checking for typeof... " >&6; }
33813 if test "${ba_cv_have_typeof+set}" = set; then
33814   $as_echo_n "(cached) " >&6
33815 else
33816
33817        if test "$cross_compiling" = yes; then
33818
33819               ba_cv_have_typeof=no
33820
33821
33822 else
33823   cat >conftest.$ac_ext <<_ACEOF
33824 /* confdefs.h.  */
33825 _ACEOF
33826 cat confdefs.h >>conftest.$ac_ext
33827 cat >>conftest.$ac_ext <<_ACEOF
33828 /* end confdefs.h.  */
33829
33830               main(){char *a = 0; a = (typeof a)a;}
33831
33832 _ACEOF
33833 rm -f conftest$ac_exeext
33834 if { (ac_try="$ac_link"
33835 case "(($ac_try" in
33836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33837   *) ac_try_echo=$ac_try;;
33838 esac
33839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33840 $as_echo "$ac_try_echo") >&5
33841   (eval "$ac_link") 2>&5
33842   ac_status=$?
33843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33845   { (case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33850 $as_echo "$ac_try_echo") >&5
33851   (eval "$ac_try") 2>&5
33852   ac_status=$?
33853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854   (exit $ac_status); }; }; then
33855
33856               ba_cv_have_typeof=yes
33857
33858 else
33859   $as_echo "$as_me: program exited with status $ac_status" >&5
33860 $as_echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33862
33863 ( exit $ac_status )
33864
33865               ba_cv_have_typeof=no
33866
33867 fi
33868 rm -rf conftest.dSYM
33869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33870 fi
33871
33872
33873
33874
33875 fi
33876 { $as_echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33877 $as_echo "$ba_cv_have_typeof" >&6; }
33878 test $ba_cv_have_typeof = yes &&
33879 cat >>confdefs.h <<\_ACEOF
33880 #define HAVE_TYPEOF 1
33881 _ACEOF
33882
33883 ac_ext=c
33884 ac_cpp='$CPP $CPPFLAGS'
33885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33888
33889
33890 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33891 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33892 if test "${ac_cv_c_const+set}" = set; then
33893   $as_echo_n "(cached) " >&6
33894 else
33895   cat >conftest.$ac_ext <<_ACEOF
33896 /* confdefs.h.  */
33897 _ACEOF
33898 cat confdefs.h >>conftest.$ac_ext
33899 cat >>conftest.$ac_ext <<_ACEOF
33900 /* end confdefs.h.  */
33901
33902 int
33903 main ()
33904 {
33905 /* FIXME: Include the comments suggested by Paul. */
33906 #ifndef __cplusplus
33907   /* Ultrix mips cc rejects this.  */
33908   typedef int charset[2];
33909   const charset cs;
33910   /* SunOS 4.1.1 cc rejects this.  */
33911   char const *const *pcpcc;
33912   char **ppc;
33913   /* NEC SVR4.0.2 mips cc rejects this.  */
33914   struct point {int x, y;};
33915   static struct point const zero = {0,0};
33916   /* AIX XL C 1.02.0.0 rejects this.
33917      It does not let you subtract one const X* pointer from another in
33918      an arm of an if-expression whose if-part is not a constant
33919      expression */
33920   const char *g = "string";
33921   pcpcc = &g + (g ? g-g : 0);
33922   /* HPUX 7.0 cc rejects these. */
33923   ++pcpcc;
33924   ppc = (char**) pcpcc;
33925   pcpcc = (char const *const *) ppc;
33926   { /* SCO 3.2v4 cc rejects this.  */
33927     char *t;
33928     char const *s = 0 ? (char *) 0 : (char const *) 0;
33929
33930     *t++ = 0;
33931     if (s) return 0;
33932   }
33933   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33934     int x[] = {25, 17};
33935     const int *foo = &x[0];
33936     ++foo;
33937   }
33938   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33939     typedef const int *iptr;
33940     iptr p = 0;
33941     ++p;
33942   }
33943   { /* AIX XL C 1.02.0.0 rejects this saying
33944        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33945     struct s { int j; const int *ap[3]; };
33946     struct s *b; b->j = 5;
33947   }
33948   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33949     const int foo = 10;
33950     if (!foo) return 0;
33951   }
33952   return !cs[0] && !zero.x;
33953 #endif
33954
33955   ;
33956   return 0;
33957 }
33958 _ACEOF
33959 rm -f conftest.$ac_objext
33960 if { (ac_try="$ac_compile"
33961 case "(($ac_try" in
33962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33963   *) ac_try_echo=$ac_try;;
33964 esac
33965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33966 $as_echo "$ac_try_echo") >&5
33967   (eval "$ac_compile") 2>conftest.er1
33968   ac_status=$?
33969   grep -v '^ *+' conftest.er1 >conftest.err
33970   rm -f conftest.er1
33971   cat conftest.err >&5
33972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973   (exit $ac_status); } && {
33974          test -z "$ac_c_werror_flag" ||
33975          test ! -s conftest.err
33976        } && test -s conftest.$ac_objext; then
33977   ac_cv_c_const=yes
33978 else
33979   $as_echo "$as_me: failed program was:" >&5
33980 sed 's/^/| /' conftest.$ac_ext >&5
33981
33982         ac_cv_c_const=no
33983 fi
33984
33985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33986 fi
33987 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33988 $as_echo "$ac_cv_c_const" >&6; }
33989 if test $ac_cv_c_const = no; then
33990
33991 cat >>confdefs.h <<\_ACEOF
33992 #define const /**/
33993 _ACEOF
33994
33995 fi
33996
33997
33998 { $as_echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33999 $as_echo_n "checking how to get filesystem type... " >&6; }
34000 fstype=no
34001 # The order of these tests is important.
34002 cat >conftest.$ac_ext <<_ACEOF
34003 /* confdefs.h.  */
34004 _ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h.  */
34008
34009        #include <sys/statvfs.h>
34010        #include <sys/fstyp.h>
34011
34012 _ACEOF
34013 if { (ac_try="$ac_cpp conftest.$ac_ext"
34014 case "(($ac_try" in
34015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016   *) ac_try_echo=$ac_try;;
34017 esac
34018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34019 $as_echo "$ac_try_echo") >&5
34020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34021   ac_status=$?
34022   grep -v '^ *+' conftest.er1 >conftest.err
34023   rm -f conftest.er1
34024   cat conftest.err >&5
34025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); } >/dev/null && {
34027          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34028          test ! -s conftest.err
34029        }; then
34030   cat >>confdefs.h <<\_ACEOF
34031 #define FSTYPE_STATVFS 1
34032 _ACEOF
34033  fstype=SVR4
34034
34035 else
34036   $as_echo "$as_me: failed program was:" >&5
34037 sed 's/^/| /' conftest.$ac_ext >&5
34038
34039
34040 fi
34041
34042 rm -f conftest.err conftest.$ac_ext
34043 if test $fstype = no; then
34044    cat >conftest.$ac_ext <<_ACEOF
34045 /* confdefs.h.  */
34046 _ACEOF
34047 cat confdefs.h >>conftest.$ac_ext
34048 cat >>conftest.$ac_ext <<_ACEOF
34049 /* end confdefs.h.  */
34050
34051           #include <sys/statfs.h>
34052           #include <sys/fstyp.h>
34053
34054 _ACEOF
34055 if { (ac_try="$ac_cpp conftest.$ac_ext"
34056 case "(($ac_try" in
34057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34058   *) ac_try_echo=$ac_try;;
34059 esac
34060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34061 $as_echo "$ac_try_echo") >&5
34062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34063   ac_status=$?
34064   grep -v '^ *+' conftest.er1 >conftest.err
34065   rm -f conftest.er1
34066   cat conftest.err >&5
34067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); } >/dev/null && {
34069          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34070          test ! -s conftest.err
34071        }; then
34072   cat >>confdefs.h <<\_ACEOF
34073 #define FSTYPE_USG_STATFS 1
34074 _ACEOF
34075  fstype=SVR3
34076
34077 else
34078   $as_echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34080
34081
34082 fi
34083
34084 rm -f conftest.err conftest.$ac_ext
34085 fi
34086 if test $fstype = no; then
34087    cat >conftest.$ac_ext <<_ACEOF
34088 /* confdefs.h.  */
34089 _ACEOF
34090 cat confdefs.h >>conftest.$ac_ext
34091 cat >>conftest.$ac_ext <<_ACEOF
34092 /* end confdefs.h.  */
34093
34094           #include <sys/statfs.h>
34095           #include <sys/vmount.h>
34096
34097 _ACEOF
34098 if { (ac_try="$ac_cpp conftest.$ac_ext"
34099 case "(($ac_try" in
34100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34101   *) ac_try_echo=$ac_try;;
34102 esac
34103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34104 $as_echo "$ac_try_echo") >&5
34105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34106   ac_status=$?
34107   grep -v '^ *+' conftest.er1 >conftest.err
34108   rm -f conftest.er1
34109   cat conftest.err >&5
34110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111   (exit $ac_status); } >/dev/null && {
34112          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34113          test ! -s conftest.err
34114        }; then
34115   cat >>confdefs.h <<\_ACEOF
34116 #define FSTYPE_AIX_STATFS 1
34117 _ACEOF
34118  fstype=AIX
34119
34120 else
34121   $as_echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34123
34124
34125 fi
34126
34127 rm -f conftest.err conftest.$ac_ext
34128 fi
34129 if test $fstype = no; then
34130    cat >conftest.$ac_ext <<_ACEOF
34131 /* confdefs.h.  */
34132 _ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h.  */
34136
34137           #include <mntent.h>
34138
34139 _ACEOF
34140 if { (ac_try="$ac_cpp conftest.$ac_ext"
34141 case "(($ac_try" in
34142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143   *) ac_try_echo=$ac_try;;
34144 esac
34145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34146 $as_echo "$ac_try_echo") >&5
34147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34148   ac_status=$?
34149   grep -v '^ *+' conftest.er1 >conftest.err
34150   rm -f conftest.er1
34151   cat conftest.err >&5
34152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153   (exit $ac_status); } >/dev/null && {
34154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34155          test ! -s conftest.err
34156        }; then
34157   cat >>confdefs.h <<\_ACEOF
34158 #define FSTYPE_MNTENT 1
34159 _ACEOF
34160  fstype=4.3BSD
34161
34162 else
34163   $as_echo "$as_me: failed program was:" >&5
34164 sed 's/^/| /' conftest.$ac_ext >&5
34165
34166
34167 fi
34168
34169 rm -f conftest.err conftest.$ac_ext
34170 fi
34171 if test $fstype = no; then
34172    cat >conftest.$ac_ext <<_ACEOF
34173 /* confdefs.h.  */
34174 _ACEOF
34175 cat confdefs.h >>conftest.$ac_ext
34176 cat >>conftest.$ac_ext <<_ACEOF
34177 /* end confdefs.h.  */
34178 #include <sys/mount.h>
34179
34180 _ACEOF
34181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34182   $EGREP "f_type;" >/dev/null 2>&1; then
34183   cat >>confdefs.h <<\_ACEOF
34184 #define FSTYPE_STATFS 1
34185 _ACEOF
34186  fstype=4.4BSD/OSF1
34187 fi
34188 rm -f conftest*
34189
34190 fi
34191 if test $fstype = no; then
34192    cat >conftest.$ac_ext <<_ACEOF
34193 /* confdefs.h.  */
34194 _ACEOF
34195 cat confdefs.h >>conftest.$ac_ext
34196 cat >>conftest.$ac_ext <<_ACEOF
34197 /* end confdefs.h.  */
34198
34199           #include <sys/mount.h>
34200           #include <sys/fs_types.h>
34201
34202 _ACEOF
34203 if { (ac_try="$ac_cpp conftest.$ac_ext"
34204 case "(($ac_try" in
34205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34206   *) ac_try_echo=$ac_try;;
34207 esac
34208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34209 $as_echo "$ac_try_echo") >&5
34210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34211   ac_status=$?
34212   grep -v '^ *+' conftest.er1 >conftest.err
34213   rm -f conftest.er1
34214   cat conftest.err >&5
34215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); } >/dev/null && {
34217          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34218          test ! -s conftest.err
34219        }; then
34220   cat >>confdefs.h <<\_ACEOF
34221 #define FSTYPE_GETMNT 1
34222 _ACEOF
34223  fstype=Ultrix
34224
34225 else
34226   $as_echo "$as_me: failed program was:" >&5
34227 sed 's/^/| /' conftest.$ac_ext >&5
34228
34229
34230 fi
34231
34232 rm -f conftest.err conftest.$ac_ext
34233 fi
34234 { $as_echo "$as_me:$LINENO: result: $fstype" >&5
34235 $as_echo "$fstype" >&6; }
34236
34237 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34238   { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34239 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34240 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34241   $as_echo_n "(cached) " >&6
34242 fi
34243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34244 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34245 else
34246   # Is the header compilable?
34247 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
34248 $as_echo_n "checking sys/statvfs.h usability... " >&6; }
34249 cat >conftest.$ac_ext <<_ACEOF
34250 /* confdefs.h.  */
34251 _ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h.  */
34255 $ac_includes_default
34256 #include <sys/statvfs.h>
34257 _ACEOF
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262   *) ac_try_echo=$ac_try;;
34263 esac
34264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34265 $as_echo "$ac_try_echo") >&5
34266   (eval "$ac_compile") 2>conftest.er1
34267   ac_status=$?
34268   grep -v '^ *+' conftest.er1 >conftest.err
34269   rm -f conftest.er1
34270   cat conftest.err >&5
34271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272   (exit $ac_status); } && {
34273          test -z "$ac_c_werror_flag" ||
34274          test ! -s conftest.err
34275        } && test -s conftest.$ac_objext; then
34276   ac_header_compiler=yes
34277 else
34278   $as_echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34280
34281         ac_header_compiler=no
34282 fi
34283
34284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34286 $as_echo "$ac_header_compiler" >&6; }
34287
34288 # Is the header present?
34289 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
34290 $as_echo_n "checking sys/statvfs.h presence... " >&6; }
34291 cat >conftest.$ac_ext <<_ACEOF
34292 /* confdefs.h.  */
34293 _ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h.  */
34297 #include <sys/statvfs.h>
34298 _ACEOF
34299 if { (ac_try="$ac_cpp conftest.$ac_ext"
34300 case "(($ac_try" in
34301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302   *) ac_try_echo=$ac_try;;
34303 esac
34304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34305 $as_echo "$ac_try_echo") >&5
34306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34307   ac_status=$?
34308   grep -v '^ *+' conftest.er1 >conftest.err
34309   rm -f conftest.er1
34310   cat conftest.err >&5
34311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312   (exit $ac_status); } >/dev/null && {
34313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34314          test ! -s conftest.err
34315        }; then
34316   ac_header_preproc=yes
34317 else
34318   $as_echo "$as_me: failed program was:" >&5
34319 sed 's/^/| /' conftest.$ac_ext >&5
34320
34321   ac_header_preproc=no
34322 fi
34323
34324 rm -f conftest.err conftest.$ac_ext
34325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34326 $as_echo "$ac_header_preproc" >&6; }
34327
34328 # So?  What about this header?
34329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34330   yes:no: )
34331     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34332 $as_echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34333     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
34334 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
34335     ac_header_preproc=yes
34336     ;;
34337   no:yes:* )
34338     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
34339 $as_echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
34340     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
34341 $as_echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
34342     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
34343 $as_echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
34344     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
34345 $as_echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34346     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
34347 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
34348     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
34349 $as_echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
34350
34351     ;;
34352 esac
34353 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34354 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34355 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34356   $as_echo_n "(cached) " >&6
34357 else
34358   ac_cv_header_sys_statvfs_h=$ac_header_preproc
34359 fi
34360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34361 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34362
34363 fi
34364 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then
34365
34366 cat >>confdefs.h <<\_ACEOF
34367 #define HAVE_SYS_STATVFS_H 1
34368 _ACEOF
34369
34370 fi
34371
34372
34373
34374 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34375 $as_echo_n "checking return type of signal handlers... " >&6; }
34376 if test "${ac_cv_type_signal+set}" = set; then
34377   $as_echo_n "(cached) " >&6
34378 else
34379   cat >conftest.$ac_ext <<_ACEOF
34380 /* confdefs.h.  */
34381 _ACEOF
34382 cat confdefs.h >>conftest.$ac_ext
34383 cat >>conftest.$ac_ext <<_ACEOF
34384 /* end confdefs.h.  */
34385 #include <sys/types.h>
34386 #include <signal.h>
34387
34388 int
34389 main ()
34390 {
34391 return *(signal (0, 0)) (0) == 1;
34392   ;
34393   return 0;
34394 }
34395 _ACEOF
34396 rm -f conftest.$ac_objext
34397 if { (ac_try="$ac_compile"
34398 case "(($ac_try" in
34399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34400   *) ac_try_echo=$ac_try;;
34401 esac
34402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34403 $as_echo "$ac_try_echo") >&5
34404   (eval "$ac_compile") 2>conftest.er1
34405   ac_status=$?
34406   grep -v '^ *+' conftest.er1 >conftest.err
34407   rm -f conftest.er1
34408   cat conftest.err >&5
34409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); } && {
34411          test -z "$ac_c_werror_flag" ||
34412          test ! -s conftest.err
34413        } && test -s conftest.$ac_objext; then
34414   ac_cv_type_signal=int
34415 else
34416   $as_echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.$ac_ext >&5
34418
34419         ac_cv_type_signal=void
34420 fi
34421
34422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34423 fi
34424 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34425 $as_echo "$ac_cv_type_signal" >&6; }
34426
34427 cat >>confdefs.h <<_ACEOF
34428 #define RETSIGTYPE $ac_cv_type_signal
34429 _ACEOF
34430
34431
34432
34433   { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
34434 $as_echo_n "checking for type of signal functions... " >&6; }
34435   if test "${bash_cv_signal_vintage+set}" = set; then
34436   $as_echo_n "(cached) " >&6
34437 else
34438
34439     cat >conftest.$ac_ext <<_ACEOF
34440 /* confdefs.h.  */
34441 _ACEOF
34442 cat confdefs.h >>conftest.$ac_ext
34443 cat >>conftest.$ac_ext <<_ACEOF
34444 /* end confdefs.h.  */
34445 #include <signal.h>
34446 int
34447 main ()
34448 {
34449
34450       sigset_t ss;
34451       struct sigaction sa;
34452       sigemptyset(&ss); sigsuspend(&ss);
34453       sigaction(SIGINT, &sa, (struct sigaction *) 0);
34454       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
34455
34456   ;
34457   return 0;
34458 }
34459 _ACEOF
34460 rm -f conftest.$ac_objext conftest$ac_exeext
34461 if { (ac_try="$ac_link"
34462 case "(($ac_try" in
34463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464   *) ac_try_echo=$ac_try;;
34465 esac
34466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34467 $as_echo "$ac_try_echo") >&5
34468   (eval "$ac_link") 2>conftest.er1
34469   ac_status=$?
34470   grep -v '^ *+' conftest.er1 >conftest.err
34471   rm -f conftest.er1
34472   cat conftest.err >&5
34473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474   (exit $ac_status); } && {
34475          test -z "$ac_c_werror_flag" ||
34476          test ! -s conftest.err
34477        } && test -s conftest$ac_exeext && {
34478          test "$cross_compiling" = yes ||
34479          $as_test_x conftest$ac_exeext
34480        }; then
34481   bash_cv_signal_vintage="posix"
34482 else
34483   $as_echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34485
34486
34487       cat >conftest.$ac_ext <<_ACEOF
34488 /* confdefs.h.  */
34489 _ACEOF
34490 cat confdefs.h >>conftest.$ac_ext
34491 cat >>conftest.$ac_ext <<_ACEOF
34492 /* end confdefs.h.  */
34493 #include <signal.h>
34494 int
34495 main ()
34496 {
34497
34498           int mask = sigmask(SIGINT);
34499           sigsetmask(mask); sigblock(mask); sigpause(mask);
34500
34501   ;
34502   return 0;
34503 }
34504 _ACEOF
34505 rm -f conftest.$ac_objext conftest$ac_exeext
34506 if { (ac_try="$ac_link"
34507 case "(($ac_try" in
34508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509   *) ac_try_echo=$ac_try;;
34510 esac
34511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34512 $as_echo "$ac_try_echo") >&5
34513   (eval "$ac_link") 2>conftest.er1
34514   ac_status=$?
34515   grep -v '^ *+' conftest.er1 >conftest.err
34516   rm -f conftest.er1
34517   cat conftest.err >&5
34518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519   (exit $ac_status); } && {
34520          test -z "$ac_c_werror_flag" ||
34521          test ! -s conftest.err
34522        } && test -s conftest$ac_exeext && {
34523          test "$cross_compiling" = yes ||
34524          $as_test_x conftest$ac_exeext
34525        }; then
34526   bash_cv_signal_vintage="4.2bsd"
34527 else
34528   $as_echo "$as_me: failed program was:" >&5
34529 sed 's/^/| /' conftest.$ac_ext >&5
34530
34531
34532         cat >conftest.$ac_ext <<_ACEOF
34533 /* confdefs.h.  */
34534 _ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h.  */
34538
34539           #include <signal.h>
34540           RETSIGTYPE foo() { }
34541 int
34542 main ()
34543 {
34544
34545                   int mask = sigmask(SIGINT);
34546                   sigset(SIGINT, foo); sigrelse(SIGINT);
34547                   sighold(SIGINT); sigpause(SIGINT);
34548
34549   ;
34550   return 0;
34551 }
34552 _ACEOF
34553 rm -f conftest.$ac_objext conftest$ac_exeext
34554 if { (ac_try="$ac_link"
34555 case "(($ac_try" in
34556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557   *) ac_try_echo=$ac_try;;
34558 esac
34559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34560 $as_echo "$ac_try_echo") >&5
34561   (eval "$ac_link") 2>conftest.er1
34562   ac_status=$?
34563   grep -v '^ *+' conftest.er1 >conftest.err
34564   rm -f conftest.er1
34565   cat conftest.err >&5
34566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567   (exit $ac_status); } && {
34568          test -z "$ac_c_werror_flag" ||
34569          test ! -s conftest.err
34570        } && test -s conftest$ac_exeext && {
34571          test "$cross_compiling" = yes ||
34572          $as_test_x conftest$ac_exeext
34573        }; then
34574   bash_cv_signal_vintage="svr3"
34575 else
34576   $as_echo "$as_me: failed program was:" >&5
34577 sed 's/^/| /' conftest.$ac_ext >&5
34578
34579         bash_cv_signal_vintage="v7"
34580
34581 fi
34582
34583 rm -rf conftest.dSYM
34584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34585       conftest$ac_exeext conftest.$ac_ext
34586
34587 fi
34588
34589 rm -rf conftest.dSYM
34590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34591       conftest$ac_exeext conftest.$ac_ext
34592
34593 fi
34594
34595 rm -rf conftest.dSYM
34596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34597       conftest$ac_exeext conftest.$ac_ext
34598
34599 fi
34600
34601   { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
34602 $as_echo "$bash_cv_signal_vintage" >&6; }
34603   if test "$bash_cv_signal_vintage" = "posix"; then
34604     cat >>confdefs.h <<\_ACEOF
34605 #define HAVE_POSIX_SIGNALS 1
34606 _ACEOF
34607
34608   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
34609     cat >>confdefs.h <<\_ACEOF
34610 #define HAVE_BSD_SIGNALS 1
34611 _ACEOF
34612
34613   elif test "$bash_cv_signal_vintage" = "svr3"; then
34614     cat >>confdefs.h <<\_ACEOF
34615 #define HAVE_USG_SIGHOLD 1
34616 _ACEOF
34617
34618   fi
34619
34620 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
34621 $as_echo_n "checking for mode_t... " >&6; }
34622 if test "${ac_cv_type_mode_t+set}" = set; then
34623   $as_echo_n "(cached) " >&6
34624 else
34625   ac_cv_type_mode_t=no
34626 cat >conftest.$ac_ext <<_ACEOF
34627 /* confdefs.h.  */
34628 _ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h.  */
34632 $ac_includes_default
34633 int
34634 main ()
34635 {
34636 if (sizeof (mode_t))
34637        return 0;
34638   ;
34639   return 0;
34640 }
34641 _ACEOF
34642 rm -f conftest.$ac_objext
34643 if { (ac_try="$ac_compile"
34644 case "(($ac_try" in
34645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34646   *) ac_try_echo=$ac_try;;
34647 esac
34648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34649 $as_echo "$ac_try_echo") >&5
34650   (eval "$ac_compile") 2>conftest.er1
34651   ac_status=$?
34652   grep -v '^ *+' conftest.er1 >conftest.err
34653   rm -f conftest.er1
34654   cat conftest.err >&5
34655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); } && {
34657          test -z "$ac_c_werror_flag" ||
34658          test ! -s conftest.err
34659        } && test -s conftest.$ac_objext; then
34660   cat >conftest.$ac_ext <<_ACEOF
34661 /* confdefs.h.  */
34662 _ACEOF
34663 cat confdefs.h >>conftest.$ac_ext
34664 cat >>conftest.$ac_ext <<_ACEOF
34665 /* end confdefs.h.  */
34666 $ac_includes_default
34667 int
34668 main ()
34669 {
34670 if (sizeof ((mode_t)))
34671           return 0;
34672   ;
34673   return 0;
34674 }
34675 _ACEOF
34676 rm -f conftest.$ac_objext
34677 if { (ac_try="$ac_compile"
34678 case "(($ac_try" in
34679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34680   *) ac_try_echo=$ac_try;;
34681 esac
34682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34683 $as_echo "$ac_try_echo") >&5
34684   (eval "$ac_compile") 2>conftest.er1
34685   ac_status=$?
34686   grep -v '^ *+' conftest.er1 >conftest.err
34687   rm -f conftest.er1
34688   cat conftest.err >&5
34689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690   (exit $ac_status); } && {
34691          test -z "$ac_c_werror_flag" ||
34692          test ! -s conftest.err
34693        } && test -s conftest.$ac_objext; then
34694   :
34695 else
34696   $as_echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34698
34699         ac_cv_type_mode_t=yes
34700 fi
34701
34702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34703 else
34704   $as_echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34706
34707
34708 fi
34709
34710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34711 fi
34712 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34713 $as_echo "$ac_cv_type_mode_t" >&6; }
34714 if test "x$ac_cv_type_mode_t" = x""yes; then
34715   :
34716 else
34717
34718 cat >>confdefs.h <<_ACEOF
34719 #define mode_t int
34720 _ACEOF
34721
34722 fi
34723
34724 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34725 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
34726 if test "${ac_cv_type_uid_t+set}" = set; then
34727   $as_echo_n "(cached) " >&6
34728 else
34729   cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h.  */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h.  */
34735 #include <sys/types.h>
34736
34737 _ACEOF
34738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34739   $EGREP "uid_t" >/dev/null 2>&1; then
34740   ac_cv_type_uid_t=yes
34741 else
34742   ac_cv_type_uid_t=no
34743 fi
34744 rm -f conftest*
34745
34746 fi
34747 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34748 $as_echo "$ac_cv_type_uid_t" >&6; }
34749 if test $ac_cv_type_uid_t = no; then
34750
34751 cat >>confdefs.h <<\_ACEOF
34752 #define uid_t int
34753 _ACEOF
34754
34755
34756 cat >>confdefs.h <<\_ACEOF
34757 #define gid_t int
34758 _ACEOF
34759
34760 fi
34761
34762 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
34763 $as_echo_n "checking for size_t... " >&6; }
34764 if test "${ac_cv_type_size_t+set}" = set; then
34765   $as_echo_n "(cached) " >&6
34766 else
34767   ac_cv_type_size_t=no
34768 cat >conftest.$ac_ext <<_ACEOF
34769 /* confdefs.h.  */
34770 _ACEOF
34771 cat confdefs.h >>conftest.$ac_ext
34772 cat >>conftest.$ac_ext <<_ACEOF
34773 /* end confdefs.h.  */
34774 $ac_includes_default
34775 int
34776 main ()
34777 {
34778 if (sizeof (size_t))
34779        return 0;
34780   ;
34781   return 0;
34782 }
34783 _ACEOF
34784 rm -f conftest.$ac_objext
34785 if { (ac_try="$ac_compile"
34786 case "(($ac_try" in
34787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788   *) ac_try_echo=$ac_try;;
34789 esac
34790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34791 $as_echo "$ac_try_echo") >&5
34792   (eval "$ac_compile") 2>conftest.er1
34793   ac_status=$?
34794   grep -v '^ *+' conftest.er1 >conftest.err
34795   rm -f conftest.er1
34796   cat conftest.err >&5
34797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798   (exit $ac_status); } && {
34799          test -z "$ac_c_werror_flag" ||
34800          test ! -s conftest.err
34801        } && test -s conftest.$ac_objext; then
34802   cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808 $ac_includes_default
34809 int
34810 main ()
34811 {
34812 if (sizeof ((size_t)))
34813           return 0;
34814   ;
34815   return 0;
34816 }
34817 _ACEOF
34818 rm -f conftest.$ac_objext
34819 if { (ac_try="$ac_compile"
34820 case "(($ac_try" in
34821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34822   *) ac_try_echo=$ac_try;;
34823 esac
34824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34825 $as_echo "$ac_try_echo") >&5
34826   (eval "$ac_compile") 2>conftest.er1
34827   ac_status=$?
34828   grep -v '^ *+' conftest.er1 >conftest.err
34829   rm -f conftest.er1
34830   cat conftest.err >&5
34831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); } && {
34833          test -z "$ac_c_werror_flag" ||
34834          test ! -s conftest.err
34835        } && test -s conftest.$ac_objext; then
34836   :
34837 else
34838   $as_echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34840
34841         ac_cv_type_size_t=yes
34842 fi
34843
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34845 else
34846   $as_echo "$as_me: failed program was:" >&5
34847 sed 's/^/| /' conftest.$ac_ext >&5
34848
34849
34850 fi
34851
34852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34853 fi
34854 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34855 $as_echo "$ac_cv_type_size_t" >&6; }
34856 if test "x$ac_cv_type_size_t" = x""yes; then
34857   :
34858 else
34859
34860 cat >>confdefs.h <<_ACEOF
34861 #define size_t unsigned int
34862 _ACEOF
34863
34864 fi
34865
34866 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
34867 $as_echo_n "checking for pid_t... " >&6; }
34868 if test "${ac_cv_type_pid_t+set}" = set; then
34869   $as_echo_n "(cached) " >&6
34870 else
34871   ac_cv_type_pid_t=no
34872 cat >conftest.$ac_ext <<_ACEOF
34873 /* confdefs.h.  */
34874 _ACEOF
34875 cat confdefs.h >>conftest.$ac_ext
34876 cat >>conftest.$ac_ext <<_ACEOF
34877 /* end confdefs.h.  */
34878 $ac_includes_default
34879 int
34880 main ()
34881 {
34882 if (sizeof (pid_t))
34883        return 0;
34884   ;
34885   return 0;
34886 }
34887 _ACEOF
34888 rm -f conftest.$ac_objext
34889 if { (ac_try="$ac_compile"
34890 case "(($ac_try" in
34891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34892   *) ac_try_echo=$ac_try;;
34893 esac
34894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34895 $as_echo "$ac_try_echo") >&5
34896   (eval "$ac_compile") 2>conftest.er1
34897   ac_status=$?
34898   grep -v '^ *+' conftest.er1 >conftest.err
34899   rm -f conftest.er1
34900   cat conftest.err >&5
34901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); } && {
34903          test -z "$ac_c_werror_flag" ||
34904          test ! -s conftest.err
34905        } && test -s conftest.$ac_objext; then
34906   cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h.  */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h.  */
34912 $ac_includes_default
34913 int
34914 main ()
34915 {
34916 if (sizeof ((pid_t)))
34917           return 0;
34918   ;
34919   return 0;
34920 }
34921 _ACEOF
34922 rm -f conftest.$ac_objext
34923 if { (ac_try="$ac_compile"
34924 case "(($ac_try" in
34925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34926   *) ac_try_echo=$ac_try;;
34927 esac
34928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34929 $as_echo "$ac_try_echo") >&5
34930   (eval "$ac_compile") 2>conftest.er1
34931   ac_status=$?
34932   grep -v '^ *+' conftest.er1 >conftest.err
34933   rm -f conftest.er1
34934   cat conftest.err >&5
34935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936   (exit $ac_status); } && {
34937          test -z "$ac_c_werror_flag" ||
34938          test ! -s conftest.err
34939        } && test -s conftest.$ac_objext; then
34940   :
34941 else
34942   $as_echo "$as_me: failed program was:" >&5
34943 sed 's/^/| /' conftest.$ac_ext >&5
34944
34945         ac_cv_type_pid_t=yes
34946 fi
34947
34948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34949 else
34950   $as_echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34952
34953
34954 fi
34955
34956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34957 fi
34958 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34959 $as_echo "$ac_cv_type_pid_t" >&6; }
34960 if test "x$ac_cv_type_pid_t" = x""yes; then
34961   :
34962 else
34963
34964 cat >>confdefs.h <<_ACEOF
34965 #define pid_t int
34966 _ACEOF
34967
34968 fi
34969
34970 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
34971 $as_echo_n "checking for off_t... " >&6; }
34972 if test "${ac_cv_type_off_t+set}" = set; then
34973   $as_echo_n "(cached) " >&6
34974 else
34975   ac_cv_type_off_t=no
34976 cat >conftest.$ac_ext <<_ACEOF
34977 /* confdefs.h.  */
34978 _ACEOF
34979 cat confdefs.h >>conftest.$ac_ext
34980 cat >>conftest.$ac_ext <<_ACEOF
34981 /* end confdefs.h.  */
34982 $ac_includes_default
34983 int
34984 main ()
34985 {
34986 if (sizeof (off_t))
34987        return 0;
34988   ;
34989   return 0;
34990 }
34991 _ACEOF
34992 rm -f conftest.$ac_objext
34993 if { (ac_try="$ac_compile"
34994 case "(($ac_try" in
34995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34996   *) ac_try_echo=$ac_try;;
34997 esac
34998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34999 $as_echo "$ac_try_echo") >&5
35000   (eval "$ac_compile") 2>conftest.er1
35001   ac_status=$?
35002   grep -v '^ *+' conftest.er1 >conftest.err
35003   rm -f conftest.er1
35004   cat conftest.err >&5
35005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006   (exit $ac_status); } && {
35007          test -z "$ac_c_werror_flag" ||
35008          test ! -s conftest.err
35009        } && test -s conftest.$ac_objext; then
35010   cat >conftest.$ac_ext <<_ACEOF
35011 /* confdefs.h.  */
35012 _ACEOF
35013 cat confdefs.h >>conftest.$ac_ext
35014 cat >>conftest.$ac_ext <<_ACEOF
35015 /* end confdefs.h.  */
35016 $ac_includes_default
35017 int
35018 main ()
35019 {
35020 if (sizeof ((off_t)))
35021           return 0;
35022   ;
35023   return 0;
35024 }
35025 _ACEOF
35026 rm -f conftest.$ac_objext
35027 if { (ac_try="$ac_compile"
35028 case "(($ac_try" in
35029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35030   *) ac_try_echo=$ac_try;;
35031 esac
35032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35033 $as_echo "$ac_try_echo") >&5
35034   (eval "$ac_compile") 2>conftest.er1
35035   ac_status=$?
35036   grep -v '^ *+' conftest.er1 >conftest.err
35037   rm -f conftest.er1
35038   cat conftest.err >&5
35039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040   (exit $ac_status); } && {
35041          test -z "$ac_c_werror_flag" ||
35042          test ! -s conftest.err
35043        } && test -s conftest.$ac_objext; then
35044   :
35045 else
35046   $as_echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35048
35049         ac_cv_type_off_t=yes
35050 fi
35051
35052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35053 else
35054   $as_echo "$as_me: failed program was:" >&5
35055 sed 's/^/| /' conftest.$ac_ext >&5
35056
35057
35058 fi
35059
35060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35061 fi
35062 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35063 $as_echo "$ac_cv_type_off_t" >&6; }
35064 if test "x$ac_cv_type_off_t" = x""yes; then
35065   :
35066 else
35067
35068 cat >>confdefs.h <<_ACEOF
35069 #define off_t long int
35070 _ACEOF
35071
35072 fi
35073
35074
35075   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
35076 $as_echo_n "checking for intptr_t... " >&6; }
35077 if test "${ac_cv_type_intptr_t+set}" = set; then
35078   $as_echo_n "(cached) " >&6
35079 else
35080   ac_cv_type_intptr_t=no
35081 cat >conftest.$ac_ext <<_ACEOF
35082 /* confdefs.h.  */
35083 _ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h.  */
35087 $ac_includes_default
35088 int
35089 main ()
35090 {
35091 if (sizeof (intptr_t))
35092        return 0;
35093   ;
35094   return 0;
35095 }
35096 _ACEOF
35097 rm -f conftest.$ac_objext
35098 if { (ac_try="$ac_compile"
35099 case "(($ac_try" in
35100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35101   *) ac_try_echo=$ac_try;;
35102 esac
35103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35104 $as_echo "$ac_try_echo") >&5
35105   (eval "$ac_compile") 2>conftest.er1
35106   ac_status=$?
35107   grep -v '^ *+' conftest.er1 >conftest.err
35108   rm -f conftest.er1
35109   cat conftest.err >&5
35110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111   (exit $ac_status); } && {
35112          test -z "$ac_c_werror_flag" ||
35113          test ! -s conftest.err
35114        } && test -s conftest.$ac_objext; then
35115   cat >conftest.$ac_ext <<_ACEOF
35116 /* confdefs.h.  */
35117 _ACEOF
35118 cat confdefs.h >>conftest.$ac_ext
35119 cat >>conftest.$ac_ext <<_ACEOF
35120 /* end confdefs.h.  */
35121 $ac_includes_default
35122 int
35123 main ()
35124 {
35125 if (sizeof ((intptr_t)))
35126           return 0;
35127   ;
35128   return 0;
35129 }
35130 _ACEOF
35131 rm -f conftest.$ac_objext
35132 if { (ac_try="$ac_compile"
35133 case "(($ac_try" in
35134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35135   *) ac_try_echo=$ac_try;;
35136 esac
35137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35138 $as_echo "$ac_try_echo") >&5
35139   (eval "$ac_compile") 2>conftest.er1
35140   ac_status=$?
35141   grep -v '^ *+' conftest.er1 >conftest.err
35142   rm -f conftest.er1
35143   cat conftest.err >&5
35144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); } && {
35146          test -z "$ac_c_werror_flag" ||
35147          test ! -s conftest.err
35148        } && test -s conftest.$ac_objext; then
35149   :
35150 else
35151   $as_echo "$as_me: failed program was:" >&5
35152 sed 's/^/| /' conftest.$ac_ext >&5
35153
35154         ac_cv_type_intptr_t=yes
35155 fi
35156
35157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35158 else
35159   $as_echo "$as_me: failed program was:" >&5
35160 sed 's/^/| /' conftest.$ac_ext >&5
35161
35162
35163 fi
35164
35165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35166 fi
35167 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
35168 $as_echo "$ac_cv_type_intptr_t" >&6; }
35169 if test "x$ac_cv_type_intptr_t" = x""yes; then
35170
35171 cat >>confdefs.h <<\_ACEOF
35172 #define HAVE_INTPTR_T 1
35173 _ACEOF
35174
35175 else
35176   for ac_type in 'int' 'long int' 'long long int'; do
35177        cat >conftest.$ac_ext <<_ACEOF
35178 /* confdefs.h.  */
35179 _ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h.  */
35183 $ac_includes_default
35184 int
35185 main ()
35186 {
35187 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35188 test_array [0] = 0
35189
35190   ;
35191   return 0;
35192 }
35193 _ACEOF
35194 rm -f conftest.$ac_objext
35195 if { (ac_try="$ac_compile"
35196 case "(($ac_try" in
35197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35198   *) ac_try_echo=$ac_try;;
35199 esac
35200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35201 $as_echo "$ac_try_echo") >&5
35202   (eval "$ac_compile") 2>conftest.er1
35203   ac_status=$?
35204   grep -v '^ *+' conftest.er1 >conftest.err
35205   rm -f conftest.er1
35206   cat conftest.err >&5
35207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208   (exit $ac_status); } && {
35209          test -z "$ac_c_werror_flag" ||
35210          test ! -s conftest.err
35211        } && test -s conftest.$ac_objext; then
35212
35213 cat >>confdefs.h <<_ACEOF
35214 #define intptr_t $ac_type
35215 _ACEOF
35216
35217           ac_type=
35218 else
35219   $as_echo "$as_me: failed program was:" >&5
35220 sed 's/^/| /' conftest.$ac_ext >&5
35221
35222
35223 fi
35224
35225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35226        test -z "$ac_type" && break
35227      done
35228 fi
35229
35230
35231
35232   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
35233 $as_echo_n "checking for uintptr_t... " >&6; }
35234 if test "${ac_cv_type_uintptr_t+set}" = set; then
35235   $as_echo_n "(cached) " >&6
35236 else
35237   ac_cv_type_uintptr_t=no
35238 cat >conftest.$ac_ext <<_ACEOF
35239 /* confdefs.h.  */
35240 _ACEOF
35241 cat confdefs.h >>conftest.$ac_ext
35242 cat >>conftest.$ac_ext <<_ACEOF
35243 /* end confdefs.h.  */
35244 $ac_includes_default
35245 int
35246 main ()
35247 {
35248 if (sizeof (uintptr_t))
35249        return 0;
35250   ;
35251   return 0;
35252 }
35253 _ACEOF
35254 rm -f conftest.$ac_objext
35255 if { (ac_try="$ac_compile"
35256 case "(($ac_try" in
35257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35258   *) ac_try_echo=$ac_try;;
35259 esac
35260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35261 $as_echo "$ac_try_echo") >&5
35262   (eval "$ac_compile") 2>conftest.er1
35263   ac_status=$?
35264   grep -v '^ *+' conftest.er1 >conftest.err
35265   rm -f conftest.er1
35266   cat conftest.err >&5
35267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268   (exit $ac_status); } && {
35269          test -z "$ac_c_werror_flag" ||
35270          test ! -s conftest.err
35271        } && test -s conftest.$ac_objext; then
35272   cat >conftest.$ac_ext <<_ACEOF
35273 /* confdefs.h.  */
35274 _ACEOF
35275 cat confdefs.h >>conftest.$ac_ext
35276 cat >>conftest.$ac_ext <<_ACEOF
35277 /* end confdefs.h.  */
35278 $ac_includes_default
35279 int
35280 main ()
35281 {
35282 if (sizeof ((uintptr_t)))
35283           return 0;
35284   ;
35285   return 0;
35286 }
35287 _ACEOF
35288 rm -f conftest.$ac_objext
35289 if { (ac_try="$ac_compile"
35290 case "(($ac_try" in
35291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35292   *) ac_try_echo=$ac_try;;
35293 esac
35294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35295 $as_echo "$ac_try_echo") >&5
35296   (eval "$ac_compile") 2>conftest.er1
35297   ac_status=$?
35298   grep -v '^ *+' conftest.er1 >conftest.err
35299   rm -f conftest.er1
35300   cat conftest.err >&5
35301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); } && {
35303          test -z "$ac_c_werror_flag" ||
35304          test ! -s conftest.err
35305        } && test -s conftest.$ac_objext; then
35306   :
35307 else
35308   $as_echo "$as_me: failed program was:" >&5
35309 sed 's/^/| /' conftest.$ac_ext >&5
35310
35311         ac_cv_type_uintptr_t=yes
35312 fi
35313
35314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35315 else
35316   $as_echo "$as_me: failed program was:" >&5
35317 sed 's/^/| /' conftest.$ac_ext >&5
35318
35319
35320 fi
35321
35322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35323 fi
35324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
35325 $as_echo "$ac_cv_type_uintptr_t" >&6; }
35326 if test "x$ac_cv_type_uintptr_t" = x""yes; then
35327
35328 cat >>confdefs.h <<\_ACEOF
35329 #define HAVE_UINTPTR_T 1
35330 _ACEOF
35331
35332 else
35333   for ac_type in 'unsigned int' 'unsigned long int' \
35334         'unsigned long long int'; do
35335        cat >conftest.$ac_ext <<_ACEOF
35336 /* confdefs.h.  */
35337 _ACEOF
35338 cat confdefs.h >>conftest.$ac_ext
35339 cat >>conftest.$ac_ext <<_ACEOF
35340 /* end confdefs.h.  */
35341 $ac_includes_default
35342 int
35343 main ()
35344 {
35345 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35346 test_array [0] = 0
35347
35348   ;
35349   return 0;
35350 }
35351 _ACEOF
35352 rm -f conftest.$ac_objext
35353 if { (ac_try="$ac_compile"
35354 case "(($ac_try" in
35355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35356   *) ac_try_echo=$ac_try;;
35357 esac
35358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35359 $as_echo "$ac_try_echo") >&5
35360   (eval "$ac_compile") 2>conftest.er1
35361   ac_status=$?
35362   grep -v '^ *+' conftest.er1 >conftest.err
35363   rm -f conftest.er1
35364   cat conftest.err >&5
35365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366   (exit $ac_status); } && {
35367          test -z "$ac_c_werror_flag" ||
35368          test ! -s conftest.err
35369        } && test -s conftest.$ac_objext; then
35370
35371 cat >>confdefs.h <<_ACEOF
35372 #define uintptr_t $ac_type
35373 _ACEOF
35374
35375           ac_type=
35376 else
35377   $as_echo "$as_me: failed program was:" >&5
35378 sed 's/^/| /' conftest.$ac_ext >&5
35379
35380
35381 fi
35382
35383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35384        test -z "$ac_type" && break
35385      done
35386 fi
35387
35388
35389 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
35390 $as_echo_n "checking for ino_t... " >&6; }
35391 if test "${ac_cv_type_ino_t+set}" = set; then
35392   $as_echo_n "(cached) " >&6
35393 else
35394   ac_cv_type_ino_t=no
35395 cat >conftest.$ac_ext <<_ACEOF
35396 /* confdefs.h.  */
35397 _ACEOF
35398 cat confdefs.h >>conftest.$ac_ext
35399 cat >>conftest.$ac_ext <<_ACEOF
35400 /* end confdefs.h.  */
35401 $ac_includes_default
35402 int
35403 main ()
35404 {
35405 if (sizeof (ino_t))
35406        return 0;
35407   ;
35408   return 0;
35409 }
35410 _ACEOF
35411 rm -f conftest.$ac_objext
35412 if { (ac_try="$ac_compile"
35413 case "(($ac_try" in
35414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35415   *) ac_try_echo=$ac_try;;
35416 esac
35417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35418 $as_echo "$ac_try_echo") >&5
35419   (eval "$ac_compile") 2>conftest.er1
35420   ac_status=$?
35421   grep -v '^ *+' conftest.er1 >conftest.err
35422   rm -f conftest.er1
35423   cat conftest.err >&5
35424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } && {
35426          test -z "$ac_c_werror_flag" ||
35427          test ! -s conftest.err
35428        } && test -s conftest.$ac_objext; then
35429   cat >conftest.$ac_ext <<_ACEOF
35430 /* confdefs.h.  */
35431 _ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h.  */
35435 $ac_includes_default
35436 int
35437 main ()
35438 {
35439 if (sizeof ((ino_t)))
35440           return 0;
35441   ;
35442   return 0;
35443 }
35444 _ACEOF
35445 rm -f conftest.$ac_objext
35446 if { (ac_try="$ac_compile"
35447 case "(($ac_try" in
35448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35449   *) ac_try_echo=$ac_try;;
35450 esac
35451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35452 $as_echo "$ac_try_echo") >&5
35453   (eval "$ac_compile") 2>conftest.er1
35454   ac_status=$?
35455   grep -v '^ *+' conftest.er1 >conftest.err
35456   rm -f conftest.er1
35457   cat conftest.err >&5
35458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459   (exit $ac_status); } && {
35460          test -z "$ac_c_werror_flag" ||
35461          test ! -s conftest.err
35462        } && test -s conftest.$ac_objext; then
35463   :
35464 else
35465   $as_echo "$as_me: failed program was:" >&5
35466 sed 's/^/| /' conftest.$ac_ext >&5
35467
35468         ac_cv_type_ino_t=yes
35469 fi
35470
35471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35472 else
35473   $as_echo "$as_me: failed program was:" >&5
35474 sed 's/^/| /' conftest.$ac_ext >&5
35475
35476
35477 fi
35478
35479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35480 fi
35481 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
35482 $as_echo "$ac_cv_type_ino_t" >&6; }
35483 if test "x$ac_cv_type_ino_t" = x""yes; then
35484   :
35485 else
35486
35487 cat >>confdefs.h <<_ACEOF
35488 #define ino_t unsigned long
35489 _ACEOF
35490
35491 fi
35492
35493 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
35494 $as_echo_n "checking for dev_t... " >&6; }
35495 if test "${ac_cv_type_dev_t+set}" = set; then
35496   $as_echo_n "(cached) " >&6
35497 else
35498   ac_cv_type_dev_t=no
35499 cat >conftest.$ac_ext <<_ACEOF
35500 /* confdefs.h.  */
35501 _ACEOF
35502 cat confdefs.h >>conftest.$ac_ext
35503 cat >>conftest.$ac_ext <<_ACEOF
35504 /* end confdefs.h.  */
35505 $ac_includes_default
35506 int
35507 main ()
35508 {
35509 if (sizeof (dev_t))
35510        return 0;
35511   ;
35512   return 0;
35513 }
35514 _ACEOF
35515 rm -f conftest.$ac_objext
35516 if { (ac_try="$ac_compile"
35517 case "(($ac_try" in
35518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35519   *) ac_try_echo=$ac_try;;
35520 esac
35521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35522 $as_echo "$ac_try_echo") >&5
35523   (eval "$ac_compile") 2>conftest.er1
35524   ac_status=$?
35525   grep -v '^ *+' conftest.er1 >conftest.err
35526   rm -f conftest.er1
35527   cat conftest.err >&5
35528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529   (exit $ac_status); } && {
35530          test -z "$ac_c_werror_flag" ||
35531          test ! -s conftest.err
35532        } && test -s conftest.$ac_objext; then
35533   cat >conftest.$ac_ext <<_ACEOF
35534 /* confdefs.h.  */
35535 _ACEOF
35536 cat confdefs.h >>conftest.$ac_ext
35537 cat >>conftest.$ac_ext <<_ACEOF
35538 /* end confdefs.h.  */
35539 $ac_includes_default
35540 int
35541 main ()
35542 {
35543 if (sizeof ((dev_t)))
35544           return 0;
35545   ;
35546   return 0;
35547 }
35548 _ACEOF
35549 rm -f conftest.$ac_objext
35550 if { (ac_try="$ac_compile"
35551 case "(($ac_try" in
35552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35553   *) ac_try_echo=$ac_try;;
35554 esac
35555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35556 $as_echo "$ac_try_echo") >&5
35557   (eval "$ac_compile") 2>conftest.er1
35558   ac_status=$?
35559   grep -v '^ *+' conftest.er1 >conftest.err
35560   rm -f conftest.er1
35561   cat conftest.err >&5
35562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563   (exit $ac_status); } && {
35564          test -z "$ac_c_werror_flag" ||
35565          test ! -s conftest.err
35566        } && test -s conftest.$ac_objext; then
35567   :
35568 else
35569   $as_echo "$as_me: failed program was:" >&5
35570 sed 's/^/| /' conftest.$ac_ext >&5
35571
35572         ac_cv_type_dev_t=yes
35573 fi
35574
35575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35576 else
35577   $as_echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35579
35580
35581 fi
35582
35583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35584 fi
35585 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
35586 $as_echo "$ac_cv_type_dev_t" >&6; }
35587 if test "x$ac_cv_type_dev_t" = x""yes; then
35588   :
35589 else
35590
35591 cat >>confdefs.h <<_ACEOF
35592 #define dev_t unsigned long
35593 _ACEOF
35594
35595 fi
35596
35597 { $as_echo "$as_me:$LINENO: checking for daddr_t" >&5
35598 $as_echo_n "checking for daddr_t... " >&6; }
35599 if test "${ac_cv_type_daddr_t+set}" = set; then
35600   $as_echo_n "(cached) " >&6
35601 else
35602   ac_cv_type_daddr_t=no
35603 cat >conftest.$ac_ext <<_ACEOF
35604 /* confdefs.h.  */
35605 _ACEOF
35606 cat confdefs.h >>conftest.$ac_ext
35607 cat >>conftest.$ac_ext <<_ACEOF
35608 /* end confdefs.h.  */
35609 $ac_includes_default
35610 int
35611 main ()
35612 {
35613 if (sizeof (daddr_t))
35614        return 0;
35615   ;
35616   return 0;
35617 }
35618 _ACEOF
35619 rm -f conftest.$ac_objext
35620 if { (ac_try="$ac_compile"
35621 case "(($ac_try" in
35622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35623   *) ac_try_echo=$ac_try;;
35624 esac
35625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35626 $as_echo "$ac_try_echo") >&5
35627   (eval "$ac_compile") 2>conftest.er1
35628   ac_status=$?
35629   grep -v '^ *+' conftest.er1 >conftest.err
35630   rm -f conftest.er1
35631   cat conftest.err >&5
35632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633   (exit $ac_status); } && {
35634          test -z "$ac_c_werror_flag" ||
35635          test ! -s conftest.err
35636        } && test -s conftest.$ac_objext; then
35637   cat >conftest.$ac_ext <<_ACEOF
35638 /* confdefs.h.  */
35639 _ACEOF
35640 cat confdefs.h >>conftest.$ac_ext
35641 cat >>conftest.$ac_ext <<_ACEOF
35642 /* end confdefs.h.  */
35643 $ac_includes_default
35644 int
35645 main ()
35646 {
35647 if (sizeof ((daddr_t)))
35648           return 0;
35649   ;
35650   return 0;
35651 }
35652 _ACEOF
35653 rm -f conftest.$ac_objext
35654 if { (ac_try="$ac_compile"
35655 case "(($ac_try" in
35656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35657   *) ac_try_echo=$ac_try;;
35658 esac
35659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35660 $as_echo "$ac_try_echo") >&5
35661   (eval "$ac_compile") 2>conftest.er1
35662   ac_status=$?
35663   grep -v '^ *+' conftest.er1 >conftest.err
35664   rm -f conftest.er1
35665   cat conftest.err >&5
35666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667   (exit $ac_status); } && {
35668          test -z "$ac_c_werror_flag" ||
35669          test ! -s conftest.err
35670        } && test -s conftest.$ac_objext; then
35671   :
35672 else
35673   $as_echo "$as_me: failed program was:" >&5
35674 sed 's/^/| /' conftest.$ac_ext >&5
35675
35676         ac_cv_type_daddr_t=yes
35677 fi
35678
35679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35680 else
35681   $as_echo "$as_me: failed program was:" >&5
35682 sed 's/^/| /' conftest.$ac_ext >&5
35683
35684
35685 fi
35686
35687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35688 fi
35689 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
35690 $as_echo "$ac_cv_type_daddr_t" >&6; }
35691 if test "x$ac_cv_type_daddr_t" = x""yes; then
35692   :
35693 else
35694
35695 cat >>confdefs.h <<_ACEOF
35696 #define daddr_t long
35697 _ACEOF
35698
35699 fi
35700
35701 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
35702 $as_echo_n "checking for major_t... " >&6; }
35703 if test "${ac_cv_type_major_t+set}" = set; then
35704   $as_echo_n "(cached) " >&6
35705 else
35706   ac_cv_type_major_t=no
35707 cat >conftest.$ac_ext <<_ACEOF
35708 /* confdefs.h.  */
35709 _ACEOF
35710 cat confdefs.h >>conftest.$ac_ext
35711 cat >>conftest.$ac_ext <<_ACEOF
35712 /* end confdefs.h.  */
35713 $ac_includes_default
35714 int
35715 main ()
35716 {
35717 if (sizeof (major_t))
35718        return 0;
35719   ;
35720   return 0;
35721 }
35722 _ACEOF
35723 rm -f conftest.$ac_objext
35724 if { (ac_try="$ac_compile"
35725 case "(($ac_try" in
35726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35727   *) ac_try_echo=$ac_try;;
35728 esac
35729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35730 $as_echo "$ac_try_echo") >&5
35731   (eval "$ac_compile") 2>conftest.er1
35732   ac_status=$?
35733   grep -v '^ *+' conftest.er1 >conftest.err
35734   rm -f conftest.er1
35735   cat conftest.err >&5
35736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737   (exit $ac_status); } && {
35738          test -z "$ac_c_werror_flag" ||
35739          test ! -s conftest.err
35740        } && test -s conftest.$ac_objext; then
35741   cat >conftest.$ac_ext <<_ACEOF
35742 /* confdefs.h.  */
35743 _ACEOF
35744 cat confdefs.h >>conftest.$ac_ext
35745 cat >>conftest.$ac_ext <<_ACEOF
35746 /* end confdefs.h.  */
35747 $ac_includes_default
35748 int
35749 main ()
35750 {
35751 if (sizeof ((major_t)))
35752           return 0;
35753   ;
35754   return 0;
35755 }
35756 _ACEOF
35757 rm -f conftest.$ac_objext
35758 if { (ac_try="$ac_compile"
35759 case "(($ac_try" in
35760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35761   *) ac_try_echo=$ac_try;;
35762 esac
35763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35764 $as_echo "$ac_try_echo") >&5
35765   (eval "$ac_compile") 2>conftest.er1
35766   ac_status=$?
35767   grep -v '^ *+' conftest.er1 >conftest.err
35768   rm -f conftest.er1
35769   cat conftest.err >&5
35770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); } && {
35772          test -z "$ac_c_werror_flag" ||
35773          test ! -s conftest.err
35774        } && test -s conftest.$ac_objext; then
35775   :
35776 else
35777   $as_echo "$as_me: failed program was:" >&5
35778 sed 's/^/| /' conftest.$ac_ext >&5
35779
35780         ac_cv_type_major_t=yes
35781 fi
35782
35783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35784 else
35785   $as_echo "$as_me: failed program was:" >&5
35786 sed 's/^/| /' conftest.$ac_ext >&5
35787
35788
35789 fi
35790
35791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35792 fi
35793 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
35794 $as_echo "$ac_cv_type_major_t" >&6; }
35795 if test "x$ac_cv_type_major_t" = x""yes; then
35796   :
35797 else
35798
35799 cat >>confdefs.h <<_ACEOF
35800 #define major_t int
35801 _ACEOF
35802
35803 fi
35804
35805 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
35806 $as_echo_n "checking for minor_t... " >&6; }
35807 if test "${ac_cv_type_minor_t+set}" = set; then
35808   $as_echo_n "(cached) " >&6
35809 else
35810   ac_cv_type_minor_t=no
35811 cat >conftest.$ac_ext <<_ACEOF
35812 /* confdefs.h.  */
35813 _ACEOF
35814 cat confdefs.h >>conftest.$ac_ext
35815 cat >>conftest.$ac_ext <<_ACEOF
35816 /* end confdefs.h.  */
35817 $ac_includes_default
35818 int
35819 main ()
35820 {
35821 if (sizeof (minor_t))
35822        return 0;
35823   ;
35824   return 0;
35825 }
35826 _ACEOF
35827 rm -f conftest.$ac_objext
35828 if { (ac_try="$ac_compile"
35829 case "(($ac_try" in
35830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35831   *) ac_try_echo=$ac_try;;
35832 esac
35833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35834 $as_echo "$ac_try_echo") >&5
35835   (eval "$ac_compile") 2>conftest.er1
35836   ac_status=$?
35837   grep -v '^ *+' conftest.er1 >conftest.err
35838   rm -f conftest.er1
35839   cat conftest.err >&5
35840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841   (exit $ac_status); } && {
35842          test -z "$ac_c_werror_flag" ||
35843          test ! -s conftest.err
35844        } && test -s conftest.$ac_objext; then
35845   cat >conftest.$ac_ext <<_ACEOF
35846 /* confdefs.h.  */
35847 _ACEOF
35848 cat confdefs.h >>conftest.$ac_ext
35849 cat >>conftest.$ac_ext <<_ACEOF
35850 /* end confdefs.h.  */
35851 $ac_includes_default
35852 int
35853 main ()
35854 {
35855 if (sizeof ((minor_t)))
35856           return 0;
35857   ;
35858   return 0;
35859 }
35860 _ACEOF
35861 rm -f conftest.$ac_objext
35862 if { (ac_try="$ac_compile"
35863 case "(($ac_try" in
35864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35865   *) ac_try_echo=$ac_try;;
35866 esac
35867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35868 $as_echo "$ac_try_echo") >&5
35869   (eval "$ac_compile") 2>conftest.er1
35870   ac_status=$?
35871   grep -v '^ *+' conftest.er1 >conftest.err
35872   rm -f conftest.er1
35873   cat conftest.err >&5
35874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875   (exit $ac_status); } && {
35876          test -z "$ac_c_werror_flag" ||
35877          test ! -s conftest.err
35878        } && test -s conftest.$ac_objext; then
35879   :
35880 else
35881   $as_echo "$as_me: failed program was:" >&5
35882 sed 's/^/| /' conftest.$ac_ext >&5
35883
35884         ac_cv_type_minor_t=yes
35885 fi
35886
35887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35888 else
35889   $as_echo "$as_me: failed program was:" >&5
35890 sed 's/^/| /' conftest.$ac_ext >&5
35891
35892
35893 fi
35894
35895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35896 fi
35897 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
35898 $as_echo "$ac_cv_type_minor_t" >&6; }
35899 if test "x$ac_cv_type_minor_t" = x""yes; then
35900   :
35901 else
35902
35903 cat >>confdefs.h <<_ACEOF
35904 #define minor_t int
35905 _ACEOF
35906
35907 fi
35908
35909 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35910 $as_echo_n "checking for ssize_t... " >&6; }
35911 if test "${ac_cv_type_ssize_t+set}" = set; then
35912   $as_echo_n "(cached) " >&6
35913 else
35914   ac_cv_type_ssize_t=no
35915 cat >conftest.$ac_ext <<_ACEOF
35916 /* confdefs.h.  */
35917 _ACEOF
35918 cat confdefs.h >>conftest.$ac_ext
35919 cat >>conftest.$ac_ext <<_ACEOF
35920 /* end confdefs.h.  */
35921 $ac_includes_default
35922 int
35923 main ()
35924 {
35925 if (sizeof (ssize_t))
35926        return 0;
35927   ;
35928   return 0;
35929 }
35930 _ACEOF
35931 rm -f conftest.$ac_objext
35932 if { (ac_try="$ac_compile"
35933 case "(($ac_try" in
35934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35935   *) ac_try_echo=$ac_try;;
35936 esac
35937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35938 $as_echo "$ac_try_echo") >&5
35939   (eval "$ac_compile") 2>conftest.er1
35940   ac_status=$?
35941   grep -v '^ *+' conftest.er1 >conftest.err
35942   rm -f conftest.er1
35943   cat conftest.err >&5
35944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945   (exit $ac_status); } && {
35946          test -z "$ac_c_werror_flag" ||
35947          test ! -s conftest.err
35948        } && test -s conftest.$ac_objext; then
35949   cat >conftest.$ac_ext <<_ACEOF
35950 /* confdefs.h.  */
35951 _ACEOF
35952 cat confdefs.h >>conftest.$ac_ext
35953 cat >>conftest.$ac_ext <<_ACEOF
35954 /* end confdefs.h.  */
35955 $ac_includes_default
35956 int
35957 main ()
35958 {
35959 if (sizeof ((ssize_t)))
35960           return 0;
35961   ;
35962   return 0;
35963 }
35964 _ACEOF
35965 rm -f conftest.$ac_objext
35966 if { (ac_try="$ac_compile"
35967 case "(($ac_try" in
35968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35969   *) ac_try_echo=$ac_try;;
35970 esac
35971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35972 $as_echo "$ac_try_echo") >&5
35973   (eval "$ac_compile") 2>conftest.er1
35974   ac_status=$?
35975   grep -v '^ *+' conftest.er1 >conftest.err
35976   rm -f conftest.er1
35977   cat conftest.err >&5
35978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979   (exit $ac_status); } && {
35980          test -z "$ac_c_werror_flag" ||
35981          test ! -s conftest.err
35982        } && test -s conftest.$ac_objext; then
35983   :
35984 else
35985   $as_echo "$as_me: failed program was:" >&5
35986 sed 's/^/| /' conftest.$ac_ext >&5
35987
35988         ac_cv_type_ssize_t=yes
35989 fi
35990
35991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35992 else
35993   $as_echo "$as_me: failed program was:" >&5
35994 sed 's/^/| /' conftest.$ac_ext >&5
35995
35996
35997 fi
35998
35999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36000 fi
36001 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36002 $as_echo "$ac_cv_type_ssize_t" >&6; }
36003 if test "x$ac_cv_type_ssize_t" = x""yes; then
36004   :
36005 else
36006
36007 cat >>confdefs.h <<_ACEOF
36008 #define ssize_t int
36009 _ACEOF
36010
36011 fi
36012
36013 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
36014 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
36015 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
36016   $as_echo_n "(cached) " >&6
36017 else
36018   cat >conftest.$ac_ext <<_ACEOF
36019 /* confdefs.h.  */
36020 _ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h.  */
36024 $ac_includes_default
36025 int
36026 main ()
36027 {
36028 static struct stat ac_aggr;
36029 if (ac_aggr.st_blocks)
36030 return 0;
36031   ;
36032   return 0;
36033 }
36034 _ACEOF
36035 rm -f conftest.$ac_objext
36036 if { (ac_try="$ac_compile"
36037 case "(($ac_try" in
36038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36039   *) ac_try_echo=$ac_try;;
36040 esac
36041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36042 $as_echo "$ac_try_echo") >&5
36043   (eval "$ac_compile") 2>conftest.er1
36044   ac_status=$?
36045   grep -v '^ *+' conftest.er1 >conftest.err
36046   rm -f conftest.er1
36047   cat conftest.err >&5
36048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049   (exit $ac_status); } && {
36050          test -z "$ac_c_werror_flag" ||
36051          test ! -s conftest.err
36052        } && test -s conftest.$ac_objext; then
36053   ac_cv_member_struct_stat_st_blocks=yes
36054 else
36055   $as_echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36057
36058         cat >conftest.$ac_ext <<_ACEOF
36059 /* confdefs.h.  */
36060 _ACEOF
36061 cat confdefs.h >>conftest.$ac_ext
36062 cat >>conftest.$ac_ext <<_ACEOF
36063 /* end confdefs.h.  */
36064 $ac_includes_default
36065 int
36066 main ()
36067 {
36068 static struct stat ac_aggr;
36069 if (sizeof ac_aggr.st_blocks)
36070 return 0;
36071   ;
36072   return 0;
36073 }
36074 _ACEOF
36075 rm -f conftest.$ac_objext
36076 if { (ac_try="$ac_compile"
36077 case "(($ac_try" in
36078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36079   *) ac_try_echo=$ac_try;;
36080 esac
36081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36082 $as_echo "$ac_try_echo") >&5
36083   (eval "$ac_compile") 2>conftest.er1
36084   ac_status=$?
36085   grep -v '^ *+' conftest.er1 >conftest.err
36086   rm -f conftest.er1
36087   cat conftest.err >&5
36088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089   (exit $ac_status); } && {
36090          test -z "$ac_c_werror_flag" ||
36091          test ! -s conftest.err
36092        } && test -s conftest.$ac_objext; then
36093   ac_cv_member_struct_stat_st_blocks=yes
36094 else
36095   $as_echo "$as_me: failed program was:" >&5
36096 sed 's/^/| /' conftest.$ac_ext >&5
36097
36098         ac_cv_member_struct_stat_st_blocks=no
36099 fi
36100
36101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36102 fi
36103
36104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36105 fi
36106 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
36107 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
36108 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
36109
36110 cat >>confdefs.h <<_ACEOF
36111 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
36112 _ACEOF
36113
36114
36115 cat >>confdefs.h <<\_ACEOF
36116 #define HAVE_ST_BLOCKS 1
36117 _ACEOF
36118
36119 else
36120   case " $LIBOBJS " in
36121   *" fileblocks.$ac_objext "* ) ;;
36122   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
36123  ;;
36124 esac
36125
36126 fi
36127
36128
36129 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36130 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
36131 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36132   $as_echo_n "(cached) " >&6
36133 else
36134   cat >conftest.$ac_ext <<_ACEOF
36135 /* confdefs.h.  */
36136 _ACEOF
36137 cat confdefs.h >>conftest.$ac_ext
36138 cat >>conftest.$ac_ext <<_ACEOF
36139 /* end confdefs.h.  */
36140 $ac_includes_default
36141 int
36142 main ()
36143 {
36144 static struct stat ac_aggr;
36145 if (ac_aggr.st_rdev)
36146 return 0;
36147   ;
36148   return 0;
36149 }
36150 _ACEOF
36151 rm -f conftest.$ac_objext
36152 if { (ac_try="$ac_compile"
36153 case "(($ac_try" in
36154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155   *) ac_try_echo=$ac_try;;
36156 esac
36157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36158 $as_echo "$ac_try_echo") >&5
36159   (eval "$ac_compile") 2>conftest.er1
36160   ac_status=$?
36161   grep -v '^ *+' conftest.er1 >conftest.err
36162   rm -f conftest.er1
36163   cat conftest.err >&5
36164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165   (exit $ac_status); } && {
36166          test -z "$ac_c_werror_flag" ||
36167          test ! -s conftest.err
36168        } && test -s conftest.$ac_objext; then
36169   ac_cv_member_struct_stat_st_rdev=yes
36170 else
36171   $as_echo "$as_me: failed program was:" >&5
36172 sed 's/^/| /' conftest.$ac_ext >&5
36173
36174         cat >conftest.$ac_ext <<_ACEOF
36175 /* confdefs.h.  */
36176 _ACEOF
36177 cat confdefs.h >>conftest.$ac_ext
36178 cat >>conftest.$ac_ext <<_ACEOF
36179 /* end confdefs.h.  */
36180 $ac_includes_default
36181 int
36182 main ()
36183 {
36184 static struct stat ac_aggr;
36185 if (sizeof ac_aggr.st_rdev)
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36198 $as_echo "$ac_try_echo") >&5
36199   (eval "$ac_compile") 2>conftest.er1
36200   ac_status=$?
36201   grep -v '^ *+' conftest.er1 >conftest.err
36202   rm -f conftest.er1
36203   cat conftest.err >&5
36204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205   (exit $ac_status); } && {
36206          test -z "$ac_c_werror_flag" ||
36207          test ! -s conftest.err
36208        } && test -s conftest.$ac_objext; then
36209   ac_cv_member_struct_stat_st_rdev=yes
36210 else
36211   $as_echo "$as_me: failed program was:" >&5
36212 sed 's/^/| /' conftest.$ac_ext >&5
36213
36214         ac_cv_member_struct_stat_st_rdev=no
36215 fi
36216
36217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36218 fi
36219
36220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36221 fi
36222 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36223 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36224 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36225
36226 cat >>confdefs.h <<_ACEOF
36227 #define HAVE_STRUCT_STAT_ST_RDEV 1
36228 _ACEOF
36229
36230
36231 cat >>confdefs.h <<\_ACEOF
36232 #define HAVE_ST_RDEV 1
36233 _ACEOF
36234
36235 fi
36236
36237
36238 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36239 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
36240 if test "${ac_cv_struct_tm+set}" = set; then
36241   $as_echo_n "(cached) " >&6
36242 else
36243   cat >conftest.$ac_ext <<_ACEOF
36244 /* confdefs.h.  */
36245 _ACEOF
36246 cat confdefs.h >>conftest.$ac_ext
36247 cat >>conftest.$ac_ext <<_ACEOF
36248 /* end confdefs.h.  */
36249 #include <sys/types.h>
36250 #include <time.h>
36251
36252 int
36253 main ()
36254 {
36255 struct tm tm;
36256                                      int *p = &tm.tm_sec;
36257                                      return !p;
36258   ;
36259   return 0;
36260 }
36261 _ACEOF
36262 rm -f conftest.$ac_objext
36263 if { (ac_try="$ac_compile"
36264 case "(($ac_try" in
36265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36266   *) ac_try_echo=$ac_try;;
36267 esac
36268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36269 $as_echo "$ac_try_echo") >&5
36270   (eval "$ac_compile") 2>conftest.er1
36271   ac_status=$?
36272   grep -v '^ *+' conftest.er1 >conftest.err
36273   rm -f conftest.er1
36274   cat conftest.err >&5
36275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); } && {
36277          test -z "$ac_c_werror_flag" ||
36278          test ! -s conftest.err
36279        } && test -s conftest.$ac_objext; then
36280   ac_cv_struct_tm=time.h
36281 else
36282   $as_echo "$as_me: failed program was:" >&5
36283 sed 's/^/| /' conftest.$ac_ext >&5
36284
36285         ac_cv_struct_tm=sys/time.h
36286 fi
36287
36288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36289 fi
36290 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
36291 $as_echo "$ac_cv_struct_tm" >&6; }
36292 if test $ac_cv_struct_tm = sys/time.h; then
36293
36294 cat >>confdefs.h <<\_ACEOF
36295 #define TM_IN_SYS_TIME 1
36296 _ACEOF
36297
36298 fi
36299
36300 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
36301 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
36302 if test "${ac_cv_c_const+set}" = set; then
36303   $as_echo_n "(cached) " >&6
36304 else
36305   cat >conftest.$ac_ext <<_ACEOF
36306 /* confdefs.h.  */
36307 _ACEOF
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h.  */
36311
36312 int
36313 main ()
36314 {
36315 /* FIXME: Include the comments suggested by Paul. */
36316 #ifndef __cplusplus
36317   /* Ultrix mips cc rejects this.  */
36318   typedef int charset[2];
36319   const charset cs;
36320   /* SunOS 4.1.1 cc rejects this.  */
36321   char const *const *pcpcc;
36322   char **ppc;
36323   /* NEC SVR4.0.2 mips cc rejects this.  */
36324   struct point {int x, y;};
36325   static struct point const zero = {0,0};
36326   /* AIX XL C 1.02.0.0 rejects this.
36327      It does not let you subtract one const X* pointer from another in
36328      an arm of an if-expression whose if-part is not a constant
36329      expression */
36330   const char *g = "string";
36331   pcpcc = &g + (g ? g-g : 0);
36332   /* HPUX 7.0 cc rejects these. */
36333   ++pcpcc;
36334   ppc = (char**) pcpcc;
36335   pcpcc = (char const *const *) ppc;
36336   { /* SCO 3.2v4 cc rejects this.  */
36337     char *t;
36338     char const *s = 0 ? (char *) 0 : (char const *) 0;
36339
36340     *t++ = 0;
36341     if (s) return 0;
36342   }
36343   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
36344     int x[] = {25, 17};
36345     const int *foo = &x[0];
36346     ++foo;
36347   }
36348   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
36349     typedef const int *iptr;
36350     iptr p = 0;
36351     ++p;
36352   }
36353   { /* AIX XL C 1.02.0.0 rejects this saying
36354        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
36355     struct s { int j; const int *ap[3]; };
36356     struct s *b; b->j = 5;
36357   }
36358   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
36359     const int foo = 10;
36360     if (!foo) return 0;
36361   }
36362   return !cs[0] && !zero.x;
36363 #endif
36364
36365   ;
36366   return 0;
36367 }
36368 _ACEOF
36369 rm -f conftest.$ac_objext
36370 if { (ac_try="$ac_compile"
36371 case "(($ac_try" in
36372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373   *) ac_try_echo=$ac_try;;
36374 esac
36375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36376 $as_echo "$ac_try_echo") >&5
36377   (eval "$ac_compile") 2>conftest.er1
36378   ac_status=$?
36379   grep -v '^ *+' conftest.er1 >conftest.err
36380   rm -f conftest.er1
36381   cat conftest.err >&5
36382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383   (exit $ac_status); } && {
36384          test -z "$ac_c_werror_flag" ||
36385          test ! -s conftest.err
36386        } && test -s conftest.$ac_objext; then
36387   ac_cv_c_const=yes
36388 else
36389   $as_echo "$as_me: failed program was:" >&5
36390 sed 's/^/| /' conftest.$ac_ext >&5
36391
36392         ac_cv_c_const=no
36393 fi
36394
36395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36396 fi
36397 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
36398 $as_echo "$ac_cv_c_const" >&6; }
36399 if test $ac_cv_c_const = no; then
36400
36401 cat >>confdefs.h <<\_ACEOF
36402 #define const /**/
36403 _ACEOF
36404
36405 fi
36406
36407
36408 # The cast to long int works around a bug in the HP C Compiler
36409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36411 # This bug is HP SR number 8606223364.
36412 { $as_echo "$as_me:$LINENO: checking size of char" >&5
36413 $as_echo_n "checking size of char... " >&6; }
36414 if test "${ac_cv_sizeof_char+set}" = set; then
36415   $as_echo_n "(cached) " >&6
36416 else
36417   if test "$cross_compiling" = yes; then
36418   # Depending upon the size, compute the lo and hi bounds.
36419 cat >conftest.$ac_ext <<_ACEOF
36420 /* confdefs.h.  */
36421 _ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h.  */
36425 $ac_includes_default
36426 int
36427 main ()
36428 {
36429 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
36430 test_array [0] = 0
36431
36432   ;
36433   return 0;
36434 }
36435 _ACEOF
36436 rm -f conftest.$ac_objext
36437 if { (ac_try="$ac_compile"
36438 case "(($ac_try" in
36439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36440   *) ac_try_echo=$ac_try;;
36441 esac
36442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36443 $as_echo "$ac_try_echo") >&5
36444   (eval "$ac_compile") 2>conftest.er1
36445   ac_status=$?
36446   grep -v '^ *+' conftest.er1 >conftest.err
36447   rm -f conftest.er1
36448   cat conftest.err >&5
36449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450   (exit $ac_status); } && {
36451          test -z "$ac_c_werror_flag" ||
36452          test ! -s conftest.err
36453        } && test -s conftest.$ac_objext; then
36454   ac_lo=0 ac_mid=0
36455   while :; do
36456     cat >conftest.$ac_ext <<_ACEOF
36457 /* confdefs.h.  */
36458 _ACEOF
36459 cat confdefs.h >>conftest.$ac_ext
36460 cat >>conftest.$ac_ext <<_ACEOF
36461 /* end confdefs.h.  */
36462 $ac_includes_default
36463 int
36464 main ()
36465 {
36466 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36467 test_array [0] = 0
36468
36469   ;
36470   return 0;
36471 }
36472 _ACEOF
36473 rm -f conftest.$ac_objext
36474 if { (ac_try="$ac_compile"
36475 case "(($ac_try" in
36476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36477   *) ac_try_echo=$ac_try;;
36478 esac
36479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36480 $as_echo "$ac_try_echo") >&5
36481   (eval "$ac_compile") 2>conftest.er1
36482   ac_status=$?
36483   grep -v '^ *+' conftest.er1 >conftest.err
36484   rm -f conftest.er1
36485   cat conftest.err >&5
36486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487   (exit $ac_status); } && {
36488          test -z "$ac_c_werror_flag" ||
36489          test ! -s conftest.err
36490        } && test -s conftest.$ac_objext; then
36491   ac_hi=$ac_mid; break
36492 else
36493   $as_echo "$as_me: failed program was:" >&5
36494 sed 's/^/| /' conftest.$ac_ext >&5
36495
36496         ac_lo=`expr $ac_mid + 1`
36497                         if test $ac_lo -le $ac_mid; then
36498                           ac_lo= ac_hi=
36499                           break
36500                         fi
36501                         ac_mid=`expr 2 '*' $ac_mid + 1`
36502 fi
36503
36504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36505   done
36506 else
36507   $as_echo "$as_me: failed program was:" >&5
36508 sed 's/^/| /' conftest.$ac_ext >&5
36509
36510         cat >conftest.$ac_ext <<_ACEOF
36511 /* confdefs.h.  */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h.  */
36516 $ac_includes_default
36517 int
36518 main ()
36519 {
36520 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
36521 test_array [0] = 0
36522
36523   ;
36524   return 0;
36525 }
36526 _ACEOF
36527 rm -f conftest.$ac_objext
36528 if { (ac_try="$ac_compile"
36529 case "(($ac_try" in
36530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531   *) ac_try_echo=$ac_try;;
36532 esac
36533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36534 $as_echo "$ac_try_echo") >&5
36535   (eval "$ac_compile") 2>conftest.er1
36536   ac_status=$?
36537   grep -v '^ *+' conftest.er1 >conftest.err
36538   rm -f conftest.er1
36539   cat conftest.err >&5
36540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541   (exit $ac_status); } && {
36542          test -z "$ac_c_werror_flag" ||
36543          test ! -s conftest.err
36544        } && test -s conftest.$ac_objext; then
36545   ac_hi=-1 ac_mid=-1
36546   while :; do
36547     cat >conftest.$ac_ext <<_ACEOF
36548 /* confdefs.h.  */
36549 _ACEOF
36550 cat confdefs.h >>conftest.$ac_ext
36551 cat >>conftest.$ac_ext <<_ACEOF
36552 /* end confdefs.h.  */
36553 $ac_includes_default
36554 int
36555 main ()
36556 {
36557 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
36558 test_array [0] = 0
36559
36560   ;
36561   return 0;
36562 }
36563 _ACEOF
36564 rm -f conftest.$ac_objext
36565 if { (ac_try="$ac_compile"
36566 case "(($ac_try" in
36567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36568   *) ac_try_echo=$ac_try;;
36569 esac
36570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36571 $as_echo "$ac_try_echo") >&5
36572   (eval "$ac_compile") 2>conftest.er1
36573   ac_status=$?
36574   grep -v '^ *+' conftest.er1 >conftest.err
36575   rm -f conftest.er1
36576   cat conftest.err >&5
36577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578   (exit $ac_status); } && {
36579          test -z "$ac_c_werror_flag" ||
36580          test ! -s conftest.err
36581        } && test -s conftest.$ac_objext; then
36582   ac_lo=$ac_mid; break
36583 else
36584   $as_echo "$as_me: failed program was:" >&5
36585 sed 's/^/| /' conftest.$ac_ext >&5
36586
36587         ac_hi=`expr '(' $ac_mid ')' - 1`
36588                         if test $ac_mid -le $ac_hi; then
36589                           ac_lo= ac_hi=
36590                           break
36591                         fi
36592                         ac_mid=`expr 2 '*' $ac_mid`
36593 fi
36594
36595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36596   done
36597 else
36598   $as_echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36600
36601         ac_lo= ac_hi=
36602 fi
36603
36604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36605 fi
36606
36607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36608 # Binary search between lo and hi bounds.
36609 while test "x$ac_lo" != "x$ac_hi"; do
36610   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36611   cat >conftest.$ac_ext <<_ACEOF
36612 /* confdefs.h.  */
36613 _ACEOF
36614 cat confdefs.h >>conftest.$ac_ext
36615 cat >>conftest.$ac_ext <<_ACEOF
36616 /* end confdefs.h.  */
36617 $ac_includes_default
36618 int
36619 main ()
36620 {
36621 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36622 test_array [0] = 0
36623
36624   ;
36625   return 0;
36626 }
36627 _ACEOF
36628 rm -f conftest.$ac_objext
36629 if { (ac_try="$ac_compile"
36630 case "(($ac_try" in
36631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632   *) ac_try_echo=$ac_try;;
36633 esac
36634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36635 $as_echo "$ac_try_echo") >&5
36636   (eval "$ac_compile") 2>conftest.er1
36637   ac_status=$?
36638   grep -v '^ *+' conftest.er1 >conftest.err
36639   rm -f conftest.er1
36640   cat conftest.err >&5
36641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36642   (exit $ac_status); } && {
36643          test -z "$ac_c_werror_flag" ||
36644          test ! -s conftest.err
36645        } && test -s conftest.$ac_objext; then
36646   ac_hi=$ac_mid
36647 else
36648   $as_echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36650
36651         ac_lo=`expr '(' $ac_mid ')' + 1`
36652 fi
36653
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36655 done
36656 case $ac_lo in
36657 ?*) ac_cv_sizeof_char=$ac_lo;;
36658 '') if test "$ac_cv_type_char" = yes; then
36659      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36661 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36662 See \`config.log' for more details." >&5
36663 $as_echo "$as_me: error: cannot compute sizeof (char)
36664 See \`config.log' for more details." >&2;}
36665    { (exit 77); exit 77; }; }; }
36666    else
36667      ac_cv_sizeof_char=0
36668    fi ;;
36669 esac
36670 else
36671   cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h.  */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h.  */
36677 $ac_includes_default
36678 static long int longval () { return (long int) (sizeof (char)); }
36679 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
36680 #include <stdio.h>
36681 #include <stdlib.h>
36682 int
36683 main ()
36684 {
36685
36686   FILE *f = fopen ("conftest.val", "w");
36687   if (! f)
36688     return 1;
36689   if (((long int) (sizeof (char))) < 0)
36690     {
36691       long int i = longval ();
36692       if (i != ((long int) (sizeof (char))))
36693         return 1;
36694       fprintf (f, "%ld", i);
36695     }
36696   else
36697     {
36698       unsigned long int i = ulongval ();
36699       if (i != ((long int) (sizeof (char))))
36700         return 1;
36701       fprintf (f, "%lu", i);
36702     }
36703   /* Do not output a trailing newline, as this causes \r\n confusion
36704      on some platforms.  */
36705   return ferror (f) || fclose (f) != 0;
36706
36707   ;
36708   return 0;
36709 }
36710 _ACEOF
36711 rm -f conftest$ac_exeext
36712 if { (ac_try="$ac_link"
36713 case "(($ac_try" in
36714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715   *) ac_try_echo=$ac_try;;
36716 esac
36717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36718 $as_echo "$ac_try_echo") >&5
36719   (eval "$ac_link") 2>&5
36720   ac_status=$?
36721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36723   { (case "(($ac_try" in
36724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36725   *) ac_try_echo=$ac_try;;
36726 esac
36727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36728 $as_echo "$ac_try_echo") >&5
36729   (eval "$ac_try") 2>&5
36730   ac_status=$?
36731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732   (exit $ac_status); }; }; then
36733   ac_cv_sizeof_char=`cat conftest.val`
36734 else
36735   $as_echo "$as_me: program exited with status $ac_status" >&5
36736 $as_echo "$as_me: failed program was:" >&5
36737 sed 's/^/| /' conftest.$ac_ext >&5
36738
36739 ( exit $ac_status )
36740 if test "$ac_cv_type_char" = yes; then
36741      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36743 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36744 See \`config.log' for more details." >&5
36745 $as_echo "$as_me: error: cannot compute sizeof (char)
36746 See \`config.log' for more details." >&2;}
36747    { (exit 77); exit 77; }; }; }
36748    else
36749      ac_cv_sizeof_char=0
36750    fi
36751 fi
36752 rm -rf conftest.dSYM
36753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36754 fi
36755 rm -f conftest.val
36756 fi
36757 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
36758 $as_echo "$ac_cv_sizeof_char" >&6; }
36759
36760
36761
36762 cat >>confdefs.h <<_ACEOF
36763 #define SIZEOF_CHAR $ac_cv_sizeof_char
36764 _ACEOF
36765
36766
36767 # The cast to long int works around a bug in the HP C Compiler
36768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36770 # This bug is HP SR number 8606223364.
36771 { $as_echo "$as_me:$LINENO: checking size of short int" >&5
36772 $as_echo_n "checking size of short int... " >&6; }
36773 if test "${ac_cv_sizeof_short_int+set}" = set; then
36774   $as_echo_n "(cached) " >&6
36775 else
36776   if test "$cross_compiling" = yes; then
36777   # Depending upon the size, compute the lo and hi bounds.
36778 cat >conftest.$ac_ext <<_ACEOF
36779 /* confdefs.h.  */
36780 _ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h.  */
36784 $ac_includes_default
36785 int
36786 main ()
36787 {
36788 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
36789 test_array [0] = 0
36790
36791   ;
36792   return 0;
36793 }
36794 _ACEOF
36795 rm -f conftest.$ac_objext
36796 if { (ac_try="$ac_compile"
36797 case "(($ac_try" in
36798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799   *) ac_try_echo=$ac_try;;
36800 esac
36801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36802 $as_echo "$ac_try_echo") >&5
36803   (eval "$ac_compile") 2>conftest.er1
36804   ac_status=$?
36805   grep -v '^ *+' conftest.er1 >conftest.err
36806   rm -f conftest.er1
36807   cat conftest.err >&5
36808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); } && {
36810          test -z "$ac_c_werror_flag" ||
36811          test ! -s conftest.err
36812        } && test -s conftest.$ac_objext; then
36813   ac_lo=0 ac_mid=0
36814   while :; do
36815     cat >conftest.$ac_ext <<_ACEOF
36816 /* confdefs.h.  */
36817 _ACEOF
36818 cat confdefs.h >>conftest.$ac_ext
36819 cat >>conftest.$ac_ext <<_ACEOF
36820 /* end confdefs.h.  */
36821 $ac_includes_default
36822 int
36823 main ()
36824 {
36825 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36826 test_array [0] = 0
36827
36828   ;
36829   return 0;
36830 }
36831 _ACEOF
36832 rm -f conftest.$ac_objext
36833 if { (ac_try="$ac_compile"
36834 case "(($ac_try" in
36835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36836   *) ac_try_echo=$ac_try;;
36837 esac
36838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36839 $as_echo "$ac_try_echo") >&5
36840   (eval "$ac_compile") 2>conftest.er1
36841   ac_status=$?
36842   grep -v '^ *+' conftest.er1 >conftest.err
36843   rm -f conftest.er1
36844   cat conftest.err >&5
36845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846   (exit $ac_status); } && {
36847          test -z "$ac_c_werror_flag" ||
36848          test ! -s conftest.err
36849        } && test -s conftest.$ac_objext; then
36850   ac_hi=$ac_mid; break
36851 else
36852   $as_echo "$as_me: failed program was:" >&5
36853 sed 's/^/| /' conftest.$ac_ext >&5
36854
36855         ac_lo=`expr $ac_mid + 1`
36856                         if test $ac_lo -le $ac_mid; then
36857                           ac_lo= ac_hi=
36858                           break
36859                         fi
36860                         ac_mid=`expr 2 '*' $ac_mid + 1`
36861 fi
36862
36863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36864   done
36865 else
36866   $as_echo "$as_me: failed program was:" >&5
36867 sed 's/^/| /' conftest.$ac_ext >&5
36868
36869         cat >conftest.$ac_ext <<_ACEOF
36870 /* confdefs.h.  */
36871 _ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h.  */
36875 $ac_includes_default
36876 int
36877 main ()
36878 {
36879 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
36880 test_array [0] = 0
36881
36882   ;
36883   return 0;
36884 }
36885 _ACEOF
36886 rm -f conftest.$ac_objext
36887 if { (ac_try="$ac_compile"
36888 case "(($ac_try" in
36889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890   *) ac_try_echo=$ac_try;;
36891 esac
36892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36893 $as_echo "$ac_try_echo") >&5
36894   (eval "$ac_compile") 2>conftest.er1
36895   ac_status=$?
36896   grep -v '^ *+' conftest.er1 >conftest.err
36897   rm -f conftest.er1
36898   cat conftest.err >&5
36899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900   (exit $ac_status); } && {
36901          test -z "$ac_c_werror_flag" ||
36902          test ! -s conftest.err
36903        } && test -s conftest.$ac_objext; then
36904   ac_hi=-1 ac_mid=-1
36905   while :; do
36906     cat >conftest.$ac_ext <<_ACEOF
36907 /* confdefs.h.  */
36908 _ACEOF
36909 cat confdefs.h >>conftest.$ac_ext
36910 cat >>conftest.$ac_ext <<_ACEOF
36911 /* end confdefs.h.  */
36912 $ac_includes_default
36913 int
36914 main ()
36915 {
36916 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
36917 test_array [0] = 0
36918
36919   ;
36920   return 0;
36921 }
36922 _ACEOF
36923 rm -f conftest.$ac_objext
36924 if { (ac_try="$ac_compile"
36925 case "(($ac_try" in
36926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36927   *) ac_try_echo=$ac_try;;
36928 esac
36929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36930 $as_echo "$ac_try_echo") >&5
36931   (eval "$ac_compile") 2>conftest.er1
36932   ac_status=$?
36933   grep -v '^ *+' conftest.er1 >conftest.err
36934   rm -f conftest.er1
36935   cat conftest.err >&5
36936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937   (exit $ac_status); } && {
36938          test -z "$ac_c_werror_flag" ||
36939          test ! -s conftest.err
36940        } && test -s conftest.$ac_objext; then
36941   ac_lo=$ac_mid; break
36942 else
36943   $as_echo "$as_me: failed program was:" >&5
36944 sed 's/^/| /' conftest.$ac_ext >&5
36945
36946         ac_hi=`expr '(' $ac_mid ')' - 1`
36947                         if test $ac_mid -le $ac_hi; then
36948                           ac_lo= ac_hi=
36949                           break
36950                         fi
36951                         ac_mid=`expr 2 '*' $ac_mid`
36952 fi
36953
36954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36955   done
36956 else
36957   $as_echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36959
36960         ac_lo= ac_hi=
36961 fi
36962
36963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36964 fi
36965
36966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36967 # Binary search between lo and hi bounds.
36968 while test "x$ac_lo" != "x$ac_hi"; do
36969   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36970   cat >conftest.$ac_ext <<_ACEOF
36971 /* confdefs.h.  */
36972 _ACEOF
36973 cat confdefs.h >>conftest.$ac_ext
36974 cat >>conftest.$ac_ext <<_ACEOF
36975 /* end confdefs.h.  */
36976 $ac_includes_default
36977 int
36978 main ()
36979 {
36980 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36981 test_array [0] = 0
36982
36983   ;
36984   return 0;
36985 }
36986 _ACEOF
36987 rm -f conftest.$ac_objext
36988 if { (ac_try="$ac_compile"
36989 case "(($ac_try" in
36990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36991   *) ac_try_echo=$ac_try;;
36992 esac
36993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36994 $as_echo "$ac_try_echo") >&5
36995   (eval "$ac_compile") 2>conftest.er1
36996   ac_status=$?
36997   grep -v '^ *+' conftest.er1 >conftest.err
36998   rm -f conftest.er1
36999   cat conftest.err >&5
37000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001   (exit $ac_status); } && {
37002          test -z "$ac_c_werror_flag" ||
37003          test ! -s conftest.err
37004        } && test -s conftest.$ac_objext; then
37005   ac_hi=$ac_mid
37006 else
37007   $as_echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.$ac_ext >&5
37009
37010         ac_lo=`expr '(' $ac_mid ')' + 1`
37011 fi
37012
37013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37014 done
37015 case $ac_lo in
37016 ?*) ac_cv_sizeof_short_int=$ac_lo;;
37017 '') if test "$ac_cv_type_short_int" = yes; then
37018      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37020 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37021 See \`config.log' for more details." >&5
37022 $as_echo "$as_me: error: cannot compute sizeof (short int)
37023 See \`config.log' for more details." >&2;}
37024    { (exit 77); exit 77; }; }; }
37025    else
37026      ac_cv_sizeof_short_int=0
37027    fi ;;
37028 esac
37029 else
37030   cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036 $ac_includes_default
37037 static long int longval () { return (long int) (sizeof (short int)); }
37038 static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
37039 #include <stdio.h>
37040 #include <stdlib.h>
37041 int
37042 main ()
37043 {
37044
37045   FILE *f = fopen ("conftest.val", "w");
37046   if (! f)
37047     return 1;
37048   if (((long int) (sizeof (short int))) < 0)
37049     {
37050       long int i = longval ();
37051       if (i != ((long int) (sizeof (short int))))
37052         return 1;
37053       fprintf (f, "%ld", i);
37054     }
37055   else
37056     {
37057       unsigned long int i = ulongval ();
37058       if (i != ((long int) (sizeof (short int))))
37059         return 1;
37060       fprintf (f, "%lu", i);
37061     }
37062   /* Do not output a trailing newline, as this causes \r\n confusion
37063      on some platforms.  */
37064   return ferror (f) || fclose (f) != 0;
37065
37066   ;
37067   return 0;
37068 }
37069 _ACEOF
37070 rm -f conftest$ac_exeext
37071 if { (ac_try="$ac_link"
37072 case "(($ac_try" in
37073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37074   *) ac_try_echo=$ac_try;;
37075 esac
37076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37077 $as_echo "$ac_try_echo") >&5
37078   (eval "$ac_link") 2>&5
37079   ac_status=$?
37080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37082   { (case "(($ac_try" in
37083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37084   *) ac_try_echo=$ac_try;;
37085 esac
37086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37087 $as_echo "$ac_try_echo") >&5
37088   (eval "$ac_try") 2>&5
37089   ac_status=$?
37090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091   (exit $ac_status); }; }; then
37092   ac_cv_sizeof_short_int=`cat conftest.val`
37093 else
37094   $as_echo "$as_me: program exited with status $ac_status" >&5
37095 $as_echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098 ( exit $ac_status )
37099 if test "$ac_cv_type_short_int" = yes; then
37100      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37102 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37103 See \`config.log' for more details." >&5
37104 $as_echo "$as_me: error: cannot compute sizeof (short int)
37105 See \`config.log' for more details." >&2;}
37106    { (exit 77); exit 77; }; }; }
37107    else
37108      ac_cv_sizeof_short_int=0
37109    fi
37110 fi
37111 rm -rf conftest.dSYM
37112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37113 fi
37114 rm -f conftest.val
37115 fi
37116 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
37117 $as_echo "$ac_cv_sizeof_short_int" >&6; }
37118
37119
37120
37121 cat >>confdefs.h <<_ACEOF
37122 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
37123 _ACEOF
37124
37125
37126 # The cast to long int works around a bug in the HP C Compiler
37127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37129 # This bug is HP SR number 8606223364.
37130 { $as_echo "$as_me:$LINENO: checking size of int" >&5
37131 $as_echo_n "checking size of int... " >&6; }
37132 if test "${ac_cv_sizeof_int+set}" = set; then
37133   $as_echo_n "(cached) " >&6
37134 else
37135   if test "$cross_compiling" = yes; then
37136   # Depending upon the size, compute the lo and hi bounds.
37137 cat >conftest.$ac_ext <<_ACEOF
37138 /* confdefs.h.  */
37139 _ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h.  */
37143 $ac_includes_default
37144 int
37145 main ()
37146 {
37147 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
37148 test_array [0] = 0
37149
37150   ;
37151   return 0;
37152 }
37153 _ACEOF
37154 rm -f conftest.$ac_objext
37155 if { (ac_try="$ac_compile"
37156 case "(($ac_try" in
37157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37158   *) ac_try_echo=$ac_try;;
37159 esac
37160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37161 $as_echo "$ac_try_echo") >&5
37162   (eval "$ac_compile") 2>conftest.er1
37163   ac_status=$?
37164   grep -v '^ *+' conftest.er1 >conftest.err
37165   rm -f conftest.er1
37166   cat conftest.err >&5
37167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168   (exit $ac_status); } && {
37169          test -z "$ac_c_werror_flag" ||
37170          test ! -s conftest.err
37171        } && test -s conftest.$ac_objext; then
37172   ac_lo=0 ac_mid=0
37173   while :; do
37174     cat >conftest.$ac_ext <<_ACEOF
37175 /* confdefs.h.  */
37176 _ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h.  */
37180 $ac_includes_default
37181 int
37182 main ()
37183 {
37184 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37185 test_array [0] = 0
37186
37187   ;
37188   return 0;
37189 }
37190 _ACEOF
37191 rm -f conftest.$ac_objext
37192 if { (ac_try="$ac_compile"
37193 case "(($ac_try" in
37194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37195   *) ac_try_echo=$ac_try;;
37196 esac
37197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37198 $as_echo "$ac_try_echo") >&5
37199   (eval "$ac_compile") 2>conftest.er1
37200   ac_status=$?
37201   grep -v '^ *+' conftest.er1 >conftest.err
37202   rm -f conftest.er1
37203   cat conftest.err >&5
37204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205   (exit $ac_status); } && {
37206          test -z "$ac_c_werror_flag" ||
37207          test ! -s conftest.err
37208        } && test -s conftest.$ac_objext; then
37209   ac_hi=$ac_mid; break
37210 else
37211   $as_echo "$as_me: failed program was:" >&5
37212 sed 's/^/| /' conftest.$ac_ext >&5
37213
37214         ac_lo=`expr $ac_mid + 1`
37215                         if test $ac_lo -le $ac_mid; then
37216                           ac_lo= ac_hi=
37217                           break
37218                         fi
37219                         ac_mid=`expr 2 '*' $ac_mid + 1`
37220 fi
37221
37222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37223   done
37224 else
37225   $as_echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37227
37228         cat >conftest.$ac_ext <<_ACEOF
37229 /* confdefs.h.  */
37230 _ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h.  */
37234 $ac_includes_default
37235 int
37236 main ()
37237 {
37238 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
37239 test_array [0] = 0
37240
37241   ;
37242   return 0;
37243 }
37244 _ACEOF
37245 rm -f conftest.$ac_objext
37246 if { (ac_try="$ac_compile"
37247 case "(($ac_try" in
37248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249   *) ac_try_echo=$ac_try;;
37250 esac
37251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37252 $as_echo "$ac_try_echo") >&5
37253   (eval "$ac_compile") 2>conftest.er1
37254   ac_status=$?
37255   grep -v '^ *+' conftest.er1 >conftest.err
37256   rm -f conftest.er1
37257   cat conftest.err >&5
37258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259   (exit $ac_status); } && {
37260          test -z "$ac_c_werror_flag" ||
37261          test ! -s conftest.err
37262        } && test -s conftest.$ac_objext; then
37263   ac_hi=-1 ac_mid=-1
37264   while :; do
37265     cat >conftest.$ac_ext <<_ACEOF
37266 /* confdefs.h.  */
37267 _ACEOF
37268 cat confdefs.h >>conftest.$ac_ext
37269 cat >>conftest.$ac_ext <<_ACEOF
37270 /* end confdefs.h.  */
37271 $ac_includes_default
37272 int
37273 main ()
37274 {
37275 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
37276 test_array [0] = 0
37277
37278   ;
37279   return 0;
37280 }
37281 _ACEOF
37282 rm -f conftest.$ac_objext
37283 if { (ac_try="$ac_compile"
37284 case "(($ac_try" in
37285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37286   *) ac_try_echo=$ac_try;;
37287 esac
37288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37289 $as_echo "$ac_try_echo") >&5
37290   (eval "$ac_compile") 2>conftest.er1
37291   ac_status=$?
37292   grep -v '^ *+' conftest.er1 >conftest.err
37293   rm -f conftest.er1
37294   cat conftest.err >&5
37295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296   (exit $ac_status); } && {
37297          test -z "$ac_c_werror_flag" ||
37298          test ! -s conftest.err
37299        } && test -s conftest.$ac_objext; then
37300   ac_lo=$ac_mid; break
37301 else
37302   $as_echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37304
37305         ac_hi=`expr '(' $ac_mid ')' - 1`
37306                         if test $ac_mid -le $ac_hi; then
37307                           ac_lo= ac_hi=
37308                           break
37309                         fi
37310                         ac_mid=`expr 2 '*' $ac_mid`
37311 fi
37312
37313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37314   done
37315 else
37316   $as_echo "$as_me: failed program was:" >&5
37317 sed 's/^/| /' conftest.$ac_ext >&5
37318
37319         ac_lo= ac_hi=
37320 fi
37321
37322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37323 fi
37324
37325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37326 # Binary search between lo and hi bounds.
37327 while test "x$ac_lo" != "x$ac_hi"; do
37328   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37329   cat >conftest.$ac_ext <<_ACEOF
37330 /* confdefs.h.  */
37331 _ACEOF
37332 cat confdefs.h >>conftest.$ac_ext
37333 cat >>conftest.$ac_ext <<_ACEOF
37334 /* end confdefs.h.  */
37335 $ac_includes_default
37336 int
37337 main ()
37338 {
37339 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37340 test_array [0] = 0
37341
37342   ;
37343   return 0;
37344 }
37345 _ACEOF
37346 rm -f conftest.$ac_objext
37347 if { (ac_try="$ac_compile"
37348 case "(($ac_try" in
37349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37350   *) ac_try_echo=$ac_try;;
37351 esac
37352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37353 $as_echo "$ac_try_echo") >&5
37354   (eval "$ac_compile") 2>conftest.er1
37355   ac_status=$?
37356   grep -v '^ *+' conftest.er1 >conftest.err
37357   rm -f conftest.er1
37358   cat conftest.err >&5
37359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360   (exit $ac_status); } && {
37361          test -z "$ac_c_werror_flag" ||
37362          test ! -s conftest.err
37363        } && test -s conftest.$ac_objext; then
37364   ac_hi=$ac_mid
37365 else
37366   $as_echo "$as_me: failed program was:" >&5
37367 sed 's/^/| /' conftest.$ac_ext >&5
37368
37369         ac_lo=`expr '(' $ac_mid ')' + 1`
37370 fi
37371
37372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37373 done
37374 case $ac_lo in
37375 ?*) ac_cv_sizeof_int=$ac_lo;;
37376 '') if test "$ac_cv_type_int" = yes; then
37377      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37379 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37380 See \`config.log' for more details." >&5
37381 $as_echo "$as_me: error: cannot compute sizeof (int)
37382 See \`config.log' for more details." >&2;}
37383    { (exit 77); exit 77; }; }; }
37384    else
37385      ac_cv_sizeof_int=0
37386    fi ;;
37387 esac
37388 else
37389   cat >conftest.$ac_ext <<_ACEOF
37390 /* confdefs.h.  */
37391 _ACEOF
37392 cat confdefs.h >>conftest.$ac_ext
37393 cat >>conftest.$ac_ext <<_ACEOF
37394 /* end confdefs.h.  */
37395 $ac_includes_default
37396 static long int longval () { return (long int) (sizeof (int)); }
37397 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
37398 #include <stdio.h>
37399 #include <stdlib.h>
37400 int
37401 main ()
37402 {
37403
37404   FILE *f = fopen ("conftest.val", "w");
37405   if (! f)
37406     return 1;
37407   if (((long int) (sizeof (int))) < 0)
37408     {
37409       long int i = longval ();
37410       if (i != ((long int) (sizeof (int))))
37411         return 1;
37412       fprintf (f, "%ld", i);
37413     }
37414   else
37415     {
37416       unsigned long int i = ulongval ();
37417       if (i != ((long int) (sizeof (int))))
37418         return 1;
37419       fprintf (f, "%lu", i);
37420     }
37421   /* Do not output a trailing newline, as this causes \r\n confusion
37422      on some platforms.  */
37423   return ferror (f) || fclose (f) != 0;
37424
37425   ;
37426   return 0;
37427 }
37428 _ACEOF
37429 rm -f conftest$ac_exeext
37430 if { (ac_try="$ac_link"
37431 case "(($ac_try" in
37432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37433   *) ac_try_echo=$ac_try;;
37434 esac
37435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37436 $as_echo "$ac_try_echo") >&5
37437   (eval "$ac_link") 2>&5
37438   ac_status=$?
37439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37441   { (case "(($ac_try" in
37442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37443   *) ac_try_echo=$ac_try;;
37444 esac
37445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37446 $as_echo "$ac_try_echo") >&5
37447   (eval "$ac_try") 2>&5
37448   ac_status=$?
37449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450   (exit $ac_status); }; }; then
37451   ac_cv_sizeof_int=`cat conftest.val`
37452 else
37453   $as_echo "$as_me: program exited with status $ac_status" >&5
37454 $as_echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37456
37457 ( exit $ac_status )
37458 if test "$ac_cv_type_int" = yes; then
37459      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37461 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37462 See \`config.log' for more details." >&5
37463 $as_echo "$as_me: error: cannot compute sizeof (int)
37464 See \`config.log' for more details." >&2;}
37465    { (exit 77); exit 77; }; }; }
37466    else
37467      ac_cv_sizeof_int=0
37468    fi
37469 fi
37470 rm -rf conftest.dSYM
37471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37472 fi
37473 rm -f conftest.val
37474 fi
37475 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
37476 $as_echo "$ac_cv_sizeof_int" >&6; }
37477
37478
37479
37480 cat >>confdefs.h <<_ACEOF
37481 #define SIZEOF_INT $ac_cv_sizeof_int
37482 _ACEOF
37483
37484
37485 # The cast to long int works around a bug in the HP C Compiler
37486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37488 # This bug is HP SR number 8606223364.
37489 { $as_echo "$as_me:$LINENO: checking size of long int" >&5
37490 $as_echo_n "checking size of long int... " >&6; }
37491 if test "${ac_cv_sizeof_long_int+set}" = set; then
37492   $as_echo_n "(cached) " >&6
37493 else
37494   if test "$cross_compiling" = yes; then
37495   # Depending upon the size, compute the lo and hi bounds.
37496 cat >conftest.$ac_ext <<_ACEOF
37497 /* confdefs.h.  */
37498 _ACEOF
37499 cat confdefs.h >>conftest.$ac_ext
37500 cat >>conftest.$ac_ext <<_ACEOF
37501 /* end confdefs.h.  */
37502 $ac_includes_default
37503 int
37504 main ()
37505 {
37506 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
37507 test_array [0] = 0
37508
37509   ;
37510   return 0;
37511 }
37512 _ACEOF
37513 rm -f conftest.$ac_objext
37514 if { (ac_try="$ac_compile"
37515 case "(($ac_try" in
37516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37517   *) ac_try_echo=$ac_try;;
37518 esac
37519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37520 $as_echo "$ac_try_echo") >&5
37521   (eval "$ac_compile") 2>conftest.er1
37522   ac_status=$?
37523   grep -v '^ *+' conftest.er1 >conftest.err
37524   rm -f conftest.er1
37525   cat conftest.err >&5
37526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527   (exit $ac_status); } && {
37528          test -z "$ac_c_werror_flag" ||
37529          test ! -s conftest.err
37530        } && test -s conftest.$ac_objext; then
37531   ac_lo=0 ac_mid=0
37532   while :; do
37533     cat >conftest.$ac_ext <<_ACEOF
37534 /* confdefs.h.  */
37535 _ACEOF
37536 cat confdefs.h >>conftest.$ac_ext
37537 cat >>conftest.$ac_ext <<_ACEOF
37538 /* end confdefs.h.  */
37539 $ac_includes_default
37540 int
37541 main ()
37542 {
37543 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37544 test_array [0] = 0
37545
37546   ;
37547   return 0;
37548 }
37549 _ACEOF
37550 rm -f conftest.$ac_objext
37551 if { (ac_try="$ac_compile"
37552 case "(($ac_try" in
37553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37554   *) ac_try_echo=$ac_try;;
37555 esac
37556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37557 $as_echo "$ac_try_echo") >&5
37558   (eval "$ac_compile") 2>conftest.er1
37559   ac_status=$?
37560   grep -v '^ *+' conftest.er1 >conftest.err
37561   rm -f conftest.er1
37562   cat conftest.err >&5
37563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564   (exit $ac_status); } && {
37565          test -z "$ac_c_werror_flag" ||
37566          test ! -s conftest.err
37567        } && test -s conftest.$ac_objext; then
37568   ac_hi=$ac_mid; break
37569 else
37570   $as_echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37572
37573         ac_lo=`expr $ac_mid + 1`
37574                         if test $ac_lo -le $ac_mid; then
37575                           ac_lo= ac_hi=
37576                           break
37577                         fi
37578                         ac_mid=`expr 2 '*' $ac_mid + 1`
37579 fi
37580
37581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37582   done
37583 else
37584   $as_echo "$as_me: failed program was:" >&5
37585 sed 's/^/| /' conftest.$ac_ext >&5
37586
37587         cat >conftest.$ac_ext <<_ACEOF
37588 /* confdefs.h.  */
37589 _ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h.  */
37593 $ac_includes_default
37594 int
37595 main ()
37596 {
37597 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
37598 test_array [0] = 0
37599
37600   ;
37601   return 0;
37602 }
37603 _ACEOF
37604 rm -f conftest.$ac_objext
37605 if { (ac_try="$ac_compile"
37606 case "(($ac_try" in
37607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37608   *) ac_try_echo=$ac_try;;
37609 esac
37610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37611 $as_echo "$ac_try_echo") >&5
37612   (eval "$ac_compile") 2>conftest.er1
37613   ac_status=$?
37614   grep -v '^ *+' conftest.er1 >conftest.err
37615   rm -f conftest.er1
37616   cat conftest.err >&5
37617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618   (exit $ac_status); } && {
37619          test -z "$ac_c_werror_flag" ||
37620          test ! -s conftest.err
37621        } && test -s conftest.$ac_objext; then
37622   ac_hi=-1 ac_mid=-1
37623   while :; do
37624     cat >conftest.$ac_ext <<_ACEOF
37625 /* confdefs.h.  */
37626 _ACEOF
37627 cat confdefs.h >>conftest.$ac_ext
37628 cat >>conftest.$ac_ext <<_ACEOF
37629 /* end confdefs.h.  */
37630 $ac_includes_default
37631 int
37632 main ()
37633 {
37634 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
37635 test_array [0] = 0
37636
37637   ;
37638   return 0;
37639 }
37640 _ACEOF
37641 rm -f conftest.$ac_objext
37642 if { (ac_try="$ac_compile"
37643 case "(($ac_try" in
37644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645   *) ac_try_echo=$ac_try;;
37646 esac
37647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37648 $as_echo "$ac_try_echo") >&5
37649   (eval "$ac_compile") 2>conftest.er1
37650   ac_status=$?
37651   grep -v '^ *+' conftest.er1 >conftest.err
37652   rm -f conftest.er1
37653   cat conftest.err >&5
37654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655   (exit $ac_status); } && {
37656          test -z "$ac_c_werror_flag" ||
37657          test ! -s conftest.err
37658        } && test -s conftest.$ac_objext; then
37659   ac_lo=$ac_mid; break
37660 else
37661   $as_echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37663
37664         ac_hi=`expr '(' $ac_mid ')' - 1`
37665                         if test $ac_mid -le $ac_hi; then
37666                           ac_lo= ac_hi=
37667                           break
37668                         fi
37669                         ac_mid=`expr 2 '*' $ac_mid`
37670 fi
37671
37672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37673   done
37674 else
37675   $as_echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37677
37678         ac_lo= ac_hi=
37679 fi
37680
37681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37682 fi
37683
37684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37685 # Binary search between lo and hi bounds.
37686 while test "x$ac_lo" != "x$ac_hi"; do
37687   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37688   cat >conftest.$ac_ext <<_ACEOF
37689 /* confdefs.h.  */
37690 _ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h.  */
37694 $ac_includes_default
37695 int
37696 main ()
37697 {
37698 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37699 test_array [0] = 0
37700
37701   ;
37702   return 0;
37703 }
37704 _ACEOF
37705 rm -f conftest.$ac_objext
37706 if { (ac_try="$ac_compile"
37707 case "(($ac_try" in
37708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709   *) ac_try_echo=$ac_try;;
37710 esac
37711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37712 $as_echo "$ac_try_echo") >&5
37713   (eval "$ac_compile") 2>conftest.er1
37714   ac_status=$?
37715   grep -v '^ *+' conftest.er1 >conftest.err
37716   rm -f conftest.er1
37717   cat conftest.err >&5
37718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719   (exit $ac_status); } && {
37720          test -z "$ac_c_werror_flag" ||
37721          test ! -s conftest.err
37722        } && test -s conftest.$ac_objext; then
37723   ac_hi=$ac_mid
37724 else
37725   $as_echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37727
37728         ac_lo=`expr '(' $ac_mid ')' + 1`
37729 fi
37730
37731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37732 done
37733 case $ac_lo in
37734 ?*) ac_cv_sizeof_long_int=$ac_lo;;
37735 '') if test "$ac_cv_type_long_int" = yes; then
37736      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37738 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37739 See \`config.log' for more details." >&5
37740 $as_echo "$as_me: error: cannot compute sizeof (long int)
37741 See \`config.log' for more details." >&2;}
37742    { (exit 77); exit 77; }; }; }
37743    else
37744      ac_cv_sizeof_long_int=0
37745    fi ;;
37746 esac
37747 else
37748   cat >conftest.$ac_ext <<_ACEOF
37749 /* confdefs.h.  */
37750 _ACEOF
37751 cat confdefs.h >>conftest.$ac_ext
37752 cat >>conftest.$ac_ext <<_ACEOF
37753 /* end confdefs.h.  */
37754 $ac_includes_default
37755 static long int longval () { return (long int) (sizeof (long int)); }
37756 static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
37757 #include <stdio.h>
37758 #include <stdlib.h>
37759 int
37760 main ()
37761 {
37762
37763   FILE *f = fopen ("conftest.val", "w");
37764   if (! f)
37765     return 1;
37766   if (((long int) (sizeof (long int))) < 0)
37767     {
37768       long int i = longval ();
37769       if (i != ((long int) (sizeof (long int))))
37770         return 1;
37771       fprintf (f, "%ld", i);
37772     }
37773   else
37774     {
37775       unsigned long int i = ulongval ();
37776       if (i != ((long int) (sizeof (long int))))
37777         return 1;
37778       fprintf (f, "%lu", i);
37779     }
37780   /* Do not output a trailing newline, as this causes \r\n confusion
37781      on some platforms.  */
37782   return ferror (f) || fclose (f) != 0;
37783
37784   ;
37785   return 0;
37786 }
37787 _ACEOF
37788 rm -f conftest$ac_exeext
37789 if { (ac_try="$ac_link"
37790 case "(($ac_try" in
37791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37792   *) ac_try_echo=$ac_try;;
37793 esac
37794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37795 $as_echo "$ac_try_echo") >&5
37796   (eval "$ac_link") 2>&5
37797   ac_status=$?
37798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37800   { (case "(($ac_try" in
37801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37802   *) ac_try_echo=$ac_try;;
37803 esac
37804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37805 $as_echo "$ac_try_echo") >&5
37806   (eval "$ac_try") 2>&5
37807   ac_status=$?
37808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809   (exit $ac_status); }; }; then
37810   ac_cv_sizeof_long_int=`cat conftest.val`
37811 else
37812   $as_echo "$as_me: program exited with status $ac_status" >&5
37813 $as_echo "$as_me: failed program was:" >&5
37814 sed 's/^/| /' conftest.$ac_ext >&5
37815
37816 ( exit $ac_status )
37817 if test "$ac_cv_type_long_int" = yes; then
37818      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37820 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37821 See \`config.log' for more details." >&5
37822 $as_echo "$as_me: error: cannot compute sizeof (long int)
37823 See \`config.log' for more details." >&2;}
37824    { (exit 77); exit 77; }; }; }
37825    else
37826      ac_cv_sizeof_long_int=0
37827    fi
37828 fi
37829 rm -rf conftest.dSYM
37830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37831 fi
37832 rm -f conftest.val
37833 fi
37834 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
37835 $as_echo "$ac_cv_sizeof_long_int" >&6; }
37836
37837
37838
37839 cat >>confdefs.h <<_ACEOF
37840 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
37841 _ACEOF
37842
37843
37844 # The cast to long int works around a bug in the HP C Compiler
37845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37847 # This bug is HP SR number 8606223364.
37848 { $as_echo "$as_me:$LINENO: checking size of long long int" >&5
37849 $as_echo_n "checking size of long long int... " >&6; }
37850 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
37851   $as_echo_n "(cached) " >&6
37852 else
37853   if test "$cross_compiling" = yes; then
37854   # Depending upon the size, compute the lo and hi bounds.
37855 cat >conftest.$ac_ext <<_ACEOF
37856 /* confdefs.h.  */
37857 _ACEOF
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h.  */
37861 $ac_includes_default
37862 int
37863 main ()
37864 {
37865 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
37866 test_array [0] = 0
37867
37868   ;
37869   return 0;
37870 }
37871 _ACEOF
37872 rm -f conftest.$ac_objext
37873 if { (ac_try="$ac_compile"
37874 case "(($ac_try" in
37875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37876   *) ac_try_echo=$ac_try;;
37877 esac
37878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37879 $as_echo "$ac_try_echo") >&5
37880   (eval "$ac_compile") 2>conftest.er1
37881   ac_status=$?
37882   grep -v '^ *+' conftest.er1 >conftest.err
37883   rm -f conftest.er1
37884   cat conftest.err >&5
37885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); } && {
37887          test -z "$ac_c_werror_flag" ||
37888          test ! -s conftest.err
37889        } && test -s conftest.$ac_objext; then
37890   ac_lo=0 ac_mid=0
37891   while :; do
37892     cat >conftest.$ac_ext <<_ACEOF
37893 /* confdefs.h.  */
37894 _ACEOF
37895 cat confdefs.h >>conftest.$ac_ext
37896 cat >>conftest.$ac_ext <<_ACEOF
37897 /* end confdefs.h.  */
37898 $ac_includes_default
37899 int
37900 main ()
37901 {
37902 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
37903 test_array [0] = 0
37904
37905   ;
37906   return 0;
37907 }
37908 _ACEOF
37909 rm -f conftest.$ac_objext
37910 if { (ac_try="$ac_compile"
37911 case "(($ac_try" in
37912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37913   *) ac_try_echo=$ac_try;;
37914 esac
37915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37916 $as_echo "$ac_try_echo") >&5
37917   (eval "$ac_compile") 2>conftest.er1
37918   ac_status=$?
37919   grep -v '^ *+' conftest.er1 >conftest.err
37920   rm -f conftest.er1
37921   cat conftest.err >&5
37922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923   (exit $ac_status); } && {
37924          test -z "$ac_c_werror_flag" ||
37925          test ! -s conftest.err
37926        } && test -s conftest.$ac_objext; then
37927   ac_hi=$ac_mid; break
37928 else
37929   $as_echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37931
37932         ac_lo=`expr $ac_mid + 1`
37933                         if test $ac_lo -le $ac_mid; then
37934                           ac_lo= ac_hi=
37935                           break
37936                         fi
37937                         ac_mid=`expr 2 '*' $ac_mid + 1`
37938 fi
37939
37940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37941   done
37942 else
37943   $as_echo "$as_me: failed program was:" >&5
37944 sed 's/^/| /' conftest.$ac_ext >&5
37945
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 $ac_includes_default
37953 int
37954 main ()
37955 {
37956 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
37957 test_array [0] = 0
37958
37959   ;
37960   return 0;
37961 }
37962 _ACEOF
37963 rm -f conftest.$ac_objext
37964 if { (ac_try="$ac_compile"
37965 case "(($ac_try" in
37966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967   *) ac_try_echo=$ac_try;;
37968 esac
37969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37970 $as_echo "$ac_try_echo") >&5
37971   (eval "$ac_compile") 2>conftest.er1
37972   ac_status=$?
37973   grep -v '^ *+' conftest.er1 >conftest.err
37974   rm -f conftest.er1
37975   cat conftest.err >&5
37976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); } && {
37978          test -z "$ac_c_werror_flag" ||
37979          test ! -s conftest.err
37980        } && test -s conftest.$ac_objext; then
37981   ac_hi=-1 ac_mid=-1
37982   while :; do
37983     cat >conftest.$ac_ext <<_ACEOF
37984 /* confdefs.h.  */
37985 _ACEOF
37986 cat confdefs.h >>conftest.$ac_ext
37987 cat >>conftest.$ac_ext <<_ACEOF
37988 /* end confdefs.h.  */
37989 $ac_includes_default
37990 int
37991 main ()
37992 {
37993 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
37994 test_array [0] = 0
37995
37996   ;
37997   return 0;
37998 }
37999 _ACEOF
38000 rm -f conftest.$ac_objext
38001 if { (ac_try="$ac_compile"
38002 case "(($ac_try" in
38003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38004   *) ac_try_echo=$ac_try;;
38005 esac
38006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38007 $as_echo "$ac_try_echo") >&5
38008   (eval "$ac_compile") 2>conftest.er1
38009   ac_status=$?
38010   grep -v '^ *+' conftest.er1 >conftest.err
38011   rm -f conftest.er1
38012   cat conftest.err >&5
38013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014   (exit $ac_status); } && {
38015          test -z "$ac_c_werror_flag" ||
38016          test ! -s conftest.err
38017        } && test -s conftest.$ac_objext; then
38018   ac_lo=$ac_mid; break
38019 else
38020   $as_echo "$as_me: failed program was:" >&5
38021 sed 's/^/| /' conftest.$ac_ext >&5
38022
38023         ac_hi=`expr '(' $ac_mid ')' - 1`
38024                         if test $ac_mid -le $ac_hi; then
38025                           ac_lo= ac_hi=
38026                           break
38027                         fi
38028                         ac_mid=`expr 2 '*' $ac_mid`
38029 fi
38030
38031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38032   done
38033 else
38034   $as_echo "$as_me: failed program was:" >&5
38035 sed 's/^/| /' conftest.$ac_ext >&5
38036
38037         ac_lo= ac_hi=
38038 fi
38039
38040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38041 fi
38042
38043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38044 # Binary search between lo and hi bounds.
38045 while test "x$ac_lo" != "x$ac_hi"; do
38046   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38047   cat >conftest.$ac_ext <<_ACEOF
38048 /* confdefs.h.  */
38049 _ACEOF
38050 cat confdefs.h >>conftest.$ac_ext
38051 cat >>conftest.$ac_ext <<_ACEOF
38052 /* end confdefs.h.  */
38053 $ac_includes_default
38054 int
38055 main ()
38056 {
38057 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38058 test_array [0] = 0
38059
38060   ;
38061   return 0;
38062 }
38063 _ACEOF
38064 rm -f conftest.$ac_objext
38065 if { (ac_try="$ac_compile"
38066 case "(($ac_try" in
38067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38068   *) ac_try_echo=$ac_try;;
38069 esac
38070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38071 $as_echo "$ac_try_echo") >&5
38072   (eval "$ac_compile") 2>conftest.er1
38073   ac_status=$?
38074   grep -v '^ *+' conftest.er1 >conftest.err
38075   rm -f conftest.er1
38076   cat conftest.err >&5
38077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078   (exit $ac_status); } && {
38079          test -z "$ac_c_werror_flag" ||
38080          test ! -s conftest.err
38081        } && test -s conftest.$ac_objext; then
38082   ac_hi=$ac_mid
38083 else
38084   $as_echo "$as_me: failed program was:" >&5
38085 sed 's/^/| /' conftest.$ac_ext >&5
38086
38087         ac_lo=`expr '(' $ac_mid ')' + 1`
38088 fi
38089
38090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38091 done
38092 case $ac_lo in
38093 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
38094 '') if test "$ac_cv_type_long_long_int" = yes; then
38095      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38097 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38098 See \`config.log' for more details." >&5
38099 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38100 See \`config.log' for more details." >&2;}
38101    { (exit 77); exit 77; }; }; }
38102    else
38103      ac_cv_sizeof_long_long_int=0
38104    fi ;;
38105 esac
38106 else
38107   cat >conftest.$ac_ext <<_ACEOF
38108 /* confdefs.h.  */
38109 _ACEOF
38110 cat confdefs.h >>conftest.$ac_ext
38111 cat >>conftest.$ac_ext <<_ACEOF
38112 /* end confdefs.h.  */
38113 $ac_includes_default
38114 static long int longval () { return (long int) (sizeof (long long int)); }
38115 static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
38116 #include <stdio.h>
38117 #include <stdlib.h>
38118 int
38119 main ()
38120 {
38121
38122   FILE *f = fopen ("conftest.val", "w");
38123   if (! f)
38124     return 1;
38125   if (((long int) (sizeof (long long int))) < 0)
38126     {
38127       long int i = longval ();
38128       if (i != ((long int) (sizeof (long long int))))
38129         return 1;
38130       fprintf (f, "%ld", i);
38131     }
38132   else
38133     {
38134       unsigned long int i = ulongval ();
38135       if (i != ((long int) (sizeof (long long int))))
38136         return 1;
38137       fprintf (f, "%lu", i);
38138     }
38139   /* Do not output a trailing newline, as this causes \r\n confusion
38140      on some platforms.  */
38141   return ferror (f) || fclose (f) != 0;
38142
38143   ;
38144   return 0;
38145 }
38146 _ACEOF
38147 rm -f conftest$ac_exeext
38148 if { (ac_try="$ac_link"
38149 case "(($ac_try" in
38150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38151   *) ac_try_echo=$ac_try;;
38152 esac
38153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38154 $as_echo "$ac_try_echo") >&5
38155   (eval "$ac_link") 2>&5
38156   ac_status=$?
38157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38159   { (case "(($ac_try" in
38160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38161   *) ac_try_echo=$ac_try;;
38162 esac
38163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38164 $as_echo "$ac_try_echo") >&5
38165   (eval "$ac_try") 2>&5
38166   ac_status=$?
38167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168   (exit $ac_status); }; }; then
38169   ac_cv_sizeof_long_long_int=`cat conftest.val`
38170 else
38171   $as_echo "$as_me: program exited with status $ac_status" >&5
38172 $as_echo "$as_me: failed program was:" >&5
38173 sed 's/^/| /' conftest.$ac_ext >&5
38174
38175 ( exit $ac_status )
38176 if test "$ac_cv_type_long_long_int" = yes; then
38177      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38179 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38180 See \`config.log' for more details." >&5
38181 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38182 See \`config.log' for more details." >&2;}
38183    { (exit 77); exit 77; }; }; }
38184    else
38185      ac_cv_sizeof_long_long_int=0
38186    fi
38187 fi
38188 rm -rf conftest.dSYM
38189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38190 fi
38191 rm -f conftest.val
38192 fi
38193 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
38194 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
38195
38196
38197
38198 cat >>confdefs.h <<_ACEOF
38199 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
38200 _ACEOF
38201
38202
38203 # The cast to long int works around a bug in the HP C Compiler
38204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38206 # This bug is HP SR number 8606223364.
38207 { $as_echo "$as_me:$LINENO: checking size of int *" >&5
38208 $as_echo_n "checking size of int *... " >&6; }
38209 if test "${ac_cv_sizeof_int_p+set}" = set; then
38210   $as_echo_n "(cached) " >&6
38211 else
38212   if test "$cross_compiling" = yes; then
38213   # Depending upon the size, compute the lo and hi bounds.
38214 cat >conftest.$ac_ext <<_ACEOF
38215 /* confdefs.h.  */
38216 _ACEOF
38217 cat confdefs.h >>conftest.$ac_ext
38218 cat >>conftest.$ac_ext <<_ACEOF
38219 /* end confdefs.h.  */
38220 $ac_includes_default
38221 int
38222 main ()
38223 {
38224 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= 0)];
38225 test_array [0] = 0
38226
38227   ;
38228   return 0;
38229 }
38230 _ACEOF
38231 rm -f conftest.$ac_objext
38232 if { (ac_try="$ac_compile"
38233 case "(($ac_try" in
38234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235   *) ac_try_echo=$ac_try;;
38236 esac
38237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38238 $as_echo "$ac_try_echo") >&5
38239   (eval "$ac_compile") 2>conftest.er1
38240   ac_status=$?
38241   grep -v '^ *+' conftest.er1 >conftest.err
38242   rm -f conftest.er1
38243   cat conftest.err >&5
38244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245   (exit $ac_status); } && {
38246          test -z "$ac_c_werror_flag" ||
38247          test ! -s conftest.err
38248        } && test -s conftest.$ac_objext; then
38249   ac_lo=0 ac_mid=0
38250   while :; do
38251     cat >conftest.$ac_ext <<_ACEOF
38252 /* confdefs.h.  */
38253 _ACEOF
38254 cat confdefs.h >>conftest.$ac_ext
38255 cat >>conftest.$ac_ext <<_ACEOF
38256 /* end confdefs.h.  */
38257 $ac_includes_default
38258 int
38259 main ()
38260 {
38261 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38262 test_array [0] = 0
38263
38264   ;
38265   return 0;
38266 }
38267 _ACEOF
38268 rm -f conftest.$ac_objext
38269 if { (ac_try="$ac_compile"
38270 case "(($ac_try" in
38271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38272   *) ac_try_echo=$ac_try;;
38273 esac
38274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38275 $as_echo "$ac_try_echo") >&5
38276   (eval "$ac_compile") 2>conftest.er1
38277   ac_status=$?
38278   grep -v '^ *+' conftest.er1 >conftest.err
38279   rm -f conftest.er1
38280   cat conftest.err >&5
38281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282   (exit $ac_status); } && {
38283          test -z "$ac_c_werror_flag" ||
38284          test ! -s conftest.err
38285        } && test -s conftest.$ac_objext; then
38286   ac_hi=$ac_mid; break
38287 else
38288   $as_echo "$as_me: failed program was:" >&5
38289 sed 's/^/| /' conftest.$ac_ext >&5
38290
38291         ac_lo=`expr $ac_mid + 1`
38292                         if test $ac_lo -le $ac_mid; then
38293                           ac_lo= ac_hi=
38294                           break
38295                         fi
38296                         ac_mid=`expr 2 '*' $ac_mid + 1`
38297 fi
38298
38299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38300   done
38301 else
38302   $as_echo "$as_me: failed program was:" >&5
38303 sed 's/^/| /' conftest.$ac_ext >&5
38304
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 $ac_includes_default
38312 int
38313 main ()
38314 {
38315 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) < 0)];
38316 test_array [0] = 0
38317
38318   ;
38319   return 0;
38320 }
38321 _ACEOF
38322 rm -f conftest.$ac_objext
38323 if { (ac_try="$ac_compile"
38324 case "(($ac_try" in
38325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38326   *) ac_try_echo=$ac_try;;
38327 esac
38328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38329 $as_echo "$ac_try_echo") >&5
38330   (eval "$ac_compile") 2>conftest.er1
38331   ac_status=$?
38332   grep -v '^ *+' conftest.er1 >conftest.err
38333   rm -f conftest.er1
38334   cat conftest.err >&5
38335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336   (exit $ac_status); } && {
38337          test -z "$ac_c_werror_flag" ||
38338          test ! -s conftest.err
38339        } && test -s conftest.$ac_objext; then
38340   ac_hi=-1 ac_mid=-1
38341   while :; do
38342     cat >conftest.$ac_ext <<_ACEOF
38343 /* confdefs.h.  */
38344 _ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h.  */
38348 $ac_includes_default
38349 int
38350 main ()
38351 {
38352 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= $ac_mid)];
38353 test_array [0] = 0
38354
38355   ;
38356   return 0;
38357 }
38358 _ACEOF
38359 rm -f conftest.$ac_objext
38360 if { (ac_try="$ac_compile"
38361 case "(($ac_try" in
38362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38363   *) ac_try_echo=$ac_try;;
38364 esac
38365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38366 $as_echo "$ac_try_echo") >&5
38367   (eval "$ac_compile") 2>conftest.er1
38368   ac_status=$?
38369   grep -v '^ *+' conftest.er1 >conftest.err
38370   rm -f conftest.er1
38371   cat conftest.err >&5
38372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373   (exit $ac_status); } && {
38374          test -z "$ac_c_werror_flag" ||
38375          test ! -s conftest.err
38376        } && test -s conftest.$ac_objext; then
38377   ac_lo=$ac_mid; break
38378 else
38379   $as_echo "$as_me: failed program was:" >&5
38380 sed 's/^/| /' conftest.$ac_ext >&5
38381
38382         ac_hi=`expr '(' $ac_mid ')' - 1`
38383                         if test $ac_mid -le $ac_hi; then
38384                           ac_lo= ac_hi=
38385                           break
38386                         fi
38387                         ac_mid=`expr 2 '*' $ac_mid`
38388 fi
38389
38390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38391   done
38392 else
38393   $as_echo "$as_me: failed program was:" >&5
38394 sed 's/^/| /' conftest.$ac_ext >&5
38395
38396         ac_lo= ac_hi=
38397 fi
38398
38399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38400 fi
38401
38402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38403 # Binary search between lo and hi bounds.
38404 while test "x$ac_lo" != "x$ac_hi"; do
38405   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38406   cat >conftest.$ac_ext <<_ACEOF
38407 /* confdefs.h.  */
38408 _ACEOF
38409 cat confdefs.h >>conftest.$ac_ext
38410 cat >>conftest.$ac_ext <<_ACEOF
38411 /* end confdefs.h.  */
38412 $ac_includes_default
38413 int
38414 main ()
38415 {
38416 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38417 test_array [0] = 0
38418
38419   ;
38420   return 0;
38421 }
38422 _ACEOF
38423 rm -f conftest.$ac_objext
38424 if { (ac_try="$ac_compile"
38425 case "(($ac_try" in
38426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38427   *) ac_try_echo=$ac_try;;
38428 esac
38429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38430 $as_echo "$ac_try_echo") >&5
38431   (eval "$ac_compile") 2>conftest.er1
38432   ac_status=$?
38433   grep -v '^ *+' conftest.er1 >conftest.err
38434   rm -f conftest.er1
38435   cat conftest.err >&5
38436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437   (exit $ac_status); } && {
38438          test -z "$ac_c_werror_flag" ||
38439          test ! -s conftest.err
38440        } && test -s conftest.$ac_objext; then
38441   ac_hi=$ac_mid
38442 else
38443   $as_echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38445
38446         ac_lo=`expr '(' $ac_mid ')' + 1`
38447 fi
38448
38449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38450 done
38451 case $ac_lo in
38452 ?*) ac_cv_sizeof_int_p=$ac_lo;;
38453 '') if test "$ac_cv_type_int_p" = yes; then
38454      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38456 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38457 See \`config.log' for more details." >&5
38458 $as_echo "$as_me: error: cannot compute sizeof (int *)
38459 See \`config.log' for more details." >&2;}
38460    { (exit 77); exit 77; }; }; }
38461    else
38462      ac_cv_sizeof_int_p=0
38463    fi ;;
38464 esac
38465 else
38466   cat >conftest.$ac_ext <<_ACEOF
38467 /* confdefs.h.  */
38468 _ACEOF
38469 cat confdefs.h >>conftest.$ac_ext
38470 cat >>conftest.$ac_ext <<_ACEOF
38471 /* end confdefs.h.  */
38472 $ac_includes_default
38473 static long int longval () { return (long int) (sizeof (int *)); }
38474 static unsigned long int ulongval () { return (long int) (sizeof (int *)); }
38475 #include <stdio.h>
38476 #include <stdlib.h>
38477 int
38478 main ()
38479 {
38480
38481   FILE *f = fopen ("conftest.val", "w");
38482   if (! f)
38483     return 1;
38484   if (((long int) (sizeof (int *))) < 0)
38485     {
38486       long int i = longval ();
38487       if (i != ((long int) (sizeof (int *))))
38488         return 1;
38489       fprintf (f, "%ld", i);
38490     }
38491   else
38492     {
38493       unsigned long int i = ulongval ();
38494       if (i != ((long int) (sizeof (int *))))
38495         return 1;
38496       fprintf (f, "%lu", i);
38497     }
38498   /* Do not output a trailing newline, as this causes \r\n confusion
38499      on some platforms.  */
38500   return ferror (f) || fclose (f) != 0;
38501
38502   ;
38503   return 0;
38504 }
38505 _ACEOF
38506 rm -f conftest$ac_exeext
38507 if { (ac_try="$ac_link"
38508 case "(($ac_try" in
38509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38510   *) ac_try_echo=$ac_try;;
38511 esac
38512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38513 $as_echo "$ac_try_echo") >&5
38514   (eval "$ac_link") 2>&5
38515   ac_status=$?
38516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38518   { (case "(($ac_try" in
38519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38520   *) ac_try_echo=$ac_try;;
38521 esac
38522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38523 $as_echo "$ac_try_echo") >&5
38524   (eval "$ac_try") 2>&5
38525   ac_status=$?
38526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527   (exit $ac_status); }; }; then
38528   ac_cv_sizeof_int_p=`cat conftest.val`
38529 else
38530   $as_echo "$as_me: program exited with status $ac_status" >&5
38531 $as_echo "$as_me: failed program was:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38533
38534 ( exit $ac_status )
38535 if test "$ac_cv_type_int_p" = yes; then
38536      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38538 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38539 See \`config.log' for more details." >&5
38540 $as_echo "$as_me: error: cannot compute sizeof (int *)
38541 See \`config.log' for more details." >&2;}
38542    { (exit 77); exit 77; }; }; }
38543    else
38544      ac_cv_sizeof_int_p=0
38545    fi
38546 fi
38547 rm -rf conftest.dSYM
38548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38549 fi
38550 rm -f conftest.val
38551 fi
38552 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
38553 $as_echo "$ac_cv_sizeof_int_p" >&6; }
38554
38555
38556
38557 cat >>confdefs.h <<_ACEOF
38558 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
38559 _ACEOF
38560
38561
38562
38563 { $as_echo "$as_me:$LINENO: checking for u_int type" >&5
38564 $as_echo_n "checking for u_int type... " >&6; }
38565 if test "${ac_cv_have_u_int+set}" = set; then
38566   $as_echo_n "(cached) " >&6
38567 else
38568
38569        cat >conftest.$ac_ext <<_ACEOF
38570 /* confdefs.h.  */
38571 _ACEOF
38572 cat confdefs.h >>conftest.$ac_ext
38573 cat >>conftest.$ac_ext <<_ACEOF
38574 /* end confdefs.h.  */
38575
38576               #include <sys/types.h>
38577
38578 int
38579 main ()
38580 {
38581
38582               u_int a; a = 1;
38583
38584   ;
38585   return 0;
38586 }
38587 _ACEOF
38588 rm -f conftest.$ac_objext
38589 if { (ac_try="$ac_compile"
38590 case "(($ac_try" in
38591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592   *) ac_try_echo=$ac_try;;
38593 esac
38594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38595 $as_echo "$ac_try_echo") >&5
38596   (eval "$ac_compile") 2>conftest.er1
38597   ac_status=$?
38598   grep -v '^ *+' conftest.er1 >conftest.err
38599   rm -f conftest.er1
38600   cat conftest.err >&5
38601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602   (exit $ac_status); } && {
38603          test -z "$ac_c_werror_flag" ||
38604          test ! -s conftest.err
38605        } && test -s conftest.$ac_objext; then
38606
38607               ac_cv_have_u_int="yes"
38608
38609 else
38610   $as_echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.$ac_ext >&5
38612
38613
38614               ac_cv_have_u_int="no"
38615
38616
38617 fi
38618
38619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38620
38621
38622 fi
38623 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
38624 $as_echo "$ac_cv_have_u_int" >&6; }
38625 if test "x$ac_cv_have_u_int" = "xyes" ; then
38626    cat >>confdefs.h <<\_ACEOF
38627 #define HAVE_U_INT 1
38628 _ACEOF
38629
38630    have_u_int=1
38631 fi
38632
38633 { $as_echo "$as_me:$LINENO: checking for intmax_t type" >&5
38634 $as_echo_n "checking for intmax_t type... " >&6; }
38635 if test "${ac_cv_have_intmax_t+set}" = set; then
38636   $as_echo_n "(cached) " >&6
38637 else
38638
38639        cat >conftest.$ac_ext <<_ACEOF
38640 /* confdefs.h.  */
38641 _ACEOF
38642 cat confdefs.h >>conftest.$ac_ext
38643 cat >>conftest.$ac_ext <<_ACEOF
38644 /* end confdefs.h.  */
38645
38646               #include <sys/types.h>
38647
38648 int
38649 main ()
38650 {
38651
38652               intmax_t a; a = 1;
38653
38654   ;
38655   return 0;
38656 }
38657 _ACEOF
38658 rm -f conftest.$ac_objext
38659 if { (ac_try="$ac_compile"
38660 case "(($ac_try" in
38661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38662   *) ac_try_echo=$ac_try;;
38663 esac
38664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38665 $as_echo "$ac_try_echo") >&5
38666   (eval "$ac_compile") 2>conftest.er1
38667   ac_status=$?
38668   grep -v '^ *+' conftest.er1 >conftest.err
38669   rm -f conftest.er1
38670   cat conftest.err >&5
38671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); } && {
38673          test -z "$ac_c_werror_flag" ||
38674          test ! -s conftest.err
38675        } && test -s conftest.$ac_objext; then
38676
38677               ac_cv_have_intmax_t="yes"
38678
38679 else
38680   $as_echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38682
38683
38684               cat >conftest.$ac_ext <<_ACEOF
38685 /* confdefs.h.  */
38686 _ACEOF
38687 cat confdefs.h >>conftest.$ac_ext
38688 cat >>conftest.$ac_ext <<_ACEOF
38689 /* end confdefs.h.  */
38690
38691                      #include <stdint.h>
38692
38693 int
38694 main ()
38695 {
38696
38697                      intmax_t a; a = 1;
38698
38699   ;
38700   return 0;
38701 }
38702 _ACEOF
38703 rm -f conftest.$ac_objext
38704 if { (ac_try="$ac_compile"
38705 case "(($ac_try" in
38706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38707   *) ac_try_echo=$ac_try;;
38708 esac
38709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38710 $as_echo "$ac_try_echo") >&5
38711   (eval "$ac_compile") 2>conftest.er1
38712   ac_status=$?
38713   grep -v '^ *+' conftest.er1 >conftest.err
38714   rm -f conftest.er1
38715   cat conftest.err >&5
38716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38717   (exit $ac_status); } && {
38718          test -z "$ac_c_werror_flag" ||
38719          test ! -s conftest.err
38720        } && test -s conftest.$ac_objext; then
38721
38722                      ac_cv_have_intmax_t="yes"
38723
38724 else
38725   $as_echo "$as_me: failed program was:" >&5
38726 sed 's/^/| /' conftest.$ac_ext >&5
38727
38728
38729                      ac_cv_have_intmax_t="no"
38730
38731
38732 fi
38733
38734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38735
38736
38737 fi
38738
38739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38740
38741
38742 fi
38743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
38744 $as_echo "$ac_cv_have_intmax_t" >&6; }
38745 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
38746    cat >>confdefs.h <<\_ACEOF
38747 #define HAVE_INTMAX_T 1
38748 _ACEOF
38749
38750    have_intmax_t=1
38751 fi
38752
38753 { $as_echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
38754 $as_echo_n "checking for u_intmax_t type... " >&6; }
38755 if test "${ac_cv_have_u_intmax_t+set}" = set; then
38756   $as_echo_n "(cached) " >&6
38757 else
38758
38759        cat >conftest.$ac_ext <<_ACEOF
38760 /* confdefs.h.  */
38761 _ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h.  */
38765
38766               #include <sys/types.h>
38767
38768 int
38769 main ()
38770 {
38771
38772               u_intmax_t a; a = 1;
38773
38774   ;
38775   return 0;
38776 }
38777 _ACEOF
38778 rm -f conftest.$ac_objext
38779 if { (ac_try="$ac_compile"
38780 case "(($ac_try" in
38781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38782   *) ac_try_echo=$ac_try;;
38783 esac
38784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38785 $as_echo "$ac_try_echo") >&5
38786   (eval "$ac_compile") 2>conftest.er1
38787   ac_status=$?
38788   grep -v '^ *+' conftest.er1 >conftest.err
38789   rm -f conftest.er1
38790   cat conftest.err >&5
38791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792   (exit $ac_status); } && {
38793          test -z "$ac_c_werror_flag" ||
38794          test ! -s conftest.err
38795        } && test -s conftest.$ac_objext; then
38796
38797               ac_cv_have_u_intmax_t="yes"
38798
38799 else
38800   $as_echo "$as_me: failed program was:" >&5
38801 sed 's/^/| /' conftest.$ac_ext >&5
38802
38803
38804               cat >conftest.$ac_ext <<_ACEOF
38805 /* confdefs.h.  */
38806 _ACEOF
38807 cat confdefs.h >>conftest.$ac_ext
38808 cat >>conftest.$ac_ext <<_ACEOF
38809 /* end confdefs.h.  */
38810
38811                      #include <stdint.h>
38812
38813 int
38814 main ()
38815 {
38816
38817                     u_intmax_t a; a = 1;
38818
38819   ;
38820   return 0;
38821 }
38822 _ACEOF
38823 rm -f conftest.$ac_objext
38824 if { (ac_try="$ac_compile"
38825 case "(($ac_try" in
38826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38827   *) ac_try_echo=$ac_try;;
38828 esac
38829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38830 $as_echo "$ac_try_echo") >&5
38831   (eval "$ac_compile") 2>conftest.er1
38832   ac_status=$?
38833   grep -v '^ *+' conftest.er1 >conftest.err
38834   rm -f conftest.er1
38835   cat conftest.err >&5
38836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837   (exit $ac_status); } && {
38838          test -z "$ac_c_werror_flag" ||
38839          test ! -s conftest.err
38840        } && test -s conftest.$ac_objext; then
38841
38842                     ac_cv_have_u_intmax_t="yes"
38843
38844 else
38845   $as_echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.$ac_ext >&5
38847
38848
38849                     ac_cv_have_u_intmax_t="no"
38850
38851
38852 fi
38853
38854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38855
38856
38857 fi
38858
38859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38860
38861
38862 fi
38863 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
38864 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
38865 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
38866    cat >>confdefs.h <<\_ACEOF
38867 #define HAVE_U_INTMAX_T 1
38868 _ACEOF
38869
38870    have_u_intmax_t=1
38871 fi
38872
38873 { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
38874 $as_echo_n "checking for intXX_t types... " >&6; }
38875 if test "${ac_cv_have_intxx_t+set}" = set; then
38876   $as_echo_n "(cached) " >&6
38877 else
38878
38879        cat >conftest.$ac_ext <<_ACEOF
38880 /* confdefs.h.  */
38881 _ACEOF
38882 cat confdefs.h >>conftest.$ac_ext
38883 cat >>conftest.$ac_ext <<_ACEOF
38884 /* end confdefs.h.  */
38885
38886               #include <sys/types.h>
38887
38888 int
38889 main ()
38890 {
38891
38892               int8_t a; int16_t b; int32_t c; a = b = c = 1;
38893
38894   ;
38895   return 0;
38896 }
38897 _ACEOF
38898 rm -f conftest.$ac_objext
38899 if { (ac_try="$ac_compile"
38900 case "(($ac_try" in
38901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38902   *) ac_try_echo=$ac_try;;
38903 esac
38904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38905 $as_echo "$ac_try_echo") >&5
38906   (eval "$ac_compile") 2>conftest.er1
38907   ac_status=$?
38908   grep -v '^ *+' conftest.er1 >conftest.err
38909   rm -f conftest.er1
38910   cat conftest.err >&5
38911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912   (exit $ac_status); } && {
38913          test -z "$ac_c_werror_flag" ||
38914          test ! -s conftest.err
38915        } && test -s conftest.$ac_objext; then
38916
38917               ac_cv_have_intxx_t="yes"
38918
38919 else
38920   $as_echo "$as_me: failed program was:" >&5
38921 sed 's/^/| /' conftest.$ac_ext >&5
38922
38923
38924               ac_cv_have_intxx_t="no"
38925
38926
38927 fi
38928
38929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38930
38931
38932 fi
38933 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
38934 $as_echo "$ac_cv_have_intxx_t" >&6; }
38935 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
38936    cat >>confdefs.h <<\_ACEOF
38937 #define HAVE_INTXX_T 1
38938 _ACEOF
38939
38940    have_intxx_t=1
38941 fi
38942
38943 { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
38944 $as_echo_n "checking for int64_t type... " >&6; }
38945 if test "${ac_cv_have_int64_t+set}" = set; then
38946   $as_echo_n "(cached) " >&6
38947 else
38948
38949        cat >conftest.$ac_ext <<_ACEOF
38950 /* confdefs.h.  */
38951 _ACEOF
38952 cat confdefs.h >>conftest.$ac_ext
38953 cat >>conftest.$ac_ext <<_ACEOF
38954 /* end confdefs.h.  */
38955
38956               #include <sys/types.h>
38957
38958 int
38959 main ()
38960 {
38961
38962               int64_t a; a = 1;
38963
38964   ;
38965   return 0;
38966 }
38967 _ACEOF
38968 rm -f conftest.$ac_objext
38969 if { (ac_try="$ac_compile"
38970 case "(($ac_try" in
38971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38972   *) ac_try_echo=$ac_try;;
38973 esac
38974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38975 $as_echo "$ac_try_echo") >&5
38976   (eval "$ac_compile") 2>conftest.er1
38977   ac_status=$?
38978   grep -v '^ *+' conftest.er1 >conftest.err
38979   rm -f conftest.er1
38980   cat conftest.err >&5
38981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38982   (exit $ac_status); } && {
38983          test -z "$ac_c_werror_flag" ||
38984          test ! -s conftest.err
38985        } && test -s conftest.$ac_objext; then
38986
38987               ac_cv_have_int64_t="yes"
38988
38989 else
38990   $as_echo "$as_me: failed program was:" >&5
38991 sed 's/^/| /' conftest.$ac_ext >&5
38992
38993
38994               ac_cv_have_int64_t="no"
38995
38996
38997 fi
38998
38999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39000
39001
39002 fi
39003 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
39004 $as_echo "$ac_cv_have_int64_t" >&6; }
39005 if test "x$ac_cv_have_int64_t" = "xyes" ; then
39006    cat >>confdefs.h <<\_ACEOF
39007 #define HAVE_INT64_T 1
39008 _ACEOF
39009
39010    have_int64_t=1
39011 fi
39012
39013 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
39014 $as_echo_n "checking for u_intXX_t types... " >&6; }
39015 if test "${ac_cv_have_u_intxx_t+set}" = set; then
39016   $as_echo_n "(cached) " >&6
39017 else
39018
39019        cat >conftest.$ac_ext <<_ACEOF
39020 /* confdefs.h.  */
39021 _ACEOF
39022 cat confdefs.h >>conftest.$ac_ext
39023 cat >>conftest.$ac_ext <<_ACEOF
39024 /* end confdefs.h.  */
39025
39026               #include <sys/types.h>
39027
39028 int
39029 main ()
39030 {
39031
39032               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
39033
39034   ;
39035   return 0;
39036 }
39037 _ACEOF
39038 rm -f conftest.$ac_objext
39039 if { (ac_try="$ac_compile"
39040 case "(($ac_try" in
39041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39042   *) ac_try_echo=$ac_try;;
39043 esac
39044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39045 $as_echo "$ac_try_echo") >&5
39046   (eval "$ac_compile") 2>conftest.er1
39047   ac_status=$?
39048   grep -v '^ *+' conftest.er1 >conftest.err
39049   rm -f conftest.er1
39050   cat conftest.err >&5
39051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052   (exit $ac_status); } && {
39053          test -z "$ac_c_werror_flag" ||
39054          test ! -s conftest.err
39055        } && test -s conftest.$ac_objext; then
39056
39057              ac_cv_have_u_intxx_t="yes"
39058
39059 else
39060   $as_echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39062
39063
39064              ac_cv_have_u_intxx_t="no"
39065
39066
39067 fi
39068
39069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39070
39071
39072 fi
39073 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
39074 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
39075 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
39076    cat >>confdefs.h <<\_ACEOF
39077 #define HAVE_U_INTXX_T 1
39078 _ACEOF
39079
39080    have_u_intxx_t=1
39081 fi
39082
39083 { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
39084 $as_echo_n "checking for u_int64_t types... " >&6; }
39085 if test "${ac_cv_have_u_int64_t+set}" = set; then
39086   $as_echo_n "(cached) " >&6
39087 else
39088
39089        cat >conftest.$ac_ext <<_ACEOF
39090 /* confdefs.h.  */
39091 _ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h.  */
39095
39096               #include <sys/types.h>
39097
39098 int
39099 main ()
39100 {
39101
39102               u_int64_t a; a = 1;
39103
39104   ;
39105   return 0;
39106 }
39107 _ACEOF
39108 rm -f conftest.$ac_objext
39109 if { (ac_try="$ac_compile"
39110 case "(($ac_try" in
39111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39112   *) ac_try_echo=$ac_try;;
39113 esac
39114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39115 $as_echo "$ac_try_echo") >&5
39116   (eval "$ac_compile") 2>conftest.er1
39117   ac_status=$?
39118   grep -v '^ *+' conftest.er1 >conftest.err
39119   rm -f conftest.er1
39120   cat conftest.err >&5
39121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122   (exit $ac_status); } && {
39123          test -z "$ac_c_werror_flag" ||
39124          test ! -s conftest.err
39125        } && test -s conftest.$ac_objext; then
39126
39127              ac_cv_have_u_int64_t="yes"
39128
39129 else
39130   $as_echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39132
39133
39134              ac_cv_have_u_int64_t="no"
39135
39136
39137 fi
39138
39139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39140
39141
39142 fi
39143 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
39144 $as_echo "$ac_cv_have_u_int64_t" >&6; }
39145 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
39146    cat >>confdefs.h <<\_ACEOF
39147 #define HAVE_U_INT64_T 1
39148 _ACEOF
39149
39150    have_u_int64_t=1
39151 fi
39152
39153 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
39154     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39155 then
39156    { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
39157 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
39158    cat >conftest.$ac_ext <<_ACEOF
39159 /* confdefs.h.  */
39160 _ACEOF
39161 cat confdefs.h >>conftest.$ac_ext
39162 cat >>conftest.$ac_ext <<_ACEOF
39163 /* end confdefs.h.  */
39164
39165           #include <sys/bitypes.h>
39166
39167 int
39168 main ()
39169 {
39170
39171           int8_t a; int16_t b; int32_t c;
39172           u_int8_t e; u_int16_t f; u_int32_t g;
39173           a = b = c = e = f = g = 1;
39174
39175   ;
39176   return 0;
39177 }
39178 _ACEOF
39179 rm -f conftest.$ac_objext
39180 if { (ac_try="$ac_compile"
39181 case "(($ac_try" in
39182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39183   *) ac_try_echo=$ac_try;;
39184 esac
39185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39186 $as_echo "$ac_try_echo") >&5
39187   (eval "$ac_compile") 2>conftest.er1
39188   ac_status=$?
39189   grep -v '^ *+' conftest.er1 >conftest.err
39190   rm -f conftest.er1
39191   cat conftest.err >&5
39192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193   (exit $ac_status); } && {
39194          test -z "$ac_c_werror_flag" ||
39195          test ! -s conftest.err
39196        } && test -s conftest.$ac_objext; then
39197
39198           cat >>confdefs.h <<\_ACEOF
39199 #define HAVE_U_INTXX_T 1
39200 _ACEOF
39201
39202           cat >>confdefs.h <<\_ACEOF
39203 #define HAVE_INTXX_T 1
39204 _ACEOF
39205
39206           cat >>confdefs.h <<\_ACEOF
39207 #define HAVE_SYS_BITYPES_H 1
39208 _ACEOF
39209
39210           { $as_echo "$as_me:$LINENO: result: yes" >&5
39211 $as_echo "yes" >&6; }
39212
39213 else
39214   $as_echo "$as_me: failed program was:" >&5
39215 sed 's/^/| /' conftest.$ac_ext >&5
39216
39217
39218           { $as_echo "$as_me:$LINENO: result: no" >&5
39219 $as_echo "no" >&6; }
39220
39221
39222 fi
39223
39224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39225 fi
39226
39227 if test -z "$have_u_intxx_t" ; then
39228    { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
39229 $as_echo_n "checking for uintXX_t types... " >&6; }
39230 if test "${ac_cv_have_uintxx_t+set}" = set; then
39231   $as_echo_n "(cached) " >&6
39232 else
39233
39234           cat >conftest.$ac_ext <<_ACEOF
39235 /* confdefs.h.  */
39236 _ACEOF
39237 cat confdefs.h >>conftest.$ac_ext
39238 cat >>conftest.$ac_ext <<_ACEOF
39239 /* end confdefs.h.  */
39240
39241                  #include <sys/types.h>
39242
39243 int
39244 main ()
39245 {
39246
39247                  uint8_t a; uint16_t b;
39248                  uint32_t c; a = b = c = 1;
39249
39250   ;
39251   return 0;
39252 }
39253 _ACEOF
39254 rm -f conftest.$ac_objext
39255 if { (ac_try="$ac_compile"
39256 case "(($ac_try" in
39257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258   *) ac_try_echo=$ac_try;;
39259 esac
39260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39261 $as_echo "$ac_try_echo") >&5
39262   (eval "$ac_compile") 2>conftest.er1
39263   ac_status=$?
39264   grep -v '^ *+' conftest.er1 >conftest.err
39265   rm -f conftest.er1
39266   cat conftest.err >&5
39267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268   (exit $ac_status); } && {
39269          test -z "$ac_c_werror_flag" ||
39270          test ! -s conftest.err
39271        } && test -s conftest.$ac_objext; then
39272
39273                 ac_cv_have_uintxx_t="yes"
39274
39275 else
39276   $as_echo "$as_me: failed program was:" >&5
39277 sed 's/^/| /' conftest.$ac_ext >&5
39278
39279
39280                 ac_cv_have_uintxx_t="no"
39281
39282
39283 fi
39284
39285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39286
39287
39288 fi
39289 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
39290 $as_echo "$ac_cv_have_uintxx_t" >&6; }
39291    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
39292       cat >>confdefs.h <<\_ACEOF
39293 #define HAVE_UINTXX_T 1
39294 _ACEOF
39295
39296    fi
39297 fi
39298
39299 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
39300     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39301 then
39302    { $as_echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
39303 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
39304    cat >conftest.$ac_ext <<_ACEOF
39305 /* confdefs.h.  */
39306 _ACEOF
39307 cat confdefs.h >>conftest.$ac_ext
39308 cat >>conftest.$ac_ext <<_ACEOF
39309 /* end confdefs.h.  */
39310
39311           #include <sys/bitypes.h>
39312
39313 int
39314 main ()
39315 {
39316
39317           int64_t a; u_int64_t b;
39318           a = b = 1;
39319
39320   ;
39321   return 0;
39322 }
39323 _ACEOF
39324 rm -f conftest.$ac_objext
39325 if { (ac_try="$ac_compile"
39326 case "(($ac_try" in
39327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39328   *) ac_try_echo=$ac_try;;
39329 esac
39330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39331 $as_echo "$ac_try_echo") >&5
39332   (eval "$ac_compile") 2>conftest.er1
39333   ac_status=$?
39334   grep -v '^ *+' conftest.er1 >conftest.err
39335   rm -f conftest.er1
39336   cat conftest.err >&5
39337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338   (exit $ac_status); } && {
39339          test -z "$ac_c_werror_flag" ||
39340          test ! -s conftest.err
39341        } && test -s conftest.$ac_objext; then
39342
39343           cat >>confdefs.h <<\_ACEOF
39344 #define HAVE_U_INT64_T 1
39345 _ACEOF
39346
39347           cat >>confdefs.h <<\_ACEOF
39348 #define HAVE_INT64_T 1
39349 _ACEOF
39350
39351           { $as_echo "$as_me:$LINENO: result: yes" >&5
39352 $as_echo "yes" >&6; }
39353
39354 else
39355   $as_echo "$as_me: failed program was:" >&5
39356 sed 's/^/| /' conftest.$ac_ext >&5
39357
39358
39359           { $as_echo "$as_me:$LINENO: result: no" >&5
39360 $as_echo "no" >&6; }
39361
39362
39363 fi
39364
39365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39366 fi
39367
39368 if (test -z "$have_uintxx_t" && \
39369     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39370 then
39371    { $as_echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
39372 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
39373    cat >conftest.$ac_ext <<_ACEOF
39374 /* confdefs.h.  */
39375 _ACEOF
39376 cat confdefs.h >>conftest.$ac_ext
39377 cat >>conftest.$ac_ext <<_ACEOF
39378 /* end confdefs.h.  */
39379
39380           #include <sys/bitypes.h>
39381
39382 int
39383 main ()
39384 {
39385
39386           uint8_t a; uint16_t b;
39387           uint32_t c; a = b = c = 1;
39388
39389   ;
39390   return 0;
39391 }
39392 _ACEOF
39393 rm -f conftest.$ac_objext
39394 if { (ac_try="$ac_compile"
39395 case "(($ac_try" in
39396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39397   *) ac_try_echo=$ac_try;;
39398 esac
39399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39400 $as_echo "$ac_try_echo") >&5
39401   (eval "$ac_compile") 2>conftest.er1
39402   ac_status=$?
39403   grep -v '^ *+' conftest.er1 >conftest.err
39404   rm -f conftest.er1
39405   cat conftest.err >&5
39406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407   (exit $ac_status); } && {
39408          test -z "$ac_c_werror_flag" ||
39409          test ! -s conftest.err
39410        } && test -s conftest.$ac_objext; then
39411
39412           cat >>confdefs.h <<\_ACEOF
39413 #define HAVE_UINTXX_T 1
39414 _ACEOF
39415
39416           { $as_echo "$as_me:$LINENO: result: yes" >&5
39417 $as_echo "yes" >&6; }
39418
39419 else
39420   $as_echo "$as_me: failed program was:" >&5
39421 sed 's/^/| /' conftest.$ac_ext >&5
39422
39423
39424           { $as_echo "$as_me:$LINENO: result: no" >&5
39425 $as_echo "no" >&6; }
39426
39427
39428 fi
39429
39430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39431 fi
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
39442
39443
39444
39445
39446 for ac_func in \
39447    fork \
39448    getcwd \
39449    gethostname \
39450    getpid \
39451    gettimeofday \
39452    setpgid \
39453    setpgrp \
39454    setsid \
39455    signal \
39456    strerror \
39457    strncmp \
39458    strncpy \
39459    vfprintf \
39460
39461 do
39462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39464 $as_echo_n "checking for $ac_func... " >&6; }
39465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39466   $as_echo_n "(cached) " >&6
39467 else
39468   cat >conftest.$ac_ext <<_ACEOF
39469 /* confdefs.h.  */
39470 _ACEOF
39471 cat confdefs.h >>conftest.$ac_ext
39472 cat >>conftest.$ac_ext <<_ACEOF
39473 /* end confdefs.h.  */
39474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39476 #define $ac_func innocuous_$ac_func
39477
39478 /* System header to define __stub macros and hopefully few prototypes,
39479     which can conflict with char $ac_func (); below.
39480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39481     <limits.h> exists even on freestanding compilers.  */
39482
39483 #ifdef __STDC__
39484 # include <limits.h>
39485 #else
39486 # include <assert.h>
39487 #endif
39488
39489 #undef $ac_func
39490
39491 /* Override any GCC internal prototype to avoid an error.
39492    Use char because int might match the return type of a GCC
39493    builtin and then its argument prototype would still apply.  */
39494 #ifdef __cplusplus
39495 extern "C"
39496 #endif
39497 char $ac_func ();
39498 /* The GNU C library defines this for functions which it implements
39499     to always fail with ENOSYS.  Some functions are actually named
39500     something starting with __ and the normal name is an alias.  */
39501 #if defined __stub_$ac_func || defined __stub___$ac_func
39502 choke me
39503 #endif
39504
39505 int
39506 main ()
39507 {
39508 return $ac_func ();
39509   ;
39510   return 0;
39511 }
39512 _ACEOF
39513 rm -f conftest.$ac_objext conftest$ac_exeext
39514 if { (ac_try="$ac_link"
39515 case "(($ac_try" in
39516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39517   *) ac_try_echo=$ac_try;;
39518 esac
39519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39520 $as_echo "$ac_try_echo") >&5
39521   (eval "$ac_link") 2>conftest.er1
39522   ac_status=$?
39523   grep -v '^ *+' conftest.er1 >conftest.err
39524   rm -f conftest.er1
39525   cat conftest.err >&5
39526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527   (exit $ac_status); } && {
39528          test -z "$ac_c_werror_flag" ||
39529          test ! -s conftest.err
39530        } && test -s conftest$ac_exeext && {
39531          test "$cross_compiling" = yes ||
39532          $as_test_x conftest$ac_exeext
39533        }; then
39534   eval "$as_ac_var=yes"
39535 else
39536   $as_echo "$as_me: failed program was:" >&5
39537 sed 's/^/| /' conftest.$ac_ext >&5
39538
39539         eval "$as_ac_var=no"
39540 fi
39541
39542 rm -rf conftest.dSYM
39543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39544       conftest$ac_exeext conftest.$ac_ext
39545 fi
39546 ac_res=`eval 'as_val=${'$as_ac_var'}
39547                  $as_echo "$as_val"'`
39548                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39549 $as_echo "$ac_res" >&6; }
39550 as_val=`eval 'as_val=${'$as_ac_var'}
39551                  $as_echo "$as_val"'`
39552    if test "x$as_val" = x""yes; then
39553   cat >>confdefs.h <<_ACEOF
39554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39555 _ACEOF
39556
39557 else
39558   echo 'configure: cannot find needed function.'; exit 1
39559
39560 fi
39561 done
39562
39563
39564
39565 for ac_func in fchdir
39566 do
39567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39569 $as_echo_n "checking for $ac_func... " >&6; }
39570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39571   $as_echo_n "(cached) " >&6
39572 else
39573   cat >conftest.$ac_ext <<_ACEOF
39574 /* confdefs.h.  */
39575 _ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h.  */
39579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39581 #define $ac_func innocuous_$ac_func
39582
39583 /* System header to define __stub macros and hopefully few prototypes,
39584     which can conflict with char $ac_func (); below.
39585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39586     <limits.h> exists even on freestanding compilers.  */
39587
39588 #ifdef __STDC__
39589 # include <limits.h>
39590 #else
39591 # include <assert.h>
39592 #endif
39593
39594 #undef $ac_func
39595
39596 /* Override any GCC internal prototype to avoid an error.
39597    Use char because int might match the return type of a GCC
39598    builtin and then its argument prototype would still apply.  */
39599 #ifdef __cplusplus
39600 extern "C"
39601 #endif
39602 char $ac_func ();
39603 /* The GNU C library defines this for functions which it implements
39604     to always fail with ENOSYS.  Some functions are actually named
39605     something starting with __ and the normal name is an alias.  */
39606 #if defined __stub_$ac_func || defined __stub___$ac_func
39607 choke me
39608 #endif
39609
39610 int
39611 main ()
39612 {
39613 return $ac_func ();
39614   ;
39615   return 0;
39616 }
39617 _ACEOF
39618 rm -f conftest.$ac_objext conftest$ac_exeext
39619 if { (ac_try="$ac_link"
39620 case "(($ac_try" in
39621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39622   *) ac_try_echo=$ac_try;;
39623 esac
39624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39625 $as_echo "$ac_try_echo") >&5
39626   (eval "$ac_link") 2>conftest.er1
39627   ac_status=$?
39628   grep -v '^ *+' conftest.er1 >conftest.err
39629   rm -f conftest.er1
39630   cat conftest.err >&5
39631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632   (exit $ac_status); } && {
39633          test -z "$ac_c_werror_flag" ||
39634          test ! -s conftest.err
39635        } && test -s conftest$ac_exeext && {
39636          test "$cross_compiling" = yes ||
39637          $as_test_x conftest$ac_exeext
39638        }; then
39639   eval "$as_ac_var=yes"
39640 else
39641   $as_echo "$as_me: failed program was:" >&5
39642 sed 's/^/| /' conftest.$ac_ext >&5
39643
39644         eval "$as_ac_var=no"
39645 fi
39646
39647 rm -rf conftest.dSYM
39648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39649       conftest$ac_exeext conftest.$ac_ext
39650 fi
39651 ac_res=`eval 'as_val=${'$as_ac_var'}
39652                  $as_echo "$as_val"'`
39653                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39654 $as_echo "$ac_res" >&6; }
39655 as_val=`eval 'as_val=${'$as_ac_var'}
39656                  $as_echo "$as_val"'`
39657    if test "x$as_val" = x""yes; then
39658   cat >>confdefs.h <<_ACEOF
39659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39660 _ACEOF
39661  cat >>confdefs.h <<\_ACEOF
39662 #define HAVE_FCHDIR 1
39663 _ACEOF
39664
39665 fi
39666 done
39667
39668
39669 for ac_func in strtoll
39670 do
39671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39673 $as_echo_n "checking for $ac_func... " >&6; }
39674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39675   $as_echo_n "(cached) " >&6
39676 else
39677   cat >conftest.$ac_ext <<_ACEOF
39678 /* confdefs.h.  */
39679 _ACEOF
39680 cat confdefs.h >>conftest.$ac_ext
39681 cat >>conftest.$ac_ext <<_ACEOF
39682 /* end confdefs.h.  */
39683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39685 #define $ac_func innocuous_$ac_func
39686
39687 /* System header to define __stub macros and hopefully few prototypes,
39688     which can conflict with char $ac_func (); below.
39689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39690     <limits.h> exists even on freestanding compilers.  */
39691
39692 #ifdef __STDC__
39693 # include <limits.h>
39694 #else
39695 # include <assert.h>
39696 #endif
39697
39698 #undef $ac_func
39699
39700 /* Override any GCC internal prototype to avoid an error.
39701    Use char because int might match the return type of a GCC
39702    builtin and then its argument prototype would still apply.  */
39703 #ifdef __cplusplus
39704 extern "C"
39705 #endif
39706 char $ac_func ();
39707 /* The GNU C library defines this for functions which it implements
39708     to always fail with ENOSYS.  Some functions are actually named
39709     something starting with __ and the normal name is an alias.  */
39710 #if defined __stub_$ac_func || defined __stub___$ac_func
39711 choke me
39712 #endif
39713
39714 int
39715 main ()
39716 {
39717 return $ac_func ();
39718   ;
39719   return 0;
39720 }
39721 _ACEOF
39722 rm -f conftest.$ac_objext conftest$ac_exeext
39723 if { (ac_try="$ac_link"
39724 case "(($ac_try" in
39725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39726   *) ac_try_echo=$ac_try;;
39727 esac
39728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39729 $as_echo "$ac_try_echo") >&5
39730   (eval "$ac_link") 2>conftest.er1
39731   ac_status=$?
39732   grep -v '^ *+' conftest.er1 >conftest.err
39733   rm -f conftest.er1
39734   cat conftest.err >&5
39735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736   (exit $ac_status); } && {
39737          test -z "$ac_c_werror_flag" ||
39738          test ! -s conftest.err
39739        } && test -s conftest$ac_exeext && {
39740          test "$cross_compiling" = yes ||
39741          $as_test_x conftest$ac_exeext
39742        }; then
39743   eval "$as_ac_var=yes"
39744 else
39745   $as_echo "$as_me: failed program was:" >&5
39746 sed 's/^/| /' conftest.$ac_ext >&5
39747
39748         eval "$as_ac_var=no"
39749 fi
39750
39751 rm -rf conftest.dSYM
39752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39753       conftest$ac_exeext conftest.$ac_ext
39754 fi
39755 ac_res=`eval 'as_val=${'$as_ac_var'}
39756                  $as_echo "$as_val"'`
39757                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39758 $as_echo "$ac_res" >&6; }
39759 as_val=`eval 'as_val=${'$as_ac_var'}
39760                  $as_echo "$as_val"'`
39761    if test "x$as_val" = x""yes; then
39762   cat >>confdefs.h <<_ACEOF
39763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39764 _ACEOF
39765  cat >>confdefs.h <<\_ACEOF
39766 #define HAVE_STRTOLL 1
39767 _ACEOF
39768
39769 fi
39770 done
39771
39772
39773 for ac_func in posix_fadvise
39774 do
39775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39776 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39777 $as_echo_n "checking for $ac_func... " >&6; }
39778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39779   $as_echo_n "(cached) " >&6
39780 else
39781   cat >conftest.$ac_ext <<_ACEOF
39782 /* confdefs.h.  */
39783 _ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h.  */
39787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39789 #define $ac_func innocuous_$ac_func
39790
39791 /* System header to define __stub macros and hopefully few prototypes,
39792     which can conflict with char $ac_func (); below.
39793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39794     <limits.h> exists even on freestanding compilers.  */
39795
39796 #ifdef __STDC__
39797 # include <limits.h>
39798 #else
39799 # include <assert.h>
39800 #endif
39801
39802 #undef $ac_func
39803
39804 /* Override any GCC internal prototype to avoid an error.
39805    Use char because int might match the return type of a GCC
39806    builtin and then its argument prototype would still apply.  */
39807 #ifdef __cplusplus
39808 extern "C"
39809 #endif
39810 char $ac_func ();
39811 /* The GNU C library defines this for functions which it implements
39812     to always fail with ENOSYS.  Some functions are actually named
39813     something starting with __ and the normal name is an alias.  */
39814 #if defined __stub_$ac_func || defined __stub___$ac_func
39815 choke me
39816 #endif
39817
39818 int
39819 main ()
39820 {
39821 return $ac_func ();
39822   ;
39823   return 0;
39824 }
39825 _ACEOF
39826 rm -f conftest.$ac_objext conftest$ac_exeext
39827 if { (ac_try="$ac_link"
39828 case "(($ac_try" in
39829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39830   *) ac_try_echo=$ac_try;;
39831 esac
39832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39833 $as_echo "$ac_try_echo") >&5
39834   (eval "$ac_link") 2>conftest.er1
39835   ac_status=$?
39836   grep -v '^ *+' conftest.er1 >conftest.err
39837   rm -f conftest.er1
39838   cat conftest.err >&5
39839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840   (exit $ac_status); } && {
39841          test -z "$ac_c_werror_flag" ||
39842          test ! -s conftest.err
39843        } && test -s conftest$ac_exeext && {
39844          test "$cross_compiling" = yes ||
39845          $as_test_x conftest$ac_exeext
39846        }; then
39847   eval "$as_ac_var=yes"
39848 else
39849   $as_echo "$as_me: failed program was:" >&5
39850 sed 's/^/| /' conftest.$ac_ext >&5
39851
39852         eval "$as_ac_var=no"
39853 fi
39854
39855 rm -rf conftest.dSYM
39856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39857       conftest$ac_exeext conftest.$ac_ext
39858 fi
39859 ac_res=`eval 'as_val=${'$as_ac_var'}
39860                  $as_echo "$as_val"'`
39861                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39862 $as_echo "$ac_res" >&6; }
39863 as_val=`eval 'as_val=${'$as_ac_var'}
39864                  $as_echo "$as_val"'`
39865    if test "x$as_val" = x""yes; then
39866   cat >>confdefs.h <<_ACEOF
39867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39868 _ACEOF
39869
39870 fi
39871 done
39872
39873
39874 for ac_func in fdatasync
39875 do
39876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39878 $as_echo_n "checking for $ac_func... " >&6; }
39879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39880   $as_echo_n "(cached) " >&6
39881 else
39882   cat >conftest.$ac_ext <<_ACEOF
39883 /* confdefs.h.  */
39884 _ACEOF
39885 cat confdefs.h >>conftest.$ac_ext
39886 cat >>conftest.$ac_ext <<_ACEOF
39887 /* end confdefs.h.  */
39888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39890 #define $ac_func innocuous_$ac_func
39891
39892 /* System header to define __stub macros and hopefully few prototypes,
39893     which can conflict with char $ac_func (); below.
39894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39895     <limits.h> exists even on freestanding compilers.  */
39896
39897 #ifdef __STDC__
39898 # include <limits.h>
39899 #else
39900 # include <assert.h>
39901 #endif
39902
39903 #undef $ac_func
39904
39905 /* Override any GCC internal prototype to avoid an error.
39906    Use char because int might match the return type of a GCC
39907    builtin and then its argument prototype would still apply.  */
39908 #ifdef __cplusplus
39909 extern "C"
39910 #endif
39911 char $ac_func ();
39912 /* The GNU C library defines this for functions which it implements
39913     to always fail with ENOSYS.  Some functions are actually named
39914     something starting with __ and the normal name is an alias.  */
39915 #if defined __stub_$ac_func || defined __stub___$ac_func
39916 choke me
39917 #endif
39918
39919 int
39920 main ()
39921 {
39922 return $ac_func ();
39923   ;
39924   return 0;
39925 }
39926 _ACEOF
39927 rm -f conftest.$ac_objext conftest$ac_exeext
39928 if { (ac_try="$ac_link"
39929 case "(($ac_try" in
39930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931   *) ac_try_echo=$ac_try;;
39932 esac
39933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39934 $as_echo "$ac_try_echo") >&5
39935   (eval "$ac_link") 2>conftest.er1
39936   ac_status=$?
39937   grep -v '^ *+' conftest.er1 >conftest.err
39938   rm -f conftest.er1
39939   cat conftest.err >&5
39940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941   (exit $ac_status); } && {
39942          test -z "$ac_c_werror_flag" ||
39943          test ! -s conftest.err
39944        } && test -s conftest$ac_exeext && {
39945          test "$cross_compiling" = yes ||
39946          $as_test_x conftest$ac_exeext
39947        }; then
39948   eval "$as_ac_var=yes"
39949 else
39950   $as_echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39952
39953         eval "$as_ac_var=no"
39954 fi
39955
39956 rm -rf conftest.dSYM
39957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39958       conftest$ac_exeext conftest.$ac_ext
39959 fi
39960 ac_res=`eval 'as_val=${'$as_ac_var'}
39961                  $as_echo "$as_val"'`
39962                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39963 $as_echo "$ac_res" >&6; }
39964 as_val=`eval 'as_val=${'$as_ac_var'}
39965                  $as_echo "$as_val"'`
39966    if test "x$as_val" = x""yes; then
39967   cat >>confdefs.h <<_ACEOF
39968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39969 _ACEOF
39970
39971 fi
39972 done
39973
39974
39975
39976 for ac_func in chflags
39977 do
39978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39979 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39980 $as_echo_n "checking for $ac_func... " >&6; }
39981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39982   $as_echo_n "(cached) " >&6
39983 else
39984   cat >conftest.$ac_ext <<_ACEOF
39985 /* confdefs.h.  */
39986 _ACEOF
39987 cat confdefs.h >>conftest.$ac_ext
39988 cat >>conftest.$ac_ext <<_ACEOF
39989 /* end confdefs.h.  */
39990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39992 #define $ac_func innocuous_$ac_func
39993
39994 /* System header to define __stub macros and hopefully few prototypes,
39995     which can conflict with char $ac_func (); below.
39996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39997     <limits.h> exists even on freestanding compilers.  */
39998
39999 #ifdef __STDC__
40000 # include <limits.h>
40001 #else
40002 # include <assert.h>
40003 #endif
40004
40005 #undef $ac_func
40006
40007 /* Override any GCC internal prototype to avoid an error.
40008    Use char because int might match the return type of a GCC
40009    builtin and then its argument prototype would still apply.  */
40010 #ifdef __cplusplus
40011 extern "C"
40012 #endif
40013 char $ac_func ();
40014 /* The GNU C library defines this for functions which it implements
40015     to always fail with ENOSYS.  Some functions are actually named
40016     something starting with __ and the normal name is an alias.  */
40017 #if defined __stub_$ac_func || defined __stub___$ac_func
40018 choke me
40019 #endif
40020
40021 int
40022 main ()
40023 {
40024 return $ac_func ();
40025   ;
40026   return 0;
40027 }
40028 _ACEOF
40029 rm -f conftest.$ac_objext conftest$ac_exeext
40030 if { (ac_try="$ac_link"
40031 case "(($ac_try" in
40032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033   *) ac_try_echo=$ac_try;;
40034 esac
40035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40036 $as_echo "$ac_try_echo") >&5
40037   (eval "$ac_link") 2>conftest.er1
40038   ac_status=$?
40039   grep -v '^ *+' conftest.er1 >conftest.err
40040   rm -f conftest.er1
40041   cat conftest.err >&5
40042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40043   (exit $ac_status); } && {
40044          test -z "$ac_c_werror_flag" ||
40045          test ! -s conftest.err
40046        } && test -s conftest$ac_exeext && {
40047          test "$cross_compiling" = yes ||
40048          $as_test_x conftest$ac_exeext
40049        }; then
40050   eval "$as_ac_var=yes"
40051 else
40052   $as_echo "$as_me: failed program was:" >&5
40053 sed 's/^/| /' conftest.$ac_ext >&5
40054
40055         eval "$as_ac_var=no"
40056 fi
40057
40058 rm -rf conftest.dSYM
40059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40060       conftest$ac_exeext conftest.$ac_ext
40061 fi
40062 ac_res=`eval 'as_val=${'$as_ac_var'}
40063                  $as_echo "$as_val"'`
40064                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40065 $as_echo "$ac_res" >&6; }
40066 as_val=`eval 'as_val=${'$as_ac_var'}
40067                  $as_echo "$as_val"'`
40068    if test "x$as_val" = x""yes; then
40069   cat >>confdefs.h <<_ACEOF
40070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40071 _ACEOF
40072
40073 fi
40074 done
40075
40076
40077
40078
40079
40080
40081 for ac_func in snprintf vsnprintf gethostid fseeko
40082 do
40083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40085 $as_echo_n "checking for $ac_func... " >&6; }
40086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40087   $as_echo_n "(cached) " >&6
40088 else
40089   cat >conftest.$ac_ext <<_ACEOF
40090 /* confdefs.h.  */
40091 _ACEOF
40092 cat confdefs.h >>conftest.$ac_ext
40093 cat >>conftest.$ac_ext <<_ACEOF
40094 /* end confdefs.h.  */
40095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40097 #define $ac_func innocuous_$ac_func
40098
40099 /* System header to define __stub macros and hopefully few prototypes,
40100     which can conflict with char $ac_func (); below.
40101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40102     <limits.h> exists even on freestanding compilers.  */
40103
40104 #ifdef __STDC__
40105 # include <limits.h>
40106 #else
40107 # include <assert.h>
40108 #endif
40109
40110 #undef $ac_func
40111
40112 /* Override any GCC internal prototype to avoid an error.
40113    Use char because int might match the return type of a GCC
40114    builtin and then its argument prototype would still apply.  */
40115 #ifdef __cplusplus
40116 extern "C"
40117 #endif
40118 char $ac_func ();
40119 /* The GNU C library defines this for functions which it implements
40120     to always fail with ENOSYS.  Some functions are actually named
40121     something starting with __ and the normal name is an alias.  */
40122 #if defined __stub_$ac_func || defined __stub___$ac_func
40123 choke me
40124 #endif
40125
40126 int
40127 main ()
40128 {
40129 return $ac_func ();
40130   ;
40131   return 0;
40132 }
40133 _ACEOF
40134 rm -f conftest.$ac_objext conftest$ac_exeext
40135 if { (ac_try="$ac_link"
40136 case "(($ac_try" in
40137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40138   *) ac_try_echo=$ac_try;;
40139 esac
40140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40141 $as_echo "$ac_try_echo") >&5
40142   (eval "$ac_link") 2>conftest.er1
40143   ac_status=$?
40144   grep -v '^ *+' conftest.er1 >conftest.err
40145   rm -f conftest.er1
40146   cat conftest.err >&5
40147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148   (exit $ac_status); } && {
40149          test -z "$ac_c_werror_flag" ||
40150          test ! -s conftest.err
40151        } && test -s conftest$ac_exeext && {
40152          test "$cross_compiling" = yes ||
40153          $as_test_x conftest$ac_exeext
40154        }; then
40155   eval "$as_ac_var=yes"
40156 else
40157   $as_echo "$as_me: failed program was:" >&5
40158 sed 's/^/| /' conftest.$ac_ext >&5
40159
40160         eval "$as_ac_var=no"
40161 fi
40162
40163 rm -rf conftest.dSYM
40164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40165       conftest$ac_exeext conftest.$ac_ext
40166 fi
40167 ac_res=`eval 'as_val=${'$as_ac_var'}
40168                  $as_echo "$as_val"'`
40169                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40170 $as_echo "$ac_res" >&6; }
40171 as_val=`eval 'as_val=${'$as_ac_var'}
40172                  $as_echo "$as_val"'`
40173    if test "x$as_val" = x""yes; then
40174   cat >>confdefs.h <<_ACEOF
40175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40176 _ACEOF
40177
40178 fi
40179 done
40180
40181
40182 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
40183 $as_echo_n "checking for va_copy... " >&6; }
40184 if test "${ba_cv_va_copy+set}" = set; then
40185   $as_echo_n "(cached) " >&6
40186 else
40187
40188        cat >conftest.$ac_ext <<_ACEOF
40189 /* confdefs.h.  */
40190 _ACEOF
40191 cat confdefs.h >>conftest.$ac_ext
40192 cat >>conftest.$ac_ext <<_ACEOF
40193 /* end confdefs.h.  */
40194
40195               #include <stdarg.h>
40196               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
40197               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
40198
40199 int
40200 main ()
40201 {
40202
40203               call_use_va_copy(1,2,3)
40204
40205   ;
40206   return 0;
40207 }
40208 _ACEOF
40209 rm -f conftest.$ac_objext conftest$ac_exeext
40210 if { (ac_try="$ac_link"
40211 case "(($ac_try" in
40212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40213   *) ac_try_echo=$ac_try;;
40214 esac
40215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40216 $as_echo "$ac_try_echo") >&5
40217   (eval "$ac_link") 2>conftest.er1
40218   ac_status=$?
40219   grep -v '^ *+' conftest.er1 >conftest.err
40220   rm -f conftest.er1
40221   cat conftest.err >&5
40222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223   (exit $ac_status); } && {
40224          test -z "$ac_c_werror_flag" ||
40225          test ! -s conftest.err
40226        } && test -s conftest$ac_exeext && {
40227          test "$cross_compiling" = yes ||
40228          $as_test_x conftest$ac_exeext
40229        }; then
40230
40231               ba_cv_va_copy=yes,
40232
40233 else
40234   $as_echo "$as_me: failed program was:" >&5
40235 sed 's/^/| /' conftest.$ac_ext >&5
40236
40237
40238               ba_cv_va_copy=no
40239
40240
40241 fi
40242
40243 rm -rf conftest.dSYM
40244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40245       conftest$ac_exeext conftest.$ac_ext
40246
40247
40248 fi
40249 { $as_echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
40250 $as_echo "$ba_cv_va_copy" >&6; }
40251 test $ba_cv_va_copy = yes &&
40252 cat >>confdefs.h <<\_ACEOF
40253 #define HAVE_VA_COPY 1
40254 _ACEOF
40255
40256
40257
40258
40259
40260
40261 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
40262 do
40263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40265 $as_echo_n "checking for $ac_func... " >&6; }
40266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40267   $as_echo_n "(cached) " >&6
40268 else
40269   cat >conftest.$ac_ext <<_ACEOF
40270 /* confdefs.h.  */
40271 _ACEOF
40272 cat confdefs.h >>conftest.$ac_ext
40273 cat >>conftest.$ac_ext <<_ACEOF
40274 /* end confdefs.h.  */
40275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40277 #define $ac_func innocuous_$ac_func
40278
40279 /* System header to define __stub macros and hopefully few prototypes,
40280     which can conflict with char $ac_func (); below.
40281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40282     <limits.h> exists even on freestanding compilers.  */
40283
40284 #ifdef __STDC__
40285 # include <limits.h>
40286 #else
40287 # include <assert.h>
40288 #endif
40289
40290 #undef $ac_func
40291
40292 /* Override any GCC internal prototype to avoid an error.
40293    Use char because int might match the return type of a GCC
40294    builtin and then its argument prototype would still apply.  */
40295 #ifdef __cplusplus
40296 extern "C"
40297 #endif
40298 char $ac_func ();
40299 /* The GNU C library defines this for functions which it implements
40300     to always fail with ENOSYS.  Some functions are actually named
40301     something starting with __ and the normal name is an alias.  */
40302 #if defined __stub_$ac_func || defined __stub___$ac_func
40303 choke me
40304 #endif
40305
40306 int
40307 main ()
40308 {
40309 return $ac_func ();
40310   ;
40311   return 0;
40312 }
40313 _ACEOF
40314 rm -f conftest.$ac_objext conftest$ac_exeext
40315 if { (ac_try="$ac_link"
40316 case "(($ac_try" in
40317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40318   *) ac_try_echo=$ac_try;;
40319 esac
40320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40321 $as_echo "$ac_try_echo") >&5
40322   (eval "$ac_link") 2>conftest.er1
40323   ac_status=$?
40324   grep -v '^ *+' conftest.er1 >conftest.err
40325   rm -f conftest.er1
40326   cat conftest.err >&5
40327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328   (exit $ac_status); } && {
40329          test -z "$ac_c_werror_flag" ||
40330          test ! -s conftest.err
40331        } && test -s conftest$ac_exeext && {
40332          test "$cross_compiling" = yes ||
40333          $as_test_x conftest$ac_exeext
40334        }; then
40335   eval "$as_ac_var=yes"
40336 else
40337   $as_echo "$as_me: failed program was:" >&5
40338 sed 's/^/| /' conftest.$ac_ext >&5
40339
40340         eval "$as_ac_var=no"
40341 fi
40342
40343 rm -rf conftest.dSYM
40344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40345       conftest$ac_exeext conftest.$ac_ext
40346 fi
40347 ac_res=`eval 'as_val=${'$as_ac_var'}
40348                  $as_echo "$as_val"'`
40349                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40350 $as_echo "$ac_res" >&6; }
40351 as_val=`eval 'as_val=${'$as_ac_var'}
40352                  $as_echo "$as_val"'`
40353    if test "x$as_val" = x""yes; then
40354   cat >>confdefs.h <<_ACEOF
40355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40356 _ACEOF
40357
40358 fi
40359 done
40360
40361
40362 # If resolver functions are not in libc check for -lnsl or -lresolv.
40363 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
40364 $as_echo_n "checking for gethostbyname_r... " >&6; }
40365 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
40366   $as_echo_n "(cached) " >&6
40367 else
40368   cat >conftest.$ac_ext <<_ACEOF
40369 /* confdefs.h.  */
40370 _ACEOF
40371 cat confdefs.h >>conftest.$ac_ext
40372 cat >>conftest.$ac_ext <<_ACEOF
40373 /* end confdefs.h.  */
40374 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
40375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40376 #define gethostbyname_r innocuous_gethostbyname_r
40377
40378 /* System header to define __stub macros and hopefully few prototypes,
40379     which can conflict with char gethostbyname_r (); below.
40380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40381     <limits.h> exists even on freestanding compilers.  */
40382
40383 #ifdef __STDC__
40384 # include <limits.h>
40385 #else
40386 # include <assert.h>
40387 #endif
40388
40389 #undef gethostbyname_r
40390
40391 /* Override any GCC internal prototype to avoid an error.
40392    Use char because int might match the return type of a GCC
40393    builtin and then its argument prototype would still apply.  */
40394 #ifdef __cplusplus
40395 extern "C"
40396 #endif
40397 char gethostbyname_r ();
40398 /* The GNU C library defines this for functions which it implements
40399     to always fail with ENOSYS.  Some functions are actually named
40400     something starting with __ and the normal name is an alias.  */
40401 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
40402 choke me
40403 #endif
40404
40405 int
40406 main ()
40407 {
40408 return gethostbyname_r ();
40409   ;
40410   return 0;
40411 }
40412 _ACEOF
40413 rm -f conftest.$ac_objext conftest$ac_exeext
40414 if { (ac_try="$ac_link"
40415 case "(($ac_try" in
40416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40417   *) ac_try_echo=$ac_try;;
40418 esac
40419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40420 $as_echo "$ac_try_echo") >&5
40421   (eval "$ac_link") 2>conftest.er1
40422   ac_status=$?
40423   grep -v '^ *+' conftest.er1 >conftest.err
40424   rm -f conftest.er1
40425   cat conftest.err >&5
40426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427   (exit $ac_status); } && {
40428          test -z "$ac_c_werror_flag" ||
40429          test ! -s conftest.err
40430        } && test -s conftest$ac_exeext && {
40431          test "$cross_compiling" = yes ||
40432          $as_test_x conftest$ac_exeext
40433        }; then
40434   ac_cv_func_gethostbyname_r=yes
40435 else
40436   $as_echo "$as_me: failed program was:" >&5
40437 sed 's/^/| /' conftest.$ac_ext >&5
40438
40439         ac_cv_func_gethostbyname_r=no
40440 fi
40441
40442 rm -rf conftest.dSYM
40443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40444       conftest$ac_exeext conftest.$ac_ext
40445 fi
40446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
40447 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
40448 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
40449   { $as_echo "$as_me:$LINENO: result: using libc's resolver" >&5
40450 $as_echo "using libc's resolver" >&6; }
40451 else
40452
40453 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
40454 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
40455 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
40456   $as_echo_n "(cached) " >&6
40457 else
40458   ac_check_lib_save_LIBS=$LIBS
40459 LIBS="-lnsl  $LIBS"
40460 cat >conftest.$ac_ext <<_ACEOF
40461 /* confdefs.h.  */
40462 _ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h.  */
40466
40467 /* Override any GCC internal prototype to avoid an error.
40468    Use char because int might match the return type of a GCC
40469    builtin and then its argument prototype would still apply.  */
40470 #ifdef __cplusplus
40471 extern "C"
40472 #endif
40473 char gethostbyname_r ();
40474 int
40475 main ()
40476 {
40477 return gethostbyname_r ();
40478   ;
40479   return 0;
40480 }
40481 _ACEOF
40482 rm -f conftest.$ac_objext conftest$ac_exeext
40483 if { (ac_try="$ac_link"
40484 case "(($ac_try" in
40485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40486   *) ac_try_echo=$ac_try;;
40487 esac
40488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40489 $as_echo "$ac_try_echo") >&5
40490   (eval "$ac_link") 2>conftest.er1
40491   ac_status=$?
40492   grep -v '^ *+' conftest.er1 >conftest.err
40493   rm -f conftest.er1
40494   cat conftest.err >&5
40495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496   (exit $ac_status); } && {
40497          test -z "$ac_c_werror_flag" ||
40498          test ! -s conftest.err
40499        } && test -s conftest$ac_exeext && {
40500          test "$cross_compiling" = yes ||
40501          $as_test_x conftest$ac_exeext
40502        }; then
40503   ac_cv_lib_nsl_gethostbyname_r=yes
40504 else
40505   $as_echo "$as_me: failed program was:" >&5
40506 sed 's/^/| /' conftest.$ac_ext >&5
40507
40508         ac_cv_lib_nsl_gethostbyname_r=no
40509 fi
40510
40511 rm -rf conftest.dSYM
40512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40513       conftest$ac_exeext conftest.$ac_ext
40514 LIBS=$ac_check_lib_save_LIBS
40515 fi
40516 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
40517 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
40518 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
40519   cat >>confdefs.h <<_ACEOF
40520 #define HAVE_LIBNSL 1
40521 _ACEOF
40522
40523   LIBS="-lnsl $LIBS"
40524
40525 fi
40526
40527
40528 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
40529 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
40530 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
40531   $as_echo_n "(cached) " >&6
40532 else
40533   ac_check_lib_save_LIBS=$LIBS
40534 LIBS="-lresolv  $LIBS"
40535 cat >conftest.$ac_ext <<_ACEOF
40536 /* confdefs.h.  */
40537 _ACEOF
40538 cat confdefs.h >>conftest.$ac_ext
40539 cat >>conftest.$ac_ext <<_ACEOF
40540 /* end confdefs.h.  */
40541
40542 /* Override any GCC internal prototype to avoid an error.
40543    Use char because int might match the return type of a GCC
40544    builtin and then its argument prototype would still apply.  */
40545 #ifdef __cplusplus
40546 extern "C"
40547 #endif
40548 char gethostbyname_r ();
40549 int
40550 main ()
40551 {
40552 return gethostbyname_r ();
40553   ;
40554   return 0;
40555 }
40556 _ACEOF
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (ac_try="$ac_link"
40559 case "(($ac_try" in
40560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561   *) ac_try_echo=$ac_try;;
40562 esac
40563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40564 $as_echo "$ac_try_echo") >&5
40565   (eval "$ac_link") 2>conftest.er1
40566   ac_status=$?
40567   grep -v '^ *+' conftest.er1 >conftest.err
40568   rm -f conftest.er1
40569   cat conftest.err >&5
40570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571   (exit $ac_status); } && {
40572          test -z "$ac_c_werror_flag" ||
40573          test ! -s conftest.err
40574        } && test -s conftest$ac_exeext && {
40575          test "$cross_compiling" = yes ||
40576          $as_test_x conftest$ac_exeext
40577        }; then
40578   ac_cv_lib_resolv_gethostbyname_r=yes
40579 else
40580   $as_echo "$as_me: failed program was:" >&5
40581 sed 's/^/| /' conftest.$ac_ext >&5
40582
40583         ac_cv_lib_resolv_gethostbyname_r=no
40584 fi
40585
40586 rm -rf conftest.dSYM
40587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40588       conftest$ac_exeext conftest.$ac_ext
40589 LIBS=$ac_check_lib_save_LIBS
40590 fi
40591 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
40592 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
40593 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then
40594   cat >>confdefs.h <<_ACEOF
40595 #define HAVE_LIBRESOLV 1
40596 _ACEOF
40597
40598   LIBS="-lresolv $LIBS"
40599
40600 fi
40601
40602 fi
40603
40604
40605
40606 for ac_func in inet_pton
40607 do
40608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40609 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40610 $as_echo_n "checking for $ac_func... " >&6; }
40611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40612   $as_echo_n "(cached) " >&6
40613 else
40614   cat >conftest.$ac_ext <<_ACEOF
40615 /* confdefs.h.  */
40616 _ACEOF
40617 cat confdefs.h >>conftest.$ac_ext
40618 cat >>conftest.$ac_ext <<_ACEOF
40619 /* end confdefs.h.  */
40620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40622 #define $ac_func innocuous_$ac_func
40623
40624 /* System header to define __stub macros and hopefully few prototypes,
40625     which can conflict with char $ac_func (); below.
40626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40627     <limits.h> exists even on freestanding compilers.  */
40628
40629 #ifdef __STDC__
40630 # include <limits.h>
40631 #else
40632 # include <assert.h>
40633 #endif
40634
40635 #undef $ac_func
40636
40637 /* Override any GCC internal prototype to avoid an error.
40638    Use char because int might match the return type of a GCC
40639    builtin and then its argument prototype would still apply.  */
40640 #ifdef __cplusplus
40641 extern "C"
40642 #endif
40643 char $ac_func ();
40644 /* The GNU C library defines this for functions which it implements
40645     to always fail with ENOSYS.  Some functions are actually named
40646     something starting with __ and the normal name is an alias.  */
40647 #if defined __stub_$ac_func || defined __stub___$ac_func
40648 choke me
40649 #endif
40650
40651 int
40652 main ()
40653 {
40654 return $ac_func ();
40655   ;
40656   return 0;
40657 }
40658 _ACEOF
40659 rm -f conftest.$ac_objext conftest$ac_exeext
40660 if { (ac_try="$ac_link"
40661 case "(($ac_try" in
40662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40663   *) ac_try_echo=$ac_try;;
40664 esac
40665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40666 $as_echo "$ac_try_echo") >&5
40667   (eval "$ac_link") 2>conftest.er1
40668   ac_status=$?
40669   grep -v '^ *+' conftest.er1 >conftest.err
40670   rm -f conftest.er1
40671   cat conftest.err >&5
40672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673   (exit $ac_status); } && {
40674          test -z "$ac_c_werror_flag" ||
40675          test ! -s conftest.err
40676        } && test -s conftest$ac_exeext && {
40677          test "$cross_compiling" = yes ||
40678          $as_test_x conftest$ac_exeext
40679        }; then
40680   eval "$as_ac_var=yes"
40681 else
40682   $as_echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.$ac_ext >&5
40684
40685         eval "$as_ac_var=no"
40686 fi
40687
40688 rm -rf conftest.dSYM
40689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40690       conftest$ac_exeext conftest.$ac_ext
40691 fi
40692 ac_res=`eval 'as_val=${'$as_ac_var'}
40693                  $as_echo "$as_val"'`
40694                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40695 $as_echo "$ac_res" >&6; }
40696 as_val=`eval 'as_val=${'$as_ac_var'}
40697                  $as_echo "$as_val"'`
40698    if test "x$as_val" = x""yes; then
40699   cat >>confdefs.h <<_ACEOF
40700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40701 _ACEOF
40702  cat >>confdefs.h <<\_ACEOF
40703 #define HAVE_INET_PTON 1
40704 _ACEOF
40705
40706 fi
40707 done
40708
40709
40710 for ac_func in inet_ntop
40711 do
40712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40713 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40714 $as_echo_n "checking for $ac_func... " >&6; }
40715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40716   $as_echo_n "(cached) " >&6
40717 else
40718   cat >conftest.$ac_ext <<_ACEOF
40719 /* confdefs.h.  */
40720 _ACEOF
40721 cat confdefs.h >>conftest.$ac_ext
40722 cat >>conftest.$ac_ext <<_ACEOF
40723 /* end confdefs.h.  */
40724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40726 #define $ac_func innocuous_$ac_func
40727
40728 /* System header to define __stub macros and hopefully few prototypes,
40729     which can conflict with char $ac_func (); below.
40730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40731     <limits.h> exists even on freestanding compilers.  */
40732
40733 #ifdef __STDC__
40734 # include <limits.h>
40735 #else
40736 # include <assert.h>
40737 #endif
40738
40739 #undef $ac_func
40740
40741 /* Override any GCC internal prototype to avoid an error.
40742    Use char because int might match the return type of a GCC
40743    builtin and then its argument prototype would still apply.  */
40744 #ifdef __cplusplus
40745 extern "C"
40746 #endif
40747 char $ac_func ();
40748 /* The GNU C library defines this for functions which it implements
40749     to always fail with ENOSYS.  Some functions are actually named
40750     something starting with __ and the normal name is an alias.  */
40751 #if defined __stub_$ac_func || defined __stub___$ac_func
40752 choke me
40753 #endif
40754
40755 int
40756 main ()
40757 {
40758 return $ac_func ();
40759   ;
40760   return 0;
40761 }
40762 _ACEOF
40763 rm -f conftest.$ac_objext conftest$ac_exeext
40764 if { (ac_try="$ac_link"
40765 case "(($ac_try" in
40766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40767   *) ac_try_echo=$ac_try;;
40768 esac
40769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40770 $as_echo "$ac_try_echo") >&5
40771   (eval "$ac_link") 2>conftest.er1
40772   ac_status=$?
40773   grep -v '^ *+' conftest.er1 >conftest.err
40774   rm -f conftest.er1
40775   cat conftest.err >&5
40776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777   (exit $ac_status); } && {
40778          test -z "$ac_c_werror_flag" ||
40779          test ! -s conftest.err
40780        } && test -s conftest$ac_exeext && {
40781          test "$cross_compiling" = yes ||
40782          $as_test_x conftest$ac_exeext
40783        }; then
40784   eval "$as_ac_var=yes"
40785 else
40786   $as_echo "$as_me: failed program was:" >&5
40787 sed 's/^/| /' conftest.$ac_ext >&5
40788
40789         eval "$as_ac_var=no"
40790 fi
40791
40792 rm -rf conftest.dSYM
40793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40794       conftest$ac_exeext conftest.$ac_ext
40795 fi
40796 ac_res=`eval 'as_val=${'$as_ac_var'}
40797                  $as_echo "$as_val"'`
40798                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40799 $as_echo "$ac_res" >&6; }
40800 as_val=`eval 'as_val=${'$as_ac_var'}
40801                  $as_echo "$as_val"'`
40802    if test "x$as_val" = x""yes; then
40803   cat >>confdefs.h <<_ACEOF
40804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40805 _ACEOF
40806  cat >>confdefs.h <<\_ACEOF
40807 #define HAVE_INET_NTOP 1
40808 _ACEOF
40809
40810 fi
40811 done
40812
40813
40814 for ac_func in gethostbyname2
40815 do
40816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40817 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40818 $as_echo_n "checking for $ac_func... " >&6; }
40819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40820   $as_echo_n "(cached) " >&6
40821 else
40822   cat >conftest.$ac_ext <<_ACEOF
40823 /* confdefs.h.  */
40824 _ACEOF
40825 cat confdefs.h >>conftest.$ac_ext
40826 cat >>conftest.$ac_ext <<_ACEOF
40827 /* end confdefs.h.  */
40828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40830 #define $ac_func innocuous_$ac_func
40831
40832 /* System header to define __stub macros and hopefully few prototypes,
40833     which can conflict with char $ac_func (); below.
40834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40835     <limits.h> exists even on freestanding compilers.  */
40836
40837 #ifdef __STDC__
40838 # include <limits.h>
40839 #else
40840 # include <assert.h>
40841 #endif
40842
40843 #undef $ac_func
40844
40845 /* Override any GCC internal prototype to avoid an error.
40846    Use char because int might match the return type of a GCC
40847    builtin and then its argument prototype would still apply.  */
40848 #ifdef __cplusplus
40849 extern "C"
40850 #endif
40851 char $ac_func ();
40852 /* The GNU C library defines this for functions which it implements
40853     to always fail with ENOSYS.  Some functions are actually named
40854     something starting with __ and the normal name is an alias.  */
40855 #if defined __stub_$ac_func || defined __stub___$ac_func
40856 choke me
40857 #endif
40858
40859 int
40860 main ()
40861 {
40862 return $ac_func ();
40863   ;
40864   return 0;
40865 }
40866 _ACEOF
40867 rm -f conftest.$ac_objext conftest$ac_exeext
40868 if { (ac_try="$ac_link"
40869 case "(($ac_try" in
40870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40871   *) ac_try_echo=$ac_try;;
40872 esac
40873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40874 $as_echo "$ac_try_echo") >&5
40875   (eval "$ac_link") 2>conftest.er1
40876   ac_status=$?
40877   grep -v '^ *+' conftest.er1 >conftest.err
40878   rm -f conftest.er1
40879   cat conftest.err >&5
40880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40881   (exit $ac_status); } && {
40882          test -z "$ac_c_werror_flag" ||
40883          test ! -s conftest.err
40884        } && test -s conftest$ac_exeext && {
40885          test "$cross_compiling" = yes ||
40886          $as_test_x conftest$ac_exeext
40887        }; then
40888   eval "$as_ac_var=yes"
40889 else
40890   $as_echo "$as_me: failed program was:" >&5
40891 sed 's/^/| /' conftest.$ac_ext >&5
40892
40893         eval "$as_ac_var=no"
40894 fi
40895
40896 rm -rf conftest.dSYM
40897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40898       conftest$ac_exeext conftest.$ac_ext
40899 fi
40900 ac_res=`eval 'as_val=${'$as_ac_var'}
40901                  $as_echo "$as_val"'`
40902                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40903 $as_echo "$ac_res" >&6; }
40904 as_val=`eval 'as_val=${'$as_ac_var'}
40905                  $as_echo "$as_val"'`
40906    if test "x$as_val" = x""yes; then
40907   cat >>confdefs.h <<_ACEOF
40908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40909 _ACEOF
40910  cat >>confdefs.h <<\_ACEOF
40911 #define HAVE_GETHOSTBYNAME2 1
40912 _ACEOF
40913
40914 fi
40915 done
40916
40917
40918 { $as_echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
40919 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
40920 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
40921   $as_echo_n "(cached) " >&6
40922 else
40923
40924        cat >conftest.$ac_ext <<_ACEOF
40925 /* confdefs.h.  */
40926 _ACEOF
40927 cat confdefs.h >>conftest.$ac_ext
40928 cat >>conftest.$ac_ext <<_ACEOF
40929 /* end confdefs.h.  */
40930
40931               #include <sys/socket.h>
40932
40933 int
40934 main ()
40935 {
40936
40937               struct sockaddr s; s.sa_len;
40938
40939   ;
40940   return 0;
40941 }
40942 _ACEOF
40943 rm -f conftest.$ac_objext
40944 if { (ac_try="$ac_compile"
40945 case "(($ac_try" in
40946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40947   *) ac_try_echo=$ac_try;;
40948 esac
40949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40950 $as_echo "$ac_try_echo") >&5
40951   (eval "$ac_compile") 2>conftest.er1
40952   ac_status=$?
40953   grep -v '^ *+' conftest.er1 >conftest.err
40954   rm -f conftest.er1
40955   cat conftest.err >&5
40956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40957   (exit $ac_status); } && {
40958          test -z "$ac_c_werror_flag" ||
40959          test ! -s conftest.err
40960        } && test -s conftest.$ac_objext; then
40961
40962              ac_cv_struct_sockaddr_sa_len=yes
40963
40964 else
40965   $as_echo "$as_me: failed program was:" >&5
40966 sed 's/^/| /' conftest.$ac_ext >&5
40967
40968         ac_cv_struct_sockaddr_sa_len=no
40969
40970
40971 fi
40972
40973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40974
40975
40976 fi
40977 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
40978 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
40979
40980 if test $ac_cv_struct_sockaddr_sa_len = yes; then
40981
40982 cat >>confdefs.h <<\_ACEOF
40983 #define HAVE_SA_LEN 1
40984 _ACEOF
40985
40986 fi
40987
40988
40989 for ac_func in strftime
40990 do
40991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40993 $as_echo_n "checking for $ac_func... " >&6; }
40994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40995   $as_echo_n "(cached) " >&6
40996 else
40997   cat >conftest.$ac_ext <<_ACEOF
40998 /* confdefs.h.  */
40999 _ACEOF
41000 cat confdefs.h >>conftest.$ac_ext
41001 cat >>conftest.$ac_ext <<_ACEOF
41002 /* end confdefs.h.  */
41003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41005 #define $ac_func innocuous_$ac_func
41006
41007 /* System header to define __stub macros and hopefully few prototypes,
41008     which can conflict with char $ac_func (); below.
41009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41010     <limits.h> exists even on freestanding compilers.  */
41011
41012 #ifdef __STDC__
41013 # include <limits.h>
41014 #else
41015 # include <assert.h>
41016 #endif
41017
41018 #undef $ac_func
41019
41020 /* Override any GCC internal prototype to avoid an error.
41021    Use char because int might match the return type of a GCC
41022    builtin and then its argument prototype would still apply.  */
41023 #ifdef __cplusplus
41024 extern "C"
41025 #endif
41026 char $ac_func ();
41027 /* The GNU C library defines this for functions which it implements
41028     to always fail with ENOSYS.  Some functions are actually named
41029     something starting with __ and the normal name is an alias.  */
41030 #if defined __stub_$ac_func || defined __stub___$ac_func
41031 choke me
41032 #endif
41033
41034 int
41035 main ()
41036 {
41037 return $ac_func ();
41038   ;
41039   return 0;
41040 }
41041 _ACEOF
41042 rm -f conftest.$ac_objext conftest$ac_exeext
41043 if { (ac_try="$ac_link"
41044 case "(($ac_try" in
41045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41046   *) ac_try_echo=$ac_try;;
41047 esac
41048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41049 $as_echo "$ac_try_echo") >&5
41050   (eval "$ac_link") 2>conftest.er1
41051   ac_status=$?
41052   grep -v '^ *+' conftest.er1 >conftest.err
41053   rm -f conftest.er1
41054   cat conftest.err >&5
41055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056   (exit $ac_status); } && {
41057          test -z "$ac_c_werror_flag" ||
41058          test ! -s conftest.err
41059        } && test -s conftest$ac_exeext && {
41060          test "$cross_compiling" = yes ||
41061          $as_test_x conftest$ac_exeext
41062        }; then
41063   eval "$as_ac_var=yes"
41064 else
41065   $as_echo "$as_me: failed program was:" >&5
41066 sed 's/^/| /' conftest.$ac_ext >&5
41067
41068         eval "$as_ac_var=no"
41069 fi
41070
41071 rm -rf conftest.dSYM
41072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41073       conftest$ac_exeext conftest.$ac_ext
41074 fi
41075 ac_res=`eval 'as_val=${'$as_ac_var'}
41076                  $as_echo "$as_val"'`
41077                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41078 $as_echo "$ac_res" >&6; }
41079 as_val=`eval 'as_val=${'$as_ac_var'}
41080                  $as_echo "$as_val"'`
41081    if test "x$as_val" = x""yes; then
41082   cat >>confdefs.h <<_ACEOF
41083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41084 _ACEOF
41085
41086 else
41087   # strftime is in -lintl on SCO UNIX.
41088 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41089 $as_echo_n "checking for strftime in -lintl... " >&6; }
41090 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41091   $as_echo_n "(cached) " >&6
41092 else
41093   ac_check_lib_save_LIBS=$LIBS
41094 LIBS="-lintl  $LIBS"
41095 cat >conftest.$ac_ext <<_ACEOF
41096 /* confdefs.h.  */
41097 _ACEOF
41098 cat confdefs.h >>conftest.$ac_ext
41099 cat >>conftest.$ac_ext <<_ACEOF
41100 /* end confdefs.h.  */
41101
41102 /* Override any GCC internal prototype to avoid an error.
41103    Use char because int might match the return type of a GCC
41104    builtin and then its argument prototype would still apply.  */
41105 #ifdef __cplusplus
41106 extern "C"
41107 #endif
41108 char strftime ();
41109 int
41110 main ()
41111 {
41112 return strftime ();
41113   ;
41114   return 0;
41115 }
41116 _ACEOF
41117 rm -f conftest.$ac_objext conftest$ac_exeext
41118 if { (ac_try="$ac_link"
41119 case "(($ac_try" in
41120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41121   *) ac_try_echo=$ac_try;;
41122 esac
41123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41124 $as_echo "$ac_try_echo") >&5
41125   (eval "$ac_link") 2>conftest.er1
41126   ac_status=$?
41127   grep -v '^ *+' conftest.er1 >conftest.err
41128   rm -f conftest.er1
41129   cat conftest.err >&5
41130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131   (exit $ac_status); } && {
41132          test -z "$ac_c_werror_flag" ||
41133          test ! -s conftest.err
41134        } && test -s conftest$ac_exeext && {
41135          test "$cross_compiling" = yes ||
41136          $as_test_x conftest$ac_exeext
41137        }; then
41138   ac_cv_lib_intl_strftime=yes
41139 else
41140   $as_echo "$as_me: failed program was:" >&5
41141 sed 's/^/| /' conftest.$ac_ext >&5
41142
41143         ac_cv_lib_intl_strftime=no
41144 fi
41145
41146 rm -rf conftest.dSYM
41147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41148       conftest$ac_exeext conftest.$ac_ext
41149 LIBS=$ac_check_lib_save_LIBS
41150 fi
41151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41152 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
41153 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
41154   cat >>confdefs.h <<\_ACEOF
41155 #define HAVE_STRFTIME 1
41156 _ACEOF
41157
41158 LIBS="-lintl $LIBS"
41159 fi
41160
41161 fi
41162 done
41163
41164
41165 for ac_func in vprintf
41166 do
41167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41168 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41169 $as_echo_n "checking for $ac_func... " >&6; }
41170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41171   $as_echo_n "(cached) " >&6
41172 else
41173   cat >conftest.$ac_ext <<_ACEOF
41174 /* confdefs.h.  */
41175 _ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h.  */
41179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41181 #define $ac_func innocuous_$ac_func
41182
41183 /* System header to define __stub macros and hopefully few prototypes,
41184     which can conflict with char $ac_func (); below.
41185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41186     <limits.h> exists even on freestanding compilers.  */
41187
41188 #ifdef __STDC__
41189 # include <limits.h>
41190 #else
41191 # include <assert.h>
41192 #endif
41193
41194 #undef $ac_func
41195
41196 /* Override any GCC internal prototype to avoid an error.
41197    Use char because int might match the return type of a GCC
41198    builtin and then its argument prototype would still apply.  */
41199 #ifdef __cplusplus
41200 extern "C"
41201 #endif
41202 char $ac_func ();
41203 /* The GNU C library defines this for functions which it implements
41204     to always fail with ENOSYS.  Some functions are actually named
41205     something starting with __ and the normal name is an alias.  */
41206 #if defined __stub_$ac_func || defined __stub___$ac_func
41207 choke me
41208 #endif
41209
41210 int
41211 main ()
41212 {
41213 return $ac_func ();
41214   ;
41215   return 0;
41216 }
41217 _ACEOF
41218 rm -f conftest.$ac_objext conftest$ac_exeext
41219 if { (ac_try="$ac_link"
41220 case "(($ac_try" in
41221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41222   *) ac_try_echo=$ac_try;;
41223 esac
41224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41225 $as_echo "$ac_try_echo") >&5
41226   (eval "$ac_link") 2>conftest.er1
41227   ac_status=$?
41228   grep -v '^ *+' conftest.er1 >conftest.err
41229   rm -f conftest.er1
41230   cat conftest.err >&5
41231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232   (exit $ac_status); } && {
41233          test -z "$ac_c_werror_flag" ||
41234          test ! -s conftest.err
41235        } && test -s conftest$ac_exeext && {
41236          test "$cross_compiling" = yes ||
41237          $as_test_x conftest$ac_exeext
41238        }; then
41239   eval "$as_ac_var=yes"
41240 else
41241   $as_echo "$as_me: failed program was:" >&5
41242 sed 's/^/| /' conftest.$ac_ext >&5
41243
41244         eval "$as_ac_var=no"
41245 fi
41246
41247 rm -rf conftest.dSYM
41248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41249       conftest$ac_exeext conftest.$ac_ext
41250 fi
41251 ac_res=`eval 'as_val=${'$as_ac_var'}
41252                  $as_echo "$as_val"'`
41253                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41254 $as_echo "$ac_res" >&6; }
41255 as_val=`eval 'as_val=${'$as_ac_var'}
41256                  $as_echo "$as_val"'`
41257    if test "x$as_val" = x""yes; then
41258   cat >>confdefs.h <<_ACEOF
41259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41260 _ACEOF
41261
41262 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
41263 $as_echo_n "checking for _doprnt... " >&6; }
41264 if test "${ac_cv_func__doprnt+set}" = set; then
41265   $as_echo_n "(cached) " >&6
41266 else
41267   cat >conftest.$ac_ext <<_ACEOF
41268 /* confdefs.h.  */
41269 _ACEOF
41270 cat confdefs.h >>conftest.$ac_ext
41271 cat >>conftest.$ac_ext <<_ACEOF
41272 /* end confdefs.h.  */
41273 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41275 #define _doprnt innocuous__doprnt
41276
41277 /* System header to define __stub macros and hopefully few prototypes,
41278     which can conflict with char _doprnt (); below.
41279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41280     <limits.h> exists even on freestanding compilers.  */
41281
41282 #ifdef __STDC__
41283 # include <limits.h>
41284 #else
41285 # include <assert.h>
41286 #endif
41287
41288 #undef _doprnt
41289
41290 /* Override any GCC internal prototype to avoid an error.
41291    Use char because int might match the return type of a GCC
41292    builtin and then its argument prototype would still apply.  */
41293 #ifdef __cplusplus
41294 extern "C"
41295 #endif
41296 char _doprnt ();
41297 /* The GNU C library defines this for functions which it implements
41298     to always fail with ENOSYS.  Some functions are actually named
41299     something starting with __ and the normal name is an alias.  */
41300 #if defined __stub__doprnt || defined __stub____doprnt
41301 choke me
41302 #endif
41303
41304 int
41305 main ()
41306 {
41307 return _doprnt ();
41308   ;
41309   return 0;
41310 }
41311 _ACEOF
41312 rm -f conftest.$ac_objext conftest$ac_exeext
41313 if { (ac_try="$ac_link"
41314 case "(($ac_try" in
41315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41316   *) ac_try_echo=$ac_try;;
41317 esac
41318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41319 $as_echo "$ac_try_echo") >&5
41320   (eval "$ac_link") 2>conftest.er1
41321   ac_status=$?
41322   grep -v '^ *+' conftest.er1 >conftest.err
41323   rm -f conftest.er1
41324   cat conftest.err >&5
41325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41326   (exit $ac_status); } && {
41327          test -z "$ac_c_werror_flag" ||
41328          test ! -s conftest.err
41329        } && test -s conftest$ac_exeext && {
41330          test "$cross_compiling" = yes ||
41331          $as_test_x conftest$ac_exeext
41332        }; then
41333   ac_cv_func__doprnt=yes
41334 else
41335   $as_echo "$as_me: failed program was:" >&5
41336 sed 's/^/| /' conftest.$ac_ext >&5
41337
41338         ac_cv_func__doprnt=no
41339 fi
41340
41341 rm -rf conftest.dSYM
41342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41343       conftest$ac_exeext conftest.$ac_ext
41344 fi
41345 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41346 $as_echo "$ac_cv_func__doprnt" >&6; }
41347 if test "x$ac_cv_func__doprnt" = x""yes; then
41348
41349 cat >>confdefs.h <<\_ACEOF
41350 #define HAVE_DOPRNT 1
41351 _ACEOF
41352
41353 fi
41354
41355 fi
41356 done
41357
41358
41359 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
41360 # for constant arguments.  Useless!
41361 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
41362 $as_echo_n "checking for working alloca.h... " >&6; }
41363 if test "${ac_cv_working_alloca_h+set}" = set; then
41364   $as_echo_n "(cached) " >&6
41365 else
41366   cat >conftest.$ac_ext <<_ACEOF
41367 /* confdefs.h.  */
41368 _ACEOF
41369 cat confdefs.h >>conftest.$ac_ext
41370 cat >>conftest.$ac_ext <<_ACEOF
41371 /* end confdefs.h.  */
41372 #include <alloca.h>
41373 int
41374 main ()
41375 {
41376 char *p = (char *) alloca (2 * sizeof (int));
41377                           if (p) return 0;
41378   ;
41379   return 0;
41380 }
41381 _ACEOF
41382 rm -f conftest.$ac_objext conftest$ac_exeext
41383 if { (ac_try="$ac_link"
41384 case "(($ac_try" in
41385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41386   *) ac_try_echo=$ac_try;;
41387 esac
41388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41389 $as_echo "$ac_try_echo") >&5
41390   (eval "$ac_link") 2>conftest.er1
41391   ac_status=$?
41392   grep -v '^ *+' conftest.er1 >conftest.err
41393   rm -f conftest.er1
41394   cat conftest.err >&5
41395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41396   (exit $ac_status); } && {
41397          test -z "$ac_c_werror_flag" ||
41398          test ! -s conftest.err
41399        } && test -s conftest$ac_exeext && {
41400          test "$cross_compiling" = yes ||
41401          $as_test_x conftest$ac_exeext
41402        }; then
41403   ac_cv_working_alloca_h=yes
41404 else
41405   $as_echo "$as_me: failed program was:" >&5
41406 sed 's/^/| /' conftest.$ac_ext >&5
41407
41408         ac_cv_working_alloca_h=no
41409 fi
41410
41411 rm -rf conftest.dSYM
41412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41413       conftest$ac_exeext conftest.$ac_ext
41414 fi
41415 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
41416 $as_echo "$ac_cv_working_alloca_h" >&6; }
41417 if test $ac_cv_working_alloca_h = yes; then
41418
41419 cat >>confdefs.h <<\_ACEOF
41420 #define HAVE_ALLOCA_H 1
41421 _ACEOF
41422
41423 fi
41424
41425 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
41426 $as_echo_n "checking for alloca... " >&6; }
41427 if test "${ac_cv_func_alloca_works+set}" = set; then
41428   $as_echo_n "(cached) " >&6
41429 else
41430   cat >conftest.$ac_ext <<_ACEOF
41431 /* confdefs.h.  */
41432 _ACEOF
41433 cat confdefs.h >>conftest.$ac_ext
41434 cat >>conftest.$ac_ext <<_ACEOF
41435 /* end confdefs.h.  */
41436 #ifdef __GNUC__
41437 # define alloca __builtin_alloca
41438 #else
41439 # ifdef _MSC_VER
41440 #  include <malloc.h>
41441 #  define alloca _alloca
41442 # else
41443 #  ifdef HAVE_ALLOCA_H
41444 #   include <alloca.h>
41445 #  else
41446 #   ifdef _AIX
41447  #pragma alloca
41448 #   else
41449 #    ifndef alloca /* predefined by HP cc +Olibcalls */
41450 char *alloca ();
41451 #    endif
41452 #   endif
41453 #  endif
41454 # endif
41455 #endif
41456
41457 int
41458 main ()
41459 {
41460 char *p = (char *) alloca (1);
41461                                     if (p) return 0;
41462   ;
41463   return 0;
41464 }
41465 _ACEOF
41466 rm -f conftest.$ac_objext conftest$ac_exeext
41467 if { (ac_try="$ac_link"
41468 case "(($ac_try" in
41469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41470   *) ac_try_echo=$ac_try;;
41471 esac
41472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41473 $as_echo "$ac_try_echo") >&5
41474   (eval "$ac_link") 2>conftest.er1
41475   ac_status=$?
41476   grep -v '^ *+' conftest.er1 >conftest.err
41477   rm -f conftest.er1
41478   cat conftest.err >&5
41479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41480   (exit $ac_status); } && {
41481          test -z "$ac_c_werror_flag" ||
41482          test ! -s conftest.err
41483        } && test -s conftest$ac_exeext && {
41484          test "$cross_compiling" = yes ||
41485          $as_test_x conftest$ac_exeext
41486        }; then
41487   ac_cv_func_alloca_works=yes
41488 else
41489   $as_echo "$as_me: failed program was:" >&5
41490 sed 's/^/| /' conftest.$ac_ext >&5
41491
41492         ac_cv_func_alloca_works=no
41493 fi
41494
41495 rm -rf conftest.dSYM
41496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41497       conftest$ac_exeext conftest.$ac_ext
41498 fi
41499 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
41500 $as_echo "$ac_cv_func_alloca_works" >&6; }
41501
41502 if test $ac_cv_func_alloca_works = yes; then
41503
41504 cat >>confdefs.h <<\_ACEOF
41505 #define HAVE_ALLOCA 1
41506 _ACEOF
41507
41508 else
41509   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
41510 # that cause trouble.  Some versions do not even contain alloca or
41511 # contain a buggy version.  If you still want to use their alloca,
41512 # use ar to extract alloca.o from them instead of compiling alloca.c.
41513
41514 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
41515
41516 cat >>confdefs.h <<\_ACEOF
41517 #define C_ALLOCA 1
41518 _ACEOF
41519
41520
41521 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
41522 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
41523 if test "${ac_cv_os_cray+set}" = set; then
41524   $as_echo_n "(cached) " >&6
41525 else
41526   cat >conftest.$ac_ext <<_ACEOF
41527 /* confdefs.h.  */
41528 _ACEOF
41529 cat confdefs.h >>conftest.$ac_ext
41530 cat >>conftest.$ac_ext <<_ACEOF
41531 /* end confdefs.h.  */
41532 #if defined CRAY && ! defined CRAY2
41533 webecray
41534 #else
41535 wenotbecray
41536 #endif
41537
41538 _ACEOF
41539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41540   $EGREP "webecray" >/dev/null 2>&1; then
41541   ac_cv_os_cray=yes
41542 else
41543   ac_cv_os_cray=no
41544 fi
41545 rm -f conftest*
41546
41547 fi
41548 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
41549 $as_echo "$ac_cv_os_cray" >&6; }
41550 if test $ac_cv_os_cray = yes; then
41551   for ac_func in _getb67 GETB67 getb67; do
41552     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41553 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41554 $as_echo_n "checking for $ac_func... " >&6; }
41555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41556   $as_echo_n "(cached) " >&6
41557 else
41558   cat >conftest.$ac_ext <<_ACEOF
41559 /* confdefs.h.  */
41560 _ACEOF
41561 cat confdefs.h >>conftest.$ac_ext
41562 cat >>conftest.$ac_ext <<_ACEOF
41563 /* end confdefs.h.  */
41564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41566 #define $ac_func innocuous_$ac_func
41567
41568 /* System header to define __stub macros and hopefully few prototypes,
41569     which can conflict with char $ac_func (); below.
41570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41571     <limits.h> exists even on freestanding compilers.  */
41572
41573 #ifdef __STDC__
41574 # include <limits.h>
41575 #else
41576 # include <assert.h>
41577 #endif
41578
41579 #undef $ac_func
41580
41581 /* Override any GCC internal prototype to avoid an error.
41582    Use char because int might match the return type of a GCC
41583    builtin and then its argument prototype would still apply.  */
41584 #ifdef __cplusplus
41585 extern "C"
41586 #endif
41587 char $ac_func ();
41588 /* The GNU C library defines this for functions which it implements
41589     to always fail with ENOSYS.  Some functions are actually named
41590     something starting with __ and the normal name is an alias.  */
41591 #if defined __stub_$ac_func || defined __stub___$ac_func
41592 choke me
41593 #endif
41594
41595 int
41596 main ()
41597 {
41598 return $ac_func ();
41599   ;
41600   return 0;
41601 }
41602 _ACEOF
41603 rm -f conftest.$ac_objext conftest$ac_exeext
41604 if { (ac_try="$ac_link"
41605 case "(($ac_try" in
41606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41607   *) ac_try_echo=$ac_try;;
41608 esac
41609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41610 $as_echo "$ac_try_echo") >&5
41611   (eval "$ac_link") 2>conftest.er1
41612   ac_status=$?
41613   grep -v '^ *+' conftest.er1 >conftest.err
41614   rm -f conftest.er1
41615   cat conftest.err >&5
41616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617   (exit $ac_status); } && {
41618          test -z "$ac_c_werror_flag" ||
41619          test ! -s conftest.err
41620        } && test -s conftest$ac_exeext && {
41621          test "$cross_compiling" = yes ||
41622          $as_test_x conftest$ac_exeext
41623        }; then
41624   eval "$as_ac_var=yes"
41625 else
41626   $as_echo "$as_me: failed program was:" >&5
41627 sed 's/^/| /' conftest.$ac_ext >&5
41628
41629         eval "$as_ac_var=no"
41630 fi
41631
41632 rm -rf conftest.dSYM
41633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41634       conftest$ac_exeext conftest.$ac_ext
41635 fi
41636 ac_res=`eval 'as_val=${'$as_ac_var'}
41637                  $as_echo "$as_val"'`
41638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41639 $as_echo "$ac_res" >&6; }
41640 as_val=`eval 'as_val=${'$as_ac_var'}
41641                  $as_echo "$as_val"'`
41642    if test "x$as_val" = x""yes; then
41643
41644 cat >>confdefs.h <<_ACEOF
41645 #define CRAY_STACKSEG_END $ac_func
41646 _ACEOF
41647
41648     break
41649 fi
41650
41651   done
41652 fi
41653
41654 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
41655 $as_echo_n "checking stack direction for C alloca... " >&6; }
41656 if test "${ac_cv_c_stack_direction+set}" = set; then
41657   $as_echo_n "(cached) " >&6
41658 else
41659   if test "$cross_compiling" = yes; then
41660   ac_cv_c_stack_direction=0
41661 else
41662   cat >conftest.$ac_ext <<_ACEOF
41663 /* confdefs.h.  */
41664 _ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h.  */
41668 $ac_includes_default
41669 int
41670 find_stack_direction ()
41671 {
41672   static char *addr = 0;
41673   auto char dummy;
41674   if (addr == 0)
41675     {
41676       addr = &dummy;
41677       return find_stack_direction ();
41678     }
41679   else
41680     return (&dummy > addr) ? 1 : -1;
41681 }
41682
41683 int
41684 main ()
41685 {
41686   return find_stack_direction () < 0;
41687 }
41688 _ACEOF
41689 rm -f conftest$ac_exeext
41690 if { (ac_try="$ac_link"
41691 case "(($ac_try" in
41692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41693   *) ac_try_echo=$ac_try;;
41694 esac
41695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41696 $as_echo "$ac_try_echo") >&5
41697   (eval "$ac_link") 2>&5
41698   ac_status=$?
41699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41701   { (case "(($ac_try" in
41702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41703   *) ac_try_echo=$ac_try;;
41704 esac
41705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41706 $as_echo "$ac_try_echo") >&5
41707   (eval "$ac_try") 2>&5
41708   ac_status=$?
41709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710   (exit $ac_status); }; }; then
41711   ac_cv_c_stack_direction=1
41712 else
41713   $as_echo "$as_me: program exited with status $ac_status" >&5
41714 $as_echo "$as_me: failed program was:" >&5
41715 sed 's/^/| /' conftest.$ac_ext >&5
41716
41717 ( exit $ac_status )
41718 ac_cv_c_stack_direction=-1
41719 fi
41720 rm -rf conftest.dSYM
41721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41722 fi
41723
41724
41725 fi
41726 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
41727 $as_echo "$ac_cv_c_stack_direction" >&6; }
41728
41729 cat >>confdefs.h <<_ACEOF
41730 #define STACK_DIRECTION $ac_cv_c_stack_direction
41731 _ACEOF
41732
41733
41734 fi
41735
41736 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
41737 # -lseq on Dynix/PTX, -lgen on Unixware.
41738 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
41739 $as_echo_n "checking for library containing getmntent... " >&6; }
41740 if test "${ac_cv_search_getmntent+set}" = set; then
41741   $as_echo_n "(cached) " >&6
41742 else
41743   ac_func_search_save_LIBS=$LIBS
41744 cat >conftest.$ac_ext <<_ACEOF
41745 /* confdefs.h.  */
41746 _ACEOF
41747 cat confdefs.h >>conftest.$ac_ext
41748 cat >>conftest.$ac_ext <<_ACEOF
41749 /* end confdefs.h.  */
41750
41751 /* Override any GCC internal prototype to avoid an error.
41752    Use char because int might match the return type of a GCC
41753    builtin and then its argument prototype would still apply.  */
41754 #ifdef __cplusplus
41755 extern "C"
41756 #endif
41757 char getmntent ();
41758 int
41759 main ()
41760 {
41761 return getmntent ();
41762   ;
41763   return 0;
41764 }
41765 _ACEOF
41766 for ac_lib in '' sun seq gen; do
41767   if test -z "$ac_lib"; then
41768     ac_res="none required"
41769   else
41770     ac_res=-l$ac_lib
41771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41772   fi
41773   rm -f conftest.$ac_objext conftest$ac_exeext
41774 if { (ac_try="$ac_link"
41775 case "(($ac_try" in
41776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41777   *) ac_try_echo=$ac_try;;
41778 esac
41779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41780 $as_echo "$ac_try_echo") >&5
41781   (eval "$ac_link") 2>conftest.er1
41782   ac_status=$?
41783   grep -v '^ *+' conftest.er1 >conftest.err
41784   rm -f conftest.er1
41785   cat conftest.err >&5
41786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787   (exit $ac_status); } && {
41788          test -z "$ac_c_werror_flag" ||
41789          test ! -s conftest.err
41790        } && test -s conftest$ac_exeext && {
41791          test "$cross_compiling" = yes ||
41792          $as_test_x conftest$ac_exeext
41793        }; then
41794   ac_cv_search_getmntent=$ac_res
41795 else
41796   $as_echo "$as_me: failed program was:" >&5
41797 sed 's/^/| /' conftest.$ac_ext >&5
41798
41799
41800 fi
41801
41802 rm -rf conftest.dSYM
41803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41804       conftest$ac_exeext
41805   if test "${ac_cv_search_getmntent+set}" = set; then
41806   break
41807 fi
41808 done
41809 if test "${ac_cv_search_getmntent+set}" = set; then
41810   :
41811 else
41812   ac_cv_search_getmntent=no
41813 fi
41814 rm conftest.$ac_ext
41815 LIBS=$ac_func_search_save_LIBS
41816 fi
41817 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
41818 $as_echo "$ac_cv_search_getmntent" >&6; }
41819 ac_res=$ac_cv_search_getmntent
41820 if test "$ac_res" != no; then
41821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41822   ac_cv_func_getmntent=yes
41823
41824 cat >>confdefs.h <<\_ACEOF
41825 #define HAVE_GETMNTENT 1
41826 _ACEOF
41827
41828 else
41829   ac_cv_func_getmntent=no
41830 fi
41831
41832
41833
41834 for ac_func in getmntinfo
41835 do
41836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41837 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41838 $as_echo_n "checking for $ac_func... " >&6; }
41839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41840   $as_echo_n "(cached) " >&6
41841 else
41842   cat >conftest.$ac_ext <<_ACEOF
41843 /* confdefs.h.  */
41844 _ACEOF
41845 cat confdefs.h >>conftest.$ac_ext
41846 cat >>conftest.$ac_ext <<_ACEOF
41847 /* end confdefs.h.  */
41848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41850 #define $ac_func innocuous_$ac_func
41851
41852 /* System header to define __stub macros and hopefully few prototypes,
41853     which can conflict with char $ac_func (); below.
41854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41855     <limits.h> exists even on freestanding compilers.  */
41856
41857 #ifdef __STDC__
41858 # include <limits.h>
41859 #else
41860 # include <assert.h>
41861 #endif
41862
41863 #undef $ac_func
41864
41865 /* Override any GCC internal prototype to avoid an error.
41866    Use char because int might match the return type of a GCC
41867    builtin and then its argument prototype would still apply.  */
41868 #ifdef __cplusplus
41869 extern "C"
41870 #endif
41871 char $ac_func ();
41872 /* The GNU C library defines this for functions which it implements
41873     to always fail with ENOSYS.  Some functions are actually named
41874     something starting with __ and the normal name is an alias.  */
41875 #if defined __stub_$ac_func || defined __stub___$ac_func
41876 choke me
41877 #endif
41878
41879 int
41880 main ()
41881 {
41882 return $ac_func ();
41883   ;
41884   return 0;
41885 }
41886 _ACEOF
41887 rm -f conftest.$ac_objext conftest$ac_exeext
41888 if { (ac_try="$ac_link"
41889 case "(($ac_try" in
41890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41891   *) ac_try_echo=$ac_try;;
41892 esac
41893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41894 $as_echo "$ac_try_echo") >&5
41895   (eval "$ac_link") 2>conftest.er1
41896   ac_status=$?
41897   grep -v '^ *+' conftest.er1 >conftest.err
41898   rm -f conftest.er1
41899   cat conftest.err >&5
41900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901   (exit $ac_status); } && {
41902          test -z "$ac_c_werror_flag" ||
41903          test ! -s conftest.err
41904        } && test -s conftest$ac_exeext && {
41905          test "$cross_compiling" = yes ||
41906          $as_test_x conftest$ac_exeext
41907        }; then
41908   eval "$as_ac_var=yes"
41909 else
41910   $as_echo "$as_me: failed program was:" >&5
41911 sed 's/^/| /' conftest.$ac_ext >&5
41912
41913         eval "$as_ac_var=no"
41914 fi
41915
41916 rm -rf conftest.dSYM
41917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41918       conftest$ac_exeext conftest.$ac_ext
41919 fi
41920 ac_res=`eval 'as_val=${'$as_ac_var'}
41921                  $as_echo "$as_val"'`
41922                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41923 $as_echo "$ac_res" >&6; }
41924 as_val=`eval 'as_val=${'$as_ac_var'}
41925                  $as_echo "$as_val"'`
41926    if test "x$as_val" = x""yes; then
41927   cat >>confdefs.h <<_ACEOF
41928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41929 _ACEOF
41930  cat >>confdefs.h <<\_ACEOF
41931 #define HAVE_GETMNTINFO 1
41932 _ACEOF
41933
41934 fi
41935 done
41936
41937 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
41938 $as_echo_n "checking whether closedir returns void... " >&6; }
41939 if test "${ac_cv_func_closedir_void+set}" = set; then
41940   $as_echo_n "(cached) " >&6
41941 else
41942   if test "$cross_compiling" = yes; then
41943   ac_cv_func_closedir_void=yes
41944 else
41945   cat >conftest.$ac_ext <<_ACEOF
41946 /* confdefs.h.  */
41947 _ACEOF
41948 cat confdefs.h >>conftest.$ac_ext
41949 cat >>conftest.$ac_ext <<_ACEOF
41950 /* end confdefs.h.  */
41951 $ac_includes_default
41952 #include <$ac_header_dirent>
41953 #ifndef __cplusplus
41954 int closedir ();
41955 #endif
41956
41957 int
41958 main ()
41959 {
41960 return closedir (opendir (".")) != 0;
41961   ;
41962   return 0;
41963 }
41964 _ACEOF
41965 rm -f conftest$ac_exeext
41966 if { (ac_try="$ac_link"
41967 case "(($ac_try" in
41968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969   *) ac_try_echo=$ac_try;;
41970 esac
41971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41972 $as_echo "$ac_try_echo") >&5
41973   (eval "$ac_link") 2>&5
41974   ac_status=$?
41975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41977   { (case "(($ac_try" in
41978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41979   *) ac_try_echo=$ac_try;;
41980 esac
41981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41982 $as_echo "$ac_try_echo") >&5
41983   (eval "$ac_try") 2>&5
41984   ac_status=$?
41985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41986   (exit $ac_status); }; }; then
41987   ac_cv_func_closedir_void=no
41988 else
41989   $as_echo "$as_me: program exited with status $ac_status" >&5
41990 $as_echo "$as_me: failed program was:" >&5
41991 sed 's/^/| /' conftest.$ac_ext >&5
41992
41993 ( exit $ac_status )
41994 ac_cv_func_closedir_void=yes
41995 fi
41996 rm -rf conftest.dSYM
41997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41998 fi
41999
42000
42001 fi
42002 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
42003 $as_echo "$ac_cv_func_closedir_void" >&6; }
42004 if test $ac_cv_func_closedir_void = yes; then
42005
42006 cat >>confdefs.h <<\_ACEOF
42007 #define CLOSEDIR_VOID 1
42008 _ACEOF
42009
42010 fi
42011
42012 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42013 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42014 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42015   $as_echo_n "(cached) " >&6
42016 else
42017   if test "$cross_compiling" = yes; then
42018   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42019 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42020    { (exit 1); exit 1; }; }
42021 else
42022   cat >conftest.$ac_ext <<_ACEOF
42023 /* confdefs.h.  */
42024 _ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h.  */
42028 $ac_includes_default
42029 int
42030 main ()
42031 {
42032 /* If this system has a BSD-style setpgrp which takes arguments,
42033   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42034   exit successfully. */
42035   return setpgrp (1,1) != -1;
42036   ;
42037   return 0;
42038 }
42039 _ACEOF
42040 rm -f conftest$ac_exeext
42041 if { (ac_try="$ac_link"
42042 case "(($ac_try" in
42043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42044   *) ac_try_echo=$ac_try;;
42045 esac
42046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42047 $as_echo "$ac_try_echo") >&5
42048   (eval "$ac_link") 2>&5
42049   ac_status=$?
42050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42052   { (case "(($ac_try" in
42053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42054   *) ac_try_echo=$ac_try;;
42055 esac
42056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42057 $as_echo "$ac_try_echo") >&5
42058   (eval "$ac_try") 2>&5
42059   ac_status=$?
42060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061   (exit $ac_status); }; }; then
42062   ac_cv_func_setpgrp_void=no
42063 else
42064   $as_echo "$as_me: program exited with status $ac_status" >&5
42065 $as_echo "$as_me: failed program was:" >&5
42066 sed 's/^/| /' conftest.$ac_ext >&5
42067
42068 ( exit $ac_status )
42069 ac_cv_func_setpgrp_void=yes
42070 fi
42071 rm -rf conftest.dSYM
42072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42073 fi
42074
42075
42076 fi
42077 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
42078 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42079 if test $ac_cv_func_setpgrp_void = yes; then
42080
42081 cat >>confdefs.h <<\_ACEOF
42082 #define SETPGRP_VOID 1
42083 _ACEOF
42084
42085 fi
42086             # AC_FUNC_FNMATCH    dnl use local version
42087
42088 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
42089 $as_echo_n "checking for gettext in -lintl... " >&6; }
42090 if test "${ac_cv_lib_intl_gettext+set}" = set; then
42091   $as_echo_n "(cached) " >&6
42092 else
42093   ac_check_lib_save_LIBS=$LIBS
42094 LIBS="-lintl  $LIBS"
42095 cat >conftest.$ac_ext <<_ACEOF
42096 /* confdefs.h.  */
42097 _ACEOF
42098 cat confdefs.h >>conftest.$ac_ext
42099 cat >>conftest.$ac_ext <<_ACEOF
42100 /* end confdefs.h.  */
42101
42102 /* Override any GCC internal prototype to avoid an error.
42103    Use char because int might match the return type of a GCC
42104    builtin and then its argument prototype would still apply.  */
42105 #ifdef __cplusplus
42106 extern "C"
42107 #endif
42108 char gettext ();
42109 int
42110 main ()
42111 {
42112 return gettext ();
42113   ;
42114   return 0;
42115 }
42116 _ACEOF
42117 rm -f conftest.$ac_objext conftest$ac_exeext
42118 if { (ac_try="$ac_link"
42119 case "(($ac_try" in
42120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42121   *) ac_try_echo=$ac_try;;
42122 esac
42123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42124 $as_echo "$ac_try_echo") >&5
42125   (eval "$ac_link") 2>conftest.er1
42126   ac_status=$?
42127   grep -v '^ *+' conftest.er1 >conftest.err
42128   rm -f conftest.er1
42129   cat conftest.err >&5
42130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131   (exit $ac_status); } && {
42132          test -z "$ac_c_werror_flag" ||
42133          test ! -s conftest.err
42134        } && test -s conftest$ac_exeext && {
42135          test "$cross_compiling" = yes ||
42136          $as_test_x conftest$ac_exeext
42137        }; then
42138   ac_cv_lib_intl_gettext=yes
42139 else
42140   $as_echo "$as_me: failed program was:" >&5
42141 sed 's/^/| /' conftest.$ac_ext >&5
42142
42143         ac_cv_lib_intl_gettext=no
42144 fi
42145
42146 rm -rf conftest.dSYM
42147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42148       conftest$ac_exeext conftest.$ac_ext
42149 LIBS=$ac_check_lib_save_LIBS
42150 fi
42151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
42152 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
42153 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
42154   LIBS="$LIBS -lintl"
42155 fi
42156
42157
42158
42159 { $as_echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
42160 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
42161 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
42162   $as_echo_n "(cached) " >&6
42163 else
42164   ac_check_lib_save_LIBS=$LIBS
42165 LIBS="-lsun  $LIBS"
42166 cat >conftest.$ac_ext <<_ACEOF
42167 /* confdefs.h.  */
42168 _ACEOF
42169 cat confdefs.h >>conftest.$ac_ext
42170 cat >>conftest.$ac_ext <<_ACEOF
42171 /* end confdefs.h.  */
42172
42173 /* Override any GCC internal prototype to avoid an error.
42174    Use char because int might match the return type of a GCC
42175    builtin and then its argument prototype would still apply.  */
42176 #ifdef __cplusplus
42177 extern "C"
42178 #endif
42179 char getpwnam ();
42180 int
42181 main ()
42182 {
42183 return getpwnam ();
42184   ;
42185   return 0;
42186 }
42187 _ACEOF
42188 rm -f conftest.$ac_objext conftest$ac_exeext
42189 if { (ac_try="$ac_link"
42190 case "(($ac_try" in
42191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42192   *) ac_try_echo=$ac_try;;
42193 esac
42194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42195 $as_echo "$ac_try_echo") >&5
42196   (eval "$ac_link") 2>conftest.er1
42197   ac_status=$?
42198   grep -v '^ *+' conftest.er1 >conftest.err
42199   rm -f conftest.er1
42200   cat conftest.err >&5
42201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42202   (exit $ac_status); } && {
42203          test -z "$ac_c_werror_flag" ||
42204          test ! -s conftest.err
42205        } && test -s conftest$ac_exeext && {
42206          test "$cross_compiling" = yes ||
42207          $as_test_x conftest$ac_exeext
42208        }; then
42209   ac_cv_lib_sun_getpwnam=yes
42210 else
42211   $as_echo "$as_me: failed program was:" >&5
42212 sed 's/^/| /' conftest.$ac_ext >&5
42213
42214         ac_cv_lib_sun_getpwnam=no
42215 fi
42216
42217 rm -rf conftest.dSYM
42218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42219       conftest$ac_exeext conftest.$ac_ext
42220 LIBS=$ac_check_lib_save_LIBS
42221 fi
42222 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
42223 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
42224 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then
42225   cat >>confdefs.h <<_ACEOF
42226 #define HAVE_LIBSUN 1
42227 _ACEOF
42228
42229   LIBS="-lsun $LIBS"
42230
42231 fi
42232
42233
42234
42235 for ac_header in zlib.h
42236 do
42237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42239   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42240 $as_echo_n "checking for $ac_header... " >&6; }
42241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42242   $as_echo_n "(cached) " >&6
42243 fi
42244 ac_res=`eval 'as_val=${'$as_ac_Header'}
42245                  $as_echo "$as_val"'`
42246                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42247 $as_echo "$ac_res" >&6; }
42248 else
42249   # Is the header compilable?
42250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42251 $as_echo_n "checking $ac_header usability... " >&6; }
42252 cat >conftest.$ac_ext <<_ACEOF
42253 /* confdefs.h.  */
42254 _ACEOF
42255 cat confdefs.h >>conftest.$ac_ext
42256 cat >>conftest.$ac_ext <<_ACEOF
42257 /* end confdefs.h.  */
42258 $ac_includes_default
42259 #include <$ac_header>
42260 _ACEOF
42261 rm -f conftest.$ac_objext
42262 if { (ac_try="$ac_compile"
42263 case "(($ac_try" in
42264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42265   *) ac_try_echo=$ac_try;;
42266 esac
42267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42268 $as_echo "$ac_try_echo") >&5
42269   (eval "$ac_compile") 2>conftest.er1
42270   ac_status=$?
42271   grep -v '^ *+' conftest.er1 >conftest.err
42272   rm -f conftest.er1
42273   cat conftest.err >&5
42274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275   (exit $ac_status); } && {
42276          test -z "$ac_c_werror_flag" ||
42277          test ! -s conftest.err
42278        } && test -s conftest.$ac_objext; then
42279   ac_header_compiler=yes
42280 else
42281   $as_echo "$as_me: failed program was:" >&5
42282 sed 's/^/| /' conftest.$ac_ext >&5
42283
42284         ac_header_compiler=no
42285 fi
42286
42287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42289 $as_echo "$ac_header_compiler" >&6; }
42290
42291 # Is the header present?
42292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42293 $as_echo_n "checking $ac_header presence... " >&6; }
42294 cat >conftest.$ac_ext <<_ACEOF
42295 /* confdefs.h.  */
42296 _ACEOF
42297 cat confdefs.h >>conftest.$ac_ext
42298 cat >>conftest.$ac_ext <<_ACEOF
42299 /* end confdefs.h.  */
42300 #include <$ac_header>
42301 _ACEOF
42302 if { (ac_try="$ac_cpp conftest.$ac_ext"
42303 case "(($ac_try" in
42304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42305   *) ac_try_echo=$ac_try;;
42306 esac
42307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42308 $as_echo "$ac_try_echo") >&5
42309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42310   ac_status=$?
42311   grep -v '^ *+' conftest.er1 >conftest.err
42312   rm -f conftest.er1
42313   cat conftest.err >&5
42314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315   (exit $ac_status); } >/dev/null && {
42316          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42317          test ! -s conftest.err
42318        }; then
42319   ac_header_preproc=yes
42320 else
42321   $as_echo "$as_me: failed program was:" >&5
42322 sed 's/^/| /' conftest.$ac_ext >&5
42323
42324   ac_header_preproc=no
42325 fi
42326
42327 rm -f conftest.err conftest.$ac_ext
42328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42329 $as_echo "$ac_header_preproc" >&6; }
42330
42331 # So?  What about this header?
42332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42333   yes:no: )
42334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42338     ac_header_preproc=yes
42339     ;;
42340   no:yes:* )
42341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42344 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42348 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42353
42354     ;;
42355 esac
42356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42357 $as_echo_n "checking for $ac_header... " >&6; }
42358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42359   $as_echo_n "(cached) " >&6
42360 else
42361   eval "$as_ac_Header=\$ac_header_preproc"
42362 fi
42363 ac_res=`eval 'as_val=${'$as_ac_Header'}
42364                  $as_echo "$as_val"'`
42365                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42366 $as_echo "$ac_res" >&6; }
42367
42368 fi
42369 as_val=`eval 'as_val=${'$as_ac_Header'}
42370                  $as_echo "$as_val"'`
42371    if test "x$as_val" = x""yes; then
42372   cat >>confdefs.h <<_ACEOF
42373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42374 _ACEOF
42375
42376 fi
42377
42378 done
42379
42380 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
42381 $as_echo_n "checking for deflate in -lz... " >&6; }
42382 if test "${ac_cv_lib_z_deflate+set}" = set; then
42383   $as_echo_n "(cached) " >&6
42384 else
42385   ac_check_lib_save_LIBS=$LIBS
42386 LIBS="-lz  $LIBS"
42387 cat >conftest.$ac_ext <<_ACEOF
42388 /* confdefs.h.  */
42389 _ACEOF
42390 cat confdefs.h >>conftest.$ac_ext
42391 cat >>conftest.$ac_ext <<_ACEOF
42392 /* end confdefs.h.  */
42393
42394 /* Override any GCC internal prototype to avoid an error.
42395    Use char because int might match the return type of a GCC
42396    builtin and then its argument prototype would still apply.  */
42397 #ifdef __cplusplus
42398 extern "C"
42399 #endif
42400 char deflate ();
42401 int
42402 main ()
42403 {
42404 return deflate ();
42405   ;
42406   return 0;
42407 }
42408 _ACEOF
42409 rm -f conftest.$ac_objext conftest$ac_exeext
42410 if { (ac_try="$ac_link"
42411 case "(($ac_try" in
42412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42413   *) ac_try_echo=$ac_try;;
42414 esac
42415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42416 $as_echo "$ac_try_echo") >&5
42417   (eval "$ac_link") 2>conftest.er1
42418   ac_status=$?
42419   grep -v '^ *+' conftest.er1 >conftest.err
42420   rm -f conftest.er1
42421   cat conftest.err >&5
42422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42423   (exit $ac_status); } && {
42424          test -z "$ac_c_werror_flag" ||
42425          test ! -s conftest.err
42426        } && test -s conftest$ac_exeext && {
42427          test "$cross_compiling" = yes ||
42428          $as_test_x conftest$ac_exeext
42429        }; then
42430   ac_cv_lib_z_deflate=yes
42431 else
42432   $as_echo "$as_me: failed program was:" >&5
42433 sed 's/^/| /' conftest.$ac_ext >&5
42434
42435         ac_cv_lib_z_deflate=no
42436 fi
42437
42438 rm -rf conftest.dSYM
42439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42440       conftest$ac_exeext conftest.$ac_ext
42441 LIBS=$ac_check_lib_save_LIBS
42442 fi
42443 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
42444 $as_echo "$ac_cv_lib_z_deflate" >&6; }
42445 if test "x$ac_cv_lib_z_deflate" = x""yes; then
42446   ZLIBS="-lz"
42447 fi
42448
42449 have_zlib=no
42450 if test x$ZLIBS = x-lz; then
42451    cat >>confdefs.h <<\_ACEOF
42452 #define HAVE_LIBZ 1
42453 _ACEOF
42454
42455    have_zlib=yes
42456 fi
42457
42458
42459 support_acl=auto
42460 # Check whether --enable-acl was given.
42461 if test "${enable_acl+set}" = set; then
42462   enableval=$enable_acl;
42463        if test x$enableval = xyes; then
42464           support_acl=yes
42465        elif test x$enableval = xno; then
42466           support_acl=no
42467        fi
42468
42469
42470 fi
42471
42472
42473 have_acl=no
42474 have_extended_acl=no
42475 if test x$support_acl = xyes -o x$support_acl = xauto; then
42476    if test "${ac_cv_header_sys_acl_h+set}" = set; then
42477   { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42478 $as_echo_n "checking for sys/acl.h... " >&6; }
42479 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42480   $as_echo_n "(cached) " >&6
42481 fi
42482 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42483 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42484 else
42485   # Is the header compilable?
42486 { $as_echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
42487 $as_echo_n "checking sys/acl.h usability... " >&6; }
42488 cat >conftest.$ac_ext <<_ACEOF
42489 /* confdefs.h.  */
42490 _ACEOF
42491 cat confdefs.h >>conftest.$ac_ext
42492 cat >>conftest.$ac_ext <<_ACEOF
42493 /* end confdefs.h.  */
42494 $ac_includes_default
42495 #include <sys/acl.h>
42496 _ACEOF
42497 rm -f conftest.$ac_objext
42498 if { (ac_try="$ac_compile"
42499 case "(($ac_try" in
42500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42501   *) ac_try_echo=$ac_try;;
42502 esac
42503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42504 $as_echo "$ac_try_echo") >&5
42505   (eval "$ac_compile") 2>conftest.er1
42506   ac_status=$?
42507   grep -v '^ *+' conftest.er1 >conftest.err
42508   rm -f conftest.er1
42509   cat conftest.err >&5
42510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511   (exit $ac_status); } && {
42512          test -z "$ac_c_werror_flag" ||
42513          test ! -s conftest.err
42514        } && test -s conftest.$ac_objext; then
42515   ac_header_compiler=yes
42516 else
42517   $as_echo "$as_me: failed program was:" >&5
42518 sed 's/^/| /' conftest.$ac_ext >&5
42519
42520         ac_header_compiler=no
42521 fi
42522
42523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42524 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42525 $as_echo "$ac_header_compiler" >&6; }
42526
42527 # Is the header present?
42528 { $as_echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
42529 $as_echo_n "checking sys/acl.h presence... " >&6; }
42530 cat >conftest.$ac_ext <<_ACEOF
42531 /* confdefs.h.  */
42532 _ACEOF
42533 cat confdefs.h >>conftest.$ac_ext
42534 cat >>conftest.$ac_ext <<_ACEOF
42535 /* end confdefs.h.  */
42536 #include <sys/acl.h>
42537 _ACEOF
42538 if { (ac_try="$ac_cpp conftest.$ac_ext"
42539 case "(($ac_try" in
42540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42541   *) ac_try_echo=$ac_try;;
42542 esac
42543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42544 $as_echo "$ac_try_echo") >&5
42545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42546   ac_status=$?
42547   grep -v '^ *+' conftest.er1 >conftest.err
42548   rm -f conftest.er1
42549   cat conftest.err >&5
42550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42551   (exit $ac_status); } >/dev/null && {
42552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42553          test ! -s conftest.err
42554        }; then
42555   ac_header_preproc=yes
42556 else
42557   $as_echo "$as_me: failed program was:" >&5
42558 sed 's/^/| /' conftest.$ac_ext >&5
42559
42560   ac_header_preproc=no
42561 fi
42562
42563 rm -f conftest.err conftest.$ac_ext
42564 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42565 $as_echo "$ac_header_preproc" >&6; }
42566
42567 # So?  What about this header?
42568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42569   yes:no: )
42570     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
42571 $as_echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42572     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
42573 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
42574     ac_header_preproc=yes
42575     ;;
42576   no:yes:* )
42577     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
42578 $as_echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
42579     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
42580 $as_echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
42581     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
42582 $as_echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
42583     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
42584 $as_echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42585     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
42586 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
42587     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
42588 $as_echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
42589
42590     ;;
42591 esac
42592 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42593 $as_echo_n "checking for sys/acl.h... " >&6; }
42594 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42595   $as_echo_n "(cached) " >&6
42596 else
42597   ac_cv_header_sys_acl_h=$ac_header_preproc
42598 fi
42599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42600 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42601
42602 fi
42603 if test "x$ac_cv_header_sys_acl_h" = x""yes; then
42604
42605 cat >>confdefs.h <<\_ACEOF
42606 #define HAVE_SYS_ACL_H 1
42607 _ACEOF
42608
42609 fi
42610
42611
42612    { $as_echo "$as_me:$LINENO: checking for acl_get_file" >&5
42613 $as_echo_n "checking for acl_get_file... " >&6; }
42614 if test "${ac_cv_func_acl_get_file+set}" = set; then
42615   $as_echo_n "(cached) " >&6
42616 else
42617   cat >conftest.$ac_ext <<_ACEOF
42618 /* confdefs.h.  */
42619 _ACEOF
42620 cat confdefs.h >>conftest.$ac_ext
42621 cat >>conftest.$ac_ext <<_ACEOF
42622 /* end confdefs.h.  */
42623 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
42624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42625 #define acl_get_file innocuous_acl_get_file
42626
42627 /* System header to define __stub macros and hopefully few prototypes,
42628     which can conflict with char acl_get_file (); below.
42629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42630     <limits.h> exists even on freestanding compilers.  */
42631
42632 #ifdef __STDC__
42633 # include <limits.h>
42634 #else
42635 # include <assert.h>
42636 #endif
42637
42638 #undef acl_get_file
42639
42640 /* Override any GCC internal prototype to avoid an error.
42641    Use char because int might match the return type of a GCC
42642    builtin and then its argument prototype would still apply.  */
42643 #ifdef __cplusplus
42644 extern "C"
42645 #endif
42646 char acl_get_file ();
42647 /* The GNU C library defines this for functions which it implements
42648     to always fail with ENOSYS.  Some functions are actually named
42649     something starting with __ and the normal name is an alias.  */
42650 #if defined __stub_acl_get_file || defined __stub___acl_get_file
42651 choke me
42652 #endif
42653
42654 int
42655 main ()
42656 {
42657 return acl_get_file ();
42658   ;
42659   return 0;
42660 }
42661 _ACEOF
42662 rm -f conftest.$ac_objext conftest$ac_exeext
42663 if { (ac_try="$ac_link"
42664 case "(($ac_try" in
42665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42666   *) ac_try_echo=$ac_try;;
42667 esac
42668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42669 $as_echo "$ac_try_echo") >&5
42670   (eval "$ac_link") 2>conftest.er1
42671   ac_status=$?
42672   grep -v '^ *+' conftest.er1 >conftest.err
42673   rm -f conftest.er1
42674   cat conftest.err >&5
42675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42676   (exit $ac_status); } && {
42677          test -z "$ac_c_werror_flag" ||
42678          test ! -s conftest.err
42679        } && test -s conftest$ac_exeext && {
42680          test "$cross_compiling" = yes ||
42681          $as_test_x conftest$ac_exeext
42682        }; then
42683   ac_cv_func_acl_get_file=yes
42684 else
42685   $as_echo "$as_me: failed program was:" >&5
42686 sed 's/^/| /' conftest.$ac_ext >&5
42687
42688         ac_cv_func_acl_get_file=no
42689 fi
42690
42691 rm -rf conftest.dSYM
42692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42693       conftest$ac_exeext conftest.$ac_ext
42694 fi
42695 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
42696 $as_echo "$ac_cv_func_acl_get_file" >&6; }
42697 if test "x$ac_cv_func_acl_get_file" = x""yes; then
42698
42699           have_acl=yes
42700
42701 else
42702
42703           { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
42704 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
42705 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
42706   $as_echo_n "(cached) " >&6
42707 else
42708   ac_check_lib_save_LIBS=$LIBS
42709 LIBS="-lacl  $LIBS"
42710 cat >conftest.$ac_ext <<_ACEOF
42711 /* confdefs.h.  */
42712 _ACEOF
42713 cat confdefs.h >>conftest.$ac_ext
42714 cat >>conftest.$ac_ext <<_ACEOF
42715 /* end confdefs.h.  */
42716
42717 /* Override any GCC internal prototype to avoid an error.
42718    Use char because int might match the return type of a GCC
42719    builtin and then its argument prototype would still apply.  */
42720 #ifdef __cplusplus
42721 extern "C"
42722 #endif
42723 char acl_get_file ();
42724 int
42725 main ()
42726 {
42727 return acl_get_file ();
42728   ;
42729   return 0;
42730 }
42731 _ACEOF
42732 rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (ac_try="$ac_link"
42734 case "(($ac_try" in
42735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42736   *) ac_try_echo=$ac_try;;
42737 esac
42738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42739 $as_echo "$ac_try_echo") >&5
42740   (eval "$ac_link") 2>conftest.er1
42741   ac_status=$?
42742   grep -v '^ *+' conftest.er1 >conftest.err
42743   rm -f conftest.er1
42744   cat conftest.err >&5
42745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746   (exit $ac_status); } && {
42747          test -z "$ac_c_werror_flag" ||
42748          test ! -s conftest.err
42749        } && test -s conftest$ac_exeext && {
42750          test "$cross_compiling" = yes ||
42751          $as_test_x conftest$ac_exeext
42752        }; then
42753   ac_cv_lib_acl_acl_get_file=yes
42754 else
42755   $as_echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42757
42758         ac_cv_lib_acl_acl_get_file=no
42759 fi
42760
42761 rm -rf conftest.dSYM
42762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42763       conftest$ac_exeext conftest.$ac_ext
42764 LIBS=$ac_check_lib_save_LIBS
42765 fi
42766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
42767 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
42768 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
42769
42770                  have_acl=yes;
42771                  if test $have_afs = yes; then
42772                                                                     if test -d /usr/lib64/; then
42773                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
42774                     else
42775                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
42776                     fi
42777                  else
42778                     FDLIBS="-lacl $FDLIBS"
42779                  fi
42780
42781 else
42782
42783                  { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
42784 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
42785 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
42786   $as_echo_n "(cached) " >&6
42787 else
42788   ac_check_lib_save_LIBS=$LIBS
42789 LIBS="-lpacl  $LIBS"
42790 cat >conftest.$ac_ext <<_ACEOF
42791 /* confdefs.h.  */
42792 _ACEOF
42793 cat confdefs.h >>conftest.$ac_ext
42794 cat >>conftest.$ac_ext <<_ACEOF
42795 /* end confdefs.h.  */
42796
42797 /* Override any GCC internal prototype to avoid an error.
42798    Use char because int might match the return type of a GCC
42799    builtin and then its argument prototype would still apply.  */
42800 #ifdef __cplusplus
42801 extern "C"
42802 #endif
42803 char acl_get_file ();
42804 int
42805 main ()
42806 {
42807 return acl_get_file ();
42808   ;
42809   return 0;
42810 }
42811 _ACEOF
42812 rm -f conftest.$ac_objext conftest$ac_exeext
42813 if { (ac_try="$ac_link"
42814 case "(($ac_try" in
42815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42816   *) ac_try_echo=$ac_try;;
42817 esac
42818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42819 $as_echo "$ac_try_echo") >&5
42820   (eval "$ac_link") 2>conftest.er1
42821   ac_status=$?
42822   grep -v '^ *+' conftest.er1 >conftest.err
42823   rm -f conftest.er1
42824   cat conftest.err >&5
42825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826   (exit $ac_status); } && {
42827          test -z "$ac_c_werror_flag" ||
42828          test ! -s conftest.err
42829        } && test -s conftest$ac_exeext && {
42830          test "$cross_compiling" = yes ||
42831          $as_test_x conftest$ac_exeext
42832        }; then
42833   ac_cv_lib_pacl_acl_get_file=yes
42834 else
42835   $as_echo "$as_me: failed program was:" >&5
42836 sed 's/^/| /' conftest.$ac_ext >&5
42837
42838         ac_cv_lib_pacl_acl_get_file=no
42839 fi
42840
42841 rm -rf conftest.dSYM
42842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42843       conftest$ac_exeext conftest.$ac_ext
42844 LIBS=$ac_check_lib_save_LIBS
42845 fi
42846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
42847 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
42848 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then
42849
42850                         have_acl=yes;
42851                         FDLIBS="-lpacl $FDLIBS"
42852
42853 else
42854
42855                         { $as_echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
42856 $as_echo_n "checking for acltotext in -lsec... " >&6; }
42857 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
42858   $as_echo_n "(cached) " >&6
42859 else
42860   ac_check_lib_save_LIBS=$LIBS
42861 LIBS="-lsec  $LIBS"
42862 cat >conftest.$ac_ext <<_ACEOF
42863 /* confdefs.h.  */
42864 _ACEOF
42865 cat confdefs.h >>conftest.$ac_ext
42866 cat >>conftest.$ac_ext <<_ACEOF
42867 /* end confdefs.h.  */
42868
42869 /* Override any GCC internal prototype to avoid an error.
42870    Use char because int might match the return type of a GCC
42871    builtin and then its argument prototype would still apply.  */
42872 #ifdef __cplusplus
42873 extern "C"
42874 #endif
42875 char acltotext ();
42876 int
42877 main ()
42878 {
42879 return acltotext ();
42880   ;
42881   return 0;
42882 }
42883 _ACEOF
42884 rm -f conftest.$ac_objext conftest$ac_exeext
42885 if { (ac_try="$ac_link"
42886 case "(($ac_try" in
42887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42888   *) ac_try_echo=$ac_try;;
42889 esac
42890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42891 $as_echo "$ac_try_echo") >&5
42892   (eval "$ac_link") 2>conftest.er1
42893   ac_status=$?
42894   grep -v '^ *+' conftest.er1 >conftest.err
42895   rm -f conftest.er1
42896   cat conftest.err >&5
42897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42898   (exit $ac_status); } && {
42899          test -z "$ac_c_werror_flag" ||
42900          test ! -s conftest.err
42901        } && test -s conftest$ac_exeext && {
42902          test "$cross_compiling" = yes ||
42903          $as_test_x conftest$ac_exeext
42904        }; then
42905   ac_cv_lib_sec_acltotext=yes
42906 else
42907   $as_echo "$as_me: failed program was:" >&5
42908 sed 's/^/| /' conftest.$ac_ext >&5
42909
42910         ac_cv_lib_sec_acltotext=no
42911 fi
42912
42913 rm -rf conftest.dSYM
42914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42915       conftest$ac_exeext conftest.$ac_ext
42916 LIBS=$ac_check_lib_save_LIBS
42917 fi
42918 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
42919 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
42920 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then
42921
42922                                have_acl=yes;
42923                                FDLIBS="-lsec $FDLIBS"
42924
42925                                { $as_echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
42926 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
42927 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
42928   $as_echo_n "(cached) " >&6
42929 else
42930   ac_check_lib_save_LIBS=$LIBS
42931 LIBS="-lsec  $LIBS"
42932 cat >conftest.$ac_ext <<_ACEOF
42933 /* confdefs.h.  */
42934 _ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h.  */
42938
42939 /* Override any GCC internal prototype to avoid an error.
42940    Use char because int might match the return type of a GCC
42941    builtin and then its argument prototype would still apply.  */
42942 #ifdef __cplusplus
42943 extern "C"
42944 #endif
42945 char acl_totext ();
42946 int
42947 main ()
42948 {
42949 return acl_totext ();
42950   ;
42951   return 0;
42952 }
42953 _ACEOF
42954 rm -f conftest.$ac_objext conftest$ac_exeext
42955 if { (ac_try="$ac_link"
42956 case "(($ac_try" in
42957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42958   *) ac_try_echo=$ac_try;;
42959 esac
42960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42961 $as_echo "$ac_try_echo") >&5
42962   (eval "$ac_link") 2>conftest.er1
42963   ac_status=$?
42964   grep -v '^ *+' conftest.er1 >conftest.err
42965   rm -f conftest.er1
42966   cat conftest.err >&5
42967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42968   (exit $ac_status); } && {
42969          test -z "$ac_c_werror_flag" ||
42970          test ! -s conftest.err
42971        } && test -s conftest$ac_exeext && {
42972          test "$cross_compiling" = yes ||
42973          $as_test_x conftest$ac_exeext
42974        }; then
42975   ac_cv_lib_sec_acl_totext=yes
42976 else
42977   $as_echo "$as_me: failed program was:" >&5
42978 sed 's/^/| /' conftest.$ac_ext >&5
42979
42980         ac_cv_lib_sec_acl_totext=no
42981 fi
42982
42983 rm -rf conftest.dSYM
42984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42985       conftest$ac_exeext conftest.$ac_ext
42986 LIBS=$ac_check_lib_save_LIBS
42987 fi
42988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
42989 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
42990 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then
42991
42992                                       have_extended_acl=yes
42993
42994
42995 fi
42996
42997
42998
42999 fi
43000
43001
43002
43003 fi
43004
43005
43006
43007 fi
43008
43009
43010
43011 fi
43012
43013
43014             if test $have_acl = no -a \
43015           x${HAVE_OSF1_OS_TRUE} = x; then
43016       { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
43017 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
43018       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
43019       if test $? = 0; then
43020
43021 cat >>confdefs.h <<\_ACEOF
43022 #define HAVE_ACL_TYPE_DEFAULT_DIR 1
43023 _ACEOF
43024
43025          { $as_echo "$as_me:$LINENO: result: yes" >&5
43026 $as_echo "yes" >&6; }
43027       else
43028          { $as_echo "$as_me:$LINENO: result: no" >&5
43029 $as_echo "no" >&6; }
43030       fi
43031    fi
43032
43033             if test $have_acl = yes -a \
43034            x${HAVE_DARWIN_OS_TRUE} = x; then
43035       { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
43036 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
43037       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
43038       if test $? = 0; then
43039
43040 cat >>confdefs.h <<\_ACEOF
43041 #define HAVE_ACL_TYPE_EXTENDED 1
43042 _ACEOF
43043
43044          { $as_echo "$as_me:$LINENO: result: yes" >&5
43045 $as_echo "yes" >&6; }
43046       else
43047          { $as_echo "$as_me:$LINENO: result: no" >&5
43048 $as_echo "no" >&6; }
43049       fi
43050    fi
43051
43052    if test x$support_acl = xyes -a $have_acl != yes; then
43053       { { $as_echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
43054   please either load the acl libraries or rerun configure without --enable-acl" >&5
43055 $as_echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
43056   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
43057    { (exit 1); exit 1; }; }
43058    else
43059       if test $have_acl = yes; then
43060
43061 cat >>confdefs.h <<\_ACEOF
43062 #define HAVE_ACL 1
43063 _ACEOF
43064
43065       fi
43066
43067       if test $have_extended_acl = yes; then
43068
43069 cat >>confdefs.h <<\_ACEOF
43070 #define HAVE_EXTENDED_ACL 1
43071 _ACEOF
43072
43073       fi
43074    fi
43075 fi
43076
43077 support_xattr=auto
43078 # Check whether --enable-xattr was given.
43079 if test "${enable_xattr+set}" = set; then
43080   enableval=$enable_xattr;
43081        if test x$enableval = xyes; then
43082           support_xattr=yes
43083        elif test x$enableval = xno; then
43084           support_xattr=no
43085        fi
43086
43087
43088 fi
43089
43090
43091 have_xattr=no
43092 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
43093             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43094   { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43095 $as_echo_n "checking for sys/extattr.h... " >&6; }
43096 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43097   $as_echo_n "(cached) " >&6
43098 fi
43099 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43100 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43101 else
43102   # Is the header compilable?
43103 { $as_echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
43104 $as_echo_n "checking sys/extattr.h usability... " >&6; }
43105 cat >conftest.$ac_ext <<_ACEOF
43106 /* confdefs.h.  */
43107 _ACEOF
43108 cat confdefs.h >>conftest.$ac_ext
43109 cat >>conftest.$ac_ext <<_ACEOF
43110 /* end confdefs.h.  */
43111 $ac_includes_default
43112 #include <sys/extattr.h>
43113 _ACEOF
43114 rm -f conftest.$ac_objext
43115 if { (ac_try="$ac_compile"
43116 case "(($ac_try" in
43117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43118   *) ac_try_echo=$ac_try;;
43119 esac
43120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43121 $as_echo "$ac_try_echo") >&5
43122   (eval "$ac_compile") 2>conftest.er1
43123   ac_status=$?
43124   grep -v '^ *+' conftest.er1 >conftest.err
43125   rm -f conftest.er1
43126   cat conftest.err >&5
43127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43128   (exit $ac_status); } && {
43129          test -z "$ac_c_werror_flag" ||
43130          test ! -s conftest.err
43131        } && test -s conftest.$ac_objext; then
43132   ac_header_compiler=yes
43133 else
43134   $as_echo "$as_me: failed program was:" >&5
43135 sed 's/^/| /' conftest.$ac_ext >&5
43136
43137         ac_header_compiler=no
43138 fi
43139
43140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43141 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43142 $as_echo "$ac_header_compiler" >&6; }
43143
43144 # Is the header present?
43145 { $as_echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
43146 $as_echo_n "checking sys/extattr.h presence... " >&6; }
43147 cat >conftest.$ac_ext <<_ACEOF
43148 /* confdefs.h.  */
43149 _ACEOF
43150 cat confdefs.h >>conftest.$ac_ext
43151 cat >>conftest.$ac_ext <<_ACEOF
43152 /* end confdefs.h.  */
43153 #include <sys/extattr.h>
43154 _ACEOF
43155 if { (ac_try="$ac_cpp conftest.$ac_ext"
43156 case "(($ac_try" in
43157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43158   *) ac_try_echo=$ac_try;;
43159 esac
43160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43161 $as_echo "$ac_try_echo") >&5
43162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43163   ac_status=$?
43164   grep -v '^ *+' conftest.er1 >conftest.err
43165   rm -f conftest.er1
43166   cat conftest.err >&5
43167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43168   (exit $ac_status); } >/dev/null && {
43169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43170          test ! -s conftest.err
43171        }; then
43172   ac_header_preproc=yes
43173 else
43174   $as_echo "$as_me: failed program was:" >&5
43175 sed 's/^/| /' conftest.$ac_ext >&5
43176
43177   ac_header_preproc=no
43178 fi
43179
43180 rm -f conftest.err conftest.$ac_ext
43181 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43182 $as_echo "$ac_header_preproc" >&6; }
43183
43184 # So?  What about this header?
43185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43186   yes:no: )
43187     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43188 $as_echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43189     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
43190 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
43191     ac_header_preproc=yes
43192     ;;
43193   no:yes:* )
43194     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
43195 $as_echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
43196     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
43197 $as_echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
43198     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
43199 $as_echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
43200     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
43201 $as_echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43202     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
43203 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
43204     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
43205 $as_echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
43206
43207     ;;
43208 esac
43209 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43210 $as_echo_n "checking for sys/extattr.h... " >&6; }
43211 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43212   $as_echo_n "(cached) " >&6
43213 else
43214   ac_cv_header_sys_extattr_h=$ac_header_preproc
43215 fi
43216 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43217 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43218
43219 fi
43220 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then
43221
43222 cat >>confdefs.h <<\_ACEOF
43223 #define HAVE_SYS_EXTATTR_H 1
43224 _ACEOF
43225
43226 fi
43227
43228
43229    if test "${ac_cv_header_libutil_h+set}" = set; then
43230   { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43231 $as_echo_n "checking for libutil.h... " >&6; }
43232 if test "${ac_cv_header_libutil_h+set}" = set; then
43233   $as_echo_n "(cached) " >&6
43234 fi
43235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43236 $as_echo "$ac_cv_header_libutil_h" >&6; }
43237 else
43238   # Is the header compilable?
43239 { $as_echo "$as_me:$LINENO: checking libutil.h usability" >&5
43240 $as_echo_n "checking libutil.h usability... " >&6; }
43241 cat >conftest.$ac_ext <<_ACEOF
43242 /* confdefs.h.  */
43243 _ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h.  */
43247 $ac_includes_default
43248 #include <libutil.h>
43249 _ACEOF
43250 rm -f conftest.$ac_objext
43251 if { (ac_try="$ac_compile"
43252 case "(($ac_try" in
43253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43254   *) ac_try_echo=$ac_try;;
43255 esac
43256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43257 $as_echo "$ac_try_echo") >&5
43258   (eval "$ac_compile") 2>conftest.er1
43259   ac_status=$?
43260   grep -v '^ *+' conftest.er1 >conftest.err
43261   rm -f conftest.er1
43262   cat conftest.err >&5
43263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264   (exit $ac_status); } && {
43265          test -z "$ac_c_werror_flag" ||
43266          test ! -s conftest.err
43267        } && test -s conftest.$ac_objext; then
43268   ac_header_compiler=yes
43269 else
43270   $as_echo "$as_me: failed program was:" >&5
43271 sed 's/^/| /' conftest.$ac_ext >&5
43272
43273         ac_header_compiler=no
43274 fi
43275
43276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43278 $as_echo "$ac_header_compiler" >&6; }
43279
43280 # Is the header present?
43281 { $as_echo "$as_me:$LINENO: checking libutil.h presence" >&5
43282 $as_echo_n "checking libutil.h presence... " >&6; }
43283 cat >conftest.$ac_ext <<_ACEOF
43284 /* confdefs.h.  */
43285 _ACEOF
43286 cat confdefs.h >>conftest.$ac_ext
43287 cat >>conftest.$ac_ext <<_ACEOF
43288 /* end confdefs.h.  */
43289 #include <libutil.h>
43290 _ACEOF
43291 if { (ac_try="$ac_cpp conftest.$ac_ext"
43292 case "(($ac_try" in
43293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43294   *) ac_try_echo=$ac_try;;
43295 esac
43296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43297 $as_echo "$ac_try_echo") >&5
43298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43299   ac_status=$?
43300   grep -v '^ *+' conftest.er1 >conftest.err
43301   rm -f conftest.er1
43302   cat conftest.err >&5
43303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); } >/dev/null && {
43305          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43306          test ! -s conftest.err
43307        }; then
43308   ac_header_preproc=yes
43309 else
43310   $as_echo "$as_me: failed program was:" >&5
43311 sed 's/^/| /' conftest.$ac_ext >&5
43312
43313   ac_header_preproc=no
43314 fi
43315
43316 rm -f conftest.err conftest.$ac_ext
43317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43318 $as_echo "$ac_header_preproc" >&6; }
43319
43320 # So?  What about this header?
43321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43322   yes:no: )
43323     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
43324 $as_echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43325     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
43326 $as_echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
43327     ac_header_preproc=yes
43328     ;;
43329   no:yes:* )
43330     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
43331 $as_echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
43332     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
43333 $as_echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
43334     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
43335 $as_echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
43336     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
43337 $as_echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43338     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
43339 $as_echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
43340     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
43341 $as_echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
43342
43343     ;;
43344 esac
43345 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43346 $as_echo_n "checking for libutil.h... " >&6; }
43347 if test "${ac_cv_header_libutil_h+set}" = set; then
43348   $as_echo_n "(cached) " >&6
43349 else
43350   ac_cv_header_libutil_h=$ac_header_preproc
43351 fi
43352 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43353 $as_echo "$ac_cv_header_libutil_h" >&6; }
43354
43355 fi
43356 if test "x$ac_cv_header_libutil_h" = x""yes; then
43357
43358 cat >>confdefs.h <<\_ACEOF
43359 #define HAVE_LIBUTIL_H 1
43360 _ACEOF
43361
43362 fi
43363
43364
43365
43366
43367
43368 for ac_func in extattr_get_link extattr_set_link extattr_list_link
43369 do
43370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43371 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43372 $as_echo_n "checking for $ac_func... " >&6; }
43373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43374   $as_echo_n "(cached) " >&6
43375 else
43376   cat >conftest.$ac_ext <<_ACEOF
43377 /* confdefs.h.  */
43378 _ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h.  */
43382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43384 #define $ac_func innocuous_$ac_func
43385
43386 /* System header to define __stub macros and hopefully few prototypes,
43387     which can conflict with char $ac_func (); below.
43388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43389     <limits.h> exists even on freestanding compilers.  */
43390
43391 #ifdef __STDC__
43392 # include <limits.h>
43393 #else
43394 # include <assert.h>
43395 #endif
43396
43397 #undef $ac_func
43398
43399 /* Override any GCC internal prototype to avoid an error.
43400    Use char because int might match the return type of a GCC
43401    builtin and then its argument prototype would still apply.  */
43402 #ifdef __cplusplus
43403 extern "C"
43404 #endif
43405 char $ac_func ();
43406 /* The GNU C library defines this for functions which it implements
43407     to always fail with ENOSYS.  Some functions are actually named
43408     something starting with __ and the normal name is an alias.  */
43409 #if defined __stub_$ac_func || defined __stub___$ac_func
43410 choke me
43411 #endif
43412
43413 int
43414 main ()
43415 {
43416 return $ac_func ();
43417   ;
43418   return 0;
43419 }
43420 _ACEOF
43421 rm -f conftest.$ac_objext conftest$ac_exeext
43422 if { (ac_try="$ac_link"
43423 case "(($ac_try" in
43424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43425   *) ac_try_echo=$ac_try;;
43426 esac
43427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43428 $as_echo "$ac_try_echo") >&5
43429   (eval "$ac_link") 2>conftest.er1
43430   ac_status=$?
43431   grep -v '^ *+' conftest.er1 >conftest.err
43432   rm -f conftest.er1
43433   cat conftest.err >&5
43434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435   (exit $ac_status); } && {
43436          test -z "$ac_c_werror_flag" ||
43437          test ! -s conftest.err
43438        } && test -s conftest$ac_exeext && {
43439          test "$cross_compiling" = yes ||
43440          $as_test_x conftest$ac_exeext
43441        }; then
43442   eval "$as_ac_var=yes"
43443 else
43444   $as_echo "$as_me: failed program was:" >&5
43445 sed 's/^/| /' conftest.$ac_ext >&5
43446
43447         eval "$as_ac_var=no"
43448 fi
43449
43450 rm -rf conftest.dSYM
43451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43452       conftest$ac_exeext conftest.$ac_ext
43453 fi
43454 ac_res=`eval 'as_val=${'$as_ac_var'}
43455                  $as_echo "$as_val"'`
43456                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43457 $as_echo "$ac_res" >&6; }
43458 as_val=`eval 'as_val=${'$as_ac_var'}
43459                  $as_echo "$as_val"'`
43460    if test "x$as_val" = x""yes; then
43461   cat >>confdefs.h <<_ACEOF
43462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43463 _ACEOF
43464
43465           have_xattr=yes
43466
43467 cat >>confdefs.h <<\_ACEOF
43468 #define HAVE_EXTATTR_GET_LINK 1
43469 _ACEOF
43470
43471
43472 cat >>confdefs.h <<\_ACEOF
43473 #define HAVE_EXTATTR_SET_LINK 1
43474 _ACEOF
43475
43476
43477 cat >>confdefs.h <<\_ACEOF
43478 #define HAVE_EXTATTR_LIST_LINK 1
43479 _ACEOF
43480
43481
43482
43483 fi
43484 done
43485
43486
43487    if test $have_xattr = no; then
43488
43489
43490
43491 for ac_func in extattr_get_file extattr_set_file extattr_list_file
43492 do
43493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43494 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43495 $as_echo_n "checking for $ac_func... " >&6; }
43496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43497   $as_echo_n "(cached) " >&6
43498 else
43499   cat >conftest.$ac_ext <<_ACEOF
43500 /* confdefs.h.  */
43501 _ACEOF
43502 cat confdefs.h >>conftest.$ac_ext
43503 cat >>conftest.$ac_ext <<_ACEOF
43504 /* end confdefs.h.  */
43505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43507 #define $ac_func innocuous_$ac_func
43508
43509 /* System header to define __stub macros and hopefully few prototypes,
43510     which can conflict with char $ac_func (); below.
43511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43512     <limits.h> exists even on freestanding compilers.  */
43513
43514 #ifdef __STDC__
43515 # include <limits.h>
43516 #else
43517 # include <assert.h>
43518 #endif
43519
43520 #undef $ac_func
43521
43522 /* Override any GCC internal prototype to avoid an error.
43523    Use char because int might match the return type of a GCC
43524    builtin and then its argument prototype would still apply.  */
43525 #ifdef __cplusplus
43526 extern "C"
43527 #endif
43528 char $ac_func ();
43529 /* The GNU C library defines this for functions which it implements
43530     to always fail with ENOSYS.  Some functions are actually named
43531     something starting with __ and the normal name is an alias.  */
43532 #if defined __stub_$ac_func || defined __stub___$ac_func
43533 choke me
43534 #endif
43535
43536 int
43537 main ()
43538 {
43539 return $ac_func ();
43540   ;
43541   return 0;
43542 }
43543 _ACEOF
43544 rm -f conftest.$ac_objext conftest$ac_exeext
43545 if { (ac_try="$ac_link"
43546 case "(($ac_try" in
43547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43548   *) ac_try_echo=$ac_try;;
43549 esac
43550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43551 $as_echo "$ac_try_echo") >&5
43552   (eval "$ac_link") 2>conftest.er1
43553   ac_status=$?
43554   grep -v '^ *+' conftest.er1 >conftest.err
43555   rm -f conftest.er1
43556   cat conftest.err >&5
43557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43558   (exit $ac_status); } && {
43559          test -z "$ac_c_werror_flag" ||
43560          test ! -s conftest.err
43561        } && test -s conftest$ac_exeext && {
43562          test "$cross_compiling" = yes ||
43563          $as_test_x conftest$ac_exeext
43564        }; then
43565   eval "$as_ac_var=yes"
43566 else
43567   $as_echo "$as_me: failed program was:" >&5
43568 sed 's/^/| /' conftest.$ac_ext >&5
43569
43570         eval "$as_ac_var=no"
43571 fi
43572
43573 rm -rf conftest.dSYM
43574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43575       conftest$ac_exeext conftest.$ac_ext
43576 fi
43577 ac_res=`eval 'as_val=${'$as_ac_var'}
43578                  $as_echo "$as_val"'`
43579                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43580 $as_echo "$ac_res" >&6; }
43581 as_val=`eval 'as_val=${'$as_ac_var'}
43582                  $as_echo "$as_val"'`
43583    if test "x$as_val" = x""yes; then
43584   cat >>confdefs.h <<_ACEOF
43585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43586 _ACEOF
43587
43588              have_xattr=yes
43589
43590 cat >>confdefs.h <<\_ACEOF
43591 #define HAVE_EXTATTR_GET_FILE 1
43592 _ACEOF
43593
43594
43595 cat >>confdefs.h <<\_ACEOF
43596 #define HAVE_EXTATTR_SET_FILE 1
43597 _ACEOF
43598
43599
43600 cat >>confdefs.h <<\_ACEOF
43601 #define HAVE_EXTATTR_LIST_FILE 1
43602 _ACEOF
43603
43604
43605
43606 fi
43607 done
43608
43609    fi
43610
43611    if test $have_xattr = yes; then
43612       have_extattr_string_in_libc=no
43613
43614
43615 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
43616 do
43617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43619 $as_echo_n "checking for $ac_func... " >&6; }
43620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43621   $as_echo_n "(cached) " >&6
43622 else
43623   cat >conftest.$ac_ext <<_ACEOF
43624 /* confdefs.h.  */
43625 _ACEOF
43626 cat confdefs.h >>conftest.$ac_ext
43627 cat >>conftest.$ac_ext <<_ACEOF
43628 /* end confdefs.h.  */
43629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43631 #define $ac_func innocuous_$ac_func
43632
43633 /* System header to define __stub macros and hopefully few prototypes,
43634     which can conflict with char $ac_func (); below.
43635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43636     <limits.h> exists even on freestanding compilers.  */
43637
43638 #ifdef __STDC__
43639 # include <limits.h>
43640 #else
43641 # include <assert.h>
43642 #endif
43643
43644 #undef $ac_func
43645
43646 /* Override any GCC internal prototype to avoid an error.
43647    Use char because int might match the return type of a GCC
43648    builtin and then its argument prototype would still apply.  */
43649 #ifdef __cplusplus
43650 extern "C"
43651 #endif
43652 char $ac_func ();
43653 /* The GNU C library defines this for functions which it implements
43654     to always fail with ENOSYS.  Some functions are actually named
43655     something starting with __ and the normal name is an alias.  */
43656 #if defined __stub_$ac_func || defined __stub___$ac_func
43657 choke me
43658 #endif
43659
43660 int
43661 main ()
43662 {
43663 return $ac_func ();
43664   ;
43665   return 0;
43666 }
43667 _ACEOF
43668 rm -f conftest.$ac_objext conftest$ac_exeext
43669 if { (ac_try="$ac_link"
43670 case "(($ac_try" in
43671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43672   *) ac_try_echo=$ac_try;;
43673 esac
43674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43675 $as_echo "$ac_try_echo") >&5
43676   (eval "$ac_link") 2>conftest.er1
43677   ac_status=$?
43678   grep -v '^ *+' conftest.er1 >conftest.err
43679   rm -f conftest.er1
43680   cat conftest.err >&5
43681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43682   (exit $ac_status); } && {
43683          test -z "$ac_c_werror_flag" ||
43684          test ! -s conftest.err
43685        } && test -s conftest$ac_exeext && {
43686          test "$cross_compiling" = yes ||
43687          $as_test_x conftest$ac_exeext
43688        }; then
43689   eval "$as_ac_var=yes"
43690 else
43691   $as_echo "$as_me: failed program was:" >&5
43692 sed 's/^/| /' conftest.$ac_ext >&5
43693
43694         eval "$as_ac_var=no"
43695 fi
43696
43697 rm -rf conftest.dSYM
43698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43699       conftest$ac_exeext conftest.$ac_ext
43700 fi
43701 ac_res=`eval 'as_val=${'$as_ac_var'}
43702                  $as_echo "$as_val"'`
43703                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43704 $as_echo "$ac_res" >&6; }
43705 as_val=`eval 'as_val=${'$as_ac_var'}
43706                  $as_echo "$as_val"'`
43707    if test "x$as_val" = x""yes; then
43708   cat >>confdefs.h <<_ACEOF
43709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43710 _ACEOF
43711
43712              have_extattr_string_in_libc=yes
43713
43714 cat >>confdefs.h <<\_ACEOF
43715 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43716 _ACEOF
43717
43718
43719 cat >>confdefs.h <<\_ACEOF
43720 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43721 _ACEOF
43722
43723
43724
43725 fi
43726 done
43727
43728
43729                         if test $have_extattr_string_in_libc = no; then
43730          { $as_echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
43731 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
43732 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
43733   $as_echo_n "(cached) " >&6
43734 else
43735   ac_check_lib_save_LIBS=$LIBS
43736 LIBS="-lutil  $LIBS"
43737 cat >conftest.$ac_ext <<_ACEOF
43738 /* confdefs.h.  */
43739 _ACEOF
43740 cat confdefs.h >>conftest.$ac_ext
43741 cat >>conftest.$ac_ext <<_ACEOF
43742 /* end confdefs.h.  */
43743
43744 /* Override any GCC internal prototype to avoid an error.
43745    Use char because int might match the return type of a GCC
43746    builtin and then its argument prototype would still apply.  */
43747 #ifdef __cplusplus
43748 extern "C"
43749 #endif
43750 char extattr_namespace_to_string extattr_string_to_namespace ();
43751 int
43752 main ()
43753 {
43754 return extattr_namespace_to_string extattr_string_to_namespace ();
43755   ;
43756   return 0;
43757 }
43758 _ACEOF
43759 rm -f conftest.$ac_objext conftest$ac_exeext
43760 if { (ac_try="$ac_link"
43761 case "(($ac_try" in
43762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43763   *) ac_try_echo=$ac_try;;
43764 esac
43765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43766 $as_echo "$ac_try_echo") >&5
43767   (eval "$ac_link") 2>conftest.er1
43768   ac_status=$?
43769   grep -v '^ *+' conftest.er1 >conftest.err
43770   rm -f conftest.er1
43771   cat conftest.err >&5
43772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773   (exit $ac_status); } && {
43774          test -z "$ac_c_werror_flag" ||
43775          test ! -s conftest.err
43776        } && test -s conftest$ac_exeext && {
43777          test "$cross_compiling" = yes ||
43778          $as_test_x conftest$ac_exeext
43779        }; then
43780   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
43781 else
43782   $as_echo "$as_me: failed program was:" >&5
43783 sed 's/^/| /' conftest.$ac_ext >&5
43784
43785         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
43786 fi
43787
43788 rm -rf conftest.dSYM
43789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43790       conftest$ac_exeext conftest.$ac_ext
43791 LIBS=$ac_check_lib_save_LIBS
43792 fi
43793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
43794 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
43795 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then
43796
43797
43798 cat >>confdefs.h <<\_ACEOF
43799 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43800 _ACEOF
43801
43802
43803 cat >>confdefs.h <<\_ACEOF
43804 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43805 _ACEOF
43806
43807                 FDLIBS="-lutil $FDLIBS"
43808
43809
43810 fi
43811
43812       fi
43813    fi
43814
43815             if test $have_xattr = no; then
43816       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43817   { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43818 $as_echo_n "checking for sys/xattr.h... " >&6; }
43819 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43820   $as_echo_n "(cached) " >&6
43821 fi
43822 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43823 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43824 else
43825   # Is the header compilable?
43826 { $as_echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
43827 $as_echo_n "checking sys/xattr.h usability... " >&6; }
43828 cat >conftest.$ac_ext <<_ACEOF
43829 /* confdefs.h.  */
43830 _ACEOF
43831 cat confdefs.h >>conftest.$ac_ext
43832 cat >>conftest.$ac_ext <<_ACEOF
43833 /* end confdefs.h.  */
43834 $ac_includes_default
43835 #include <sys/xattr.h>
43836 _ACEOF
43837 rm -f conftest.$ac_objext
43838 if { (ac_try="$ac_compile"
43839 case "(($ac_try" in
43840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43841   *) ac_try_echo=$ac_try;;
43842 esac
43843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43844 $as_echo "$ac_try_echo") >&5
43845   (eval "$ac_compile") 2>conftest.er1
43846   ac_status=$?
43847   grep -v '^ *+' conftest.er1 >conftest.err
43848   rm -f conftest.er1
43849   cat conftest.err >&5
43850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851   (exit $ac_status); } && {
43852          test -z "$ac_c_werror_flag" ||
43853          test ! -s conftest.err
43854        } && test -s conftest.$ac_objext; then
43855   ac_header_compiler=yes
43856 else
43857   $as_echo "$as_me: failed program was:" >&5
43858 sed 's/^/| /' conftest.$ac_ext >&5
43859
43860         ac_header_compiler=no
43861 fi
43862
43863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43865 $as_echo "$ac_header_compiler" >&6; }
43866
43867 # Is the header present?
43868 { $as_echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
43869 $as_echo_n "checking sys/xattr.h presence... " >&6; }
43870 cat >conftest.$ac_ext <<_ACEOF
43871 /* confdefs.h.  */
43872 _ACEOF
43873 cat confdefs.h >>conftest.$ac_ext
43874 cat >>conftest.$ac_ext <<_ACEOF
43875 /* end confdefs.h.  */
43876 #include <sys/xattr.h>
43877 _ACEOF
43878 if { (ac_try="$ac_cpp conftest.$ac_ext"
43879 case "(($ac_try" in
43880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43881   *) ac_try_echo=$ac_try;;
43882 esac
43883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43884 $as_echo "$ac_try_echo") >&5
43885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43886   ac_status=$?
43887   grep -v '^ *+' conftest.er1 >conftest.err
43888   rm -f conftest.er1
43889   cat conftest.err >&5
43890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891   (exit $ac_status); } >/dev/null && {
43892          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43893          test ! -s conftest.err
43894        }; then
43895   ac_header_preproc=yes
43896 else
43897   $as_echo "$as_me: failed program was:" >&5
43898 sed 's/^/| /' conftest.$ac_ext >&5
43899
43900   ac_header_preproc=no
43901 fi
43902
43903 rm -f conftest.err conftest.$ac_ext
43904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43905 $as_echo "$ac_header_preproc" >&6; }
43906
43907 # So?  What about this header?
43908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43909   yes:no: )
43910     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43911 $as_echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43912     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
43913 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
43914     ac_header_preproc=yes
43915     ;;
43916   no:yes:* )
43917     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
43918 $as_echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
43919     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
43920 $as_echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
43921     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
43922 $as_echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
43923     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
43924 $as_echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43925     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
43926 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
43927     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
43928 $as_echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
43929
43930     ;;
43931 esac
43932 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43933 $as_echo_n "checking for sys/xattr.h... " >&6; }
43934 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43935   $as_echo_n "(cached) " >&6
43936 else
43937   ac_cv_header_sys_xattr_h=$ac_header_preproc
43938 fi
43939 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43940 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43941
43942 fi
43943 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then
43944
43945 cat >>confdefs.h <<\_ACEOF
43946 #define HAVE_SYS_XATTR_H 1
43947 _ACEOF
43948
43949 fi
43950
43951
43952
43953
43954
43955 for ac_func in llistxattr lgetxattr lsetxattr
43956 do
43957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43958 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43959 $as_echo_n "checking for $ac_func... " >&6; }
43960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43961   $as_echo_n "(cached) " >&6
43962 else
43963   cat >conftest.$ac_ext <<_ACEOF
43964 /* confdefs.h.  */
43965 _ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h.  */
43969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43971 #define $ac_func innocuous_$ac_func
43972
43973 /* System header to define __stub macros and hopefully few prototypes,
43974     which can conflict with char $ac_func (); below.
43975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43976     <limits.h> exists even on freestanding compilers.  */
43977
43978 #ifdef __STDC__
43979 # include <limits.h>
43980 #else
43981 # include <assert.h>
43982 #endif
43983
43984 #undef $ac_func
43985
43986 /* Override any GCC internal prototype to avoid an error.
43987    Use char because int might match the return type of a GCC
43988    builtin and then its argument prototype would still apply.  */
43989 #ifdef __cplusplus
43990 extern "C"
43991 #endif
43992 char $ac_func ();
43993 /* The GNU C library defines this for functions which it implements
43994     to always fail with ENOSYS.  Some functions are actually named
43995     something starting with __ and the normal name is an alias.  */
43996 #if defined __stub_$ac_func || defined __stub___$ac_func
43997 choke me
43998 #endif
43999
44000 int
44001 main ()
44002 {
44003 return $ac_func ();
44004   ;
44005   return 0;
44006 }
44007 _ACEOF
44008 rm -f conftest.$ac_objext conftest$ac_exeext
44009 if { (ac_try="$ac_link"
44010 case "(($ac_try" in
44011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44012   *) ac_try_echo=$ac_try;;
44013 esac
44014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44015 $as_echo "$ac_try_echo") >&5
44016   (eval "$ac_link") 2>conftest.er1
44017   ac_status=$?
44018   grep -v '^ *+' conftest.er1 >conftest.err
44019   rm -f conftest.er1
44020   cat conftest.err >&5
44021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44022   (exit $ac_status); } && {
44023          test -z "$ac_c_werror_flag" ||
44024          test ! -s conftest.err
44025        } && test -s conftest$ac_exeext && {
44026          test "$cross_compiling" = yes ||
44027          $as_test_x conftest$ac_exeext
44028        }; then
44029   eval "$as_ac_var=yes"
44030 else
44031   $as_echo "$as_me: failed program was:" >&5
44032 sed 's/^/| /' conftest.$ac_ext >&5
44033
44034         eval "$as_ac_var=no"
44035 fi
44036
44037 rm -rf conftest.dSYM
44038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44039       conftest$ac_exeext conftest.$ac_ext
44040 fi
44041 ac_res=`eval 'as_val=${'$as_ac_var'}
44042                  $as_echo "$as_val"'`
44043                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44044 $as_echo "$ac_res" >&6; }
44045 as_val=`eval 'as_val=${'$as_ac_var'}
44046                  $as_echo "$as_val"'`
44047    if test "x$as_val" = x""yes; then
44048   cat >>confdefs.h <<_ACEOF
44049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44050 _ACEOF
44051
44052              have_xattr=yes
44053
44054 cat >>confdefs.h <<\_ACEOF
44055 #define HAVE_LLISTXATTR 1
44056 _ACEOF
44057
44058
44059 cat >>confdefs.h <<\_ACEOF
44060 #define HAVE_LGETXATTR 1
44061 _ACEOF
44062
44063
44064 cat >>confdefs.h <<\_ACEOF
44065 #define HAVE_LSETXATTR 1
44066 _ACEOF
44067
44068
44069
44070 fi
44071 done
44072
44073
44074       if test $have_xattr = no; then
44075
44076
44077
44078 for ac_func in listxattr getxattr setxattr
44079 do
44080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44081 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44082 $as_echo_n "checking for $ac_func... " >&6; }
44083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44084   $as_echo_n "(cached) " >&6
44085 else
44086   cat >conftest.$ac_ext <<_ACEOF
44087 /* confdefs.h.  */
44088 _ACEOF
44089 cat confdefs.h >>conftest.$ac_ext
44090 cat >>conftest.$ac_ext <<_ACEOF
44091 /* end confdefs.h.  */
44092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44094 #define $ac_func innocuous_$ac_func
44095
44096 /* System header to define __stub macros and hopefully few prototypes,
44097     which can conflict with char $ac_func (); below.
44098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44099     <limits.h> exists even on freestanding compilers.  */
44100
44101 #ifdef __STDC__
44102 # include <limits.h>
44103 #else
44104 # include <assert.h>
44105 #endif
44106
44107 #undef $ac_func
44108
44109 /* Override any GCC internal prototype to avoid an error.
44110    Use char because int might match the return type of a GCC
44111    builtin and then its argument prototype would still apply.  */
44112 #ifdef __cplusplus
44113 extern "C"
44114 #endif
44115 char $ac_func ();
44116 /* The GNU C library defines this for functions which it implements
44117     to always fail with ENOSYS.  Some functions are actually named
44118     something starting with __ and the normal name is an alias.  */
44119 #if defined __stub_$ac_func || defined __stub___$ac_func
44120 choke me
44121 #endif
44122
44123 int
44124 main ()
44125 {
44126 return $ac_func ();
44127   ;
44128   return 0;
44129 }
44130 _ACEOF
44131 rm -f conftest.$ac_objext conftest$ac_exeext
44132 if { (ac_try="$ac_link"
44133 case "(($ac_try" in
44134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44135   *) ac_try_echo=$ac_try;;
44136 esac
44137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44138 $as_echo "$ac_try_echo") >&5
44139   (eval "$ac_link") 2>conftest.er1
44140   ac_status=$?
44141   grep -v '^ *+' conftest.er1 >conftest.err
44142   rm -f conftest.er1
44143   cat conftest.err >&5
44144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44145   (exit $ac_status); } && {
44146          test -z "$ac_c_werror_flag" ||
44147          test ! -s conftest.err
44148        } && test -s conftest$ac_exeext && {
44149          test "$cross_compiling" = yes ||
44150          $as_test_x conftest$ac_exeext
44151        }; then
44152   eval "$as_ac_var=yes"
44153 else
44154   $as_echo "$as_me: failed program was:" >&5
44155 sed 's/^/| /' conftest.$ac_ext >&5
44156
44157         eval "$as_ac_var=no"
44158 fi
44159
44160 rm -rf conftest.dSYM
44161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44162       conftest$ac_exeext conftest.$ac_ext
44163 fi
44164 ac_res=`eval 'as_val=${'$as_ac_var'}
44165                  $as_echo "$as_val"'`
44166                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44167 $as_echo "$ac_res" >&6; }
44168 as_val=`eval 'as_val=${'$as_ac_var'}
44169                  $as_echo "$as_val"'`
44170    if test "x$as_val" = x""yes; then
44171   cat >>confdefs.h <<_ACEOF
44172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44173 _ACEOF
44174
44175                 have_xattr=yes
44176
44177 cat >>confdefs.h <<\_ACEOF
44178 #define HAVE_LISTXATTR 1
44179 _ACEOF
44180
44181
44182 cat >>confdefs.h <<\_ACEOF
44183 #define HAVE_GETXATTR 1
44184 _ACEOF
44185
44186
44187 cat >>confdefs.h <<\_ACEOF
44188 #define HAVE_SETXATTR 1
44189 _ACEOF
44190
44191
44192
44193 fi
44194 done
44195
44196       fi
44197    fi
44198
44199             if test $have_xattr = no; then
44200       if test "${ac_cv_header_sys_attr_h+set}" = set; then
44201   { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44202 $as_echo_n "checking for sys/attr.h... " >&6; }
44203 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44204   $as_echo_n "(cached) " >&6
44205 fi
44206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44207 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44208 else
44209   # Is the header compilable?
44210 { $as_echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
44211 $as_echo_n "checking sys/attr.h usability... " >&6; }
44212 cat >conftest.$ac_ext <<_ACEOF
44213 /* confdefs.h.  */
44214 _ACEOF
44215 cat confdefs.h >>conftest.$ac_ext
44216 cat >>conftest.$ac_ext <<_ACEOF
44217 /* end confdefs.h.  */
44218 $ac_includes_default
44219 #include <sys/attr.h>
44220 _ACEOF
44221 rm -f conftest.$ac_objext
44222 if { (ac_try="$ac_compile"
44223 case "(($ac_try" in
44224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44225   *) ac_try_echo=$ac_try;;
44226 esac
44227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44228 $as_echo "$ac_try_echo") >&5
44229   (eval "$ac_compile") 2>conftest.er1
44230   ac_status=$?
44231   grep -v '^ *+' conftest.er1 >conftest.err
44232   rm -f conftest.er1
44233   cat conftest.err >&5
44234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235   (exit $ac_status); } && {
44236          test -z "$ac_c_werror_flag" ||
44237          test ! -s conftest.err
44238        } && test -s conftest.$ac_objext; then
44239   ac_header_compiler=yes
44240 else
44241   $as_echo "$as_me: failed program was:" >&5
44242 sed 's/^/| /' conftest.$ac_ext >&5
44243
44244         ac_header_compiler=no
44245 fi
44246
44247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44249 $as_echo "$ac_header_compiler" >&6; }
44250
44251 # Is the header present?
44252 { $as_echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
44253 $as_echo_n "checking sys/attr.h presence... " >&6; }
44254 cat >conftest.$ac_ext <<_ACEOF
44255 /* confdefs.h.  */
44256 _ACEOF
44257 cat confdefs.h >>conftest.$ac_ext
44258 cat >>conftest.$ac_ext <<_ACEOF
44259 /* end confdefs.h.  */
44260 #include <sys/attr.h>
44261 _ACEOF
44262 if { (ac_try="$ac_cpp conftest.$ac_ext"
44263 case "(($ac_try" in
44264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44265   *) ac_try_echo=$ac_try;;
44266 esac
44267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44268 $as_echo "$ac_try_echo") >&5
44269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44270   ac_status=$?
44271   grep -v '^ *+' conftest.er1 >conftest.err
44272   rm -f conftest.er1
44273   cat conftest.err >&5
44274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44275   (exit $ac_status); } >/dev/null && {
44276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44277          test ! -s conftest.err
44278        }; then
44279   ac_header_preproc=yes
44280 else
44281   $as_echo "$as_me: failed program was:" >&5
44282 sed 's/^/| /' conftest.$ac_ext >&5
44283
44284   ac_header_preproc=no
44285 fi
44286
44287 rm -f conftest.err conftest.$ac_ext
44288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44289 $as_echo "$ac_header_preproc" >&6; }
44290
44291 # So?  What about this header?
44292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44293   yes:no: )
44294     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44295 $as_echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44296     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
44297 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
44298     ac_header_preproc=yes
44299     ;;
44300   no:yes:* )
44301     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
44302 $as_echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
44303     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
44304 $as_echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
44305     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
44306 $as_echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
44307     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
44308 $as_echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44309     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
44310 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
44311     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
44312 $as_echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
44313
44314     ;;
44315 esac
44316 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44317 $as_echo_n "checking for sys/attr.h... " >&6; }
44318 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44319   $as_echo_n "(cached) " >&6
44320 else
44321   ac_cv_header_sys_attr_h=$ac_header_preproc
44322 fi
44323 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44324 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44325
44326 fi
44327 if test "x$ac_cv_header_sys_attr_h" = x""yes; then
44328
44329 cat >>confdefs.h <<\_ACEOF
44330 #define HAVE_SYS_ATTR_H 1
44331 _ACEOF
44332
44333 fi
44334
44335
44336       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44337   { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44338 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44339 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44340   $as_echo_n "(cached) " >&6
44341 fi
44342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44343 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44344 else
44345   # Is the header compilable?
44346 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
44347 $as_echo_n "checking sys/nvpair.h usability... " >&6; }
44348 cat >conftest.$ac_ext <<_ACEOF
44349 /* confdefs.h.  */
44350 _ACEOF
44351 cat confdefs.h >>conftest.$ac_ext
44352 cat >>conftest.$ac_ext <<_ACEOF
44353 /* end confdefs.h.  */
44354 $ac_includes_default
44355 #include <sys/nvpair.h>
44356 _ACEOF
44357 rm -f conftest.$ac_objext
44358 if { (ac_try="$ac_compile"
44359 case "(($ac_try" in
44360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44361   *) ac_try_echo=$ac_try;;
44362 esac
44363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44364 $as_echo "$ac_try_echo") >&5
44365   (eval "$ac_compile") 2>conftest.er1
44366   ac_status=$?
44367   grep -v '^ *+' conftest.er1 >conftest.err
44368   rm -f conftest.er1
44369   cat conftest.err >&5
44370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44371   (exit $ac_status); } && {
44372          test -z "$ac_c_werror_flag" ||
44373          test ! -s conftest.err
44374        } && test -s conftest.$ac_objext; then
44375   ac_header_compiler=yes
44376 else
44377   $as_echo "$as_me: failed program was:" >&5
44378 sed 's/^/| /' conftest.$ac_ext >&5
44379
44380         ac_header_compiler=no
44381 fi
44382
44383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44385 $as_echo "$ac_header_compiler" >&6; }
44386
44387 # Is the header present?
44388 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
44389 $as_echo_n "checking sys/nvpair.h presence... " >&6; }
44390 cat >conftest.$ac_ext <<_ACEOF
44391 /* confdefs.h.  */
44392 _ACEOF
44393 cat confdefs.h >>conftest.$ac_ext
44394 cat >>conftest.$ac_ext <<_ACEOF
44395 /* end confdefs.h.  */
44396 #include <sys/nvpair.h>
44397 _ACEOF
44398 if { (ac_try="$ac_cpp conftest.$ac_ext"
44399 case "(($ac_try" in
44400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44401   *) ac_try_echo=$ac_try;;
44402 esac
44403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44404 $as_echo "$ac_try_echo") >&5
44405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44406   ac_status=$?
44407   grep -v '^ *+' conftest.er1 >conftest.err
44408   rm -f conftest.er1
44409   cat conftest.err >&5
44410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44411   (exit $ac_status); } >/dev/null && {
44412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44413          test ! -s conftest.err
44414        }; then
44415   ac_header_preproc=yes
44416 else
44417   $as_echo "$as_me: failed program was:" >&5
44418 sed 's/^/| /' conftest.$ac_ext >&5
44419
44420   ac_header_preproc=no
44421 fi
44422
44423 rm -f conftest.err conftest.$ac_ext
44424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44425 $as_echo "$ac_header_preproc" >&6; }
44426
44427 # So?  What about this header?
44428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44429   yes:no: )
44430     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
44431 $as_echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44432     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
44433 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
44434     ac_header_preproc=yes
44435     ;;
44436   no:yes:* )
44437     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
44438 $as_echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
44439     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
44440 $as_echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
44441     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
44442 $as_echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
44443     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
44444 $as_echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44445     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
44446 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
44447     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
44448 $as_echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
44449
44450     ;;
44451 esac
44452 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44453 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44454 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44455   $as_echo_n "(cached) " >&6
44456 else
44457   ac_cv_header_sys_nvpair_h=$ac_header_preproc
44458 fi
44459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44460 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44461
44462 fi
44463 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then
44464
44465 cat >>confdefs.h <<\_ACEOF
44466 #define HAVE_SYS_NVPAIR_H 1
44467 _ACEOF
44468
44469 fi
44470
44471
44472       if test "${ac_cv_header_attr_h+set}" = set; then
44473   { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44474 $as_echo_n "checking for attr.h... " >&6; }
44475 if test "${ac_cv_header_attr_h+set}" = set; then
44476   $as_echo_n "(cached) " >&6
44477 fi
44478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44479 $as_echo "$ac_cv_header_attr_h" >&6; }
44480 else
44481   # Is the header compilable?
44482 { $as_echo "$as_me:$LINENO: checking attr.h usability" >&5
44483 $as_echo_n "checking attr.h usability... " >&6; }
44484 cat >conftest.$ac_ext <<_ACEOF
44485 /* confdefs.h.  */
44486 _ACEOF
44487 cat confdefs.h >>conftest.$ac_ext
44488 cat >>conftest.$ac_ext <<_ACEOF
44489 /* end confdefs.h.  */
44490 $ac_includes_default
44491 #include <attr.h>
44492 _ACEOF
44493 rm -f conftest.$ac_objext
44494 if { (ac_try="$ac_compile"
44495 case "(($ac_try" in
44496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44497   *) ac_try_echo=$ac_try;;
44498 esac
44499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44500 $as_echo "$ac_try_echo") >&5
44501   (eval "$ac_compile") 2>conftest.er1
44502   ac_status=$?
44503   grep -v '^ *+' conftest.er1 >conftest.err
44504   rm -f conftest.er1
44505   cat conftest.err >&5
44506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44507   (exit $ac_status); } && {
44508          test -z "$ac_c_werror_flag" ||
44509          test ! -s conftest.err
44510        } && test -s conftest.$ac_objext; then
44511   ac_header_compiler=yes
44512 else
44513   $as_echo "$as_me: failed program was:" >&5
44514 sed 's/^/| /' conftest.$ac_ext >&5
44515
44516         ac_header_compiler=no
44517 fi
44518
44519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44520 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44521 $as_echo "$ac_header_compiler" >&6; }
44522
44523 # Is the header present?
44524 { $as_echo "$as_me:$LINENO: checking attr.h presence" >&5
44525 $as_echo_n "checking attr.h presence... " >&6; }
44526 cat >conftest.$ac_ext <<_ACEOF
44527 /* confdefs.h.  */
44528 _ACEOF
44529 cat confdefs.h >>conftest.$ac_ext
44530 cat >>conftest.$ac_ext <<_ACEOF
44531 /* end confdefs.h.  */
44532 #include <attr.h>
44533 _ACEOF
44534 if { (ac_try="$ac_cpp conftest.$ac_ext"
44535 case "(($ac_try" in
44536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44537   *) ac_try_echo=$ac_try;;
44538 esac
44539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44540 $as_echo "$ac_try_echo") >&5
44541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44542   ac_status=$?
44543   grep -v '^ *+' conftest.er1 >conftest.err
44544   rm -f conftest.er1
44545   cat conftest.err >&5
44546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547   (exit $ac_status); } >/dev/null && {
44548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44549          test ! -s conftest.err
44550        }; then
44551   ac_header_preproc=yes
44552 else
44553   $as_echo "$as_me: failed program was:" >&5
44554 sed 's/^/| /' conftest.$ac_ext >&5
44555
44556   ac_header_preproc=no
44557 fi
44558
44559 rm -f conftest.err conftest.$ac_ext
44560 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44561 $as_echo "$ac_header_preproc" >&6; }
44562
44563 # So?  What about this header?
44564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44565   yes:no: )
44566     { $as_echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44567 $as_echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44568     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
44569 $as_echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
44570     ac_header_preproc=yes
44571     ;;
44572   no:yes:* )
44573     { $as_echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
44574 $as_echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
44575     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
44576 $as_echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
44577     { $as_echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
44578 $as_echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
44579     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
44580 $as_echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44581     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
44582 $as_echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
44583     { $as_echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
44584 $as_echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
44585
44586     ;;
44587 esac
44588 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44589 $as_echo_n "checking for attr.h... " >&6; }
44590 if test "${ac_cv_header_attr_h+set}" = set; then
44591   $as_echo_n "(cached) " >&6
44592 else
44593   ac_cv_header_attr_h=$ac_header_preproc
44594 fi
44595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44596 $as_echo "$ac_cv_header_attr_h" >&6; }
44597
44598 fi
44599 if test "x$ac_cv_header_attr_h" = x""yes; then
44600
44601 cat >>confdefs.h <<\_ACEOF
44602 #define HAVE_ATTR_H 1
44603 _ACEOF
44604
44605 fi
44606
44607
44608
44609
44610
44611
44612
44613
44614 for ac_func in openat fstatat unlinkat fchownat futimesat
44615 do
44616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44617 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44618 $as_echo_n "checking for $ac_func... " >&6; }
44619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44620   $as_echo_n "(cached) " >&6
44621 else
44622   cat >conftest.$ac_ext <<_ACEOF
44623 /* confdefs.h.  */
44624 _ACEOF
44625 cat confdefs.h >>conftest.$ac_ext
44626 cat >>conftest.$ac_ext <<_ACEOF
44627 /* end confdefs.h.  */
44628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44630 #define $ac_func innocuous_$ac_func
44631
44632 /* System header to define __stub macros and hopefully few prototypes,
44633     which can conflict with char $ac_func (); below.
44634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44635     <limits.h> exists even on freestanding compilers.  */
44636
44637 #ifdef __STDC__
44638 # include <limits.h>
44639 #else
44640 # include <assert.h>
44641 #endif
44642
44643 #undef $ac_func
44644
44645 /* Override any GCC internal prototype to avoid an error.
44646    Use char because int might match the return type of a GCC
44647    builtin and then its argument prototype would still apply.  */
44648 #ifdef __cplusplus
44649 extern "C"
44650 #endif
44651 char $ac_func ();
44652 /* The GNU C library defines this for functions which it implements
44653     to always fail with ENOSYS.  Some functions are actually named
44654     something starting with __ and the normal name is an alias.  */
44655 #if defined __stub_$ac_func || defined __stub___$ac_func
44656 choke me
44657 #endif
44658
44659 int
44660 main ()
44661 {
44662 return $ac_func ();
44663   ;
44664   return 0;
44665 }
44666 _ACEOF
44667 rm -f conftest.$ac_objext conftest$ac_exeext
44668 if { (ac_try="$ac_link"
44669 case "(($ac_try" in
44670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44671   *) ac_try_echo=$ac_try;;
44672 esac
44673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44674 $as_echo "$ac_try_echo") >&5
44675   (eval "$ac_link") 2>conftest.er1
44676   ac_status=$?
44677   grep -v '^ *+' conftest.er1 >conftest.err
44678   rm -f conftest.er1
44679   cat conftest.err >&5
44680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44681   (exit $ac_status); } && {
44682          test -z "$ac_c_werror_flag" ||
44683          test ! -s conftest.err
44684        } && test -s conftest$ac_exeext && {
44685          test "$cross_compiling" = yes ||
44686          $as_test_x conftest$ac_exeext
44687        }; then
44688   eval "$as_ac_var=yes"
44689 else
44690   $as_echo "$as_me: failed program was:" >&5
44691 sed 's/^/| /' conftest.$ac_ext >&5
44692
44693         eval "$as_ac_var=no"
44694 fi
44695
44696 rm -rf conftest.dSYM
44697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44698       conftest$ac_exeext conftest.$ac_ext
44699 fi
44700 ac_res=`eval 'as_val=${'$as_ac_var'}
44701                  $as_echo "$as_val"'`
44702                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44703 $as_echo "$ac_res" >&6; }
44704 as_val=`eval 'as_val=${'$as_ac_var'}
44705                  $as_echo "$as_val"'`
44706    if test "x$as_val" = x""yes; then
44707   cat >>confdefs.h <<_ACEOF
44708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44709 _ACEOF
44710
44711              have_xattr=yes
44712
44713 cat >>confdefs.h <<\_ACEOF
44714 #define HAVE_OPENAT 1
44715 _ACEOF
44716
44717
44718 cat >>confdefs.h <<\_ACEOF
44719 #define HAVE_FSTATAT 1
44720 _ACEOF
44721
44722
44723 cat >>confdefs.h <<\_ACEOF
44724 #define HAVE_UNLINKAT 1
44725 _ACEOF
44726
44727
44728 cat >>confdefs.h <<\_ACEOF
44729 #define HAVE_FCHOWNAT 1
44730 _ACEOF
44731
44732
44733 cat >>confdefs.h <<\_ACEOF
44734 #define HAVE_FUTIMESAT 1
44735 _ACEOF
44736
44737
44738
44739 fi
44740 done
44741
44742
44743       if test $have_xattr = yes; then
44744          { $as_echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
44745 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
44746 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
44747   $as_echo_n "(cached) " >&6
44748 else
44749   ac_check_lib_save_LIBS=$LIBS
44750 LIBS="-lnvpair  $LIBS"
44751 cat >conftest.$ac_ext <<_ACEOF
44752 /* confdefs.h.  */
44753 _ACEOF
44754 cat confdefs.h >>conftest.$ac_ext
44755 cat >>conftest.$ac_ext <<_ACEOF
44756 /* end confdefs.h.  */
44757
44758 /* Override any GCC internal prototype to avoid an error.
44759    Use char because int might match the return type of a GCC
44760    builtin and then its argument prototype would still apply.  */
44761 #ifdef __cplusplus
44762 extern "C"
44763 #endif
44764 char nvlist_next_nvpair ();
44765 int
44766 main ()
44767 {
44768 return nvlist_next_nvpair ();
44769   ;
44770   return 0;
44771 }
44772 _ACEOF
44773 rm -f conftest.$ac_objext conftest$ac_exeext
44774 if { (ac_try="$ac_link"
44775 case "(($ac_try" in
44776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44777   *) ac_try_echo=$ac_try;;
44778 esac
44779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44780 $as_echo "$ac_try_echo") >&5
44781   (eval "$ac_link") 2>conftest.er1
44782   ac_status=$?
44783   grep -v '^ *+' conftest.er1 >conftest.err
44784   rm -f conftest.er1
44785   cat conftest.err >&5
44786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44787   (exit $ac_status); } && {
44788          test -z "$ac_c_werror_flag" ||
44789          test ! -s conftest.err
44790        } && test -s conftest$ac_exeext && {
44791          test "$cross_compiling" = yes ||
44792          $as_test_x conftest$ac_exeext
44793        }; then
44794   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
44795 else
44796   $as_echo "$as_me: failed program was:" >&5
44797 sed 's/^/| /' conftest.$ac_ext >&5
44798
44799         ac_cv_lib_nvpair_nvlist_next_nvpair=no
44800 fi
44801
44802 rm -rf conftest.dSYM
44803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44804       conftest$ac_exeext conftest.$ac_ext
44805 LIBS=$ac_check_lib_save_LIBS
44806 fi
44807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
44808 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
44809 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then
44810
44811
44812 cat >>confdefs.h <<\_ACEOF
44813 #define HAVE_NVLIST_NEXT_NVPAIR 1
44814 _ACEOF
44815
44816                 FDLIBS="-lnvpair $FDLIBS"
44817
44818
44819 fi
44820
44821       fi
44822    fi
44823
44824    if test x$support_xattr = xyes -a $have_xattr != yes; then
44825       { { $as_echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
44826   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
44827 $as_echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
44828   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
44829    { (exit 1); exit 1; }; }
44830    else
44831       if test $have_xattr = yes; then
44832
44833 cat >>confdefs.h <<\_ACEOF
44834 #define HAVE_XATTR 1
44835 _ACEOF
44836
44837       fi
44838    fi
44839 fi
44840
44841 PTHREAD_LIB=""
44842 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
44843 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
44844 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
44845   $as_echo_n "(cached) " >&6
44846 else
44847   ac_check_lib_save_LIBS=$LIBS
44848 LIBS="-lpthread  $LIBS"
44849 cat >conftest.$ac_ext <<_ACEOF
44850 /* confdefs.h.  */
44851 _ACEOF
44852 cat confdefs.h >>conftest.$ac_ext
44853 cat >>conftest.$ac_ext <<_ACEOF
44854 /* end confdefs.h.  */
44855
44856 /* Override any GCC internal prototype to avoid an error.
44857    Use char because int might match the return type of a GCC
44858    builtin and then its argument prototype would still apply.  */
44859 #ifdef __cplusplus
44860 extern "C"
44861 #endif
44862 char pthread_create ();
44863 int
44864 main ()
44865 {
44866 return pthread_create ();
44867   ;
44868   return 0;
44869 }
44870 _ACEOF
44871 rm -f conftest.$ac_objext conftest$ac_exeext
44872 if { (ac_try="$ac_link"
44873 case "(($ac_try" in
44874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44875   *) ac_try_echo=$ac_try;;
44876 esac
44877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44878 $as_echo "$ac_try_echo") >&5
44879   (eval "$ac_link") 2>conftest.er1
44880   ac_status=$?
44881   grep -v '^ *+' conftest.er1 >conftest.err
44882   rm -f conftest.er1
44883   cat conftest.err >&5
44884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885   (exit $ac_status); } && {
44886          test -z "$ac_c_werror_flag" ||
44887          test ! -s conftest.err
44888        } && test -s conftest$ac_exeext && {
44889          test "$cross_compiling" = yes ||
44890          $as_test_x conftest$ac_exeext
44891        }; then
44892   ac_cv_lib_pthread_pthread_create=yes
44893 else
44894   $as_echo "$as_me: failed program was:" >&5
44895 sed 's/^/| /' conftest.$ac_ext >&5
44896
44897         ac_cv_lib_pthread_pthread_create=no
44898 fi
44899
44900 rm -rf conftest.dSYM
44901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44902       conftest$ac_exeext conftest.$ac_ext
44903 LIBS=$ac_check_lib_save_LIBS
44904 fi
44905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
44906 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
44907 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
44908   PTHREAD_LIB="-lpthread"
44909 else
44910
44911        { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
44912 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
44913 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
44914   $as_echo_n "(cached) " >&6
44915 else
44916   ac_check_lib_save_LIBS=$LIBS
44917 LIBS="-lpthreads  $LIBS"
44918 cat >conftest.$ac_ext <<_ACEOF
44919 /* confdefs.h.  */
44920 _ACEOF
44921 cat confdefs.h >>conftest.$ac_ext
44922 cat >>conftest.$ac_ext <<_ACEOF
44923 /* end confdefs.h.  */
44924
44925 /* Override any GCC internal prototype to avoid an error.
44926    Use char because int might match the return type of a GCC
44927    builtin and then its argument prototype would still apply.  */
44928 #ifdef __cplusplus
44929 extern "C"
44930 #endif
44931 char pthread_create ();
44932 int
44933 main ()
44934 {
44935 return pthread_create ();
44936   ;
44937   return 0;
44938 }
44939 _ACEOF
44940 rm -f conftest.$ac_objext conftest$ac_exeext
44941 if { (ac_try="$ac_link"
44942 case "(($ac_try" in
44943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44944   *) ac_try_echo=$ac_try;;
44945 esac
44946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44947 $as_echo "$ac_try_echo") >&5
44948   (eval "$ac_link") 2>conftest.er1
44949   ac_status=$?
44950   grep -v '^ *+' conftest.er1 >conftest.err
44951   rm -f conftest.er1
44952   cat conftest.err >&5
44953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954   (exit $ac_status); } && {
44955          test -z "$ac_c_werror_flag" ||
44956          test ! -s conftest.err
44957        } && test -s conftest$ac_exeext && {
44958          test "$cross_compiling" = yes ||
44959          $as_test_x conftest$ac_exeext
44960        }; then
44961   ac_cv_lib_pthreads_pthread_create=yes
44962 else
44963   $as_echo "$as_me: failed program was:" >&5
44964 sed 's/^/| /' conftest.$ac_ext >&5
44965
44966         ac_cv_lib_pthreads_pthread_create=no
44967 fi
44968
44969 rm -rf conftest.dSYM
44970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44971       conftest$ac_exeext conftest.$ac_ext
44972 LIBS=$ac_check_lib_save_LIBS
44973 fi
44974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
44975 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
44976 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
44977   PTHREAD_LIB="-lpthreads"
44978 else
44979
44980               { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
44981 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
44982 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
44983   $as_echo_n "(cached) " >&6
44984 else
44985   ac_check_lib_save_LIBS=$LIBS
44986 LIBS="-lc_r  $LIBS"
44987 cat >conftest.$ac_ext <<_ACEOF
44988 /* confdefs.h.  */
44989 _ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h.  */
44993
44994 /* Override any GCC internal prototype to avoid an error.
44995    Use char because int might match the return type of a GCC
44996    builtin and then its argument prototype would still apply.  */
44997 #ifdef __cplusplus
44998 extern "C"
44999 #endif
45000 char pthread_create ();
45001 int
45002 main ()
45003 {
45004 return pthread_create ();
45005   ;
45006   return 0;
45007 }
45008 _ACEOF
45009 rm -f conftest.$ac_objext conftest$ac_exeext
45010 if { (ac_try="$ac_link"
45011 case "(($ac_try" in
45012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45013   *) ac_try_echo=$ac_try;;
45014 esac
45015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45016 $as_echo "$ac_try_echo") >&5
45017   (eval "$ac_link") 2>conftest.er1
45018   ac_status=$?
45019   grep -v '^ *+' conftest.er1 >conftest.err
45020   rm -f conftest.er1
45021   cat conftest.err >&5
45022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023   (exit $ac_status); } && {
45024          test -z "$ac_c_werror_flag" ||
45025          test ! -s conftest.err
45026        } && test -s conftest$ac_exeext && {
45027          test "$cross_compiling" = yes ||
45028          $as_test_x conftest$ac_exeext
45029        }; then
45030   ac_cv_lib_c_r_pthread_create=yes
45031 else
45032   $as_echo "$as_me: failed program was:" >&5
45033 sed 's/^/| /' conftest.$ac_ext >&5
45034
45035         ac_cv_lib_c_r_pthread_create=no
45036 fi
45037
45038 rm -rf conftest.dSYM
45039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45040       conftest$ac_exeext conftest.$ac_ext
45041 LIBS=$ac_check_lib_save_LIBS
45042 fi
45043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
45044 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
45045 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
45046   PTHREAD_LIB="-lc_r"
45047 else
45048
45049                      { $as_echo "$as_me:$LINENO: checking for pthread_create" >&5
45050 $as_echo_n "checking for pthread_create... " >&6; }
45051 if test "${ac_cv_func_pthread_create+set}" = set; then
45052   $as_echo_n "(cached) " >&6
45053 else
45054   cat >conftest.$ac_ext <<_ACEOF
45055 /* confdefs.h.  */
45056 _ACEOF
45057 cat confdefs.h >>conftest.$ac_ext
45058 cat >>conftest.$ac_ext <<_ACEOF
45059 /* end confdefs.h.  */
45060 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
45061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45062 #define pthread_create innocuous_pthread_create
45063
45064 /* System header to define __stub macros and hopefully few prototypes,
45065     which can conflict with char pthread_create (); below.
45066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45067     <limits.h> exists even on freestanding compilers.  */
45068
45069 #ifdef __STDC__
45070 # include <limits.h>
45071 #else
45072 # include <assert.h>
45073 #endif
45074
45075 #undef pthread_create
45076
45077 /* Override any GCC internal prototype to avoid an error.
45078    Use char because int might match the return type of a GCC
45079    builtin and then its argument prototype would still apply.  */
45080 #ifdef __cplusplus
45081 extern "C"
45082 #endif
45083 char pthread_create ();
45084 /* The GNU C library defines this for functions which it implements
45085     to always fail with ENOSYS.  Some functions are actually named
45086     something starting with __ and the normal name is an alias.  */
45087 #if defined __stub_pthread_create || defined __stub___pthread_create
45088 choke me
45089 #endif
45090
45091 int
45092 main ()
45093 {
45094 return pthread_create ();
45095   ;
45096   return 0;
45097 }
45098 _ACEOF
45099 rm -f conftest.$ac_objext conftest$ac_exeext
45100 if { (ac_try="$ac_link"
45101 case "(($ac_try" in
45102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45103   *) ac_try_echo=$ac_try;;
45104 esac
45105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45106 $as_echo "$ac_try_echo") >&5
45107   (eval "$ac_link") 2>conftest.er1
45108   ac_status=$?
45109   grep -v '^ *+' conftest.er1 >conftest.err
45110   rm -f conftest.er1
45111   cat conftest.err >&5
45112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113   (exit $ac_status); } && {
45114          test -z "$ac_c_werror_flag" ||
45115          test ! -s conftest.err
45116        } && test -s conftest$ac_exeext && {
45117          test "$cross_compiling" = yes ||
45118          $as_test_x conftest$ac_exeext
45119        }; then
45120   ac_cv_func_pthread_create=yes
45121 else
45122   $as_echo "$as_me: failed program was:" >&5
45123 sed 's/^/| /' conftest.$ac_ext >&5
45124
45125         ac_cv_func_pthread_create=no
45126 fi
45127
45128 rm -rf conftest.dSYM
45129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45130       conftest$ac_exeext conftest.$ac_ext
45131 fi
45132 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
45133 $as_echo "$ac_cv_func_pthread_create" >&6; }
45134
45135
45136
45137 fi
45138
45139
45140
45141 fi
45142
45143
45144
45145 fi
45146
45147
45148
45149
45150 for ac_header in sys/prctl.h sys/capability.h
45151 do
45152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45154   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45155 $as_echo_n "checking for $ac_header... " >&6; }
45156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45157   $as_echo_n "(cached) " >&6
45158 fi
45159 ac_res=`eval 'as_val=${'$as_ac_Header'}
45160                  $as_echo "$as_val"'`
45161                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45162 $as_echo "$ac_res" >&6; }
45163 else
45164   # Is the header compilable?
45165 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
45166 $as_echo_n "checking $ac_header usability... " >&6; }
45167 cat >conftest.$ac_ext <<_ACEOF
45168 /* confdefs.h.  */
45169 _ACEOF
45170 cat confdefs.h >>conftest.$ac_ext
45171 cat >>conftest.$ac_ext <<_ACEOF
45172 /* end confdefs.h.  */
45173 $ac_includes_default
45174 #include <$ac_header>
45175 _ACEOF
45176 rm -f conftest.$ac_objext
45177 if { (ac_try="$ac_compile"
45178 case "(($ac_try" in
45179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45180   *) ac_try_echo=$ac_try;;
45181 esac
45182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45183 $as_echo "$ac_try_echo") >&5
45184   (eval "$ac_compile") 2>conftest.er1
45185   ac_status=$?
45186   grep -v '^ *+' conftest.er1 >conftest.err
45187   rm -f conftest.er1
45188   cat conftest.err >&5
45189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45190   (exit $ac_status); } && {
45191          test -z "$ac_c_werror_flag" ||
45192          test ! -s conftest.err
45193        } && test -s conftest.$ac_objext; then
45194   ac_header_compiler=yes
45195 else
45196   $as_echo "$as_me: failed program was:" >&5
45197 sed 's/^/| /' conftest.$ac_ext >&5
45198
45199         ac_header_compiler=no
45200 fi
45201
45202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45203 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45204 $as_echo "$ac_header_compiler" >&6; }
45205
45206 # Is the header present?
45207 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45208 $as_echo_n "checking $ac_header presence... " >&6; }
45209 cat >conftest.$ac_ext <<_ACEOF
45210 /* confdefs.h.  */
45211 _ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h.  */
45215 #include <$ac_header>
45216 _ACEOF
45217 if { (ac_try="$ac_cpp conftest.$ac_ext"
45218 case "(($ac_try" in
45219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45220   *) ac_try_echo=$ac_try;;
45221 esac
45222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45223 $as_echo "$ac_try_echo") >&5
45224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45225   ac_status=$?
45226   grep -v '^ *+' conftest.er1 >conftest.err
45227   rm -f conftest.er1
45228   cat conftest.err >&5
45229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45230   (exit $ac_status); } >/dev/null && {
45231          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45232          test ! -s conftest.err
45233        }; then
45234   ac_header_preproc=yes
45235 else
45236   $as_echo "$as_me: failed program was:" >&5
45237 sed 's/^/| /' conftest.$ac_ext >&5
45238
45239   ac_header_preproc=no
45240 fi
45241
45242 rm -f conftest.err conftest.$ac_ext
45243 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45244 $as_echo "$ac_header_preproc" >&6; }
45245
45246 # So?  What about this header?
45247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45248   yes:no: )
45249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45250 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45253     ac_header_preproc=yes
45254     ;;
45255   no:yes:* )
45256     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45257 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45258     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45259 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45260     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45261 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45262     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45263 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45264     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45266     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45267 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45268
45269     ;;
45270 esac
45271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45272 $as_echo_n "checking for $ac_header... " >&6; }
45273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45274   $as_echo_n "(cached) " >&6
45275 else
45276   eval "$as_ac_Header=\$ac_header_preproc"
45277 fi
45278 ac_res=`eval 'as_val=${'$as_ac_Header'}
45279                  $as_echo "$as_val"'`
45280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45281 $as_echo "$ac_res" >&6; }
45282
45283 fi
45284 as_val=`eval 'as_val=${'$as_ac_Header'}
45285                  $as_echo "$as_val"'`
45286    if test "x$as_val" = x""yes; then
45287   cat >>confdefs.h <<_ACEOF
45288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45289 _ACEOF
45290
45291 fi
45292
45293 done
45294
45295
45296
45297 for ac_func in prctl setreuid
45298 do
45299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45300 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45301 $as_echo_n "checking for $ac_func... " >&6; }
45302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45303   $as_echo_n "(cached) " >&6
45304 else
45305   cat >conftest.$ac_ext <<_ACEOF
45306 /* confdefs.h.  */
45307 _ACEOF
45308 cat confdefs.h >>conftest.$ac_ext
45309 cat >>conftest.$ac_ext <<_ACEOF
45310 /* end confdefs.h.  */
45311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45313 #define $ac_func innocuous_$ac_func
45314
45315 /* System header to define __stub macros and hopefully few prototypes,
45316     which can conflict with char $ac_func (); below.
45317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45318     <limits.h> exists even on freestanding compilers.  */
45319
45320 #ifdef __STDC__
45321 # include <limits.h>
45322 #else
45323 # include <assert.h>
45324 #endif
45325
45326 #undef $ac_func
45327
45328 /* Override any GCC internal prototype to avoid an error.
45329    Use char because int might match the return type of a GCC
45330    builtin and then its argument prototype would still apply.  */
45331 #ifdef __cplusplus
45332 extern "C"
45333 #endif
45334 char $ac_func ();
45335 /* The GNU C library defines this for functions which it implements
45336     to always fail with ENOSYS.  Some functions are actually named
45337     something starting with __ and the normal name is an alias.  */
45338 #if defined __stub_$ac_func || defined __stub___$ac_func
45339 choke me
45340 #endif
45341
45342 int
45343 main ()
45344 {
45345 return $ac_func ();
45346   ;
45347   return 0;
45348 }
45349 _ACEOF
45350 rm -f conftest.$ac_objext conftest$ac_exeext
45351 if { (ac_try="$ac_link"
45352 case "(($ac_try" in
45353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45354   *) ac_try_echo=$ac_try;;
45355 esac
45356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45357 $as_echo "$ac_try_echo") >&5
45358   (eval "$ac_link") 2>conftest.er1
45359   ac_status=$?
45360   grep -v '^ *+' conftest.er1 >conftest.err
45361   rm -f conftest.er1
45362   cat conftest.err >&5
45363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45364   (exit $ac_status); } && {
45365          test -z "$ac_c_werror_flag" ||
45366          test ! -s conftest.err
45367        } && test -s conftest$ac_exeext && {
45368          test "$cross_compiling" = yes ||
45369          $as_test_x conftest$ac_exeext
45370        }; then
45371   eval "$as_ac_var=yes"
45372 else
45373   $as_echo "$as_me: failed program was:" >&5
45374 sed 's/^/| /' conftest.$ac_ext >&5
45375
45376         eval "$as_ac_var=no"
45377 fi
45378
45379 rm -rf conftest.dSYM
45380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45381       conftest$ac_exeext conftest.$ac_ext
45382 fi
45383 ac_res=`eval 'as_val=${'$as_ac_var'}
45384                  $as_echo "$as_val"'`
45385                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45386 $as_echo "$ac_res" >&6; }
45387 as_val=`eval 'as_val=${'$as_ac_var'}
45388                  $as_echo "$as_val"'`
45389    if test "x$as_val" = x""yes; then
45390   cat >>confdefs.h <<_ACEOF
45391 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45392 _ACEOF
45393
45394 fi
45395 done
45396
45397 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
45398 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
45399 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
45400   $as_echo_n "(cached) " >&6
45401 else
45402   ac_check_lib_save_LIBS=$LIBS
45403 LIBS="-lcap  $LIBS"
45404 cat >conftest.$ac_ext <<_ACEOF
45405 /* confdefs.h.  */
45406 _ACEOF
45407 cat confdefs.h >>conftest.$ac_ext
45408 cat >>conftest.$ac_ext <<_ACEOF
45409 /* end confdefs.h.  */
45410
45411 /* Override any GCC internal prototype to avoid an error.
45412    Use char because int might match the return type of a GCC
45413    builtin and then its argument prototype would still apply.  */
45414 #ifdef __cplusplus
45415 extern "C"
45416 #endif
45417 char cap_set_proc ();
45418 int
45419 main ()
45420 {
45421 return cap_set_proc ();
45422   ;
45423   return 0;
45424 }
45425 _ACEOF
45426 rm -f conftest.$ac_objext conftest$ac_exeext
45427 if { (ac_try="$ac_link"
45428 case "(($ac_try" in
45429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45430   *) ac_try_echo=$ac_try;;
45431 esac
45432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45433 $as_echo "$ac_try_echo") >&5
45434   (eval "$ac_link") 2>conftest.er1
45435   ac_status=$?
45436   grep -v '^ *+' conftest.er1 >conftest.err
45437   rm -f conftest.er1
45438   cat conftest.err >&5
45439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45440   (exit $ac_status); } && {
45441          test -z "$ac_c_werror_flag" ||
45442          test ! -s conftest.err
45443        } && test -s conftest$ac_exeext && {
45444          test "$cross_compiling" = yes ||
45445          $as_test_x conftest$ac_exeext
45446        }; then
45447   ac_cv_lib_cap_cap_set_proc=yes
45448 else
45449   $as_echo "$as_me: failed program was:" >&5
45450 sed 's/^/| /' conftest.$ac_ext >&5
45451
45452         ac_cv_lib_cap_cap_set_proc=no
45453 fi
45454
45455 rm -rf conftest.dSYM
45456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45457       conftest$ac_exeext conftest.$ac_ext
45458 LIBS=$ac_check_lib_save_LIBS
45459 fi
45460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
45461 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
45462 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
45463   CAP_LIBS="-lcap"
45464 else
45465   CAP_LIBS=
45466 fi
45467
45468 if test x$CAP_LIBS = x-lcap; then
45469
45470 cat >>confdefs.h <<\_ACEOF
45471 #define HAVE_LIBCAP 1
45472 _ACEOF
45473
45474 fi
45475
45476
45477
45478 cat >>confdefs.h <<\_ACEOF
45479 #define FDLIBS 1
45480 _ACEOF
45481
45482
45483 CFLAGS=${CFLAGS--O}
45484
45485 if test x$have_gcc = xyes ; then
45486    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45487    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45488 fi
45489 LDFLAGS=${LDFLAGS--O}
45490 DB_LIBS="${SQL_LFLAGS}"
45491 CPPFLAGS="$CPPFLAGS"
45492 CFLAGS="$CFLAGS"
45493
45494
45495
45496
45497
45498
45499
45500
45501
45502
45503
45504
45505
45506
45507
45508
45509 OBJLIST=
45510
45511
45512 lld="lld"
45513 llu="llu"
45514
45515 WCFLAGS=
45516 WLDFLAGS=
45517
45518 PFILES="platforms/Makefile"
45519 PSCMD="ps -e"
45520 WIN32=
45521 MACOSX=
45522
45523 hostname=`uname -n | cut -d '.' -f 1`
45524 if test x${hostname} = x ; then
45525    hostname="localhost"
45526 fi
45527 ping -c 1 $hostname 2>/dev/null 1>/dev/null
45528 if test ! $? = 0; then
45529   hostname="localhost"
45530 fi
45531
45532 case "$DISTNAME" in
45533 aix)
45534    DISTVER=`uname -r`
45535    PSCMD="ps -e -o pid,comm"
45536    PFILES="${PFILES} \
45537       platforms/aix/Makefile"
45538    TAPEDRIVE="/dev/rmt0.1"
45539   ;;
45540 alpha)
45541    DISTVER=`uname -r`
45542    PTHREAD_LIB="-lpthread -lexc"
45543    if test "${CC}" = "gcc" ; then
45544       lld="lld"
45545       llu="llu"
45546    else
45547       lld="ld"
45548       llu="lu"
45549    fi
45550    TAPEDRIVE="/dev/nrmt0"
45551   ;;
45552 bsdi)
45553    DISTVER=`uname -a |awk '{print $3}'`
45554    TAPEDRIVE="/dev/nrmt0"
45555    PTHREAD_LIB="-pthread"
45556    CFLAGS="${CFLAGS} -pthread"
45557    PSCMD="ps -ax -o pid,command"
45558    lld="qd"
45559    llu="qu"
45560    PFILES="${PFILES} \
45561        platforms/bsdi/Makefile \
45562        platforms/bsdi/bacula-fd \
45563        platforms/bsdi/bacula-sd \
45564        platforms/bsdi/bacula-dir"
45565    largefile_support="yes"
45566   ;;
45567 cygwin)
45568    DISTVER=`uname -a |awk '{print $3}'`
45569    TAPEDRIVE="/dev/nrst0"
45570    WIN32=win32
45571    WCFLAGS="-mwindows"
45572    WLDFLAGS="-mwindows"
45573   ;;
45574 darwin)
45575    DISTVER=`uname -r`
45576    TAPEDRIVE="/dev/nst0"
45577    PSCMD="ps -e -o pid,command"
45578    MACOSX=macosx
45579    PFILES="${PFILES} \
45580       platforms/darwin/Makefile"
45581   ;;
45582 osx)
45583    DISTVER=`uname -r`
45584    TAPEDRIVE="/dev/nst0"
45585    PSCMD="ps -e -o pid,command"
45586    MACOSX=macosx
45587    PFILES="${PFILES} \
45588       platforms/osx/Makefile"
45589   ;;
45590 debian)
45591    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
45592       DISTNAME="ubuntu"
45593    fi
45594    DISTVER=`cat /etc/debian_version`
45595    if test -f /etc/lsb-release ; then
45596       . /etc/lsb-release
45597       if test "x$DISTRIB_ID" != "x" ; then
45598          DISTNAME=$DISTRIB_ID
45599       fi
45600       if test "x$DISTRIB_RELEASE" != "x" ; then
45601          DISTVER=$DISTRIB_RELEASE
45602       fi
45603    fi
45604    if test "$DISTNAME" = "Ubuntu" ; then
45605       DISTNAME="ubuntu"
45606    fi
45607    TAPEDRIVE="/dev/nst0"
45608    PSCMD="ps -e -o pid,command"
45609    if test "$DISTNAME" = "ubuntu" ; then
45610       PFILES="${PFILES} \
45611          platforms/ubuntu/Makefile \
45612          platforms/ubuntu/bacula-fd \
45613          platforms/ubuntu/bacula-sd \
45614          platforms/ubuntu/bacula-dir"
45615    else
45616       PFILES="${PFILES} \
45617          platforms/debian/Makefile \
45618          platforms/debian/bacula-fd \
45619          platforms/debian/bacula-sd \
45620          platforms/debian/bacula-dir"
45621    fi
45622   ;;
45623 freebsd)
45624    DISTVER=`uname -a |awk '{print $3}'`
45625    VER=`echo $DISTVER | cut -c 1`
45626    if test x$VER = x4 ; then
45627       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
45628       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
45629    fi
45630    lld="qd"
45631    llu="qu"
45632    TAPEDRIVE="/dev/nrsa0"
45633    PSCMD="ps -ax -o pid,command"
45634    PFILES="${PFILES} \
45635        platforms/freebsd/Makefile \
45636        platforms/freebsd/bacula-fd \
45637        platforms/freebsd/bacula-sd \
45638        platforms/freebsd/bacula-dir"
45639    largefile_support="yes"
45640   ;;
45641 hpux)
45642    PSCMD="UNIX95=1; ps -e -o pid,comm"
45643    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
45644    DISTVER=`uname -r`
45645    TAPEDRIVE="/dev/rmt/0hnb"
45646    PTHREAD_LIB="-lpthread"
45647    cat >>confdefs.h <<\_ACEOF
45648 #define _INCLUDE_LONGLONG 1
45649 _ACEOF
45650
45651   ;;
45652 irix)
45653    DISTVER=`uname -r`
45654    TAPEDRIVE="/dev/rmt/0cbn"
45655    PSCMD="ps -e -o pid,comm"
45656    PFILES="${PFILES} \
45657        platforms/irix/Makefile \
45658        platforms/irix/bacula-fd \
45659        platforms/irix/bacula-sd \
45660        platforms/irix/bacula-dir"
45661   ;;
45662 netbsd)
45663    DISTVER=`uname -a |awk '{print $3}'`
45664    lld="qd"
45665    llu="qu"
45666    TAPEDRIVE="/dev/nrst0"
45667    PSCMD="ps -ax -o pid,command"
45668    PTHREAD_LIB="-pthread"
45669    CFLAGS="${CFLAGS} -pthread"
45670   ;;
45671 openbsd)
45672    DISTVER=`uname -a |awk '{print $3}'`
45673    lld="qd"
45674    llu="qu"
45675    TAPEDRIVE="/dev/nrst0"
45676    PSCMD="ps -ax -o pid,command"
45677    PTHREAD_LIB="-pthread"
45678    CFLAGS="${CFLAGS} -pthread"
45679    PFILES="${PFILES} \
45680        platforms/openbsd/Makefile \
45681        platforms/openbsd/bacula-fd \
45682        platforms/openbsd/bacula-sd \
45683        platforms/openbsd/bacula-dir"
45684   ;;
45685 redhat)
45686    if test -f /etc/whitebox-release ; then
45687       f=/etc/whitebox-release
45688    else
45689       f=/etc/redhat-release
45690    fi
45691    if test `cat $f | grep release |\
45692          cut -f 3 -d ' '`x = "Enterprise"x ; then
45693       DISTVER="Enterprise "`cat $f | grep release |\
45694           cut -f 6 -d ' '`
45695    else
45696        DISTVER=`cat /etc/redhat-release | grep release |\
45697            cut -f 5 -d ' '`
45698    fi
45699    TAPEDRIVE="/dev/nst0"
45700    PSCMD="ps -e -o pid,command"
45701    PFILES="${PFILES} \
45702        platforms/redhat/Makefile \
45703        platforms/redhat/bacula-fd \
45704        platforms/redhat/bacula-sd \
45705        platforms/redhat/bacula-dir
45706        "
45707   ;;
45708 mandrake)
45709    DISTVER=`cat /etc/mandrake-release | grep release |\
45710       cut -f 5 -d ' '`
45711    TAPEDRIVE="/dev/nst0"
45712    PSCMD="ps -e -o pid,command"
45713    PFILES="${PFILES} \
45714        platforms/mandrake/Makefile \
45715        platforms/mandrake/bacula-fd \
45716        platforms/mandrake/bacula-sd \
45717        platforms/mandrake/bacula-dir \
45718        "
45719   ;;
45720 gentoo)
45721    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
45722    TAPEDRIVE="/dev/nst0"
45723    PSCMD="ps -e -o pid,command"
45724    PFILES="${PFILES} \
45725        platforms/gentoo/Makefile \
45726     platforms/gentoo/bacula-init \
45727        platforms/gentoo/bacula-fd \
45728        platforms/gentoo/bacula-sd \
45729        platforms/gentoo/bacula-dir"
45730   ;;
45731 slackware)
45732    DISTVER=`cat /etc/slackware-version`
45733    TAPEDRIVE="/dev/nst0"
45734    PSCMD="ps -e -o pid,command"
45735    PFILES="${PFILES} \
45736        platforms/slackware/Makefile \
45737        platforms/slackware/rc.bacula-fd \
45738        platforms/slackware/rc.bacula-sd \
45739        platforms/slackware/rc.bacula-dir\
45740        platforms/slackware/functions.bacula"
45741   ;;
45742 solaris)
45743    DISTVER=`uname -r`
45744    TAPEDRIVE="/dev/rmt/0cbn"
45745    PSCMD="ps -e -o pid,comm"
45746    PFILES="${PFILES} \
45747        platforms/solaris/Makefile \
45748        platforms/solaris/bacula-fd \
45749        platforms/solaris/bacula-sd \
45750        platforms/solaris/bacula-dir"
45751    if test x$DISTVER = x5.6 ; then
45752        cat >>confdefs.h <<\_ACEOF
45753 #define HAVE_OLD_SOCKOPT 1
45754 _ACEOF
45755
45756    fi
45757    LIBS="$LIBS -lresolv -lrt"
45758   ;;
45759 suse)
45760    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
45761        cut -f 3 -d ' '`
45762    TAPEDRIVE="/dev/nst0"
45763    PSCMD="ps -e -o pid,command"
45764    PFILES="${PFILES} \
45765        platforms/suse/Makefile \
45766        platforms/suse/bacula-fd \
45767        platforms/suse/bacula-sd \
45768        platforms/suse/bacula-dir \
45769        platforms/suse/bacula"
45770   ;;
45771 suse5)
45772    DISTNAME=suse
45773    DISTVER=5.x
45774    TAPEDRIVE="/dev/nst0"
45775    PSCMD="ps -e -o pid,command"
45776    PFILES="${PFILES} \
45777        platforms/suse/Makefile \
45778        platforms/suse/bacula-fd \
45779        platforms/suse/bacula-sd \
45780        platforms/suse/bacula-dir"
45781   ;;
45782 unknown)
45783    DISTVER=unknown
45784    TAPEDRIVE="/dev/nst0"
45785   ;;
45786 *)
45787   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
45788   ;;
45789 esac
45790
45791
45792
45793 LIBS="$PTHREAD_LIB $LIBS"
45794
45795 cat >>confdefs.h <<_ACEOF
45796 #define lld "$lld"
45797 _ACEOF
45798
45799 cat >>confdefs.h <<_ACEOF
45800 #define llu "$llu"
45801 _ACEOF
45802
45803
45804
45805
45806
45807
45808
45809
45810 MCOMMON=./autoconf/Make.common
45811
45812
45813 if test "x${subsysdir}" = "x${sbindir}" ; then
45814    echo " "
45815    echo " "
45816    echo "You have set both --sbindir and --with-subsys-dir"
45817    echo "  equal to: ${subsysdir} "
45818    echo "This is not permitted. Please reconfigure."
45819    echo " "
45820    echo "Aborting configuration ..."
45821    echo " "
45822    echo " "
45823    exit 1
45824 fi
45825
45826 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/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.pl 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_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/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
45827
45828 ac_config_commands="$ac_config_commands default"
45829
45830 cat >confcache <<\_ACEOF
45831 # This file is a shell script that caches the results of configure
45832 # tests run on this system so they can be shared between configure
45833 # scripts and configure runs, see configure's option --config-cache.
45834 # It is not useful on other systems.  If it contains results you don't
45835 # want to keep, you may remove or edit it.
45836 #
45837 # config.status only pays attention to the cache file if you give it
45838 # the --recheck option to rerun configure.
45839 #
45840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45842 # following values.
45843
45844 _ACEOF
45845
45846 # The following way of writing the cache mishandles newlines in values,
45847 # but we know of no workaround that is simple, portable, and efficient.
45848 # So, we kill variables containing newlines.
45849 # Ultrix sh set writes to stderr and can't be redirected directly,
45850 # and sets the high bit in the cache file unless we assign to the vars.
45851 (
45852   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45853     eval ac_val=\$$ac_var
45854     case $ac_val in #(
45855     *${as_nl}*)
45856       case $ac_var in #(
45857       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45859       esac
45860       case $ac_var in #(
45861       _ | IFS | as_nl) ;; #(
45862       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45863       *) $as_unset $ac_var ;;
45864       esac ;;
45865     esac
45866   done
45867
45868   (set) 2>&1 |
45869     case $as_nl`(ac_space=' '; set) 2>&1` in #(
45870     *${as_nl}ac_space=\ *)
45871       # `set' does not quote correctly, so add quotes (double-quote
45872       # substitution turns \\\\ into \\, and sed turns \\ into \).
45873       sed -n \
45874         "s/'/'\\\\''/g;
45875           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45876       ;; #(
45877     *)
45878       # `set' quotes correctly as required by POSIX, so do not add quotes.
45879       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45880       ;;
45881     esac |
45882     sort
45883 ) |
45884   sed '
45885      /^ac_cv_env_/b end
45886      t clear
45887      :clear
45888      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45889      t end
45890      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45891      :end' >>confcache
45892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45893   if test -w "$cache_file"; then
45894     test "x$cache_file" != "x/dev/null" &&
45895       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45896 $as_echo "$as_me: updating cache $cache_file" >&6;}
45897     cat confcache >$cache_file
45898   else
45899     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45900 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45901   fi
45902 fi
45903 rm -f confcache
45904
45905 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45906 # Let make expand exec_prefix.
45907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45908
45909 DEFS=-DHAVE_CONFIG_H
45910
45911 ac_libobjs=
45912 ac_ltlibobjs=
45913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45914   # 1. Remove the extension, and $U if already installed.
45915   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45916   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45917   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45918   #    will be set to the directory where LIBOBJS objects are built.
45919   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45920   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45921 done
45922 LIBOBJS=$ac_libobjs
45923
45924 LTLIBOBJS=$ac_ltlibobjs
45925
45926
45927
45928 : ${CONFIG_STATUS=./config.status}
45929 ac_write_fail=0
45930 ac_clean_files_save=$ac_clean_files
45931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45932 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45933 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45934 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45935 #! $SHELL
45936 # Generated by $as_me.
45937 # Run this file to recreate the current configuration.
45938 # Compiler output produced by configure, useful for debugging
45939 # configure, is in config.log if it exists.
45940
45941 debug=false
45942 ac_cs_recheck=false
45943 ac_cs_silent=false
45944 SHELL=\${CONFIG_SHELL-$SHELL}
45945 _ACEOF
45946
45947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45948 ## --------------------- ##
45949 ## M4sh Initialization.  ##
45950 ## --------------------- ##
45951
45952 # Be more Bourne compatible
45953 DUALCASE=1; export DUALCASE # for MKS sh
45954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45955   emulate sh
45956   NULLCMD=:
45957   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45958   # is contrary to our usage.  Disable this feature.
45959   alias -g '${1+"$@"}'='"$@"'
45960   setopt NO_GLOB_SUBST
45961 else
45962   case `(set -o) 2>/dev/null` in
45963   *posix*) set -o posix ;;
45964 esac
45965
45966 fi
45967
45968
45969
45970
45971 # PATH needs CR
45972 # Avoid depending upon Character Ranges.
45973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45976 as_cr_digits='0123456789'
45977 as_cr_alnum=$as_cr_Letters$as_cr_digits
45978
45979 as_nl='
45980 '
45981 export as_nl
45982 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45983 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45986 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45987   as_echo='printf %s\n'
45988   as_echo_n='printf %s'
45989 else
45990   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45991     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45992     as_echo_n='/usr/ucb/echo -n'
45993   else
45994     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45995     as_echo_n_body='eval
45996       arg=$1;
45997       case $arg in
45998       *"$as_nl"*)
45999         expr "X$arg" : "X\\(.*\\)$as_nl";
46000         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
46001       esac;
46002       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
46003     '
46004     export as_echo_n_body
46005     as_echo_n='sh -c $as_echo_n_body as_echo'
46006   fi
46007   export as_echo_body
46008   as_echo='sh -c $as_echo_body as_echo'
46009 fi
46010
46011 # The user is always right.
46012 if test "${PATH_SEPARATOR+set}" != set; then
46013   PATH_SEPARATOR=:
46014   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
46015     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
46016       PATH_SEPARATOR=';'
46017   }
46018 fi
46019
46020 # Support unset when possible.
46021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46022   as_unset=unset
46023 else
46024   as_unset=false
46025 fi
46026
46027
46028 # IFS
46029 # We need space, tab and new line, in precisely that order.  Quoting is
46030 # there to prevent editors from complaining about space-tab.
46031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
46032 # splitting by setting IFS to empty value.)
46033 IFS=" ""        $as_nl"
46034
46035 # Find who we are.  Look in the path if we contain no directory separator.
46036 case $0 in
46037   *[\\/]* ) as_myself=$0 ;;
46038   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46039 for as_dir in $PATH
46040 do
46041   IFS=$as_save_IFS
46042   test -z "$as_dir" && as_dir=.
46043   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46044 done
46045 IFS=$as_save_IFS
46046
46047      ;;
46048 esac
46049 # We did not find ourselves, most probably we were run as `sh COMMAND'
46050 # in which case we are not to be found in the path.
46051 if test "x$as_myself" = x; then
46052   as_myself=$0
46053 fi
46054 if test ! -f "$as_myself"; then
46055   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46056   { (exit 1); exit 1; }
46057 fi
46058
46059 # Work around bugs in pre-3.0 UWIN ksh.
46060 for as_var in ENV MAIL MAILPATH
46061 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
46062 done
46063 PS1='$ '
46064 PS2='> '
46065 PS4='+ '
46066
46067 # NLS nuisances.
46068 LC_ALL=C
46069 export LC_ALL
46070 LANGUAGE=C
46071 export LANGUAGE
46072
46073 # Required to use basename.
46074 if expr a : '\(a\)' >/dev/null 2>&1 &&
46075    test "X`expr 00001 : '.*\(...\)'`" = X001; then
46076   as_expr=expr
46077 else
46078   as_expr=false
46079 fi
46080
46081 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46082   as_basename=basename
46083 else
46084   as_basename=false
46085 fi
46086
46087
46088 # Name of the executable.
46089 as_me=`$as_basename -- "$0" ||
46090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46091          X"$0" : 'X\(//\)$' \| \
46092          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46093 $as_echo X/"$0" |
46094     sed '/^.*\/\([^/][^/]*\)\/*$/{
46095             s//\1/
46096             q
46097           }
46098           /^X\/\(\/\/\)$/{
46099             s//\1/
46100             q
46101           }
46102           /^X\/\(\/\).*/{
46103             s//\1/
46104             q
46105           }
46106           s/.*/./; q'`
46107
46108 # CDPATH.
46109 $as_unset CDPATH
46110
46111
46112
46113   as_lineno_1=$LINENO
46114   as_lineno_2=$LINENO
46115   test "x$as_lineno_1" != "x$as_lineno_2" &&
46116   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46117
46118   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46119   # uniformly replaced by the line number.  The first 'sed' inserts a
46120   # line-number line after each line using $LINENO; the second 'sed'
46121   # does the real work.  The second script uses 'N' to pair each
46122   # line-number line with the line containing $LINENO, and appends
46123   # trailing '-' during substitution so that $LINENO is not a special
46124   # case at line end.
46125   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46126   # scripts with optimization help from Paolo Bonzini.  Blame Lee
46127   # E. McMahon (1931-1989) for sed's syntax.  :-)
46128   sed -n '
46129     p
46130     /[$]LINENO/=
46131   ' <$as_myself |
46132     sed '
46133       s/[$]LINENO.*/&-/
46134       t lineno
46135       b
46136       :lineno
46137       N
46138       :loop
46139       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46140       t loop
46141       s/-\n.*//
46142     ' >$as_me.lineno &&
46143   chmod +x "$as_me.lineno" ||
46144     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46145    { (exit 1); exit 1; }; }
46146
46147   # Don't try to exec as it changes $[0], causing all sort of problems
46148   # (the dirname of $[0] is not the place where we might find the
46149   # original and so on.  Autoconf is especially sensitive to this).
46150   . "./$as_me.lineno"
46151   # Exit status is that of the last command.
46152   exit
46153 }
46154
46155
46156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46157   as_dirname=dirname
46158 else
46159   as_dirname=false
46160 fi
46161
46162 ECHO_C= ECHO_N= ECHO_T=
46163 case `echo -n x` in
46164 -n*)
46165   case `echo 'x\c'` in
46166   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
46167   *)   ECHO_C='\c';;
46168   esac;;
46169 *)
46170   ECHO_N='-n';;
46171 esac
46172 if expr a : '\(a\)' >/dev/null 2>&1 &&
46173    test "X`expr 00001 : '.*\(...\)'`" = X001; then
46174   as_expr=expr
46175 else
46176   as_expr=false
46177 fi
46178
46179 rm -f conf$$ conf$$.exe conf$$.file
46180 if test -d conf$$.dir; then
46181   rm -f conf$$.dir/conf$$.file
46182 else
46183   rm -f conf$$.dir
46184   mkdir conf$$.dir 2>/dev/null
46185 fi
46186 if (echo >conf$$.file) 2>/dev/null; then
46187   if ln -s conf$$.file conf$$ 2>/dev/null; then
46188     as_ln_s='ln -s'
46189     # ... but there are two gotchas:
46190     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46191     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46192     # In both cases, we have to default to `cp -p'.
46193     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46194       as_ln_s='cp -p'
46195   elif ln conf$$.file conf$$ 2>/dev/null; then
46196     as_ln_s=ln
46197   else
46198     as_ln_s='cp -p'
46199   fi
46200 else
46201   as_ln_s='cp -p'
46202 fi
46203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46204 rmdir conf$$.dir 2>/dev/null
46205
46206 if mkdir -p . 2>/dev/null; then
46207   as_mkdir_p=:
46208 else
46209   test -d ./-p && rmdir ./-p
46210   as_mkdir_p=false
46211 fi
46212
46213 if test -x / >/dev/null 2>&1; then
46214   as_test_x='test -x'
46215 else
46216   if ls -dL / >/dev/null 2>&1; then
46217     as_ls_L_option=L
46218   else
46219     as_ls_L_option=
46220   fi
46221   as_test_x='
46222     eval sh -c '\''
46223       if test -d "$1"; then
46224         test -d "$1/.";
46225       else
46226         case $1 in
46227         -*)set "./$1";;
46228         esac;
46229         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46230         ???[sx]*):;;*)false;;esac;fi
46231     '\'' sh
46232   '
46233 fi
46234 as_executable_p=$as_test_x
46235
46236 # Sed expression to map a string onto a valid CPP name.
46237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46238
46239 # Sed expression to map a string onto a valid variable name.
46240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46241
46242
46243 exec 6>&1
46244
46245 # Save the log message, to keep $[0] and so on meaningful, and to
46246 # report actual input values of CONFIG_FILES etc. instead of their
46247 # values after options handling.
46248 ac_log="
46249 This file was extended by $as_me, which was
46250 generated by GNU Autoconf 2.63.  Invocation command line was
46251
46252   CONFIG_FILES    = $CONFIG_FILES
46253   CONFIG_HEADERS  = $CONFIG_HEADERS
46254   CONFIG_LINKS    = $CONFIG_LINKS
46255   CONFIG_COMMANDS = $CONFIG_COMMANDS
46256   $ $0 $@
46257
46258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46259 "
46260
46261 _ACEOF
46262
46263 case $ac_config_files in *"
46264 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46265 esac
46266
46267 case $ac_config_headers in *"
46268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46269 esac
46270
46271
46272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46273 # Files that config.status was made for.
46274 config_files="$ac_config_files"
46275 config_headers="$ac_config_headers"
46276 config_commands="$ac_config_commands"
46277
46278 _ACEOF
46279
46280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46281 ac_cs_usage="\
46282 \`$as_me' instantiates files from templates according to the
46283 current configuration.
46284
46285 Usage: $0 [OPTION]... [FILE]...
46286
46287   -h, --help       print this help, then exit
46288   -V, --version    print version number and configuration settings, then exit
46289   -q, --quiet, --silent
46290                    do not print progress messages
46291   -d, --debug      don't remove temporary files
46292       --recheck    update $as_me by reconfiguring in the same conditions
46293       --file=FILE[:TEMPLATE]
46294                    instantiate the configuration file FILE
46295       --header=FILE[:TEMPLATE]
46296                    instantiate the configuration header FILE
46297
46298 Configuration files:
46299 $config_files
46300
46301 Configuration headers:
46302 $config_headers
46303
46304 Configuration commands:
46305 $config_commands
46306
46307 Report bugs to <bug-autoconf@gnu.org>."
46308
46309 _ACEOF
46310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46311 ac_cs_version="\\
46312 config.status
46313 configured by $0, generated by GNU Autoconf 2.63,
46314   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46315
46316 Copyright (C) 2008 Free Software Foundation, Inc.
46317 This config.status script is free software; the Free Software Foundation
46318 gives unlimited permission to copy, distribute and modify it."
46319
46320 ac_pwd='$ac_pwd'
46321 srcdir='$srcdir'
46322 INSTALL='$INSTALL'
46323 AWK='$AWK'
46324 test -n "\$AWK" || AWK=awk
46325 _ACEOF
46326
46327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46328 # The default lists apply if the user does not specify any file.
46329 ac_need_defaults=:
46330 while test $# != 0
46331 do
46332   case $1 in
46333   --*=*)
46334     ac_option=`expr "X$1" : 'X\([^=]*\)='`
46335     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46336     ac_shift=:
46337     ;;
46338   *)
46339     ac_option=$1
46340     ac_optarg=$2
46341     ac_shift=shift
46342     ;;
46343   esac
46344
46345   case $ac_option in
46346   # Handling of the options.
46347   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46348     ac_cs_recheck=: ;;
46349   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46350     $as_echo "$ac_cs_version"; exit ;;
46351   --debug | --debu | --deb | --de | --d | -d )
46352     debug=: ;;
46353   --file | --fil | --fi | --f )
46354     $ac_shift
46355     case $ac_optarg in
46356     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46357     esac
46358     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46359     ac_need_defaults=false;;
46360   --header | --heade | --head | --hea )
46361     $ac_shift
46362     case $ac_optarg in
46363     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46364     esac
46365     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46366     ac_need_defaults=false;;
46367   --he | --h)
46368     # Conflict between --help and --header
46369     { $as_echo "$as_me: error: ambiguous option: $1
46370 Try \`$0 --help' for more information." >&2
46371    { (exit 1); exit 1; }; };;
46372   --help | --hel | -h )
46373     $as_echo "$ac_cs_usage"; exit ;;
46374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46375   | -silent | --silent | --silen | --sile | --sil | --si | --s)
46376     ac_cs_silent=: ;;
46377
46378   # This is an error.
46379   -*) { $as_echo "$as_me: error: unrecognized option: $1
46380 Try \`$0 --help' for more information." >&2
46381    { (exit 1); exit 1; }; } ;;
46382
46383   *) ac_config_targets="$ac_config_targets $1"
46384      ac_need_defaults=false ;;
46385
46386   esac
46387   shift
46388 done
46389
46390 ac_configure_extra_args=
46391
46392 if $ac_cs_silent; then
46393   exec 6>/dev/null
46394   ac_configure_extra_args="$ac_configure_extra_args --silent"
46395 fi
46396
46397 _ACEOF
46398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46399 if \$ac_cs_recheck; then
46400   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46401   shift
46402   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46403   CONFIG_SHELL='$SHELL'
46404   export CONFIG_SHELL
46405   exec "\$@"
46406 fi
46407
46408 _ACEOF
46409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46410 exec 5>>config.log
46411 {
46412   echo
46413   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46414 ## Running $as_me. ##
46415 _ASBOX
46416   $as_echo "$ac_log"
46417 } >&5
46418
46419 _ACEOF
46420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46421 #
46422 # INIT-COMMANDS
46423 #
46424
46425
46426 # The HP-UX ksh and POSIX shell print the target directory to stdout
46427 # if CDPATH is set.
46428 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46429
46430 sed_quote_subst='$sed_quote_subst'
46431 double_quote_subst='$double_quote_subst'
46432 delay_variable_subst='$delay_variable_subst'
46433 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46434 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46435 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46436 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46437 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46438 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46439 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46440 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46441 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46442 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46443 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46444 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46445 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46446 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46447 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46448 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46449 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46450 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46451 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46452 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46453 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46454 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46455 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46456 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46457 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46458 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46459 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46460 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46461 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46462 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46463 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46464 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46465 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46466 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46467 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46468 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46469 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46470 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46471 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46472 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46473 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46474 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46475 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46476 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46477 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"`'
46478 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"`'
46479 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46480 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46481 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46482 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46483 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46484 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46485 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46486 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46487 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46488 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46489 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46490 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46491 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46492 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46493 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46494 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46495 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46496 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46497 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46498 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46499 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46500 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46501 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46502 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46503 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46504 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46505 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46506 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46507 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46508 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46509 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46510 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46511 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46512 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46513 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46514 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46515 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46516 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46517 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46518 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46519 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46520 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46521 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46522 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46523 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46524 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46525 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46526 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46527 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46528 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46529 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46530 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46531 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46532 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46533 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46534 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46535 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46536 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46537 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46538 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46539 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46540 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46541 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46542 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46543 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46544 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46545 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46546 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46547 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46548 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46549 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46550 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46551 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
46552 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46553 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46554 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
46555 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
46556 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
46557 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46558 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46559 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46560 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46561 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46562 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46563 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46564 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46565 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46566 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46567 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46568 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46569 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46570 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46571 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46572 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46573 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46574 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46575 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46576 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46577 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46578 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46579 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46580 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46581 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46582 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46583 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46584 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46585 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46586 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46587 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46588 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46589 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46590 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46591 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46592 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46593 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46594 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46595 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46596 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46597 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46598 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46599 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46600 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46601 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46602 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46603 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46604
46605 LTCC='$LTCC'
46606 LTCFLAGS='$LTCFLAGS'
46607 compiler='$compiler_DEFAULT'
46608
46609 # Quote evaled strings.
46610 for var in SED \
46611 GREP \
46612 EGREP \
46613 FGREP \
46614 LD \
46615 NM \
46616 LN_S \
46617 lt_SP2NL \
46618 lt_NL2SP \
46619 reload_flag \
46620 OBJDUMP \
46621 deplibs_check_method \
46622 file_magic_cmd \
46623 AR \
46624 AR_FLAGS \
46625 STRIP \
46626 RANLIB \
46627 CC \
46628 CFLAGS \
46629 compiler \
46630 lt_cv_sys_global_symbol_pipe \
46631 lt_cv_sys_global_symbol_to_cdecl \
46632 lt_cv_sys_global_symbol_to_c_name_address \
46633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46634 SHELL \
46635 ECHO \
46636 lt_prog_compiler_no_builtin_flag \
46637 lt_prog_compiler_wl \
46638 lt_prog_compiler_pic \
46639 lt_prog_compiler_static \
46640 lt_cv_prog_compiler_c_o \
46641 need_locks \
46642 DSYMUTIL \
46643 NMEDIT \
46644 LIPO \
46645 OTOOL \
46646 OTOOL64 \
46647 shrext_cmds \
46648 export_dynamic_flag_spec \
46649 whole_archive_flag_spec \
46650 compiler_needs_object \
46651 with_gnu_ld \
46652 allow_undefined_flag \
46653 no_undefined_flag \
46654 hardcode_libdir_flag_spec \
46655 hardcode_libdir_flag_spec_ld \
46656 hardcode_libdir_separator \
46657 fix_srcfile_path \
46658 exclude_expsyms \
46659 include_expsyms \
46660 file_list_spec \
46661 variables_saved_for_relink \
46662 libname_spec \
46663 library_names_spec \
46664 soname_spec \
46665 finish_eval \
46666 old_striplib \
46667 striplib \
46668 compiler_lib_search_dirs \
46669 predep_objects \
46670 postdep_objects \
46671 predeps \
46672 postdeps \
46673 compiler_lib_search_path \
46674 LD_CXX \
46675 compiler_CXX \
46676 lt_prog_compiler_no_builtin_flag_CXX \
46677 lt_prog_compiler_wl_CXX \
46678 lt_prog_compiler_pic_CXX \
46679 lt_prog_compiler_static_CXX \
46680 lt_cv_prog_compiler_c_o_CXX \
46681 export_dynamic_flag_spec_CXX \
46682 whole_archive_flag_spec_CXX \
46683 compiler_needs_object_CXX \
46684 with_gnu_ld_CXX \
46685 allow_undefined_flag_CXX \
46686 no_undefined_flag_CXX \
46687 hardcode_libdir_flag_spec_CXX \
46688 hardcode_libdir_flag_spec_ld_CXX \
46689 hardcode_libdir_separator_CXX \
46690 fix_srcfile_path_CXX \
46691 exclude_expsyms_CXX \
46692 include_expsyms_CXX \
46693 file_list_spec_CXX \
46694 compiler_lib_search_dirs_CXX \
46695 predep_objects_CXX \
46696 postdep_objects_CXX \
46697 predeps_CXX \
46698 postdeps_CXX \
46699 compiler_lib_search_path_CXX; do
46700     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46701     *[\\\\\\\`\\"\\\$]*)
46702       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46703       ;;
46704     *)
46705       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46706       ;;
46707     esac
46708 done
46709
46710 # Double-quote double-evaled strings.
46711 for var in reload_cmds \
46712 old_postinstall_cmds \
46713 old_postuninstall_cmds \
46714 old_archive_cmds \
46715 extract_expsyms_cmds \
46716 old_archive_from_new_cmds \
46717 old_archive_from_expsyms_cmds \
46718 archive_cmds \
46719 archive_expsym_cmds \
46720 module_cmds \
46721 module_expsym_cmds \
46722 export_symbols_cmds \
46723 prelink_cmds \
46724 postinstall_cmds \
46725 postuninstall_cmds \
46726 finish_cmds \
46727 sys_lib_search_path_spec \
46728 sys_lib_dlsearch_path_spec \
46729 old_archive_cmds_CXX \
46730 old_archive_from_new_cmds_CXX \
46731 old_archive_from_expsyms_cmds_CXX \
46732 archive_cmds_CXX \
46733 archive_expsym_cmds_CXX \
46734 module_cmds_CXX \
46735 module_expsym_cmds_CXX \
46736 export_symbols_cmds_CXX \
46737 prelink_cmds_CXX; do
46738     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46739     *[\\\\\\\`\\"\\\$]*)
46740       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46741       ;;
46742     *)
46743       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46744       ;;
46745     esac
46746 done
46747
46748 # Fix-up fallback echo if it was mangled by the above quoting rules.
46749 case \$lt_ECHO in
46750 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46751   ;;
46752 esac
46753
46754 ac_aux_dir='$ac_aux_dir'
46755 xsi_shell='$xsi_shell'
46756 lt_shell_append='$lt_shell_append'
46757
46758 # See if we are running on zsh, and set the options which allow our
46759 # commands through without removal of \ escapes INIT.
46760 if test -n "\${ZSH_VERSION+set}" ; then
46761    setopt NO_GLOB_SUBST
46762 fi
46763
46764
46765     PACKAGE='$PACKAGE'
46766     VERSION='$VERSION'
46767     TIMESTAMP='$TIMESTAMP'
46768     RM='$RM'
46769     ofile='$ofile'
46770
46771
46772
46773
46774
46775 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
46776     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
46777     # from automake.
46778     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
46779     # Capture the value of LINGUAS because we need it to compute CATALOGS.
46780     LINGUAS="${LINGUAS-%UNSET%}"
46781
46782
46783 _ACEOF
46784
46785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46786
46787 # Handling of arguments.
46788 for ac_config_target in $ac_config_targets
46789 do
46790   case $ac_config_target in
46791     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
46792     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46793     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
46794     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
46795     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46796     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
46797     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
46798     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
46799     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
46800     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
46801     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
46802     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
46803     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
46804     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
46805     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
46806     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
46807     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
46808     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
46809     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46810     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
46811     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
46812     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
46813     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
46814     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
46815     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
46816     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
46817     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
46818     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
46819     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
46820     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
46821     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
46822     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
46823     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
46824     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
46825     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
46826     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
46827     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
46828     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
46829     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
46830     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
46831     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
46832     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46833     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
46834     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
46835     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
46836     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
46837     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
46838     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
46839     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
46840     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
46841     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
46842     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
46843     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
46844     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
46845     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
46846     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
46847     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
46848     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
46849     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
46850     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
46851     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
46852     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
46853     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
46854     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
46855     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
46856     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
46857     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
46858     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
46859     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
46860     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
46861     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
46862     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
46863     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
46864     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
46865     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
46866     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
46867     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
46868     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
46869     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
46870     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
46871     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
46872     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
46873     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
46874     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
46875     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
46876     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
46877     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
46878     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
46879     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
46880     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
46881     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
46882     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
46883     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
46884     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
46885     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
46886     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
46887     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
46888     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
46889     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
46890     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
46891     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
46892     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
46893     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
46894     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
46895     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
46896     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
46897     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
46898     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
46899     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
46900     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
46901     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
46902     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
46903
46904   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46905 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46906    { (exit 1); exit 1; }; };;
46907   esac
46908 done
46909
46910
46911 # If the user did not use the arguments to specify the items to instantiate,
46912 # then the envvar interface is used.  Set only those that are not.
46913 # We use the long form for the default assignment because of an extremely
46914 # bizarre bug on SunOS 4.1.3.
46915 if $ac_need_defaults; then
46916   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46917   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46918   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46919 fi
46920
46921 # Have a temporary directory for convenience.  Make it in the build tree
46922 # simply because there is no reason against having it here, and in addition,
46923 # creating and moving files from /tmp can sometimes cause problems.
46924 # Hook for its removal unless debugging.
46925 # Note that there is a small window in which the directory will not be cleaned:
46926 # after its creation but before its name has been assigned to `$tmp'.
46927 $debug ||
46928 {
46929   tmp=
46930   trap 'exit_status=$?
46931   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
46932 ' 0
46933   trap '{ (exit 1); exit 1; }' 1 2 13 15
46934 }
46935 # Create a (secure) tmp directory for tmp files.
46936
46937 {
46938   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46939   test -n "$tmp" && test -d "$tmp"
46940 }  ||
46941 {
46942   tmp=./conf$$-$RANDOM
46943   (umask 077 && mkdir "$tmp")
46944 } ||
46945 {
46946    $as_echo "$as_me: cannot create a temporary directory in ." >&2
46947    { (exit 1); exit 1; }
46948 }
46949
46950 # Set up the scripts for CONFIG_FILES section.
46951 # No need to generate them if there are no CONFIG_FILES.
46952 # This happens for instance with `./config.status config.h'.
46953 if test -n "$CONFIG_FILES"; then
46954
46955 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
46956   ac_cs_awk_getline=:
46957   ac_cs_awk_pipe_init=
46958   ac_cs_awk_read_file='
46959       while ((getline aline < (F[key])) > 0)
46960         print(aline)
46961       close(F[key])'
46962   ac_cs_awk_pipe_fini=
46963 else
46964   ac_cs_awk_getline=false
46965   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
46966   ac_cs_awk_read_file='
46967       print "|#_!!_#|"
46968       print "cat " F[key] " &&"
46969       '$ac_cs_awk_pipe_init
46970   # The final `:' finishes the AND list.
46971   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
46972 fi
46973 ac_cr='\r'
46974 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46976   ac_cs_awk_cr='\\r'
46977 else
46978   ac_cs_awk_cr=$ac_cr
46979 fi
46980
46981 echo 'BEGIN {' >"$tmp/subs1.awk" &&
46982 _ACEOF
46983
46984 # Create commands to substitute file output variables.
46985 {
46986   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
46987   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
46988   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
46989   echo "_ACAWK" &&
46990   echo "_ACEOF"
46991 } >conf$$files.sh &&
46992 . ./conf$$files.sh ||
46993   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46994 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46995    { (exit 1); exit 1; }; }
46996 rm -f conf$$files.sh
46997
46998 {
46999   echo "cat >conf$$subs.awk <<_ACEOF" &&
47000   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47001   echo "_ACEOF"
47002 } >conf$$subs.sh ||
47003   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47004 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47005    { (exit 1); exit 1; }; }
47006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
47007 ac_delim='%!_!# '
47008 for ac_last_try in false false false false false :; do
47009   . ./conf$$subs.sh ||
47010     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47011 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47012    { (exit 1); exit 1; }; }
47013
47014   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47015   if test $ac_delim_n = $ac_delim_num; then
47016     break
47017   elif $ac_last_try; then
47018     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47019 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47020    { (exit 1); exit 1; }; }
47021   else
47022     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47023   fi
47024 done
47025 rm -f conf$$subs.sh
47026
47027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47028 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47029 _ACEOF
47030 sed -n '
47031 h
47032 s/^/S["/; s/!.*/"]=/
47033 p
47034 g
47035 s/^[^!]*!//
47036 :repl
47037 t repl
47038 s/'"$ac_delim"'$//
47039 t delim
47040 :nl
47041 h
47042 s/\(.\{148\}\).*/\1/
47043 t more1
47044 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47045 p
47046 n
47047 b repl
47048 :more1
47049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47050 p
47051 g
47052 s/.\{148\}//
47053 t nl
47054 :delim
47055 h
47056 s/\(.\{148\}\).*/\1/
47057 t more2
47058 s/["\\]/\\&/g; s/^/"/; s/$/"/
47059 p
47060 b
47061 :more2
47062 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47063 p
47064 g
47065 s/.\{148\}//
47066 t delim
47067 ' <conf$$subs.awk | sed '
47068 /^[^""]/{
47069   N
47070   s/\n//
47071 }
47072 ' >>$CONFIG_STATUS || ac_write_fail=1
47073 rm -f conf$$subs.awk
47074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47075 _ACAWK
47076 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
47077   for (key in S) S_is_set[key] = 1
47078   FS = "\a"
47079   \$ac_cs_awk_pipe_init
47080 }
47081 {
47082   line = $ 0
47083   nfields = split(line, field, "@")
47084   substed = 0
47085   len = length(field[1])
47086   for (i = 2; i < nfields; i++) {
47087     key = field[i]
47088     keylen = length(key)
47089     if (S_is_set[key]) {
47090       value = S[key]
47091       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47092       len += length(value) + length(field[++i])
47093       substed = 1
47094     } else
47095       len += 1 + keylen
47096   }
47097   if (nfields == 3 && !substed) {
47098     key = field[2]
47099     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
47100       \$ac_cs_awk_read_file
47101       next
47102     }
47103   }
47104   print line
47105 }
47106 \$ac_cs_awk_pipe_fini
47107 _ACAWK
47108 _ACEOF
47109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47110 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47111   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47112 else
47113   cat
47114 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47115   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47116 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
47117    { (exit 1); exit 1; }; }
47118 _ACEOF
47119
47120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
47121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47122 # trailing colons and then remove the whole line if VPATH becomes empty
47123 # (actually we leave an empty line to preserve line numbers).
47124 if test "x$srcdir" = x.; then
47125   ac_vpsub='/^[  ]*VPATH[        ]*=/{
47126 s/:*\$(srcdir):*/:/
47127 s/:*\${srcdir}:*/:/
47128 s/:*@srcdir@:*/:/
47129 s/^\([^=]*=[     ]*\):*/\1/
47130 s/:*$//
47131 s/^[^=]*=[       ]*$//
47132 }'
47133 fi
47134
47135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47136 fi # test -n "$CONFIG_FILES"
47137
47138 # Set up the scripts for CONFIG_HEADERS section.
47139 # No need to generate them if there are no CONFIG_HEADERS.
47140 # This happens for instance with `./config.status Makefile'.
47141 if test -n "$CONFIG_HEADERS"; then
47142 cat >"$tmp/defines.awk" <<\_ACAWK ||
47143 BEGIN {
47144 _ACEOF
47145
47146 # Transform confdefs.h into an awk script `defines.awk', embedded as
47147 # here-document in config.status, that substitutes the proper values into
47148 # config.h.in to produce config.h.
47149
47150 # Create a delimiter string that does not exist in confdefs.h, to ease
47151 # handling of long lines.
47152 ac_delim='%!_!# '
47153 for ac_last_try in false false :; do
47154   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47155   if test -z "$ac_t"; then
47156     break
47157   elif $ac_last_try; then
47158     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47159 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47160    { (exit 1); exit 1; }; }
47161   else
47162     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47163   fi
47164 done
47165
47166 # For the awk script, D is an array of macro values keyed by name,
47167 # likewise P contains macro parameters if any.  Preserve backslash
47168 # newline sequences.
47169
47170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47171 sed -n '
47172 s/.\{148\}/&'"$ac_delim"'/g
47173 t rset
47174 :rset
47175 s/^[     ]*#[    ]*define[       ][      ]*/ /
47176 t def
47177 d
47178 :def
47179 s/\\$//
47180 t bsnl
47181 s/["\\]/\\&/g
47182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47183 D["\1"]=" \3"/p
47184 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
47185 d
47186 :bsnl
47187 s/["\\]/\\&/g
47188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47189 D["\1"]=" \3\\\\\\n"\\/p
47190 t cont
47191 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47192 t cont
47193 d
47194 :cont
47195 n
47196 s/.\{148\}/&'"$ac_delim"'/g
47197 t clear
47198 :clear
47199 s/\\$//
47200 t bsnlc
47201 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47202 d
47203 :bsnlc
47204 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47205 b cont
47206 ' <confdefs.h | sed '
47207 s/'"$ac_delim"'/"\\\
47208 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47209
47210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47211   for (key in D) D_is_set[key] = 1
47212   FS = "\a"
47213 }
47214 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47215   line = \$ 0
47216   split(line, arg, " ")
47217   if (arg[1] == "#") {
47218     defundef = arg[2]
47219     mac1 = arg[3]
47220   } else {
47221     defundef = substr(arg[1], 2)
47222     mac1 = arg[2]
47223   }
47224   split(mac1, mac2, "(") #)
47225   macro = mac2[1]
47226   prefix = substr(line, 1, index(line, defundef) - 1)
47227   if (D_is_set[macro]) {
47228     # Preserve the white space surrounding the "#".
47229     print prefix "define", macro P[macro] D[macro]
47230     next
47231   } else {
47232     # Replace #undef with comments.  This is necessary, for example,
47233     # in the case of _POSIX_SOURCE, which is predefined and required
47234     # on some systems where configure will not decide to define it.
47235     if (defundef == "undef") {
47236       print "/*", prefix defundef, macro, "*/"
47237       next
47238     }
47239   }
47240 }
47241 { print }
47242 _ACAWK
47243 _ACEOF
47244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47245   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47246 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47247    { (exit 1); exit 1; }; }
47248 fi # test -n "$CONFIG_HEADERS"
47249
47250
47251 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47252 shift
47253 for ac_tag
47254 do
47255   case $ac_tag in
47256   :[FHLC]) ac_mode=$ac_tag; continue;;
47257   esac
47258   case $ac_mode$ac_tag in
47259   :[FHL]*:*);;
47260   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47261 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47262    { (exit 1); exit 1; }; };;
47263   :[FH]-) ac_tag=-:-;;
47264   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47265   esac
47266   ac_save_IFS=$IFS
47267   IFS=:
47268   set x $ac_tag
47269   IFS=$ac_save_IFS
47270   shift
47271   ac_file=$1
47272   shift
47273
47274   case $ac_mode in
47275   :L) ac_source=$1;;
47276   :[FH])
47277     ac_file_inputs=
47278     for ac_f
47279     do
47280       case $ac_f in
47281       -) ac_f="$tmp/stdin";;
47282       *) # Look for the file first in the build tree, then in the source tree
47283          # (if the path is not absolute).  The absolute path cannot be DOS-style,
47284          # because $ac_f cannot contain `:'.
47285          test -f "$ac_f" ||
47286            case $ac_f in
47287            [\\/$]*) false;;
47288            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47289            esac ||
47290            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47291 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47292    { (exit 1); exit 1; }; };;
47293       esac
47294       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47295       ac_file_inputs="$ac_file_inputs '$ac_f'"
47296     done
47297
47298     # Let's still pretend it is `configure' which instantiates (i.e., don't
47299     # use $as_me), people would be surprised to read:
47300     #    /* config.h.  Generated by config.status.  */
47301     configure_input='Generated from '`
47302           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47303         `' by configure.'
47304     if test x"$ac_file" != x-; then
47305       configure_input="$ac_file.  $configure_input"
47306       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47307 $as_echo "$as_me: creating $ac_file" >&6;}
47308     fi
47309     # Neutralize special characters interpreted by sed in replacement strings.
47310     case $configure_input in #(
47311     *\&* | *\|* | *\\* )
47312        ac_sed_conf_input=`$as_echo "$configure_input" |
47313        sed 's/[\\\\&|]/\\\\&/g'`;; #(
47314     *) ac_sed_conf_input=$configure_input;;
47315     esac
47316
47317     case $ac_tag in
47318     *:-:* | *:-) cat >"$tmp/stdin" \
47319       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47321    { (exit 1); exit 1; }; } ;;
47322     esac
47323     ;;
47324   esac
47325
47326   ac_dir=`$as_dirname -- "$ac_file" ||
47327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47328          X"$ac_file" : 'X\(//\)[^/]' \| \
47329          X"$ac_file" : 'X\(//\)$' \| \
47330          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47331 $as_echo X"$ac_file" |
47332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47333             s//\1/
47334             q
47335           }
47336           /^X\(\/\/\)[^/].*/{
47337             s//\1/
47338             q
47339           }
47340           /^X\(\/\/\)$/{
47341             s//\1/
47342             q
47343           }
47344           /^X\(\/\).*/{
47345             s//\1/
47346             q
47347           }
47348           s/.*/./; q'`
47349   { as_dir="$ac_dir"
47350   case $as_dir in #(
47351   -*) as_dir=./$as_dir;;
47352   esac
47353   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47354     as_dirs=
47355     while :; do
47356       case $as_dir in #(
47357       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47358       *) as_qdir=$as_dir;;
47359       esac
47360       as_dirs="'$as_qdir' $as_dirs"
47361       as_dir=`$as_dirname -- "$as_dir" ||
47362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47363          X"$as_dir" : 'X\(//\)[^/]' \| \
47364          X"$as_dir" : 'X\(//\)$' \| \
47365          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47366 $as_echo X"$as_dir" |
47367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47368             s//\1/
47369             q
47370           }
47371           /^X\(\/\/\)[^/].*/{
47372             s//\1/
47373             q
47374           }
47375           /^X\(\/\/\)$/{
47376             s//\1/
47377             q
47378           }
47379           /^X\(\/\).*/{
47380             s//\1/
47381             q
47382           }
47383           s/.*/./; q'`
47384       test -d "$as_dir" && break
47385     done
47386     test -z "$as_dirs" || eval "mkdir $as_dirs"
47387   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47388 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47389    { (exit 1); exit 1; }; }; }
47390   ac_builddir=.
47391
47392 case "$ac_dir" in
47393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47394 *)
47395   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47396   # A ".." for each directory in $ac_dir_suffix.
47397   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47398   case $ac_top_builddir_sub in
47399   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47400   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47401   esac ;;
47402 esac
47403 ac_abs_top_builddir=$ac_pwd
47404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47405 # for backward compatibility:
47406 ac_top_builddir=$ac_top_build_prefix
47407
47408 case $srcdir in
47409   .)  # We are building in place.
47410     ac_srcdir=.
47411     ac_top_srcdir=$ac_top_builddir_sub
47412     ac_abs_top_srcdir=$ac_pwd ;;
47413   [\\/]* | ?:[\\/]* )  # Absolute name.
47414     ac_srcdir=$srcdir$ac_dir_suffix;
47415     ac_top_srcdir=$srcdir
47416     ac_abs_top_srcdir=$srcdir ;;
47417   *) # Relative name.
47418     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47419     ac_top_srcdir=$ac_top_build_prefix$srcdir
47420     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47421 esac
47422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47423
47424
47425   case $ac_mode in
47426   :F)
47427   #
47428   # CONFIG_FILE
47429   #
47430
47431   case $INSTALL in
47432   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47433   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47434   esac
47435 _ACEOF
47436
47437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47438 # If the template does not know about datarootdir, expand it.
47439 # FIXME: This hack should be removed a few years after 2.60.
47440 ac_datarootdir_hack=; ac_datarootdir_seen=
47441
47442 ac_sed_dataroot='
47443 /datarootdir/ {
47444   p
47445   q
47446 }
47447 /@datadir@/p
47448 /@docdir@/p
47449 /@infodir@/p
47450 /@localedir@/p
47451 /@mandir@/p
47452 '
47453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47454 *datarootdir*) ac_datarootdir_seen=yes;;
47455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47456   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47458 _ACEOF
47459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47460   ac_datarootdir_hack='
47461   s&@datadir@&$datadir&g
47462   s&@docdir@&$docdir&g
47463   s&@infodir@&$infodir&g
47464   s&@localedir@&$localedir&g
47465   s&@mandir@&$mandir&g
47466     s&\\\${datarootdir}&$datarootdir&g' ;;
47467 esac
47468 _ACEOF
47469
47470 # Neutralize VPATH when `$srcdir' = `.'.
47471 # Shell code in configure.ac might set extrasub.
47472 # FIXME: do we really want to maintain this feature?
47473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47474 ac_sed_extra="$ac_vpsub
47475 $extrasub
47476 _ACEOF
47477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47478 :t
47479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47480 s|@configure_input@|$ac_sed_conf_input|;t t
47481 s&@top_builddir@&$ac_top_builddir_sub&;t t
47482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47483 s&@srcdir@&$ac_srcdir&;t t
47484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47485 s&@top_srcdir@&$ac_top_srcdir&;t t
47486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47487 s&@builddir@&$ac_builddir&;t t
47488 s&@abs_builddir@&$ac_abs_builddir&;t t
47489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47490 s&@INSTALL@&$ac_INSTALL&;t t
47491 $ac_datarootdir_hack
47492 "
47493 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
47494 if $ac_cs_awk_getline; then
47495   $AWK -f "$tmp/subs.awk"
47496 else
47497   $AWK -f "$tmp/subs.awk" | $SHELL
47498 fi >$tmp/out \
47499   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47500 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47501    { (exit 1); exit 1; }; }
47502
47503 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47504   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47505   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47506   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47507 which seems to be undefined.  Please make sure it is defined." >&5
47508 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47509 which seems to be undefined.  Please make sure it is defined." >&2;}
47510
47511   rm -f "$tmp/stdin"
47512   case $ac_file in
47513   -) cat "$tmp/out" && rm -f "$tmp/out";;
47514   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47515   esac \
47516   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47518    { (exit 1); exit 1; }; }
47519  ;;
47520   :H)
47521   #
47522   # CONFIG_HEADER
47523   #
47524   if test x"$ac_file" != x-; then
47525     {
47526       $as_echo "/* $configure_input  */" \
47527       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47528     } >"$tmp/config.h" \
47529       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47530 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47531    { (exit 1); exit 1; }; }
47532     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47533       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47535     else
47536       rm -f "$ac_file"
47537       mv "$tmp/config.h" "$ac_file" \
47538         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47539 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47540    { (exit 1); exit 1; }; }
47541     fi
47542   else
47543     $as_echo "/* $configure_input  */" \
47544       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47545       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47546 $as_echo "$as_me: error: could not create -" >&2;}
47547    { (exit 1); exit 1; }; }
47548   fi
47549  ;;
47550
47551   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47552 $as_echo "$as_me: executing $ac_file commands" >&6;}
47553  ;;
47554   esac
47555
47556
47557   case $ac_file$ac_mode in
47558     "libtool":C)
47559
47560     # See if we are running on zsh, and set the options which allow our
47561     # commands through without removal of \ escapes.
47562     if test -n "${ZSH_VERSION+set}" ; then
47563       setopt NO_GLOB_SUBST
47564     fi
47565
47566     cfgfile="${ofile}T"
47567     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47568     $RM "$cfgfile"
47569
47570     cat <<_LT_EOF >> "$cfgfile"
47571 #! $SHELL
47572
47573 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47574 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47576 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47577 #
47578 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47579 #                 2006, 2007, 2008 Free Software Foundation, Inc.
47580 #   Written by Gordon Matzigkeit, 1996
47581 #
47582 #   This file is part of GNU Libtool.
47583 #
47584 # GNU Libtool is free software; you can redistribute it and/or
47585 # modify it under the terms of the GNU General Public License as
47586 # published by the Free Software Foundation; either version 2 of
47587 # the License, or (at your option) any later version.
47588 #
47589 # As a special exception to the GNU General Public License,
47590 # if you distribute this file as part of a program or library that
47591 # is built using GNU Libtool, you may include this file under the
47592 # same distribution terms that you use for the rest of that program.
47593 #
47594 # GNU Libtool is distributed in the hope that it will be useful,
47595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47597 # GNU General Public License for more details.
47598 #
47599 # You should have received a copy of the GNU General Public License
47600 # along with GNU Libtool; see the file COPYING.  If not, a copy
47601 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47602 # obtained by writing to the Free Software Foundation, Inc.,
47603 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47604
47605
47606 # The names of the tagged configurations supported by this script.
47607 available_tags="CXX "
47608
47609 # ### BEGIN LIBTOOL CONFIG
47610
47611 # Which release of libtool.m4 was used?
47612 macro_version=$macro_version
47613 macro_revision=$macro_revision
47614
47615 # Whether or not to build shared libraries.
47616 build_libtool_libs=$enable_shared
47617
47618 # Whether or not to build static libraries.
47619 build_old_libs=$enable_static
47620
47621 # What type of objects to build.
47622 pic_mode=$pic_mode
47623
47624 # Whether or not to optimize for fast installation.
47625 fast_install=$enable_fast_install
47626
47627 # The host system.
47628 host_alias=$host_alias
47629 host=$host
47630 host_os=$host_os
47631
47632 # The build system.
47633 build_alias=$build_alias
47634 build=$build
47635 build_os=$build_os
47636
47637 # A sed program that does not truncate output.
47638 SED=$lt_SED
47639
47640 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47641 Xsed="\$SED -e 1s/^X//"
47642
47643 # A grep program that handles long lines.
47644 GREP=$lt_GREP
47645
47646 # An ERE matcher.
47647 EGREP=$lt_EGREP
47648
47649 # A literal string matcher.
47650 FGREP=$lt_FGREP
47651
47652 # A BSD- or MS-compatible name lister.
47653 NM=$lt_NM
47654
47655 # Whether we need soft or hard links.
47656 LN_S=$lt_LN_S
47657
47658 # What is the maximum length of a command?
47659 max_cmd_len=$max_cmd_len
47660
47661 # Object file suffix (normally "o").
47662 objext=$ac_objext
47663
47664 # Executable file suffix (normally "").
47665 exeext=$exeext
47666
47667 # whether the shell understands "unset".
47668 lt_unset=$lt_unset
47669
47670 # turn spaces into newlines.
47671 SP2NL=$lt_lt_SP2NL
47672
47673 # turn newlines into spaces.
47674 NL2SP=$lt_lt_NL2SP
47675
47676 # How to create reloadable object files.
47677 reload_flag=$lt_reload_flag
47678 reload_cmds=$lt_reload_cmds
47679
47680 # An object symbol dumper.
47681 OBJDUMP=$lt_OBJDUMP
47682
47683 # Method to check whether dependent libraries are shared objects.
47684 deplibs_check_method=$lt_deplibs_check_method
47685
47686 # Command to use when deplibs_check_method == "file_magic".
47687 file_magic_cmd=$lt_file_magic_cmd
47688
47689 # The archiver.
47690 AR=$lt_AR
47691 AR_FLAGS=$lt_AR_FLAGS
47692
47693 # A symbol stripping program.
47694 STRIP=$lt_STRIP
47695
47696 # Commands used to install an old-style archive.
47697 RANLIB=$lt_RANLIB
47698 old_postinstall_cmds=$lt_old_postinstall_cmds
47699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47700
47701 # A C compiler.
47702 LTCC=$lt_CC
47703
47704 # LTCC compiler flags.
47705 LTCFLAGS=$lt_CFLAGS
47706
47707 # Take the output of nm and produce a listing of raw symbols and C names.
47708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47709
47710 # Transform the output of nm in a proper C declaration.
47711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47712
47713 # Transform the output of nm in a C name address pair.
47714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47715
47716 # Transform the output of nm in a C name address pair when lib prefix is needed.
47717 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47718
47719 # The name of the directory that contains temporary libtool files.
47720 objdir=$objdir
47721
47722 # Shell to use when invoking shell scripts.
47723 SHELL=$lt_SHELL
47724
47725 # An echo program that does not interpret backslashes.
47726 ECHO=$lt_ECHO
47727
47728 # Used to examine libraries when file_magic_cmd begins with "file".
47729 MAGIC_CMD=$MAGIC_CMD
47730
47731 # Must we lock files when doing compilation?
47732 need_locks=$lt_need_locks
47733
47734 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47735 DSYMUTIL=$lt_DSYMUTIL
47736
47737 # Tool to change global to local symbols on Mac OS X.
47738 NMEDIT=$lt_NMEDIT
47739
47740 # Tool to manipulate fat objects and archives on Mac OS X.
47741 LIPO=$lt_LIPO
47742
47743 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47744 OTOOL=$lt_OTOOL
47745
47746 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47747 OTOOL64=$lt_OTOOL64
47748
47749 # Old archive suffix (normally "a").
47750 libext=$libext
47751
47752 # Shared library suffix (normally ".so").
47753 shrext_cmds=$lt_shrext_cmds
47754
47755 # The commands to extract the exported symbol list from a shared archive.
47756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47757
47758 # Variables whose values should be saved in libtool wrapper scripts and
47759 # restored at link time.
47760 variables_saved_for_relink=$lt_variables_saved_for_relink
47761
47762 # Do we need the "lib" prefix for modules?
47763 need_lib_prefix=$need_lib_prefix
47764
47765 # Do we need a version for libraries?
47766 need_version=$need_version
47767
47768 # Library versioning type.
47769 version_type=$version_type
47770
47771 # Shared library runtime path variable.
47772 runpath_var=$runpath_var
47773
47774 # Shared library path variable.
47775 shlibpath_var=$shlibpath_var
47776
47777 # Is shlibpath searched before the hard-coded library search path?
47778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47779
47780 # Format of library name prefix.
47781 libname_spec=$lt_libname_spec
47782
47783 # List of archive names.  First name is the real one, the rest are links.
47784 # The last name is the one that the linker finds with -lNAME
47785 library_names_spec=$lt_library_names_spec
47786
47787 # The coded name of the library, if different from the real name.
47788 soname_spec=$lt_soname_spec
47789
47790 # Command to use after installation of a shared archive.
47791 postinstall_cmds=$lt_postinstall_cmds
47792
47793 # Command to use after uninstallation of a shared archive.
47794 postuninstall_cmds=$lt_postuninstall_cmds
47795
47796 # Commands used to finish a libtool library installation in a directory.
47797 finish_cmds=$lt_finish_cmds
47798
47799 # As "finish_cmds", except a single script fragment to be evaled but
47800 # not shown.
47801 finish_eval=$lt_finish_eval
47802
47803 # Whether we should hardcode library paths into libraries.
47804 hardcode_into_libs=$hardcode_into_libs
47805
47806 # Compile-time system search path for libraries.
47807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47808
47809 # Run-time system search path for libraries.
47810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47811
47812 # Whether dlopen is supported.
47813 dlopen_support=$enable_dlopen
47814
47815 # Whether dlopen of programs is supported.
47816 dlopen_self=$enable_dlopen_self
47817
47818 # Whether dlopen of statically linked programs is supported.
47819 dlopen_self_static=$enable_dlopen_self_static
47820
47821 # Commands to strip libraries.
47822 old_striplib=$lt_old_striplib
47823 striplib=$lt_striplib
47824
47825
47826 # The linker used to build libraries.
47827 LD=$lt_LD
47828
47829 # Commands used to build an old-style archive.
47830 old_archive_cmds=$lt_old_archive_cmds
47831
47832 # A language specific compiler.
47833 CC=$lt_compiler
47834
47835 # Is the compiler the GNU compiler?
47836 with_gcc=$GCC
47837
47838 # Compiler flag to turn off builtin functions.
47839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47840
47841 # How to pass a linker flag through the compiler.
47842 wl=$lt_lt_prog_compiler_wl
47843
47844 # Additional compiler flags for building library objects.
47845 pic_flag=$lt_lt_prog_compiler_pic
47846
47847 # Compiler flag to prevent dynamic linking.
47848 link_static_flag=$lt_lt_prog_compiler_static
47849
47850 # Does compiler simultaneously support -c and -o options?
47851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47852
47853 # Whether or not to add -lc for building shared libraries.
47854 build_libtool_need_lc=$archive_cmds_need_lc
47855
47856 # Whether or not to disallow shared libs when runtime libs are static.
47857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47858
47859 # Compiler flag to allow reflexive dlopens.
47860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47861
47862 # Compiler flag to generate shared objects directly from archives.
47863 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47864
47865 # Whether the compiler copes with passing no objects directly.
47866 compiler_needs_object=$lt_compiler_needs_object
47867
47868 # Create an old-style archive from a shared archive.
47869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47870
47871 # Create a temporary old-style archive to link instead of a shared archive.
47872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47873
47874 # Commands used to build a shared archive.
47875 archive_cmds=$lt_archive_cmds
47876 archive_expsym_cmds=$lt_archive_expsym_cmds
47877
47878 # Commands used to build a loadable module if different from building
47879 # a shared archive.
47880 module_cmds=$lt_module_cmds
47881 module_expsym_cmds=$lt_module_expsym_cmds
47882
47883 # Whether we are building with GNU ld or not.
47884 with_gnu_ld=$lt_with_gnu_ld
47885
47886 # Flag that allows shared libraries with undefined symbols to be built.
47887 allow_undefined_flag=$lt_allow_undefined_flag
47888
47889 # Flag that enforces no undefined symbols.
47890 no_undefined_flag=$lt_no_undefined_flag
47891
47892 # Flag to hardcode \$libdir into a binary during linking.
47893 # This must work even if \$libdir does not exist
47894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47895
47896 # If ld is used when linking, flag to hardcode \$libdir into a binary
47897 # during linking.  This must work even if \$libdir does not exist.
47898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47899
47900 # Whether we need a single "-rpath" flag with a separated argument.
47901 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47902
47903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47904 # DIR into the resulting binary.
47905 hardcode_direct=$hardcode_direct
47906
47907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47908 # DIR into the resulting binary and the resulting library dependency is
47909 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47910 # library is relocated.
47911 hardcode_direct_absolute=$hardcode_direct_absolute
47912
47913 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47914 # into the resulting binary.
47915 hardcode_minus_L=$hardcode_minus_L
47916
47917 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47918 # into the resulting binary.
47919 hardcode_shlibpath_var=$hardcode_shlibpath_var
47920
47921 # Set to "yes" if building a shared library automatically hardcodes DIR
47922 # into the library and all subsequent libraries and executables linked
47923 # against it.
47924 hardcode_automatic=$hardcode_automatic
47925
47926 # Set to yes if linker adds runtime paths of dependent libraries
47927 # to runtime path list.
47928 inherit_rpath=$inherit_rpath
47929
47930 # Whether libtool must link a program against all its dependency libraries.
47931 link_all_deplibs=$link_all_deplibs
47932
47933 # Fix the shell variable \$srcfile for the compiler.
47934 fix_srcfile_path=$lt_fix_srcfile_path
47935
47936 # Set to "yes" if exported symbols are required.
47937 always_export_symbols=$always_export_symbols
47938
47939 # The commands to list exported symbols.
47940 export_symbols_cmds=$lt_export_symbols_cmds
47941
47942 # Symbols that should not be listed in the preloaded symbols.
47943 exclude_expsyms=$lt_exclude_expsyms
47944
47945 # Symbols that must always be exported.
47946 include_expsyms=$lt_include_expsyms
47947
47948 # Commands necessary for linking programs (against libraries) with templates.
47949 prelink_cmds=$lt_prelink_cmds
47950
47951 # Specify filename containing input files.
47952 file_list_spec=$lt_file_list_spec
47953
47954 # How to hardcode a shared library path into an executable.
47955 hardcode_action=$hardcode_action
47956
47957 # The directories searched by this compiler when creating a shared library.
47958 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
47959
47960 # Dependencies to place before and after the objects being linked to
47961 # create a shared library.
47962 predep_objects=$lt_predep_objects
47963 postdep_objects=$lt_postdep_objects
47964 predeps=$lt_predeps
47965 postdeps=$lt_postdeps
47966
47967 # The library search path used internally by the compiler when linking
47968 # a shared library.
47969 compiler_lib_search_path=$lt_compiler_lib_search_path
47970
47971 # ### END LIBTOOL CONFIG
47972
47973 _LT_EOF
47974
47975   case $host_os in
47976   aix3*)
47977     cat <<\_LT_EOF >> "$cfgfile"
47978 # AIX sometimes has problems with the GCC collect2 program.  For some
47979 # reason, if we set the COLLECT_NAMES environment variable, the problems
47980 # vanish in a puff of smoke.
47981 if test "X${COLLECT_NAMES+set}" != Xset; then
47982   COLLECT_NAMES=
47983   export COLLECT_NAMES
47984 fi
47985 _LT_EOF
47986     ;;
47987   esac
47988
47989
47990 ltmain="$ac_aux_dir/ltmain.sh"
47991
47992
47993   # We use sed instead of cat because bash on DJGPP gets confused if
47994   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47995   # text mode, it properly converts lines to CR/LF.  This bash problem
47996   # is reportedly fixed, but why not run on old versions too?
47997   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47998     || (rm -f "$cfgfile"; exit 1)
47999
48000   case $xsi_shell in
48001   yes)
48002     cat << \_LT_EOF >> "$cfgfile"
48003
48004 # func_dirname file append nondir_replacement
48005 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
48006 # otherwise set result to NONDIR_REPLACEMENT.
48007 func_dirname ()
48008 {
48009   case ${1} in
48010     */*) func_dirname_result="${1%/*}${2}" ;;
48011     *  ) func_dirname_result="${3}" ;;
48012   esac
48013 }
48014
48015 # func_basename file
48016 func_basename ()
48017 {
48018   func_basename_result="${1##*/}"
48019 }
48020
48021 # func_dirname_and_basename file append nondir_replacement
48022 # perform func_basename and func_dirname in a single function
48023 # call:
48024 #   dirname:  Compute the dirname of FILE.  If nonempty,
48025 #             add APPEND to the result, otherwise set result
48026 #             to NONDIR_REPLACEMENT.
48027 #             value returned in "$func_dirname_result"
48028 #   basename: Compute filename of FILE.
48029 #             value retuned in "$func_basename_result"
48030 # Implementation must be kept synchronized with func_dirname
48031 # and func_basename. For efficiency, we do not delegate to
48032 # those functions but instead duplicate the functionality here.
48033 func_dirname_and_basename ()
48034 {
48035   case ${1} in
48036     */*) func_dirname_result="${1%/*}${2}" ;;
48037     *  ) func_dirname_result="${3}" ;;
48038   esac
48039   func_basename_result="${1##*/}"
48040 }
48041
48042 # func_stripname prefix suffix name
48043 # strip PREFIX and SUFFIX off of NAME.
48044 # PREFIX and SUFFIX must not contain globbing or regex special
48045 # characters, hashes, percent signs, but SUFFIX may contain a leading
48046 # dot (in which case that matches only a dot).
48047 func_stripname ()
48048 {
48049   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48050   # positional parameters, so assign one to ordinary parameter first.
48051   func_stripname_result=${3}
48052   func_stripname_result=${func_stripname_result#"${1}"}
48053   func_stripname_result=${func_stripname_result%"${2}"}
48054 }
48055
48056 # func_opt_split
48057 func_opt_split ()
48058 {
48059   func_opt_split_opt=${1%%=*}
48060   func_opt_split_arg=${1#*=}
48061 }
48062
48063 # func_lo2o object
48064 func_lo2o ()
48065 {
48066   case ${1} in
48067     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
48068     *)    func_lo2o_result=${1} ;;
48069   esac
48070 }
48071
48072 # func_xform libobj-or-source
48073 func_xform ()
48074 {
48075   func_xform_result=${1%.*}.lo
48076 }
48077
48078 # func_arith arithmetic-term...
48079 func_arith ()
48080 {
48081   func_arith_result=$(( $* ))
48082 }
48083
48084 # func_len string
48085 # STRING may not start with a hyphen.
48086 func_len ()
48087 {
48088   func_len_result=${#1}
48089 }
48090
48091 _LT_EOF
48092     ;;
48093   *) # Bourne compatible functions.
48094     cat << \_LT_EOF >> "$cfgfile"
48095
48096 # func_dirname file append nondir_replacement
48097 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
48098 # otherwise set result to NONDIR_REPLACEMENT.
48099 func_dirname ()
48100 {
48101   # Extract subdirectory from the argument.
48102   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48103   if test "X$func_dirname_result" = "X${1}"; then
48104     func_dirname_result="${3}"
48105   else
48106     func_dirname_result="$func_dirname_result${2}"
48107   fi
48108 }
48109
48110 # func_basename file
48111 func_basename ()
48112 {
48113   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
48114 }
48115
48116
48117 # func_stripname prefix suffix name
48118 # strip PREFIX and SUFFIX off of NAME.
48119 # PREFIX and SUFFIX must not contain globbing or regex special
48120 # characters, hashes, percent signs, but SUFFIX may contain a leading
48121 # dot (in which case that matches only a dot).
48122 # func_strip_suffix prefix name
48123 func_stripname ()
48124 {
48125   case ${2} in
48126     .*) func_stripname_result=`$ECHO "X${3}" \
48127            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48128     *)  func_stripname_result=`$ECHO "X${3}" \
48129            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48130   esac
48131 }
48132
48133 # sed scripts:
48134 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
48135 my_sed_long_arg='1s/^-[^=]*=//'
48136
48137 # func_opt_split
48138 func_opt_split ()
48139 {
48140   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48141   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48142 }
48143
48144 # func_lo2o object
48145 func_lo2o ()
48146 {
48147   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48148 }
48149
48150 # func_xform libobj-or-source
48151 func_xform ()
48152 {
48153   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48154 }
48155
48156 # func_arith arithmetic-term...
48157 func_arith ()
48158 {
48159   func_arith_result=`expr "$@"`
48160 }
48161
48162 # func_len string
48163 # STRING may not start with a hyphen.
48164 func_len ()
48165 {
48166   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48167 }
48168
48169 _LT_EOF
48170 esac
48171
48172 case $lt_shell_append in
48173   yes)
48174     cat << \_LT_EOF >> "$cfgfile"
48175
48176 # func_append var value
48177 # Append VALUE to the end of shell variable VAR.
48178 func_append ()
48179 {
48180   eval "$1+=\$2"
48181 }
48182 _LT_EOF
48183     ;;
48184   *)
48185     cat << \_LT_EOF >> "$cfgfile"
48186
48187 # func_append var value
48188 # Append VALUE to the end of shell variable VAR.
48189 func_append ()
48190 {
48191   eval "$1=\$$1\$2"
48192 }
48193
48194 _LT_EOF
48195     ;;
48196   esac
48197
48198
48199   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48200     || (rm -f "$cfgfile"; exit 1)
48201
48202   mv -f "$cfgfile" "$ofile" ||
48203     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48204   chmod +x "$ofile"
48205
48206
48207     cat <<_LT_EOF >> "$ofile"
48208
48209 # ### BEGIN LIBTOOL TAG CONFIG: CXX
48210
48211 # The linker used to build libraries.
48212 LD=$lt_LD_CXX
48213
48214 # Commands used to build an old-style archive.
48215 old_archive_cmds=$lt_old_archive_cmds_CXX
48216
48217 # A language specific compiler.
48218 CC=$lt_compiler_CXX
48219
48220 # Is the compiler the GNU compiler?
48221 with_gcc=$GCC_CXX
48222
48223 # Compiler flag to turn off builtin functions.
48224 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48225
48226 # How to pass a linker flag through the compiler.
48227 wl=$lt_lt_prog_compiler_wl_CXX
48228
48229 # Additional compiler flags for building library objects.
48230 pic_flag=$lt_lt_prog_compiler_pic_CXX
48231
48232 # Compiler flag to prevent dynamic linking.
48233 link_static_flag=$lt_lt_prog_compiler_static_CXX
48234
48235 # Does compiler simultaneously support -c and -o options?
48236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48237
48238 # Whether or not to add -lc for building shared libraries.
48239 build_libtool_need_lc=$archive_cmds_need_lc_CXX
48240
48241 # Whether or not to disallow shared libs when runtime libs are static.
48242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48243
48244 # Compiler flag to allow reflexive dlopens.
48245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48246
48247 # Compiler flag to generate shared objects directly from archives.
48248 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48249
48250 # Whether the compiler copes with passing no objects directly.
48251 compiler_needs_object=$lt_compiler_needs_object_CXX
48252
48253 # Create an old-style archive from a shared archive.
48254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48255
48256 # Create a temporary old-style archive to link instead of a shared archive.
48257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48258
48259 # Commands used to build a shared archive.
48260 archive_cmds=$lt_archive_cmds_CXX
48261 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48262
48263 # Commands used to build a loadable module if different from building
48264 # a shared archive.
48265 module_cmds=$lt_module_cmds_CXX
48266 module_expsym_cmds=$lt_module_expsym_cmds_CXX
48267
48268 # Whether we are building with GNU ld or not.
48269 with_gnu_ld=$lt_with_gnu_ld_CXX
48270
48271 # Flag that allows shared libraries with undefined symbols to be built.
48272 allow_undefined_flag=$lt_allow_undefined_flag_CXX
48273
48274 # Flag that enforces no undefined symbols.
48275 no_undefined_flag=$lt_no_undefined_flag_CXX
48276
48277 # Flag to hardcode \$libdir into a binary during linking.
48278 # This must work even if \$libdir does not exist
48279 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48280
48281 # If ld is used when linking, flag to hardcode \$libdir into a binary
48282 # during linking.  This must work even if \$libdir does not exist.
48283 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48284
48285 # Whether we need a single "-rpath" flag with a separated argument.
48286 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48287
48288 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48289 # DIR into the resulting binary.
48290 hardcode_direct=$hardcode_direct_CXX
48291
48292 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48293 # DIR into the resulting binary and the resulting library dependency is
48294 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48295 # library is relocated.
48296 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48297
48298 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48299 # into the resulting binary.
48300 hardcode_minus_L=$hardcode_minus_L_CXX
48301
48302 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48303 # into the resulting binary.
48304 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48305
48306 # Set to "yes" if building a shared library automatically hardcodes DIR
48307 # into the library and all subsequent libraries and executables linked
48308 # against it.
48309 hardcode_automatic=$hardcode_automatic_CXX
48310
48311 # Set to yes if linker adds runtime paths of dependent libraries
48312 # to runtime path list.
48313 inherit_rpath=$inherit_rpath_CXX
48314
48315 # Whether libtool must link a program against all its dependency libraries.
48316 link_all_deplibs=$link_all_deplibs_CXX
48317
48318 # Fix the shell variable \$srcfile for the compiler.
48319 fix_srcfile_path=$lt_fix_srcfile_path_CXX
48320
48321 # Set to "yes" if exported symbols are required.
48322 always_export_symbols=$always_export_symbols_CXX
48323
48324 # The commands to list exported symbols.
48325 export_symbols_cmds=$lt_export_symbols_cmds_CXX
48326
48327 # Symbols that should not be listed in the preloaded symbols.
48328 exclude_expsyms=$lt_exclude_expsyms_CXX
48329
48330 # Symbols that must always be exported.
48331 include_expsyms=$lt_include_expsyms_CXX
48332
48333 # Commands necessary for linking programs (against libraries) with templates.
48334 prelink_cmds=$lt_prelink_cmds_CXX
48335
48336 # Specify filename containing input files.
48337 file_list_spec=$lt_file_list_spec_CXX
48338
48339 # How to hardcode a shared library path into an executable.
48340 hardcode_action=$hardcode_action_CXX
48341
48342 # The directories searched by this compiler when creating a shared library.
48343 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48344
48345 # Dependencies to place before and after the objects being linked to
48346 # create a shared library.
48347 predep_objects=$lt_predep_objects_CXX
48348 postdep_objects=$lt_postdep_objects_CXX
48349 predeps=$lt_predeps_CXX
48350 postdeps=$lt_postdeps_CXX
48351
48352 # The library search path used internally by the compiler when linking
48353 # a shared library.
48354 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48355
48356 # ### END LIBTOOL TAG CONFIG: CXX
48357 _LT_EOF
48358
48359  ;;
48360     "default-1":C)
48361     for ac_file in $CONFIG_FILES; do
48362       # Support "outfile[:infile[:infile...]]"
48363       case "$ac_file" in
48364         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
48365       esac
48366       # PO directories have a Makefile.in generated from Makefile.in.in.
48367       case "$ac_file" in */Makefile.in)
48368         # Adjust a relative srcdir.
48369         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
48370         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
48371         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
48372         # In autoconf-2.13 it is called $ac_given_srcdir.
48373         # In autoconf-2.50 it is called $srcdir.
48374         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
48375         case "$ac_given_srcdir" in
48376           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
48377           /*) top_srcdir="$ac_given_srcdir" ;;
48378           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
48379         esac
48380         # Treat a directory as a PO directory if and only if it has a
48381         # POTFILES.in file. This allows packages to have multiple PO
48382         # directories under different names or in different locations.
48383         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
48384           rm -f "$ac_dir/POTFILES"
48385           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
48386           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
48387           POMAKEFILEDEPS="POTFILES.in"
48388           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
48389           # on $ac_dir but don't depend on user-specified configuration
48390           # parameters.
48391           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
48392             # The LINGUAS file contains the set of available languages.
48393             if test -n "$OBSOLETE_ALL_LINGUAS"; then
48394               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
48395             fi
48396             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
48397             # Hide the ALL_LINGUAS assigment from automake.
48398             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
48399             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
48400           else
48401             # The set of available languages was given in configure.in.
48402             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
48403           fi
48404           # Compute POFILES
48405           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
48406           # Compute UPDATEPOFILES
48407           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
48408           # Compute DUMMYPOFILES
48409           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
48410           # Compute GMOFILES
48411           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
48412           case "$ac_given_srcdir" in
48413             .) srcdirpre= ;;
48414             *) srcdirpre='$(srcdir)/' ;;
48415           esac
48416           POFILES=
48417           UPDATEPOFILES=
48418           DUMMYPOFILES=
48419           GMOFILES=
48420           for lang in $ALL_LINGUAS; do
48421             POFILES="$POFILES $srcdirpre$lang.po"
48422             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
48423             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
48424             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
48425           done
48426           # CATALOGS depends on both $ac_dir and the user's LINGUAS
48427           # environment variable.
48428           INST_LINGUAS=
48429           if test -n "$ALL_LINGUAS"; then
48430             for presentlang in $ALL_LINGUAS; do
48431               useit=no
48432               if test "%UNSET%" != "$LINGUAS"; then
48433                 desiredlanguages="$LINGUAS"
48434               else
48435                 desiredlanguages="$ALL_LINGUAS"
48436               fi
48437               for desiredlang in $desiredlanguages; do
48438                 # Use the presentlang catalog if desiredlang is
48439                 #   a. equal to presentlang, or
48440                 #   b. a variant of presentlang (because in this case,
48441                 #      presentlang can be used as a fallback for messages
48442                 #      which are not translated in the desiredlang catalog).
48443                 case "$desiredlang" in
48444                   "$presentlang"*) useit=yes;;
48445                 esac
48446               done
48447               if test $useit = yes; then
48448                 INST_LINGUAS="$INST_LINGUAS $presentlang"
48449               fi
48450             done
48451           fi
48452           CATALOGS=
48453           if test -n "$INST_LINGUAS"; then
48454             for lang in $INST_LINGUAS; do
48455               CATALOGS="$CATALOGS $lang.gmo"
48456             done
48457           fi
48458           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
48459           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"
48460           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
48461             if test -f "$f"; then
48462               case "$f" in
48463                 *.orig | *.bak | *~) ;;
48464                 *) cat "$f" >> "$ac_dir/Makefile" ;;
48465               esac
48466             fi
48467           done
48468         fi
48469         ;;
48470       esac
48471     done ;;
48472     "default":C)
48473  ;;
48474
48475   esac
48476 done # for ac_tag
48477
48478
48479 { (exit 0); exit 0; }
48480 _ACEOF
48481 chmod +x $CONFIG_STATUS
48482 ac_clean_files=$ac_clean_files_save
48483
48484 test $ac_write_fail = 0 ||
48485   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48486 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48487    { (exit 1); exit 1; }; }
48488
48489
48490 # configure is writing to config.log, and then calls config.status.
48491 # config.status does its own redirection, appending to config.log.
48492 # Unfortunately, on DOS this fails, as config.log is still kept open
48493 # by configure, so config.status won't be able to write to it; its
48494 # output is simply discarded.  So we exec the FD to /dev/null,
48495 # effectively closing config.log, so it can be properly (re)opened and
48496 # appended to by config.status.  When coming back to configure, we
48497 # need to make the FD available again.
48498 if test "$no_create" != yes; then
48499   ac_cs_success=:
48500   ac_config_status_args=
48501   test "$silent" = yes &&
48502     ac_config_status_args="$ac_config_status_args --quiet"
48503   exec 5>/dev/null
48504   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48505   exec 5>>config.log
48506   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48507   # would make configure fail if this is the last instruction.
48508   $ac_cs_success || { (exit 1); exit 1; }
48509 fi
48510 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48511   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48512 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48513 fi
48514
48515
48516 if test "${support_bat}" = "yes" ; then
48517    if test "x$QMAKE" = "xnone"; then
48518       { { $as_echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
48519 $as_echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
48520    { (exit 1); exit 1; }; }
48521    fi
48522
48523    QMAKEBIN="qmake"
48524    cd src/qt-console
48525    echo "Creating bat Makefile"
48526    touch bat
48527    chmod 755 bat
48528    rm -f Makefile
48529    $QMAKEBIN
48530    ${MAKE:-make} clean
48531    cd ${BUILD_DIR}
48532 fi
48533
48534 if test X"$GCC" = "Xyes" ; then
48535   echo "Doing make of dependencies"
48536   ${MAKE:-make} depend
48537 fi
48538
48539 cd src/qt-console
48540 chmod 755 install_conf_file build-depkgs-qt-console
48541 cd ${BUILD_DIR}
48542
48543 cd scripts
48544 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
48545 chmod 755 dvd-handler dvd-simulator
48546 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
48547 cd ..
48548
48549 c=updatedb
48550 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
48551 chmod 755 $c/update_postgresql_tables_10_to_11
48552
48553
48554 c=src/cats
48555
48556 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
48557 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
48558
48559 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
48560 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
48561
48562 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
48563 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
48564
48565 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
48566 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
48567
48568 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
48569 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
48570
48571
48572 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
48573 chmod 755 $c/sqlite
48574 chmod 755 $c/mysql
48575
48576 chmod 755 src/win32/build-depkgs-mingw32
48577
48578 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
48579    largefile_support="yes"
48580 fi
48581
48582 if test X"$GCC" = "Xyes" ; then
48583                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48584    if test "x${CCVERSION}" = "x" ; then
48585       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48586    fi
48587    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48588    if test x"${CXXVERSION}" = x ; then
48589       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48590    fi
48591 fi
48592
48593 # clean up any old junk
48594 echo " "
48595 echo "Cleaning up"
48596 echo " "
48597 ${MAKE:-make} clean
48598
48599 if test "x${db_type}" = "xInternal" ; then
48600    echo " "
48601    echo " "
48602    echo "You have not specified either --enable-client-only or one of the"
48603    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
48604    echo "  This is not permitted. Please reconfigure."
48605    echo " "
48606    echo "Aborting the configuration ..."
48607    echo " "
48608    echo " "
48609    exit 1
48610 fi
48611
48612 echo "
48613 Configuration on `date`:
48614
48615    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
48616    Bacula version:          ${BACULA} ${VERSION} (${DATE})
48617    Source code location:    ${srcdir}
48618    Install binaries:        ${sbindir}
48619    Install libraries:       ${libdir}
48620    Install config files:    ${sysconfdir}
48621    Scripts directory:       ${scriptdir}
48622    Archive directory:       ${archivedir}
48623    Working directory:       ${working_dir}
48624    PID directory:           ${piddir}
48625    Subsys directory:        ${subsysdir}
48626    Man directory:           ${mandir}
48627    Data directory:          ${datarootdir}
48628    Plugin directory:        ${plugindir}
48629    C Compiler:              ${CC} ${CCVERSION}
48630    C++ Compiler:            ${CXX} ${CXXVERSION}
48631    Compiler flags:          ${WCFLAGS} ${CFLAGS}
48632    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
48633    Libraries:               ${LIBS}
48634    Statically Linked Tools: ${support_static_tools}
48635    Statically Linked FD:    ${support_static_fd}
48636    Statically Linked SD:    ${support_static_sd}
48637    Statically Linked DIR:   ${support_static_dir}
48638    Statically Linked CONS:  ${support_static_cons}
48639    Database type:           ${db_type}
48640    Database port:           ${db_port}
48641    Database lib:            ${DB_LIBS}
48642    Database name:           ${db_name}
48643    Database user:           ${db_user}
48644
48645    Job Output Email:        ${job_email}
48646    Traceback Email:         ${dump_email}
48647    SMTP Host Address:       ${smtp_host}
48648
48649    Director Port:           ${dir_port}
48650    File daemon Port:        ${fd_port}
48651    Storage daemon Port:     ${sd_port}
48652
48653    Director User:           ${dir_user}
48654    Director Group:          ${dir_group}
48655    Storage Daemon User:     ${sd_user}
48656    Storage DaemonGroup:     ${sd_group}
48657    File Daemon User:        ${fd_user}
48658    File Daemon Group:       ${fd_group}
48659
48660    SQL binaries Directory   ${SQL_BINDIR}
48661
48662    Large file support:      $largefile_support
48663    Bacula conio support:    ${got_conio} ${CONS_LIBS}
48664    readline support:        ${got_readline} ${PRTREADLINE_SRC}
48665    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
48666    TLS support:             ${support_tls}
48667    Encryption support:      ${support_crypto}
48668    ZLIB support:            ${have_zlib}
48669    enable-smartalloc:       ${support_smartalloc}
48670    enable-lockmgr:          ${support_lockmgr}
48671    bat support:             ${support_bat}
48672    enable-gnome:            ${support_gnome} ${gnome_version}
48673    enable-bwx-console:      ${support_wx_console} ${wx_version}
48674    enable-tray-monitor:     ${support_tray_monitor}
48675    client-only:             ${build_client_only}
48676    build-dird:              ${build_dird}
48677    build-stored:            ${build_stored}
48678    Plugin support:          ${have_plugins}
48679    AFS support:             ${have_afs}
48680    ACL support:             ${have_acl}
48681    XATTR support:           ${have_xattr}
48682    Python support:          ${support_python} ${PYTHON_LIBS}
48683    Batch insert enabled:    ${support_batch_insert}
48684
48685   " > config.out
48686
48687 # create a small shell script useful for support with
48688 # configure options and config.out info
48689 cat > scripts/bacula_config << EOF
48690 #!/bin/sh
48691 cat << __EOC__
48692 $ $0 $ac_configure_args
48693 EOF
48694 cat config.out >> scripts/bacula_config
48695 echo __EOC__ >> scripts/bacula_config
48696 chmod 755 scripts/bacula_config
48697
48698 cat config.out
48699
48700 # Display a warning message if postgresql client lib is <= 8.1
48701 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
48702         -a x$support_batch_insert = xyes
48703 then
48704         echo "WARNING: Your PostgreSQL client library is too old to detect "
48705         echo " if it was compiled with --enable-thread-safety, consider to"
48706         echo " upgrade it in order to avoid problems with Batch insert mode"
48707         echo
48708 fi