]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Merge branch 'upstream'
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for linux nfs-utils 1.2.2.
4 #
5 # Report bugs to <linux-nfs@vger.kernel.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='linux nfs-utils'
747 PACKAGE_TARNAME='nfs-utils'
748 PACKAGE_VERSION='1.2.2'
749 PACKAGE_STRING='linux nfs-utils 1.2.2'
750 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
751
752 ac_default_prefix=/usr
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 #  include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 #  include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_unique_file="support/include/config.h.in"
790 ac_subst_vars='am__EXEEXT_FALSE
791 am__EXEEXT_TRUE
792 LTLIBOBJS
793 ACLOCAL_AMFLAGS
794 AM_CFLAGS
795 LDFLAGS_FOR_BUILD
796 CPPFLAGS_FOR_BUILD
797 CXXFLAGS_FOR_BUILD
798 CFLAGS_FOR_BUILD
799 LIBOBJS
800 ALLOCA
801 K5VERS
802 KRBLDFLAGS
803 KRBCFLAGS
804 KRBLIBS
805 KRBDIR
806 LIBBLKID
807 LIBBSD
808 LIBCRYPT
809 LIBSOCKET
810 RPCSECGSS_LIBS
811 RPCSECGSS_CFLAGS
812 GSSGLUE_LIBS
813 GSSGLUE_CFLAGS
814 PKG_CONFIG
815 LIBNSL
816 CC_FOR_BUILD
817 CXXCPP
818 OTOOL64
819 OTOOL
820 LIPO
821 NMEDIT
822 DSYMUTIL
823 lt_ECHO
824 RANLIB
825 AR
826 OBJDUMP
827 NM
828 ac_ct_DUMPBIN
829 DUMPBIN
830 LD
831 FGREP
832 SED
833 LIBTOOL
834 LN_S
835 am__fastdepCXX_FALSE
836 am__fastdepCXX_TRUE
837 CXXDEPMODE
838 ac_ct_CXX
839 CXXFLAGS
840 CXX
841 HAVE_TCP_WRAPPER
842 HAVE_LIBWRAP
843 LIBWRAP
844 LIBCAP
845 EGREP
846 GREP
847 CPP
848 AM_CPPFLAGS
849 am__fastdepCC_FALSE
850 am__fastdepCC_TRUE
851 CCDEPMODE
852 AMDEPBACKSLASH
853 AMDEP_FALSE
854 AMDEP_TRUE
855 am__quote
856 am__include
857 DEPDIR
858 OBJEXT
859 EXEEXT
860 ac_ct_CC
861 CPPFLAGS
862 LDFLAGS
863 CFLAGS
864 CC
865 MOUNT_CONFIG_FALSE
866 MOUNT_CONFIG_TRUE
867 enable_mountconfig
868 mountfile
869 CONFIG_IPV6_FALSE
870 CONFIG_IPV6_TRUE
871 enable_ipv6
872 CONFIG_MOUNT_FALSE
873 CONFIG_MOUNT_TRUE
874 CONFIG_RPCGEN_FALSE
875 CONFIG_RPCGEN_TRUE
876 RPCGEN_PATH
877 kprefix
878 CONFIG_GSS_FALSE
879 CONFIG_GSS_TRUE
880 enable_gss
881 SVCGSSD
882 GSSD
883 CONFIG_NFSV41_FALSE
884 CONFIG_NFSV41_TRUE
885 enable_nfsv41
886 CONFIG_NFSV4_FALSE
887 CONFIG_NFSV4_TRUE
888 enable_nfsv4
889 IDMAPD
890 enable_nfsv3
891 startstatd
892 statduser
893 statedir
894 RELEASE
895 MAINT
896 MAINTAINER_MODE_FALSE
897 MAINTAINER_MODE_TRUE
898 am__untar
899 am__tar
900 AMTAR
901 am__leading_dot
902 SET_MAKE
903 AWK
904 mkdir_p
905 MKDIR_P
906 INSTALL_STRIP_PROGRAM
907 STRIP
908 install_sh
909 MAKEINFO
910 AUTOHEADER
911 AUTOMAKE
912 AUTOCONF
913 ACLOCAL
914 VERSION
915 PACKAGE
916 CYGPATH_W
917 am__isrc
918 INSTALL_DATA
919 INSTALL_SCRIPT
920 INSTALL_PROGRAM
921 host_os
922 host_vendor
923 host_cpu
924 host
925 build_os
926 build_vendor
927 build_cpu
928 build
929 target_alias
930 host_alias
931 build_alias
932 LIBS
933 ECHO_T
934 ECHO_N
935 ECHO_C
936 DEFS
937 mandir
938 localedir
939 libdir
940 psdir
941 pdfdir
942 dvidir
943 htmldir
944 infodir
945 docdir
946 oldincludedir
947 includedir
948 localstatedir
949 sharedstatedir
950 sysconfdir
951 datadir
952 datarootdir
953 libexecdir
954 sbindir
955 bindir
956 program_transform_name
957 prefix
958 exec_prefix
959 PACKAGE_BUGREPORT
960 PACKAGE_STRING
961 PACKAGE_VERSION
962 PACKAGE_TARNAME
963 PACKAGE_NAME
964 PATH_SEPARATOR
965 SHELL'
966 ac_subst_files=''
967 ac_user_opts='
968 enable_option_checking
969 enable_maintainer_mode
970 with_release
971 with_statedir
972 with_statduser
973 with_start_statd
974 enable_nfsv3
975 enable_nfsv4
976 enable_nfsv41
977 enable_gss
978 enable_kprefix
979 with_rpcgen
980 enable_uuid
981 enable_mount
982 enable_tirpc
983 enable_ipv6
984 enable_mountconfig
985 with_mountfile
986 with_tirpcinclude
987 enable_dependency_tracking
988 with_tcp_wrappers
989 enable_largefile
990 enable_shared
991 enable_static
992 with_pic
993 enable_fast_install
994 with_gnu_ld
995 enable_libtool_lock
996 with_krb5
997 '
998       ac_precious_vars='build_alias
999 host_alias
1000 target_alias
1001 CC
1002 CFLAGS
1003 LDFLAGS
1004 LIBS
1005 CPPFLAGS
1006 CPP
1007 CXX
1008 CXXFLAGS
1009 CCC
1010 CXXCPP
1011 PKG_CONFIG
1012 GSSGLUE_CFLAGS
1013 GSSGLUE_LIBS
1014 RPCSECGSS_CFLAGS
1015 RPCSECGSS_LIBS'
1016
1017
1018 # Initialize some variables set by options.
1019 ac_init_help=
1020 ac_init_version=false
1021 ac_unrecognized_opts=
1022 ac_unrecognized_sep=
1023 # The variables have the same names as the options, with
1024 # dashes changed to underlines.
1025 cache_file=/dev/null
1026 exec_prefix=NONE
1027 no_create=
1028 no_recursion=
1029 prefix=NONE
1030 program_prefix=NONE
1031 program_suffix=NONE
1032 program_transform_name=s,x,x,
1033 silent=
1034 site=
1035 srcdir=
1036 verbose=
1037 x_includes=NONE
1038 x_libraries=NONE
1039
1040 # Installation directory options.
1041 # These are left unexpanded so users can "make install exec_prefix=/foo"
1042 # and all the variables that are supposed to be based on exec_prefix
1043 # by default will actually change.
1044 # Use braces instead of parens because sh, perl, etc. also accept them.
1045 # (The list follows the same order as the GNU Coding Standards.)
1046 bindir='${exec_prefix}/bin'
1047 sbindir='${exec_prefix}/sbin'
1048 libexecdir='${exec_prefix}/libexec'
1049 datarootdir='${prefix}/share'
1050 datadir='${datarootdir}'
1051 sysconfdir='${prefix}/etc'
1052 sharedstatedir='${prefix}/com'
1053 localstatedir='${prefix}/var'
1054 includedir='${prefix}/include'
1055 oldincludedir='/usr/include'
1056 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1057 infodir='${datarootdir}/info'
1058 htmldir='${docdir}'
1059 dvidir='${docdir}'
1060 pdfdir='${docdir}'
1061 psdir='${docdir}'
1062 libdir='${exec_prefix}/lib'
1063 localedir='${datarootdir}/locale'
1064 mandir='${datarootdir}/man'
1065
1066 ac_prev=
1067 ac_dashdash=
1068 for ac_option
1069 do
1070   # If the previous option needs an argument, assign it.
1071   if test -n "$ac_prev"; then
1072     eval $ac_prev=\$ac_option
1073     ac_prev=
1074     continue
1075   fi
1076
1077   case $ac_option in
1078   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1079   *)    ac_optarg=yes ;;
1080   esac
1081
1082   # Accept the important Cygnus configure options, so we can diagnose typos.
1083
1084   case $ac_dashdash$ac_option in
1085   --)
1086     ac_dashdash=yes ;;
1087
1088   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1089     ac_prev=bindir ;;
1090   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1091     bindir=$ac_optarg ;;
1092
1093   -build | --build | --buil | --bui | --bu)
1094     ac_prev=build_alias ;;
1095   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1096     build_alias=$ac_optarg ;;
1097
1098   -cache-file | --cache-file | --cache-fil | --cache-fi \
1099   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1100     ac_prev=cache_file ;;
1101   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1102   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1103     cache_file=$ac_optarg ;;
1104
1105   --config-cache | -C)
1106     cache_file=config.cache ;;
1107
1108   -datadir | --datadir | --datadi | --datad)
1109     ac_prev=datadir ;;
1110   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1111     datadir=$ac_optarg ;;
1112
1113   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1114   | --dataroo | --dataro | --datar)
1115     ac_prev=datarootdir ;;
1116   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1117   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1118     datarootdir=$ac_optarg ;;
1119
1120   -disable-* | --disable-*)
1121     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "enable_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval enable_$ac_useropt=no ;;
1136
1137   -docdir | --docdir | --docdi | --doc | --do)
1138     ac_prev=docdir ;;
1139   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1140     docdir=$ac_optarg ;;
1141
1142   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1143     ac_prev=dvidir ;;
1144   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1145     dvidir=$ac_optarg ;;
1146
1147   -enable-* | --enable-*)
1148     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_useropt_orig=$ac_useropt
1154     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155     case $ac_user_opts in
1156       *"
1157 "enable_$ac_useropt"
1158 "*) ;;
1159       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1160          ac_unrecognized_sep=', ';;
1161     esac
1162     eval enable_$ac_useropt=\$ac_optarg ;;
1163
1164   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1165   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1166   | --exec | --exe | --ex)
1167     ac_prev=exec_prefix ;;
1168   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1169   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1170   | --exec=* | --exe=* | --ex=*)
1171     exec_prefix=$ac_optarg ;;
1172
1173   -gas | --gas | --ga | --g)
1174     # Obsolete; use --with-gas.
1175     with_gas=yes ;;
1176
1177   -help | --help | --hel | --he | -h)
1178     ac_init_help=long ;;
1179   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1180     ac_init_help=recursive ;;
1181   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1182     ac_init_help=short ;;
1183
1184   -host | --host | --hos | --ho)
1185     ac_prev=host_alias ;;
1186   -host=* | --host=* | --hos=* | --ho=*)
1187     host_alias=$ac_optarg ;;
1188
1189   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1190     ac_prev=htmldir ;;
1191   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1192   | --ht=*)
1193     htmldir=$ac_optarg ;;
1194
1195   -includedir | --includedir | --includedi | --included | --include \
1196   | --includ | --inclu | --incl | --inc)
1197     ac_prev=includedir ;;
1198   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1199   | --includ=* | --inclu=* | --incl=* | --inc=*)
1200     includedir=$ac_optarg ;;
1201
1202   -infodir | --infodir | --infodi | --infod | --info | --inf)
1203     ac_prev=infodir ;;
1204   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1205     infodir=$ac_optarg ;;
1206
1207   -libdir | --libdir | --libdi | --libd)
1208     ac_prev=libdir ;;
1209   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1210     libdir=$ac_optarg ;;
1211
1212   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1213   | --libexe | --libex | --libe)
1214     ac_prev=libexecdir ;;
1215   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1216   | --libexe=* | --libex=* | --libe=*)
1217     libexecdir=$ac_optarg ;;
1218
1219   -localedir | --localedir | --localedi | --localed | --locale)
1220     ac_prev=localedir ;;
1221   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1222     localedir=$ac_optarg ;;
1223
1224   -localstatedir | --localstatedir | --localstatedi | --localstated \
1225   | --localstate | --localstat | --localsta | --localst | --locals)
1226     ac_prev=localstatedir ;;
1227   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1228   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1229     localstatedir=$ac_optarg ;;
1230
1231   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1232     ac_prev=mandir ;;
1233   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1234     mandir=$ac_optarg ;;
1235
1236   -nfp | --nfp | --nf)
1237     # Obsolete; use --without-fp.
1238     with_fp=no ;;
1239
1240   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1241   | --no-cr | --no-c | -n)
1242     no_create=yes ;;
1243
1244   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1245   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1246     no_recursion=yes ;;
1247
1248   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1249   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1250   | --oldin | --oldi | --old | --ol | --o)
1251     ac_prev=oldincludedir ;;
1252   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1253   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1254   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1255     oldincludedir=$ac_optarg ;;
1256
1257   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1258     ac_prev=prefix ;;
1259   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1260     prefix=$ac_optarg ;;
1261
1262   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1263   | --program-pre | --program-pr | --program-p)
1264     ac_prev=program_prefix ;;
1265   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1266   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1267     program_prefix=$ac_optarg ;;
1268
1269   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1270   | --program-suf | --program-su | --program-s)
1271     ac_prev=program_suffix ;;
1272   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1273   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1274     program_suffix=$ac_optarg ;;
1275
1276   -program-transform-name | --program-transform-name \
1277   | --program-transform-nam | --program-transform-na \
1278   | --program-transform-n | --program-transform- \
1279   | --program-transform | --program-transfor \
1280   | --program-transfo | --program-transf \
1281   | --program-trans | --program-tran \
1282   | --progr-tra | --program-tr | --program-t)
1283     ac_prev=program_transform_name ;;
1284   -program-transform-name=* | --program-transform-name=* \
1285   | --program-transform-nam=* | --program-transform-na=* \
1286   | --program-transform-n=* | --program-transform-=* \
1287   | --program-transform=* | --program-transfor=* \
1288   | --program-transfo=* | --program-transf=* \
1289   | --program-trans=* | --program-tran=* \
1290   | --progr-tra=* | --program-tr=* | --program-t=*)
1291     program_transform_name=$ac_optarg ;;
1292
1293   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1294     ac_prev=pdfdir ;;
1295   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1296     pdfdir=$ac_optarg ;;
1297
1298   -psdir | --psdir | --psdi | --psd | --ps)
1299     ac_prev=psdir ;;
1300   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1301     psdir=$ac_optarg ;;
1302
1303   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1304   | -silent | --silent | --silen | --sile | --sil)
1305     silent=yes ;;
1306
1307   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1308     ac_prev=sbindir ;;
1309   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1310   | --sbi=* | --sb=*)
1311     sbindir=$ac_optarg ;;
1312
1313   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1314   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1315   | --sharedst | --shareds | --shared | --share | --shar \
1316   | --sha | --sh)
1317     ac_prev=sharedstatedir ;;
1318   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1319   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1320   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1321   | --sha=* | --sh=*)
1322     sharedstatedir=$ac_optarg ;;
1323
1324   -site | --site | --sit)
1325     ac_prev=site ;;
1326   -site=* | --site=* | --sit=*)
1327     site=$ac_optarg ;;
1328
1329   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1330     ac_prev=srcdir ;;
1331   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1332     srcdir=$ac_optarg ;;
1333
1334   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1335   | --syscon | --sysco | --sysc | --sys | --sy)
1336     ac_prev=sysconfdir ;;
1337   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1338   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1339     sysconfdir=$ac_optarg ;;
1340
1341   -target | --target | --targe | --targ | --tar | --ta | --t)
1342     ac_prev=target_alias ;;
1343   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1344     target_alias=$ac_optarg ;;
1345
1346   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1347     verbose=yes ;;
1348
1349   -version | --version | --versio | --versi | --vers | -V)
1350     ac_init_version=: ;;
1351
1352   -with-* | --with-*)
1353     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1354     # Reject names that are not valid shell variable names.
1355     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1357    { (exit 1); exit 1; }; }
1358     ac_useropt_orig=$ac_useropt
1359     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360     case $ac_user_opts in
1361       *"
1362 "with_$ac_useropt"
1363 "*) ;;
1364       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1365          ac_unrecognized_sep=', ';;
1366     esac
1367     eval with_$ac_useropt=\$ac_optarg ;;
1368
1369   -without-* | --without-*)
1370     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1371     # Reject names that are not valid shell variable names.
1372     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1373       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1374    { (exit 1); exit 1; }; }
1375     ac_useropt_orig=$ac_useropt
1376     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377     case $ac_user_opts in
1378       *"
1379 "with_$ac_useropt"
1380 "*) ;;
1381       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1382          ac_unrecognized_sep=', ';;
1383     esac
1384     eval with_$ac_useropt=no ;;
1385
1386   --x)
1387     # Obsolete; use --with-x.
1388     with_x=yes ;;
1389
1390   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1391   | --x-incl | --x-inc | --x-in | --x-i)
1392     ac_prev=x_includes ;;
1393   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1394   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1395     x_includes=$ac_optarg ;;
1396
1397   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1398   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1399     ac_prev=x_libraries ;;
1400   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1401   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1402     x_libraries=$ac_optarg ;;
1403
1404   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1405 Try \`$0 --help' for more information." >&2
1406    { (exit 1); exit 1; }; }
1407     ;;
1408
1409   *=*)
1410     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411     # Reject names that are not valid shell variable names.
1412     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1413       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1414    { (exit 1); exit 1; }; }
1415     eval $ac_envvar=\$ac_optarg
1416     export $ac_envvar ;;
1417
1418   *)
1419     # FIXME: should be removed in autoconf 3.0.
1420     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1421     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1423     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1424     ;;
1425
1426   esac
1427 done
1428
1429 if test -n "$ac_prev"; then
1430   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1431   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1432    { (exit 1); exit 1; }; }
1433 fi
1434
1435 if test -n "$ac_unrecognized_opts"; then
1436   case $enable_option_checking in
1437     no) ;;
1438     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1439    { (exit 1); exit 1; }; } ;;
1440     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1441   esac
1442 fi
1443
1444 # Check all directory arguments for consistency.
1445 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446                 datadir sysconfdir sharedstatedir localstatedir includedir \
1447                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448                 libdir localedir mandir
1449 do
1450   eval ac_val=\$$ac_var
1451   # Remove trailing slashes.
1452   case $ac_val in
1453     */ )
1454       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455       eval $ac_var=\$ac_val;;
1456   esac
1457   # Be sure to have absolute directory names.
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463    { (exit 1); exit 1; }; }
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478     If a cross compiler is detected then cross compile mode will be used." >&2
1479   elif test "x$build_alias" != "x$host_alias"; then
1480     cross_compiling=yes
1481   fi
1482 fi
1483
1484 ac_tool_prefix=
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486
1487 test "$silent" = yes && exec 6>/dev/null
1488
1489
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1494    { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1497    { (exit 1); exit 1; }; }
1498
1499
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502   ac_srcdir_defaulted=yes
1503   # Try the directory containing this script, then the parent directory.
1504   ac_confdir=`$as_dirname -- "$as_myself" ||
1505 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506          X"$as_myself" : 'X\(//\)[^/]' \| \
1507          X"$as_myself" : 'X\(//\)$' \| \
1508          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1509 $as_echo X"$as_myself" |
1510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)[^/].*/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\).*/{
1523             s//\1/
1524             q
1525           }
1526           s/.*/./; q'`
1527   srcdir=$ac_confdir
1528   if test ! -r "$srcdir/$ac_unique_file"; then
1529     srcdir=..
1530   fi
1531 else
1532   ac_srcdir_defaulted=no
1533 fi
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1542    { (exit 1); exit 1; }; }
1543         pwd)`
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546   srcdir=.
1547 fi
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1551 case $srcdir in
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 esac
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_env_${ac_var}_value=\$${ac_var}
1557   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 done
1560
1561 #
1562 # Report the --help message.
1563 #
1564 if test "$ac_init_help" = "long"; then
1565   # Omit some internal or obsolete options to make the list less imposing.
1566   # This message is too long to be a string in the A/UX 3.1 sh.
1567   cat <<_ACEOF
1568 \`configure' configures linux nfs-utils 1.2.2 to adapt to many kinds of systems.
1569
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1571
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE.  See below for descriptions of some of the useful variables.
1574
1575 Defaults for the options are specified in brackets.
1576
1577 Configuration:
1578   -h, --help              display this help and exit
1579       --help=short        display options specific to this package
1580       --help=recursive    display the short help of all the included packages
1581   -V, --version           display version information and exit
1582   -q, --quiet, --silent   do not print \`checking...' messages
1583       --cache-file=FILE   cache test results in FILE [disabled]
1584   -C, --config-cache      alias for \`--cache-file=config.cache'
1585   -n, --no-create         do not create output files
1586       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1587
1588 Installation directories:
1589   --prefix=PREFIX         install architecture-independent files in PREFIX
1590                           [$ac_default_prefix]
1591   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1592                           [PREFIX]
1593
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1598
1599 For better control, use the options below.
1600
1601 Fine tuning of the installation directories:
1602   --bindir=DIR            user executables [EPREFIX/bin]
1603   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1604   --libexecdir=DIR        program executables [EPREFIX/libexec]
1605   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1606   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1607   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1608   --libdir=DIR            object code libraries [EPREFIX/lib]
1609   --includedir=DIR        C header files [PREFIX/include]
1610   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1611   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1612   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1613   --infodir=DIR           info documentation [DATAROOTDIR/info]
1614   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1615   --mandir=DIR            man documentation [DATAROOTDIR/man]
1616   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1617   --htmldir=DIR           html documentation [DOCDIR]
1618   --dvidir=DIR            dvi documentation [DOCDIR]
1619   --pdfdir=DIR            pdf documentation [DOCDIR]
1620   --psdir=DIR             ps documentation [DOCDIR]
1621 _ACEOF
1622
1623   cat <<\_ACEOF
1624
1625 Program names:
1626   --program-prefix=PREFIX            prepend PREFIX to installed program names
1627   --program-suffix=SUFFIX            append SUFFIX to installed program names
1628   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1629
1630 System types:
1631   --build=BUILD     configure for building on BUILD [guessed]
1632   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1633 _ACEOF
1634 fi
1635
1636 if test -n "$ac_init_help"; then
1637   case $ac_init_help in
1638      short | recursive ) echo "Configuration of linux nfs-utils 1.2.2:";;
1639    esac
1640   cat <<\_ACEOF
1641
1642 Optional Features:
1643   --disable-option-checking  ignore unrecognized --enable/--with options
1644   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1645   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1646   --enable-maintainer-mode  enable make rules and dependencies not useful
1647                           (and sometimes confusing) to the casual installer
1648   --enable-nfsv3          enable support for NFSv3 [default=yes]
1649   --enable-nfsv4          enable support for NFSv4 [default=yes]
1650   --enable-nfsv41         enable support for NFSv41 [default=no]
1651   --enable-gss            enable support for rpcsec_gss [default=yes]
1652   --enable-kprefix        install progs as rpc.knfsd etc
1653   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1654   --enable-mount          Create mount.nfs and don't use the util-linux
1655                           mount(8) functionality. [default=yes]
1656   --enable-tirpc          enable use of TI-RPC [default=yes]
1657   --enable-ipv6           enable support for IPv6 [default=no]
1658   --enable-mountconfig    enable mount to use a configuration file
1659   --disable-dependency-tracking  speeds up one-time build
1660   --enable-dependency-tracking   do not reject slow dependency extractors
1661   --disable-largefile     omit support for large files
1662   --enable-shared[=PKGS]  build shared libraries [default=yes]
1663   --enable-static[=PKGS]  build static libraries [default=yes]
1664   --enable-fast-install[=PKGS]
1665                           optimize for fast installation [default=yes]
1666   --disable-libtool-lock  avoid locking (might break parallel builds)
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-release=XXX      set release to XXX [1]
1672   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1673   --with-statduser=rpcuser
1674                           statd to run under [rpcuser or nobody]
1675   --with-start-statd=scriptname
1676                           When an nfs filesystems is mounted with locking, run
1677                           this script
1678   --with-rpcgen=internal  use internal rpcgen instead of system one
1679   --with-mountfile=filename
1680                           Using filename as the NFS mount options file
1681                           [/etc/nfsmounts.conf]
1682   --with-tirpcinclude=DIR use TI-RPC headers in DIR
1683   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1684                  (optionally in PATH)
1685   --with-pic              try to use only PIC/non-PIC objects [default=use
1686                           both]
1687   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1688   --with-krb5=DIR         use Kerberos v5 installation in DIR
1689
1690 Some influential environment variables:
1691   CC          C compiler command
1692   CFLAGS      C compiler flags
1693   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1694               nonstandard directory <lib dir>
1695   LIBS        libraries to pass to the linker, e.g. -l<library>
1696   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1697               you have headers in a nonstandard directory <include dir>
1698   CPP         C preprocessor
1699   CXX         C++ compiler command
1700   CXXFLAGS    C++ compiler flags
1701   CXXCPP      C++ preprocessor
1702   PKG_CONFIG  path to pkg-config utility
1703   GSSGLUE_CFLAGS
1704               C compiler flags for GSSGLUE, overriding pkg-config
1705   GSSGLUE_LIBS
1706               linker flags for GSSGLUE, overriding pkg-config
1707   RPCSECGSS_CFLAGS
1708               C compiler flags for RPCSECGSS, overriding pkg-config
1709   RPCSECGSS_LIBS
1710               linker flags for RPCSECGSS, overriding pkg-config
1711
1712 Use these variables to override the choices made by `configure' or to help
1713 it to find libraries and programs with nonstandard names/locations.
1714
1715 Report bugs to <linux-nfs@vger.kernel.org>.
1716 _ACEOF
1717 ac_status=$?
1718 fi
1719
1720 if test "$ac_init_help" = "recursive"; then
1721   # If there are subdirs, report their specific --help.
1722   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1723     test -d "$ac_dir" ||
1724       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1725       continue
1726     ac_builddir=.
1727
1728 case "$ac_dir" in
1729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730 *)
1731   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1732   # A ".." for each directory in $ac_dir_suffix.
1733   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1734   case $ac_top_builddir_sub in
1735   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1737   esac ;;
1738 esac
1739 ac_abs_top_builddir=$ac_pwd
1740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1741 # for backward compatibility:
1742 ac_top_builddir=$ac_top_build_prefix
1743
1744 case $srcdir in
1745   .)  # We are building in place.
1746     ac_srcdir=.
1747     ac_top_srcdir=$ac_top_builddir_sub
1748     ac_abs_top_srcdir=$ac_pwd ;;
1749   [\\/]* | ?:[\\/]* )  # Absolute name.
1750     ac_srcdir=$srcdir$ac_dir_suffix;
1751     ac_top_srcdir=$srcdir
1752     ac_abs_top_srcdir=$srcdir ;;
1753   *) # Relative name.
1754     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1755     ac_top_srcdir=$ac_top_build_prefix$srcdir
1756     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1757 esac
1758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1759
1760     cd "$ac_dir" || { ac_status=$?; continue; }
1761     # Check for guested configure.
1762     if test -f "$ac_srcdir/configure.gnu"; then
1763       echo &&
1764       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1765     elif test -f "$ac_srcdir/configure"; then
1766       echo &&
1767       $SHELL "$ac_srcdir/configure" --help=recursive
1768     else
1769       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1770     fi || ac_status=$?
1771     cd "$ac_pwd" || { ac_status=$?; break; }
1772   done
1773 fi
1774
1775 test -n "$ac_init_help" && exit $ac_status
1776 if $ac_init_version; then
1777   cat <<\_ACEOF
1778 linux nfs-utils configure 1.2.2
1779 generated by GNU Autoconf 2.63
1780
1781 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1782 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786   exit
1787 fi
1788 cat >config.log <<_ACEOF
1789 This file contains any messages produced by compilers while
1790 running configure, to aid debugging if configure makes a mistake.
1791
1792 It was created by linux nfs-utils $as_me 1.2.2, which was
1793 generated by GNU Autoconf 2.63.  Invocation command line was
1794
1795   $ $0 $@
1796
1797 _ACEOF
1798 exec 5>>config.log
1799 {
1800 cat <<_ASUNAME
1801 ## --------- ##
1802 ## Platform. ##
1803 ## --------- ##
1804
1805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1810
1811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1813
1814 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1815 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1818 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1819 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1820 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1821
1822 _ASUNAME
1823
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827   IFS=$as_save_IFS
1828   test -z "$as_dir" && as_dir=.
1829   $as_echo "PATH: $as_dir"
1830 done
1831 IFS=$as_save_IFS
1832
1833 } >&5
1834
1835 cat >&5 <<_ACEOF
1836
1837
1838 ## ----------- ##
1839 ## Core tests. ##
1840 ## ----------- ##
1841
1842 _ACEOF
1843
1844
1845 # Keep a trace of the command line.
1846 # Strip out --no-create and --no-recursion so they do not pile up.
1847 # Strip out --silent because we don't want to record it for future runs.
1848 # Also quote any args containing shell meta-characters.
1849 # Make two passes to allow for proper duplicate-argument suppression.
1850 ac_configure_args=
1851 ac_configure_args0=
1852 ac_configure_args1=
1853 ac_must_keep_next=false
1854 for ac_pass in 1 2
1855 do
1856   for ac_arg
1857   do
1858     case $ac_arg in
1859     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861     | -silent | --silent | --silen | --sile | --sil)
1862       continue ;;
1863     *\'*)
1864       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865     esac
1866     case $ac_pass in
1867     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1868     2)
1869       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1870       if test $ac_must_keep_next = true; then
1871         ac_must_keep_next=false # Got value, back to normal.
1872       else
1873         case $ac_arg in
1874           *=* | --config-cache | -C | -disable-* | --disable-* \
1875           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877           | -with-* | --with-* | -without-* | --without-* | --x)
1878             case "$ac_configure_args0 " in
1879               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880             esac
1881             ;;
1882           -* ) ac_must_keep_next=true ;;
1883         esac
1884       fi
1885       ac_configure_args="$ac_configure_args '$ac_arg'"
1886       ;;
1887     esac
1888   done
1889 done
1890 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1891 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1892
1893 # When interrupted or exit'd, cleanup temporary files, and complete
1894 # config.log.  We remove comments because anyway the quotes in there
1895 # would cause problems or look ugly.
1896 # WARNING: Use '\'' to represent an apostrophe within the trap.
1897 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898 trap 'exit_status=$?
1899   # Save into config.log some information that might help in debugging.
1900   {
1901     echo
1902
1903     cat <<\_ASBOX
1904 ## ---------------- ##
1905 ## Cache variables. ##
1906 ## ---------------- ##
1907 _ASBOX
1908     echo
1909     # The following way of writing the cache mishandles newlines in values,
1910 (
1911   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1912     eval ac_val=\$$ac_var
1913     case $ac_val in #(
1914     *${as_nl}*)
1915       case $ac_var in #(
1916       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1918       esac
1919       case $ac_var in #(
1920       _ | IFS | as_nl) ;; #(
1921       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1922       *) $as_unset $ac_var ;;
1923       esac ;;
1924     esac
1925   done
1926   (set) 2>&1 |
1927     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928     *${as_nl}ac_space=\ *)
1929       sed -n \
1930         "s/'\''/'\''\\\\'\'''\''/g;
1931           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932       ;; #(
1933     *)
1934       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1935       ;;
1936     esac |
1937     sort
1938 )
1939     echo
1940
1941     cat <<\_ASBOX
1942 ## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##
1945 _ASBOX
1946     echo
1947     for ac_var in $ac_subst_vars
1948     do
1949       eval ac_val=\$$ac_var
1950       case $ac_val in
1951       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952       esac
1953       $as_echo "$ac_var='\''$ac_val'\''"
1954     done | sort
1955     echo
1956
1957     if test -n "$ac_subst_files"; then
1958       cat <<\_ASBOX
1959 ## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##
1962 _ASBOX
1963       echo
1964       for ac_var in $ac_subst_files
1965       do
1966         eval ac_val=\$$ac_var
1967         case $ac_val in
1968         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969         esac
1970         $as_echo "$ac_var='\''$ac_val'\''"
1971       done | sort
1972       echo
1973     fi
1974
1975     if test -s confdefs.h; then
1976       cat <<\_ASBOX
1977 ## ----------- ##
1978 ## confdefs.h. ##
1979 ## ----------- ##
1980 _ASBOX
1981       echo
1982       cat confdefs.h
1983       echo
1984     fi
1985     test "$ac_signal" != 0 &&
1986       $as_echo "$as_me: caught signal $ac_signal"
1987     $as_echo "$as_me: exit $exit_status"
1988   } >&5
1989   rm -f core *.core core.conftest.* &&
1990     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1991     exit $exit_status
1992 ' 0
1993 for ac_signal in 1 2 13 15; do
1994   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1995 done
1996 ac_signal=0
1997
1998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1999 rm -f -r conftest* confdefs.h
2000
2001 # Predefined preprocessor variables.
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2005 _ACEOF
2006
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2010 _ACEOF
2011
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2015 _ACEOF
2016
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_STRING "$PACKAGE_STRING"
2020 _ACEOF
2021
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025 _ACEOF
2026
2027
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer an explicitly selected file to automatically selected ones.
2030 ac_site_file1=NONE
2031 ac_site_file2=NONE
2032 if test -n "$CONFIG_SITE"; then
2033   ac_site_file1=$CONFIG_SITE
2034 elif test "x$prefix" != xNONE; then
2035   ac_site_file1=$prefix/share/config.site
2036   ac_site_file2=$prefix/etc/config.site
2037 else
2038   ac_site_file1=$ac_default_prefix/share/config.site
2039   ac_site_file2=$ac_default_prefix/etc/config.site
2040 fi
2041 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2042 do
2043   test "x$ac_site_file" = xNONE && continue
2044   if test -r "$ac_site_file"; then
2045     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2046 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2047     sed 's/^/| /' "$ac_site_file" >&5
2048     . "$ac_site_file"
2049   fi
2050 done
2051
2052 if test -r "$cache_file"; then
2053   # Some versions of bash will fail to source /dev/null (special
2054   # files actually), so we avoid doing that.
2055   if test -f "$cache_file"; then
2056     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2057 $as_echo "$as_me: loading cache $cache_file" >&6;}
2058     case $cache_file in
2059       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2060       *)                      . "./$cache_file";;
2061     esac
2062   fi
2063 else
2064   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2065 $as_echo "$as_me: creating cache $cache_file" >&6;}
2066   >$cache_file
2067 fi
2068
2069 # Check that the precious variables saved in the cache have kept the same
2070 # value.
2071 ac_cache_corrupted=false
2072 for ac_var in $ac_precious_vars; do
2073   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2074   eval ac_new_set=\$ac_env_${ac_var}_set
2075   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2076   eval ac_new_val=\$ac_env_${ac_var}_value
2077   case $ac_old_set,$ac_new_set in
2078     set,)
2079       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2081       ac_cache_corrupted=: ;;
2082     ,set)
2083       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2085       ac_cache_corrupted=: ;;
2086     ,);;
2087     *)
2088       if test "x$ac_old_val" != "x$ac_new_val"; then
2089         # differences in whitespace do not lead to failure.
2090         ac_old_val_w=`echo x $ac_old_val`
2091         ac_new_val_w=`echo x $ac_new_val`
2092         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2093           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2094 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2095           ac_cache_corrupted=:
2096         else
2097           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2098 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2099           eval $ac_var=\$ac_old_val
2100         fi
2101         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2102 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2103         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2104 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2105       fi;;
2106   esac
2107   # Pass precious variables to config.status.
2108   if test "$ac_new_set" = set; then
2109     case $ac_new_val in
2110     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2111     *) ac_arg=$ac_var=$ac_new_val ;;
2112     esac
2113     case " $ac_configure_args " in
2114       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2115       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2116     esac
2117   fi
2118 done
2119 if $ac_cache_corrupted; then
2120   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2123 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2124   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2125 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2126    { (exit 1); exit 1; }; }
2127 fi
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153 ac_ext=c
2154 ac_cpp='$CPP $CPPFLAGS'
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158
2159
2160 ac_aux_dir=
2161 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2162   if test -f "$ac_dir/install-sh"; then
2163     ac_aux_dir=$ac_dir
2164     ac_install_sh="$ac_aux_dir/install-sh -c"
2165     break
2166   elif test -f "$ac_dir/install.sh"; then
2167     ac_aux_dir=$ac_dir
2168     ac_install_sh="$ac_aux_dir/install.sh -c"
2169     break
2170   elif test -f "$ac_dir/shtool"; then
2171     ac_aux_dir=$ac_dir
2172     ac_install_sh="$ac_aux_dir/shtool install -c"
2173     break
2174   fi
2175 done
2176 if test -z "$ac_aux_dir"; then
2177   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2178 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181
2182 # These three variables are undocumented and unsupported,
2183 # and are intended to be withdrawn in a future Autoconf release.
2184 # They can cause serious problems if a builder's source tree is in a directory
2185 # whose full name contains unusual characters.
2186 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2187 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2188 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2189
2190
2191 # Make sure we can run config.sub.
2192 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2193   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2194 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2195    { (exit 1); exit 1; }; }
2196
2197 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2198 $as_echo_n "checking build system type... " >&6; }
2199 if test "${ac_cv_build+set}" = set; then
2200   $as_echo_n "(cached) " >&6
2201 else
2202   ac_build_alias=$build_alias
2203 test "x$ac_build_alias" = x &&
2204   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2205 test "x$ac_build_alias" = x &&
2206   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2207 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2208    { (exit 1); exit 1; }; }
2209 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2210   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2211 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2212    { (exit 1); exit 1; }; }
2213
2214 fi
2215 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2216 $as_echo "$ac_cv_build" >&6; }
2217 case $ac_cv_build in
2218 *-*-*) ;;
2219 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2220 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2221    { (exit 1); exit 1; }; };;
2222 esac
2223 build=$ac_cv_build
2224 ac_save_IFS=$IFS; IFS='-'
2225 set x $ac_cv_build
2226 shift
2227 build_cpu=$1
2228 build_vendor=$2
2229 shift; shift
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2232 build_os=$*
2233 IFS=$ac_save_IFS
2234 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2235
2236
2237 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2238 $as_echo_n "checking host system type... " >&6; }
2239 if test "${ac_cv_host+set}" = set; then
2240   $as_echo_n "(cached) " >&6
2241 else
2242   if test "x$host_alias" = x; then
2243   ac_cv_host=$ac_cv_build
2244 else
2245   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2246     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2247 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2248    { (exit 1); exit 1; }; }
2249 fi
2250
2251 fi
2252 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2253 $as_echo "$ac_cv_host" >&6; }
2254 case $ac_cv_host in
2255 *-*-*) ;;
2256 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2257 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2258    { (exit 1); exit 1; }; };;
2259 esac
2260 host=$ac_cv_host
2261 ac_save_IFS=$IFS; IFS='-'
2262 set x $ac_cv_host
2263 shift
2264 host_cpu=$1
2265 host_vendor=$2
2266 shift; shift
2267 # Remember, the first character of IFS is used to create $*,
2268 # except with old shells:
2269 host_os=$*
2270 IFS=$ac_save_IFS
2271 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2272
2273
2274
2275 am__api_version='1.11'
2276
2277 # Find a good install program.  We prefer a C program (faster),
2278 # so one script is as good as another.  But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2283 # AIX /bin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if test "${ac_cv_path_install+set}" = set; then
2295   $as_echo_n "(cached) " >&6
2296 else
2297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   # Account for people who put trailing slashes in PATH elements.
2303 case $as_dir/ in
2304   ./ | .// | /cC/* | \
2305   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2307   /usr/ucb/* ) ;;
2308   *)
2309     # OSF1 and SCO ODT 3.0 have their own names for install.
2310     # Don't use installbsd from OSF since it installs stuff as root
2311     # by default.
2312     for ac_prog in ginstall scoinst install; do
2313       for ac_exec_ext in '' $ac_executable_extensions; do
2314         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2315           if test $ac_prog = install &&
2316             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317             # AIX install.  It has an incompatible calling convention.
2318             :
2319           elif test $ac_prog = install &&
2320             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321             # program-specific install script used by HP pwplus--don't use.
2322             :
2323           else
2324             rm -rf conftest.one conftest.two conftest.dir
2325             echo one > conftest.one
2326             echo two > conftest.two
2327             mkdir conftest.dir
2328             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329               test -s conftest.one && test -s conftest.two &&
2330               test -s conftest.dir/conftest.one &&
2331               test -s conftest.dir/conftest.two
2332             then
2333               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334               break 3
2335             fi
2336           fi
2337         fi
2338       done
2339     done
2340     ;;
2341 esac
2342
2343 done
2344 IFS=$as_save_IFS
2345
2346 rm -rf conftest.one conftest.two conftest.dir
2347
2348 fi
2349   if test "${ac_cv_path_install+set}" = set; then
2350     INSTALL=$ac_cv_path_install
2351   else
2352     # As a last resort, use the slow shell script.  Don't cache a
2353     # value for INSTALL within a source directory, because that will
2354     # break other packages using the cache if that directory is
2355     # removed, or if the value is a relative name.
2356     INSTALL=$ac_install_sh
2357   fi
2358 fi
2359 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2361
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2365
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2367
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2369
2370 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 # Just in case
2373 sleep 1
2374 echo timestamp > conftest.file
2375 # Reject unsafe characters in $srcdir or the absolute working directory
2376 # name.  Accept space and tab only in the latter.
2377 am_lf='
2378 '
2379 case `pwd` in
2380   *[\\\"\#\$\&\'\`$am_lf]*)
2381     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2382 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2383    { (exit 1); exit 1; }; };;
2384 esac
2385 case $srcdir in
2386   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2387     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2388 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2389    { (exit 1); exit 1; }; };;
2390 esac
2391
2392 # Do `set' in a subshell so we don't clobber the current shell's
2393 # arguments.  Must try -L first in case configure is actually a
2394 # symlink; some systems play weird games with the mod time of symlinks
2395 # (eg FreeBSD returns the mod time of the symlink's containing
2396 # directory).
2397 if (
2398    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2399    if test "$*" = "X"; then
2400       # -L didn't work.
2401       set X `ls -t "$srcdir/configure" conftest.file`
2402    fi
2403    rm -f conftest.file
2404    if test "$*" != "X $srcdir/configure conftest.file" \
2405       && test "$*" != "X conftest.file $srcdir/configure"; then
2406
2407       # If neither matched, then we have a broken ls.  This can happen
2408       # if, for instance, CONFIG_SHELL is bash and it inherits a
2409       # broken ls alias from the environment.  This has actually
2410       # happened.  Such a system could not be considered "sane".
2411       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2412 alias in your environment" >&5
2413 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2414 alias in your environment" >&2;}
2415    { (exit 1); exit 1; }; }
2416    fi
2417
2418    test "$2" = conftest.file
2419    )
2420 then
2421    # Ok.
2422    :
2423 else
2424    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2425 Check your system clock" >&5
2426 $as_echo "$as_me: error: newly created file is older than distributed files!
2427 Check your system clock" >&2;}
2428    { (exit 1); exit 1; }; }
2429 fi
2430 { $as_echo "$as_me:$LINENO: result: yes" >&5
2431 $as_echo "yes" >&6; }
2432 test "$program_prefix" != NONE &&
2433   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434 # Use a double $ so make ignores it.
2435 test "$program_suffix" != NONE &&
2436   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437 # Double any \ or $.
2438 # By default was `s,x,x', remove it if useless.
2439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2441
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2444
2445 if test x"${MISSING+set}" != xset; then
2446   case $am_aux_dir in
2447   *\ * | *\     *)
2448     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2449   *)
2450     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2451   esac
2452 fi
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455   am_missing_run="$MISSING --run "
2456 else
2457   am_missing_run=
2458   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2460 fi
2461
2462 if test x"${install_sh}" != xset; then
2463   case $am_aux_dir in
2464   *\ * | *\     *)
2465     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2466   *)
2467     install_sh="\${SHELL} $am_aux_dir/install-sh"
2468   esac
2469 fi
2470
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'.  However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476   if test -n "$ac_tool_prefix"; then
2477   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_STRIP+set}" = set; then
2482   $as_echo_n "(cached) " >&6
2483 else
2484   if test -n "$STRIP"; then
2485   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502 fi
2503 fi
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2508 else
2509   { $as_echo "$as_me:$LINENO: result: no" >&5
2510 $as_echo "no" >&6; }
2511 fi
2512
2513
2514 fi
2515 if test -z "$ac_cv_prog_STRIP"; then
2516   ac_ct_STRIP=$STRIP
2517   # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2522   $as_echo_n "(cached) " >&6
2523 else
2524   if test -n "$ac_ct_STRIP"; then
2525   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532   for ac_exec_ext in '' $ac_executable_extensions; do
2533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534     ac_cv_prog_ac_ct_STRIP="strip"
2535     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2548 else
2549   { $as_echo "$as_me:$LINENO: result: no" >&5
2550 $as_echo "no" >&6; }
2551 fi
2552
2553   if test "x$ac_ct_STRIP" = x; then
2554     STRIP=":"
2555   else
2556     case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562     STRIP=$ac_ct_STRIP
2563   fi
2564 else
2565   STRIP="$ac_cv_prog_STRIP"
2566 fi
2567
2568 fi
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570
2571 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573 if test -z "$MKDIR_P"; then
2574   if test "${ac_cv_path_mkdir+set}" = set; then
2575   $as_echo_n "(cached) " >&6
2576 else
2577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_prog in mkdir gmkdir; do
2583          for ac_exec_ext in '' $ac_executable_extensions; do
2584            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2585            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586              'mkdir (GNU coreutils) '* | \
2587              'mkdir (coreutils) '* | \
2588              'mkdir (fileutils) '4.1*)
2589                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2590                break 3;;
2591            esac
2592          done
2593        done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598
2599   if test "${ac_cv_path_mkdir+set}" = set; then
2600     MKDIR_P="$ac_cv_path_mkdir -p"
2601   else
2602     # As a last resort, use the slow shell script.  Don't cache a
2603     # value for MKDIR_P within a source directory, because that will
2604     # break other packages using the cache if that directory is
2605     # removed, or if the value is a relative name.
2606     test -d ./--version && rmdir ./--version
2607     MKDIR_P="$ac_install_sh -d"
2608   fi
2609 fi
2610 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2611 $as_echo "$MKDIR_P" >&6; }
2612
2613 mkdir_p="$MKDIR_P"
2614 case $mkdir_p in
2615   [\\/$]* | ?:[\\/]*) ;;
2616   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2617 esac
2618
2619 for ac_prog in gawk mawk nawk awk
2620 do
2621   # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_AWK+set}" = set; then
2626   $as_echo_n "(cached) " >&6
2627 else
2628   if test -n "$AWK"; then
2629   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636   for ac_exec_ext in '' $ac_executable_extensions; do
2637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638     ac_cv_prog_AWK="$ac_prog"
2639     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640     break 2
2641   fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 AWK=$ac_cv_prog_AWK
2649 if test -n "$AWK"; then
2650   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2652 else
2653   { $as_echo "$as_me:$LINENO: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2656
2657
2658   test -n "$AWK" && break
2659 done
2660
2661 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 set x ${MAKE-make}
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2666   $as_echo_n "(cached) " >&6
2667 else
2668   cat >conftest.make <<\_ACEOF
2669 SHELL = /bin/sh
2670 all:
2671         @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 _ACEOF
2673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675   *@@@%%%=?*=@@@%%%*)
2676     eval ac_cv_prog_make_${ac_make}_set=yes;;
2677   *)
2678     eval ac_cv_prog_make_${ac_make}_set=no;;
2679 esac
2680 rm -f conftest.make
2681 fi
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683   { $as_echo "$as_me:$LINENO: result: yes" >&5
2684 $as_echo "yes" >&6; }
2685   SET_MAKE=
2686 else
2687   { $as_echo "$as_me:$LINENO: result: no" >&5
2688 $as_echo "no" >&6; }
2689   SET_MAKE="MAKE=${MAKE-make}"
2690 fi
2691
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2695   am__leading_dot=.
2696 else
2697   am__leading_dot=_
2698 fi
2699 rmdir .tst 2>/dev/null
2700
2701 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703   # is not polluted with repeated "-I."
2704   am__isrc=' -I$(srcdir)'
2705   # test to see if srcdir already configured
2706   if test -f $srcdir/config.status; then
2707     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2708 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2709    { (exit 1); exit 1; }; }
2710   fi
2711 fi
2712
2713 # test whether we have cygpath
2714 if test -z "$CYGPATH_W"; then
2715   if (cygpath --version) >/dev/null 2>/dev/null; then
2716     CYGPATH_W='cygpath -w'
2717   else
2718     CYGPATH_W=echo
2719   fi
2720 fi
2721
2722
2723 # Define the identity of the package.
2724  PACKAGE='nfs-utils'
2725  VERSION='1.2.2'
2726
2727
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE "$PACKAGE"
2730 _ACEOF
2731
2732
2733 cat >>confdefs.h <<_ACEOF
2734 #define VERSION "$VERSION"
2735 _ACEOF
2736
2737 # Some tools Automake needs.
2738
2739 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2740
2741
2742 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2743
2744
2745 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2746
2747
2748 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2749
2750
2751 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2752
2753 # We need awk for the "check" target.  The system "awk" is bad on
2754 # some platforms.
2755 # Always define AMTAR for backward compatibility.
2756
2757 AMTAR=${AMTAR-"${am_missing_run}tar"}
2758
2759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2760
2761
2762
2763
2764
2765
2766
2767
2768 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2769 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2770     # Check whether --enable-maintainer-mode was given.
2771 if test "${enable_maintainer_mode+set}" = set; then
2772   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2773 else
2774   USE_MAINTAINER_MODE=no
2775 fi
2776
2777   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2778 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2779    if test $USE_MAINTAINER_MODE = yes; then
2780   MAINTAINER_MODE_TRUE=
2781   MAINTAINER_MODE_FALSE='#'
2782 else
2783   MAINTAINER_MODE_TRUE='#'
2784   MAINTAINER_MODE_FALSE=
2785 fi
2786
2787   MAINT=$MAINTAINER_MODE_TRUE
2788
2789
2790
2791
2792 # Check whether --with-release was given.
2793 if test "${with_release+set}" = set; then
2794   withval=$with_release; RELEASE=$withval
2795 else
2796   RELEASE=1
2797 fi
2798
2799
2800
2801 # Check whether --with-statedir was given.
2802 if test "${with_statedir+set}" = set; then
2803   withval=$with_statedir; statedir=$withval
2804 else
2805   statedir=/var/lib/nfs
2806 fi
2807
2808
2809
2810 # Check whether --with-statduser was given.
2811 if test "${with_statduser+set}" = set; then
2812   withval=$with_statduser; statduser=$withval
2813 else
2814   if test "x$cross_compiling" = "xno"; then
2815                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2816                         statduser=rpcuser
2817                 else
2818                         statduser=nobody
2819                 fi
2820         else
2821                 statduser=nobody
2822         fi
2823 fi
2824
2825
2826
2827 # Check whether --with-start-statd was given.
2828 if test "${with_start_statd+set}" = set; then
2829   withval=$with_start_statd; startstatd=$withval
2830 else
2831   startstatd=/usr/sbin/start-statd
2832
2833 fi
2834
2835
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define START_STATD "$startstatd"
2839 _ACEOF
2840
2841 # Check whether --enable-nfsv3 was given.
2842 if test "${enable_nfsv3+set}" = set; then
2843   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2844 else
2845   enable_nfsv3=yes
2846 fi
2847
2848         if test "$enable_nfsv3" = yes; then
2849
2850 cat >>confdefs.h <<\_ACEOF
2851 #define NFS3_SUPPORTED 1
2852 _ACEOF
2853
2854         else
2855                 enable_nfsv3=
2856         fi
2857
2858 # Check whether --enable-nfsv4 was given.
2859 if test "${enable_nfsv4+set}" = set; then
2860   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2861 else
2862   enable_nfsv4=yes
2863 fi
2864
2865         if test "$enable_nfsv4" = yes; then
2866
2867 cat >>confdefs.h <<\_ACEOF
2868 #define NFS4_SUPPORTED 1
2869 _ACEOF
2870
2871                 IDMAPD=idmapd
2872         else
2873                 enable_nfsv4=
2874                 IDMAPD=
2875         fi
2876
2877
2878          if test "$enable_nfsv4" = "yes"; then
2879   CONFIG_NFSV4_TRUE=
2880   CONFIG_NFSV4_FALSE='#'
2881 else
2882   CONFIG_NFSV4_TRUE='#'
2883   CONFIG_NFSV4_FALSE=
2884 fi
2885
2886
2887 # Check whether --enable-nfsv41 was given.
2888 if test "${enable_nfsv41+set}" = set; then
2889   enableval=$enable_nfsv41; enable_nfsv41=$enableval
2890 else
2891   enable_nfsv41=no
2892 fi
2893
2894         if test "$enable_nfsv41" = yes; then
2895
2896 cat >>confdefs.h <<\_ACEOF
2897 #define NFS41_SUPPORTED 1
2898 _ACEOF
2899
2900         else
2901                 enable_nfsv4=
2902         fi
2903
2904          if test "$enable_nfsv41" = "yes"; then
2905   CONFIG_NFSV41_TRUE=
2906   CONFIG_NFSV41_FALSE='#'
2907 else
2908   CONFIG_NFSV41_TRUE='#'
2909   CONFIG_NFSV41_FALSE=
2910 fi
2911
2912
2913 # Check whether --enable-gss was given.
2914 if test "${enable_gss+set}" = set; then
2915   enableval=$enable_gss; enable_gss=$enableval
2916 else
2917   enable_gss=yes
2918 fi
2919
2920         if test "$enable_gss" = yes; then
2921
2922 cat >>confdefs.h <<\_ACEOF
2923 #define GSS_SUPPORTED 1
2924 _ACEOF
2925
2926                 GSSD=gssd
2927                 SVCGSSD=svcgssd
2928         else
2929                 enable_gss=
2930                 GSSD=
2931                 SVCGSSD=
2932         fi
2933
2934
2935
2936          if test "$enable_gss" = "yes"; then
2937   CONFIG_GSS_TRUE=
2938   CONFIG_GSS_FALSE='#'
2939 else
2940   CONFIG_GSS_TRUE='#'
2941   CONFIG_GSS_FALSE=
2942 fi
2943
2944 # Check whether --enable-kprefix was given.
2945 if test "${enable_kprefix+set}" = set; then
2946   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2947 else
2948   kprefix=
2949 fi
2950
2951
2952
2953 # Check whether --with-rpcgen was given.
2954 if test "${with_rpcgen+set}" = set; then
2955   withval=$with_rpcgen; rpcgen_path=$withval
2956 else
2957   rpcgen_path=yes
2958 fi
2959
2960         RPCGEN_PATH=
2961         if test "$rpcgen_path" == "yes"; then
2962             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2963             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2964         elif test "$rpcgen_path" != "internal"; then
2965             RPCGEN_PATH=$rpcgen_path
2966         fi
2967
2968          if test "$RPCGEN_PATH" == ""; then
2969   CONFIG_RPCGEN_TRUE=
2970   CONFIG_RPCGEN_FALSE='#'
2971 else
2972   CONFIG_RPCGEN_TRUE='#'
2973   CONFIG_RPCGEN_FALSE=
2974 fi
2975
2976 # Check whether --enable-uuid was given.
2977 if test "${enable_uuid+set}" = set; then
2978   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2979 else
2980   choose_blkid=default
2981 fi
2982
2983 # Check whether --enable-mount was given.
2984 if test "${enable_mount+set}" = set; then
2985   enableval=$enable_mount; enable_mount=$enableval
2986 else
2987   enable_mount=yes
2988 fi
2989
2990          if test "$enable_mount" = "yes"; then
2991   CONFIG_MOUNT_TRUE=
2992   CONFIG_MOUNT_FALSE='#'
2993 else
2994   CONFIG_MOUNT_TRUE='#'
2995   CONFIG_MOUNT_FALSE=
2996 fi
2997
2998 # Check whether --enable-tirpc was given.
2999 if test "${enable_tirpc+set}" = set; then
3000   enableval=$enable_tirpc; enable_tirpc=$enableval
3001 else
3002   enable_tirpc='yes'
3003 fi
3004
3005 # Check whether --enable-ipv6 was given.
3006 if test "${enable_ipv6+set}" = set; then
3007   enableval=$enable_ipv6; enable_ipv6=$enableval
3008 else
3009   enable_ipv6=no
3010 fi
3011
3012         if test "$enable_ipv6" = yes; then
3013
3014 cat >>confdefs.h <<\_ACEOF
3015 #define IPV6_SUPPORTED 1
3016 _ACEOF
3017
3018         else
3019                 enable_ipv6=
3020         fi
3021
3022          if test "$enable_ipv6" = "yes"; then
3023   CONFIG_IPV6_TRUE=
3024   CONFIG_IPV6_FALSE='#'
3025 else
3026   CONFIG_IPV6_TRUE='#'
3027   CONFIG_IPV6_FALSE=
3028 fi
3029
3030
3031 if test "$enable_mount" = yes; then
3032         # Check whether --enable-mountconfig was given.
3033 if test "${enable_mountconfig+set}" = set; then
3034   enableval=$enable_mountconfig; mountconfig=$enableval
3035 else
3036   mountconfig=no
3037 fi
3038
3039         if test "$enable_mountconfig" = yes; then
3040
3041 cat >>confdefs.h <<\_ACEOF
3042 #define MOUNT_CONFIG 1
3043 _ACEOF
3044
3045
3046 # Check whether --with-mountfile was given.
3047 if test "${with_mountfile+set}" = set; then
3048   withval=$with_mountfile; mountfile=$withval
3049 else
3050   mountfile=/etc/nfsmount.conf
3051 fi
3052
3053
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define MOUNTOPTS_CONFFILE "$mountfile"
3057 _ACEOF
3058
3059         else
3060                 enable_mountconfig=
3061         fi
3062
3063          if test "$enable_mountconfig" = "yes"; then
3064   MOUNT_CONFIG_TRUE=
3065   MOUNT_CONFIG_FALSE='#'
3066 else
3067   MOUNT_CONFIG_TRUE='#'
3068   MOUNT_CONFIG_FALSE=
3069 fi
3070
3071 else
3072          if test "$enable_mount" = "yes"; then
3073   MOUNT_CONFIG_TRUE=
3074   MOUNT_CONFIG_FALSE='#'
3075 else
3076   MOUNT_CONFIG_TRUE='#'
3077   MOUNT_CONFIG_FALSE=
3078 fi
3079
3080 fi
3081
3082 DEPDIR="${am__leading_dot}deps"
3083
3084 ac_config_commands="$ac_config_commands depfiles"
3085
3086
3087 am_make=${MAKE-make}
3088 cat > confinc << 'END'
3089 am__doit:
3090         @echo this is the am__doit target
3091 .PHONY: am__doit
3092 END
3093 # If we don't find an include directive, just comment out the code.
3094 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3095 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3096 am__include="#"
3097 am__quote=
3098 _am_result=none
3099 # First try GNU make style include.
3100 echo "include confinc" > confmf
3101 # Ignore all kinds of additional output from `make'.
3102 case `$am_make -s -f confmf 2> /dev/null` in #(
3103 *the\ am__doit\ target*)
3104   am__include=include
3105   am__quote=
3106   _am_result=GNU
3107   ;;
3108 esac
3109 # Now try BSD make style include.
3110 if test "$am__include" = "#"; then
3111    echo '.include "confinc"' > confmf
3112    case `$am_make -s -f confmf 2> /dev/null` in #(
3113    *the\ am__doit\ target*)
3114      am__include=.include
3115      am__quote="\""
3116      _am_result=BSD
3117      ;;
3118    esac
3119 fi
3120
3121
3122 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3123 $as_echo "$_am_result" >&6; }
3124 rm -f confinc confmf
3125
3126 # Check whether --enable-dependency-tracking was given.
3127 if test "${enable_dependency_tracking+set}" = set; then
3128   enableval=$enable_dependency_tracking;
3129 fi
3130
3131 if test "x$enable_dependency_tracking" != xno; then
3132   am_depcomp="$ac_aux_dir/depcomp"
3133   AMDEPBACKSLASH='\'
3134 fi
3135  if test "x$enable_dependency_tracking" != xno; then
3136   AMDEP_TRUE=
3137   AMDEP_FALSE='#'
3138 else
3139   AMDEP_TRUE='#'
3140   AMDEP_FALSE=
3141 fi
3142
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165   for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$ac_cv_prog_CC"; then
3189   ac_ct_CC=$CC
3190   # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$ac_ct_CC"; then
3198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_ac_ct_CC="gcc"
3208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222   { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226   if test "x$ac_ct_CC" = x; then
3227     CC=""
3228   else
3229     case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235     CC=$ac_ct_CC
3236   fi
3237 else
3238   CC="$ac_cv_prog_CC"
3239 fi
3240
3241 if test -z "$CC"; then
3242           if test -n "$ac_tool_prefix"; then
3243     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258   for ac_exec_ext in '' $ac_executable_extensions; do
3259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260     ac_cv_prog_CC="${ac_tool_prefix}cc"
3261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280   fi
3281 fi
3282 if test -z "$CC"; then
3283   # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293   ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302        ac_prog_rejected=yes
3303        continue
3304      fi
3305     ac_cv_prog_CC="cc"
3306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 if test $ac_prog_rejected = yes; then
3314   # We found a bogon in the path, so make sure we never use it.
3315   set dummy $ac_cv_prog_CC
3316   shift
3317   if test $# != 0; then
3318     # We chose a different compiler from the bogus one.
3319     # However, it has the same basename, so the bogon will be chosen
3320     # first if we set CC to just the basename; use the full file name.
3321     shift
3322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323   fi
3324 fi
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332   { $as_echo "$as_me:$LINENO: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$CC"; then
3339   if test -n "$ac_tool_prefix"; then
3340   for ac_prog in cl.exe
3341   do
3342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$CC"; then
3350   ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357   for ac_exec_ext in '' $ac_executable_extensions; do
3358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374   { $as_echo "$as_me:$LINENO: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379     test -n "$CC" && break
3380   done
3381 fi
3382 if test -z "$CC"; then
3383   ac_ct_CC=$CC
3384   for ac_prog in cl.exe
3385 do
3386   # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$ac_ct_CC"; then
3394   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403     ac_cv_prog_ac_ct_CC="$ac_prog"
3404     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418   { $as_echo "$as_me:$LINENO: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423   test -n "$ac_ct_CC" && break
3424 done
3425
3426   if test "x$ac_ct_CC" = x; then
3427     CC=""
3428   else
3429     case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435     CC=$ac_ct_CC
3436   fi
3437 fi
3438
3439 fi
3440
3441
3442 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&5
3446 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }; }
3449
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3452 set X $ac_compile
3453 ac_compiler=$2
3454 { (ac_try="$ac_compiler --version >&5"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461   (eval "$ac_compiler --version >&5") 2>&5
3462   ac_status=$?
3463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }
3465 { (ac_try="$ac_compiler -v >&5"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472   (eval "$ac_compiler -v >&5") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }
3476 { (ac_try="$ac_compiler -V >&5"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483   (eval "$ac_compiler -V >&5") 2>&5
3484   ac_status=$?
3485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }
3487
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3517 do
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521   esac
3522 done
3523 rm -f $ac_rmfiles
3524
3525 if { (ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532   (eval "$ac_link_default") 2>&5
3533   ac_status=$?
3534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; then
3536   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3542 do
3543   test -f "$ac_file" || continue
3544   case $ac_file in
3545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546         ;;
3547     [ab].out )
3548         # We found the default executable, but exeext='' is most
3549         # certainly right.
3550         break;;
3551     *.* )
3552         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553         then :; else
3554            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555         fi
3556         # We set ac_cv_exeext here because the later test for it is not
3557         # safe: cross compilers may not add the suffix if given an `-o'
3558         # argument, so we may need to know it at that point already.
3559         # Even if this section looks crufty: it has the advantage of
3560         # actually working.
3561         break;;
3562     * )
3563         break;;
3564   esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567
3568 else
3569   ac_file=''
3570 fi
3571
3572 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 if test -z "$ac_file"; then
3575   $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&5
3582 $as_echo "$as_me: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&2;}
3584    { (exit 77); exit 77; }; }; }
3585 fi
3586
3587 ac_exeext=$ac_cv_exeext
3588
3589 # Check that the compiler produces executables we can run.  If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3594 # If not cross compiling, check that we can run a simple program.
3595 if test "$cross_compiling" != yes; then
3596   if { ac_try='./$ac_file'
3597   { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603   (eval "$ac_try") 2>&5
3604   ac_status=$?
3605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; }; then
3607     cross_compiling=no
3608   else
3609     if test "$cross_compiling" = maybe; then
3610         cross_compiling=yes
3611     else
3612         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 $as_echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620    { (exit 1); exit 1; }; }; }
3621     fi
3622   fi
3623 fi
3624 { $as_echo "$as_me:$LINENO: result: yes" >&5
3625 $as_echo "yes" >&6; }
3626
3627 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check that the compiler produces executables we can run.  If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 $as_echo_n "checking whether we are cross compiling... " >&6; }
3633 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 $as_echo "$cross_compiling" >&6; }
3635
3636 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { (ac_try="$ac_link"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645   (eval "$ac_link") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; then
3649   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3652 # `rm'.
3653 for ac_file in conftest.exe conftest conftest.*; do
3654   test -f "$ac_file" || continue
3655   case $ac_file in
3656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658           break;;
3659     * ) break;;
3660   esac
3661 done
3662 else
3663   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details." >&2;}
3669    { (exit 1); exit 1; }; }; }
3670 fi
3671
3672 rm -f conftest$ac_cv_exeext
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3674 $as_echo "$ac_cv_exeext" >&6; }
3675
3676 rm -f conftest.$ac_ext
3677 EXEEXT=$ac_cv_exeext
3678 ac_exeext=$EXEEXT
3679 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if test "${ac_cv_objext+set}" = set; then
3682   $as_echo_n "(cached) " >&6
3683 else
3684   cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690
3691 int
3692 main ()
3693 {
3694
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.o conftest.obj
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707   (eval "$ac_compile") 2>&5
3708   ac_status=$?
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; then
3711   for ac_file in conftest.o conftest.obj conftest.*; do
3712   test -f "$ac_file" || continue;
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716        break;;
3717   esac
3718 done
3719 else
3720   $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&5
3727 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details." >&2;}
3729    { (exit 1); exit 1; }; }; }
3730 fi
3731
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3733 fi
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3737 ac_objext=$OBJEXT
3738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741   $as_echo_n "(cached) " >&6
3742 else
3743   cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749
3750 int
3751 main ()
3752 {
3753 #ifndef __GNUC__
3754        choke me
3755 #endif
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765   *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769   (eval "$ac_compile") 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } && {
3776          test -z "$ac_c_werror_flag" ||
3777          test ! -s conftest.err
3778        } && test -s conftest.$ac_objext; then
3779   ac_compiler_gnu=yes
3780 else
3781   $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784         ac_compiler_gnu=no
3785 fi
3786
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789
3790 fi
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3794   GCC=yes
3795 else
3796   GCC=
3797 fi
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then
3803   $as_echo_n "(cached) " >&6
3804 else
3805   ac_save_c_werror_flag=$ac_c_werror_flag
3806    ac_c_werror_flag=yes
3807    ac_cv_prog_cc_g=no
3808    CFLAGS="-g"
3809    cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815
3816 int
3817 main ()
3818 {
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832   (eval "$ac_compile") 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } && {
3839          test -z "$ac_c_werror_flag" ||
3840          test ! -s conftest.err
3841        } && test -s conftest.$ac_objext; then
3842   ac_cv_prog_cc_g=yes
3843 else
3844   $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847         CFLAGS=""
3848       cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871   (eval "$ac_compile") 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } && {
3878          test -z "$ac_c_werror_flag" ||
3879          test ! -s conftest.err
3880        } && test -s conftest.$ac_objext; then
3881   :
3882 else
3883   $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886         ac_c_werror_flag=$ac_save_c_werror_flag
3887          CFLAGS="-g"
3888          cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911   (eval "$ac_compile") 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } && {
3918          test -z "$ac_c_werror_flag" ||
3919          test ! -s conftest.err
3920        } && test -s conftest.$ac_objext; then
3921   ac_cv_prog_cc_g=yes
3922 else
3923   $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936    ac_c_werror_flag=$ac_save_c_werror_flag
3937 fi
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 $as_echo "$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941   CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943   if test "$GCC" = yes; then
3944     CFLAGS="-g -O2"
3945   else
3946     CFLAGS="-g"
3947   fi
3948 else
3949   if test "$GCC" = yes; then
3950     CFLAGS="-O2"
3951   else
3952     CFLAGS=
3953   fi
3954 fi
3955 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958   $as_echo_n "(cached) " >&6
3959 else
3960   ac_cv_prog_cc_c89=no
3961 ac_save_CC=$CC
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968 #include <stdarg.h>
3969 #include <stdio.h>
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3976      char **p;
3977      int i;
3978 {
3979   return p[i];
3980 }
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3982 {
3983   char *s;
3984   va_list v;
3985   va_start (v,p);
3986   s = g (p, va_arg (v,int));
3987   va_end (v);
3988   return s;
3989 }
3990
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3992    function prototypes and stuff, but not '\xHH' hex character constants.
3993    These don't provoke an error unfortunately, instead are silently treated
3994    as 'x'.  The following induces an error, until -std is added to get
3995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3996    array size at least.  It's necessary to write '\x00'==0 to get something
3997    that's true only with -std.  */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001    inside strings and character constants.  */
4002 #define FOO(x) 'x'
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4009 int argc;
4010 char **argv;
4011 int
4012 main ()
4013 {
4014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 do
4022   CC="$ac_save_CC $ac_arg"
4023   rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4030 $as_echo "$ac_try_echo") >&5
4031   (eval "$ac_compile") 2>conftest.er1
4032   ac_status=$?
4033   grep -v '^ *+' conftest.er1 >conftest.err
4034   rm -f conftest.er1
4035   cat conftest.err >&5
4036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } && {
4038          test -z "$ac_c_werror_flag" ||
4039          test ! -s conftest.err
4040        } && test -s conftest.$ac_objext; then
4041   ac_cv_prog_cc_c89=$ac_arg
4042 else
4043   $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046
4047 fi
4048
4049 rm -f core conftest.err conftest.$ac_objext
4050   test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c89" in
4058   x)
4059     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061   xno)
4062     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064   *)
4065     CC="$CC $ac_cv_prog_cc_c89"
4066     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068 esac
4069
4070
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077 depcc="$CC"   am_compiler_list=
4078
4079 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4080 $as_echo_n "checking dependency style of $depcc... " >&6; }
4081 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4082   $as_echo_n "(cached) " >&6
4083 else
4084   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4085   # We make a subdir and do the tests there.  Otherwise we can end up
4086   # making bogus files that we don't know about and never remove.  For
4087   # instance it was reported that on HP-UX the gcc test will end up
4088   # making a dummy file named `D' -- because `-MD' means `put the output
4089   # in D'.
4090   mkdir conftest.dir
4091   # Copy depcomp to subdir because otherwise we won't find it if we're
4092   # using a relative directory.
4093   cp "$am_depcomp" conftest.dir
4094   cd conftest.dir
4095   # We will build objects and dependencies in a subdirectory because
4096   # it helps to detect inapplicable dependency modes.  For instance
4097   # both Tru64's cc and ICC support -MD to output dependencies as a
4098   # side effect of compilation, but ICC will put the dependencies in
4099   # the current directory while Tru64 will put them in the object
4100   # directory.
4101   mkdir sub
4102
4103   am_cv_CC_dependencies_compiler_type=none
4104   if test "$am_compiler_list" = ""; then
4105      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4106   fi
4107   am__universal=false
4108   case " $depcc " in #(
4109      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4110      esac
4111
4112   for depmode in $am_compiler_list; do
4113     # Setup a source with many dependencies, because some compilers
4114     # like to wrap large dependency lists on column 80 (with \), and
4115     # we should not choose a depcomp mode which is confused by this.
4116     #
4117     # We need to recreate these files for each test, as the compiler may
4118     # overwrite some of them when testing with obscure command lines.
4119     # This happens at least with the AIX C compiler.
4120     : > sub/conftest.c
4121     for i in 1 2 3 4 5 6; do
4122       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4123       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4124       # Solaris 8's {/usr,}/bin/sh.
4125       touch sub/conftst$i.h
4126     done
4127     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4128
4129     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4130     # mode.  It turns out that the SunPro C++ compiler does not properly
4131     # handle `-M -o', and we need to detect this.  Also, some Intel
4132     # versions had trouble with output in subdirs
4133     am__obj=sub/conftest.${OBJEXT-o}
4134     am__minus_obj="-o $am__obj"
4135     case $depmode in
4136     gcc)
4137       # This depmode causes a compiler race in universal mode.
4138       test "$am__universal" = false || continue
4139       ;;
4140     nosideeffect)
4141       # after this tag, mechanisms are not by side-effect, so they'll
4142       # only be used when explicitly requested
4143       if test "x$enable_dependency_tracking" = xyes; then
4144         continue
4145       else
4146         break
4147       fi
4148       ;;
4149     msvisualcpp | msvcmsys)
4150       # This compiler won't grok `-c -o', but also, the minuso test has
4151       # not run yet.  These depmodes are late enough in the game, and
4152       # so weak that their functioning should not be impacted.
4153       am__obj=conftest.${OBJEXT-o}
4154       am__minus_obj=
4155       ;;
4156     none) break ;;
4157     esac
4158     if depmode=$depmode \
4159        source=sub/conftest.c object=$am__obj \
4160        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4162          >/dev/null 2>conftest.err &&
4163        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4166        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167       # icc doesn't choke on unknown options, it will just issue warnings
4168       # or remarks (even with -Werror).  So we grep stderr for any message
4169       # that says an option was ignored or not supported.
4170       # When given -MP, icc 7.0 and 7.1 complain thusly:
4171       #   icc: Command line warning: ignoring option '-M'; no argument required
4172       # The diagnosis changed in icc 8.0:
4173       #   icc: Command line remark: option '-MP' not supported
4174       if (grep 'ignoring option' conftest.err ||
4175           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176         am_cv_CC_dependencies_compiler_type=$depmode
4177         break
4178       fi
4179     fi
4180   done
4181
4182   cd ..
4183   rm -rf conftest.dir
4184 else
4185   am_cv_CC_dependencies_compiler_type=none
4186 fi
4187
4188 fi
4189 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4192
4193  if
4194   test "x$enable_dependency_tracking" != xno \
4195   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4196   am__fastdepCC_TRUE=
4197   am__fastdepCC_FALSE='#'
4198 else
4199   am__fastdepCC_TRUE='#'
4200   am__fastdepCC_FALSE=
4201 fi
4202
4203
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214   CPP=
4215 fi
4216 if test -z "$CPP"; then
4217   if test "${ac_cv_prog_CPP+set}" = set; then
4218   $as_echo_n "(cached) " >&6
4219 else
4220       # Double quotes because CPP needs to be expanded
4221     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222     do
4223       ac_preproc_ok=false
4224 for ac_c_preproc_warn_flag in '' yes
4225 do
4226   # Use a header file that comes with gcc, so configuring glibc
4227   # with a fresh cross-compiler works.
4228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229   # <limits.h> exists even on freestanding compilers.
4230   # On the NeXT, cc -E runs the code through the compiler's parser,
4231   # not just through cpp. "Syntax error" is here to catch this case.
4232   cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243                      Syntax error
4244 _ACEOF
4245 if { (ac_try="$ac_cpp conftest.$ac_ext"
4246 case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4251 $as_echo "$ac_try_echo") >&5
4252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4253   ac_status=$?
4254   grep -v '^ *+' conftest.er1 >conftest.err
4255   rm -f conftest.er1
4256   cat conftest.err >&5
4257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); } >/dev/null && {
4259          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4260          test ! -s conftest.err
4261        }; then
4262   :
4263 else
4264   $as_echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267   # Broken: fails on valid input.
4268 continue
4269 fi
4270
4271 rm -f conftest.err conftest.$ac_ext
4272
4273   # OK, works on sane cases.  Now check whether nonexistent headers
4274   # can be detected and how.
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 #include <ac_nonexistent.h>
4282 _ACEOF
4283 if { (ac_try="$ac_cpp conftest.$ac_ext"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4291   ac_status=$?
4292   grep -v '^ *+' conftest.er1 >conftest.err
4293   rm -f conftest.er1
4294   cat conftest.err >&5
4295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } >/dev/null && {
4297          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4298          test ! -s conftest.err
4299        }; then
4300   # Broken: success on invalid input.
4301 continue
4302 else
4303   $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306   # Passes both tests.
4307 ac_preproc_ok=:
4308 break
4309 fi
4310
4311 rm -f conftest.err conftest.$ac_ext
4312
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4317   break
4318 fi
4319
4320     done
4321     ac_cv_prog_CPP=$CPP
4322
4323 fi
4324   CPP=$ac_cv_prog_CPP
4325 else
4326   ac_cv_prog_CPP=$CPP
4327 fi
4328 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4329 $as_echo "$CPP" >&6; }
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
4333   # Use a header file that comes with gcc, so configuring glibc
4334   # with a fresh cross-compiler works.
4335   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336   # <limits.h> exists even on freestanding compilers.
4337   # On the NeXT, cc -E runs the code through the compiler's parser,
4338   # not just through cpp. "Syntax error" is here to catch this case.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350                      Syntax error
4351 _ACEOF
4352 if { (ac_try="$ac_cpp conftest.$ac_ext"
4353 case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4358 $as_echo "$ac_try_echo") >&5
4359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } >/dev/null && {
4366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4367          test ! -s conftest.err
4368        }; then
4369   :
4370 else
4371   $as_echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374   # Broken: fails on valid input.
4375 continue
4376 fi
4377
4378 rm -f conftest.err conftest.$ac_ext
4379
4380   # OK, works on sane cases.  Now check whether nonexistent headers
4381   # can be detected and how.
4382   cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if { (ac_try="$ac_cpp conftest.$ac_ext"
4391 case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4396 $as_echo "$ac_try_echo") >&5
4397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } >/dev/null && {
4404          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4405          test ! -s conftest.err
4406        }; then
4407   # Broken: success on invalid input.
4408 continue
4409 else
4410   $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413   # Passes both tests.
4414 ac_preproc_ok=:
4415 break
4416 fi
4417
4418 rm -f conftest.err conftest.$ac_ext
4419
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then
4424   :
4425 else
4426   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details." >&5
4430 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431 See \`config.log' for more details." >&2;}
4432    { (exit 1); exit 1; }; }; }
4433 fi
4434
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4443 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4444 if test "${ac_cv_path_GREP+set}" = set; then
4445   $as_echo_n "(cached) " >&6
4446 else
4447   if test -z "$GREP"; then
4448   ac_path_GREP_found=false
4449   # Loop through the user's path and test for each of PROGNAME-LIST
4450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455   for ac_prog in grep ggrep; do
4456     for ac_exec_ext in '' $ac_executable_extensions; do
4457       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4458       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4459 # Check for GNU ac_path_GREP and select it if it is found.
4460   # Check for GNU $ac_path_GREP
4461 case `"$ac_path_GREP" --version 2>&1` in
4462 *GNU*)
4463   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4464 *)
4465   ac_count=0
4466   $as_echo_n 0123456789 >"conftest.in"
4467   while :
4468   do
4469     cat "conftest.in" "conftest.in" >"conftest.tmp"
4470     mv "conftest.tmp" "conftest.in"
4471     cp "conftest.in" "conftest.nl"
4472     $as_echo 'GREP' >> "conftest.nl"
4473     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475     ac_count=`expr $ac_count + 1`
4476     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4477       # Best one so far, save it but keep looking for a better one
4478       ac_cv_path_GREP="$ac_path_GREP"
4479       ac_path_GREP_max=$ac_count
4480     fi
4481     # 10*(2^10) chars as input seems more than enough
4482     test $ac_count -gt 10 && break
4483   done
4484   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4486
4487       $ac_path_GREP_found && break 3
4488     done
4489   done
4490 done
4491 IFS=$as_save_IFS
4492   if test -z "$ac_cv_path_GREP"; then
4493     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4494 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4495    { (exit 1); exit 1; }; }
4496   fi
4497 else
4498   ac_cv_path_GREP=$GREP
4499 fi
4500
4501 fi
4502 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4503 $as_echo "$ac_cv_path_GREP" >&6; }
4504  GREP="$ac_cv_path_GREP"
4505
4506
4507 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4508 $as_echo_n "checking for egrep... " >&6; }
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510   $as_echo_n "(cached) " >&6
4511 else
4512   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4513    then ac_cv_path_EGREP="$GREP -E"
4514    else
4515      if test -z "$EGREP"; then
4516   ac_path_EGREP_found=false
4517   # Loop through the user's path and test for each of PROGNAME-LIST
4518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_prog in egrep; do
4524     for ac_exec_ext in '' $ac_executable_extensions; do
4525       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4526       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4527 # Check for GNU ac_path_EGREP and select it if it is found.
4528   # Check for GNU $ac_path_EGREP
4529 case `"$ac_path_EGREP" --version 2>&1` in
4530 *GNU*)
4531   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4532 *)
4533   ac_count=0
4534   $as_echo_n 0123456789 >"conftest.in"
4535   while :
4536   do
4537     cat "conftest.in" "conftest.in" >"conftest.tmp"
4538     mv "conftest.tmp" "conftest.in"
4539     cp "conftest.in" "conftest.nl"
4540     $as_echo 'EGREP' >> "conftest.nl"
4541     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543     ac_count=`expr $ac_count + 1`
4544     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4545       # Best one so far, save it but keep looking for a better one
4546       ac_cv_path_EGREP="$ac_path_EGREP"
4547       ac_path_EGREP_max=$ac_count
4548     fi
4549     # 10*(2^10) chars as input seems more than enough
4550     test $ac_count -gt 10 && break
4551   done
4552   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 esac
4554
4555       $ac_path_EGREP_found && break 3
4556     done
4557   done
4558 done
4559 IFS=$as_save_IFS
4560   if test -z "$ac_cv_path_EGREP"; then
4561     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4562 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4563    { (exit 1); exit 1; }; }
4564   fi
4565 else
4566   ac_cv_path_EGREP=$EGREP
4567 fi
4568
4569    fi
4570 fi
4571 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4572 $as_echo "$ac_cv_path_EGREP" >&6; }
4573  EGREP="$ac_cv_path_EGREP"
4574
4575
4576 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4577 $as_echo_n "checking for ANSI C header files... " >&6; }
4578 if test "${ac_cv_header_stdc+set}" = set; then
4579   $as_echo_n "(cached) " >&6
4580 else
4581   cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 #include <stdlib.h>
4588 #include <stdarg.h>
4589 #include <string.h>
4590 #include <float.h>
4591
4592 int
4593 main ()
4594 {
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (ac_try="$ac_compile"
4602 case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4607 $as_echo "$ac_try_echo") >&5
4608   (eval "$ac_compile") 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } && {
4615          test -z "$ac_c_werror_flag" ||
4616          test ! -s conftest.err
4617        } && test -s conftest.$ac_objext; then
4618   ac_cv_header_stdc=yes
4619 else
4620   $as_echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623         ac_cv_header_stdc=no
4624 fi
4625
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627
4628 if test $ac_cv_header_stdc = yes; then
4629   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 #include <string.h>
4637
4638 _ACEOF
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640   $EGREP "memchr" >/dev/null 2>&1; then
4641   :
4642 else
4643   ac_cv_header_stdc=no
4644 fi
4645 rm -f conftest*
4646
4647 fi
4648
4649 if test $ac_cv_header_stdc = yes; then
4650   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 #include <stdlib.h>
4658
4659 _ACEOF
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661   $EGREP "free" >/dev/null 2>&1; then
4662   :
4663 else
4664   ac_cv_header_stdc=no
4665 fi
4666 rm -f conftest*
4667
4668 fi
4669
4670 if test $ac_cv_header_stdc = yes; then
4671   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672   if test "$cross_compiling" = yes; then
4673   :
4674 else
4675   cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h.  */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h.  */
4681 #include <ctype.h>
4682 #include <stdlib.h>
4683 #if ((' ' & 0x0FF) == 0x020)
4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4686 #else
4687 # define ISLOWER(c) \
4688                    (('a' <= (c) && (c) <= 'i') \
4689                      || ('j' <= (c) && (c) <= 'r') \
4690                      || ('s' <= (c) && (c) <= 'z'))
4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4692 #endif
4693
4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 int
4696 main ()
4697 {
4698   int i;
4699   for (i = 0; i < 256; i++)
4700     if (XOR (islower (i), ISLOWER (i))
4701         || toupper (i) != TOUPPER (i))
4702       return 2;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest$ac_exeext
4707 if { (ac_try="$ac_link"
4708 case "(($ac_try" in
4709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710   *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714   (eval "$ac_link") 2>&5
4715   ac_status=$?
4716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4718   { (case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4723 $as_echo "$ac_try_echo") >&5
4724   (eval "$ac_try") 2>&5
4725   ac_status=$?
4726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; }; then
4728   :
4729 else
4730   $as_echo "$as_me: program exited with status $ac_status" >&5
4731 $as_echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 ( exit $ac_status )
4735 ac_cv_header_stdc=no
4736 fi
4737 rm -rf conftest.dSYM
4738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4739 fi
4740
4741
4742 fi
4743 fi
4744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4745 $as_echo "$ac_cv_header_stdc" >&6; }
4746 if test $ac_cv_header_stdc = yes; then
4747
4748 cat >>confdefs.h <<\_ACEOF
4749 #define STDC_HEADERS 1
4750 _ACEOF
4751
4752 fi
4753
4754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4765                   inttypes.h stdint.h unistd.h
4766 do
4767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4769 $as_echo_n "checking for $ac_header... " >&6; }
4770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4771   $as_echo_n "(cached) " >&6
4772 else
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 $ac_includes_default
4780
4781 #include <$ac_header>
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (ac_try="$ac_compile"
4785 case "(($ac_try" in
4786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787   *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4790 $as_echo "$ac_try_echo") >&5
4791   (eval "$ac_compile") 2>conftest.er1
4792   ac_status=$?
4793   grep -v '^ *+' conftest.er1 >conftest.err
4794   rm -f conftest.er1
4795   cat conftest.err >&5
4796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } && {
4798          test -z "$ac_c_werror_flag" ||
4799          test ! -s conftest.err
4800        } && test -s conftest.$ac_objext; then
4801   eval "$as_ac_Header=yes"
4802 else
4803   $as_echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806         eval "$as_ac_Header=no"
4807 fi
4808
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 ac_res=`eval 'as_val=${'$as_ac_Header'}
4812                  $as_echo "$as_val"'`
4813                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4814 $as_echo "$ac_res" >&6; }
4815 as_val=`eval 'as_val=${'$as_ac_Header'}
4816                  $as_echo "$as_val"'`
4817    if test "x$as_val" = x""yes; then
4818   cat >>confdefs.h <<_ACEOF
4819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820 _ACEOF
4821
4822 fi
4823
4824 done
4825
4826
4827
4828
4829
4830 # Check whether --with-tirpcinclude was given.
4831 if test "${with_tirpcinclude+set}" = set; then
4832   withval=$with_tirpcinclude; tirpc_header_dir=$withval
4833 else
4834   tirpc_header_dir=/usr/include/tirpc
4835 fi
4836
4837
4838
4839   if test "$enable_tirpc" != "no"; then
4840
4841
4842 { $as_echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
4843 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4844 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
4845   $as_echo_n "(cached) " >&6
4846 else
4847   ac_check_lib_save_LIBS=$LIBS
4848 LIBS="-ltirpc  $LIBS"
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855
4856 /* Override any GCC internal prototype to avoid an error.
4857    Use char because int might match the return type of a GCC
4858    builtin and then its argument prototype would still apply.  */
4859 #ifdef __cplusplus
4860 extern "C"
4861 #endif
4862 char clnt_tli_create ();
4863 int
4864 main ()
4865 {
4866 return clnt_tli_create ();
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext conftest$ac_exeext
4872 if { (ac_try="$ac_link"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878 $as_echo "$ac_try_echo") >&5
4879   (eval "$ac_link") 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } && {
4886          test -z "$ac_c_werror_flag" ||
4887          test ! -s conftest.err
4888        } && test -s conftest$ac_exeext && {
4889          test "$cross_compiling" = yes ||
4890          $as_test_x conftest$ac_exeext
4891        }; then
4892   ac_cv_lib_tirpc_clnt_tli_create=yes
4893 else
4894   $as_echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897         ac_cv_lib_tirpc_clnt_tli_create=no
4898 fi
4899
4900 rm -rf conftest.dSYM
4901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4902       conftest$ac_exeext conftest.$ac_ext
4903 LIBS=$ac_check_lib_save_LIBS
4904 fi
4905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
4906 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
4907 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then
4908   cat >>confdefs.h <<_ACEOF
4909 #define HAVE_LIBTIRPC 1
4910 _ACEOF
4911
4912   LIBS="-ltirpc $LIBS"
4913
4914 else
4915   if test "$enable_tirpc" = "yes"; then
4916                         { { $as_echo "$as_me:$LINENO: error: libtirpc not found." >&5
4917 $as_echo "$as_me: error: libtirpc not found." >&2;}
4918    { (exit 1); exit 1; }; }
4919                   else
4920                         { $as_echo "$as_me:$LINENO: WARNING: libtirpc not found. TIRPC disabled!" >&5
4921 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
4922                         enable_tirpc="no"
4923                   fi
4924 fi
4925
4926   fi
4927
4928   if test "$enable_tirpc" != "no"; then
4929
4930 for ac_header in ${tirpc_header_dir}/netconfig.h
4931 do
4932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4934   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4935 $as_echo_n "checking for $ac_header... " >&6; }
4936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4937   $as_echo_n "(cached) " >&6
4938 fi
4939 ac_res=`eval 'as_val=${'$as_ac_Header'}
4940                  $as_echo "$as_val"'`
4941                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4942 $as_echo "$ac_res" >&6; }
4943 else
4944   # Is the header compilable?
4945 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4946 $as_echo_n "checking $ac_header usability... " >&6; }
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 $ac_includes_default
4954 #include <$ac_header>
4955 _ACEOF
4956 rm -f conftest.$ac_objext
4957 if { (ac_try="$ac_compile"
4958 case "(($ac_try" in
4959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960   *) ac_try_echo=$ac_try;;
4961 esac
4962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4963 $as_echo "$ac_try_echo") >&5
4964   (eval "$ac_compile") 2>conftest.er1
4965   ac_status=$?
4966   grep -v '^ *+' conftest.er1 >conftest.err
4967   rm -f conftest.er1
4968   cat conftest.err >&5
4969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } && {
4971          test -z "$ac_c_werror_flag" ||
4972          test ! -s conftest.err
4973        } && test -s conftest.$ac_objext; then
4974   ac_header_compiler=yes
4975 else
4976   $as_echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979         ac_header_compiler=no
4980 fi
4981
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4984 $as_echo "$ac_header_compiler" >&6; }
4985
4986 # Is the header present?
4987 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4988 $as_echo_n "checking $ac_header presence... " >&6; }
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 #include <$ac_header>
4996 _ACEOF
4997 if { (ac_try="$ac_cpp conftest.$ac_ext"
4998 case "(($ac_try" in
4999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000   *) ac_try_echo=$ac_try;;
5001 esac
5002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003 $as_echo "$ac_try_echo") >&5
5004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } >/dev/null && {
5011          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5012          test ! -s conftest.err
5013        }; then
5014   ac_header_preproc=yes
5015 else
5016   $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019   ac_header_preproc=no
5020 fi
5021
5022 rm -f conftest.err conftest.$ac_ext
5023 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5024 $as_echo "$ac_header_preproc" >&6; }
5025
5026 # So?  What about this header?
5027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5028   yes:no: )
5029     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5030 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5031     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5032 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5033     ac_header_preproc=yes
5034     ;;
5035   no:yes:* )
5036     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5037 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5038     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5039 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5040     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5041 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5042     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5043 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5044     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5045 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5047 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5048     ( cat <<\_ASBOX
5049 ## ---------------------------------------- ##
5050 ## Report this to linux-nfs@vger.kernel.org ##
5051 ## ---------------------------------------- ##
5052 _ASBOX
5053      ) | sed "s/^/$as_me: WARNING:     /" >&2
5054     ;;
5055 esac
5056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 $as_echo_n "checking for $ac_header... " >&6; }
5058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5059   $as_echo_n "(cached) " >&6
5060 else
5061   eval "$as_ac_Header=\$ac_header_preproc"
5062 fi
5063 ac_res=`eval 'as_val=${'$as_ac_Header'}
5064                  $as_echo "$as_val"'`
5065                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5066 $as_echo "$ac_res" >&6; }
5067
5068 fi
5069 as_val=`eval 'as_val=${'$as_ac_Header'}
5070                  $as_echo "$as_val"'`
5071    if test "x$as_val" = x""yes; then
5072   cat >>confdefs.h <<_ACEOF
5073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5074 _ACEOF
5075  AM_CPPFLAGS="-I${tirpc_header_dir}"
5076
5077 else
5078   if test "$enable_tirpc" = "yes"; then
5079                          { { $as_echo "$as_me:$LINENO: error: libtirpc headers not found." >&5
5080 $as_echo "$as_me: error: libtirpc headers not found." >&2;}
5081    { (exit 1); exit 1; }; }
5082                        else
5083                          { $as_echo "$as_me:$LINENO: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5084 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5085                          enable_tirpc="no"
5086                        fi
5087 fi
5088
5089 done
5090
5091
5092   fi
5093
5094
5095
5096
5097
5098     { $as_echo "$as_me:$LINENO: checking for prctl" >&5
5099 $as_echo_n "checking for prctl... " >&6; }
5100 if test "${ac_cv_func_prctl+set}" = set; then
5101   $as_echo_n "(cached) " >&6
5102 else
5103   cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 /* Define prctl to an innocuous variant, in case <limits.h> declares prctl.
5110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5111 #define prctl innocuous_prctl
5112
5113 /* System header to define __stub macros and hopefully few prototypes,
5114     which can conflict with char prctl (); below.
5115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116     <limits.h> exists even on freestanding compilers.  */
5117
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5123
5124 #undef prctl
5125
5126 /* Override any GCC internal prototype to avoid an error.
5127    Use char because int might match the return type of a GCC
5128    builtin and then its argument prototype would still apply.  */
5129 #ifdef __cplusplus
5130 extern "C"
5131 #endif
5132 char prctl ();
5133 /* The GNU C library defines this for functions which it implements
5134     to always fail with ENOSYS.  Some functions are actually named
5135     something starting with __ and the normal name is an alias.  */
5136 #if defined __stub_prctl || defined __stub___prctl
5137 choke me
5138 #endif
5139
5140 int
5141 main ()
5142 {
5143 return prctl ();
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (ac_try="$ac_link"
5150 case "(($ac_try" in
5151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152   *) ac_try_echo=$ac_try;;
5153 esac
5154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155 $as_echo "$ac_try_echo") >&5
5156   (eval "$ac_link") 2>conftest.er1
5157   ac_status=$?
5158   grep -v '^ *+' conftest.er1 >conftest.err
5159   rm -f conftest.er1
5160   cat conftest.err >&5
5161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } && {
5163          test -z "$ac_c_werror_flag" ||
5164          test ! -s conftest.err
5165        } && test -s conftest$ac_exeext && {
5166          test "$cross_compiling" = yes ||
5167          $as_test_x conftest$ac_exeext
5168        }; then
5169   ac_cv_func_prctl=yes
5170 else
5171   $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174         ac_cv_func_prctl=no
5175 fi
5176
5177 rm -rf conftest.dSYM
5178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5179       conftest$ac_exeext conftest.$ac_ext
5180 fi
5181 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_prctl" >&5
5182 $as_echo "$ac_cv_func_prctl" >&6; }
5183
5184
5185     { $as_echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
5186 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5187 if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
5188   $as_echo_n "(cached) " >&6
5189 else
5190   ac_check_lib_save_LIBS=$LIBS
5191 LIBS="-lcap  $LIBS"
5192 cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198
5199 /* Override any GCC internal prototype to avoid an error.
5200    Use char because int might match the return type of a GCC
5201    builtin and then its argument prototype would still apply.  */
5202 #ifdef __cplusplus
5203 extern "C"
5204 #endif
5205 char cap_get_proc ();
5206 int
5207 main ()
5208 {
5209 return cap_get_proc ();
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (ac_try="$ac_link"
5216 case "(($ac_try" in
5217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218   *) ac_try_echo=$ac_try;;
5219 esac
5220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5221 $as_echo "$ac_try_echo") >&5
5222   (eval "$ac_link") 2>conftest.er1
5223   ac_status=$?
5224   grep -v '^ *+' conftest.er1 >conftest.err
5225   rm -f conftest.er1
5226   cat conftest.err >&5
5227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } && {
5229          test -z "$ac_c_werror_flag" ||
5230          test ! -s conftest.err
5231        } && test -s conftest$ac_exeext && {
5232          test "$cross_compiling" = yes ||
5233          $as_test_x conftest$ac_exeext
5234        }; then
5235   ac_cv_lib_cap_cap_get_proc=yes
5236 else
5237   $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240         ac_cv_lib_cap_cap_get_proc=no
5241 fi
5242
5243 rm -rf conftest.dSYM
5244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245       conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5247 fi
5248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
5249 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5250 if test "x$ac_cv_lib_cap_cap_get_proc" = x""yes; then
5251   LIBCAP=-lcap
5252 fi
5253
5254
5255
5256
5257 for ac_header in sys/capability.h
5258 do
5259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5261   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5262 $as_echo_n "checking for $ac_header... " >&6; }
5263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5264   $as_echo_n "(cached) " >&6
5265 fi
5266 ac_res=`eval 'as_val=${'$as_ac_Header'}
5267                  $as_echo "$as_val"'`
5268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5269 $as_echo "$ac_res" >&6; }
5270 else
5271   # Is the header compilable?
5272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5273 $as_echo_n "checking $ac_header usability... " >&6; }
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h.  */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h.  */
5280 $ac_includes_default
5281 #include <$ac_header>
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5285 case "(($ac_try" in
5286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287   *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5290 $as_echo "$ac_try_echo") >&5
5291   (eval "$ac_compile") 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } && {
5298          test -z "$ac_c_werror_flag" ||
5299          test ! -s conftest.err
5300        } && test -s conftest.$ac_objext; then
5301   ac_header_compiler=yes
5302 else
5303   $as_echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306         ac_header_compiler=no
5307 fi
5308
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5311 $as_echo "$ac_header_compiler" >&6; }
5312
5313 # Is the header present?
5314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5315 $as_echo_n "checking $ac_header presence... " >&6; }
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 #include <$ac_header>
5323 _ACEOF
5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 case "(($ac_try" in
5326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327   *) ac_try_echo=$ac_try;;
5328 esac
5329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5330 $as_echo "$ac_try_echo") >&5
5331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } >/dev/null && {
5338          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5339          test ! -s conftest.err
5340        }; then
5341   ac_header_preproc=yes
5342 else
5343   $as_echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346   ac_header_preproc=no
5347 fi
5348
5349 rm -f conftest.err conftest.$ac_ext
5350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5351 $as_echo "$ac_header_preproc" >&6; }
5352
5353 # So?  What about this header?
5354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5355   yes:no: )
5356     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5360     ac_header_preproc=yes
5361     ;;
5362   no:yes:* )
5363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5366 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5370 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5375     ( cat <<\_ASBOX
5376 ## ---------------------------------------- ##
5377 ## Report this to linux-nfs@vger.kernel.org ##
5378 ## ---------------------------------------- ##
5379 _ASBOX
5380      ) | sed "s/^/$as_me: WARNING:     /" >&2
5381     ;;
5382 esac
5383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5384 $as_echo_n "checking for $ac_header... " >&6; }
5385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386   $as_echo_n "(cached) " >&6
5387 else
5388   eval "$as_ac_Header=\$ac_header_preproc"
5389 fi
5390 ac_res=`eval 'as_val=${'$as_ac_Header'}
5391                  $as_echo "$as_val"'`
5392                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5393 $as_echo "$ac_res" >&6; }
5394
5395 fi
5396 as_val=`eval 'as_val=${'$as_ac_Header'}
5397                  $as_echo "$as_val"'`
5398    if test "x$as_val" = x""yes; then
5399   cat >>confdefs.h <<_ACEOF
5400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5401 _ACEOF
5402
5403 else
5404   { { $as_echo "$as_me:$LINENO: error: libcap headers not found." >&5
5405 $as_echo "$as_me: error: libcap headers not found." >&2;}
5406    { (exit 1); exit 1; }; }
5407 fi
5408
5409 done
5410
5411
5412
5413
5414 # Check whether user wants TCP wrappers support
5415
5416   TCPW_MSG="no"
5417
5418 # Check whether --with-tcp-wrappers was given.
5419 if test "${with_tcp_wrappers+set}" = set; then
5420   withval=$with_tcp_wrappers; with_tcpw=$withval
5421 else
5422   with_tcpw=yes
5423 fi
5424
5425         if test "x$with_tcpw" != "xno" ; then
5426             saved_LIBS="$LIBS"
5427             saved_LDFLAGS="$LDFLAGS"
5428             saved_CPPFLAGS="$CPPFLAGS"
5429             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5430                 if test -d "${with_tcpw}/lib"; then
5431                     if test -n "${need_dash_r}"; then
5432                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5433                     else
5434                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5435                     fi
5436                 else
5437                     if test -n "${need_dash_r}"; then
5438                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5439                     else
5440                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5441                     fi
5442                 fi
5443                 if test -d "${with_tcpw}/include"; then
5444                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5445                 else
5446                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5447                 fi
5448             fi
5449             LIBWRAP="-lwrap"
5450             LIBS="$LIBWRAP $LIBS"
5451             { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
5452 $as_echo_n "checking for libwrap... " >&6; }
5453             cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459
5460                 #include <tcpd.h>
5461                 int deny_severity = 0, allow_severity = 0;
5462
5463 int
5464 main ()
5465 {
5466 hosts_access(0);
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (ac_try="$ac_link"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5478 $as_echo "$ac_try_echo") >&5
5479   (eval "$ac_link") 2>conftest.er1
5480   ac_status=$?
5481   grep -v '^ *+' conftest.er1 >conftest.err
5482   rm -f conftest.er1
5483   cat conftest.err >&5
5484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } && {
5486          test -z "$ac_c_werror_flag" ||
5487          test ! -s conftest.err
5488        } && test -s conftest$ac_exeext && {
5489          test "$cross_compiling" = yes ||
5490          $as_test_x conftest$ac_exeext
5491        }; then
5492
5493                 { $as_echo "$as_me:$LINENO: result: yes" >&5
5494 $as_echo "yes" >&6; }
5495
5496
5497 cat >>confdefs.h <<\_ACEOF
5498 #define LIBWRAP 1
5499 _ACEOF
5500
5501
5502 cat >>confdefs.h <<\_ACEOF
5503 #define HAVE_LIBWRAP 1
5504 _ACEOF
5505
5506
5507 cat >>confdefs.h <<\_ACEOF
5508 #define HAVE_TCP_WRAPPER 1
5509 _ACEOF
5510
5511                 TCPW_MSG="yes"
5512
5513 else
5514   $as_echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517
5518                 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
5519 $as_echo "$as_me: error: *** libwrap missing" >&2;}
5520    { (exit 1); exit 1; }; }
5521
5522
5523 fi
5524
5525 rm -rf conftest.dSYM
5526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5527       conftest$ac_exeext conftest.$ac_ext
5528             LIBS="$saved_LIBS"
5529         fi
5530
5531
5532
5533
5534
5535 # Arrange for large-file support
5536 # Check whether --enable-largefile was given.
5537 if test "${enable_largefile+set}" = set; then
5538   enableval=$enable_largefile;
5539 fi
5540
5541 if test "$enable_largefile" != no; then
5542
5543   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5544 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5545 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5546   $as_echo_n "(cached) " >&6
5547 else
5548   ac_cv_sys_largefile_CC=no
5549      if test "$GCC" != yes; then
5550        ac_save_CC=$CC
5551        while :; do
5552          # IRIX 6.2 and later do not support large files by default,
5553          # so use the C compiler's -n32 option if that helps.
5554          cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h.  */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h.  */
5560 #include <sys/types.h>
5561  /* Check that off_t can represent 2**63 - 1 correctly.
5562     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5563     since some C++ compilers masquerading as C compilers
5564     incorrectly reject 9223372036854775807.  */
5565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5566   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5567                        && LARGE_OFF_T % 2147483647 == 1)
5568                       ? 1 : -1];
5569 int
5570 main ()
5571 {
5572
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577          rm -f conftest.$ac_objext
5578 if { (ac_try="$ac_compile"
5579 case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5584 $as_echo "$ac_try_echo") >&5
5585   (eval "$ac_compile") 2>conftest.er1
5586   ac_status=$?
5587   grep -v '^ *+' conftest.er1 >conftest.err
5588   rm -f conftest.er1
5589   cat conftest.err >&5
5590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); } && {
5592          test -z "$ac_c_werror_flag" ||
5593          test ! -s conftest.err
5594        } && test -s conftest.$ac_objext; then
5595   break
5596 else
5597   $as_echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600
5601 fi
5602
5603 rm -f core conftest.err conftest.$ac_objext
5604          CC="$CC -n32"
5605          rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5607 case "(($ac_try" in
5608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609   *) ac_try_echo=$ac_try;;
5610 esac
5611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612 $as_echo "$ac_try_echo") >&5
5613   (eval "$ac_compile") 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } && {
5620          test -z "$ac_c_werror_flag" ||
5621          test ! -s conftest.err
5622        } && test -s conftest.$ac_objext; then
5623   ac_cv_sys_largefile_CC=' -n32'; break
5624 else
5625   $as_echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628
5629 fi
5630
5631 rm -f core conftest.err conftest.$ac_objext
5632          break
5633        done
5634        CC=$ac_save_CC
5635        rm -f conftest.$ac_ext
5636     fi
5637 fi
5638 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5639 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5640   if test "$ac_cv_sys_largefile_CC" != no; then
5641     CC=$CC$ac_cv_sys_largefile_CC
5642   fi
5643
5644   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5645 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5646 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5647   $as_echo_n "(cached) " >&6
5648 else
5649   while :; do
5650   cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h.  */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h.  */
5656 #include <sys/types.h>
5657  /* Check that off_t can represent 2**63 - 1 correctly.
5658     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659     since some C++ compilers masquerading as C compilers
5660     incorrectly reject 9223372036854775807.  */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663                        && LARGE_OFF_T % 2147483647 == 1)
5664                       ? 1 : -1];
5665 int
5666 main ()
5667 {
5668
5669   ;
5670   return 0;
5671 }
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5675 case "(($ac_try" in
5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677   *) ac_try_echo=$ac_try;;
5678 esac
5679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5680 $as_echo "$ac_try_echo") >&5
5681   (eval "$ac_compile") 2>conftest.er1
5682   ac_status=$?
5683   grep -v '^ *+' conftest.er1 >conftest.err
5684   rm -f conftest.er1
5685   cat conftest.err >&5
5686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } && {
5688          test -z "$ac_c_werror_flag" ||
5689          test ! -s conftest.err
5690        } && test -s conftest.$ac_objext; then
5691   ac_cv_sys_file_offset_bits=no; break
5692 else
5693   $as_echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700   cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 #define _FILE_OFFSET_BITS 64
5707 #include <sys/types.h>
5708  /* Check that off_t can represent 2**63 - 1 correctly.
5709     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710     since some C++ compilers masquerading as C compilers
5711     incorrectly reject 9223372036854775807.  */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714                        && LARGE_OFF_T % 2147483647 == 1)
5715                       ? 1 : -1];
5716 int
5717 main ()
5718 {
5719
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5726 case "(($ac_try" in
5727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728   *) ac_try_echo=$ac_try;;
5729 esac
5730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5731 $as_echo "$ac_try_echo") >&5
5732   (eval "$ac_compile") 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } && {
5739          test -z "$ac_c_werror_flag" ||
5740          test ! -s conftest.err
5741        } && test -s conftest.$ac_objext; then
5742   ac_cv_sys_file_offset_bits=64; break
5743 else
5744   $as_echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747
5748 fi
5749
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751   ac_cv_sys_file_offset_bits=unknown
5752   break
5753 done
5754 fi
5755 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5756 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5757 case $ac_cv_sys_file_offset_bits in #(
5758   no | unknown) ;;
5759   *)
5760 cat >>confdefs.h <<_ACEOF
5761 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5762 _ACEOF
5763 ;;
5764 esac
5765 rm -rf conftest*
5766   if test $ac_cv_sys_file_offset_bits = unknown; then
5767     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5768 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5769 if test "${ac_cv_sys_large_files+set}" = set; then
5770   $as_echo_n "(cached) " >&6
5771 else
5772   while :; do
5773   cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h.  */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h.  */
5779 #include <sys/types.h>
5780  /* Check that off_t can represent 2**63 - 1 correctly.
5781     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782     since some C++ compilers masquerading as C compilers
5783     incorrectly reject 9223372036854775807.  */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786                        && LARGE_OFF_T % 2147483647 == 1)
5787                       ? 1 : -1];
5788 int
5789 main ()
5790 {
5791
5792   ;
5793   return 0;
5794 }
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5798 case "(($ac_try" in
5799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800   *) ac_try_echo=$ac_try;;
5801 esac
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804   (eval "$ac_compile") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } && {
5811          test -z "$ac_c_werror_flag" ||
5812          test ! -s conftest.err
5813        } && test -s conftest.$ac_objext; then
5814   ac_cv_sys_large_files=no; break
5815 else
5816   $as_echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #define _LARGE_FILES 1
5830 #include <sys/types.h>
5831  /* Check that off_t can represent 2**63 - 1 correctly.
5832     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5833     since some C++ compilers masquerading as C compilers
5834     incorrectly reject 9223372036854775807.  */
5835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5836   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5837                        && LARGE_OFF_T % 2147483647 == 1)
5838                       ? 1 : -1];
5839 int
5840 main ()
5841 {
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851   *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855   (eval "$ac_compile") 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } && {
5862          test -z "$ac_c_werror_flag" ||
5863          test ! -s conftest.err
5864        } && test -s conftest.$ac_objext; then
5865   ac_cv_sys_large_files=1; break
5866 else
5867   $as_echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870
5871 fi
5872
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874   ac_cv_sys_large_files=unknown
5875   break
5876 done
5877 fi
5878 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5879 $as_echo "$ac_cv_sys_large_files" >&6; }
5880 case $ac_cv_sys_large_files in #(
5881   no | unknown) ;;
5882   *)
5883 cat >>confdefs.h <<_ACEOF
5884 #define _LARGE_FILES $ac_cv_sys_large_files
5885 _ACEOF
5886 ;;
5887 esac
5888 rm -rf conftest*
5889   fi
5890 fi
5891
5892
5893
5894 ac_config_headers="$ac_config_headers support/include/config.h"
5895
5896
5897 # Checks for programs.
5898 ac_ext=cpp
5899 ac_cpp='$CXXCPP $CPPFLAGS'
5900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5903 if test -z "$CXX"; then
5904   if test -n "$CCC"; then
5905     CXX=$CCC
5906   else
5907     if test -n "$ac_tool_prefix"; then
5908   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5909   do
5910     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_CXX+set}" = set; then
5915   $as_echo_n "(cached) " >&6
5916 else
5917   if test -n "$CXX"; then
5918   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5928     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 CXX=$ac_cv_prog_CXX
5938 if test -n "$CXX"; then
5939   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5940 $as_echo "$CXX" >&6; }
5941 else
5942   { $as_echo "$as_me:$LINENO: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947     test -n "$CXX" && break
5948   done
5949 fi
5950 if test -z "$CXX"; then
5951   ac_ct_CXX=$CXX
5952   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5953 do
5954   # Extract the first word of "$ac_prog", so it can be a program name with args.
5955 set dummy $ac_prog; ac_word=$2
5956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if test -n "$ac_ct_CXX"; then
5962   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_exec_ext in '' $ac_executable_extensions; do
5970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971     ac_cv_prog_ac_ct_CXX="$ac_prog"
5972     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5982 if test -n "$ac_ct_CXX"; then
5983   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5984 $as_echo "$ac_ct_CXX" >&6; }
5985 else
5986   { $as_echo "$as_me:$LINENO: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991   test -n "$ac_ct_CXX" && break
5992 done
5993
5994   if test "x$ac_ct_CXX" = x; then
5995     CXX="g++"
5996   else
5997     case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003     CXX=$ac_ct_CXX
6004   fi
6005 fi
6006
6007   fi
6008 fi
6009 # Provide some information about the compiler.
6010 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6011 set X $ac_compile
6012 ac_compiler=$2
6013 { (ac_try="$ac_compiler --version >&5"
6014 case "(($ac_try" in
6015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016   *) ac_try_echo=$ac_try;;
6017 esac
6018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020   (eval "$ac_compiler --version >&5") 2>&5
6021   ac_status=$?
6022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }
6024 { (ac_try="$ac_compiler -v >&5"
6025 case "(($ac_try" in
6026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027   *) ac_try_echo=$ac_try;;
6028 esac
6029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6030 $as_echo "$ac_try_echo") >&5
6031   (eval "$ac_compiler -v >&5") 2>&5
6032   ac_status=$?
6033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }
6035 { (ac_try="$ac_compiler -V >&5"
6036 case "(($ac_try" in
6037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038   *) ac_try_echo=$ac_try;;
6039 esac
6040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
6042   (eval "$ac_compiler -V >&5") 2>&5
6043   ac_status=$?
6044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); }
6046
6047 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6048 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6049 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6050   $as_echo_n "(cached) " >&6
6051 else
6052   cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058
6059 int
6060 main ()
6061 {
6062 #ifndef __GNUC__
6063        choke me
6064 #endif
6065
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078   (eval "$ac_compile") 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && {
6085          test -z "$ac_cxx_werror_flag" ||
6086          test ! -s conftest.err
6087        } && test -s conftest.$ac_objext; then
6088   ac_compiler_gnu=yes
6089 else
6090   $as_echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093         ac_compiler_gnu=no
6094 fi
6095
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6098
6099 fi
6100 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6101 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6102 if test $ac_compiler_gnu = yes; then
6103   GXX=yes
6104 else
6105   GXX=
6106 fi
6107 ac_test_CXXFLAGS=${CXXFLAGS+set}
6108 ac_save_CXXFLAGS=$CXXFLAGS
6109 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6110 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6111 if test "${ac_cv_prog_cxx_g+set}" = set; then
6112   $as_echo_n "(cached) " >&6
6113 else
6114   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6115    ac_cxx_werror_flag=yes
6116    ac_cv_prog_cxx_g=no
6117    CXXFLAGS="-g"
6118    cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h.  */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h.  */
6124
6125 int
6126 main ()
6127 {
6128
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141   (eval "$ac_compile") 2>conftest.er1
6142   ac_status=$?
6143   grep -v '^ *+' conftest.er1 >conftest.err
6144   rm -f conftest.er1
6145   cat conftest.err >&5
6146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } && {
6148          test -z "$ac_cxx_werror_flag" ||
6149          test ! -s conftest.err
6150        } && test -s conftest.$ac_objext; then
6151   ac_cv_prog_cxx_g=yes
6152 else
6153   $as_echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156         CXXFLAGS=""
6157       cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163
6164 int
6165 main ()
6166 {
6167
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6174 case "(($ac_try" in
6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176   *) ac_try_echo=$ac_try;;
6177 esac
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180   (eval "$ac_compile") 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } && {
6187          test -z "$ac_cxx_werror_flag" ||
6188          test ! -s conftest.err
6189        } && test -s conftest.$ac_objext; then
6190   :
6191 else
6192   $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6196          CXXFLAGS="-g"
6197          cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203
6204 int
6205 main ()
6206 {
6207
6208   ;
6209   return 0;
6210 }
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216   *) ac_try_echo=$ac_try;;
6217 esac
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220   (eval "$ac_compile") 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } && {
6227          test -z "$ac_cxx_werror_flag" ||
6228          test ! -s conftest.err
6229        } && test -s conftest.$ac_objext; then
6230   ac_cv_prog_cxx_g=yes
6231 else
6232   $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
6236 fi
6237
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 fi
6240
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6246 fi
6247 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6248 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6249 if test "$ac_test_CXXFLAGS" = set; then
6250   CXXFLAGS=$ac_save_CXXFLAGS
6251 elif test $ac_cv_prog_cxx_g = yes; then
6252   if test "$GXX" = yes; then
6253     CXXFLAGS="-g -O2"
6254   else
6255     CXXFLAGS="-g"
6256   fi
6257 else
6258   if test "$GXX" = yes; then
6259     CXXFLAGS="-O2"
6260   else
6261     CXXFLAGS=
6262   fi
6263 fi
6264 ac_ext=c
6265 ac_cpp='$CPP $CPPFLAGS'
6266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269
6270 depcc="$CXX"  am_compiler_list=
6271
6272 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6273 $as_echo_n "checking dependency style of $depcc... " >&6; }
6274 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6275   $as_echo_n "(cached) " >&6
6276 else
6277   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6278   # We make a subdir and do the tests there.  Otherwise we can end up
6279   # making bogus files that we don't know about and never remove.  For
6280   # instance it was reported that on HP-UX the gcc test will end up
6281   # making a dummy file named `D' -- because `-MD' means `put the output
6282   # in D'.
6283   mkdir conftest.dir
6284   # Copy depcomp to subdir because otherwise we won't find it if we're
6285   # using a relative directory.
6286   cp "$am_depcomp" conftest.dir
6287   cd conftest.dir
6288   # We will build objects and dependencies in a subdirectory because
6289   # it helps to detect inapplicable dependency modes.  For instance
6290   # both Tru64's cc and ICC support -MD to output dependencies as a
6291   # side effect of compilation, but ICC will put the dependencies in
6292   # the current directory while Tru64 will put them in the object
6293   # directory.
6294   mkdir sub
6295
6296   am_cv_CXX_dependencies_compiler_type=none
6297   if test "$am_compiler_list" = ""; then
6298      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6299   fi
6300   am__universal=false
6301   case " $depcc " in #(
6302      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6303      esac
6304
6305   for depmode in $am_compiler_list; do
6306     # Setup a source with many dependencies, because some compilers
6307     # like to wrap large dependency lists on column 80 (with \), and
6308     # we should not choose a depcomp mode which is confused by this.
6309     #
6310     # We need to recreate these files for each test, as the compiler may
6311     # overwrite some of them when testing with obscure command lines.
6312     # This happens at least with the AIX C compiler.
6313     : > sub/conftest.c
6314     for i in 1 2 3 4 5 6; do
6315       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6316       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6317       # Solaris 8's {/usr,}/bin/sh.
6318       touch sub/conftst$i.h
6319     done
6320     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6321
6322     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6323     # mode.  It turns out that the SunPro C++ compiler does not properly
6324     # handle `-M -o', and we need to detect this.  Also, some Intel
6325     # versions had trouble with output in subdirs
6326     am__obj=sub/conftest.${OBJEXT-o}
6327     am__minus_obj="-o $am__obj"
6328     case $depmode in
6329     gcc)
6330       # This depmode causes a compiler race in universal mode.
6331       test "$am__universal" = false || continue
6332       ;;
6333     nosideeffect)
6334       # after this tag, mechanisms are not by side-effect, so they'll
6335       # only be used when explicitly requested
6336       if test "x$enable_dependency_tracking" = xyes; then
6337         continue
6338       else
6339         break
6340       fi
6341       ;;
6342     msvisualcpp | msvcmsys)
6343       # This compiler won't grok `-c -o', but also, the minuso test has
6344       # not run yet.  These depmodes are late enough in the game, and
6345       # so weak that their functioning should not be impacted.
6346       am__obj=conftest.${OBJEXT-o}
6347       am__minus_obj=
6348       ;;
6349     none) break ;;
6350     esac
6351     if depmode=$depmode \
6352        source=sub/conftest.c object=$am__obj \
6353        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6354        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6355          >/dev/null 2>conftest.err &&
6356        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6357        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6358        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6359        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6360       # icc doesn't choke on unknown options, it will just issue warnings
6361       # or remarks (even with -Werror).  So we grep stderr for any message
6362       # that says an option was ignored or not supported.
6363       # When given -MP, icc 7.0 and 7.1 complain thusly:
6364       #   icc: Command line warning: ignoring option '-M'; no argument required
6365       # The diagnosis changed in icc 8.0:
6366       #   icc: Command line remark: option '-MP' not supported
6367       if (grep 'ignoring option' conftest.err ||
6368           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6369         am_cv_CXX_dependencies_compiler_type=$depmode
6370         break
6371       fi
6372     fi
6373   done
6374
6375   cd ..
6376   rm -rf conftest.dir
6377 else
6378   am_cv_CXX_dependencies_compiler_type=none
6379 fi
6380
6381 fi
6382 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6383 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6384 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6385
6386  if
6387   test "x$enable_dependency_tracking" != xno \
6388   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6389   am__fastdepCXX_TRUE=
6390   am__fastdepCXX_FALSE='#'
6391 else
6392   am__fastdepCXX_TRUE='#'
6393   am__fastdepCXX_FALSE=
6394 fi
6395
6396
6397 ac_ext=c
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402 if test -n "$ac_tool_prefix"; then
6403   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if test "${ac_cv_prog_CC+set}" = set; then
6408   $as_echo_n "(cached) " >&6
6409 else
6410   if test -n "$CC"; then
6411   ac_cv_prog_CC="$CC" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418   for ac_exec_ext in '' $ac_executable_extensions; do
6419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6421     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425 done
6426 IFS=$as_save_IFS
6427
6428 fi
6429 fi
6430 CC=$ac_cv_prog_CC
6431 if test -n "$CC"; then
6432   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6433 $as_echo "$CC" >&6; }
6434 else
6435   { $as_echo "$as_me:$LINENO: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438
6439
6440 fi
6441 if test -z "$ac_cv_prog_CC"; then
6442   ac_ct_CC=$CC
6443   # Extract the first word of "gcc", so it can be a program name with args.
6444 set dummy gcc; ac_word=$2
6445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$ac_ct_CC"; then
6451   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458   for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_prog_ac_ct_CC="gcc"
6461     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6471 if test -n "$ac_ct_CC"; then
6472   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6473 $as_echo "$ac_ct_CC" >&6; }
6474 else
6475   { $as_echo "$as_me:$LINENO: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479   if test "x$ac_ct_CC" = x; then
6480     CC=""
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     CC=$ac_ct_CC
6489   fi
6490 else
6491   CC="$ac_cv_prog_CC"
6492 fi
6493
6494 if test -z "$CC"; then
6495           if test -n "$ac_tool_prefix"; then
6496     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}cc; ac_word=$2
6498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if test "${ac_cv_prog_CC+set}" = set; then
6501   $as_echo_n "(cached) " >&6
6502 else
6503   if test -n "$CC"; then
6504   ac_cv_prog_CC="$CC" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511   for ac_exec_ext in '' $ac_executable_extensions; do
6512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513     ac_cv_prog_CC="${ac_tool_prefix}cc"
6514     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515     break 2
6516   fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 CC=$ac_cv_prog_CC
6524 if test -n "$CC"; then
6525   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6526 $as_echo "$CC" >&6; }
6527 else
6528   { $as_echo "$as_me:$LINENO: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532
6533   fi
6534 fi
6535 if test -z "$CC"; then
6536   # Extract the first word of "cc", so it can be a program name with args.
6537 set dummy cc; ac_word=$2
6538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_CC+set}" = set; then
6541   $as_echo_n "(cached) " >&6
6542 else
6543   if test -n "$CC"; then
6544   ac_cv_prog_CC="$CC" # Let the user override the test.
6545 else
6546   ac_prog_rejected=no
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552   for ac_exec_ext in '' $ac_executable_extensions; do
6553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6555        ac_prog_rejected=yes
6556        continue
6557      fi
6558     ac_cv_prog_CC="cc"
6559     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566 if test $ac_prog_rejected = yes; then
6567   # We found a bogon in the path, so make sure we never use it.
6568   set dummy $ac_cv_prog_CC
6569   shift
6570   if test $# != 0; then
6571     # We chose a different compiler from the bogus one.
6572     # However, it has the same basename, so the bogon will be chosen
6573     # first if we set CC to just the basename; use the full file name.
6574     shift
6575     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6576   fi
6577 fi
6578 fi
6579 fi
6580 CC=$ac_cv_prog_CC
6581 if test -n "$CC"; then
6582   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6583 $as_echo "$CC" >&6; }
6584 else
6585   { $as_echo "$as_me:$LINENO: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589
6590 fi
6591 if test -z "$CC"; then
6592   if test -n "$ac_tool_prefix"; then
6593   for ac_prog in cl.exe
6594   do
6595     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_CC+set}" = set; then
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$CC"; then
6603   ac_cv_prog_CC="$CC" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6613     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 CC=$ac_cv_prog_CC
6623 if test -n "$CC"; then
6624   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6625 $as_echo "$CC" >&6; }
6626 else
6627   { $as_echo "$as_me:$LINENO: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631
6632     test -n "$CC" && break
6633   done
6634 fi
6635 if test -z "$CC"; then
6636   ac_ct_CC=$CC
6637   for ac_prog in cl.exe
6638 do
6639   # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy $ac_prog; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$ac_ct_CC"; then
6647   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_ac_ct_CC="$ac_prog"
6657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6667 if test -n "$ac_ct_CC"; then
6668   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6669 $as_echo "$ac_ct_CC" >&6; }
6670 else
6671   { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676   test -n "$ac_ct_CC" && break
6677 done
6678
6679   if test "x$ac_ct_CC" = x; then
6680     CC=""
6681   else
6682     case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688     CC=$ac_ct_CC
6689   fi
6690 fi
6691
6692 fi
6693
6694
6695 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6697 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6698 See \`config.log' for more details." >&5
6699 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6700 See \`config.log' for more details." >&2;}
6701    { (exit 1); exit 1; }; }; }
6702
6703 # Provide some information about the compiler.
6704 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6705 set X $ac_compile
6706 ac_compiler=$2
6707 { (ac_try="$ac_compiler --version >&5"
6708 case "(($ac_try" in
6709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710   *) ac_try_echo=$ac_try;;
6711 esac
6712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6713 $as_echo "$ac_try_echo") >&5
6714   (eval "$ac_compiler --version >&5") 2>&5
6715   ac_status=$?
6716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); }
6718 { (ac_try="$ac_compiler -v >&5"
6719 case "(($ac_try" in
6720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721   *) ac_try_echo=$ac_try;;
6722 esac
6723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6724 $as_echo "$ac_try_echo") >&5
6725   (eval "$ac_compiler -v >&5") 2>&5
6726   ac_status=$?
6727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }
6729 { (ac_try="$ac_compiler -V >&5"
6730 case "(($ac_try" in
6731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732   *) ac_try_echo=$ac_try;;
6733 esac
6734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6735 $as_echo "$ac_try_echo") >&5
6736   (eval "$ac_compiler -V >&5") 2>&5
6737   ac_status=$?
6738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); }
6740
6741 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6743 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6744   $as_echo_n "(cached) " >&6
6745 else
6746   cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h.  */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h.  */
6752
6753 int
6754 main ()
6755 {
6756 #ifndef __GNUC__
6757        choke me
6758 #endif
6759
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6766 case "(($ac_try" in
6767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768   *) ac_try_echo=$ac_try;;
6769 esac
6770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771 $as_echo "$ac_try_echo") >&5
6772   (eval "$ac_compile") 2>conftest.er1
6773   ac_status=$?
6774   grep -v '^ *+' conftest.er1 >conftest.err
6775   rm -f conftest.er1
6776   cat conftest.err >&5
6777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); } && {
6779          test -z "$ac_c_werror_flag" ||
6780          test ! -s conftest.err
6781        } && test -s conftest.$ac_objext; then
6782   ac_compiler_gnu=yes
6783 else
6784   $as_echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787         ac_compiler_gnu=no
6788 fi
6789
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6792
6793 fi
6794 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6796 if test $ac_compiler_gnu = yes; then
6797   GCC=yes
6798 else
6799   GCC=
6800 fi
6801 ac_test_CFLAGS=${CFLAGS+set}
6802 ac_save_CFLAGS=$CFLAGS
6803 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6805 if test "${ac_cv_prog_cc_g+set}" = set; then
6806   $as_echo_n "(cached) " >&6
6807 else
6808   ac_save_c_werror_flag=$ac_c_werror_flag
6809    ac_c_werror_flag=yes
6810    ac_cv_prog_cc_g=no
6811    CFLAGS="-g"
6812    cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h.  */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h.  */
6818
6819 int
6820 main ()
6821 {
6822
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831   *) ac_try_echo=$ac_try;;
6832 esac
6833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834 $as_echo "$ac_try_echo") >&5
6835   (eval "$ac_compile") 2>conftest.er1
6836   ac_status=$?
6837   grep -v '^ *+' conftest.er1 >conftest.err
6838   rm -f conftest.er1
6839   cat conftest.err >&5
6840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); } && {
6842          test -z "$ac_c_werror_flag" ||
6843          test ! -s conftest.err
6844        } && test -s conftest.$ac_objext; then
6845   ac_cv_prog_cc_g=yes
6846 else
6847   $as_echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850         CFLAGS=""
6851       cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h.  */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h.  */
6857
6858 int
6859 main ()
6860 {
6861
6862   ;
6863   return 0;
6864 }
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870   *) ac_try_echo=$ac_try;;
6871 esac
6872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873 $as_echo "$ac_try_echo") >&5
6874   (eval "$ac_compile") 2>conftest.er1
6875   ac_status=$?
6876   grep -v '^ *+' conftest.er1 >conftest.err
6877   rm -f conftest.er1
6878   cat conftest.err >&5
6879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); } && {
6881          test -z "$ac_c_werror_flag" ||
6882          test ! -s conftest.err
6883        } && test -s conftest.$ac_objext; then
6884   :
6885 else
6886   $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889         ac_c_werror_flag=$ac_save_c_werror_flag
6890          CFLAGS="-g"
6891          cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897
6898 int
6899 main ()
6900 {
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913 $as_echo "$ac_try_echo") >&5
6914   (eval "$ac_compile") 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } && {
6921          test -z "$ac_c_werror_flag" ||
6922          test ! -s conftest.err
6923        } && test -s conftest.$ac_objext; then
6924   ac_cv_prog_cc_g=yes
6925 else
6926   $as_echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929
6930 fi
6931
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 fi
6934
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 fi
6937
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939    ac_c_werror_flag=$ac_save_c_werror_flag
6940 fi
6941 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6942 $as_echo "$ac_cv_prog_cc_g" >&6; }
6943 if test "$ac_test_CFLAGS" = set; then
6944   CFLAGS=$ac_save_CFLAGS
6945 elif test $ac_cv_prog_cc_g = yes; then
6946   if test "$GCC" = yes; then
6947     CFLAGS="-g -O2"
6948   else
6949     CFLAGS="-g"
6950   fi
6951 else
6952   if test "$GCC" = yes; then
6953     CFLAGS="-O2"
6954   else
6955     CFLAGS=
6956   fi
6957 fi
6958 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6960 if test "${ac_cv_prog_cc_c89+set}" = set; then
6961   $as_echo_n "(cached) " >&6
6962 else
6963   ac_cv_prog_cc_c89=no
6964 ac_save_CC=$CC
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h.  */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h.  */
6971 #include <stdarg.h>
6972 #include <stdio.h>
6973 #include <sys/types.h>
6974 #include <sys/stat.h>
6975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6976 struct buf { int x; };
6977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6978 static char *e (p, i)
6979      char **p;
6980      int i;
6981 {
6982   return p[i];
6983 }
6984 static char *f (char * (*g) (char **, int), char **p, ...)
6985 {
6986   char *s;
6987   va_list v;
6988   va_start (v,p);
6989   s = g (p, va_arg (v,int));
6990   va_end (v);
6991   return s;
6992 }
6993
6994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6995    function prototypes and stuff, but not '\xHH' hex character constants.
6996    These don't provoke an error unfortunately, instead are silently treated
6997    as 'x'.  The following induces an error, until -std is added to get
6998    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6999    array size at least.  It's necessary to write '\x00'==0 to get something
7000    that's true only with -std.  */
7001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7002
7003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7004    inside strings and character constants.  */
7005 #define FOO(x) 'x'
7006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7007
7008 int test (int i, double x);
7009 struct s1 {int (*f) (int a);};
7010 struct s2 {int (*f) (double a);};
7011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7012 int argc;
7013 char **argv;
7014 int
7015 main ()
7016 {
7017 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7018   ;
7019   return 0;
7020 }
7021 _ACEOF
7022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7023         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7024 do
7025   CC="$ac_save_CC $ac_arg"
7026   rm -f conftest.$ac_objext
7027 if { (ac_try="$ac_compile"
7028 case "(($ac_try" in
7029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030   *) ac_try_echo=$ac_try;;
7031 esac
7032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7033 $as_echo "$ac_try_echo") >&5
7034   (eval "$ac_compile") 2>conftest.er1
7035   ac_status=$?
7036   grep -v '^ *+' conftest.er1 >conftest.err
7037   rm -f conftest.er1
7038   cat conftest.err >&5
7039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } && {
7041          test -z "$ac_c_werror_flag" ||
7042          test ! -s conftest.err
7043        } && test -s conftest.$ac_objext; then
7044   ac_cv_prog_cc_c89=$ac_arg
7045 else
7046   $as_echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049
7050 fi
7051
7052 rm -f core conftest.err conftest.$ac_objext
7053   test "x$ac_cv_prog_cc_c89" != "xno" && break
7054 done
7055 rm -f conftest.$ac_ext
7056 CC=$ac_save_CC
7057
7058 fi
7059 # AC_CACHE_VAL
7060 case "x$ac_cv_prog_cc_c89" in
7061   x)
7062     { $as_echo "$as_me:$LINENO: result: none needed" >&5
7063 $as_echo "none needed" >&6; } ;;
7064   xno)
7065     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
7066 $as_echo "unsupported" >&6; } ;;
7067   *)
7068     CC="$CC $ac_cv_prog_cc_c89"
7069     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
7070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7071 esac
7072
7073
7074 ac_ext=c
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
7080 depcc="$CC"   am_compiler_list=
7081
7082 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7083 $as_echo_n "checking dependency style of $depcc... " >&6; }
7084 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7085   $as_echo_n "(cached) " >&6
7086 else
7087   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7088   # We make a subdir and do the tests there.  Otherwise we can end up
7089   # making bogus files that we don't know about and never remove.  For
7090   # instance it was reported that on HP-UX the gcc test will end up
7091   # making a dummy file named `D' -- because `-MD' means `put the output
7092   # in D'.
7093   mkdir conftest.dir
7094   # Copy depcomp to subdir because otherwise we won't find it if we're
7095   # using a relative directory.
7096   cp "$am_depcomp" conftest.dir
7097   cd conftest.dir
7098   # We will build objects and dependencies in a subdirectory because
7099   # it helps to detect inapplicable dependency modes.  For instance
7100   # both Tru64's cc and ICC support -MD to output dependencies as a
7101   # side effect of compilation, but ICC will put the dependencies in
7102   # the current directory while Tru64 will put them in the object
7103   # directory.
7104   mkdir sub
7105
7106   am_cv_CC_dependencies_compiler_type=none
7107   if test "$am_compiler_list" = ""; then
7108      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7109   fi
7110   am__universal=false
7111   case " $depcc " in #(
7112      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7113      esac
7114
7115   for depmode in $am_compiler_list; do
7116     # Setup a source with many dependencies, because some compilers
7117     # like to wrap large dependency lists on column 80 (with \), and
7118     # we should not choose a depcomp mode which is confused by this.
7119     #
7120     # We need to recreate these files for each test, as the compiler may
7121     # overwrite some of them when testing with obscure command lines.
7122     # This happens at least with the AIX C compiler.
7123     : > sub/conftest.c
7124     for i in 1 2 3 4 5 6; do
7125       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7126       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7127       # Solaris 8's {/usr,}/bin/sh.
7128       touch sub/conftst$i.h
7129     done
7130     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7131
7132     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7133     # mode.  It turns out that the SunPro C++ compiler does not properly
7134     # handle `-M -o', and we need to detect this.  Also, some Intel
7135     # versions had trouble with output in subdirs
7136     am__obj=sub/conftest.${OBJEXT-o}
7137     am__minus_obj="-o $am__obj"
7138     case $depmode in
7139     gcc)
7140       # This depmode causes a compiler race in universal mode.
7141       test "$am__universal" = false || continue
7142       ;;
7143     nosideeffect)
7144       # after this tag, mechanisms are not by side-effect, so they'll
7145       # only be used when explicitly requested
7146       if test "x$enable_dependency_tracking" = xyes; then
7147         continue
7148       else
7149         break
7150       fi
7151       ;;
7152     msvisualcpp | msvcmsys)
7153       # This compiler won't grok `-c -o', but also, the minuso test has
7154       # not run yet.  These depmodes are late enough in the game, and
7155       # so weak that their functioning should not be impacted.
7156       am__obj=conftest.${OBJEXT-o}
7157       am__minus_obj=
7158       ;;
7159     none) break ;;
7160     esac
7161     if depmode=$depmode \
7162        source=sub/conftest.c object=$am__obj \
7163        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7164        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7165          >/dev/null 2>conftest.err &&
7166        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7167        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7168        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7169        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7170       # icc doesn't choke on unknown options, it will just issue warnings
7171       # or remarks (even with -Werror).  So we grep stderr for any message
7172       # that says an option was ignored or not supported.
7173       # When given -MP, icc 7.0 and 7.1 complain thusly:
7174       #   icc: Command line warning: ignoring option '-M'; no argument required
7175       # The diagnosis changed in icc 8.0:
7176       #   icc: Command line remark: option '-MP' not supported
7177       if (grep 'ignoring option' conftest.err ||
7178           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7179         am_cv_CC_dependencies_compiler_type=$depmode
7180         break
7181       fi
7182     fi
7183   done
7184
7185   cd ..
7186   rm -rf conftest.dir
7187 else
7188   am_cv_CC_dependencies_compiler_type=none
7189 fi
7190
7191 fi
7192 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7193 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7195
7196  if
7197   test "x$enable_dependency_tracking" != xno \
7198   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7199   am__fastdepCC_TRUE=
7200   am__fastdepCC_FALSE='#'
7201 else
7202   am__fastdepCC_TRUE='#'
7203   am__fastdepCC_FALSE=
7204 fi
7205
7206
7207 ac_ext=c
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7212 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7213 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7214 # On Suns, sometimes $CPP names a directory.
7215 if test -n "$CPP" && test -d "$CPP"; then
7216   CPP=
7217 fi
7218 if test -z "$CPP"; then
7219   if test "${ac_cv_prog_CPP+set}" = set; then
7220   $as_echo_n "(cached) " >&6
7221 else
7222       # Double quotes because CPP needs to be expanded
7223     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7224     do
7225       ac_preproc_ok=false
7226 for ac_c_preproc_warn_flag in '' yes
7227 do
7228   # Use a header file that comes with gcc, so configuring glibc
7229   # with a fresh cross-compiler works.
7230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231   # <limits.h> exists even on freestanding compilers.
7232   # On the NeXT, cc -E runs the code through the compiler's parser,
7233   # not just through cpp. "Syntax error" is here to catch this case.
7234   cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240 #ifdef __STDC__
7241 # include <limits.h>
7242 #else
7243 # include <assert.h>
7244 #endif
7245                      Syntax error
7246 _ACEOF
7247 if { (ac_try="$ac_cpp conftest.$ac_ext"
7248 case "(($ac_try" in
7249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250   *) ac_try_echo=$ac_try;;
7251 esac
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } >/dev/null && {
7261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7262          test ! -s conftest.err
7263        }; then
7264   :
7265 else
7266   $as_echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269   # Broken: fails on valid input.
7270 continue
7271 fi
7272
7273 rm -f conftest.err conftest.$ac_ext
7274
7275   # OK, works on sane cases.  Now check whether nonexistent headers
7276   # can be detected and how.
7277   cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h.  */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h.  */
7283 #include <ac_nonexistent.h>
7284 _ACEOF
7285 if { (ac_try="$ac_cpp conftest.$ac_ext"
7286 case "(($ac_try" in
7287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288   *) ac_try_echo=$ac_try;;
7289 esac
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7293   ac_status=$?
7294   grep -v '^ *+' conftest.er1 >conftest.err
7295   rm -f conftest.er1
7296   cat conftest.err >&5
7297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); } >/dev/null && {
7299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7300          test ! -s conftest.err
7301        }; then
7302   # Broken: success on invalid input.
7303 continue
7304 else
7305   $as_echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308   # Passes both tests.
7309 ac_preproc_ok=:
7310 break
7311 fi
7312
7313 rm -f conftest.err conftest.$ac_ext
7314
7315 done
7316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317 rm -f conftest.err conftest.$ac_ext
7318 if $ac_preproc_ok; then
7319   break
7320 fi
7321
7322     done
7323     ac_cv_prog_CPP=$CPP
7324
7325 fi
7326   CPP=$ac_cv_prog_CPP
7327 else
7328   ac_cv_prog_CPP=$CPP
7329 fi
7330 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7331 $as_echo "$CPP" >&6; }
7332 ac_preproc_ok=false
7333 for ac_c_preproc_warn_flag in '' yes
7334 do
7335   # Use a header file that comes with gcc, so configuring glibc
7336   # with a fresh cross-compiler works.
7337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338   # <limits.h> exists even on freestanding compilers.
7339   # On the NeXT, cc -E runs the code through the compiler's parser,
7340   # not just through cpp. "Syntax error" is here to catch this case.
7341   cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347 #ifdef __STDC__
7348 # include <limits.h>
7349 #else
7350 # include <assert.h>
7351 #endif
7352                      Syntax error
7353 _ACEOF
7354 if { (ac_try="$ac_cpp conftest.$ac_ext"
7355 case "(($ac_try" in
7356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357   *) ac_try_echo=$ac_try;;
7358 esac
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7362   ac_status=$?
7363   grep -v '^ *+' conftest.er1 >conftest.err
7364   rm -f conftest.er1
7365   cat conftest.err >&5
7366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); } >/dev/null && {
7368          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7369          test ! -s conftest.err
7370        }; then
7371   :
7372 else
7373   $as_echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376   # Broken: fails on valid input.
7377 continue
7378 fi
7379
7380 rm -f conftest.err conftest.$ac_ext
7381
7382   # OK, works on sane cases.  Now check whether nonexistent headers
7383   # can be detected and how.
7384   cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h.  */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h.  */
7390 #include <ac_nonexistent.h>
7391 _ACEOF
7392 if { (ac_try="$ac_cpp conftest.$ac_ext"
7393 case "(($ac_try" in
7394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395   *) ac_try_echo=$ac_try;;
7396 esac
7397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7398 $as_echo "$ac_try_echo") >&5
7399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7400   ac_status=$?
7401   grep -v '^ *+' conftest.er1 >conftest.err
7402   rm -f conftest.er1
7403   cat conftest.err >&5
7404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } >/dev/null && {
7406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7407          test ! -s conftest.err
7408        }; then
7409   # Broken: success on invalid input.
7410 continue
7411 else
7412   $as_echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415   # Passes both tests.
7416 ac_preproc_ok=:
7417 break
7418 fi
7419
7420 rm -f conftest.err conftest.$ac_ext
7421
7422 done
7423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7424 rm -f conftest.err conftest.$ac_ext
7425 if $ac_preproc_ok; then
7426   :
7427 else
7428   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7430 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7431 See \`config.log' for more details." >&5
7432 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7433 See \`config.log' for more details." >&2;}
7434    { (exit 1); exit 1; }; }; }
7435 fi
7436
7437 ac_ext=c
7438 ac_cpp='$CPP $CPPFLAGS'
7439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
7443 # Find a good install program.  We prefer a C program (faster),
7444 # so one script is as good as another.  But avoid the broken or
7445 # incompatible versions:
7446 # SysV /etc/install, /usr/sbin/install
7447 # SunOS /usr/etc/install
7448 # IRIX /sbin/install
7449 # AIX /bin/install
7450 # AmigaOS /C/install, which installs bootblocks on floppy discs
7451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7454 # OS/2's system install, which has a completely different semantic
7455 # ./install, which can be erroneously created by make from ./install.sh.
7456 # Reject install programs that cannot install multiple files.
7457 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7458 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7459 if test -z "$INSTALL"; then
7460 if test "${ac_cv_path_install+set}" = set; then
7461   $as_echo_n "(cached) " >&6
7462 else
7463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   # Account for people who put trailing slashes in PATH elements.
7469 case $as_dir/ in
7470   ./ | .// | /cC/* | \
7471   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7472   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7473   /usr/ucb/* ) ;;
7474   *)
7475     # OSF1 and SCO ODT 3.0 have their own names for install.
7476     # Don't use installbsd from OSF since it installs stuff as root
7477     # by default.
7478     for ac_prog in ginstall scoinst install; do
7479       for ac_exec_ext in '' $ac_executable_extensions; do
7480         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7481           if test $ac_prog = install &&
7482             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7483             # AIX install.  It has an incompatible calling convention.
7484             :
7485           elif test $ac_prog = install &&
7486             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7487             # program-specific install script used by HP pwplus--don't use.
7488             :
7489           else
7490             rm -rf conftest.one conftest.two conftest.dir
7491             echo one > conftest.one
7492             echo two > conftest.two
7493             mkdir conftest.dir
7494             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7495               test -s conftest.one && test -s conftest.two &&
7496               test -s conftest.dir/conftest.one &&
7497               test -s conftest.dir/conftest.two
7498             then
7499               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7500               break 3
7501             fi
7502           fi
7503         fi
7504       done
7505     done
7506     ;;
7507 esac
7508
7509 done
7510 IFS=$as_save_IFS
7511
7512 rm -rf conftest.one conftest.two conftest.dir
7513
7514 fi
7515   if test "${ac_cv_path_install+set}" = set; then
7516     INSTALL=$ac_cv_path_install
7517   else
7518     # As a last resort, use the slow shell script.  Don't cache a
7519     # value for INSTALL within a source directory, because that will
7520     # break other packages using the cache if that directory is
7521     # removed, or if the value is a relative name.
7522     INSTALL=$ac_install_sh
7523   fi
7524 fi
7525 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7526 $as_echo "$INSTALL" >&6; }
7527
7528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7529 # It thinks the first close brace ends the variable substitution.
7530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7531
7532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7533
7534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7535
7536 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7537 $as_echo_n "checking whether ln -s works... " >&6; }
7538 LN_S=$as_ln_s
7539 if test "$LN_S" = "ln -s"; then
7540   { $as_echo "$as_me:$LINENO: result: yes" >&5
7541 $as_echo "yes" >&6; }
7542 else
7543   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7544 $as_echo "no, using $LN_S" >&6; }
7545 fi
7546
7547 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7548 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7549 set x ${MAKE-make}
7550 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7551 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7552   $as_echo_n "(cached) " >&6
7553 else
7554   cat >conftest.make <<\_ACEOF
7555 SHELL = /bin/sh
7556 all:
7557         @echo '@@@%%%=$(MAKE)=@@@%%%'
7558 _ACEOF
7559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7560 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7561   *@@@%%%=?*=@@@%%%*)
7562     eval ac_cv_prog_make_${ac_make}_set=yes;;
7563   *)
7564     eval ac_cv_prog_make_${ac_make}_set=no;;
7565 esac
7566 rm -f conftest.make
7567 fi
7568 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7569   { $as_echo "$as_me:$LINENO: result: yes" >&5
7570 $as_echo "yes" >&6; }
7571   SET_MAKE=
7572 else
7573   { $as_echo "$as_me:$LINENO: result: no" >&5
7574 $as_echo "no" >&6; }
7575   SET_MAKE="MAKE=${MAKE-make}"
7576 fi
7577
7578 case `pwd` in
7579   *\ * | *\     *)
7580     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7581 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7582 esac
7583
7584
7585
7586 macro_version='2.2.6b'
7587 macro_revision='1.3017'
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601 ltmain="$ac_aux_dir/ltmain.sh"
7602
7603 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7604 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7605 if test "${ac_cv_path_SED+set}" = set; then
7606   $as_echo_n "(cached) " >&6
7607 else
7608             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7609      for ac_i in 1 2 3 4 5 6 7; do
7610        ac_script="$ac_script$as_nl$ac_script"
7611      done
7612      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7613      $as_unset ac_script || ac_script=
7614      if test -z "$SED"; then
7615   ac_path_SED_found=false
7616   # Loop through the user's path and test for each of PROGNAME-LIST
7617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620   IFS=$as_save_IFS
7621   test -z "$as_dir" && as_dir=.
7622   for ac_prog in sed gsed; do
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7625       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7626 # Check for GNU ac_path_SED and select it if it is found.
7627   # Check for GNU $ac_path_SED
7628 case `"$ac_path_SED" --version 2>&1` in
7629 *GNU*)
7630   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7631 *)
7632   ac_count=0
7633   $as_echo_n 0123456789 >"conftest.in"
7634   while :
7635   do
7636     cat "conftest.in" "conftest.in" >"conftest.tmp"
7637     mv "conftest.tmp" "conftest.in"
7638     cp "conftest.in" "conftest.nl"
7639     $as_echo '' >> "conftest.nl"
7640     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7642     ac_count=`expr $ac_count + 1`
7643     if test $ac_count -gt ${ac_path_SED_max-0}; then
7644       # Best one so far, save it but keep looking for a better one
7645       ac_cv_path_SED="$ac_path_SED"
7646       ac_path_SED_max=$ac_count
7647     fi
7648     # 10*(2^10) chars as input seems more than enough
7649     test $ac_count -gt 10 && break
7650   done
7651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7652 esac
7653
7654       $ac_path_SED_found && break 3
7655     done
7656   done
7657 done
7658 IFS=$as_save_IFS
7659   if test -z "$ac_cv_path_SED"; then
7660     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7661 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7662    { (exit 1); exit 1; }; }
7663   fi
7664 else
7665   ac_cv_path_SED=$SED
7666 fi
7667
7668 fi
7669 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7670 $as_echo "$ac_cv_path_SED" >&6; }
7671  SED="$ac_cv_path_SED"
7672   rm -f conftest.sed
7673
7674 test -z "$SED" && SED=sed
7675 Xsed="$SED -e 1s/^X//"
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7688 $as_echo_n "checking for fgrep... " >&6; }
7689 if test "${ac_cv_path_FGREP+set}" = set; then
7690   $as_echo_n "(cached) " >&6
7691 else
7692   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7693    then ac_cv_path_FGREP="$GREP -F"
7694    else
7695      if test -z "$FGREP"; then
7696   ac_path_FGREP_found=false
7697   # Loop through the user's path and test for each of PROGNAME-LIST
7698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703   for ac_prog in fgrep; do
7704     for ac_exec_ext in '' $ac_executable_extensions; do
7705       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7706       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7707 # Check for GNU ac_path_FGREP and select it if it is found.
7708   # Check for GNU $ac_path_FGREP
7709 case `"$ac_path_FGREP" --version 2>&1` in
7710 *GNU*)
7711   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7712 *)
7713   ac_count=0
7714   $as_echo_n 0123456789 >"conftest.in"
7715   while :
7716   do
7717     cat "conftest.in" "conftest.in" >"conftest.tmp"
7718     mv "conftest.tmp" "conftest.in"
7719     cp "conftest.in" "conftest.nl"
7720     $as_echo 'FGREP' >> "conftest.nl"
7721     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7723     ac_count=`expr $ac_count + 1`
7724     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7725       # Best one so far, save it but keep looking for a better one
7726       ac_cv_path_FGREP="$ac_path_FGREP"
7727       ac_path_FGREP_max=$ac_count
7728     fi
7729     # 10*(2^10) chars as input seems more than enough
7730     test $ac_count -gt 10 && break
7731   done
7732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7733 esac
7734
7735       $ac_path_FGREP_found && break 3
7736     done
7737   done
7738 done
7739 IFS=$as_save_IFS
7740   if test -z "$ac_cv_path_FGREP"; then
7741     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7742 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7743    { (exit 1); exit 1; }; }
7744   fi
7745 else
7746   ac_cv_path_FGREP=$FGREP
7747 fi
7748
7749    fi
7750 fi
7751 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7752 $as_echo "$ac_cv_path_FGREP" >&6; }
7753  FGREP="$ac_cv_path_FGREP"
7754
7755
7756 test -z "$GREP" && GREP=grep
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 # Check whether --with-gnu-ld was given.
7777 if test "${with_gnu_ld+set}" = set; then
7778   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7779 else
7780   with_gnu_ld=no
7781 fi
7782
7783 ac_prog=ld
7784 if test "$GCC" = yes; then
7785   # Check if gcc -print-prog-name=ld gives a path.
7786   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7787 $as_echo_n "checking for ld used by $CC... " >&6; }
7788   case $host in
7789   *-*-mingw*)
7790     # gcc leaves a trailing carriage return which upsets mingw
7791     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7792   *)
7793     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7794   esac
7795   case $ac_prog in
7796     # Accept absolute paths.
7797     [\\/]* | ?:[\\/]*)
7798       re_direlt='/[^/][^/]*/\.\./'
7799       # Canonicalize the pathname of ld
7800       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7801       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7802         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7803       done
7804       test -z "$LD" && LD="$ac_prog"
7805       ;;
7806   "")
7807     # If it fails, then pretend we aren't using GCC.
7808     ac_prog=ld
7809     ;;
7810   *)
7811     # If it is relative, then search for the first ld in PATH.
7812     with_gnu_ld=unknown
7813     ;;
7814   esac
7815 elif test "$with_gnu_ld" = yes; then
7816   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7817 $as_echo_n "checking for GNU ld... " >&6; }
7818 else
7819   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7820 $as_echo_n "checking for non-GNU ld... " >&6; }
7821 fi
7822 if test "${lt_cv_path_LD+set}" = set; then
7823   $as_echo_n "(cached) " >&6
7824 else
7825   if test -z "$LD"; then
7826   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7827   for ac_dir in $PATH; do
7828     IFS="$lt_save_ifs"
7829     test -z "$ac_dir" && ac_dir=.
7830     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7831       lt_cv_path_LD="$ac_dir/$ac_prog"
7832       # Check to see if the program is GNU ld.  I'd rather use --version,
7833       # but apparently some variants of GNU ld only accept -v.
7834       # Break only if it was the GNU/non-GNU ld that we prefer.
7835       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7836       *GNU* | *'with BFD'*)
7837         test "$with_gnu_ld" != no && break
7838         ;;
7839       *)
7840         test "$with_gnu_ld" != yes && break
7841         ;;
7842       esac
7843     fi
7844   done
7845   IFS="$lt_save_ifs"
7846 else
7847   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7848 fi
7849 fi
7850
7851 LD="$lt_cv_path_LD"
7852 if test -n "$LD"; then
7853   { $as_echo "$as_me:$LINENO: result: $LD" >&5
7854 $as_echo "$LD" >&6; }
7855 else
7856   { $as_echo "$as_me:$LINENO: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7860 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7861    { (exit 1); exit 1; }; }
7862 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7864 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7865   $as_echo_n "(cached) " >&6
7866 else
7867   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7868 case `$LD -v 2>&1 </dev/null` in
7869 *GNU* | *'with BFD'*)
7870   lt_cv_prog_gnu_ld=yes
7871   ;;
7872 *)
7873   lt_cv_prog_gnu_ld=no
7874   ;;
7875 esac
7876 fi
7877 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7879 with_gnu_ld=$lt_cv_prog_gnu_ld
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7891 if test "${lt_cv_path_NM+set}" = set; then
7892   $as_echo_n "(cached) " >&6
7893 else
7894   if test -n "$NM"; then
7895   # Let the user override the test.
7896   lt_cv_path_NM="$NM"
7897 else
7898   lt_nm_to_check="${ac_tool_prefix}nm"
7899   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7900     lt_nm_to_check="$lt_nm_to_check nm"
7901   fi
7902   for lt_tmp_nm in $lt_nm_to_check; do
7903     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7904     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7905       IFS="$lt_save_ifs"
7906       test -z "$ac_dir" && ac_dir=.
7907       tmp_nm="$ac_dir/$lt_tmp_nm"
7908       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7909         # Check to see if the nm accepts a BSD-compat flag.
7910         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7911         #   nm: unknown option "B" ignored
7912         # Tru64's nm complains that /dev/null is an invalid object file
7913         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7914         */dev/null* | *'Invalid file or object type'*)
7915           lt_cv_path_NM="$tmp_nm -B"
7916           break
7917           ;;
7918         *)
7919           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7920           */dev/null*)
7921             lt_cv_path_NM="$tmp_nm -p"
7922             break
7923             ;;
7924           *)
7925             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7926             continue # so that we can try to find one that supports BSD flags
7927             ;;
7928           esac
7929           ;;
7930         esac
7931       fi
7932     done
7933     IFS="$lt_save_ifs"
7934   done
7935   : ${lt_cv_path_NM=no}
7936 fi
7937 fi
7938 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7939 $as_echo "$lt_cv_path_NM" >&6; }
7940 if test "$lt_cv_path_NM" != "no"; then
7941   NM="$lt_cv_path_NM"
7942 else
7943   # Didn't find any BSD compatible name lister, look for dumpbin.
7944   if test -n "$ac_tool_prefix"; then
7945   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7946   do
7947     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7952   $as_echo_n "(cached) " >&6
7953 else
7954   if test -n "$DUMPBIN"; then
7955   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960   IFS=$as_save_IFS
7961   test -z "$as_dir" && as_dir=.
7962   for ac_exec_ext in '' $ac_executable_extensions; do
7963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7965     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966     break 2
7967   fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 DUMPBIN=$ac_cv_prog_DUMPBIN
7975 if test -n "$DUMPBIN"; then
7976   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7977 $as_echo "$DUMPBIN" >&6; }
7978 else
7979   { $as_echo "$as_me:$LINENO: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984     test -n "$DUMPBIN" && break
7985   done
7986 fi
7987 if test -z "$DUMPBIN"; then
7988   ac_ct_DUMPBIN=$DUMPBIN
7989   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7990 do
7991   # Extract the first word of "$ac_prog", so it can be a program name with args.
7992 set dummy $ac_prog; ac_word=$2
7993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7996   $as_echo_n "(cached) " >&6
7997 else
7998   if test -n "$ac_ct_DUMPBIN"; then
7999   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   test -z "$as_dir" && as_dir=.
8006   for ac_exec_ext in '' $ac_executable_extensions; do
8007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8009     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010     break 2
8011   fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8019 if test -n "$ac_ct_DUMPBIN"; then
8020   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8021 $as_echo "$ac_ct_DUMPBIN" >&6; }
8022 else
8023   { $as_echo "$as_me:$LINENO: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028   test -n "$ac_ct_DUMPBIN" && break
8029 done
8030
8031   if test "x$ac_ct_DUMPBIN" = x; then
8032     DUMPBIN=":"
8033   else
8034     case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8039 esac
8040     DUMPBIN=$ac_ct_DUMPBIN
8041   fi
8042 fi
8043
8044
8045   if test "$DUMPBIN" != ":"; then
8046     NM="$DUMPBIN"
8047   fi
8048 fi
8049 test -z "$NM" && NM=nm
8050
8051
8052
8053
8054
8055
8056 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8057 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8058 if test "${lt_cv_nm_interface+set}" = set; then
8059   $as_echo_n "(cached) " >&6
8060 else
8061   lt_cv_nm_interface="BSD nm"
8062   echo "int some_variable = 0;" > conftest.$ac_ext
8063   (eval echo "\"\$as_me:8063: $ac_compile\"" >&5)
8064   (eval "$ac_compile" 2>conftest.err)
8065   cat conftest.err >&5
8066   (eval echo "\"\$as_me:8066: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8067   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8068   cat conftest.err >&5
8069   (eval echo "\"\$as_me:8069: output\"" >&5)
8070   cat conftest.out >&5
8071   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8072     lt_cv_nm_interface="MS dumpbin"
8073   fi
8074   rm -f conftest*
8075 fi
8076 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8077 $as_echo "$lt_cv_nm_interface" >&6; }
8078
8079 # find the maximum length of command line arguments
8080 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8081 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8082 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8083   $as_echo_n "(cached) " >&6
8084 else
8085     i=0
8086   teststring="ABCD"
8087
8088   case $build_os in
8089   msdosdjgpp*)
8090     # On DJGPP, this test can blow up pretty badly due to problems in libc
8091     # (any single argument exceeding 2000 bytes causes a buffer overrun
8092     # during glob expansion).  Even if it were fixed, the result of this
8093     # check would be larger than it should be.
8094     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8095     ;;
8096
8097   gnu*)
8098     # Under GNU Hurd, this test is not required because there is
8099     # no limit to the length of command line arguments.
8100     # Libtool will interpret -1 as no limit whatsoever
8101     lt_cv_sys_max_cmd_len=-1;
8102     ;;
8103
8104   cygwin* | mingw* | cegcc*)
8105     # On Win9x/ME, this test blows up -- it succeeds, but takes
8106     # about 5 minutes as the teststring grows exponentially.
8107     # Worse, since 9x/ME are not pre-emptively multitasking,
8108     # you end up with a "frozen" computer, even though with patience
8109     # the test eventually succeeds (with a max line length of 256k).
8110     # Instead, let's just punt: use the minimum linelength reported by
8111     # all of the supported platforms: 8192 (on NT/2K/XP).
8112     lt_cv_sys_max_cmd_len=8192;
8113     ;;
8114
8115   amigaos*)
8116     # On AmigaOS with pdksh, this test takes hours, literally.
8117     # So we just punt and use a minimum line length of 8192.
8118     lt_cv_sys_max_cmd_len=8192;
8119     ;;
8120
8121   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8122     # This has been around since 386BSD, at least.  Likely further.
8123     if test -x /sbin/sysctl; then
8124       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8125     elif test -x /usr/sbin/sysctl; then
8126       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8127     else
8128       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8129     fi
8130     # And add a safety zone
8131     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8132     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8133     ;;
8134
8135   interix*)
8136     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8137     lt_cv_sys_max_cmd_len=196608
8138     ;;
8139
8140   osf*)
8141     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8142     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8143     # nice to cause kernel panics so lets avoid the loop below.
8144     # First set a reasonable default.
8145     lt_cv_sys_max_cmd_len=16384
8146     #
8147     if test -x /sbin/sysconfig; then
8148       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8149         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8150       esac
8151     fi
8152     ;;
8153   sco3.2v5*)
8154     lt_cv_sys_max_cmd_len=102400
8155     ;;
8156   sysv5* | sco5v6* | sysv4.2uw2*)
8157     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8158     if test -n "$kargmax"; then
8159       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8160     else
8161       lt_cv_sys_max_cmd_len=32768
8162     fi
8163     ;;
8164   *)
8165     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8166     if test -n "$lt_cv_sys_max_cmd_len"; then
8167       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8168       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8169     else
8170       # Make teststring a little bigger before we do anything with it.
8171       # a 1K string should be a reasonable start.
8172       for i in 1 2 3 4 5 6 7 8 ; do
8173         teststring=$teststring$teststring
8174       done
8175       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8176       # If test is not a shell built-in, we'll probably end up computing a
8177       # maximum length that is only half of the actual maximum length, but
8178       # we can't tell.
8179       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8180                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8181               test $i != 17 # 1/2 MB should be enough
8182       do
8183         i=`expr $i + 1`
8184         teststring=$teststring$teststring
8185       done
8186       # Only check the string length outside the loop.
8187       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8188       teststring=
8189       # Add a significant safety factor because C++ compilers can tack on
8190       # massive amounts of additional arguments before passing them to the
8191       # linker.  It appears as though 1/2 is a usable value.
8192       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8193     fi
8194     ;;
8195   esac
8196
8197 fi
8198
8199 if test -n $lt_cv_sys_max_cmd_len ; then
8200   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8201 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8202 else
8203   { $as_echo "$as_me:$LINENO: result: none" >&5
8204 $as_echo "none" >&6; }
8205 fi
8206 max_cmd_len=$lt_cv_sys_max_cmd_len
8207
8208
8209
8210
8211
8212
8213 : ${CP="cp -f"}
8214 : ${MV="mv -f"}
8215 : ${RM="rm -f"}
8216
8217 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
8218 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8219 # Try some XSI features
8220 xsi_shell=no
8221 ( _lt_dummy="a/b/c"
8222   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8223       = c,a/b,, \
8224     && eval 'test $(( 1 + 1 )) -eq 2 \
8225     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8226   && xsi_shell=yes
8227 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
8228 $as_echo "$xsi_shell" >&6; }
8229
8230
8231 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
8232 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8233 lt_shell_append=no
8234 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8235     >/dev/null 2>&1 \
8236   && lt_shell_append=yes
8237 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
8238 $as_echo "$lt_shell_append" >&6; }
8239
8240
8241 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8242   lt_unset=unset
8243 else
8244   lt_unset=false
8245 fi
8246
8247
8248
8249
8250
8251 # test EBCDIC or ASCII
8252 case `echo X|tr X '\101'` in
8253  A) # ASCII based system
8254     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8255   lt_SP2NL='tr \040 \012'
8256   lt_NL2SP='tr \015\012 \040\040'
8257   ;;
8258  *) # EBCDIC based system
8259   lt_SP2NL='tr \100 \n'
8260   lt_NL2SP='tr \r\n \100\100'
8261   ;;
8262 esac
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8273 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8274 if test "${lt_cv_ld_reload_flag+set}" = set; then
8275   $as_echo_n "(cached) " >&6
8276 else
8277   lt_cv_ld_reload_flag='-r'
8278 fi
8279 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8280 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8281 reload_flag=$lt_cv_ld_reload_flag
8282 case $reload_flag in
8283 "" | " "*) ;;
8284 *) reload_flag=" $reload_flag" ;;
8285 esac
8286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8287 case $host_os in
8288   darwin*)
8289     if test "$GCC" = yes; then
8290       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8291     else
8292       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8293     fi
8294     ;;
8295 esac
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305 if test -n "$ac_tool_prefix"; then
8306   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8307 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8311   $as_echo_n "(cached) " >&6
8312 else
8313   if test -n "$OBJDUMP"; then
8314   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319   IFS=$as_save_IFS
8320   test -z "$as_dir" && as_dir=.
8321   for ac_exec_ext in '' $ac_executable_extensions; do
8322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8324     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325     break 2
8326   fi
8327 done
8328 done
8329 IFS=$as_save_IFS
8330
8331 fi
8332 fi
8333 OBJDUMP=$ac_cv_prog_OBJDUMP
8334 if test -n "$OBJDUMP"; then
8335   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8336 $as_echo "$OBJDUMP" >&6; }
8337 else
8338   { $as_echo "$as_me:$LINENO: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343 fi
8344 if test -z "$ac_cv_prog_OBJDUMP"; then
8345   ac_ct_OBJDUMP=$OBJDUMP
8346   # Extract the first word of "objdump", so it can be a program name with args.
8347 set dummy objdump; ac_word=$2
8348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8351   $as_echo_n "(cached) " >&6
8352 else
8353   if test -n "$ac_ct_OBJDUMP"; then
8354   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8355 else
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359   IFS=$as_save_IFS
8360   test -z "$as_dir" && as_dir=.
8361   for ac_exec_ext in '' $ac_executable_extensions; do
8362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365     break 2
8366   fi
8367 done
8368 done
8369 IFS=$as_save_IFS
8370
8371 fi
8372 fi
8373 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8374 if test -n "$ac_ct_OBJDUMP"; then
8375   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8376 $as_echo "$ac_ct_OBJDUMP" >&6; }
8377 else
8378   { $as_echo "$as_me:$LINENO: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382   if test "x$ac_ct_OBJDUMP" = x; then
8383     OBJDUMP="false"
8384   else
8385     case $cross_compiling:$ac_tool_warned in
8386 yes:)
8387 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8389 ac_tool_warned=yes ;;
8390 esac
8391     OBJDUMP=$ac_ct_OBJDUMP
8392   fi
8393 else
8394   OBJDUMP="$ac_cv_prog_OBJDUMP"
8395 fi
8396
8397 test -z "$OBJDUMP" && OBJDUMP=objdump
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8408 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8409 if test "${lt_cv_deplibs_check_method+set}" = set; then
8410   $as_echo_n "(cached) " >&6
8411 else
8412   lt_cv_file_magic_cmd='$MAGIC_CMD'
8413 lt_cv_file_magic_test_file=
8414 lt_cv_deplibs_check_method='unknown'
8415 # Need to set the preceding variable on all platforms that support
8416 # interlibrary dependencies.
8417 # 'none' -- dependencies not supported.
8418 # `unknown' -- same as none, but documents that we really don't know.
8419 # 'pass_all' -- all dependencies passed with no checks.
8420 # 'test_compile' -- check by making test program.
8421 # 'file_magic [[regex]]' -- check by looking for files in library path
8422 # which responds to the $file_magic_cmd with a given extended regex.
8423 # If you have `file' or equivalent on your system and you're not sure
8424 # whether `pass_all' will *always* work, you probably want this one.
8425
8426 case $host_os in
8427 aix[4-9]*)
8428   lt_cv_deplibs_check_method=pass_all
8429   ;;
8430
8431 beos*)
8432   lt_cv_deplibs_check_method=pass_all
8433   ;;
8434
8435 bsdi[45]*)
8436   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8437   lt_cv_file_magic_cmd='/usr/bin/file -L'
8438   lt_cv_file_magic_test_file=/shlib/libc.so
8439   ;;
8440
8441 cygwin*)
8442   # func_win32_libid is a shell function defined in ltmain.sh
8443   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8444   lt_cv_file_magic_cmd='func_win32_libid'
8445   ;;
8446
8447 mingw* | pw32*)
8448   # Base MSYS/MinGW do not provide the 'file' command needed by
8449   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8450   # unless we find 'file', for example because we are cross-compiling.
8451   if ( file / ) >/dev/null 2>&1; then
8452     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8453     lt_cv_file_magic_cmd='func_win32_libid'
8454   else
8455     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8456     lt_cv_file_magic_cmd='$OBJDUMP -f'
8457   fi
8458   ;;
8459
8460 cegcc)
8461   # use the weaker test based on 'objdump'. See mingw*.
8462   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8463   lt_cv_file_magic_cmd='$OBJDUMP -f'
8464   ;;
8465
8466 darwin* | rhapsody*)
8467   lt_cv_deplibs_check_method=pass_all
8468   ;;
8469
8470 freebsd* | dragonfly*)
8471   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8472     case $host_cpu in
8473     i*86 )
8474       # Not sure whether the presence of OpenBSD here was a mistake.
8475       # Let's accept both of them until this is cleared up.
8476       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8477       lt_cv_file_magic_cmd=/usr/bin/file
8478       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8479       ;;
8480     esac
8481   else
8482     lt_cv_deplibs_check_method=pass_all
8483   fi
8484   ;;
8485
8486 gnu*)
8487   lt_cv_deplibs_check_method=pass_all
8488   ;;
8489
8490 hpux10.20* | hpux11*)
8491   lt_cv_file_magic_cmd=/usr/bin/file
8492   case $host_cpu in
8493   ia64*)
8494     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8495     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8496     ;;
8497   hppa*64*)
8498     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]'
8499     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8500     ;;
8501   *)
8502     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8503     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8504     ;;
8505   esac
8506   ;;
8507
8508 interix[3-9]*)
8509   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8510   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8511   ;;
8512
8513 irix5* | irix6* | nonstopux*)
8514   case $LD in
8515   *-32|*"-32 ") libmagic=32-bit;;
8516   *-n32|*"-n32 ") libmagic=N32;;
8517   *-64|*"-64 ") libmagic=64-bit;;
8518   *) libmagic=never-match;;
8519   esac
8520   lt_cv_deplibs_check_method=pass_all
8521   ;;
8522
8523 # This must be Linux ELF.
8524 linux* | k*bsd*-gnu)
8525   lt_cv_deplibs_check_method=pass_all
8526   ;;
8527
8528 netbsd*)
8529   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8530     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8531   else
8532     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8533   fi
8534   ;;
8535
8536 newos6*)
8537   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8538   lt_cv_file_magic_cmd=/usr/bin/file
8539   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8540   ;;
8541
8542 *nto* | *qnx*)
8543   lt_cv_deplibs_check_method=pass_all
8544   ;;
8545
8546 openbsd*)
8547   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8548     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8549   else
8550     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8551   fi
8552   ;;
8553
8554 osf3* | osf4* | osf5*)
8555   lt_cv_deplibs_check_method=pass_all
8556   ;;
8557
8558 rdos*)
8559   lt_cv_deplibs_check_method=pass_all
8560   ;;
8561
8562 solaris*)
8563   lt_cv_deplibs_check_method=pass_all
8564   ;;
8565
8566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8567   lt_cv_deplibs_check_method=pass_all
8568   ;;
8569
8570 sysv4 | sysv4.3*)
8571   case $host_vendor in
8572   motorola)
8573     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]'
8574     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8575     ;;
8576   ncr)
8577     lt_cv_deplibs_check_method=pass_all
8578     ;;
8579   sequent)
8580     lt_cv_file_magic_cmd='/bin/file'
8581     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8582     ;;
8583   sni)
8584     lt_cv_file_magic_cmd='/bin/file'
8585     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8586     lt_cv_file_magic_test_file=/lib/libc.so
8587     ;;
8588   siemens)
8589     lt_cv_deplibs_check_method=pass_all
8590     ;;
8591   pc)
8592     lt_cv_deplibs_check_method=pass_all
8593     ;;
8594   esac
8595   ;;
8596
8597 tpf*)
8598   lt_cv_deplibs_check_method=pass_all
8599   ;;
8600 esac
8601
8602 fi
8603 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8604 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8605 file_magic_cmd=$lt_cv_file_magic_cmd
8606 deplibs_check_method=$lt_cv_deplibs_check_method
8607 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620 if test -n "$ac_tool_prefix"; then
8621   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8622 set dummy ${ac_tool_prefix}ar; ac_word=$2
8623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_prog_AR+set}" = set; then
8626   $as_echo_n "(cached) " >&6
8627 else
8628   if test -n "$AR"; then
8629   ac_cv_prog_AR="$AR" # Let the user override the test.
8630 else
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8633 do
8634   IFS=$as_save_IFS
8635   test -z "$as_dir" && as_dir=.
8636   for ac_exec_ext in '' $ac_executable_extensions; do
8637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8638     ac_cv_prog_AR="${ac_tool_prefix}ar"
8639     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640     break 2
8641   fi
8642 done
8643 done
8644 IFS=$as_save_IFS
8645
8646 fi
8647 fi
8648 AR=$ac_cv_prog_AR
8649 if test -n "$AR"; then
8650   { $as_echo "$as_me:$LINENO: result: $AR" >&5
8651 $as_echo "$AR" >&6; }
8652 else
8653   { $as_echo "$as_me:$LINENO: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656
8657
8658 fi
8659 if test -z "$ac_cv_prog_AR"; then
8660   ac_ct_AR=$AR
8661   # Extract the first word of "ar", so it can be a program name with args.
8662 set dummy ar; ac_word=$2
8663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8666   $as_echo_n "(cached) " >&6
8667 else
8668   if test -n "$ac_ct_AR"; then
8669   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8673 do
8674   IFS=$as_save_IFS
8675   test -z "$as_dir" && as_dir=.
8676   for ac_exec_ext in '' $ac_executable_extensions; do
8677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678     ac_cv_prog_ac_ct_AR="ar"
8679     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8680     break 2
8681   fi
8682 done
8683 done
8684 IFS=$as_save_IFS
8685
8686 fi
8687 fi
8688 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8689 if test -n "$ac_ct_AR"; then
8690   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8691 $as_echo "$ac_ct_AR" >&6; }
8692 else
8693   { $as_echo "$as_me:$LINENO: result: no" >&5
8694 $as_echo "no" >&6; }
8695 fi
8696
8697   if test "x$ac_ct_AR" = x; then
8698     AR="false"
8699   else
8700     case $cross_compiling:$ac_tool_warned in
8701 yes:)
8702 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8704 ac_tool_warned=yes ;;
8705 esac
8706     AR=$ac_ct_AR
8707   fi
8708 else
8709   AR="$ac_cv_prog_AR"
8710 fi
8711
8712 test -z "$AR" && AR=ar
8713 test -z "$AR_FLAGS" && AR_FLAGS=cru
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725 if test -n "$ac_tool_prefix"; then
8726   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8727 set dummy ${ac_tool_prefix}strip; ac_word=$2
8728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if test "${ac_cv_prog_STRIP+set}" = set; then
8731   $as_echo_n "(cached) " >&6
8732 else
8733   if test -n "$STRIP"; then
8734   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741   for ac_exec_ext in '' $ac_executable_extensions; do
8742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8743     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8744     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748 done
8749 IFS=$as_save_IFS
8750
8751 fi
8752 fi
8753 STRIP=$ac_cv_prog_STRIP
8754 if test -n "$STRIP"; then
8755   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8756 $as_echo "$STRIP" >&6; }
8757 else
8758   { $as_echo "$as_me:$LINENO: result: no" >&5
8759 $as_echo "no" >&6; }
8760 fi
8761
8762
8763 fi
8764 if test -z "$ac_cv_prog_STRIP"; then
8765   ac_ct_STRIP=$STRIP
8766   # Extract the first word of "strip", so it can be a program name with args.
8767 set dummy strip; ac_word=$2
8768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8771   $as_echo_n "(cached) " >&6
8772 else
8773   if test -n "$ac_ct_STRIP"; then
8774   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779   IFS=$as_save_IFS
8780   test -z "$as_dir" && as_dir=.
8781   for ac_exec_ext in '' $ac_executable_extensions; do
8782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8783     ac_cv_prog_ac_ct_STRIP="strip"
8784     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8785     break 2
8786   fi
8787 done
8788 done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8794 if test -n "$ac_ct_STRIP"; then
8795   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8796 $as_echo "$ac_ct_STRIP" >&6; }
8797 else
8798   { $as_echo "$as_me:$LINENO: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802   if test "x$ac_ct_STRIP" = x; then
8803     STRIP=":"
8804   else
8805     case $cross_compiling:$ac_tool_warned in
8806 yes:)
8807 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8809 ac_tool_warned=yes ;;
8810 esac
8811     STRIP=$ac_ct_STRIP
8812   fi
8813 else
8814   STRIP="$ac_cv_prog_STRIP"
8815 fi
8816
8817 test -z "$STRIP" && STRIP=:
8818
8819
8820
8821
8822
8823
8824 if test -n "$ac_tool_prefix"; then
8825   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8826 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if test "${ac_cv_prog_RANLIB+set}" = set; then
8830   $as_echo_n "(cached) " >&6
8831 else
8832   if test -n "$RANLIB"; then
8833   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838   IFS=$as_save_IFS
8839   test -z "$as_dir" && as_dir=.
8840   for ac_exec_ext in '' $ac_executable_extensions; do
8841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8843     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8844     break 2
8845   fi
8846 done
8847 done
8848 IFS=$as_save_IFS
8849
8850 fi
8851 fi
8852 RANLIB=$ac_cv_prog_RANLIB
8853 if test -n "$RANLIB"; then
8854   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8855 $as_echo "$RANLIB" >&6; }
8856 else
8857   { $as_echo "$as_me:$LINENO: result: no" >&5
8858 $as_echo "no" >&6; }
8859 fi
8860
8861
8862 fi
8863 if test -z "$ac_cv_prog_RANLIB"; then
8864   ac_ct_RANLIB=$RANLIB
8865   # Extract the first word of "ranlib", so it can be a program name with args.
8866 set dummy ranlib; ac_word=$2
8867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8870   $as_echo_n "(cached) " >&6
8871 else
8872   if test -n "$ac_ct_RANLIB"; then
8873   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8874 else
8875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876 for as_dir in $PATH
8877 do
8878   IFS=$as_save_IFS
8879   test -z "$as_dir" && as_dir=.
8880   for ac_exec_ext in '' $ac_executable_extensions; do
8881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8882     ac_cv_prog_ac_ct_RANLIB="ranlib"
8883     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8884     break 2
8885   fi
8886 done
8887 done
8888 IFS=$as_save_IFS
8889
8890 fi
8891 fi
8892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8893 if test -n "$ac_ct_RANLIB"; then
8894   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8895 $as_echo "$ac_ct_RANLIB" >&6; }
8896 else
8897   { $as_echo "$as_me:$LINENO: result: no" >&5
8898 $as_echo "no" >&6; }
8899 fi
8900
8901   if test "x$ac_ct_RANLIB" = x; then
8902     RANLIB=":"
8903   else
8904     case $cross_compiling:$ac_tool_warned in
8905 yes:)
8906 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8908 ac_tool_warned=yes ;;
8909 esac
8910     RANLIB=$ac_ct_RANLIB
8911   fi
8912 else
8913   RANLIB="$ac_cv_prog_RANLIB"
8914 fi
8915
8916 test -z "$RANLIB" && RANLIB=:
8917
8918
8919
8920
8921
8922
8923 # Determine commands to create old-style static archives.
8924 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8925 old_postinstall_cmds='chmod 644 $oldlib'
8926 old_postuninstall_cmds=
8927
8928 if test -n "$RANLIB"; then
8929   case $host_os in
8930   openbsd*)
8931     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8932     ;;
8933   *)
8934     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8935     ;;
8936   esac
8937   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8938 fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 # If no C compiler was specified, use CC.
8974 LTCC=${LTCC-"$CC"}
8975
8976 # If no C compiler flags were specified, use CFLAGS.
8977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8978
8979 # Allow CC to be a program name with arguments.
8980 compiler=$CC
8981
8982
8983 # Check for command to grab the raw symbol name followed by C symbol from nm.
8984 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8985 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8986 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8987   $as_echo_n "(cached) " >&6
8988 else
8989
8990 # These are sane defaults that work on at least a few old systems.
8991 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8992
8993 # Character class describing NM global symbol codes.
8994 symcode='[BCDEGRST]'
8995
8996 # Regexp to match symbols that can be accessed directly from C.
8997 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8998
8999 # Define system-specific variables.
9000 case $host_os in
9001 aix*)
9002   symcode='[BCDT]'
9003   ;;
9004 cygwin* | mingw* | pw32* | cegcc*)
9005   symcode='[ABCDGISTW]'
9006   ;;
9007 hpux*)
9008   if test "$host_cpu" = ia64; then
9009     symcode='[ABCDEGRST]'
9010   fi
9011   ;;
9012 irix* | nonstopux*)
9013   symcode='[BCDEGRST]'
9014   ;;
9015 osf*)
9016   symcode='[BCDEGQRST]'
9017   ;;
9018 solaris*)
9019   symcode='[BDRT]'
9020   ;;
9021 sco3.2v5*)
9022   symcode='[DT]'
9023   ;;
9024 sysv4.2uw2*)
9025   symcode='[DT]'
9026   ;;
9027 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9028   symcode='[ABDT]'
9029   ;;
9030 sysv4)
9031   symcode='[DFNSTU]'
9032   ;;
9033 esac
9034
9035 # If we're using GNU nm, then use its standard symbol codes.
9036 case `$NM -V 2>&1` in
9037 *GNU* | *'with BFD'*)
9038   symcode='[ABCDGIRSTW]' ;;
9039 esac
9040
9041 # Transform an extracted symbol line into a proper C declaration.
9042 # Some systems (esp. on ia64) link data and code symbols differently,
9043 # so use this general approach.
9044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9045
9046 # Transform an extracted symbol line into symbol name and symbol address
9047 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9048 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'"
9049
9050 # Handle CRLF in mingw tool chain
9051 opt_cr=
9052 case $build_os in
9053 mingw*)
9054   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9055   ;;
9056 esac
9057
9058 # Try without a prefix underscore, then with it.
9059 for ac_symprfx in "" "_"; do
9060
9061   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9062   symxfrm="\\1 $ac_symprfx\\2 \\2"
9063
9064   # Write the raw and C identifiers.
9065   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9066     # Fake it for dumpbin and say T for any non-static function
9067     # and D for any global variable.
9068     # Also find C++ and __fastcall symbols from MSVC++,
9069     # which start with @ or ?.
9070     lt_cv_sys_global_symbol_pipe="$AWK '"\
9071 "     {last_section=section; section=\$ 3};"\
9072 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9073 "     \$ 0!~/External *\|/{next};"\
9074 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9075 "     {if(hide[section]) next};"\
9076 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9077 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9078 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9079 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9080 "     ' prfx=^$ac_symprfx"
9081   else
9082     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9083   fi
9084
9085   # Check to see that the pipe works correctly.
9086   pipe_works=no
9087
9088   rm -f conftest*
9089   cat > conftest.$ac_ext <<_LT_EOF
9090 #ifdef __cplusplus
9091 extern "C" {
9092 #endif
9093 char nm_test_var;
9094 void nm_test_func(void);
9095 void nm_test_func(void){}
9096 #ifdef __cplusplus
9097 }
9098 #endif
9099 int main(){nm_test_var='a';nm_test_func();return(0);}
9100 _LT_EOF
9101
9102   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103   (eval $ac_compile) 2>&5
9104   ac_status=$?
9105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; then
9107     # Now try to grab the symbols.
9108     nlist=conftest.nm
9109     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9110   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9111   ac_status=$?
9112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } && test -s "$nlist"; then
9114       # Try sorting and uniquifying the output.
9115       if sort "$nlist" | uniq > "$nlist"T; then
9116         mv -f "$nlist"T "$nlist"
9117       else
9118         rm -f "$nlist"T
9119       fi
9120
9121       # Make sure that we snagged all the symbols we need.
9122       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9123         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9124           cat <<_LT_EOF > conftest.$ac_ext
9125 #ifdef __cplusplus
9126 extern "C" {
9127 #endif
9128
9129 _LT_EOF
9130           # Now generate the symbol file.
9131           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9132
9133           cat <<_LT_EOF >> conftest.$ac_ext
9134
9135 /* The mapping between symbol names and symbols.  */
9136 const struct {
9137   const char *name;
9138   void       *address;
9139 }
9140 lt__PROGRAM__LTX_preloaded_symbols[] =
9141 {
9142   { "@PROGRAM@", (void *) 0 },
9143 _LT_EOF
9144           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9145           cat <<\_LT_EOF >> conftest.$ac_ext
9146   {0, (void *) 0}
9147 };
9148
9149 /* This works around a problem in FreeBSD linker */
9150 #ifdef FREEBSD_WORKAROUND
9151 static const void *lt_preloaded_setup() {
9152   return lt__PROGRAM__LTX_preloaded_symbols;
9153 }
9154 #endif
9155
9156 #ifdef __cplusplus
9157 }
9158 #endif
9159 _LT_EOF
9160           # Now try linking the two files.
9161           mv conftest.$ac_objext conftstm.$ac_objext
9162           lt_save_LIBS="$LIBS"
9163           lt_save_CFLAGS="$CFLAGS"
9164           LIBS="conftstm.$ac_objext"
9165           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9166           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167   (eval $ac_link) 2>&5
9168   ac_status=$?
9169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9171             pipe_works=yes
9172           fi
9173           LIBS="$lt_save_LIBS"
9174           CFLAGS="$lt_save_CFLAGS"
9175         else
9176           echo "cannot find nm_test_func in $nlist" >&5
9177         fi
9178       else
9179         echo "cannot find nm_test_var in $nlist" >&5
9180       fi
9181     else
9182       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9183     fi
9184   else
9185     echo "$progname: failed program was:" >&5
9186     cat conftest.$ac_ext >&5
9187   fi
9188   rm -rf conftest* conftst*
9189
9190   # Do not use the global_symbol_pipe unless it works.
9191   if test "$pipe_works" = yes; then
9192     break
9193   else
9194     lt_cv_sys_global_symbol_pipe=
9195   fi
9196 done
9197
9198 fi
9199
9200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9201   lt_cv_sys_global_symbol_to_cdecl=
9202 fi
9203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9204   { $as_echo "$as_me:$LINENO: result: failed" >&5
9205 $as_echo "failed" >&6; }
9206 else
9207   { $as_echo "$as_me:$LINENO: result: ok" >&5
9208 $as_echo "ok" >&6; }
9209 fi
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232 # Check whether --enable-libtool-lock was given.
9233 if test "${enable_libtool_lock+set}" = set; then
9234   enableval=$enable_libtool_lock;
9235 fi
9236
9237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9238
9239 # Some flags need to be propagated to the compiler or linker for good
9240 # libtool support.
9241 case $host in
9242 ia64-*-hpux*)
9243   # Find out which ABI we are using.
9244   echo 'int i;' > conftest.$ac_ext
9245   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246   (eval $ac_compile) 2>&5
9247   ac_status=$?
9248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; then
9250     case `/usr/bin/file conftest.$ac_objext` in
9251       *ELF-32*)
9252         HPUX_IA64_MODE="32"
9253         ;;
9254       *ELF-64*)
9255         HPUX_IA64_MODE="64"
9256         ;;
9257     esac
9258   fi
9259   rm -rf conftest*
9260   ;;
9261 *-*-irix6*)
9262   # Find out which ABI we are using.
9263   echo '#line 9263 "configure"' > conftest.$ac_ext
9264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265   (eval $ac_compile) 2>&5
9266   ac_status=$?
9267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; then
9269     if test "$lt_cv_prog_gnu_ld" = yes; then
9270       case `/usr/bin/file conftest.$ac_objext` in
9271         *32-bit*)
9272           LD="${LD-ld} -melf32bsmip"
9273           ;;
9274         *N32*)
9275           LD="${LD-ld} -melf32bmipn32"
9276           ;;
9277         *64-bit*)
9278           LD="${LD-ld} -melf64bmip"
9279         ;;
9280       esac
9281     else
9282       case `/usr/bin/file conftest.$ac_objext` in
9283         *32-bit*)
9284           LD="${LD-ld} -32"
9285           ;;
9286         *N32*)
9287           LD="${LD-ld} -n32"
9288           ;;
9289         *64-bit*)
9290           LD="${LD-ld} -64"
9291           ;;
9292       esac
9293     fi
9294   fi
9295   rm -rf conftest*
9296   ;;
9297
9298 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9299 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9300   # Find out which ABI we are using.
9301   echo 'int i;' > conftest.$ac_ext
9302   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303   (eval $ac_compile) 2>&5
9304   ac_status=$?
9305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); }; then
9307     case `/usr/bin/file conftest.o` in
9308       *32-bit*)
9309         case $host in
9310           x86_64-*kfreebsd*-gnu)
9311             LD="${LD-ld} -m elf_i386_fbsd"
9312             ;;
9313           x86_64-*linux*)
9314             LD="${LD-ld} -m elf_i386"
9315             ;;
9316           ppc64-*linux*|powerpc64-*linux*)
9317             LD="${LD-ld} -m elf32ppclinux"
9318             ;;
9319           s390x-*linux*)
9320             LD="${LD-ld} -m elf_s390"
9321             ;;
9322           sparc64-*linux*)
9323             LD="${LD-ld} -m elf32_sparc"
9324             ;;
9325         esac
9326         ;;
9327       *64-bit*)
9328         case $host in
9329           x86_64-*kfreebsd*-gnu)
9330             LD="${LD-ld} -m elf_x86_64_fbsd"
9331             ;;
9332           x86_64-*linux*)
9333             LD="${LD-ld} -m elf_x86_64"
9334             ;;
9335           ppc*-*linux*|powerpc*-*linux*)
9336             LD="${LD-ld} -m elf64ppc"
9337             ;;
9338           s390*-*linux*|s390*-*tpf*)
9339             LD="${LD-ld} -m elf64_s390"
9340             ;;
9341           sparc*-*linux*)
9342             LD="${LD-ld} -m elf64_sparc"
9343             ;;
9344         esac
9345         ;;
9346     esac
9347   fi
9348   rm -rf conftest*
9349   ;;
9350
9351 *-*-sco3.2v5*)
9352   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9353   SAVE_CFLAGS="$CFLAGS"
9354   CFLAGS="$CFLAGS -belf"
9355   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9356 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9357 if test "${lt_cv_cc_needs_belf+set}" = set; then
9358   $as_echo_n "(cached) " >&6
9359 else
9360   ac_ext=c
9361 ac_cpp='$CPP $CPPFLAGS'
9362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9365
9366      cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h.  */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h.  */
9372
9373 int
9374 main ()
9375 {
9376
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9383 case "(($ac_try" in
9384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385   *) ac_try_echo=$ac_try;;
9386 esac
9387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9388 $as_echo "$ac_try_echo") >&5
9389   (eval "$ac_link") 2>conftest.er1
9390   ac_status=$?
9391   grep -v '^ *+' conftest.er1 >conftest.err
9392   rm -f conftest.er1
9393   cat conftest.err >&5
9394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } && {
9396          test -z "$ac_c_werror_flag" ||
9397          test ! -s conftest.err
9398        } && test -s conftest$ac_exeext && {
9399          test "$cross_compiling" = yes ||
9400          $as_test_x conftest$ac_exeext
9401        }; then
9402   lt_cv_cc_needs_belf=yes
9403 else
9404   $as_echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407         lt_cv_cc_needs_belf=no
9408 fi
9409
9410 rm -rf conftest.dSYM
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412       conftest$ac_exeext conftest.$ac_ext
9413      ac_ext=c
9414 ac_cpp='$CPP $CPPFLAGS'
9415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9418
9419 fi
9420 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9421 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9422   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9423     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9424     CFLAGS="$SAVE_CFLAGS"
9425   fi
9426   ;;
9427 sparc*-*solaris*)
9428   # Find out which ABI we are using.
9429   echo 'int i;' > conftest.$ac_ext
9430   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431   (eval $ac_compile) 2>&5
9432   ac_status=$?
9433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); }; then
9435     case `/usr/bin/file conftest.o` in
9436     *64-bit*)
9437       case $lt_cv_prog_gnu_ld in
9438       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9439       *)
9440         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9441           LD="${LD-ld} -64"
9442         fi
9443         ;;
9444       esac
9445       ;;
9446     esac
9447   fi
9448   rm -rf conftest*
9449   ;;
9450 esac
9451
9452 need_locks="$enable_libtool_lock"
9453
9454
9455   case $host_os in
9456     rhapsody* | darwin*)
9457     if test -n "$ac_tool_prefix"; then
9458   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9459 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9463   $as_echo_n "(cached) " >&6
9464 else
9465   if test -n "$DSYMUTIL"; then
9466   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9467 else
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9470 do
9471   IFS=$as_save_IFS
9472   test -z "$as_dir" && as_dir=.
9473   for ac_exec_ext in '' $ac_executable_extensions; do
9474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9476     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9477     break 2
9478   fi
9479 done
9480 done
9481 IFS=$as_save_IFS
9482
9483 fi
9484 fi
9485 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9486 if test -n "$DSYMUTIL"; then
9487   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9488 $as_echo "$DSYMUTIL" >&6; }
9489 else
9490   { $as_echo "$as_me:$LINENO: result: no" >&5
9491 $as_echo "no" >&6; }
9492 fi
9493
9494
9495 fi
9496 if test -z "$ac_cv_prog_DSYMUTIL"; then
9497   ac_ct_DSYMUTIL=$DSYMUTIL
9498   # Extract the first word of "dsymutil", so it can be a program name with args.
9499 set dummy dsymutil; ac_word=$2
9500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9501 $as_echo_n "checking for $ac_word... " >&6; }
9502 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9503   $as_echo_n "(cached) " >&6
9504 else
9505   if test -n "$ac_ct_DSYMUTIL"; then
9506   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9507 else
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 for as_dir in $PATH
9510 do
9511   IFS=$as_save_IFS
9512   test -z "$as_dir" && as_dir=.
9513   for ac_exec_ext in '' $ac_executable_extensions; do
9514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9515     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9517     break 2
9518   fi
9519 done
9520 done
9521 IFS=$as_save_IFS
9522
9523 fi
9524 fi
9525 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9526 if test -n "$ac_ct_DSYMUTIL"; then
9527   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9528 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9529 else
9530   { $as_echo "$as_me:$LINENO: result: no" >&5
9531 $as_echo "no" >&6; }
9532 fi
9533
9534   if test "x$ac_ct_DSYMUTIL" = x; then
9535     DSYMUTIL=":"
9536   else
9537     case $cross_compiling:$ac_tool_warned in
9538 yes:)
9539 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9541 ac_tool_warned=yes ;;
9542 esac
9543     DSYMUTIL=$ac_ct_DSYMUTIL
9544   fi
9545 else
9546   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9547 fi
9548
9549     if test -n "$ac_tool_prefix"; then
9550   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9551 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9555   $as_echo_n "(cached) " >&6
9556 else
9557   if test -n "$NMEDIT"; then
9558   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9559 else
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9562 do
9563   IFS=$as_save_IFS
9564   test -z "$as_dir" && as_dir=.
9565   for ac_exec_ext in '' $ac_executable_extensions; do
9566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9568     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9569     break 2
9570   fi
9571 done
9572 done
9573 IFS=$as_save_IFS
9574
9575 fi
9576 fi
9577 NMEDIT=$ac_cv_prog_NMEDIT
9578 if test -n "$NMEDIT"; then
9579   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9580 $as_echo "$NMEDIT" >&6; }
9581 else
9582   { $as_echo "$as_me:$LINENO: result: no" >&5
9583 $as_echo "no" >&6; }
9584 fi
9585
9586
9587 fi
9588 if test -z "$ac_cv_prog_NMEDIT"; then
9589   ac_ct_NMEDIT=$NMEDIT
9590   # Extract the first word of "nmedit", so it can be a program name with args.
9591 set dummy nmedit; ac_word=$2
9592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9595   $as_echo_n "(cached) " >&6
9596 else
9597   if test -n "$ac_ct_NMEDIT"; then
9598   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9599 else
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601 for as_dir in $PATH
9602 do
9603   IFS=$as_save_IFS
9604   test -z "$as_dir" && as_dir=.
9605   for ac_exec_ext in '' $ac_executable_extensions; do
9606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9608     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9609     break 2
9610   fi
9611 done
9612 done
9613 IFS=$as_save_IFS
9614
9615 fi
9616 fi
9617 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9618 if test -n "$ac_ct_NMEDIT"; then
9619   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9620 $as_echo "$ac_ct_NMEDIT" >&6; }
9621 else
9622   { $as_echo "$as_me:$LINENO: result: no" >&5
9623 $as_echo "no" >&6; }
9624 fi
9625
9626   if test "x$ac_ct_NMEDIT" = x; then
9627     NMEDIT=":"
9628   else
9629     case $cross_compiling:$ac_tool_warned in
9630 yes:)
9631 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9633 ac_tool_warned=yes ;;
9634 esac
9635     NMEDIT=$ac_ct_NMEDIT
9636   fi
9637 else
9638   NMEDIT="$ac_cv_prog_NMEDIT"
9639 fi
9640
9641     if test -n "$ac_tool_prefix"; then
9642   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9643 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if test "${ac_cv_prog_LIPO+set}" = set; then
9647   $as_echo_n "(cached) " >&6
9648 else
9649   if test -n "$LIPO"; then
9650   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9651 else
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in $PATH
9654 do
9655   IFS=$as_save_IFS
9656   test -z "$as_dir" && as_dir=.
9657   for ac_exec_ext in '' $ac_executable_extensions; do
9658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9659     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661     break 2
9662   fi
9663 done
9664 done
9665 IFS=$as_save_IFS
9666
9667 fi
9668 fi
9669 LIPO=$ac_cv_prog_LIPO
9670 if test -n "$LIPO"; then
9671   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9672 $as_echo "$LIPO" >&6; }
9673 else
9674   { $as_echo "$as_me:$LINENO: result: no" >&5
9675 $as_echo "no" >&6; }
9676 fi
9677
9678
9679 fi
9680 if test -z "$ac_cv_prog_LIPO"; then
9681   ac_ct_LIPO=$LIPO
9682   # Extract the first word of "lipo", so it can be a program name with args.
9683 set dummy lipo; ac_word=$2
9684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9687   $as_echo_n "(cached) " >&6
9688 else
9689   if test -n "$ac_ct_LIPO"; then
9690   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9691 else
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9694 do
9695   IFS=$as_save_IFS
9696   test -z "$as_dir" && as_dir=.
9697   for ac_exec_ext in '' $ac_executable_extensions; do
9698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9699     ac_cv_prog_ac_ct_LIPO="lipo"
9700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9701     break 2
9702   fi
9703 done
9704 done
9705 IFS=$as_save_IFS
9706
9707 fi
9708 fi
9709 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9710 if test -n "$ac_ct_LIPO"; then
9711   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9712 $as_echo "$ac_ct_LIPO" >&6; }
9713 else
9714   { $as_echo "$as_me:$LINENO: result: no" >&5
9715 $as_echo "no" >&6; }
9716 fi
9717
9718   if test "x$ac_ct_LIPO" = x; then
9719     LIPO=":"
9720   else
9721     case $cross_compiling:$ac_tool_warned in
9722 yes:)
9723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9725 ac_tool_warned=yes ;;
9726 esac
9727     LIPO=$ac_ct_LIPO
9728   fi
9729 else
9730   LIPO="$ac_cv_prog_LIPO"
9731 fi
9732
9733     if test -n "$ac_tool_prefix"; then
9734   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9735 set dummy ${ac_tool_prefix}otool; ac_word=$2
9736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if test "${ac_cv_prog_OTOOL+set}" = set; then
9739   $as_echo_n "(cached) " >&6
9740 else
9741   if test -n "$OTOOL"; then
9742   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9746 do
9747   IFS=$as_save_IFS
9748   test -z "$as_dir" && as_dir=.
9749   for ac_exec_ext in '' $ac_executable_extensions; do
9750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9753     break 2
9754   fi
9755 done
9756 done
9757 IFS=$as_save_IFS
9758
9759 fi
9760 fi
9761 OTOOL=$ac_cv_prog_OTOOL
9762 if test -n "$OTOOL"; then
9763   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9764 $as_echo "$OTOOL" >&6; }
9765 else
9766   { $as_echo "$as_me:$LINENO: result: no" >&5
9767 $as_echo "no" >&6; }
9768 fi
9769
9770
9771 fi
9772 if test -z "$ac_cv_prog_OTOOL"; then
9773   ac_ct_OTOOL=$OTOOL
9774   # Extract the first word of "otool", so it can be a program name with args.
9775 set dummy otool; ac_word=$2
9776 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9779   $as_echo_n "(cached) " >&6
9780 else
9781   if test -n "$ac_ct_OTOOL"; then
9782   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9783 else
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787   IFS=$as_save_IFS
9788   test -z "$as_dir" && as_dir=.
9789   for ac_exec_ext in '' $ac_executable_extensions; do
9790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791     ac_cv_prog_ac_ct_OTOOL="otool"
9792     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9793     break 2
9794   fi
9795 done
9796 done
9797 IFS=$as_save_IFS
9798
9799 fi
9800 fi
9801 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9802 if test -n "$ac_ct_OTOOL"; then
9803   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9804 $as_echo "$ac_ct_OTOOL" >&6; }
9805 else
9806   { $as_echo "$as_me:$LINENO: result: no" >&5
9807 $as_echo "no" >&6; }
9808 fi
9809
9810   if test "x$ac_ct_OTOOL" = x; then
9811     OTOOL=":"
9812   else
9813     case $cross_compiling:$ac_tool_warned in
9814 yes:)
9815 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9817 ac_tool_warned=yes ;;
9818 esac
9819     OTOOL=$ac_ct_OTOOL
9820   fi
9821 else
9822   OTOOL="$ac_cv_prog_OTOOL"
9823 fi
9824
9825     if test -n "$ac_tool_prefix"; then
9826   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9827 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9829 $as_echo_n "checking for $ac_word... " >&6; }
9830 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9831   $as_echo_n "(cached) " >&6
9832 else
9833   if test -n "$OTOOL64"; then
9834   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9835 else
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 for as_dir in $PATH
9838 do
9839   IFS=$as_save_IFS
9840   test -z "$as_dir" && as_dir=.
9841   for ac_exec_ext in '' $ac_executable_extensions; do
9842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9843     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9844     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9845     break 2
9846   fi
9847 done
9848 done
9849 IFS=$as_save_IFS
9850
9851 fi
9852 fi
9853 OTOOL64=$ac_cv_prog_OTOOL64
9854 if test -n "$OTOOL64"; then
9855   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9856 $as_echo "$OTOOL64" >&6; }
9857 else
9858   { $as_echo "$as_me:$LINENO: result: no" >&5
9859 $as_echo "no" >&6; }
9860 fi
9861
9862
9863 fi
9864 if test -z "$ac_cv_prog_OTOOL64"; then
9865   ac_ct_OTOOL64=$OTOOL64
9866   # Extract the first word of "otool64", so it can be a program name with args.
9867 set dummy otool64; ac_word=$2
9868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9871   $as_echo_n "(cached) " >&6
9872 else
9873   if test -n "$ac_ct_OTOOL64"; then
9874   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9875 else
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9878 do
9879   IFS=$as_save_IFS
9880   test -z "$as_dir" && as_dir=.
9881   for ac_exec_ext in '' $ac_executable_extensions; do
9882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883     ac_cv_prog_ac_ct_OTOOL64="otool64"
9884     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9885     break 2
9886   fi
9887 done
9888 done
9889 IFS=$as_save_IFS
9890
9891 fi
9892 fi
9893 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9894 if test -n "$ac_ct_OTOOL64"; then
9895   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9896 $as_echo "$ac_ct_OTOOL64" >&6; }
9897 else
9898   { $as_echo "$as_me:$LINENO: result: no" >&5
9899 $as_echo "no" >&6; }
9900 fi
9901
9902   if test "x$ac_ct_OTOOL64" = x; then
9903     OTOOL64=":"
9904   else
9905     case $cross_compiling:$ac_tool_warned in
9906 yes:)
9907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9909 ac_tool_warned=yes ;;
9910 esac
9911     OTOOL64=$ac_ct_OTOOL64
9912   fi
9913 else
9914   OTOOL64="$ac_cv_prog_OTOOL64"
9915 fi
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9944 $as_echo_n "checking for -single_module linker flag... " >&6; }
9945 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9946   $as_echo_n "(cached) " >&6
9947 else
9948   lt_cv_apple_cc_single_mod=no
9949       if test -z "${LT_MULTI_MODULE}"; then
9950         # By default we will add the -single_module flag. You can override
9951         # by either setting the environment variable LT_MULTI_MODULE
9952         # non-empty at configure time, or by adding -multi_module to the
9953         # link flags.
9954         rm -rf libconftest.dylib*
9955         echo "int foo(void){return 1;}" > conftest.c
9956         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9957 -dynamiclib -Wl,-single_module conftest.c" >&5
9958         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9959           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9960         _lt_result=$?
9961         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9962           lt_cv_apple_cc_single_mod=yes
9963         else
9964           cat conftest.err >&5
9965         fi
9966         rm -rf libconftest.dylib*
9967         rm -f conftest.*
9968       fi
9969 fi
9970 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9971 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9972     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9973 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9974 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9975   $as_echo_n "(cached) " >&6
9976 else
9977   lt_cv_ld_exported_symbols_list=no
9978       save_LDFLAGS=$LDFLAGS
9979       echo "_main" > conftest.sym
9980       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9981       cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h.  */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h.  */
9987
9988 int
9989 main ()
9990 {
9991
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9998 case "(($ac_try" in
9999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000   *) ac_try_echo=$ac_try;;
10001 esac
10002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003 $as_echo "$ac_try_echo") >&5
10004   (eval "$ac_link") 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } && {
10011          test -z "$ac_c_werror_flag" ||
10012          test ! -s conftest.err
10013        } && test -s conftest$ac_exeext && {
10014          test "$cross_compiling" = yes ||
10015          $as_test_x conftest$ac_exeext
10016        }; then
10017   lt_cv_ld_exported_symbols_list=yes
10018 else
10019   $as_echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022         lt_cv_ld_exported_symbols_list=no
10023 fi
10024
10025 rm -rf conftest.dSYM
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027       conftest$ac_exeext conftest.$ac_ext
10028         LDFLAGS="$save_LDFLAGS"
10029
10030 fi
10031 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10032 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10033     case $host_os in
10034     rhapsody* | darwin1.[012])
10035       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10036     darwin1.*)
10037       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10038     darwin*) # darwin 5.x on
10039       # if running on 10.5 or later, the deployment target defaults
10040       # to the OS version, if on x86, and 10.4, the deployment
10041       # target defaults to 10.4. Don't you love it?
10042       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10043         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10044           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10045         10.[012]*)
10046           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10047         10.*)
10048           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10049       esac
10050     ;;
10051   esac
10052     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10053       _lt_dar_single_mod='$single_module'
10054     fi
10055     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10056       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10057     else
10058       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10059     fi
10060     if test "$DSYMUTIL" != ":"; then
10061       _lt_dsymutil='~$DSYMUTIL $lib || :'
10062     else
10063       _lt_dsymutil=
10064     fi
10065     ;;
10066   esac
10067
10068
10069 for ac_header in dlfcn.h
10070 do
10071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10073 $as_echo_n "checking for $ac_header... " >&6; }
10074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10075   $as_echo_n "(cached) " >&6
10076 else
10077   cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 $ac_includes_default
10084
10085 #include <$ac_header>
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (ac_try="$ac_compile"
10089 case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10094 $as_echo "$ac_try_echo") >&5
10095   (eval "$ac_compile") 2>conftest.er1
10096   ac_status=$?
10097   grep -v '^ *+' conftest.er1 >conftest.err
10098   rm -f conftest.er1
10099   cat conftest.err >&5
10100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); } && {
10102          test -z "$ac_c_werror_flag" ||
10103          test ! -s conftest.err
10104        } && test -s conftest.$ac_objext; then
10105   eval "$as_ac_Header=yes"
10106 else
10107   $as_echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110         eval "$as_ac_Header=no"
10111 fi
10112
10113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114 fi
10115 ac_res=`eval 'as_val=${'$as_ac_Header'}
10116                  $as_echo "$as_val"'`
10117                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10118 $as_echo "$ac_res" >&6; }
10119 as_val=`eval 'as_val=${'$as_ac_Header'}
10120                  $as_echo "$as_val"'`
10121    if test "x$as_val" = x""yes; then
10122   cat >>confdefs.h <<_ACEOF
10123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10124 _ACEOF
10125
10126 fi
10127
10128 done
10129
10130
10131
10132 ac_ext=cpp
10133 ac_cpp='$CXXCPP $CPPFLAGS'
10134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10137 if test -z "$CXX"; then
10138   if test -n "$CCC"; then
10139     CXX=$CCC
10140   else
10141     if test -n "$ac_tool_prefix"; then
10142   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10143   do
10144     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if test "${ac_cv_prog_CXX+set}" = set; then
10149   $as_echo_n "(cached) " >&6
10150 else
10151   if test -n "$CXX"; then
10152   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157   IFS=$as_save_IFS
10158   test -z "$as_dir" && as_dir=.
10159   for ac_exec_ext in '' $ac_executable_extensions; do
10160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10161     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10162     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10163     break 2
10164   fi
10165 done
10166 done
10167 IFS=$as_save_IFS
10168
10169 fi
10170 fi
10171 CXX=$ac_cv_prog_CXX
10172 if test -n "$CXX"; then
10173   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
10174 $as_echo "$CXX" >&6; }
10175 else
10176   { $as_echo "$as_me:$LINENO: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179
10180
10181     test -n "$CXX" && break
10182   done
10183 fi
10184 if test -z "$CXX"; then
10185   ac_ct_CXX=$CXX
10186   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10187 do
10188   # Extract the first word of "$ac_prog", so it can be a program name with args.
10189 set dummy $ac_prog; ac_word=$2
10190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10191 $as_echo_n "checking for $ac_word... " >&6; }
10192 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10193   $as_echo_n "(cached) " >&6
10194 else
10195   if test -n "$ac_ct_CXX"; then
10196   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10197 else
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10200 do
10201   IFS=$as_save_IFS
10202   test -z "$as_dir" && as_dir=.
10203   for ac_exec_ext in '' $ac_executable_extensions; do
10204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205     ac_cv_prog_ac_ct_CXX="$ac_prog"
10206     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10207     break 2
10208   fi
10209 done
10210 done
10211 IFS=$as_save_IFS
10212
10213 fi
10214 fi
10215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10216 if test -n "$ac_ct_CXX"; then
10217   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10218 $as_echo "$ac_ct_CXX" >&6; }
10219 else
10220   { $as_echo "$as_me:$LINENO: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223
10224
10225   test -n "$ac_ct_CXX" && break
10226 done
10227
10228   if test "x$ac_ct_CXX" = x; then
10229     CXX="g++"
10230   else
10231     case $cross_compiling:$ac_tool_warned in
10232 yes:)
10233 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235 ac_tool_warned=yes ;;
10236 esac
10237     CXX=$ac_ct_CXX
10238   fi
10239 fi
10240
10241   fi
10242 fi
10243 # Provide some information about the compiler.
10244 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10245 set X $ac_compile
10246 ac_compiler=$2
10247 { (ac_try="$ac_compiler --version >&5"
10248 case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10253 $as_echo "$ac_try_echo") >&5
10254   (eval "$ac_compiler --version >&5") 2>&5
10255   ac_status=$?
10256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); }
10258 { (ac_try="$ac_compiler -v >&5"
10259 case "(($ac_try" in
10260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261   *) ac_try_echo=$ac_try;;
10262 esac
10263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10264 $as_echo "$ac_try_echo") >&5
10265   (eval "$ac_compiler -v >&5") 2>&5
10266   ac_status=$?
10267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }
10269 { (ac_try="$ac_compiler -V >&5"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275 $as_echo "$ac_try_echo") >&5
10276   (eval "$ac_compiler -V >&5") 2>&5
10277   ac_status=$?
10278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); }
10280
10281 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10282 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10283 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10284   $as_echo_n "(cached) " >&6
10285 else
10286   cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292
10293 int
10294 main ()
10295 {
10296 #ifndef __GNUC__
10297        choke me
10298 #endif
10299
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308   *) ac_try_echo=$ac_try;;
10309 esac
10310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10311 $as_echo "$ac_try_echo") >&5
10312   (eval "$ac_compile") 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } && {
10319          test -z "$ac_cxx_werror_flag" ||
10320          test ! -s conftest.err
10321        } && test -s conftest.$ac_objext; then
10322   ac_compiler_gnu=yes
10323 else
10324   $as_echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10326
10327         ac_compiler_gnu=no
10328 fi
10329
10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10332
10333 fi
10334 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10336 if test $ac_compiler_gnu = yes; then
10337   GXX=yes
10338 else
10339   GXX=
10340 fi
10341 ac_test_CXXFLAGS=${CXXFLAGS+set}
10342 ac_save_CXXFLAGS=$CXXFLAGS
10343 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10345 if test "${ac_cv_prog_cxx_g+set}" = set; then
10346   $as_echo_n "(cached) " >&6
10347 else
10348   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10349    ac_cxx_werror_flag=yes
10350    ac_cv_prog_cxx_g=no
10351    CXXFLAGS="-g"
10352    cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h.  */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h.  */
10358
10359 int
10360 main ()
10361 {
10362
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10374 $as_echo "$ac_try_echo") >&5
10375   (eval "$ac_compile") 2>conftest.er1
10376   ac_status=$?
10377   grep -v '^ *+' conftest.er1 >conftest.err
10378   rm -f conftest.er1
10379   cat conftest.err >&5
10380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } && {
10382          test -z "$ac_cxx_werror_flag" ||
10383          test ! -s conftest.err
10384        } && test -s conftest.$ac_objext; then
10385   ac_cv_prog_cxx_g=yes
10386 else
10387   $as_echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390         CXXFLAGS=""
10391       cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h.  */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h.  */
10397
10398 int
10399 main ()
10400 {
10401
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410   *) ac_try_echo=$ac_try;;
10411 esac
10412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413 $as_echo "$ac_try_echo") >&5
10414   (eval "$ac_compile") 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } && {
10421          test -z "$ac_cxx_werror_flag" ||
10422          test ! -s conftest.err
10423        } && test -s conftest.$ac_objext; then
10424   :
10425 else
10426   $as_echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10430          CXXFLAGS="-g"
10431          cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h.  */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h.  */
10437
10438 int
10439 main ()
10440 {
10441
10442   ;
10443   return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest.$ac_objext
10447 if { (ac_try="$ac_compile"
10448 case "(($ac_try" in
10449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450   *) ac_try_echo=$ac_try;;
10451 esac
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454   (eval "$ac_compile") 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } && {
10461          test -z "$ac_cxx_werror_flag" ||
10462          test ! -s conftest.err
10463        } && test -s conftest.$ac_objext; then
10464   ac_cv_prog_cxx_g=yes
10465 else
10466   $as_echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 fi
10474
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 fi
10477
10478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10480 fi
10481 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10482 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10483 if test "$ac_test_CXXFLAGS" = set; then
10484   CXXFLAGS=$ac_save_CXXFLAGS
10485 elif test $ac_cv_prog_cxx_g = yes; then
10486   if test "$GXX" = yes; then
10487     CXXFLAGS="-g -O2"
10488   else
10489     CXXFLAGS="-g"
10490   fi
10491 else
10492   if test "$GXX" = yes; then
10493     CXXFLAGS="-O2"
10494   else
10495     CXXFLAGS=
10496   fi
10497 fi
10498 ac_ext=c
10499 ac_cpp='$CPP $CPPFLAGS'
10500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10503
10504 depcc="$CXX"  am_compiler_list=
10505
10506 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10507 $as_echo_n "checking dependency style of $depcc... " >&6; }
10508 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10509   $as_echo_n "(cached) " >&6
10510 else
10511   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10512   # We make a subdir and do the tests there.  Otherwise we can end up
10513   # making bogus files that we don't know about and never remove.  For
10514   # instance it was reported that on HP-UX the gcc test will end up
10515   # making a dummy file named `D' -- because `-MD' means `put the output
10516   # in D'.
10517   mkdir conftest.dir
10518   # Copy depcomp to subdir because otherwise we won't find it if we're
10519   # using a relative directory.
10520   cp "$am_depcomp" conftest.dir
10521   cd conftest.dir
10522   # We will build objects and dependencies in a subdirectory because
10523   # it helps to detect inapplicable dependency modes.  For instance
10524   # both Tru64's cc and ICC support -MD to output dependencies as a
10525   # side effect of compilation, but ICC will put the dependencies in
10526   # the current directory while Tru64 will put them in the object
10527   # directory.
10528   mkdir sub
10529
10530   am_cv_CXX_dependencies_compiler_type=none
10531   if test "$am_compiler_list" = ""; then
10532      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10533   fi
10534   am__universal=false
10535   case " $depcc " in #(
10536      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10537      esac
10538
10539   for depmode in $am_compiler_list; do
10540     # Setup a source with many dependencies, because some compilers
10541     # like to wrap large dependency lists on column 80 (with \), and
10542     # we should not choose a depcomp mode which is confused by this.
10543     #
10544     # We need to recreate these files for each test, as the compiler may
10545     # overwrite some of them when testing with obscure command lines.
10546     # This happens at least with the AIX C compiler.
10547     : > sub/conftest.c
10548     for i in 1 2 3 4 5 6; do
10549       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10550       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10551       # Solaris 8's {/usr,}/bin/sh.
10552       touch sub/conftst$i.h
10553     done
10554     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10555
10556     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10557     # mode.  It turns out that the SunPro C++ compiler does not properly
10558     # handle `-M -o', and we need to detect this.  Also, some Intel
10559     # versions had trouble with output in subdirs
10560     am__obj=sub/conftest.${OBJEXT-o}
10561     am__minus_obj="-o $am__obj"
10562     case $depmode in
10563     gcc)
10564       # This depmode causes a compiler race in universal mode.
10565       test "$am__universal" = false || continue
10566       ;;
10567     nosideeffect)
10568       # after this tag, mechanisms are not by side-effect, so they'll
10569       # only be used when explicitly requested
10570       if test "x$enable_dependency_tracking" = xyes; then
10571         continue
10572       else
10573         break
10574       fi
10575       ;;
10576     msvisualcpp | msvcmsys)
10577       # This compiler won't grok `-c -o', but also, the minuso test has
10578       # not run yet.  These depmodes are late enough in the game, and
10579       # so weak that their functioning should not be impacted.
10580       am__obj=conftest.${OBJEXT-o}
10581       am__minus_obj=
10582       ;;
10583     none) break ;;
10584     esac
10585     if depmode=$depmode \
10586        source=sub/conftest.c object=$am__obj \
10587        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10588        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10589          >/dev/null 2>conftest.err &&
10590        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10591        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10592        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10593        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10594       # icc doesn't choke on unknown options, it will just issue warnings
10595       # or remarks (even with -Werror).  So we grep stderr for any message
10596       # that says an option was ignored or not supported.
10597       # When given -MP, icc 7.0 and 7.1 complain thusly:
10598       #   icc: Command line warning: ignoring option '-M'; no argument required
10599       # The diagnosis changed in icc 8.0:
10600       #   icc: Command line remark: option '-MP' not supported
10601       if (grep 'ignoring option' conftest.err ||
10602           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10603         am_cv_CXX_dependencies_compiler_type=$depmode
10604         break
10605       fi
10606     fi
10607   done
10608
10609   cd ..
10610   rm -rf conftest.dir
10611 else
10612   am_cv_CXX_dependencies_compiler_type=none
10613 fi
10614
10615 fi
10616 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10617 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10618 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10619
10620  if
10621   test "x$enable_dependency_tracking" != xno \
10622   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10623   am__fastdepCXX_TRUE=
10624   am__fastdepCXX_FALSE='#'
10625 else
10626   am__fastdepCXX_TRUE='#'
10627   am__fastdepCXX_FALSE=
10628 fi
10629
10630
10631 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10632     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10633     (test "X$CXX" != "Xg++"))) ; then
10634   ac_ext=cpp
10635 ac_cpp='$CXXCPP $CPPFLAGS'
10636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10639 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10640 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10641 if test -z "$CXXCPP"; then
10642   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10643   $as_echo_n "(cached) " >&6
10644 else
10645       # Double quotes because CXXCPP needs to be expanded
10646     for CXXCPP in "$CXX -E" "/lib/cpp"
10647     do
10648       ac_preproc_ok=false
10649 for ac_cxx_preproc_warn_flag in '' yes
10650 do
10651   # Use a header file that comes with gcc, so configuring glibc
10652   # with a fresh cross-compiler works.
10653   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654   # <limits.h> exists even on freestanding compilers.
10655   # On the NeXT, cc -E runs the code through the compiler's parser,
10656   # not just through cpp. "Syntax error" is here to catch this case.
10657   cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 #ifdef __STDC__
10664 # include <limits.h>
10665 #else
10666 # include <assert.h>
10667 #endif
10668                      Syntax error
10669 _ACEOF
10670 if { (ac_try="$ac_cpp conftest.$ac_ext"
10671 case "(($ac_try" in
10672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673   *) ac_try_echo=$ac_try;;
10674 esac
10675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10676 $as_echo "$ac_try_echo") >&5
10677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10678   ac_status=$?
10679   grep -v '^ *+' conftest.er1 >conftest.err
10680   rm -f conftest.er1
10681   cat conftest.err >&5
10682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } >/dev/null && {
10684          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10685          test ! -s conftest.err
10686        }; then
10687   :
10688 else
10689   $as_echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692   # Broken: fails on valid input.
10693 continue
10694 fi
10695
10696 rm -f conftest.err conftest.$ac_ext
10697
10698   # OK, works on sane cases.  Now check whether nonexistent headers
10699   # can be detected and how.
10700   cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706 #include <ac_nonexistent.h>
10707 _ACEOF
10708 if { (ac_try="$ac_cpp conftest.$ac_ext"
10709 case "(($ac_try" in
10710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711   *) ac_try_echo=$ac_try;;
10712 esac
10713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10714 $as_echo "$ac_try_echo") >&5
10715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10716   ac_status=$?
10717   grep -v '^ *+' conftest.er1 >conftest.err
10718   rm -f conftest.er1
10719   cat conftest.err >&5
10720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); } >/dev/null && {
10722          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10723          test ! -s conftest.err
10724        }; then
10725   # Broken: success on invalid input.
10726 continue
10727 else
10728   $as_echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731   # Passes both tests.
10732 ac_preproc_ok=:
10733 break
10734 fi
10735
10736 rm -f conftest.err conftest.$ac_ext
10737
10738 done
10739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10740 rm -f conftest.err conftest.$ac_ext
10741 if $ac_preproc_ok; then
10742   break
10743 fi
10744
10745     done
10746     ac_cv_prog_CXXCPP=$CXXCPP
10747
10748 fi
10749   CXXCPP=$ac_cv_prog_CXXCPP
10750 else
10751   ac_cv_prog_CXXCPP=$CXXCPP
10752 fi
10753 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10754 $as_echo "$CXXCPP" >&6; }
10755 ac_preproc_ok=false
10756 for ac_cxx_preproc_warn_flag in '' yes
10757 do
10758   # Use a header file that comes with gcc, so configuring glibc
10759   # with a fresh cross-compiler works.
10760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10761   # <limits.h> exists even on freestanding compilers.
10762   # On the NeXT, cc -E runs the code through the compiler's parser,
10763   # not just through cpp. "Syntax error" is here to catch this case.
10764   cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 #ifdef __STDC__
10771 # include <limits.h>
10772 #else
10773 # include <assert.h>
10774 #endif
10775                      Syntax error
10776 _ACEOF
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10783 $as_echo "$ac_try_echo") >&5
10784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } >/dev/null && {
10791          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10792          test ! -s conftest.err
10793        }; then
10794   :
10795 else
10796   $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799   # Broken: fails on valid input.
10800 continue
10801 fi
10802
10803 rm -f conftest.err conftest.$ac_ext
10804
10805   # OK, works on sane cases.  Now check whether nonexistent headers
10806   # can be detected and how.
10807   cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 #include <ac_nonexistent.h>
10814 _ACEOF
10815 if { (ac_try="$ac_cpp conftest.$ac_ext"
10816 case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } >/dev/null && {
10829          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10830          test ! -s conftest.err
10831        }; then
10832   # Broken: success on invalid input.
10833 continue
10834 else
10835   $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838   # Passes both tests.
10839 ac_preproc_ok=:
10840 break
10841 fi
10842
10843 rm -f conftest.err conftest.$ac_ext
10844
10845 done
10846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10847 rm -f conftest.err conftest.$ac_ext
10848 if $ac_preproc_ok; then
10849   :
10850 else
10851   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10853 _lt_caught_CXX_error=yes; }
10854 fi
10855
10856 ac_ext=c
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10861
10862 else
10863   _lt_caught_CXX_error=yes
10864 fi
10865
10866
10867
10868
10869
10870 # Set options
10871
10872
10873
10874         enable_dlopen=no
10875
10876
10877   enable_win32_dll=no
10878
10879
10880             # Check whether --enable-shared was given.
10881 if test "${enable_shared+set}" = set; then
10882   enableval=$enable_shared; p=${PACKAGE-default}
10883     case $enableval in
10884     yes) enable_shared=yes ;;
10885     no) enable_shared=no ;;
10886     *)
10887       enable_shared=no
10888       # Look at the argument we got.  We use all the common list separators.
10889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10890       for pkg in $enableval; do
10891         IFS="$lt_save_ifs"
10892         if test "X$pkg" = "X$p"; then
10893           enable_shared=yes
10894         fi
10895       done
10896       IFS="$lt_save_ifs"
10897       ;;
10898     esac
10899 else
10900   enable_shared=yes
10901 fi
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911   # Check whether --enable-static was given.
10912 if test "${enable_static+set}" = set; then
10913   enableval=$enable_static; p=${PACKAGE-default}
10914     case $enableval in
10915     yes) enable_static=yes ;;
10916     no) enable_static=no ;;
10917     *)
10918      enable_static=no
10919       # Look at the argument we got.  We use all the common list separators.
10920       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10921       for pkg in $enableval; do
10922         IFS="$lt_save_ifs"
10923         if test "X$pkg" = "X$p"; then
10924           enable_static=yes
10925         fi
10926       done
10927       IFS="$lt_save_ifs"
10928       ;;
10929     esac
10930 else
10931   enable_static=yes
10932 fi
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943 # Check whether --with-pic was given.
10944 if test "${with_pic+set}" = set; then
10945   withval=$with_pic; pic_mode="$withval"
10946 else
10947   pic_mode=default
10948 fi
10949
10950
10951 test -z "$pic_mode" && pic_mode=default
10952
10953
10954
10955
10956
10957
10958
10959   # Check whether --enable-fast-install was given.
10960 if test "${enable_fast_install+set}" = set; then
10961   enableval=$enable_fast_install; p=${PACKAGE-default}
10962     case $enableval in
10963     yes) enable_fast_install=yes ;;
10964     no) enable_fast_install=no ;;
10965     *)
10966       enable_fast_install=no
10967       # Look at the argument we got.  We use all the common list separators.
10968       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10969       for pkg in $enableval; do
10970         IFS="$lt_save_ifs"
10971         if test "X$pkg" = "X$p"; then
10972           enable_fast_install=yes
10973         fi
10974       done
10975       IFS="$lt_save_ifs"
10976       ;;
10977     esac
10978 else
10979   enable_fast_install=yes
10980 fi
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 # This can be used to rebuild libtool when needed
10993 LIBTOOL_DEPS="$ltmain"
10994
10995 # Always use our own libtool.
10996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022 test -z "$LN_S" && LN_S="ln -s"
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 if test -n "${ZSH_VERSION+set}" ; then
11038    setopt NO_GLOB_SUBST
11039 fi
11040
11041 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
11042 $as_echo_n "checking for objdir... " >&6; }
11043 if test "${lt_cv_objdir+set}" = set; then
11044   $as_echo_n "(cached) " >&6
11045 else
11046   rm -f .libs 2>/dev/null
11047 mkdir .libs 2>/dev/null
11048 if test -d .libs; then
11049   lt_cv_objdir=.libs
11050 else
11051   # MS-DOS does not allow filenames that begin with a dot.
11052   lt_cv_objdir=_libs
11053 fi
11054 rmdir .libs 2>/dev/null
11055 fi
11056 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11057 $as_echo "$lt_cv_objdir" >&6; }
11058 objdir=$lt_cv_objdir
11059
11060
11061
11062
11063
11064 cat >>confdefs.h <<_ACEOF
11065 #define LT_OBJDIR "$lt_cv_objdir/"
11066 _ACEOF
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084 case $host_os in
11085 aix3*)
11086   # AIX sometimes has problems with the GCC collect2 program.  For some
11087   # reason, if we set the COLLECT_NAMES environment variable, the problems
11088   # vanish in a puff of smoke.
11089   if test "X${COLLECT_NAMES+set}" != Xset; then
11090     COLLECT_NAMES=
11091     export COLLECT_NAMES
11092   fi
11093   ;;
11094 esac
11095
11096 # Sed substitution that helps us do robust quoting.  It backslashifies
11097 # metacharacters that are still active within double-quoted strings.
11098 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11099
11100 # Same as above, but do not quote variable references.
11101 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11102
11103 # Sed substitution to delay expansion of an escaped shell variable in a
11104 # double_quote_subst'ed string.
11105 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11106
11107 # Sed substitution to delay expansion of an escaped single quote.
11108 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11109
11110 # Sed substitution to avoid accidental globbing in evaled expressions
11111 no_glob_subst='s/\*/\\\*/g'
11112
11113 # Global variables:
11114 ofile=libtool
11115 can_build_shared=yes
11116
11117 # All known linkers require a `.a' archive for static linking (except MSVC,
11118 # which needs '.lib').
11119 libext=a
11120
11121 with_gnu_ld="$lt_cv_prog_gnu_ld"
11122
11123 old_CC="$CC"
11124 old_CFLAGS="$CFLAGS"
11125
11126 # Set sane defaults for various variables
11127 test -z "$CC" && CC=cc
11128 test -z "$LTCC" && LTCC=$CC
11129 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11130 test -z "$LD" && LD=ld
11131 test -z "$ac_objext" && ac_objext=o
11132
11133 for cc_temp in $compiler""; do
11134   case $cc_temp in
11135     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11136     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11137     \-*) ;;
11138     *) break;;
11139   esac
11140 done
11141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11142
11143
11144 # Only perform the check for file, if the check method requires it
11145 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11146 case $deplibs_check_method in
11147 file_magic*)
11148   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11149     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11150 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11152   $as_echo_n "(cached) " >&6
11153 else
11154   case $MAGIC_CMD in
11155 [\\/*] |  ?:[\\/]*)
11156   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11157   ;;
11158 *)
11159   lt_save_MAGIC_CMD="$MAGIC_CMD"
11160   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11161   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11162   for ac_dir in $ac_dummy; do
11163     IFS="$lt_save_ifs"
11164     test -z "$ac_dir" && ac_dir=.
11165     if test -f $ac_dir/${ac_tool_prefix}file; then
11166       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11167       if test -n "$file_magic_test_file"; then
11168         case $deplibs_check_method in
11169         "file_magic "*)
11170           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11171           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11172           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11173             $EGREP "$file_magic_regex" > /dev/null; then
11174             :
11175           else
11176             cat <<_LT_EOF 1>&2
11177
11178 *** Warning: the command libtool uses to detect shared libraries,
11179 *** $file_magic_cmd, produces output that libtool cannot recognize.
11180 *** The result is that libtool may fail to recognize shared libraries
11181 *** as such.  This will affect the creation of libtool libraries that
11182 *** depend on shared libraries, but programs linked with such libtool
11183 *** libraries will work regardless of this problem.  Nevertheless, you
11184 *** may want to report the problem to your system manager and/or to
11185 *** bug-libtool@gnu.org
11186
11187 _LT_EOF
11188           fi ;;
11189         esac
11190       fi
11191       break
11192     fi
11193   done
11194   IFS="$lt_save_ifs"
11195   MAGIC_CMD="$lt_save_MAGIC_CMD"
11196   ;;
11197 esac
11198 fi
11199
11200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11201 if test -n "$MAGIC_CMD"; then
11202   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11203 $as_echo "$MAGIC_CMD" >&6; }
11204 else
11205   { $as_echo "$as_me:$LINENO: result: no" >&5
11206 $as_echo "no" >&6; }
11207 fi
11208
11209
11210
11211
11212
11213 if test -z "$lt_cv_path_MAGIC_CMD"; then
11214   if test -n "$ac_tool_prefix"; then
11215     { $as_echo "$as_me:$LINENO: checking for file" >&5
11216 $as_echo_n "checking for file... " >&6; }
11217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11218   $as_echo_n "(cached) " >&6
11219 else
11220   case $MAGIC_CMD in
11221 [\\/*] |  ?:[\\/]*)
11222   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11223   ;;
11224 *)
11225   lt_save_MAGIC_CMD="$MAGIC_CMD"
11226   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11227   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11228   for ac_dir in $ac_dummy; do
11229     IFS="$lt_save_ifs"
11230     test -z "$ac_dir" && ac_dir=.
11231     if test -f $ac_dir/file; then
11232       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11233       if test -n "$file_magic_test_file"; then
11234         case $deplibs_check_method in
11235         "file_magic "*)
11236           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11237           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11238           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11239             $EGREP "$file_magic_regex" > /dev/null; then
11240             :
11241           else
11242             cat <<_LT_EOF 1>&2
11243
11244 *** Warning: the command libtool uses to detect shared libraries,
11245 *** $file_magic_cmd, produces output that libtool cannot recognize.
11246 *** The result is that libtool may fail to recognize shared libraries
11247 *** as such.  This will affect the creation of libtool libraries that
11248 *** depend on shared libraries, but programs linked with such libtool
11249 *** libraries will work regardless of this problem.  Nevertheless, you
11250 *** may want to report the problem to your system manager and/or to
11251 *** bug-libtool@gnu.org
11252
11253 _LT_EOF
11254           fi ;;
11255         esac
11256       fi
11257       break
11258     fi
11259   done
11260   IFS="$lt_save_ifs"
11261   MAGIC_CMD="$lt_save_MAGIC_CMD"
11262   ;;
11263 esac
11264 fi
11265
11266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11267 if test -n "$MAGIC_CMD"; then
11268   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11269 $as_echo "$MAGIC_CMD" >&6; }
11270 else
11271   { $as_echo "$as_me:$LINENO: result: no" >&5
11272 $as_echo "no" >&6; }
11273 fi
11274
11275
11276   else
11277     MAGIC_CMD=:
11278   fi
11279 fi
11280
11281   fi
11282   ;;
11283 esac
11284
11285 # Use C for the default configuration in the libtool script
11286
11287 lt_save_CC="$CC"
11288 ac_ext=c
11289 ac_cpp='$CPP $CPPFLAGS'
11290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11293
11294
11295 # Source file extension for C test sources.
11296 ac_ext=c
11297
11298 # Object file extension for compiled C test sources.
11299 objext=o
11300 objext=$objext
11301
11302 # Code to be used in simple compile tests
11303 lt_simple_compile_test_code="int some_variable = 0;"
11304
11305 # Code to be used in simple link tests
11306 lt_simple_link_test_code='int main(){return(0);}'
11307
11308
11309
11310
11311
11312
11313
11314 # If no C compiler was specified, use CC.
11315 LTCC=${LTCC-"$CC"}
11316
11317 # If no C compiler flags were specified, use CFLAGS.
11318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11319
11320 # Allow CC to be a program name with arguments.
11321 compiler=$CC
11322
11323 # Save the default compiler, since it gets overwritten when the other
11324 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11325 compiler_DEFAULT=$CC
11326
11327 # save warnings/boilerplate of simple test code
11328 ac_outfile=conftest.$ac_objext
11329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11331 _lt_compiler_boilerplate=`cat conftest.err`
11332 $RM conftest*
11333
11334 ac_outfile=conftest.$ac_objext
11335 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11337 _lt_linker_boilerplate=`cat conftest.err`
11338 $RM -r conftest*
11339
11340
11341 if test -n "$compiler"; then
11342
11343 lt_prog_compiler_no_builtin_flag=
11344
11345 if test "$GCC" = yes; then
11346   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11347
11348   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11349 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11350 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11351   $as_echo_n "(cached) " >&6
11352 else
11353   lt_cv_prog_compiler_rtti_exceptions=no
11354    ac_outfile=conftest.$ac_objext
11355    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11356    lt_compiler_flag="-fno-rtti -fno-exceptions"
11357    # Insert the option either (1) after the last *FLAGS variable, or
11358    # (2) before a word containing "conftest.", or (3) at the end.
11359    # Note that $ac_compile itself does not contain backslashes and begins
11360    # with a dollar sign (not a hyphen), so the echo should work correctly.
11361    # The option is referenced via a variable to avoid confusing sed.
11362    lt_compile=`echo "$ac_compile" | $SED \
11363    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11364    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11365    -e 's:$: $lt_compiler_flag:'`
11366    (eval echo "\"\$as_me:11366: $lt_compile\"" >&5)
11367    (eval "$lt_compile" 2>conftest.err)
11368    ac_status=$?
11369    cat conftest.err >&5
11370    echo "$as_me:11370: \$? = $ac_status" >&5
11371    if (exit $ac_status) && test -s "$ac_outfile"; then
11372      # The compiler can only warn and ignore the option if not recognized
11373      # So say no if there are warnings other than the usual output.
11374      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11375      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11376      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11377        lt_cv_prog_compiler_rtti_exceptions=yes
11378      fi
11379    fi
11380    $RM conftest*
11381
11382 fi
11383 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11384 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11385
11386 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11387     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11388 else
11389     :
11390 fi
11391
11392 fi
11393
11394
11395
11396
11397
11398
11399   lt_prog_compiler_wl=
11400 lt_prog_compiler_pic=
11401 lt_prog_compiler_static=
11402
11403 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11404 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11405
11406   if test "$GCC" = yes; then
11407     lt_prog_compiler_wl='-Wl,'
11408     lt_prog_compiler_static='-static'
11409
11410     case $host_os in
11411       aix*)
11412       # All AIX code is PIC.
11413       if test "$host_cpu" = ia64; then
11414         # AIX 5 now supports IA64 processor
11415         lt_prog_compiler_static='-Bstatic'
11416       fi
11417       ;;
11418
11419     amigaos*)
11420       case $host_cpu in
11421       powerpc)
11422             # see comment about AmigaOS4 .so support
11423             lt_prog_compiler_pic='-fPIC'
11424         ;;
11425       m68k)
11426             # FIXME: we need at least 68020 code to build shared libraries, but
11427             # adding the `-m68020' flag to GCC prevents building anything better,
11428             # like `-m68040'.
11429             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11430         ;;
11431       esac
11432       ;;
11433
11434     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11435       # PIC is the default for these OSes.
11436       ;;
11437
11438     mingw* | cygwin* | pw32* | os2* | cegcc*)
11439       # This hack is so that the source file can tell whether it is being
11440       # built for inclusion in a dll (and should export symbols for example).
11441       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11442       # (--disable-auto-import) libraries
11443       lt_prog_compiler_pic='-DDLL_EXPORT'
11444       ;;
11445
11446     darwin* | rhapsody*)
11447       # PIC is the default on this platform
11448       # Common symbols not allowed in MH_DYLIB files
11449       lt_prog_compiler_pic='-fno-common'
11450       ;;
11451
11452     hpux*)
11453       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11454       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11455       # sets the default TLS model and affects inlining.
11456       case $host_cpu in
11457       hppa*64*)
11458         # +Z the default
11459         ;;
11460       *)
11461         lt_prog_compiler_pic='-fPIC'
11462         ;;
11463       esac
11464       ;;
11465
11466     interix[3-9]*)
11467       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11468       # Instead, we relocate shared libraries at runtime.
11469       ;;
11470
11471     msdosdjgpp*)
11472       # Just because we use GCC doesn't mean we suddenly get shared libraries
11473       # on systems that don't support them.
11474       lt_prog_compiler_can_build_shared=no
11475       enable_shared=no
11476       ;;
11477
11478     *nto* | *qnx*)
11479       # QNX uses GNU C++, but need to define -shared option too, otherwise
11480       # it will coredump.
11481       lt_prog_compiler_pic='-fPIC -shared'
11482       ;;
11483
11484     sysv4*MP*)
11485       if test -d /usr/nec; then
11486         lt_prog_compiler_pic=-Kconform_pic
11487       fi
11488       ;;
11489
11490     *)
11491       lt_prog_compiler_pic='-fPIC'
11492       ;;
11493     esac
11494   else
11495     # PORTME Check for flag to pass linker flags through the system compiler.
11496     case $host_os in
11497     aix*)
11498       lt_prog_compiler_wl='-Wl,'
11499       if test "$host_cpu" = ia64; then
11500         # AIX 5 now supports IA64 processor
11501         lt_prog_compiler_static='-Bstatic'
11502       else
11503         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11504       fi
11505       ;;
11506
11507     mingw* | cygwin* | pw32* | os2* | cegcc*)
11508       # This hack is so that the source file can tell whether it is being
11509       # built for inclusion in a dll (and should export symbols for example).
11510       lt_prog_compiler_pic='-DDLL_EXPORT'
11511       ;;
11512
11513     hpux9* | hpux10* | hpux11*)
11514       lt_prog_compiler_wl='-Wl,'
11515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11516       # not for PA HP-UX.
11517       case $host_cpu in
11518       hppa*64*|ia64*)
11519         # +Z the default
11520         ;;
11521       *)
11522         lt_prog_compiler_pic='+Z'
11523         ;;
11524       esac
11525       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11526       lt_prog_compiler_static='${wl}-a ${wl}archive'
11527       ;;
11528
11529     irix5* | irix6* | nonstopux*)
11530       lt_prog_compiler_wl='-Wl,'
11531       # PIC (with -KPIC) is the default.
11532       lt_prog_compiler_static='-non_shared'
11533       ;;
11534
11535     linux* | k*bsd*-gnu)
11536       case $cc_basename in
11537       # old Intel for x86_64 which still supported -KPIC.
11538       ecc*)
11539         lt_prog_compiler_wl='-Wl,'
11540         lt_prog_compiler_pic='-KPIC'
11541         lt_prog_compiler_static='-static'
11542         ;;
11543       # icc used to be incompatible with GCC.
11544       # ICC 10 doesn't accept -KPIC any more.
11545       icc* | ifort*)
11546         lt_prog_compiler_wl='-Wl,'
11547         lt_prog_compiler_pic='-fPIC'
11548         lt_prog_compiler_static='-static'
11549         ;;
11550       # Lahey Fortran 8.1.
11551       lf95*)
11552         lt_prog_compiler_wl='-Wl,'
11553         lt_prog_compiler_pic='--shared'
11554         lt_prog_compiler_static='--static'
11555         ;;
11556       pgcc* | pgf77* | pgf90* | pgf95*)
11557         # Portland Group compilers (*not* the Pentium gcc compiler,
11558         # which looks to be a dead project)
11559         lt_prog_compiler_wl='-Wl,'
11560         lt_prog_compiler_pic='-fpic'
11561         lt_prog_compiler_static='-Bstatic'
11562         ;;
11563       ccc*)
11564         lt_prog_compiler_wl='-Wl,'
11565         # All Alpha code is PIC.
11566         lt_prog_compiler_static='-non_shared'
11567         ;;
11568       xl*)
11569         # IBM XL C 8.0/Fortran 10.1 on PPC
11570         lt_prog_compiler_wl='-Wl,'
11571         lt_prog_compiler_pic='-qpic'
11572         lt_prog_compiler_static='-qstaticlink'
11573         ;;
11574       *)
11575         case `$CC -V 2>&1 | sed 5q` in
11576         *Sun\ C*)
11577           # Sun C 5.9
11578           lt_prog_compiler_pic='-KPIC'
11579           lt_prog_compiler_static='-Bstatic'
11580           lt_prog_compiler_wl='-Wl,'
11581           ;;
11582         *Sun\ F*)
11583           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11584           lt_prog_compiler_pic='-KPIC'
11585           lt_prog_compiler_static='-Bstatic'
11586           lt_prog_compiler_wl=''
11587           ;;
11588         esac
11589         ;;
11590       esac
11591       ;;
11592
11593     newsos6)
11594       lt_prog_compiler_pic='-KPIC'
11595       lt_prog_compiler_static='-Bstatic'
11596       ;;
11597
11598     *nto* | *qnx*)
11599       # QNX uses GNU C++, but need to define -shared option too, otherwise
11600       # it will coredump.
11601       lt_prog_compiler_pic='-fPIC -shared'
11602       ;;
11603
11604     osf3* | osf4* | osf5*)
11605       lt_prog_compiler_wl='-Wl,'
11606       # All OSF/1 code is PIC.
11607       lt_prog_compiler_static='-non_shared'
11608       ;;
11609
11610     rdos*)
11611       lt_prog_compiler_static='-non_shared'
11612       ;;
11613
11614     solaris*)
11615       lt_prog_compiler_pic='-KPIC'
11616       lt_prog_compiler_static='-Bstatic'
11617       case $cc_basename in
11618       f77* | f90* | f95*)
11619         lt_prog_compiler_wl='-Qoption ld ';;
11620       *)
11621         lt_prog_compiler_wl='-Wl,';;
11622       esac
11623       ;;
11624
11625     sunos4*)
11626       lt_prog_compiler_wl='-Qoption ld '
11627       lt_prog_compiler_pic='-PIC'
11628       lt_prog_compiler_static='-Bstatic'
11629       ;;
11630
11631     sysv4 | sysv4.2uw2* | sysv4.3*)
11632       lt_prog_compiler_wl='-Wl,'
11633       lt_prog_compiler_pic='-KPIC'
11634       lt_prog_compiler_static='-Bstatic'
11635       ;;
11636
11637     sysv4*MP*)
11638       if test -d /usr/nec ;then
11639         lt_prog_compiler_pic='-Kconform_pic'
11640         lt_prog_compiler_static='-Bstatic'
11641       fi
11642       ;;
11643
11644     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11645       lt_prog_compiler_wl='-Wl,'
11646       lt_prog_compiler_pic='-KPIC'
11647       lt_prog_compiler_static='-Bstatic'
11648       ;;
11649
11650     unicos*)
11651       lt_prog_compiler_wl='-Wl,'
11652       lt_prog_compiler_can_build_shared=no
11653       ;;
11654
11655     uts4*)
11656       lt_prog_compiler_pic='-pic'
11657       lt_prog_compiler_static='-Bstatic'
11658       ;;
11659
11660     *)
11661       lt_prog_compiler_can_build_shared=no
11662       ;;
11663     esac
11664   fi
11665
11666 case $host_os in
11667   # For platforms which do not support PIC, -DPIC is meaningless:
11668   *djgpp*)
11669     lt_prog_compiler_pic=
11670     ;;
11671   *)
11672     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11673     ;;
11674 esac
11675 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11676 $as_echo "$lt_prog_compiler_pic" >&6; }
11677
11678
11679
11680
11681
11682
11683 #
11684 # Check to make sure the PIC flag actually works.
11685 #
11686 if test -n "$lt_prog_compiler_pic"; then
11687   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11689 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11690   $as_echo_n "(cached) " >&6
11691 else
11692   lt_cv_prog_compiler_pic_works=no
11693    ac_outfile=conftest.$ac_objext
11694    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11695    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11696    # Insert the option either (1) after the last *FLAGS variable, or
11697    # (2) before a word containing "conftest.", or (3) at the end.
11698    # Note that $ac_compile itself does not contain backslashes and begins
11699    # with a dollar sign (not a hyphen), so the echo should work correctly.
11700    # The option is referenced via a variable to avoid confusing sed.
11701    lt_compile=`echo "$ac_compile" | $SED \
11702    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11704    -e 's:$: $lt_compiler_flag:'`
11705    (eval echo "\"\$as_me:11705: $lt_compile\"" >&5)
11706    (eval "$lt_compile" 2>conftest.err)
11707    ac_status=$?
11708    cat conftest.err >&5
11709    echo "$as_me:11709: \$? = $ac_status" >&5
11710    if (exit $ac_status) && test -s "$ac_outfile"; then
11711      # The compiler can only warn and ignore the option if not recognized
11712      # So say no if there are warnings other than the usual output.
11713      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11714      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11715      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11716        lt_cv_prog_compiler_pic_works=yes
11717      fi
11718    fi
11719    $RM conftest*
11720
11721 fi
11722 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11724
11725 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11726     case $lt_prog_compiler_pic in
11727      "" | " "*) ;;
11728      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11729      esac
11730 else
11731     lt_prog_compiler_pic=
11732      lt_prog_compiler_can_build_shared=no
11733 fi
11734
11735 fi
11736
11737
11738
11739
11740
11741
11742 #
11743 # Check to make sure the static flag actually works.
11744 #
11745 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11746 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11748 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11749   $as_echo_n "(cached) " >&6
11750 else
11751   lt_cv_prog_compiler_static_works=no
11752    save_LDFLAGS="$LDFLAGS"
11753    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11754    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11755    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11756      # The linker can only warn and ignore the option if not recognized
11757      # So say no if there are warnings
11758      if test -s conftest.err; then
11759        # Append any errors to the config.log.
11760        cat conftest.err 1>&5
11761        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11762        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11763        if diff conftest.exp conftest.er2 >/dev/null; then
11764          lt_cv_prog_compiler_static_works=yes
11765        fi
11766      else
11767        lt_cv_prog_compiler_static_works=yes
11768      fi
11769    fi
11770    $RM -r conftest*
11771    LDFLAGS="$save_LDFLAGS"
11772
11773 fi
11774 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11775 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11776
11777 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11778     :
11779 else
11780     lt_prog_compiler_static=
11781 fi
11782
11783
11784
11785
11786
11787
11788
11789   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11791 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11792   $as_echo_n "(cached) " >&6
11793 else
11794   lt_cv_prog_compiler_c_o=no
11795    $RM -r conftest 2>/dev/null
11796    mkdir conftest
11797    cd conftest
11798    mkdir out
11799    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11800
11801    lt_compiler_flag="-o out/conftest2.$ac_objext"
11802    # Insert the option either (1) after the last *FLAGS variable, or
11803    # (2) before a word containing "conftest.", or (3) at the end.
11804    # Note that $ac_compile itself does not contain backslashes and begins
11805    # with a dollar sign (not a hyphen), so the echo should work correctly.
11806    lt_compile=`echo "$ac_compile" | $SED \
11807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11809    -e 's:$: $lt_compiler_flag:'`
11810    (eval echo "\"\$as_me:11810: $lt_compile\"" >&5)
11811    (eval "$lt_compile" 2>out/conftest.err)
11812    ac_status=$?
11813    cat out/conftest.err >&5
11814    echo "$as_me:11814: \$? = $ac_status" >&5
11815    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11816    then
11817      # The compiler can only warn and ignore the option if not recognized
11818      # So say no if there are warnings
11819      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11820      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11821      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11822        lt_cv_prog_compiler_c_o=yes
11823      fi
11824    fi
11825    chmod u+w . 2>&5
11826    $RM conftest*
11827    # SGI C++ compiler will create directory out/ii_files/ for
11828    # template instantiation
11829    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11830    $RM out/* && rmdir out
11831    cd ..
11832    $RM -r conftest
11833    $RM conftest*
11834
11835 fi
11836 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11837 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11838
11839
11840
11841
11842
11843
11844   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11847   $as_echo_n "(cached) " >&6
11848 else
11849   lt_cv_prog_compiler_c_o=no
11850    $RM -r conftest 2>/dev/null
11851    mkdir conftest
11852    cd conftest
11853    mkdir out
11854    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11855
11856    lt_compiler_flag="-o out/conftest2.$ac_objext"
11857    # Insert the option either (1) after the last *FLAGS variable, or
11858    # (2) before a word containing "conftest.", or (3) at the end.
11859    # Note that $ac_compile itself does not contain backslashes and begins
11860    # with a dollar sign (not a hyphen), so the echo should work correctly.
11861    lt_compile=`echo "$ac_compile" | $SED \
11862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11864    -e 's:$: $lt_compiler_flag:'`
11865    (eval echo "\"\$as_me:11865: $lt_compile\"" >&5)
11866    (eval "$lt_compile" 2>out/conftest.err)
11867    ac_status=$?
11868    cat out/conftest.err >&5
11869    echo "$as_me:11869: \$? = $ac_status" >&5
11870    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11871    then
11872      # The compiler can only warn and ignore the option if not recognized
11873      # So say no if there are warnings
11874      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11875      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11876      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11877        lt_cv_prog_compiler_c_o=yes
11878      fi
11879    fi
11880    chmod u+w . 2>&5
11881    $RM conftest*
11882    # SGI C++ compiler will create directory out/ii_files/ for
11883    # template instantiation
11884    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11885    $RM out/* && rmdir out
11886    cd ..
11887    $RM -r conftest
11888    $RM conftest*
11889
11890 fi
11891 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11892 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11893
11894
11895
11896
11897 hard_links="nottested"
11898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11899   # do not overwrite the value of need_locks provided by the user
11900   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11901 $as_echo_n "checking if we can lock with hard links... " >&6; }
11902   hard_links=yes
11903   $RM conftest*
11904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11905   touch conftest.a
11906   ln conftest.a conftest.b 2>&5 || hard_links=no
11907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11908   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11909 $as_echo "$hard_links" >&6; }
11910   if test "$hard_links" = no; then
11911     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11913     need_locks=warn
11914   fi
11915 else
11916   need_locks=no
11917 fi
11918
11919
11920
11921
11922
11923
11924   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11926
11927   runpath_var=
11928   allow_undefined_flag=
11929   always_export_symbols=no
11930   archive_cmds=
11931   archive_expsym_cmds=
11932   compiler_needs_object=no
11933   enable_shared_with_static_runtimes=no
11934   export_dynamic_flag_spec=
11935   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11936   hardcode_automatic=no
11937   hardcode_direct=no
11938   hardcode_direct_absolute=no
11939   hardcode_libdir_flag_spec=
11940   hardcode_libdir_flag_spec_ld=
11941   hardcode_libdir_separator=
11942   hardcode_minus_L=no
11943   hardcode_shlibpath_var=unsupported
11944   inherit_rpath=no
11945   link_all_deplibs=unknown
11946   module_cmds=
11947   module_expsym_cmds=
11948   old_archive_from_new_cmds=
11949   old_archive_from_expsyms_cmds=
11950   thread_safe_flag_spec=
11951   whole_archive_flag_spec=
11952   # include_expsyms should be a list of space-separated symbols to be *always*
11953   # included in the symbol list
11954   include_expsyms=
11955   # exclude_expsyms can be an extended regexp of symbols to exclude
11956   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11957   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11958   # as well as any symbol that contains `d'.
11959   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11960   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11961   # platforms (ab)use it in PIC code, but their linkers get confused if
11962   # the symbol is explicitly referenced.  Since portable code cannot
11963   # rely on this symbol name, it's probably fine to never include it in
11964   # preloaded symbol tables.
11965   # Exclude shared library initialization/finalization symbols.
11966   extract_expsyms_cmds=
11967
11968   case $host_os in
11969   cygwin* | mingw* | pw32* | cegcc*)
11970     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11971     # When not using gcc, we currently assume that we are using
11972     # Microsoft Visual C++.
11973     if test "$GCC" != yes; then
11974       with_gnu_ld=no
11975     fi
11976     ;;
11977   interix*)
11978     # we just hope/assume this is gcc and not c89 (= MSVC++)
11979     with_gnu_ld=yes
11980     ;;
11981   openbsd*)
11982     with_gnu_ld=no
11983     ;;
11984   esac
11985
11986   ld_shlibs=yes
11987   if test "$with_gnu_ld" = yes; then
11988     # If archive_cmds runs LD, not CC, wlarc should be empty
11989     wlarc='${wl}'
11990
11991     # Set some defaults for GNU ld with shared library support. These
11992     # are reset later if shared libraries are not supported. Putting them
11993     # here allows them to be overridden if necessary.
11994     runpath_var=LD_RUN_PATH
11995     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11996     export_dynamic_flag_spec='${wl}--export-dynamic'
11997     # ancient GNU ld didn't support --whole-archive et. al.
11998     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11999       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12000     else
12001       whole_archive_flag_spec=
12002     fi
12003     supports_anon_versioning=no
12004     case `$LD -v 2>&1` in
12005       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12006       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12007       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12008       *\ 2.11.*) ;; # other 2.11 versions
12009       *) supports_anon_versioning=yes ;;
12010     esac
12011
12012     # See if GNU ld supports shared libraries.
12013     case $host_os in
12014     aix[3-9]*)
12015       # On AIX/PPC, the GNU linker is very broken
12016       if test "$host_cpu" != ia64; then
12017         ld_shlibs=no
12018         cat <<_LT_EOF 1>&2
12019
12020 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12021 *** to be unable to reliably create shared libraries on AIX.
12022 *** Therefore, libtool is disabling shared libraries support.  If you
12023 *** really care for shared libraries, you may want to modify your PATH
12024 *** so that a non-GNU linker is found, and then restart.
12025
12026 _LT_EOF
12027       fi
12028       ;;
12029
12030     amigaos*)
12031       case $host_cpu in
12032       powerpc)
12033             # see comment about AmigaOS4 .so support
12034             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12035             archive_expsym_cmds=''
12036         ;;
12037       m68k)
12038             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)'
12039             hardcode_libdir_flag_spec='-L$libdir'
12040             hardcode_minus_L=yes
12041         ;;
12042       esac
12043       ;;
12044
12045     beos*)
12046       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12047         allow_undefined_flag=unsupported
12048         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12049         # support --undefined.  This deserves some investigation.  FIXME
12050         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051       else
12052         ld_shlibs=no
12053       fi
12054       ;;
12055
12056     cygwin* | mingw* | pw32* | cegcc*)
12057       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12058       # as there is no search path for DLLs.
12059       hardcode_libdir_flag_spec='-L$libdir'
12060       allow_undefined_flag=unsupported
12061       always_export_symbols=no
12062       enable_shared_with_static_runtimes=yes
12063       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12064
12065       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12066         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12067         # If the export-symbols file already is a .def file (1st line
12068         # is EXPORTS), use it as is; otherwise, prepend...
12069         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12070           cp $export_symbols $output_objdir/$soname.def;
12071         else
12072           echo EXPORTS > $output_objdir/$soname.def;
12073           cat $export_symbols >> $output_objdir/$soname.def;
12074         fi~
12075         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12076       else
12077         ld_shlibs=no
12078       fi
12079       ;;
12080
12081     interix[3-9]*)
12082       hardcode_direct=no
12083       hardcode_shlibpath_var=no
12084       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12085       export_dynamic_flag_spec='${wl}-E'
12086       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12087       # Instead, shared libraries are loaded at an image base (0x10000000 by
12088       # default) and relocated if they conflict, which is a slow very memory
12089       # consuming and fragmenting process.  To avoid this, we pick a random,
12090       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12091       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12092       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12093       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'
12094       ;;
12095
12096     gnu* | linux* | tpf* | k*bsd*-gnu)
12097       tmp_diet=no
12098       if test "$host_os" = linux-dietlibc; then
12099         case $cc_basename in
12100           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12101         esac
12102       fi
12103       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12104          && test "$tmp_diet" = no
12105       then
12106         tmp_addflag=
12107         tmp_sharedflag='-shared'
12108         case $cc_basename,$host_cpu in
12109         pgcc*)                          # Portland Group C compiler
12110           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'
12111           tmp_addflag=' $pic_flag'
12112           ;;
12113         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12114           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'
12115           tmp_addflag=' $pic_flag -Mnomain' ;;
12116         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12117           tmp_addflag=' -i_dynamic' ;;
12118         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12119           tmp_addflag=' -i_dynamic -nofor_main' ;;
12120         ifc* | ifort*)                  # Intel Fortran compiler
12121           tmp_addflag=' -nofor_main' ;;
12122         lf95*)                          # Lahey Fortran 8.1
12123           whole_archive_flag_spec=
12124           tmp_sharedflag='--shared' ;;
12125         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12126           tmp_sharedflag='-qmkshrobj'
12127           tmp_addflag= ;;
12128         esac
12129         case `$CC -V 2>&1 | sed 5q` in
12130         *Sun\ C*)                       # Sun C 5.9
12131           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'
12132           compiler_needs_object=yes
12133           tmp_sharedflag='-G' ;;
12134         *Sun\ F*)                       # Sun Fortran 8.3
12135           tmp_sharedflag='-G' ;;
12136         esac
12137         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138
12139         if test "x$supports_anon_versioning" = xyes; then
12140           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12141             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12142             echo "local: *; };" >> $output_objdir/$libname.ver~
12143             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12144         fi
12145
12146         case $cc_basename in
12147         xlf*)
12148           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12149           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12150           hardcode_libdir_flag_spec=
12151           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12152           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12153           if test "x$supports_anon_versioning" = xyes; then
12154             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12155               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12156               echo "local: *; };" >> $output_objdir/$libname.ver~
12157               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12158           fi
12159           ;;
12160         esac
12161       else
12162         ld_shlibs=no
12163       fi
12164       ;;
12165
12166     netbsd*)
12167       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12168         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12169         wlarc=
12170       else
12171         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12173       fi
12174       ;;
12175
12176     solaris*)
12177       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12178         ld_shlibs=no
12179         cat <<_LT_EOF 1>&2
12180
12181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12182 *** create shared libraries on Solaris systems.  Therefore, libtool
12183 *** is disabling shared libraries support.  We urge you to upgrade GNU
12184 *** binutils to release 2.9.1 or newer.  Another option is to modify
12185 *** your PATH or compiler configuration so that the native linker is
12186 *** used, and then restart.
12187
12188 _LT_EOF
12189       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12190         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12191         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12192       else
12193         ld_shlibs=no
12194       fi
12195       ;;
12196
12197     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12198       case `$LD -v 2>&1` in
12199         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12200         ld_shlibs=no
12201         cat <<_LT_EOF 1>&2
12202
12203 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12204 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12205 *** is disabling shared libraries support.  We urge you to upgrade GNU
12206 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12207 *** your PATH or compiler configuration so that the native linker is
12208 *** used, and then restart.
12209
12210 _LT_EOF
12211         ;;
12212         *)
12213           # For security reasons, it is highly recommended that you always
12214           # use absolute paths for naming shared libraries, and exclude the
12215           # DT_RUNPATH tag from executables and libraries.  But doing so
12216           # requires that you compile everything twice, which is a pain.
12217           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12218             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12219             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12221           else
12222             ld_shlibs=no
12223           fi
12224         ;;
12225       esac
12226       ;;
12227
12228     sunos4*)
12229       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12230       wlarc=
12231       hardcode_direct=yes
12232       hardcode_shlibpath_var=no
12233       ;;
12234
12235     *)
12236       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12237         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12239       else
12240         ld_shlibs=no
12241       fi
12242       ;;
12243     esac
12244
12245     if test "$ld_shlibs" = no; then
12246       runpath_var=
12247       hardcode_libdir_flag_spec=
12248       export_dynamic_flag_spec=
12249       whole_archive_flag_spec=
12250     fi
12251   else
12252     # PORTME fill in a description of your system's linker (not GNU ld)
12253     case $host_os in
12254     aix3*)
12255       allow_undefined_flag=unsupported
12256       always_export_symbols=yes
12257       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'
12258       # Note: this linker hardcodes the directories in LIBPATH if there
12259       # are no directories specified by -L.
12260       hardcode_minus_L=yes
12261       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12262         # Neither direct hardcoding nor static linking is supported with a
12263         # broken collect2.
12264         hardcode_direct=unsupported
12265       fi
12266       ;;
12267
12268     aix[4-9]*)
12269       if test "$host_cpu" = ia64; then
12270         # On IA64, the linker does run time linking by default, so we don't
12271         # have to do anything special.
12272         aix_use_runtimelinking=no
12273         exp_sym_flag='-Bexport'
12274         no_entry_flag=""
12275       else
12276         # If we're using GNU nm, then we don't want the "-C" option.
12277         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12278         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12279           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'
12280         else
12281           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'
12282         fi
12283         aix_use_runtimelinking=no
12284
12285         # Test if we are trying to use run time linking or normal
12286         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12287         # need to do runtime linking.
12288         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12289           for ld_flag in $LDFLAGS; do
12290           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12291             aix_use_runtimelinking=yes
12292             break
12293           fi
12294           done
12295           ;;
12296         esac
12297
12298         exp_sym_flag='-bexport'
12299         no_entry_flag='-bnoentry'
12300       fi
12301
12302       # When large executables or shared objects are built, AIX ld can
12303       # have problems creating the table of contents.  If linking a library
12304       # or program results in "error TOC overflow" add -mminimal-toc to
12305       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12306       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12307
12308       archive_cmds=''
12309       hardcode_direct=yes
12310       hardcode_direct_absolute=yes
12311       hardcode_libdir_separator=':'
12312       link_all_deplibs=yes
12313       file_list_spec='${wl}-f,'
12314
12315       if test "$GCC" = yes; then
12316         case $host_os in aix4.[012]|aix4.[012].*)
12317         # We only want to do this on AIX 4.2 and lower, the check
12318         # below for broken collect2 doesn't work under 4.3+
12319           collect2name=`${CC} -print-prog-name=collect2`
12320           if test -f "$collect2name" &&
12321            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12322           then
12323           # We have reworked collect2
12324           :
12325           else
12326           # We have old collect2
12327           hardcode_direct=unsupported
12328           # It fails to find uninstalled libraries when the uninstalled
12329           # path is not listed in the libpath.  Setting hardcode_minus_L
12330           # to unsupported forces relinking
12331           hardcode_minus_L=yes
12332           hardcode_libdir_flag_spec='-L$libdir'
12333           hardcode_libdir_separator=
12334           fi
12335           ;;
12336         esac
12337         shared_flag='-shared'
12338         if test "$aix_use_runtimelinking" = yes; then
12339           shared_flag="$shared_flag "'${wl}-G'
12340         fi
12341       else
12342         # not using gcc
12343         if test "$host_cpu" = ia64; then
12344         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12345         # chokes on -Wl,-G. The following line is correct:
12346           shared_flag='-G'
12347         else
12348           if test "$aix_use_runtimelinking" = yes; then
12349             shared_flag='${wl}-G'
12350           else
12351             shared_flag='${wl}-bM:SRE'
12352           fi
12353         fi
12354       fi
12355
12356       export_dynamic_flag_spec='${wl}-bexpall'
12357       # It seems that -bexpall does not export symbols beginning with
12358       # underscore (_), so it is better to generate a list of symbols to export.
12359       always_export_symbols=yes
12360       if test "$aix_use_runtimelinking" = yes; then
12361         # Warning - without using the other runtime loading flags (-brtl),
12362         # -berok will link without error, but may produce a broken library.
12363         allow_undefined_flag='-berok'
12364         # Determine the default libpath from the value encoded in an
12365         # empty executable.
12366         cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h.  */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h.  */
12372
12373 int
12374 main ()
12375 {
12376
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (ac_try="$ac_link"
12383 case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12388 $as_echo "$ac_try_echo") >&5
12389   (eval "$ac_link") 2>conftest.er1
12390   ac_status=$?
12391   grep -v '^ *+' conftest.er1 >conftest.err
12392   rm -f conftest.er1
12393   cat conftest.err >&5
12394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } && {
12396          test -z "$ac_c_werror_flag" ||
12397          test ! -s conftest.err
12398        } && test -s conftest$ac_exeext && {
12399          test "$cross_compiling" = yes ||
12400          $as_test_x conftest$ac_exeext
12401        }; then
12402
12403 lt_aix_libpath_sed='
12404     /Import File Strings/,/^$/ {
12405         /^0/ {
12406             s/^0  *\(.*\)$/\1/
12407             p
12408         }
12409     }'
12410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 # Check for a 64-bit object if we didn't find anything.
12412 if test -z "$aix_libpath"; then
12413   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12414 fi
12415 else
12416   $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419
12420 fi
12421
12422 rm -rf conftest.dSYM
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424       conftest$ac_exeext conftest.$ac_ext
12425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12426
12427         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12428         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"
12429       else
12430         if test "$host_cpu" = ia64; then
12431           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12432           allow_undefined_flag="-z nodefs"
12433           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"
12434         else
12435          # Determine the default libpath from the value encoded in an
12436          # empty executable.
12437          cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h.  */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h.  */
12443
12444 int
12445 main ()
12446 {
12447
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456   *) ac_try_echo=$ac_try;;
12457 esac
12458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12459 $as_echo "$ac_try_echo") >&5
12460   (eval "$ac_link") 2>conftest.er1
12461   ac_status=$?
12462   grep -v '^ *+' conftest.er1 >conftest.err
12463   rm -f conftest.er1
12464   cat conftest.err >&5
12465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); } && {
12467          test -z "$ac_c_werror_flag" ||
12468          test ! -s conftest.err
12469        } && test -s conftest$ac_exeext && {
12470          test "$cross_compiling" = yes ||
12471          $as_test_x conftest$ac_exeext
12472        }; then
12473
12474 lt_aix_libpath_sed='
12475     /Import File Strings/,/^$/ {
12476         /^0/ {
12477             s/^0  *\(.*\)$/\1/
12478             p
12479         }
12480     }'
12481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12482 # Check for a 64-bit object if we didn't find anything.
12483 if test -z "$aix_libpath"; then
12484   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12485 fi
12486 else
12487   $as_echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490
12491 fi
12492
12493 rm -rf conftest.dSYM
12494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12495       conftest$ac_exeext conftest.$ac_ext
12496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12497
12498          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12499           # Warning - without using the other run time loading flags,
12500           # -berok will link without error, but may produce a broken library.
12501           no_undefined_flag=' ${wl}-bernotok'
12502           allow_undefined_flag=' ${wl}-berok'
12503           # Exported symbols can be pulled into shared objects from archives
12504           whole_archive_flag_spec='$convenience'
12505           archive_cmds_need_lc=yes
12506           # This is similar to how AIX traditionally builds its shared libraries.
12507           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'
12508         fi
12509       fi
12510       ;;
12511
12512     amigaos*)
12513       case $host_cpu in
12514       powerpc)
12515             # see comment about AmigaOS4 .so support
12516             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12517             archive_expsym_cmds=''
12518         ;;
12519       m68k)
12520             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)'
12521             hardcode_libdir_flag_spec='-L$libdir'
12522             hardcode_minus_L=yes
12523         ;;
12524       esac
12525       ;;
12526
12527     bsdi[45]*)
12528       export_dynamic_flag_spec=-rdynamic
12529       ;;
12530
12531     cygwin* | mingw* | pw32* | cegcc*)
12532       # When not using gcc, we currently assume that we are using
12533       # Microsoft Visual C++.
12534       # hardcode_libdir_flag_spec is actually meaningless, as there is
12535       # no search path for DLLs.
12536       hardcode_libdir_flag_spec=' '
12537       allow_undefined_flag=unsupported
12538       # Tell ltmain to make .lib files, not .a files.
12539       libext=lib
12540       # Tell ltmain to make .dll files, not .so files.
12541       shrext_cmds=".dll"
12542       # FIXME: Setting linknames here is a bad hack.
12543       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12544       # The linker will automatically build a .lib file if we build a DLL.
12545       old_archive_from_new_cmds='true'
12546       # FIXME: Should let the user specify the lib program.
12547       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12548       fix_srcfile_path='`cygpath -w "$srcfile"`'
12549       enable_shared_with_static_runtimes=yes
12550       ;;
12551
12552     darwin* | rhapsody*)
12553
12554
12555   archive_cmds_need_lc=no
12556   hardcode_direct=no
12557   hardcode_automatic=yes
12558   hardcode_shlibpath_var=unsupported
12559   whole_archive_flag_spec=''
12560   link_all_deplibs=yes
12561   allow_undefined_flag="$_lt_dar_allow_undefined"
12562   case $cc_basename in
12563      ifort*) _lt_dar_can_shared=yes ;;
12564      *) _lt_dar_can_shared=$GCC ;;
12565   esac
12566   if test "$_lt_dar_can_shared" = "yes"; then
12567     output_verbose_link_cmd=echo
12568     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12569     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12570     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}"
12571     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}"
12572
12573   else
12574   ld_shlibs=no
12575   fi
12576
12577       ;;
12578
12579     dgux*)
12580       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12581       hardcode_libdir_flag_spec='-L$libdir'
12582       hardcode_shlibpath_var=no
12583       ;;
12584
12585     freebsd1*)
12586       ld_shlibs=no
12587       ;;
12588
12589     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12590     # support.  Future versions do this automatically, but an explicit c++rt0.o
12591     # does not break anything, and helps significantly (at the cost of a little
12592     # extra space).
12593     freebsd2.2*)
12594       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12595       hardcode_libdir_flag_spec='-R$libdir'
12596       hardcode_direct=yes
12597       hardcode_shlibpath_var=no
12598       ;;
12599
12600     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12601     freebsd2*)
12602       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12603       hardcode_direct=yes
12604       hardcode_minus_L=yes
12605       hardcode_shlibpath_var=no
12606       ;;
12607
12608     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12609     freebsd* | dragonfly*)
12610       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12611       hardcode_libdir_flag_spec='-R$libdir'
12612       hardcode_direct=yes
12613       hardcode_shlibpath_var=no
12614       ;;
12615
12616     hpux9*)
12617       if test "$GCC" = yes; then
12618         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'
12619       else
12620         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'
12621       fi
12622       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12623       hardcode_libdir_separator=:
12624       hardcode_direct=yes
12625
12626       # hardcode_minus_L: Not really in the search PATH,
12627       # but as the default location of the library.
12628       hardcode_minus_L=yes
12629       export_dynamic_flag_spec='${wl}-E'
12630       ;;
12631
12632     hpux10*)
12633       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12634         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12635       else
12636         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12637       fi
12638       if test "$with_gnu_ld" = no; then
12639         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12640         hardcode_libdir_flag_spec_ld='+b $libdir'
12641         hardcode_libdir_separator=:
12642         hardcode_direct=yes
12643         hardcode_direct_absolute=yes
12644         export_dynamic_flag_spec='${wl}-E'
12645         # hardcode_minus_L: Not really in the search PATH,
12646         # but as the default location of the library.
12647         hardcode_minus_L=yes
12648       fi
12649       ;;
12650
12651     hpux11*)
12652       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12653         case $host_cpu in
12654         hppa*64*)
12655           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12656           ;;
12657         ia64*)
12658           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12659           ;;
12660         *)
12661           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12662           ;;
12663         esac
12664       else
12665         case $host_cpu in
12666         hppa*64*)
12667           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12668           ;;
12669         ia64*)
12670           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12671           ;;
12672         *)
12673           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12674           ;;
12675         esac
12676       fi
12677       if test "$with_gnu_ld" = no; then
12678         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12679         hardcode_libdir_separator=:
12680
12681         case $host_cpu in
12682         hppa*64*|ia64*)
12683           hardcode_direct=no
12684           hardcode_shlibpath_var=no
12685           ;;
12686         *)
12687           hardcode_direct=yes
12688           hardcode_direct_absolute=yes
12689           export_dynamic_flag_spec='${wl}-E'
12690
12691           # hardcode_minus_L: Not really in the search PATH,
12692           # but as the default location of the library.
12693           hardcode_minus_L=yes
12694           ;;
12695         esac
12696       fi
12697       ;;
12698
12699     irix5* | irix6* | nonstopux*)
12700       if test "$GCC" = yes; then
12701         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'
12702         # Try to use the -exported_symbol ld option, if it does not
12703         # work, assume that -exports_file does not work either and
12704         # implicitly export all symbols.
12705         save_LDFLAGS="$LDFLAGS"
12706         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12707         cat >conftest.$ac_ext <<_ACEOF
12708 int foo(void) {}
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (ac_try="$ac_link"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12717 $as_echo "$ac_try_echo") >&5
12718   (eval "$ac_link") 2>conftest.er1
12719   ac_status=$?
12720   grep -v '^ *+' conftest.er1 >conftest.err
12721   rm -f conftest.er1
12722   cat conftest.err >&5
12723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); } && {
12725          test -z "$ac_c_werror_flag" ||
12726          test ! -s conftest.err
12727        } && test -s conftest$ac_exeext && {
12728          test "$cross_compiling" = yes ||
12729          $as_test_x conftest$ac_exeext
12730        }; then
12731   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'
12732
12733 else
12734   $as_echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737
12738 fi
12739
12740 rm -rf conftest.dSYM
12741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12742       conftest$ac_exeext conftest.$ac_ext
12743         LDFLAGS="$save_LDFLAGS"
12744       else
12745         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'
12746         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'
12747       fi
12748       archive_cmds_need_lc='no'
12749       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12750       hardcode_libdir_separator=:
12751       inherit_rpath=yes
12752       link_all_deplibs=yes
12753       ;;
12754
12755     netbsd*)
12756       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12757         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12758       else
12759         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12760       fi
12761       hardcode_libdir_flag_spec='-R$libdir'
12762       hardcode_direct=yes
12763       hardcode_shlibpath_var=no
12764       ;;
12765
12766     newsos6)
12767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12768       hardcode_direct=yes
12769       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12770       hardcode_libdir_separator=:
12771       hardcode_shlibpath_var=no
12772       ;;
12773
12774     *nto* | *qnx*)
12775       ;;
12776
12777     openbsd*)
12778       if test -f /usr/libexec/ld.so; then
12779         hardcode_direct=yes
12780         hardcode_shlibpath_var=no
12781         hardcode_direct_absolute=yes
12782         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12783           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12784           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12785           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12786           export_dynamic_flag_spec='${wl}-E'
12787         else
12788           case $host_os in
12789            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12790              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12791              hardcode_libdir_flag_spec='-R$libdir'
12792              ;;
12793            *)
12794              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12795              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12796              ;;
12797           esac
12798         fi
12799       else
12800         ld_shlibs=no
12801       fi
12802       ;;
12803
12804     os2*)
12805       hardcode_libdir_flag_spec='-L$libdir'
12806       hardcode_minus_L=yes
12807       allow_undefined_flag=unsupported
12808       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'
12809       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12810       ;;
12811
12812     osf3*)
12813       if test "$GCC" = yes; then
12814         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12815         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'
12816       else
12817         allow_undefined_flag=' -expect_unresolved \*'
12818         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'
12819       fi
12820       archive_cmds_need_lc='no'
12821       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12822       hardcode_libdir_separator=:
12823       ;;
12824
12825     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12826       if test "$GCC" = yes; then
12827         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12828         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'
12829         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12830       else
12831         allow_undefined_flag=' -expect_unresolved \*'
12832         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'
12833         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~
12834         $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'
12835
12836         # Both c and cxx compiler support -rpath directly
12837         hardcode_libdir_flag_spec='-rpath $libdir'
12838       fi
12839       archive_cmds_need_lc='no'
12840       hardcode_libdir_separator=:
12841       ;;
12842
12843     solaris*)
12844       no_undefined_flag=' -z defs'
12845       if test "$GCC" = yes; then
12846         wlarc='${wl}'
12847         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12848         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12849           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12850       else
12851         case `$CC -V 2>&1` in
12852         *"Compilers 5.0"*)
12853           wlarc=''
12854           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12856           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12857           ;;
12858         *)
12859           wlarc='${wl}'
12860           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12861           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12862           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12863           ;;
12864         esac
12865       fi
12866       hardcode_libdir_flag_spec='-R$libdir'
12867       hardcode_shlibpath_var=no
12868       case $host_os in
12869       solaris2.[0-5] | solaris2.[0-5].*) ;;
12870       *)
12871         # The compiler driver will combine and reorder linker options,
12872         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12873         # but is careful enough not to reorder.
12874         # Supported since Solaris 2.6 (maybe 2.5.1?)
12875         if test "$GCC" = yes; then
12876           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12877         else
12878           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12879         fi
12880         ;;
12881       esac
12882       link_all_deplibs=yes
12883       ;;
12884
12885     sunos4*)
12886       if test "x$host_vendor" = xsequent; then
12887         # Use $CC to link under sequent, because it throws in some extra .o
12888         # files that make .init and .fini sections work.
12889         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12890       else
12891         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12892       fi
12893       hardcode_libdir_flag_spec='-L$libdir'
12894       hardcode_direct=yes
12895       hardcode_minus_L=yes
12896       hardcode_shlibpath_var=no
12897       ;;
12898
12899     sysv4)
12900       case $host_vendor in
12901         sni)
12902           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12903           hardcode_direct=yes # is this really true???
12904         ;;
12905         siemens)
12906           ## LD is ld it makes a PLAMLIB
12907           ## CC just makes a GrossModule.
12908           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12909           reload_cmds='$CC -r -o $output$reload_objs'
12910           hardcode_direct=no
12911         ;;
12912         motorola)
12913           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12915         ;;
12916       esac
12917       runpath_var='LD_RUN_PATH'
12918       hardcode_shlibpath_var=no
12919       ;;
12920
12921     sysv4.3*)
12922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12923       hardcode_shlibpath_var=no
12924       export_dynamic_flag_spec='-Bexport'
12925       ;;
12926
12927     sysv4*MP*)
12928       if test -d /usr/nec; then
12929         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12930         hardcode_shlibpath_var=no
12931         runpath_var=LD_RUN_PATH
12932         hardcode_runpath_var=yes
12933         ld_shlibs=yes
12934       fi
12935       ;;
12936
12937     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12938       no_undefined_flag='${wl}-z,text'
12939       archive_cmds_need_lc=no
12940       hardcode_shlibpath_var=no
12941       runpath_var='LD_RUN_PATH'
12942
12943       if test "$GCC" = yes; then
12944         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12946       else
12947         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12948         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12949       fi
12950       ;;
12951
12952     sysv5* | sco3.2v5* | sco5v6*)
12953       # Note: We can NOT use -z defs as we might desire, because we do not
12954       # link with -lc, and that would cause any symbols used from libc to
12955       # always be unresolved, which means just about no library would
12956       # ever link correctly.  If we're not using GNU ld we use -z text
12957       # though, which does catch some bad symbols but isn't as heavy-handed
12958       # as -z defs.
12959       no_undefined_flag='${wl}-z,text'
12960       allow_undefined_flag='${wl}-z,nodefs'
12961       archive_cmds_need_lc=no
12962       hardcode_shlibpath_var=no
12963       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12964       hardcode_libdir_separator=':'
12965       link_all_deplibs=yes
12966       export_dynamic_flag_spec='${wl}-Bexport'
12967       runpath_var='LD_RUN_PATH'
12968
12969       if test "$GCC" = yes; then
12970         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12972       else
12973         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12974         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12975       fi
12976       ;;
12977
12978     uts4*)
12979       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12980       hardcode_libdir_flag_spec='-L$libdir'
12981       hardcode_shlibpath_var=no
12982       ;;
12983
12984     *)
12985       ld_shlibs=no
12986       ;;
12987     esac
12988
12989     if test x$host_vendor = xsni; then
12990       case $host in
12991       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12992         export_dynamic_flag_spec='${wl}-Blargedynsym'
12993         ;;
12994       esac
12995     fi
12996   fi
12997
12998 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12999 $as_echo "$ld_shlibs" >&6; }
13000 test "$ld_shlibs" = no && can_build_shared=no
13001
13002 with_gnu_ld=$with_gnu_ld
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018 #
13019 # Do we need to explicitly link libc?
13020 #
13021 case "x$archive_cmds_need_lc" in
13022 x|xyes)
13023   # Assume -lc should be added
13024   archive_cmds_need_lc=yes
13025
13026   if test "$enable_shared" = yes && test "$GCC" = yes; then
13027     case $archive_cmds in
13028     *'~'*)
13029       # FIXME: we may have to deal with multi-command sequences.
13030       ;;
13031     '$CC '*)
13032       # Test whether the compiler implicitly links with -lc since on some
13033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13034       # to ld, don't add -lc before -lgcc.
13035       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13036 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13037       $RM conftest*
13038       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13039
13040       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041   (eval $ac_compile) 2>&5
13042   ac_status=$?
13043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } 2>conftest.err; then
13045         soname=conftest
13046         lib=conftest
13047         libobjs=conftest.$ac_objext
13048         deplibs=
13049         wl=$lt_prog_compiler_wl
13050         pic_flag=$lt_prog_compiler_pic
13051         compiler_flags=-v
13052         linker_flags=-v
13053         verstring=
13054         output_objdir=.
13055         libname=conftest
13056         lt_save_allow_undefined_flag=$allow_undefined_flag
13057         allow_undefined_flag=
13058         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13059   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13060   ac_status=$?
13061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }
13063         then
13064           archive_cmds_need_lc=no
13065         else
13066           archive_cmds_need_lc=yes
13067         fi
13068         allow_undefined_flag=$lt_save_allow_undefined_flag
13069       else
13070         cat conftest.err 1>&5
13071       fi
13072       $RM conftest*
13073       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13074 $as_echo "$archive_cmds_need_lc" >&6; }
13075       ;;
13076     esac
13077   fi
13078   ;;
13079 esac
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13238 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13239
13240 if test "$GCC" = yes; then
13241   case $host_os in
13242     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13243     *) lt_awk_arg="/^libraries:/" ;;
13244   esac
13245   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13246   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13247     # if the path contains ";" then we assume it to be the separator
13248     # otherwise default to the standard path separator (i.e. ":") - it is
13249     # assumed that no part of a normal pathname contains ";" but that should
13250     # okay in the real world where ";" in dirpaths is itself problematic.
13251     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13252   else
13253     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13254   fi
13255   # Ok, now we have the path, separated by spaces, we can step through it
13256   # and add multilib dir if necessary.
13257   lt_tmp_lt_search_path_spec=
13258   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13259   for lt_sys_path in $lt_search_path_spec; do
13260     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13261       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13262     else
13263       test -d "$lt_sys_path" && \
13264         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13265     fi
13266   done
13267   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13268 BEGIN {RS=" "; FS="/|\n";} {
13269   lt_foo="";
13270   lt_count=0;
13271   for (lt_i = NF; lt_i > 0; lt_i--) {
13272     if ($lt_i != "" && $lt_i != ".") {
13273       if ($lt_i == "..") {
13274         lt_count++;
13275       } else {
13276         if (lt_count == 0) {
13277           lt_foo="/" $lt_i lt_foo;
13278         } else {
13279           lt_count--;
13280         }
13281       }
13282     }
13283   }
13284   if (lt_foo != "") { lt_freq[lt_foo]++; }
13285   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13286 }'`
13287   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13288 else
13289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13290 fi
13291 library_names_spec=
13292 libname_spec='lib$name'
13293 soname_spec=
13294 shrext_cmds=".so"
13295 postinstall_cmds=
13296 postuninstall_cmds=
13297 finish_cmds=
13298 finish_eval=
13299 shlibpath_var=
13300 shlibpath_overrides_runpath=unknown
13301 version_type=none
13302 dynamic_linker="$host_os ld.so"
13303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13304 need_lib_prefix=unknown
13305 hardcode_into_libs=no
13306
13307 # when you set need_version to no, make sure it does not cause -set_version
13308 # flags to be left without arguments
13309 need_version=unknown
13310
13311 case $host_os in
13312 aix3*)
13313   version_type=linux
13314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13315   shlibpath_var=LIBPATH
13316
13317   # AIX 3 has no versioning support, so we append a major version to the name.
13318   soname_spec='${libname}${release}${shared_ext}$major'
13319   ;;
13320
13321 aix[4-9]*)
13322   version_type=linux
13323   need_lib_prefix=no
13324   need_version=no
13325   hardcode_into_libs=yes
13326   if test "$host_cpu" = ia64; then
13327     # AIX 5 supports IA64
13328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13329     shlibpath_var=LD_LIBRARY_PATH
13330   else
13331     # With GCC up to 2.95.x, collect2 would create an import file
13332     # for dependence libraries.  The import file would start with
13333     # the line `#! .'.  This would cause the generated library to
13334     # depend on `.', always an invalid library.  This was fixed in
13335     # development snapshots of GCC prior to 3.0.
13336     case $host_os in
13337       aix4 | aix4.[01] | aix4.[01].*)
13338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13339            echo ' yes '
13340            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13341         :
13342       else
13343         can_build_shared=no
13344       fi
13345       ;;
13346     esac
13347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13348     # soname into executable. Probably we can add versioning support to
13349     # collect2, so additional links can be useful in future.
13350     if test "$aix_use_runtimelinking" = yes; then
13351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13352       # instead of lib<name>.a to let people know that these are not
13353       # typical AIX shared libraries.
13354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13355     else
13356       # We preserve .a as extension for shared libraries through AIX4.2
13357       # and later when we are not doing run time linking.
13358       library_names_spec='${libname}${release}.a $libname.a'
13359       soname_spec='${libname}${release}${shared_ext}$major'
13360     fi
13361     shlibpath_var=LIBPATH
13362   fi
13363   ;;
13364
13365 amigaos*)
13366   case $host_cpu in
13367   powerpc)
13368     # Since July 2007 AmigaOS4 officially supports .so libraries.
13369     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371     ;;
13372   m68k)
13373     library_names_spec='$libname.ixlibrary $libname.a'
13374     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13375     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'
13376     ;;
13377   esac
13378   ;;
13379
13380 beos*)
13381   library_names_spec='${libname}${shared_ext}'
13382   dynamic_linker="$host_os ld.so"
13383   shlibpath_var=LIBRARY_PATH
13384   ;;
13385
13386 bsdi[45]*)
13387   version_type=linux
13388   need_version=no
13389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390   soname_spec='${libname}${release}${shared_ext}$major'
13391   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13392   shlibpath_var=LD_LIBRARY_PATH
13393   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13394   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13395   # the default ld.so.conf also contains /usr/contrib/lib and
13396   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13397   # libtool to hard-code these into programs
13398   ;;
13399
13400 cygwin* | mingw* | pw32* | cegcc*)
13401   version_type=windows
13402   shrext_cmds=".dll"
13403   need_version=no
13404   need_lib_prefix=no
13405
13406   case $GCC,$host_os in
13407   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13408     library_names_spec='$libname.dll.a'
13409     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13410     postinstall_cmds='base_file=`basename \${file}`~
13411       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13412       dldir=$destdir/`dirname \$dlpath`~
13413       test -d \$dldir || mkdir -p \$dldir~
13414       $install_prog $dir/$dlname \$dldir/$dlname~
13415       chmod a+x \$dldir/$dlname~
13416       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13417         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13418       fi'
13419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13420       dlpath=$dir/\$dldll~
13421        $RM \$dlpath'
13422     shlibpath_overrides_runpath=yes
13423
13424     case $host_os in
13425     cygwin*)
13426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13427       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13428       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13429       ;;
13430     mingw* | cegcc*)
13431       # MinGW DLLs use traditional 'lib' prefix
13432       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13433       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13434       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13435         # It is most probably a Windows format PATH printed by
13436         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13437         # path with ; separators, and with drive letters. We can handle the
13438         # drive letters (cygwin fileutils understands them), so leave them,
13439         # especially as we might pass files found there to a mingw objdump,
13440         # which wouldn't understand a cygwinified path. Ahh.
13441         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13442       else
13443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13444       fi
13445       ;;
13446     pw32*)
13447       # pw32 DLLs use 'pw' prefix rather than 'lib'
13448       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13449       ;;
13450     esac
13451     ;;
13452
13453   *)
13454     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13455     ;;
13456   esac
13457   dynamic_linker='Win32 ld.exe'
13458   # FIXME: first we should search . and the directory the executable is in
13459   shlibpath_var=PATH
13460   ;;
13461
13462 darwin* | rhapsody*)
13463   dynamic_linker="$host_os dyld"
13464   version_type=darwin
13465   need_lib_prefix=no
13466   need_version=no
13467   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13468   soname_spec='${libname}${release}${major}$shared_ext'
13469   shlibpath_overrides_runpath=yes
13470   shlibpath_var=DYLD_LIBRARY_PATH
13471   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13472
13473   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13474   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13475   ;;
13476
13477 dgux*)
13478   version_type=linux
13479   need_lib_prefix=no
13480   need_version=no
13481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13482   soname_spec='${libname}${release}${shared_ext}$major'
13483   shlibpath_var=LD_LIBRARY_PATH
13484   ;;
13485
13486 freebsd1*)
13487   dynamic_linker=no
13488   ;;
13489
13490 freebsd* | dragonfly*)
13491   # DragonFly does not have aout.  When/if they implement a new
13492   # versioning mechanism, adjust this.
13493   if test -x /usr/bin/objformat; then
13494     objformat=`/usr/bin/objformat`
13495   else
13496     case $host_os in
13497     freebsd[123]*) objformat=aout ;;
13498     *) objformat=elf ;;
13499     esac
13500   fi
13501   version_type=freebsd-$objformat
13502   case $version_type in
13503     freebsd-elf*)
13504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13505       need_version=no
13506       need_lib_prefix=no
13507       ;;
13508     freebsd-*)
13509       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13510       need_version=yes
13511       ;;
13512   esac
13513   shlibpath_var=LD_LIBRARY_PATH
13514   case $host_os in
13515   freebsd2*)
13516     shlibpath_overrides_runpath=yes
13517     ;;
13518   freebsd3.[01]* | freebsdelf3.[01]*)
13519     shlibpath_overrides_runpath=yes
13520     hardcode_into_libs=yes
13521     ;;
13522   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13523   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13524     shlibpath_overrides_runpath=no
13525     hardcode_into_libs=yes
13526     ;;
13527   *) # from 4.6 on, and DragonFly
13528     shlibpath_overrides_runpath=yes
13529     hardcode_into_libs=yes
13530     ;;
13531   esac
13532   ;;
13533
13534 gnu*)
13535   version_type=linux
13536   need_lib_prefix=no
13537   need_version=no
13538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13539   soname_spec='${libname}${release}${shared_ext}$major'
13540   shlibpath_var=LD_LIBRARY_PATH
13541   hardcode_into_libs=yes
13542   ;;
13543
13544 hpux9* | hpux10* | hpux11*)
13545   # Give a soname corresponding to the major version so that dld.sl refuses to
13546   # link against other versions.
13547   version_type=sunos
13548   need_lib_prefix=no
13549   need_version=no
13550   case $host_cpu in
13551   ia64*)
13552     shrext_cmds='.so'
13553     hardcode_into_libs=yes
13554     dynamic_linker="$host_os dld.so"
13555     shlibpath_var=LD_LIBRARY_PATH
13556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558     soname_spec='${libname}${release}${shared_ext}$major'
13559     if test "X$HPUX_IA64_MODE" = X32; then
13560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13561     else
13562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13563     fi
13564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13565     ;;
13566   hppa*64*)
13567     shrext_cmds='.sl'
13568     hardcode_into_libs=yes
13569     dynamic_linker="$host_os dld.sl"
13570     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13571     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573     soname_spec='${libname}${release}${shared_ext}$major'
13574     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13575     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13576     ;;
13577   *)
13578     shrext_cmds='.sl'
13579     dynamic_linker="$host_os dld.sl"
13580     shlibpath_var=SHLIB_PATH
13581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583     soname_spec='${libname}${release}${shared_ext}$major'
13584     ;;
13585   esac
13586   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13587   postinstall_cmds='chmod 555 $lib'
13588   ;;
13589
13590 interix[3-9]*)
13591   version_type=linux
13592   need_lib_prefix=no
13593   need_version=no
13594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13595   soname_spec='${libname}${release}${shared_ext}$major'
13596   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13597   shlibpath_var=LD_LIBRARY_PATH
13598   shlibpath_overrides_runpath=no
13599   hardcode_into_libs=yes
13600   ;;
13601
13602 irix5* | irix6* | nonstopux*)
13603   case $host_os in
13604     nonstopux*) version_type=nonstopux ;;
13605     *)
13606         if test "$lt_cv_prog_gnu_ld" = yes; then
13607                 version_type=linux
13608         else
13609                 version_type=irix
13610         fi ;;
13611   esac
13612   need_lib_prefix=no
13613   need_version=no
13614   soname_spec='${libname}${release}${shared_ext}$major'
13615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13616   case $host_os in
13617   irix5* | nonstopux*)
13618     libsuff= shlibsuff=
13619     ;;
13620   *)
13621     case $LD in # libtool.m4 will add one of these switches to LD
13622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13623       libsuff= shlibsuff= libmagic=32-bit;;
13624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13625       libsuff=32 shlibsuff=N32 libmagic=N32;;
13626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13628     *) libsuff= shlibsuff= libmagic=never-match;;
13629     esac
13630     ;;
13631   esac
13632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13633   shlibpath_overrides_runpath=no
13634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13636   hardcode_into_libs=yes
13637   ;;
13638
13639 # No shared lib support for Linux oldld, aout, or coff.
13640 linux*oldld* | linux*aout* | linux*coff*)
13641   dynamic_linker=no
13642   ;;
13643
13644 # This must be Linux ELF.
13645 linux* | k*bsd*-gnu)
13646   version_type=linux
13647   need_lib_prefix=no
13648   need_version=no
13649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13650   soname_spec='${libname}${release}${shared_ext}$major'
13651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13652   shlibpath_var=LD_LIBRARY_PATH
13653   shlibpath_overrides_runpath=no
13654   # Some binutils ld are patched to set DT_RUNPATH
13655   save_LDFLAGS=$LDFLAGS
13656   save_libdir=$libdir
13657   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13658        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13659   cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665
13666 int
13667 main ()
13668 {
13669
13670   ;
13671   return 0;
13672 }
13673 _ACEOF
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (ac_try="$ac_link"
13676 case "(($ac_try" in
13677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678   *) ac_try_echo=$ac_try;;
13679 esac
13680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13681 $as_echo "$ac_try_echo") >&5
13682   (eval "$ac_link") 2>conftest.er1
13683   ac_status=$?
13684   grep -v '^ *+' conftest.er1 >conftest.err
13685   rm -f conftest.er1
13686   cat conftest.err >&5
13687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } && {
13689          test -z "$ac_c_werror_flag" ||
13690          test ! -s conftest.err
13691        } && test -s conftest$ac_exeext && {
13692          test "$cross_compiling" = yes ||
13693          $as_test_x conftest$ac_exeext
13694        }; then
13695   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13696   shlibpath_overrides_runpath=yes
13697 fi
13698
13699 else
13700   $as_echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703
13704 fi
13705
13706 rm -rf conftest.dSYM
13707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13708       conftest$ac_exeext conftest.$ac_ext
13709   LDFLAGS=$save_LDFLAGS
13710   libdir=$save_libdir
13711
13712   # This implies no fast_install, which is unacceptable.
13713   # Some rework will be needed to allow for fast_install
13714   # before this can be enabled.
13715   hardcode_into_libs=yes
13716
13717   # Add ABI-specific directories to the system library path.
13718   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13719
13720   # Append ld.so.conf contents to the search path
13721   if test -f /etc/ld.so.conf; then
13722     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' ' '`
13723     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13724   fi
13725
13726   # We used to test for /lib/ld.so.1 and disable shared libraries on
13727   # powerpc, because MkLinux only supported shared libraries with the
13728   # GNU dynamic linker.  Since this was broken with cross compilers,
13729   # most powerpc-linux boxes support dynamic linking these days and
13730   # people can always --disable-shared, the test was removed, and we
13731   # assume the GNU/Linux dynamic linker is in use.
13732   dynamic_linker='GNU/Linux ld.so'
13733   ;;
13734
13735 netbsd*)
13736   version_type=sunos
13737   need_lib_prefix=no
13738   need_version=no
13739   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13741     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13742     dynamic_linker='NetBSD (a.out) ld.so'
13743   else
13744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13745     soname_spec='${libname}${release}${shared_ext}$major'
13746     dynamic_linker='NetBSD ld.elf_so'
13747   fi
13748   shlibpath_var=LD_LIBRARY_PATH
13749   shlibpath_overrides_runpath=yes
13750   hardcode_into_libs=yes
13751   ;;
13752
13753 newsos6)
13754   version_type=linux
13755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756   shlibpath_var=LD_LIBRARY_PATH
13757   shlibpath_overrides_runpath=yes
13758   ;;
13759
13760 *nto* | *qnx*)
13761   version_type=qnx
13762   need_lib_prefix=no
13763   need_version=no
13764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765   soname_spec='${libname}${release}${shared_ext}$major'
13766   shlibpath_var=LD_LIBRARY_PATH
13767   shlibpath_overrides_runpath=no
13768   hardcode_into_libs=yes
13769   dynamic_linker='ldqnx.so'
13770   ;;
13771
13772 openbsd*)
13773   version_type=sunos
13774   sys_lib_dlsearch_path_spec="/usr/lib"
13775   need_lib_prefix=no
13776   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13777   case $host_os in
13778     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13779     *)                          need_version=no  ;;
13780   esac
13781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13782   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13783   shlibpath_var=LD_LIBRARY_PATH
13784   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13785     case $host_os in
13786       openbsd2.[89] | openbsd2.[89].*)
13787         shlibpath_overrides_runpath=no
13788         ;;
13789       *)
13790         shlibpath_overrides_runpath=yes
13791         ;;
13792       esac
13793   else
13794     shlibpath_overrides_runpath=yes
13795   fi
13796   ;;
13797
13798 os2*)
13799   libname_spec='$name'
13800   shrext_cmds=".dll"
13801   need_lib_prefix=no
13802   library_names_spec='$libname${shared_ext} $libname.a'
13803   dynamic_linker='OS/2 ld.exe'
13804   shlibpath_var=LIBPATH
13805   ;;
13806
13807 osf3* | osf4* | osf5*)
13808   version_type=osf
13809   need_lib_prefix=no
13810   need_version=no
13811   soname_spec='${libname}${release}${shared_ext}$major'
13812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13813   shlibpath_var=LD_LIBRARY_PATH
13814   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13815   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13816   ;;
13817
13818 rdos*)
13819   dynamic_linker=no
13820   ;;
13821
13822 solaris*)
13823   version_type=linux
13824   need_lib_prefix=no
13825   need_version=no
13826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827   soname_spec='${libname}${release}${shared_ext}$major'
13828   shlibpath_var=LD_LIBRARY_PATH
13829   shlibpath_overrides_runpath=yes
13830   hardcode_into_libs=yes
13831   # ldd complains unless libraries are executable
13832   postinstall_cmds='chmod +x $lib'
13833   ;;
13834
13835 sunos4*)
13836   version_type=sunos
13837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13838   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13839   shlibpath_var=LD_LIBRARY_PATH
13840   shlibpath_overrides_runpath=yes
13841   if test "$with_gnu_ld" = yes; then
13842     need_lib_prefix=no
13843   fi
13844   need_version=yes
13845   ;;
13846
13847 sysv4 | sysv4.3*)
13848   version_type=linux
13849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850   soname_spec='${libname}${release}${shared_ext}$major'
13851   shlibpath_var=LD_LIBRARY_PATH
13852   case $host_vendor in
13853     sni)
13854       shlibpath_overrides_runpath=no
13855       need_lib_prefix=no
13856       runpath_var=LD_RUN_PATH
13857       ;;
13858     siemens)
13859       need_lib_prefix=no
13860       ;;
13861     motorola)
13862       need_lib_prefix=no
13863       need_version=no
13864       shlibpath_overrides_runpath=no
13865       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13866       ;;
13867   esac
13868   ;;
13869
13870 sysv4*MP*)
13871   if test -d /usr/nec ;then
13872     version_type=linux
13873     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13874     soname_spec='$libname${shared_ext}.$major'
13875     shlibpath_var=LD_LIBRARY_PATH
13876   fi
13877   ;;
13878
13879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13880   version_type=freebsd-elf
13881   need_lib_prefix=no
13882   need_version=no
13883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13884   soname_spec='${libname}${release}${shared_ext}$major'
13885   shlibpath_var=LD_LIBRARY_PATH
13886   shlibpath_overrides_runpath=yes
13887   hardcode_into_libs=yes
13888   if test "$with_gnu_ld" = yes; then
13889     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13890   else
13891     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13892     case $host_os in
13893       sco3.2v5*)
13894         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13895         ;;
13896     esac
13897   fi
13898   sys_lib_dlsearch_path_spec='/usr/lib'
13899   ;;
13900
13901 tpf*)
13902   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13903   version_type=linux
13904   need_lib_prefix=no
13905   need_version=no
13906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907   shlibpath_var=LD_LIBRARY_PATH
13908   shlibpath_overrides_runpath=no
13909   hardcode_into_libs=yes
13910   ;;
13911
13912 uts4*)
13913   version_type=linux
13914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13915   soname_spec='${libname}${release}${shared_ext}$major'
13916   shlibpath_var=LD_LIBRARY_PATH
13917   ;;
13918
13919 *)
13920   dynamic_linker=no
13921   ;;
13922 esac
13923 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13924 $as_echo "$dynamic_linker" >&6; }
13925 test "$dynamic_linker" = no && can_build_shared=no
13926
13927 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13928 if test "$GCC" = yes; then
13929   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13930 fi
13931
13932 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13933   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13934 fi
13935 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13936   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13937 fi
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14026 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14027 hardcode_action=
14028 if test -n "$hardcode_libdir_flag_spec" ||
14029    test -n "$runpath_var" ||
14030    test "X$hardcode_automatic" = "Xyes" ; then
14031
14032   # We can hardcode non-existent directories.
14033   if test "$hardcode_direct" != no &&
14034      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14035      # have to relink, otherwise we might link with an installed library
14036      # when we should be linking with a yet-to-be-installed one
14037      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14038      test "$hardcode_minus_L" != no; then
14039     # Linking always hardcodes the temporary library directory.
14040     hardcode_action=relink
14041   else
14042     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14043     hardcode_action=immediate
14044   fi
14045 else
14046   # We cannot hardcode anything, or else we can only hardcode existing
14047   # directories.
14048   hardcode_action=unsupported
14049 fi
14050 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
14051 $as_echo "$hardcode_action" >&6; }
14052
14053 if test "$hardcode_action" = relink ||
14054    test "$inherit_rpath" = yes; then
14055   # Fast installation is not supported
14056   enable_fast_install=no
14057 elif test "$shlibpath_overrides_runpath" = yes ||
14058      test "$enable_shared" = no; then
14059   # Fast installation is not necessary
14060   enable_fast_install=needless
14061 fi
14062
14063
14064
14065
14066
14067
14068   if test "x$enable_dlopen" != xyes; then
14069   enable_dlopen=unknown
14070   enable_dlopen_self=unknown
14071   enable_dlopen_self_static=unknown
14072 else
14073   lt_cv_dlopen=no
14074   lt_cv_dlopen_libs=
14075
14076   case $host_os in
14077   beos*)
14078     lt_cv_dlopen="load_add_on"
14079     lt_cv_dlopen_libs=
14080     lt_cv_dlopen_self=yes
14081     ;;
14082
14083   mingw* | pw32* | cegcc*)
14084     lt_cv_dlopen="LoadLibrary"
14085     lt_cv_dlopen_libs=
14086     ;;
14087
14088   cygwin*)
14089     lt_cv_dlopen="dlopen"
14090     lt_cv_dlopen_libs=
14091     ;;
14092
14093   darwin*)
14094   # if libdl is installed we need to link against it
14095     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14096 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14098   $as_echo_n "(cached) " >&6
14099 else
14100   ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-ldl  $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108
14109 /* Override any GCC internal prototype to avoid an error.
14110    Use char because int might match the return type of a GCC
14111    builtin and then its argument prototype would still apply.  */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 char dlopen ();
14116 int
14117 main ()
14118 {
14119 return dlopen ();
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14131 $as_echo "$ac_try_echo") >&5
14132   (eval "$ac_link") 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } && {
14139          test -z "$ac_c_werror_flag" ||
14140          test ! -s conftest.err
14141        } && test -s conftest$ac_exeext && {
14142          test "$cross_compiling" = yes ||
14143          $as_test_x conftest$ac_exeext
14144        }; then
14145   ac_cv_lib_dl_dlopen=yes
14146 else
14147   $as_echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150         ac_cv_lib_dl_dlopen=no
14151 fi
14152
14153 rm -rf conftest.dSYM
14154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14155       conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14157 fi
14158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14160 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14161   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14162 else
14163
14164     lt_cv_dlopen="dyld"
14165     lt_cv_dlopen_libs=
14166     lt_cv_dlopen_self=yes
14167
14168 fi
14169
14170     ;;
14171
14172   *)
14173     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
14174 $as_echo_n "checking for shl_load... " >&6; }
14175 if test "${ac_cv_func_shl_load+set}" = set; then
14176   $as_echo_n "(cached) " >&6
14177 else
14178   cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h.  */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h.  */
14184 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14186 #define shl_load innocuous_shl_load
14187
14188 /* System header to define __stub macros and hopefully few prototypes,
14189     which can conflict with char shl_load (); below.
14190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14191     <limits.h> exists even on freestanding compilers.  */
14192
14193 #ifdef __STDC__
14194 # include <limits.h>
14195 #else
14196 # include <assert.h>
14197 #endif
14198
14199 #undef shl_load
14200
14201 /* Override any GCC internal prototype to avoid an error.
14202    Use char because int might match the return type of a GCC
14203    builtin and then its argument prototype would still apply.  */
14204 #ifdef __cplusplus
14205 extern "C"
14206 #endif
14207 char shl_load ();
14208 /* The GNU C library defines this for functions which it implements
14209     to always fail with ENOSYS.  Some functions are actually named
14210     something starting with __ and the normal name is an alias.  */
14211 #if defined __stub_shl_load || defined __stub___shl_load
14212 choke me
14213 #endif
14214
14215 int
14216 main ()
14217 {
14218 return shl_load ();
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 rm -f conftest.$ac_objext conftest$ac_exeext
14224 if { (ac_try="$ac_link"
14225 case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14230 $as_echo "$ac_try_echo") >&5
14231   (eval "$ac_link") 2>conftest.er1
14232   ac_status=$?
14233   grep -v '^ *+' conftest.er1 >conftest.err
14234   rm -f conftest.er1
14235   cat conftest.err >&5
14236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); } && {
14238          test -z "$ac_c_werror_flag" ||
14239          test ! -s conftest.err
14240        } && test -s conftest$ac_exeext && {
14241          test "$cross_compiling" = yes ||
14242          $as_test_x conftest$ac_exeext
14243        }; then
14244   ac_cv_func_shl_load=yes
14245 else
14246   $as_echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249         ac_cv_func_shl_load=no
14250 fi
14251
14252 rm -rf conftest.dSYM
14253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14254       conftest$ac_exeext conftest.$ac_ext
14255 fi
14256 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14257 $as_echo "$ac_cv_func_shl_load" >&6; }
14258 if test "x$ac_cv_func_shl_load" = x""yes; then
14259   lt_cv_dlopen="shl_load"
14260 else
14261   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14262 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14263 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14264   $as_echo_n "(cached) " >&6
14265 else
14266   ac_check_lib_save_LIBS=$LIBS
14267 LIBS="-ldld  $LIBS"
14268 cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h.  */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h.  */
14274
14275 /* Override any GCC internal prototype to avoid an error.
14276    Use char because int might match the return type of a GCC
14277    builtin and then its argument prototype would still apply.  */
14278 #ifdef __cplusplus
14279 extern "C"
14280 #endif
14281 char shl_load ();
14282 int
14283 main ()
14284 {
14285 return shl_load ();
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297 $as_echo "$ac_try_echo") >&5
14298   (eval "$ac_link") 2>conftest.er1
14299   ac_status=$?
14300   grep -v '^ *+' conftest.er1 >conftest.err
14301   rm -f conftest.er1
14302   cat conftest.err >&5
14303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } && {
14305          test -z "$ac_c_werror_flag" ||
14306          test ! -s conftest.err
14307        } && test -s conftest$ac_exeext && {
14308          test "$cross_compiling" = yes ||
14309          $as_test_x conftest$ac_exeext
14310        }; then
14311   ac_cv_lib_dld_shl_load=yes
14312 else
14313   $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316         ac_cv_lib_dld_shl_load=no
14317 fi
14318
14319 rm -rf conftest.dSYM
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321       conftest$ac_exeext conftest.$ac_ext
14322 LIBS=$ac_check_lib_save_LIBS
14323 fi
14324 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14325 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14326 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
14327   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14328 else
14329   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
14330 $as_echo_n "checking for dlopen... " >&6; }
14331 if test "${ac_cv_func_dlopen+set}" = set; then
14332   $as_echo_n "(cached) " >&6
14333 else
14334   cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h.  */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h.  */
14340 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14342 #define dlopen innocuous_dlopen
14343
14344 /* System header to define __stub macros and hopefully few prototypes,
14345     which can conflict with char dlopen (); below.
14346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14347     <limits.h> exists even on freestanding compilers.  */
14348
14349 #ifdef __STDC__
14350 # include <limits.h>
14351 #else
14352 # include <assert.h>
14353 #endif
14354
14355 #undef dlopen
14356
14357 /* Override any GCC internal prototype to avoid an error.
14358    Use char because int might match the return type of a GCC
14359    builtin and then its argument prototype would still apply.  */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char dlopen ();
14364 /* The GNU C library defines this for functions which it implements
14365     to always fail with ENOSYS.  Some functions are actually named
14366     something starting with __ and the normal name is an alias.  */
14367 #if defined __stub_dlopen || defined __stub___dlopen
14368 choke me
14369 #endif
14370
14371 int
14372 main ()
14373 {
14374 return dlopen ();
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14386 $as_echo "$ac_try_echo") >&5
14387   (eval "$ac_link") 2>conftest.er1
14388   ac_status=$?
14389   grep -v '^ *+' conftest.er1 >conftest.err
14390   rm -f conftest.er1
14391   cat conftest.err >&5
14392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } && {
14394          test -z "$ac_c_werror_flag" ||
14395          test ! -s conftest.err
14396        } && test -s conftest$ac_exeext && {
14397          test "$cross_compiling" = yes ||
14398          $as_test_x conftest$ac_exeext
14399        }; then
14400   ac_cv_func_dlopen=yes
14401 else
14402   $as_echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14404
14405         ac_cv_func_dlopen=no
14406 fi
14407
14408 rm -rf conftest.dSYM
14409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14410       conftest$ac_exeext conftest.$ac_ext
14411 fi
14412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14413 $as_echo "$ac_cv_func_dlopen" >&6; }
14414 if test "x$ac_cv_func_dlopen" = x""yes; then
14415   lt_cv_dlopen="dlopen"
14416 else
14417   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14420   $as_echo_n "(cached) " >&6
14421 else
14422   ac_check_lib_save_LIBS=$LIBS
14423 LIBS="-ldl  $LIBS"
14424 cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h.  */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h.  */
14430
14431 /* Override any GCC internal prototype to avoid an error.
14432    Use char because int might match the return type of a GCC
14433    builtin and then its argument prototype would still apply.  */
14434 #ifdef __cplusplus
14435 extern "C"
14436 #endif
14437 char dlopen ();
14438 int
14439 main ()
14440 {
14441 return dlopen ();
14442   ;
14443   return 0;
14444 }
14445 _ACEOF
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14453 $as_echo "$ac_try_echo") >&5
14454   (eval "$ac_link") 2>conftest.er1
14455   ac_status=$?
14456   grep -v '^ *+' conftest.er1 >conftest.err
14457   rm -f conftest.er1
14458   cat conftest.err >&5
14459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } && {
14461          test -z "$ac_c_werror_flag" ||
14462          test ! -s conftest.err
14463        } && test -s conftest$ac_exeext && {
14464          test "$cross_compiling" = yes ||
14465          $as_test_x conftest$ac_exeext
14466        }; then
14467   ac_cv_lib_dl_dlopen=yes
14468 else
14469   $as_echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472         ac_cv_lib_dl_dlopen=no
14473 fi
14474
14475 rm -rf conftest.dSYM
14476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477       conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14479 fi
14480 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14482 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14483   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14484 else
14485   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14487 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14488   $as_echo_n "(cached) " >&6
14489 else
14490   ac_check_lib_save_LIBS=$LIBS
14491 LIBS="-lsvld  $LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498
14499 /* Override any GCC internal prototype to avoid an error.
14500    Use char because int might match the return type of a GCC
14501    builtin and then its argument prototype would still apply.  */
14502 #ifdef __cplusplus
14503 extern "C"
14504 #endif
14505 char dlopen ();
14506 int
14507 main ()
14508 {
14509 return dlopen ();
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (ac_try="$ac_link"
14516 case "(($ac_try" in
14517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518   *) ac_try_echo=$ac_try;;
14519 esac
14520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14521 $as_echo "$ac_try_echo") >&5
14522   (eval "$ac_link") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && {
14529          test -z "$ac_c_werror_flag" ||
14530          test ! -s conftest.err
14531        } && test -s conftest$ac_exeext && {
14532          test "$cross_compiling" = yes ||
14533          $as_test_x conftest$ac_exeext
14534        }; then
14535   ac_cv_lib_svld_dlopen=yes
14536 else
14537   $as_echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540         ac_cv_lib_svld_dlopen=no
14541 fi
14542
14543 rm -rf conftest.dSYM
14544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14545       conftest$ac_exeext conftest.$ac_ext
14546 LIBS=$ac_check_lib_save_LIBS
14547 fi
14548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14549 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14550 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14551   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14552 else
14553   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14554 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14555 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14556   $as_echo_n "(cached) " >&6
14557 else
14558   ac_check_lib_save_LIBS=$LIBS
14559 LIBS="-ldld  $LIBS"
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566
14567 /* Override any GCC internal prototype to avoid an error.
14568    Use char because int might match the return type of a GCC
14569    builtin and then its argument prototype would still apply.  */
14570 #ifdef __cplusplus
14571 extern "C"
14572 #endif
14573 char dld_link ();
14574 int
14575 main ()
14576 {
14577 return dld_link ();
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (ac_try="$ac_link"
14584 case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14589 $as_echo "$ac_try_echo") >&5
14590   (eval "$ac_link") 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } && {
14597          test -z "$ac_c_werror_flag" ||
14598          test ! -s conftest.err
14599        } && test -s conftest$ac_exeext && {
14600          test "$cross_compiling" = yes ||
14601          $as_test_x conftest$ac_exeext
14602        }; then
14603   ac_cv_lib_dld_dld_link=yes
14604 else
14605   $as_echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608         ac_cv_lib_dld_dld_link=no
14609 fi
14610
14611 rm -rf conftest.dSYM
14612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14613       conftest$ac_exeext conftest.$ac_ext
14614 LIBS=$ac_check_lib_save_LIBS
14615 fi
14616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14617 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14618 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14619   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14620 fi
14621
14622
14623 fi
14624
14625
14626 fi
14627
14628
14629 fi
14630
14631
14632 fi
14633
14634
14635 fi
14636
14637     ;;
14638   esac
14639
14640   if test "x$lt_cv_dlopen" != xno; then
14641     enable_dlopen=yes
14642   else
14643     enable_dlopen=no
14644   fi
14645
14646   case $lt_cv_dlopen in
14647   dlopen)
14648     save_CPPFLAGS="$CPPFLAGS"
14649     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14650
14651     save_LDFLAGS="$LDFLAGS"
14652     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14653
14654     save_LIBS="$LIBS"
14655     LIBS="$lt_cv_dlopen_libs $LIBS"
14656
14657     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14658 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14659 if test "${lt_cv_dlopen_self+set}" = set; then
14660   $as_echo_n "(cached) " >&6
14661 else
14662           if test "$cross_compiling" = yes; then :
14663   lt_cv_dlopen_self=cross
14664 else
14665   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14666   lt_status=$lt_dlunknown
14667   cat > conftest.$ac_ext <<_LT_EOF
14668 #line 14668 "configure"
14669 #include "confdefs.h"
14670
14671 #if HAVE_DLFCN_H
14672 #include <dlfcn.h>
14673 #endif
14674
14675 #include <stdio.h>
14676
14677 #ifdef RTLD_GLOBAL
14678 #  define LT_DLGLOBAL           RTLD_GLOBAL
14679 #else
14680 #  ifdef DL_GLOBAL
14681 #    define LT_DLGLOBAL         DL_GLOBAL
14682 #  else
14683 #    define LT_DLGLOBAL         0
14684 #  endif
14685 #endif
14686
14687 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14688    find out it does not work in some platform. */
14689 #ifndef LT_DLLAZY_OR_NOW
14690 #  ifdef RTLD_LAZY
14691 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14692 #  else
14693 #    ifdef DL_LAZY
14694 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14695 #    else
14696 #      ifdef RTLD_NOW
14697 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14698 #      else
14699 #        ifdef DL_NOW
14700 #          define LT_DLLAZY_OR_NOW      DL_NOW
14701 #        else
14702 #          define LT_DLLAZY_OR_NOW      0
14703 #        endif
14704 #      endif
14705 #    endif
14706 #  endif
14707 #endif
14708
14709 void fnord() { int i=42;}
14710 int main ()
14711 {
14712   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14713   int status = $lt_dlunknown;
14714
14715   if (self)
14716     {
14717       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14718       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14719       /* dlclose (self); */
14720     }
14721   else
14722     puts (dlerror ());
14723
14724   return status;
14725 }
14726 _LT_EOF
14727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728   (eval $ac_link) 2>&5
14729   ac_status=$?
14730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14732     (./conftest; exit; ) >&5 2>/dev/null
14733     lt_status=$?
14734     case x$lt_status in
14735       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14736       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14737       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14738     esac
14739   else :
14740     # compilation failed
14741     lt_cv_dlopen_self=no
14742   fi
14743 fi
14744 rm -fr conftest*
14745
14746
14747 fi
14748 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14749 $as_echo "$lt_cv_dlopen_self" >&6; }
14750
14751     if test "x$lt_cv_dlopen_self" = xyes; then
14752       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14753       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14755 if test "${lt_cv_dlopen_self_static+set}" = set; then
14756   $as_echo_n "(cached) " >&6
14757 else
14758           if test "$cross_compiling" = yes; then :
14759   lt_cv_dlopen_self_static=cross
14760 else
14761   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14762   lt_status=$lt_dlunknown
14763   cat > conftest.$ac_ext <<_LT_EOF
14764 #line 14764 "configure"
14765 #include "confdefs.h"
14766
14767 #if HAVE_DLFCN_H
14768 #include <dlfcn.h>
14769 #endif
14770
14771 #include <stdio.h>
14772
14773 #ifdef RTLD_GLOBAL
14774 #  define LT_DLGLOBAL           RTLD_GLOBAL
14775 #else
14776 #  ifdef DL_GLOBAL
14777 #    define LT_DLGLOBAL         DL_GLOBAL
14778 #  else
14779 #    define LT_DLGLOBAL         0
14780 #  endif
14781 #endif
14782
14783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14784    find out it does not work in some platform. */
14785 #ifndef LT_DLLAZY_OR_NOW
14786 #  ifdef RTLD_LAZY
14787 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14788 #  else
14789 #    ifdef DL_LAZY
14790 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14791 #    else
14792 #      ifdef RTLD_NOW
14793 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14794 #      else
14795 #        ifdef DL_NOW
14796 #          define LT_DLLAZY_OR_NOW      DL_NOW
14797 #        else
14798 #          define LT_DLLAZY_OR_NOW      0
14799 #        endif
14800 #      endif
14801 #    endif
14802 #  endif
14803 #endif
14804
14805 void fnord() { int i=42;}
14806 int main ()
14807 {
14808   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14809   int status = $lt_dlunknown;
14810
14811   if (self)
14812     {
14813       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14814       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14815       /* dlclose (self); */
14816     }
14817   else
14818     puts (dlerror ());
14819
14820   return status;
14821 }
14822 _LT_EOF
14823   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824   (eval $ac_link) 2>&5
14825   ac_status=$?
14826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14828     (./conftest; exit; ) >&5 2>/dev/null
14829     lt_status=$?
14830     case x$lt_status in
14831       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14832       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14833       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14834     esac
14835   else :
14836     # compilation failed
14837     lt_cv_dlopen_self_static=no
14838   fi
14839 fi
14840 rm -fr conftest*
14841
14842
14843 fi
14844 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14845 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14846     fi
14847
14848     CPPFLAGS="$save_CPPFLAGS"
14849     LDFLAGS="$save_LDFLAGS"
14850     LIBS="$save_LIBS"
14851     ;;
14852   esac
14853
14854   case $lt_cv_dlopen_self in
14855   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14856   *) enable_dlopen_self=unknown ;;
14857   esac
14858
14859   case $lt_cv_dlopen_self_static in
14860   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14861   *) enable_dlopen_self_static=unknown ;;
14862   esac
14863 fi
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881 striplib=
14882 old_striplib=
14883 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14884 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14885 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14886   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14887   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14888   { $as_echo "$as_me:$LINENO: result: yes" >&5
14889 $as_echo "yes" >&6; }
14890 else
14891 # FIXME - insert some real tests, host_os isn't really good enough
14892   case $host_os in
14893   darwin*)
14894     if test -n "$STRIP" ; then
14895       striplib="$STRIP -x"
14896       old_striplib="$STRIP -S"
14897       { $as_echo "$as_me:$LINENO: result: yes" >&5
14898 $as_echo "yes" >&6; }
14899     else
14900       { $as_echo "$as_me:$LINENO: result: no" >&5
14901 $as_echo "no" >&6; }
14902     fi
14903     ;;
14904   *)
14905     { $as_echo "$as_me:$LINENO: result: no" >&5
14906 $as_echo "no" >&6; }
14907     ;;
14908   esac
14909 fi
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922   # Report which library types will actually be built
14923   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14924 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14925   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14926 $as_echo "$can_build_shared" >&6; }
14927
14928   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14929 $as_echo_n "checking whether to build shared libraries... " >&6; }
14930   test "$can_build_shared" = "no" && enable_shared=no
14931
14932   # On AIX, shared libraries and static libraries use the same namespace, and
14933   # are all built from PIC.
14934   case $host_os in
14935   aix3*)
14936     test "$enable_shared" = yes && enable_static=no
14937     if test -n "$RANLIB"; then
14938       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14939       postinstall_cmds='$RANLIB $lib'
14940     fi
14941     ;;
14942
14943   aix[4-9]*)
14944     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14945       test "$enable_shared" = yes && enable_static=no
14946     fi
14947     ;;
14948   esac
14949   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14950 $as_echo "$enable_shared" >&6; }
14951
14952   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14953 $as_echo_n "checking whether to build static libraries... " >&6; }
14954   # Make sure either enable_shared or enable_static is yes.
14955   test "$enable_shared" = yes || enable_static=yes
14956   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14957 $as_echo "$enable_static" >&6; }
14958
14959
14960
14961
14962 fi
14963 ac_ext=c
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14968
14969 CC="$lt_save_CC"
14970
14971
14972 ac_ext=cpp
14973 ac_cpp='$CXXCPP $CPPFLAGS'
14974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14977
14978 archive_cmds_need_lc_CXX=no
14979 allow_undefined_flag_CXX=
14980 always_export_symbols_CXX=no
14981 archive_expsym_cmds_CXX=
14982 compiler_needs_object_CXX=no
14983 export_dynamic_flag_spec_CXX=
14984 hardcode_direct_CXX=no
14985 hardcode_direct_absolute_CXX=no
14986 hardcode_libdir_flag_spec_CXX=
14987 hardcode_libdir_flag_spec_ld_CXX=
14988 hardcode_libdir_separator_CXX=
14989 hardcode_minus_L_CXX=no
14990 hardcode_shlibpath_var_CXX=unsupported
14991 hardcode_automatic_CXX=no
14992 inherit_rpath_CXX=no
14993 module_cmds_CXX=
14994 module_expsym_cmds_CXX=
14995 link_all_deplibs_CXX=unknown
14996 old_archive_cmds_CXX=$old_archive_cmds
14997 no_undefined_flag_CXX=
14998 whole_archive_flag_spec_CXX=
14999 enable_shared_with_static_runtimes_CXX=no
15000
15001 # Source file extension for C++ test sources.
15002 ac_ext=cpp
15003
15004 # Object file extension for compiled C++ test sources.
15005 objext=o
15006 objext_CXX=$objext
15007
15008 # No sense in running all these tests if we already determined that
15009 # the CXX compiler isn't working.  Some variables (like enable_shared)
15010 # are currently assumed to apply to all compilers on this platform,
15011 # and will be corrupted by setting them based on a non-working compiler.
15012 if test "$_lt_caught_CXX_error" != yes; then
15013   # Code to be used in simple compile tests
15014   lt_simple_compile_test_code="int some_variable = 0;"
15015
15016   # Code to be used in simple link tests
15017   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15018
15019   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15020
15021
15022
15023
15024
15025
15026 # If no C compiler was specified, use CC.
15027 LTCC=${LTCC-"$CC"}
15028
15029 # If no C compiler flags were specified, use CFLAGS.
15030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15031
15032 # Allow CC to be a program name with arguments.
15033 compiler=$CC
15034
15035
15036   # save warnings/boilerplate of simple test code
15037   ac_outfile=conftest.$ac_objext
15038 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15039 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15040 _lt_compiler_boilerplate=`cat conftest.err`
15041 $RM conftest*
15042
15043   ac_outfile=conftest.$ac_objext
15044 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15045 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15046 _lt_linker_boilerplate=`cat conftest.err`
15047 $RM -r conftest*
15048
15049
15050   # Allow CC to be a program name with arguments.
15051   lt_save_CC=$CC
15052   lt_save_LD=$LD
15053   lt_save_GCC=$GCC
15054   GCC=$GXX
15055   lt_save_with_gnu_ld=$with_gnu_ld
15056   lt_save_path_LD=$lt_cv_path_LD
15057   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15058     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15059   else
15060     $as_unset lt_cv_prog_gnu_ld
15061   fi
15062   if test -n "${lt_cv_path_LDCXX+set}"; then
15063     lt_cv_path_LD=$lt_cv_path_LDCXX
15064   else
15065     $as_unset lt_cv_path_LD
15066   fi
15067   test -z "${LDCXX+set}" || LD=$LDCXX
15068   CC=${CXX-"c++"}
15069   compiler=$CC
15070   compiler_CXX=$CC
15071   for cc_temp in $compiler""; do
15072   case $cc_temp in
15073     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15074     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15075     \-*) ;;
15076     *) break;;
15077   esac
15078 done
15079 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15080
15081
15082   if test -n "$compiler"; then
15083     # We don't want -fno-exception when compiling C++ code, so set the
15084     # no_builtin_flag separately
15085     if test "$GXX" = yes; then
15086       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15087     else
15088       lt_prog_compiler_no_builtin_flag_CXX=
15089     fi
15090
15091     if test "$GXX" = yes; then
15092       # Set up default GNU C++ configuration
15093
15094
15095
15096 # Check whether --with-gnu-ld was given.
15097 if test "${with_gnu_ld+set}" = set; then
15098   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15099 else
15100   with_gnu_ld=no
15101 fi
15102
15103 ac_prog=ld
15104 if test "$GCC" = yes; then
15105   # Check if gcc -print-prog-name=ld gives a path.
15106   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15107 $as_echo_n "checking for ld used by $CC... " >&6; }
15108   case $host in
15109   *-*-mingw*)
15110     # gcc leaves a trailing carriage return which upsets mingw
15111     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15112   *)
15113     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15114   esac
15115   case $ac_prog in
15116     # Accept absolute paths.
15117     [\\/]* | ?:[\\/]*)
15118       re_direlt='/[^/][^/]*/\.\./'
15119       # Canonicalize the pathname of ld
15120       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15121       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15122         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15123       done
15124       test -z "$LD" && LD="$ac_prog"
15125       ;;
15126   "")
15127     # If it fails, then pretend we aren't using GCC.
15128     ac_prog=ld
15129     ;;
15130   *)
15131     # If it is relative, then search for the first ld in PATH.
15132     with_gnu_ld=unknown
15133     ;;
15134   esac
15135 elif test "$with_gnu_ld" = yes; then
15136   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15137 $as_echo_n "checking for GNU ld... " >&6; }
15138 else
15139   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15140 $as_echo_n "checking for non-GNU ld... " >&6; }
15141 fi
15142 if test "${lt_cv_path_LD+set}" = set; then
15143   $as_echo_n "(cached) " >&6
15144 else
15145   if test -z "$LD"; then
15146   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15147   for ac_dir in $PATH; do
15148     IFS="$lt_save_ifs"
15149     test -z "$ac_dir" && ac_dir=.
15150     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15151       lt_cv_path_LD="$ac_dir/$ac_prog"
15152       # Check to see if the program is GNU ld.  I'd rather use --version,
15153       # but apparently some variants of GNU ld only accept -v.
15154       # Break only if it was the GNU/non-GNU ld that we prefer.
15155       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15156       *GNU* | *'with BFD'*)
15157         test "$with_gnu_ld" != no && break
15158         ;;
15159       *)
15160         test "$with_gnu_ld" != yes && break
15161         ;;
15162       esac
15163     fi
15164   done
15165   IFS="$lt_save_ifs"
15166 else
15167   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15168 fi
15169 fi
15170
15171 LD="$lt_cv_path_LD"
15172 if test -n "$LD"; then
15173   { $as_echo "$as_me:$LINENO: result: $LD" >&5
15174 $as_echo "$LD" >&6; }
15175 else
15176   { $as_echo "$as_me:$LINENO: result: no" >&5
15177 $as_echo "no" >&6; }
15178 fi
15179 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15180 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15181    { (exit 1); exit 1; }; }
15182 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15184 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15185   $as_echo_n "(cached) " >&6
15186 else
15187   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15188 case `$LD -v 2>&1 </dev/null` in
15189 *GNU* | *'with BFD'*)
15190   lt_cv_prog_gnu_ld=yes
15191   ;;
15192 *)
15193   lt_cv_prog_gnu_ld=no
15194   ;;
15195 esac
15196 fi
15197 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15199 with_gnu_ld=$lt_cv_prog_gnu_ld
15200
15201
15202
15203
15204
15205
15206
15207       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15208       # archiving commands below assume that GNU ld is being used.
15209       if test "$with_gnu_ld" = yes; then
15210         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15211         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'
15212
15213         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15214         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15215
15216         # If archive_cmds runs LD, not CC, wlarc should be empty
15217         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15218         #     investigate it a little bit more. (MM)
15219         wlarc='${wl}'
15220
15221         # ancient GNU ld didn't support --whole-archive et. al.
15222         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15223           $GREP 'no-whole-archive' > /dev/null; then
15224           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15225         else
15226           whole_archive_flag_spec_CXX=
15227         fi
15228       else
15229         with_gnu_ld=no
15230         wlarc=
15231
15232         # A generic and very simple default shared library creation
15233         # command for GNU C++ for the case where it uses the native
15234         # linker, instead of GNU ld.  If possible, this setting should
15235         # overridden to take advantage of the native linker features on
15236         # the platform it is being used on.
15237         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15238       fi
15239
15240       # Commands to make compiler produce verbose output that lists
15241       # what "hidden" libraries, object files and flags are used when
15242       # linking a shared library.
15243       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15244
15245     else
15246       GXX=no
15247       with_gnu_ld=no
15248       wlarc=
15249     fi
15250
15251     # PORTME: fill in a description of your system's C++ link characteristics
15252     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15254     ld_shlibs_CXX=yes
15255     case $host_os in
15256       aix3*)
15257         # FIXME: insert proper C++ library support
15258         ld_shlibs_CXX=no
15259         ;;
15260       aix[4-9]*)
15261         if test "$host_cpu" = ia64; then
15262           # On IA64, the linker does run time linking by default, so we don't
15263           # have to do anything special.
15264           aix_use_runtimelinking=no
15265           exp_sym_flag='-Bexport'
15266           no_entry_flag=""
15267         else
15268           aix_use_runtimelinking=no
15269
15270           # Test if we are trying to use run time linking or normal
15271           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15272           # need to do runtime linking.
15273           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15274             for ld_flag in $LDFLAGS; do
15275               case $ld_flag in
15276               *-brtl*)
15277                 aix_use_runtimelinking=yes
15278                 break
15279                 ;;
15280               esac
15281             done
15282             ;;
15283           esac
15284
15285           exp_sym_flag='-bexport'
15286           no_entry_flag='-bnoentry'
15287         fi
15288
15289         # When large executables or shared objects are built, AIX ld can
15290         # have problems creating the table of contents.  If linking a library
15291         # or program results in "error TOC overflow" add -mminimal-toc to
15292         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15293         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15294
15295         archive_cmds_CXX=''
15296         hardcode_direct_CXX=yes
15297         hardcode_direct_absolute_CXX=yes
15298         hardcode_libdir_separator_CXX=':'
15299         link_all_deplibs_CXX=yes
15300         file_list_spec_CXX='${wl}-f,'
15301
15302         if test "$GXX" = yes; then
15303           case $host_os in aix4.[012]|aix4.[012].*)
15304           # We only want to do this on AIX 4.2 and lower, the check
15305           # below for broken collect2 doesn't work under 4.3+
15306           collect2name=`${CC} -print-prog-name=collect2`
15307           if test -f "$collect2name" &&
15308              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15309           then
15310             # We have reworked collect2
15311             :
15312           else
15313             # We have old collect2
15314             hardcode_direct_CXX=unsupported
15315             # It fails to find uninstalled libraries when the uninstalled
15316             # path is not listed in the libpath.  Setting hardcode_minus_L
15317             # to unsupported forces relinking
15318             hardcode_minus_L_CXX=yes
15319             hardcode_libdir_flag_spec_CXX='-L$libdir'
15320             hardcode_libdir_separator_CXX=
15321           fi
15322           esac
15323           shared_flag='-shared'
15324           if test "$aix_use_runtimelinking" = yes; then
15325             shared_flag="$shared_flag "'${wl}-G'
15326           fi
15327         else
15328           # not using gcc
15329           if test "$host_cpu" = ia64; then
15330           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15331           # chokes on -Wl,-G. The following line is correct:
15332           shared_flag='-G'
15333           else
15334             if test "$aix_use_runtimelinking" = yes; then
15335               shared_flag='${wl}-G'
15336             else
15337               shared_flag='${wl}-bM:SRE'
15338             fi
15339           fi
15340         fi
15341
15342         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15343         # It seems that -bexpall does not export symbols beginning with
15344         # underscore (_), so it is better to generate a list of symbols to
15345         # export.
15346         always_export_symbols_CXX=yes
15347         if test "$aix_use_runtimelinking" = yes; then
15348           # Warning - without using the other runtime loading flags (-brtl),
15349           # -berok will link without error, but may produce a broken library.
15350           allow_undefined_flag_CXX='-berok'
15351           # Determine the default libpath from the value encoded in an empty
15352           # executable.
15353           cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359
15360 int
15361 main ()
15362 {
15363
15364   ;
15365   return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (ac_try="$ac_link"
15370 case "(($ac_try" in
15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372   *) ac_try_echo=$ac_try;;
15373 esac
15374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15375 $as_echo "$ac_try_echo") >&5
15376   (eval "$ac_link") 2>conftest.er1
15377   ac_status=$?
15378   grep -v '^ *+' conftest.er1 >conftest.err
15379   rm -f conftest.er1
15380   cat conftest.err >&5
15381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); } && {
15383          test -z "$ac_cxx_werror_flag" ||
15384          test ! -s conftest.err
15385        } && test -s conftest$ac_exeext && {
15386          test "$cross_compiling" = yes ||
15387          $as_test_x conftest$ac_exeext
15388        }; then
15389
15390 lt_aix_libpath_sed='
15391     /Import File Strings/,/^$/ {
15392         /^0/ {
15393             s/^0  *\(.*\)$/\1/
15394             p
15395         }
15396     }'
15397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15398 # Check for a 64-bit object if we didn't find anything.
15399 if test -z "$aix_libpath"; then
15400   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401 fi
15402 else
15403   $as_echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406
15407 fi
15408
15409 rm -rf conftest.dSYM
15410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15411       conftest$ac_exeext conftest.$ac_ext
15412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15413
15414           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15415
15416           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"
15417         else
15418           if test "$host_cpu" = ia64; then
15419             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15420             allow_undefined_flag_CXX="-z nodefs"
15421             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"
15422           else
15423             # Determine the default libpath from the value encoded in an
15424             # empty executable.
15425             cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h.  */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h.  */
15431
15432 int
15433 main ()
15434 {
15435
15436   ;
15437   return 0;
15438 }
15439 _ACEOF
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (ac_try="$ac_link"
15442 case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15447 $as_echo "$ac_try_echo") >&5
15448   (eval "$ac_link") 2>conftest.er1
15449   ac_status=$?
15450   grep -v '^ *+' conftest.er1 >conftest.err
15451   rm -f conftest.er1
15452   cat conftest.err >&5
15453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } && {
15455          test -z "$ac_cxx_werror_flag" ||
15456          test ! -s conftest.err
15457        } && test -s conftest$ac_exeext && {
15458          test "$cross_compiling" = yes ||
15459          $as_test_x conftest$ac_exeext
15460        }; then
15461
15462 lt_aix_libpath_sed='
15463     /Import File Strings/,/^$/ {
15464         /^0/ {
15465             s/^0  *\(.*\)$/\1/
15466             p
15467         }
15468     }'
15469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15470 # Check for a 64-bit object if we didn't find anything.
15471 if test -z "$aix_libpath"; then
15472   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15473 fi
15474 else
15475   $as_echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478
15479 fi
15480
15481 rm -rf conftest.dSYM
15482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15483       conftest$ac_exeext conftest.$ac_ext
15484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15485
15486             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15487             # Warning - without using the other run time loading flags,
15488             # -berok will link without error, but may produce a broken library.
15489             no_undefined_flag_CXX=' ${wl}-bernotok'
15490             allow_undefined_flag_CXX=' ${wl}-berok'
15491             # Exported symbols can be pulled into shared objects from archives
15492             whole_archive_flag_spec_CXX='$convenience'
15493             archive_cmds_need_lc_CXX=yes
15494             # This is similar to how AIX traditionally builds its shared
15495             # libraries.
15496             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'
15497           fi
15498         fi
15499         ;;
15500
15501       beos*)
15502         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15503           allow_undefined_flag_CXX=unsupported
15504           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15505           # support --undefined.  This deserves some investigation.  FIXME
15506           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15507         else
15508           ld_shlibs_CXX=no
15509         fi
15510         ;;
15511
15512       chorus*)
15513         case $cc_basename in
15514           *)
15515           # FIXME: insert proper C++ library support
15516           ld_shlibs_CXX=no
15517           ;;
15518         esac
15519         ;;
15520
15521       cygwin* | mingw* | pw32* | cegcc*)
15522         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15523         # as there is no search path for DLLs.
15524         hardcode_libdir_flag_spec_CXX='-L$libdir'
15525         allow_undefined_flag_CXX=unsupported
15526         always_export_symbols_CXX=no
15527         enable_shared_with_static_runtimes_CXX=yes
15528
15529         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15530           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'
15531           # If the export-symbols file already is a .def file (1st line
15532           # is EXPORTS), use it as is; otherwise, prepend...
15533           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15534             cp $export_symbols $output_objdir/$soname.def;
15535           else
15536             echo EXPORTS > $output_objdir/$soname.def;
15537             cat $export_symbols >> $output_objdir/$soname.def;
15538           fi~
15539           $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'
15540         else
15541           ld_shlibs_CXX=no
15542         fi
15543         ;;
15544       darwin* | rhapsody*)
15545
15546
15547   archive_cmds_need_lc_CXX=no
15548   hardcode_direct_CXX=no
15549   hardcode_automatic_CXX=yes
15550   hardcode_shlibpath_var_CXX=unsupported
15551   whole_archive_flag_spec_CXX=''
15552   link_all_deplibs_CXX=yes
15553   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15554   case $cc_basename in
15555      ifort*) _lt_dar_can_shared=yes ;;
15556      *) _lt_dar_can_shared=$GCC ;;
15557   esac
15558   if test "$_lt_dar_can_shared" = "yes"; then
15559     output_verbose_link_cmd=echo
15560     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}"
15561     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15562     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}"
15563     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}"
15564        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15565       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}"
15566       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}"
15567     fi
15568
15569   else
15570   ld_shlibs_CXX=no
15571   fi
15572
15573         ;;
15574
15575       dgux*)
15576         case $cc_basename in
15577           ec++*)
15578             # FIXME: insert proper C++ library support
15579             ld_shlibs_CXX=no
15580             ;;
15581           ghcx*)
15582             # Green Hills C++ Compiler
15583             # FIXME: insert proper C++ library support
15584             ld_shlibs_CXX=no
15585             ;;
15586           *)
15587             # FIXME: insert proper C++ library support
15588             ld_shlibs_CXX=no
15589             ;;
15590         esac
15591         ;;
15592
15593       freebsd[12]*)
15594         # C++ shared libraries reported to be fairly broken before
15595         # switch to ELF
15596         ld_shlibs_CXX=no
15597         ;;
15598
15599       freebsd-elf*)
15600         archive_cmds_need_lc_CXX=no
15601         ;;
15602
15603       freebsd* | dragonfly*)
15604         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15605         # conventions
15606         ld_shlibs_CXX=yes
15607         ;;
15608
15609       gnu*)
15610         ;;
15611
15612       hpux9*)
15613         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15614         hardcode_libdir_separator_CXX=:
15615         export_dynamic_flag_spec_CXX='${wl}-E'
15616         hardcode_direct_CXX=yes
15617         hardcode_minus_L_CXX=yes # Not in the search PATH,
15618                                              # but as the default
15619                                              # location of the library.
15620
15621         case $cc_basename in
15622           CC*)
15623             # FIXME: insert proper C++ library support
15624             ld_shlibs_CXX=no
15625             ;;
15626           aCC*)
15627             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'
15628             # Commands to make compiler produce verbose output that lists
15629             # what "hidden" libraries, object files and flags are used when
15630             # linking a shared library.
15631             #
15632             # There doesn't appear to be a way to prevent this compiler from
15633             # explicitly linking system object files so we need to strip them
15634             # from the output so that they don't get included in the library
15635             # dependencies.
15636             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'
15637             ;;
15638           *)
15639             if test "$GXX" = yes; then
15640               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'
15641             else
15642               # FIXME: insert proper C++ library support
15643               ld_shlibs_CXX=no
15644             fi
15645             ;;
15646         esac
15647         ;;
15648
15649       hpux10*|hpux11*)
15650         if test $with_gnu_ld = no; then
15651           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15652           hardcode_libdir_separator_CXX=:
15653
15654           case $host_cpu in
15655             hppa*64*|ia64*)
15656               ;;
15657             *)
15658               export_dynamic_flag_spec_CXX='${wl}-E'
15659               ;;
15660           esac
15661         fi
15662         case $host_cpu in
15663           hppa*64*|ia64*)
15664             hardcode_direct_CXX=no
15665             hardcode_shlibpath_var_CXX=no
15666             ;;
15667           *)
15668             hardcode_direct_CXX=yes
15669             hardcode_direct_absolute_CXX=yes
15670             hardcode_minus_L_CXX=yes # Not in the search PATH,
15671                                                  # but as the default
15672                                                  # location of the library.
15673             ;;
15674         esac
15675
15676         case $cc_basename in
15677           CC*)
15678             # FIXME: insert proper C++ library support
15679             ld_shlibs_CXX=no
15680             ;;
15681           aCC*)
15682             case $host_cpu in
15683               hppa*64*)
15684                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15685                 ;;
15686               ia64*)
15687                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15688                 ;;
15689               *)
15690                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15691                 ;;
15692             esac
15693             # Commands to make compiler produce verbose output that lists
15694             # what "hidden" libraries, object files and flags are used when
15695             # linking a shared library.
15696             #
15697             # There doesn't appear to be a way to prevent this compiler from
15698             # explicitly linking system object files so we need to strip them
15699             # from the output so that they don't get included in the library
15700             # dependencies.
15701             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'
15702             ;;
15703           *)
15704             if test "$GXX" = yes; then
15705               if test $with_gnu_ld = no; then
15706                 case $host_cpu in
15707                   hppa*64*)
15708                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15709                     ;;
15710                   ia64*)
15711                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15712                     ;;
15713                   *)
15714                     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'
15715                     ;;
15716                 esac
15717               fi
15718             else
15719               # FIXME: insert proper C++ library support
15720               ld_shlibs_CXX=no
15721             fi
15722             ;;
15723         esac
15724         ;;
15725
15726       interix[3-9]*)
15727         hardcode_direct_CXX=no
15728         hardcode_shlibpath_var_CXX=no
15729         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15730         export_dynamic_flag_spec_CXX='${wl}-E'
15731         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15732         # Instead, shared libraries are loaded at an image base (0x10000000 by
15733         # default) and relocated if they conflict, which is a slow very memory
15734         # consuming and fragmenting process.  To avoid this, we pick a random,
15735         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15736         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15737         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'
15738         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'
15739         ;;
15740       irix5* | irix6*)
15741         case $cc_basename in
15742           CC*)
15743             # SGI C++
15744             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'
15745
15746             # Archives containing C++ object files must be created using
15747             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15748             # necessary to make sure instantiated templates are included
15749             # in the archive.
15750             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15751             ;;
15752           *)
15753             if test "$GXX" = yes; then
15754               if test "$with_gnu_ld" = no; then
15755                 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'
15756               else
15757                 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'
15758               fi
15759             fi
15760             link_all_deplibs_CXX=yes
15761             ;;
15762         esac
15763         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15764         hardcode_libdir_separator_CXX=:
15765         inherit_rpath_CXX=yes
15766         ;;
15767
15768       linux* | k*bsd*-gnu)
15769         case $cc_basename in
15770           KCC*)
15771             # Kuck and Associates, Inc. (KAI) C++ Compiler
15772
15773             # KCC will only create a shared library if the output file
15774             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15775             # to its proper name (with version) after linking.
15776             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'
15777             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'
15778             # Commands to make compiler produce verbose output that lists
15779             # what "hidden" libraries, object files and flags are used when
15780             # linking a shared library.
15781             #
15782             # There doesn't appear to be a way to prevent this compiler from
15783             # explicitly linking system object files so we need to strip them
15784             # from the output so that they don't get included in the library
15785             # dependencies.
15786             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'
15787
15788             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15789             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15790
15791             # Archives containing C++ object files must be created using
15792             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15793             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15794             ;;
15795           icpc* | ecpc* )
15796             # Intel C++
15797             with_gnu_ld=yes
15798             # version 8.0 and above of icpc choke on multiply defined symbols
15799             # if we add $predep_objects and $postdep_objects, however 7.1 and
15800             # earlier do not add the objects themselves.
15801             case `$CC -V 2>&1` in
15802               *"Version 7."*)
15803                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15804                 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'
15805                 ;;
15806               *)  # Version 8.0 or newer
15807                 tmp_idyn=
15808                 case $host_cpu in
15809                   ia64*) tmp_idyn=' -i_dynamic';;
15810                 esac
15811                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812                 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'
15813                 ;;
15814             esac
15815             archive_cmds_need_lc_CXX=no
15816             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15817             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15818             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15819             ;;
15820           pgCC* | pgcpp*)
15821             # Portland Group C++ compiler
15822             case `$CC -V` in
15823             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15824               prelink_cmds_CXX='tpldir=Template.dir~
15825                 rm -rf $tpldir~
15826                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15827                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15828               old_archive_cmds_CXX='tpldir=Template.dir~
15829                 rm -rf $tpldir~
15830                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15831                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15832                 $RANLIB $oldlib'
15833               archive_cmds_CXX='tpldir=Template.dir~
15834                 rm -rf $tpldir~
15835                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15836                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15837               archive_expsym_cmds_CXX='tpldir=Template.dir~
15838                 rm -rf $tpldir~
15839                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15840                 $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'
15841               ;;
15842             *) # Version 6 will use weak symbols
15843               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15844               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'
15845               ;;
15846             esac
15847
15848             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15849             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15850             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'
15851             ;;
15852           cxx*)
15853             # Compaq C++
15854             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855             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'
15856
15857             runpath_var=LD_RUN_PATH
15858             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15859             hardcode_libdir_separator_CXX=:
15860
15861             # Commands to make compiler produce verbose output that lists
15862             # what "hidden" libraries, object files and flags are used when
15863             # linking a shared library.
15864             #
15865             # There doesn't appear to be a way to prevent this compiler from
15866             # explicitly linking system object files so we need to strip them
15867             # from the output so that they don't get included in the library
15868             # dependencies.
15869             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'
15870             ;;
15871           xl*)
15872             # IBM XL 8.0 on PPC, with GNU ld
15873             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15874             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15875             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15876             if test "x$supports_anon_versioning" = xyes; then
15877               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15878                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15879                 echo "local: *; };" >> $output_objdir/$libname.ver~
15880                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15881             fi
15882             ;;
15883           *)
15884             case `$CC -V 2>&1 | sed 5q` in
15885             *Sun\ C*)
15886               # Sun C++ 5.9
15887               no_undefined_flag_CXX=' -zdefs'
15888               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15889               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'
15890               hardcode_libdir_flag_spec_CXX='-R$libdir'
15891               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'
15892               compiler_needs_object_CXX=yes
15893
15894               # Not sure whether something based on
15895               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15896               # would be better.
15897               output_verbose_link_cmd='echo'
15898
15899               # Archives containing C++ object files must be created using
15900               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15901               # necessary to make sure instantiated templates are included
15902               # in the archive.
15903               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15904               ;;
15905             esac
15906             ;;
15907         esac
15908         ;;
15909
15910       lynxos*)
15911         # FIXME: insert proper C++ library support
15912         ld_shlibs_CXX=no
15913         ;;
15914
15915       m88k*)
15916         # FIXME: insert proper C++ library support
15917         ld_shlibs_CXX=no
15918         ;;
15919
15920       mvs*)
15921         case $cc_basename in
15922           cxx*)
15923             # FIXME: insert proper C++ library support
15924             ld_shlibs_CXX=no
15925             ;;
15926           *)
15927             # FIXME: insert proper C++ library support
15928             ld_shlibs_CXX=no
15929             ;;
15930         esac
15931         ;;
15932
15933       netbsd*)
15934         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15935           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15936           wlarc=
15937           hardcode_libdir_flag_spec_CXX='-R$libdir'
15938           hardcode_direct_CXX=yes
15939           hardcode_shlibpath_var_CXX=no
15940         fi
15941         # Workaround some broken pre-1.5 toolchains
15942         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15943         ;;
15944
15945       *nto* | *qnx*)
15946         ld_shlibs_CXX=yes
15947         ;;
15948
15949       openbsd2*)
15950         # C++ shared libraries are fairly broken
15951         ld_shlibs_CXX=no
15952         ;;
15953
15954       openbsd*)
15955         if test -f /usr/libexec/ld.so; then
15956           hardcode_direct_CXX=yes
15957           hardcode_shlibpath_var_CXX=no
15958           hardcode_direct_absolute_CXX=yes
15959           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15960           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15961           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15962             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15963             export_dynamic_flag_spec_CXX='${wl}-E'
15964             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15965           fi
15966           output_verbose_link_cmd=echo
15967         else
15968           ld_shlibs_CXX=no
15969         fi
15970         ;;
15971
15972       osf3* | osf4* | osf5*)
15973         case $cc_basename in
15974           KCC*)
15975             # Kuck and Associates, Inc. (KAI) C++ Compiler
15976
15977             # KCC will only create a shared library if the output file
15978             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15979             # to its proper name (with version) after linking.
15980             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'
15981
15982             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15983             hardcode_libdir_separator_CXX=:
15984
15985             # Archives containing C++ object files must be created using
15986             # the KAI C++ compiler.
15987             case $host in
15988               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15989               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15990             esac
15991             ;;
15992           RCC*)
15993             # Rational C++ 2.4.1
15994             # FIXME: insert proper C++ library support
15995             ld_shlibs_CXX=no
15996             ;;
15997           cxx*)
15998             case $host in
15999               osf3*)
16000                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16001                 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'
16002                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16003                 ;;
16004               *)
16005                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16006                 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'
16007                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16008                   echo "-hidden">> $lib.exp~
16009                   $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~
16010                   $RM $lib.exp'
16011                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16012                 ;;
16013             esac
16014
16015             hardcode_libdir_separator_CXX=:
16016
16017             # Commands to make compiler produce verbose output that lists
16018             # what "hidden" libraries, object files and flags are used when
16019             # linking a shared library.
16020             #
16021             # There doesn't appear to be a way to prevent this compiler from
16022             # explicitly linking system object files so we need to strip them
16023             # from the output so that they don't get included in the library
16024             # dependencies.
16025             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'
16026             ;;
16027           *)
16028             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16029               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16030               case $host in
16031                 osf3*)
16032                   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'
16033                   ;;
16034                 *)
16035                   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'
16036                   ;;
16037               esac
16038
16039               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16040               hardcode_libdir_separator_CXX=:
16041
16042               # Commands to make compiler produce verbose output that lists
16043               # what "hidden" libraries, object files and flags are used when
16044               # linking a shared library.
16045               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16046
16047             else
16048               # FIXME: insert proper C++ library support
16049               ld_shlibs_CXX=no
16050             fi
16051             ;;
16052         esac
16053         ;;
16054
16055       psos*)
16056         # FIXME: insert proper C++ library support
16057         ld_shlibs_CXX=no
16058         ;;
16059
16060       sunos4*)
16061         case $cc_basename in
16062           CC*)
16063             # Sun C++ 4.x
16064             # FIXME: insert proper C++ library support
16065             ld_shlibs_CXX=no
16066             ;;
16067           lcc*)
16068             # Lucid
16069             # FIXME: insert proper C++ library support
16070             ld_shlibs_CXX=no
16071             ;;
16072           *)
16073             # FIXME: insert proper C++ library support
16074             ld_shlibs_CXX=no
16075             ;;
16076         esac
16077         ;;
16078
16079       solaris*)
16080         case $cc_basename in
16081           CC*)
16082             # Sun C++ 4.2, 5.x and Centerline C++
16083             archive_cmds_need_lc_CXX=yes
16084             no_undefined_flag_CXX=' -zdefs'
16085             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16086             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16087               $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'
16088
16089             hardcode_libdir_flag_spec_CXX='-R$libdir'
16090             hardcode_shlibpath_var_CXX=no
16091             case $host_os in
16092               solaris2.[0-5] | solaris2.[0-5].*) ;;
16093               *)
16094                 # The compiler driver will combine and reorder linker options,
16095                 # but understands `-z linker_flag'.
16096                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16097                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16098                 ;;
16099             esac
16100             link_all_deplibs_CXX=yes
16101
16102             output_verbose_link_cmd='echo'
16103
16104             # Archives containing C++ object files must be created using
16105             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16106             # necessary to make sure instantiated templates are included
16107             # in the archive.
16108             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16109             ;;
16110           gcx*)
16111             # Green Hills C++ Compiler
16112             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16113
16114             # The C++ compiler must be used to create the archive.
16115             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16116             ;;
16117           *)
16118             # GNU C++ compiler with Solaris linker
16119             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16120               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16121               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16122                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16123                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16124                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16125
16126                 # Commands to make compiler produce verbose output that lists
16127                 # what "hidden" libraries, object files and flags are used when
16128                 # linking a shared library.
16129                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16130               else
16131                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16132                 # platform.
16133                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16134                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16135                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16136
16137                 # Commands to make compiler produce verbose output that lists
16138                 # what "hidden" libraries, object files and flags are used when
16139                 # linking a shared library.
16140                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16141               fi
16142
16143               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16144               case $host_os in
16145                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16146                 *)
16147                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16148                   ;;
16149               esac
16150             fi
16151             ;;
16152         esac
16153         ;;
16154
16155     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16156       no_undefined_flag_CXX='${wl}-z,text'
16157       archive_cmds_need_lc_CXX=no
16158       hardcode_shlibpath_var_CXX=no
16159       runpath_var='LD_RUN_PATH'
16160
16161       case $cc_basename in
16162         CC*)
16163           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16165           ;;
16166         *)
16167           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16168           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169           ;;
16170       esac
16171       ;;
16172
16173       sysv5* | sco3.2v5* | sco5v6*)
16174         # Note: We can NOT use -z defs as we might desire, because we do not
16175         # link with -lc, and that would cause any symbols used from libc to
16176         # always be unresolved, which means just about no library would
16177         # ever link correctly.  If we're not using GNU ld we use -z text
16178         # though, which does catch some bad symbols but isn't as heavy-handed
16179         # as -z defs.
16180         no_undefined_flag_CXX='${wl}-z,text'
16181         allow_undefined_flag_CXX='${wl}-z,nodefs'
16182         archive_cmds_need_lc_CXX=no
16183         hardcode_shlibpath_var_CXX=no
16184         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16185         hardcode_libdir_separator_CXX=':'
16186         link_all_deplibs_CXX=yes
16187         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16188         runpath_var='LD_RUN_PATH'
16189
16190         case $cc_basename in
16191           CC*)
16192             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16193             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194             ;;
16195           *)
16196             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16197             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16198             ;;
16199         esac
16200       ;;
16201
16202       tandem*)
16203         case $cc_basename in
16204           NCC*)
16205             # NonStop-UX NCC 3.20
16206             # FIXME: insert proper C++ library support
16207             ld_shlibs_CXX=no
16208             ;;
16209           *)
16210             # FIXME: insert proper C++ library support
16211             ld_shlibs_CXX=no
16212             ;;
16213         esac
16214         ;;
16215
16216       vxworks*)
16217         # FIXME: insert proper C++ library support
16218         ld_shlibs_CXX=no
16219         ;;
16220
16221       *)
16222         # FIXME: insert proper C++ library support
16223         ld_shlibs_CXX=no
16224         ;;
16225     esac
16226
16227     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16228 $as_echo "$ld_shlibs_CXX" >&6; }
16229     test "$ld_shlibs_CXX" = no && can_build_shared=no
16230
16231     GCC_CXX="$GXX"
16232     LD_CXX="$LD"
16233
16234     ## CAVEAT EMPTOR:
16235     ## There is no encapsulation within the following macros, do not change
16236     ## the running order or otherwise move them around unless you know exactly
16237     ## what you are doing...
16238     # Dependencies to place before and after the object being linked:
16239 predep_objects_CXX=
16240 postdep_objects_CXX=
16241 predeps_CXX=
16242 postdeps_CXX=
16243 compiler_lib_search_path_CXX=
16244
16245 cat > conftest.$ac_ext <<_LT_EOF
16246 class Foo
16247 {
16248 public:
16249   Foo (void) { a = 0; }
16250 private:
16251   int a;
16252 };
16253 _LT_EOF
16254
16255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16256   (eval $ac_compile) 2>&5
16257   ac_status=$?
16258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; then
16260   # Parse the compiler output and extract the necessary
16261   # objects, libraries and library flags.
16262
16263   # Sentinel used to keep track of whether or not we are before
16264   # the conftest object file.
16265   pre_test_object_deps_done=no
16266
16267   for p in `eval "$output_verbose_link_cmd"`; do
16268     case $p in
16269
16270     -L* | -R* | -l*)
16271        # Some compilers place space between "-{L,R}" and the path.
16272        # Remove the space.
16273        if test $p = "-L" ||
16274           test $p = "-R"; then
16275          prev=$p
16276          continue
16277        else
16278          prev=
16279        fi
16280
16281        if test "$pre_test_object_deps_done" = no; then
16282          case $p in
16283          -L* | -R*)
16284            # Internal compiler library paths should come after those
16285            # provided the user.  The postdeps already come after the
16286            # user supplied libs so there is no need to process them.
16287            if test -z "$compiler_lib_search_path_CXX"; then
16288              compiler_lib_search_path_CXX="${prev}${p}"
16289            else
16290              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16291            fi
16292            ;;
16293          # The "-l" case would never come before the object being
16294          # linked, so don't bother handling this case.
16295          esac
16296        else
16297          if test -z "$postdeps_CXX"; then
16298            postdeps_CXX="${prev}${p}"
16299          else
16300            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16301          fi
16302        fi
16303        ;;
16304
16305     *.$objext)
16306        # This assumes that the test object file only shows up
16307        # once in the compiler output.
16308        if test "$p" = "conftest.$objext"; then
16309          pre_test_object_deps_done=yes
16310          continue
16311        fi
16312
16313        if test "$pre_test_object_deps_done" = no; then
16314          if test -z "$predep_objects_CXX"; then
16315            predep_objects_CXX="$p"
16316          else
16317            predep_objects_CXX="$predep_objects_CXX $p"
16318          fi
16319        else
16320          if test -z "$postdep_objects_CXX"; then
16321            postdep_objects_CXX="$p"
16322          else
16323            postdep_objects_CXX="$postdep_objects_CXX $p"
16324          fi
16325        fi
16326        ;;
16327
16328     *) ;; # Ignore the rest.
16329
16330     esac
16331   done
16332
16333   # Clean up.
16334   rm -f a.out a.exe
16335 else
16336   echo "libtool.m4: error: problem compiling CXX test program"
16337 fi
16338
16339 $RM -f confest.$objext
16340
16341 # PORTME: override above test on systems where it is broken
16342 case $host_os in
16343 interix[3-9]*)
16344   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16345   # hack all around it, let's just trust "g++" to DTRT.
16346   predep_objects_CXX=
16347   postdep_objects_CXX=
16348   postdeps_CXX=
16349   ;;
16350
16351 linux*)
16352   case `$CC -V 2>&1 | sed 5q` in
16353   *Sun\ C*)
16354     # Sun C++ 5.9
16355
16356     # The more standards-conforming stlport4 library is
16357     # incompatible with the Cstd library. Avoid specifying
16358     # it if it's in CXXFLAGS. Ignore libCrun as
16359     # -library=stlport4 depends on it.
16360     case " $CXX $CXXFLAGS " in
16361     *" -library=stlport4 "*)
16362       solaris_use_stlport4=yes
16363       ;;
16364     esac
16365
16366     if test "$solaris_use_stlport4" != yes; then
16367       postdeps_CXX='-library=Cstd -library=Crun'
16368     fi
16369     ;;
16370   esac
16371   ;;
16372
16373 solaris*)
16374   case $cc_basename in
16375   CC*)
16376     # The more standards-conforming stlport4 library is
16377     # incompatible with the Cstd library. Avoid specifying
16378     # it if it's in CXXFLAGS. Ignore libCrun as
16379     # -library=stlport4 depends on it.
16380     case " $CXX $CXXFLAGS " in
16381     *" -library=stlport4 "*)
16382       solaris_use_stlport4=yes
16383       ;;
16384     esac
16385
16386     # Adding this requires a known-good setup of shared libraries for
16387     # Sun compiler versions before 5.6, else PIC objects from an old
16388     # archive will be linked into the output, leading to subtle bugs.
16389     if test "$solaris_use_stlport4" != yes; then
16390       postdeps_CXX='-library=Cstd -library=Crun'
16391     fi
16392     ;;
16393   esac
16394   ;;
16395 esac
16396
16397
16398 case " $postdeps_CXX " in
16399 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16400 esac
16401  compiler_lib_search_dirs_CXX=
16402 if test -n "${compiler_lib_search_path_CXX}"; then
16403  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16404 fi
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436     lt_prog_compiler_wl_CXX=
16437 lt_prog_compiler_pic_CXX=
16438 lt_prog_compiler_static_CXX=
16439
16440 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16441 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16442
16443   # C++ specific cases for pic, static, wl, etc.
16444   if test "$GXX" = yes; then
16445     lt_prog_compiler_wl_CXX='-Wl,'
16446     lt_prog_compiler_static_CXX='-static'
16447
16448     case $host_os in
16449     aix*)
16450       # All AIX code is PIC.
16451       if test "$host_cpu" = ia64; then
16452         # AIX 5 now supports IA64 processor
16453         lt_prog_compiler_static_CXX='-Bstatic'
16454       fi
16455       ;;
16456
16457     amigaos*)
16458       case $host_cpu in
16459       powerpc)
16460             # see comment about AmigaOS4 .so support
16461             lt_prog_compiler_pic_CXX='-fPIC'
16462         ;;
16463       m68k)
16464             # FIXME: we need at least 68020 code to build shared libraries, but
16465             # adding the `-m68020' flag to GCC prevents building anything better,
16466             # like `-m68040'.
16467             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16468         ;;
16469       esac
16470       ;;
16471
16472     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16473       # PIC is the default for these OSes.
16474       ;;
16475     mingw* | cygwin* | os2* | pw32* | cegcc*)
16476       # This hack is so that the source file can tell whether it is being
16477       # built for inclusion in a dll (and should export symbols for example).
16478       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16479       # (--disable-auto-import) libraries
16480       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16481       ;;
16482     darwin* | rhapsody*)
16483       # PIC is the default on this platform
16484       # Common symbols not allowed in MH_DYLIB files
16485       lt_prog_compiler_pic_CXX='-fno-common'
16486       ;;
16487     *djgpp*)
16488       # DJGPP does not support shared libraries at all
16489       lt_prog_compiler_pic_CXX=
16490       ;;
16491     interix[3-9]*)
16492       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16493       # Instead, we relocate shared libraries at runtime.
16494       ;;
16495     sysv4*MP*)
16496       if test -d /usr/nec; then
16497         lt_prog_compiler_pic_CXX=-Kconform_pic
16498       fi
16499       ;;
16500     hpux*)
16501       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16502       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16503       # sets the default TLS model and affects inlining.
16504       case $host_cpu in
16505       hppa*64*)
16506         ;;
16507       *)
16508         lt_prog_compiler_pic_CXX='-fPIC'
16509         ;;
16510       esac
16511       ;;
16512     *qnx* | *nto*)
16513       # QNX uses GNU C++, but need to define -shared option too, otherwise
16514       # it will coredump.
16515       lt_prog_compiler_pic_CXX='-fPIC -shared'
16516       ;;
16517     *)
16518       lt_prog_compiler_pic_CXX='-fPIC'
16519       ;;
16520     esac
16521   else
16522     case $host_os in
16523       aix[4-9]*)
16524         # All AIX code is PIC.
16525         if test "$host_cpu" = ia64; then
16526           # AIX 5 now supports IA64 processor
16527           lt_prog_compiler_static_CXX='-Bstatic'
16528         else
16529           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16530         fi
16531         ;;
16532       chorus*)
16533         case $cc_basename in
16534         cxch68*)
16535           # Green Hills C++ Compiler
16536           # _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"
16537           ;;
16538         esac
16539         ;;
16540       dgux*)
16541         case $cc_basename in
16542           ec++*)
16543             lt_prog_compiler_pic_CXX='-KPIC'
16544             ;;
16545           ghcx*)
16546             # Green Hills C++ Compiler
16547             lt_prog_compiler_pic_CXX='-pic'
16548             ;;
16549           *)
16550             ;;
16551         esac
16552         ;;
16553       freebsd* | dragonfly*)
16554         # FreeBSD uses GNU C++
16555         ;;
16556       hpux9* | hpux10* | hpux11*)
16557         case $cc_basename in
16558           CC*)
16559             lt_prog_compiler_wl_CXX='-Wl,'
16560             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16561             if test "$host_cpu" != ia64; then
16562               lt_prog_compiler_pic_CXX='+Z'
16563             fi
16564             ;;
16565           aCC*)
16566             lt_prog_compiler_wl_CXX='-Wl,'
16567             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16568             case $host_cpu in
16569             hppa*64*|ia64*)
16570               # +Z the default
16571               ;;
16572             *)
16573               lt_prog_compiler_pic_CXX='+Z'
16574               ;;
16575             esac
16576             ;;
16577           *)
16578             ;;
16579         esac
16580         ;;
16581       interix*)
16582         # This is c89, which is MS Visual C++ (no shared libs)
16583         # Anyone wants to do a port?
16584         ;;
16585       irix5* | irix6* | nonstopux*)
16586         case $cc_basename in
16587           CC*)
16588             lt_prog_compiler_wl_CXX='-Wl,'
16589             lt_prog_compiler_static_CXX='-non_shared'
16590             # CC pic flag -KPIC is the default.
16591             ;;
16592           *)
16593             ;;
16594         esac
16595         ;;
16596       linux* | k*bsd*-gnu)
16597         case $cc_basename in
16598           KCC*)
16599             # KAI C++ Compiler
16600             lt_prog_compiler_wl_CXX='--backend -Wl,'
16601             lt_prog_compiler_pic_CXX='-fPIC'
16602             ;;
16603           ecpc* )
16604             # old Intel C++ for x86_64 which still supported -KPIC.
16605             lt_prog_compiler_wl_CXX='-Wl,'
16606             lt_prog_compiler_pic_CXX='-KPIC'
16607             lt_prog_compiler_static_CXX='-static'
16608             ;;
16609           icpc* )
16610             # Intel C++, used to be incompatible with GCC.
16611             # ICC 10 doesn't accept -KPIC any more.
16612             lt_prog_compiler_wl_CXX='-Wl,'
16613             lt_prog_compiler_pic_CXX='-fPIC'
16614             lt_prog_compiler_static_CXX='-static'
16615             ;;
16616           pgCC* | pgcpp*)
16617             # Portland Group C++ compiler
16618             lt_prog_compiler_wl_CXX='-Wl,'
16619             lt_prog_compiler_pic_CXX='-fpic'
16620             lt_prog_compiler_static_CXX='-Bstatic'
16621             ;;
16622           cxx*)
16623             # Compaq C++
16624             # Make sure the PIC flag is empty.  It appears that all Alpha
16625             # Linux and Compaq Tru64 Unix objects are PIC.
16626             lt_prog_compiler_pic_CXX=
16627             lt_prog_compiler_static_CXX='-non_shared'
16628             ;;
16629           xlc* | xlC*)
16630             # IBM XL 8.0 on PPC
16631             lt_prog_compiler_wl_CXX='-Wl,'
16632             lt_prog_compiler_pic_CXX='-qpic'
16633             lt_prog_compiler_static_CXX='-qstaticlink'
16634             ;;
16635           *)
16636             case `$CC -V 2>&1 | sed 5q` in
16637             *Sun\ C*)
16638               # Sun C++ 5.9
16639               lt_prog_compiler_pic_CXX='-KPIC'
16640               lt_prog_compiler_static_CXX='-Bstatic'
16641               lt_prog_compiler_wl_CXX='-Qoption ld '
16642               ;;
16643             esac
16644             ;;
16645         esac
16646         ;;
16647       lynxos*)
16648         ;;
16649       m88k*)
16650         ;;
16651       mvs*)
16652         case $cc_basename in
16653           cxx*)
16654             lt_prog_compiler_pic_CXX='-W c,exportall'
16655             ;;
16656           *)
16657             ;;
16658         esac
16659         ;;
16660       netbsd*)
16661         ;;
16662       *qnx* | *nto*)
16663         # QNX uses GNU C++, but need to define -shared option too, otherwise
16664         # it will coredump.
16665         lt_prog_compiler_pic_CXX='-fPIC -shared'
16666         ;;
16667       osf3* | osf4* | osf5*)
16668         case $cc_basename in
16669           KCC*)
16670             lt_prog_compiler_wl_CXX='--backend -Wl,'
16671             ;;
16672           RCC*)
16673             # Rational C++ 2.4.1
16674             lt_prog_compiler_pic_CXX='-pic'
16675             ;;
16676           cxx*)
16677             # Digital/Compaq C++
16678             lt_prog_compiler_wl_CXX='-Wl,'
16679             # Make sure the PIC flag is empty.  It appears that all Alpha
16680             # Linux and Compaq Tru64 Unix objects are PIC.
16681             lt_prog_compiler_pic_CXX=
16682             lt_prog_compiler_static_CXX='-non_shared'
16683             ;;
16684           *)
16685             ;;
16686         esac
16687         ;;
16688       psos*)
16689         ;;
16690       solaris*)
16691         case $cc_basename in
16692           CC*)
16693             # Sun C++ 4.2, 5.x and Centerline C++
16694             lt_prog_compiler_pic_CXX='-KPIC'
16695             lt_prog_compiler_static_CXX='-Bstatic'
16696             lt_prog_compiler_wl_CXX='-Qoption ld '
16697             ;;
16698           gcx*)
16699             # Green Hills C++ Compiler
16700             lt_prog_compiler_pic_CXX='-PIC'
16701             ;;
16702           *)
16703             ;;
16704         esac
16705         ;;
16706       sunos4*)
16707         case $cc_basename in
16708           CC*)
16709             # Sun C++ 4.x
16710             lt_prog_compiler_pic_CXX='-pic'
16711             lt_prog_compiler_static_CXX='-Bstatic'
16712             ;;
16713           lcc*)
16714             # Lucid
16715             lt_prog_compiler_pic_CXX='-pic'
16716             ;;
16717           *)
16718             ;;
16719         esac
16720         ;;
16721       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16722         case $cc_basename in
16723           CC*)
16724             lt_prog_compiler_wl_CXX='-Wl,'
16725             lt_prog_compiler_pic_CXX='-KPIC'
16726             lt_prog_compiler_static_CXX='-Bstatic'
16727             ;;
16728         esac
16729         ;;
16730       tandem*)
16731         case $cc_basename in
16732           NCC*)
16733             # NonStop-UX NCC 3.20
16734             lt_prog_compiler_pic_CXX='-KPIC'
16735             ;;
16736           *)
16737             ;;
16738         esac
16739         ;;
16740       vxworks*)
16741         ;;
16742       *)
16743         lt_prog_compiler_can_build_shared_CXX=no
16744         ;;
16745     esac
16746   fi
16747
16748 case $host_os in
16749   # For platforms which do not support PIC, -DPIC is meaningless:
16750   *djgpp*)
16751     lt_prog_compiler_pic_CXX=
16752     ;;
16753   *)
16754     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16755     ;;
16756 esac
16757 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16758 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16759
16760
16761
16762 #
16763 # Check to make sure the PIC flag actually works.
16764 #
16765 if test -n "$lt_prog_compiler_pic_CXX"; then
16766   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16767 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16768 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16769   $as_echo_n "(cached) " >&6
16770 else
16771   lt_cv_prog_compiler_pic_works_CXX=no
16772    ac_outfile=conftest.$ac_objext
16773    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16774    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16775    # Insert the option either (1) after the last *FLAGS variable, or
16776    # (2) before a word containing "conftest.", or (3) at the end.
16777    # Note that $ac_compile itself does not contain backslashes and begins
16778    # with a dollar sign (not a hyphen), so the echo should work correctly.
16779    # The option is referenced via a variable to avoid confusing sed.
16780    lt_compile=`echo "$ac_compile" | $SED \
16781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16783    -e 's:$: $lt_compiler_flag:'`
16784    (eval echo "\"\$as_me:16784: $lt_compile\"" >&5)
16785    (eval "$lt_compile" 2>conftest.err)
16786    ac_status=$?
16787    cat conftest.err >&5
16788    echo "$as_me:16788: \$? = $ac_status" >&5
16789    if (exit $ac_status) && test -s "$ac_outfile"; then
16790      # The compiler can only warn and ignore the option if not recognized
16791      # So say no if there are warnings other than the usual output.
16792      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16793      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16794      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16795        lt_cv_prog_compiler_pic_works_CXX=yes
16796      fi
16797    fi
16798    $RM conftest*
16799
16800 fi
16801 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16802 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16803
16804 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16805     case $lt_prog_compiler_pic_CXX in
16806      "" | " "*) ;;
16807      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16808      esac
16809 else
16810     lt_prog_compiler_pic_CXX=
16811      lt_prog_compiler_can_build_shared_CXX=no
16812 fi
16813
16814 fi
16815
16816
16817
16818 #
16819 # Check to make sure the static flag actually works.
16820 #
16821 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16822 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16824 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16825   $as_echo_n "(cached) " >&6
16826 else
16827   lt_cv_prog_compiler_static_works_CXX=no
16828    save_LDFLAGS="$LDFLAGS"
16829    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16830    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16831    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16832      # The linker can only warn and ignore the option if not recognized
16833      # So say no if there are warnings
16834      if test -s conftest.err; then
16835        # Append any errors to the config.log.
16836        cat conftest.err 1>&5
16837        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16838        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16839        if diff conftest.exp conftest.er2 >/dev/null; then
16840          lt_cv_prog_compiler_static_works_CXX=yes
16841        fi
16842      else
16843        lt_cv_prog_compiler_static_works_CXX=yes
16844      fi
16845    fi
16846    $RM -r conftest*
16847    LDFLAGS="$save_LDFLAGS"
16848
16849 fi
16850 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16851 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16852
16853 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16854     :
16855 else
16856     lt_prog_compiler_static_CXX=
16857 fi
16858
16859
16860
16861
16862     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16864 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16865   $as_echo_n "(cached) " >&6
16866 else
16867   lt_cv_prog_compiler_c_o_CXX=no
16868    $RM -r conftest 2>/dev/null
16869    mkdir conftest
16870    cd conftest
16871    mkdir out
16872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16873
16874    lt_compiler_flag="-o out/conftest2.$ac_objext"
16875    # Insert the option either (1) after the last *FLAGS variable, or
16876    # (2) before a word containing "conftest.", or (3) at the end.
16877    # Note that $ac_compile itself does not contain backslashes and begins
16878    # with a dollar sign (not a hyphen), so the echo should work correctly.
16879    lt_compile=`echo "$ac_compile" | $SED \
16880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16882    -e 's:$: $lt_compiler_flag:'`
16883    (eval echo "\"\$as_me:16883: $lt_compile\"" >&5)
16884    (eval "$lt_compile" 2>out/conftest.err)
16885    ac_status=$?
16886    cat out/conftest.err >&5
16887    echo "$as_me:16887: \$? = $ac_status" >&5
16888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16889    then
16890      # The compiler can only warn and ignore the option if not recognized
16891      # So say no if there are warnings
16892      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16895        lt_cv_prog_compiler_c_o_CXX=yes
16896      fi
16897    fi
16898    chmod u+w . 2>&5
16899    $RM conftest*
16900    # SGI C++ compiler will create directory out/ii_files/ for
16901    # template instantiation
16902    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16903    $RM out/* && rmdir out
16904    cd ..
16905    $RM -r conftest
16906    $RM conftest*
16907
16908 fi
16909 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16910 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16911
16912
16913
16914     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16916 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16917   $as_echo_n "(cached) " >&6
16918 else
16919   lt_cv_prog_compiler_c_o_CXX=no
16920    $RM -r conftest 2>/dev/null
16921    mkdir conftest
16922    cd conftest
16923    mkdir out
16924    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16925
16926    lt_compiler_flag="-o out/conftest2.$ac_objext"
16927    # Insert the option either (1) after the last *FLAGS variable, or
16928    # (2) before a word containing "conftest.", or (3) at the end.
16929    # Note that $ac_compile itself does not contain backslashes and begins
16930    # with a dollar sign (not a hyphen), so the echo should work correctly.
16931    lt_compile=`echo "$ac_compile" | $SED \
16932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16934    -e 's:$: $lt_compiler_flag:'`
16935    (eval echo "\"\$as_me:16935: $lt_compile\"" >&5)
16936    (eval "$lt_compile" 2>out/conftest.err)
16937    ac_status=$?
16938    cat out/conftest.err >&5
16939    echo "$as_me:16939: \$? = $ac_status" >&5
16940    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16941    then
16942      # The compiler can only warn and ignore the option if not recognized
16943      # So say no if there are warnings
16944      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16945      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16946      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16947        lt_cv_prog_compiler_c_o_CXX=yes
16948      fi
16949    fi
16950    chmod u+w . 2>&5
16951    $RM conftest*
16952    # SGI C++ compiler will create directory out/ii_files/ for
16953    # template instantiation
16954    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16955    $RM out/* && rmdir out
16956    cd ..
16957    $RM -r conftest
16958    $RM conftest*
16959
16960 fi
16961 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16962 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16963
16964
16965
16966
16967 hard_links="nottested"
16968 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16969   # do not overwrite the value of need_locks provided by the user
16970   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16971 $as_echo_n "checking if we can lock with hard links... " >&6; }
16972   hard_links=yes
16973   $RM conftest*
16974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16975   touch conftest.a
16976   ln conftest.a conftest.b 2>&5 || hard_links=no
16977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16978   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16979 $as_echo "$hard_links" >&6; }
16980   if test "$hard_links" = no; then
16981     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16982 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16983     need_locks=warn
16984   fi
16985 else
16986   need_locks=no
16987 fi
16988
16989
16990
16991     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16992 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16993
16994   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16995   case $host_os in
16996   aix[4-9]*)
16997     # If we're using GNU nm, then we don't want the "-C" option.
16998     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16999     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17000       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'
17001     else
17002       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'
17003     fi
17004     ;;
17005   pw32*)
17006     export_symbols_cmds_CXX="$ltdll_cmds"
17007   ;;
17008   cygwin* | mingw* | cegcc*)
17009     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'
17010   ;;
17011   *)
17012     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17013   ;;
17014   esac
17015   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17016
17017 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17018 $as_echo "$ld_shlibs_CXX" >&6; }
17019 test "$ld_shlibs_CXX" = no && can_build_shared=no
17020
17021 with_gnu_ld_CXX=$with_gnu_ld
17022
17023
17024
17025
17026
17027
17028 #
17029 # Do we need to explicitly link libc?
17030 #
17031 case "x$archive_cmds_need_lc_CXX" in
17032 x|xyes)
17033   # Assume -lc should be added
17034   archive_cmds_need_lc_CXX=yes
17035
17036   if test "$enable_shared" = yes && test "$GCC" = yes; then
17037     case $archive_cmds_CXX in
17038     *'~'*)
17039       # FIXME: we may have to deal with multi-command sequences.
17040       ;;
17041     '$CC '*)
17042       # Test whether the compiler implicitly links with -lc since on some
17043       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17044       # to ld, don't add -lc before -lgcc.
17045       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17046 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17047       $RM conftest*
17048       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17049
17050       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051   (eval $ac_compile) 2>&5
17052   ac_status=$?
17053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } 2>conftest.err; then
17055         soname=conftest
17056         lib=conftest
17057         libobjs=conftest.$ac_objext
17058         deplibs=
17059         wl=$lt_prog_compiler_wl_CXX
17060         pic_flag=$lt_prog_compiler_pic_CXX
17061         compiler_flags=-v
17062         linker_flags=-v
17063         verstring=
17064         output_objdir=.
17065         libname=conftest
17066         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17067         allow_undefined_flag_CXX=
17068         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17069   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17070   ac_status=$?
17071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }
17073         then
17074           archive_cmds_need_lc_CXX=no
17075         else
17076           archive_cmds_need_lc_CXX=yes
17077         fi
17078         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17079       else
17080         cat conftest.err 1>&5
17081       fi
17082       $RM conftest*
17083       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17084 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17085       ;;
17086     esac
17087   fi
17088   ;;
17089 esac
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17155 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17156
17157 library_names_spec=
17158 libname_spec='lib$name'
17159 soname_spec=
17160 shrext_cmds=".so"
17161 postinstall_cmds=
17162 postuninstall_cmds=
17163 finish_cmds=
17164 finish_eval=
17165 shlibpath_var=
17166 shlibpath_overrides_runpath=unknown
17167 version_type=none
17168 dynamic_linker="$host_os ld.so"
17169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17170 need_lib_prefix=unknown
17171 hardcode_into_libs=no
17172
17173 # when you set need_version to no, make sure it does not cause -set_version
17174 # flags to be left without arguments
17175 need_version=unknown
17176
17177 case $host_os in
17178 aix3*)
17179   version_type=linux
17180   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17181   shlibpath_var=LIBPATH
17182
17183   # AIX 3 has no versioning support, so we append a major version to the name.
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   ;;
17186
17187 aix[4-9]*)
17188   version_type=linux
17189   need_lib_prefix=no
17190   need_version=no
17191   hardcode_into_libs=yes
17192   if test "$host_cpu" = ia64; then
17193     # AIX 5 supports IA64
17194     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17195     shlibpath_var=LD_LIBRARY_PATH
17196   else
17197     # With GCC up to 2.95.x, collect2 would create an import file
17198     # for dependence libraries.  The import file would start with
17199     # the line `#! .'.  This would cause the generated library to
17200     # depend on `.', always an invalid library.  This was fixed in
17201     # development snapshots of GCC prior to 3.0.
17202     case $host_os in
17203       aix4 | aix4.[01] | aix4.[01].*)
17204       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17205            echo ' yes '
17206            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17207         :
17208       else
17209         can_build_shared=no
17210       fi
17211       ;;
17212     esac
17213     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17214     # soname into executable. Probably we can add versioning support to
17215     # collect2, so additional links can be useful in future.
17216     if test "$aix_use_runtimelinking" = yes; then
17217       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17218       # instead of lib<name>.a to let people know that these are not
17219       # typical AIX shared libraries.
17220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221     else
17222       # We preserve .a as extension for shared libraries through AIX4.2
17223       # and later when we are not doing run time linking.
17224       library_names_spec='${libname}${release}.a $libname.a'
17225       soname_spec='${libname}${release}${shared_ext}$major'
17226     fi
17227     shlibpath_var=LIBPATH
17228   fi
17229   ;;
17230
17231 amigaos*)
17232   case $host_cpu in
17233   powerpc)
17234     # Since July 2007 AmigaOS4 officially supports .so libraries.
17235     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237     ;;
17238   m68k)
17239     library_names_spec='$libname.ixlibrary $libname.a'
17240     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17241     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'
17242     ;;
17243   esac
17244   ;;
17245
17246 beos*)
17247   library_names_spec='${libname}${shared_ext}'
17248   dynamic_linker="$host_os ld.so"
17249   shlibpath_var=LIBRARY_PATH
17250   ;;
17251
17252 bsdi[45]*)
17253   version_type=linux
17254   need_version=no
17255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256   soname_spec='${libname}${release}${shared_ext}$major'
17257   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17258   shlibpath_var=LD_LIBRARY_PATH
17259   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17260   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17261   # the default ld.so.conf also contains /usr/contrib/lib and
17262   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17263   # libtool to hard-code these into programs
17264   ;;
17265
17266 cygwin* | mingw* | pw32* | cegcc*)
17267   version_type=windows
17268   shrext_cmds=".dll"
17269   need_version=no
17270   need_lib_prefix=no
17271
17272   case $GCC,$host_os in
17273   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17274     library_names_spec='$libname.dll.a'
17275     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17276     postinstall_cmds='base_file=`basename \${file}`~
17277       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17278       dldir=$destdir/`dirname \$dlpath`~
17279       test -d \$dldir || mkdir -p \$dldir~
17280       $install_prog $dir/$dlname \$dldir/$dlname~
17281       chmod a+x \$dldir/$dlname~
17282       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17283         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17284       fi'
17285     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17286       dlpath=$dir/\$dldll~
17287        $RM \$dlpath'
17288     shlibpath_overrides_runpath=yes
17289
17290     case $host_os in
17291     cygwin*)
17292       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17293       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17295       ;;
17296     mingw* | cegcc*)
17297       # MinGW DLLs use traditional 'lib' prefix
17298       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17299       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17300       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17301         # It is most probably a Windows format PATH printed by
17302         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17303         # path with ; separators, and with drive letters. We can handle the
17304         # drive letters (cygwin fileutils understands them), so leave them,
17305         # especially as we might pass files found there to a mingw objdump,
17306         # which wouldn't understand a cygwinified path. Ahh.
17307         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17308       else
17309         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17310       fi
17311       ;;
17312     pw32*)
17313       # pw32 DLLs use 'pw' prefix rather than 'lib'
17314       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17315       ;;
17316     esac
17317     ;;
17318
17319   *)
17320     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17321     ;;
17322   esac
17323   dynamic_linker='Win32 ld.exe'
17324   # FIXME: first we should search . and the directory the executable is in
17325   shlibpath_var=PATH
17326   ;;
17327
17328 darwin* | rhapsody*)
17329   dynamic_linker="$host_os dyld"
17330   version_type=darwin
17331   need_lib_prefix=no
17332   need_version=no
17333   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17334   soname_spec='${libname}${release}${major}$shared_ext'
17335   shlibpath_overrides_runpath=yes
17336   shlibpath_var=DYLD_LIBRARY_PATH
17337   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17338
17339   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17340   ;;
17341
17342 dgux*)
17343   version_type=linux
17344   need_lib_prefix=no
17345   need_version=no
17346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17347   soname_spec='${libname}${release}${shared_ext}$major'
17348   shlibpath_var=LD_LIBRARY_PATH
17349   ;;
17350
17351 freebsd1*)
17352   dynamic_linker=no
17353   ;;
17354
17355 freebsd* | dragonfly*)
17356   # DragonFly does not have aout.  When/if they implement a new
17357   # versioning mechanism, adjust this.
17358   if test -x /usr/bin/objformat; then
17359     objformat=`/usr/bin/objformat`
17360   else
17361     case $host_os in
17362     freebsd[123]*) objformat=aout ;;
17363     *) objformat=elf ;;
17364     esac
17365   fi
17366   version_type=freebsd-$objformat
17367   case $version_type in
17368     freebsd-elf*)
17369       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17370       need_version=no
17371       need_lib_prefix=no
17372       ;;
17373     freebsd-*)
17374       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17375       need_version=yes
17376       ;;
17377   esac
17378   shlibpath_var=LD_LIBRARY_PATH
17379   case $host_os in
17380   freebsd2*)
17381     shlibpath_overrides_runpath=yes
17382     ;;
17383   freebsd3.[01]* | freebsdelf3.[01]*)
17384     shlibpath_overrides_runpath=yes
17385     hardcode_into_libs=yes
17386     ;;
17387   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17388   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17389     shlibpath_overrides_runpath=no
17390     hardcode_into_libs=yes
17391     ;;
17392   *) # from 4.6 on, and DragonFly
17393     shlibpath_overrides_runpath=yes
17394     hardcode_into_libs=yes
17395     ;;
17396   esac
17397   ;;
17398
17399 gnu*)
17400   version_type=linux
17401   need_lib_prefix=no
17402   need_version=no
17403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17404   soname_spec='${libname}${release}${shared_ext}$major'
17405   shlibpath_var=LD_LIBRARY_PATH
17406   hardcode_into_libs=yes
17407   ;;
17408
17409 hpux9* | hpux10* | hpux11*)
17410   # Give a soname corresponding to the major version so that dld.sl refuses to
17411   # link against other versions.
17412   version_type=sunos
17413   need_lib_prefix=no
17414   need_version=no
17415   case $host_cpu in
17416   ia64*)
17417     shrext_cmds='.so'
17418     hardcode_into_libs=yes
17419     dynamic_linker="$host_os dld.so"
17420     shlibpath_var=LD_LIBRARY_PATH
17421     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17423     soname_spec='${libname}${release}${shared_ext}$major'
17424     if test "X$HPUX_IA64_MODE" = X32; then
17425       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17426     else
17427       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17428     fi
17429     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17430     ;;
17431   hppa*64*)
17432     shrext_cmds='.sl'
17433     hardcode_into_libs=yes
17434     dynamic_linker="$host_os dld.sl"
17435     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17436     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438     soname_spec='${libname}${release}${shared_ext}$major'
17439     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17441     ;;
17442   *)
17443     shrext_cmds='.sl'
17444     dynamic_linker="$host_os dld.sl"
17445     shlibpath_var=SHLIB_PATH
17446     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448     soname_spec='${libname}${release}${shared_ext}$major'
17449     ;;
17450   esac
17451   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17452   postinstall_cmds='chmod 555 $lib'
17453   ;;
17454
17455 interix[3-9]*)
17456   version_type=linux
17457   need_lib_prefix=no
17458   need_version=no
17459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17460   soname_spec='${libname}${release}${shared_ext}$major'
17461   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17462   shlibpath_var=LD_LIBRARY_PATH
17463   shlibpath_overrides_runpath=no
17464   hardcode_into_libs=yes
17465   ;;
17466
17467 irix5* | irix6* | nonstopux*)
17468   case $host_os in
17469     nonstopux*) version_type=nonstopux ;;
17470     *)
17471         if test "$lt_cv_prog_gnu_ld" = yes; then
17472                 version_type=linux
17473         else
17474                 version_type=irix
17475         fi ;;
17476   esac
17477   need_lib_prefix=no
17478   need_version=no
17479   soname_spec='${libname}${release}${shared_ext}$major'
17480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17481   case $host_os in
17482   irix5* | nonstopux*)
17483     libsuff= shlibsuff=
17484     ;;
17485   *)
17486     case $LD in # libtool.m4 will add one of these switches to LD
17487     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17488       libsuff= shlibsuff= libmagic=32-bit;;
17489     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17490       libsuff=32 shlibsuff=N32 libmagic=N32;;
17491     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17492       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17493     *) libsuff= shlibsuff= libmagic=never-match;;
17494     esac
17495     ;;
17496   esac
17497   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17498   shlibpath_overrides_runpath=no
17499   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17500   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17501   hardcode_into_libs=yes
17502   ;;
17503
17504 # No shared lib support for Linux oldld, aout, or coff.
17505 linux*oldld* | linux*aout* | linux*coff*)
17506   dynamic_linker=no
17507   ;;
17508
17509 # This must be Linux ELF.
17510 linux* | k*bsd*-gnu)
17511   version_type=linux
17512   need_lib_prefix=no
17513   need_version=no
17514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515   soname_spec='${libname}${release}${shared_ext}$major'
17516   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17517   shlibpath_var=LD_LIBRARY_PATH
17518   shlibpath_overrides_runpath=no
17519   # Some binutils ld are patched to set DT_RUNPATH
17520   save_LDFLAGS=$LDFLAGS
17521   save_libdir=$libdir
17522   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17523        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17524   cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17530
17531 int
17532 main ()
17533 {
17534
17535   ;
17536   return 0;
17537 }
17538 _ACEOF
17539 rm -f conftest.$ac_objext conftest$ac_exeext
17540 if { (ac_try="$ac_link"
17541 case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17546 $as_echo "$ac_try_echo") >&5
17547   (eval "$ac_link") 2>conftest.er1
17548   ac_status=$?
17549   grep -v '^ *+' conftest.er1 >conftest.err
17550   rm -f conftest.er1
17551   cat conftest.err >&5
17552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); } && {
17554          test -z "$ac_cxx_werror_flag" ||
17555          test ! -s conftest.err
17556        } && test -s conftest$ac_exeext && {
17557          test "$cross_compiling" = yes ||
17558          $as_test_x conftest$ac_exeext
17559        }; then
17560   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17561   shlibpath_overrides_runpath=yes
17562 fi
17563
17564 else
17565   $as_echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568
17569 fi
17570
17571 rm -rf conftest.dSYM
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573       conftest$ac_exeext conftest.$ac_ext
17574   LDFLAGS=$save_LDFLAGS
17575   libdir=$save_libdir
17576
17577   # This implies no fast_install, which is unacceptable.
17578   # Some rework will be needed to allow for fast_install
17579   # before this can be enabled.
17580   hardcode_into_libs=yes
17581
17582   # Add ABI-specific directories to the system library path.
17583   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17584
17585   # Append ld.so.conf contents to the search path
17586   if test -f /etc/ld.so.conf; then
17587     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' ' '`
17588     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17589   fi
17590
17591   # We used to test for /lib/ld.so.1 and disable shared libraries on
17592   # powerpc, because MkLinux only supported shared libraries with the
17593   # GNU dynamic linker.  Since this was broken with cross compilers,
17594   # most powerpc-linux boxes support dynamic linking these days and
17595   # people can always --disable-shared, the test was removed, and we
17596   # assume the GNU/Linux dynamic linker is in use.
17597   dynamic_linker='GNU/Linux ld.so'
17598   ;;
17599
17600 netbsd*)
17601   version_type=sunos
17602   need_lib_prefix=no
17603   need_version=no
17604   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17606     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17607     dynamic_linker='NetBSD (a.out) ld.so'
17608   else
17609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17610     soname_spec='${libname}${release}${shared_ext}$major'
17611     dynamic_linker='NetBSD ld.elf_so'
17612   fi
17613   shlibpath_var=LD_LIBRARY_PATH
17614   shlibpath_overrides_runpath=yes
17615   hardcode_into_libs=yes
17616   ;;
17617
17618 newsos6)
17619   version_type=linux
17620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17621   shlibpath_var=LD_LIBRARY_PATH
17622   shlibpath_overrides_runpath=yes
17623   ;;
17624
17625 *nto* | *qnx*)
17626   version_type=qnx
17627   need_lib_prefix=no
17628   need_version=no
17629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17630   soname_spec='${libname}${release}${shared_ext}$major'
17631   shlibpath_var=LD_LIBRARY_PATH
17632   shlibpath_overrides_runpath=no
17633   hardcode_into_libs=yes
17634   dynamic_linker='ldqnx.so'
17635   ;;
17636
17637 openbsd*)
17638   version_type=sunos
17639   sys_lib_dlsearch_path_spec="/usr/lib"
17640   need_lib_prefix=no
17641   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17642   case $host_os in
17643     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17644     *)                          need_version=no  ;;
17645   esac
17646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17647   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17648   shlibpath_var=LD_LIBRARY_PATH
17649   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17650     case $host_os in
17651       openbsd2.[89] | openbsd2.[89].*)
17652         shlibpath_overrides_runpath=no
17653         ;;
17654       *)
17655         shlibpath_overrides_runpath=yes
17656         ;;
17657       esac
17658   else
17659     shlibpath_overrides_runpath=yes
17660   fi
17661   ;;
17662
17663 os2*)
17664   libname_spec='$name'
17665   shrext_cmds=".dll"
17666   need_lib_prefix=no
17667   library_names_spec='$libname${shared_ext} $libname.a'
17668   dynamic_linker='OS/2 ld.exe'
17669   shlibpath_var=LIBPATH
17670   ;;
17671
17672 osf3* | osf4* | osf5*)
17673   version_type=osf
17674   need_lib_prefix=no
17675   need_version=no
17676   soname_spec='${libname}${release}${shared_ext}$major'
17677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678   shlibpath_var=LD_LIBRARY_PATH
17679   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17680   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17681   ;;
17682
17683 rdos*)
17684   dynamic_linker=no
17685   ;;
17686
17687 solaris*)
17688   version_type=linux
17689   need_lib_prefix=no
17690   need_version=no
17691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692   soname_spec='${libname}${release}${shared_ext}$major'
17693   shlibpath_var=LD_LIBRARY_PATH
17694   shlibpath_overrides_runpath=yes
17695   hardcode_into_libs=yes
17696   # ldd complains unless libraries are executable
17697   postinstall_cmds='chmod +x $lib'
17698   ;;
17699
17700 sunos4*)
17701   version_type=sunos
17702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17703   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17704   shlibpath_var=LD_LIBRARY_PATH
17705   shlibpath_overrides_runpath=yes
17706   if test "$with_gnu_ld" = yes; then
17707     need_lib_prefix=no
17708   fi
17709   need_version=yes
17710   ;;
17711
17712 sysv4 | sysv4.3*)
17713   version_type=linux
17714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715   soname_spec='${libname}${release}${shared_ext}$major'
17716   shlibpath_var=LD_LIBRARY_PATH
17717   case $host_vendor in
17718     sni)
17719       shlibpath_overrides_runpath=no
17720       need_lib_prefix=no
17721       runpath_var=LD_RUN_PATH
17722       ;;
17723     siemens)
17724       need_lib_prefix=no
17725       ;;
17726     motorola)
17727       need_lib_prefix=no
17728       need_version=no
17729       shlibpath_overrides_runpath=no
17730       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17731       ;;
17732   esac
17733   ;;
17734
17735 sysv4*MP*)
17736   if test -d /usr/nec ;then
17737     version_type=linux
17738     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17739     soname_spec='$libname${shared_ext}.$major'
17740     shlibpath_var=LD_LIBRARY_PATH
17741   fi
17742   ;;
17743
17744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17745   version_type=freebsd-elf
17746   need_lib_prefix=no
17747   need_version=no
17748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17749   soname_spec='${libname}${release}${shared_ext}$major'
17750   shlibpath_var=LD_LIBRARY_PATH
17751   shlibpath_overrides_runpath=yes
17752   hardcode_into_libs=yes
17753   if test "$with_gnu_ld" = yes; then
17754     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17755   else
17756     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17757     case $host_os in
17758       sco3.2v5*)
17759         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17760         ;;
17761     esac
17762   fi
17763   sys_lib_dlsearch_path_spec='/usr/lib'
17764   ;;
17765
17766 tpf*)
17767   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17768   version_type=linux
17769   need_lib_prefix=no
17770   need_version=no
17771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772   shlibpath_var=LD_LIBRARY_PATH
17773   shlibpath_overrides_runpath=no
17774   hardcode_into_libs=yes
17775   ;;
17776
17777 uts4*)
17778   version_type=linux
17779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780   soname_spec='${libname}${release}${shared_ext}$major'
17781   shlibpath_var=LD_LIBRARY_PATH
17782   ;;
17783
17784 *)
17785   dynamic_linker=no
17786   ;;
17787 esac
17788 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17789 $as_echo "$dynamic_linker" >&6; }
17790 test "$dynamic_linker" = no && can_build_shared=no
17791
17792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17793 if test "$GCC" = yes; then
17794   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17795 fi
17796
17797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17798   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17799 fi
17800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17801   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17802 fi
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17840 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17841 hardcode_action_CXX=
17842 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17843    test -n "$runpath_var_CXX" ||
17844    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17845
17846   # We can hardcode non-existent directories.
17847   if test "$hardcode_direct_CXX" != no &&
17848      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17849      # have to relink, otherwise we might link with an installed library
17850      # when we should be linking with a yet-to-be-installed one
17851      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17852      test "$hardcode_minus_L_CXX" != no; then
17853     # Linking always hardcodes the temporary library directory.
17854     hardcode_action_CXX=relink
17855   else
17856     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17857     hardcode_action_CXX=immediate
17858   fi
17859 else
17860   # We cannot hardcode anything, or else we can only hardcode existing
17861   # directories.
17862   hardcode_action_CXX=unsupported
17863 fi
17864 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17865 $as_echo "$hardcode_action_CXX" >&6; }
17866
17867 if test "$hardcode_action_CXX" = relink ||
17868    test "$inherit_rpath_CXX" = yes; then
17869   # Fast installation is not supported
17870   enable_fast_install=no
17871 elif test "$shlibpath_overrides_runpath" = yes ||
17872      test "$enable_shared" = no; then
17873   # Fast installation is not necessary
17874   enable_fast_install=needless
17875 fi
17876
17877
17878
17879
17880
17881
17882
17883   fi # test -n "$compiler"
17884
17885   CC=$lt_save_CC
17886   LDCXX=$LD
17887   LD=$lt_save_LD
17888   GCC=$lt_save_GCC
17889   with_gnu_ld=$lt_save_with_gnu_ld
17890   lt_cv_path_LDCXX=$lt_cv_path_LD
17891   lt_cv_path_LD=$lt_save_path_LD
17892   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17893   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17894 fi # test "$_lt_caught_CXX_error" != yes
17895
17896 ac_ext=c
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914         ac_config_commands="$ac_config_commands libtool"
17915
17916
17917
17918
17919 # Only expand once:
17920
17921
17922 if test "x$CC" != xcc; then
17923   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
17924 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17925 else
17926   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
17927 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17928 fi
17929 set dummy $CC; ac_cc=`$as_echo "$2" |
17930                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17931 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
17932   $as_echo_n "(cached) " >&6
17933 else
17934   cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940
17941 int
17942 main ()
17943 {
17944
17945   ;
17946   return 0;
17947 }
17948 _ACEOF
17949 # Make sure it works both with $CC and with simple cc.
17950 # We do the test twice because some compilers refuse to overwrite an
17951 # existing .o file with -o, though they will create one.
17952 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17953 rm -f conftest2.*
17954 if { (case "(($ac_try" in
17955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956   *) ac_try_echo=$ac_try;;
17957 esac
17958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17959 $as_echo "$ac_try_echo") >&5
17960   (eval "$ac_try") 2>&5
17961   ac_status=$?
17962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } &&
17964    test -f conftest2.$ac_objext && { (case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17969 $as_echo "$ac_try_echo") >&5
17970   (eval "$ac_try") 2>&5
17971   ac_status=$?
17972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); };
17974 then
17975   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17976   if test "x$CC" != xcc; then
17977     # Test first that cc exists at all.
17978     if { ac_try='cc -c conftest.$ac_ext >&5'
17979   { (case "(($ac_try" in
17980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981   *) ac_try_echo=$ac_try;;
17982 esac
17983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17984 $as_echo "$ac_try_echo") >&5
17985   (eval "$ac_try") 2>&5
17986   ac_status=$?
17987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); }; }; then
17989       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17990       rm -f conftest2.*
17991       if { (case "(($ac_try" in
17992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993   *) ac_try_echo=$ac_try;;
17994 esac
17995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17996 $as_echo "$ac_try_echo") >&5
17997   (eval "$ac_try") 2>&5
17998   ac_status=$?
17999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          test -f conftest2.$ac_objext && { (case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18006 $as_echo "$ac_try_echo") >&5
18007   (eval "$ac_try") 2>&5
18008   ac_status=$?
18009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); };
18011       then
18012         # cc works too.
18013         :
18014       else
18015         # cc exists but doesn't like -o.
18016         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18017       fi
18018     fi
18019   fi
18020 else
18021   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18022 fi
18023 rm -f core conftest*
18024
18025 fi
18026 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18027   { $as_echo "$as_me:$LINENO: result: yes" >&5
18028 $as_echo "yes" >&6; }
18029 else
18030   { $as_echo "$as_me:$LINENO: result: no" >&5
18031 $as_echo "no" >&6; }
18032
18033 cat >>confdefs.h <<\_ACEOF
18034 #define NO_MINUS_C_MINUS_O 1
18035 _ACEOF
18036
18037 fi
18038
18039 # FIXME: we rely on the cache variable name because
18040 # there is no other way.
18041 set dummy $CC
18042 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18043 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18044 if test "$am_t" != yes; then
18045    # Losing compiler, so override with the script.
18046    # FIXME: It is wrong to rewrite CC.
18047    # But if we don't then we get into trouble of one sort or another.
18048    # A longer-term fix would be to have automake use am__CC in this case,
18049    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18050    CC="$am_aux_dir/compile $CC"
18051 fi
18052
18053
18054
18055 if test "x$cross_compiling" = "xno"; then
18056         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
18057 else
18058         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
18059 fi
18060
18061
18062
18063 if test -n "$ac_tool_prefix"; then
18064   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18065 set dummy ${ac_tool_prefix}ar; ac_word=$2
18066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18067 $as_echo_n "checking for $ac_word... " >&6; }
18068 if test "${ac_cv_prog_AR+set}" = set; then
18069   $as_echo_n "(cached) " >&6
18070 else
18071   if test -n "$AR"; then
18072   ac_cv_prog_AR="$AR" # Let the user override the test.
18073 else
18074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075 for as_dir in $PATH
18076 do
18077   IFS=$as_save_IFS
18078   test -z "$as_dir" && as_dir=.
18079   for ac_exec_ext in '' $ac_executable_extensions; do
18080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18081     ac_cv_prog_AR="${ac_tool_prefix}ar"
18082     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18083     break 2
18084   fi
18085 done
18086 done
18087 IFS=$as_save_IFS
18088
18089 fi
18090 fi
18091 AR=$ac_cv_prog_AR
18092 if test -n "$AR"; then
18093   { $as_echo "$as_me:$LINENO: result: $AR" >&5
18094 $as_echo "$AR" >&6; }
18095 else
18096   { $as_echo "$as_me:$LINENO: result: no" >&5
18097 $as_echo "no" >&6; }
18098 fi
18099
18100
18101 fi
18102 if test -z "$ac_cv_prog_AR"; then
18103   ac_ct_AR=$AR
18104   # Extract the first word of "ar", so it can be a program name with args.
18105 set dummy ar; ac_word=$2
18106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18107 $as_echo_n "checking for $ac_word... " >&6; }
18108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18109   $as_echo_n "(cached) " >&6
18110 else
18111   if test -n "$ac_ct_AR"; then
18112   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18113 else
18114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115 for as_dir in $PATH
18116 do
18117   IFS=$as_save_IFS
18118   test -z "$as_dir" && as_dir=.
18119   for ac_exec_ext in '' $ac_executable_extensions; do
18120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18121     ac_cv_prog_ac_ct_AR="ar"
18122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18123     break 2
18124   fi
18125 done
18126 done
18127 IFS=$as_save_IFS
18128
18129 fi
18130 fi
18131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18132 if test -n "$ac_ct_AR"; then
18133   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18134 $as_echo "$ac_ct_AR" >&6; }
18135 else
18136   { $as_echo "$as_me:$LINENO: result: no" >&5
18137 $as_echo "no" >&6; }
18138 fi
18139
18140   if test "x$ac_ct_AR" = x; then
18141     AR=""
18142   else
18143     case $cross_compiling:$ac_tool_warned in
18144 yes:)
18145 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18147 ac_tool_warned=yes ;;
18148 esac
18149     AR=$ac_ct_AR
18150   fi
18151 else
18152   AR="$ac_cv_prog_AR"
18153 fi
18154
18155 if test -n "$ac_tool_prefix"; then
18156   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
18157 set dummy ${ac_tool_prefix}ld; ac_word=$2
18158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18159 $as_echo_n "checking for $ac_word... " >&6; }
18160 if test "${ac_cv_prog_LD+set}" = set; then
18161   $as_echo_n "(cached) " >&6
18162 else
18163   if test -n "$LD"; then
18164   ac_cv_prog_LD="$LD" # Let the user override the test.
18165 else
18166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18167 for as_dir in $PATH
18168 do
18169   IFS=$as_save_IFS
18170   test -z "$as_dir" && as_dir=.
18171   for ac_exec_ext in '' $ac_executable_extensions; do
18172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18173     ac_cv_prog_LD="${ac_tool_prefix}ld"
18174     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18175     break 2
18176   fi
18177 done
18178 done
18179 IFS=$as_save_IFS
18180
18181 fi
18182 fi
18183 LD=$ac_cv_prog_LD
18184 if test -n "$LD"; then
18185   { $as_echo "$as_me:$LINENO: result: $LD" >&5
18186 $as_echo "$LD" >&6; }
18187 else
18188   { $as_echo "$as_me:$LINENO: result: no" >&5
18189 $as_echo "no" >&6; }
18190 fi
18191
18192
18193 fi
18194 if test -z "$ac_cv_prog_LD"; then
18195   ac_ct_LD=$LD
18196   # Extract the first word of "ld", so it can be a program name with args.
18197 set dummy ld; ac_word=$2
18198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18199 $as_echo_n "checking for $ac_word... " >&6; }
18200 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
18201   $as_echo_n "(cached) " >&6
18202 else
18203   if test -n "$ac_ct_LD"; then
18204   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
18205 else
18206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18207 for as_dir in $PATH
18208 do
18209   IFS=$as_save_IFS
18210   test -z "$as_dir" && as_dir=.
18211   for ac_exec_ext in '' $ac_executable_extensions; do
18212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18213     ac_cv_prog_ac_ct_LD="ld"
18214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18215     break 2
18216   fi
18217 done
18218 done
18219 IFS=$as_save_IFS
18220
18221 fi
18222 fi
18223 ac_ct_LD=$ac_cv_prog_ac_ct_LD
18224 if test -n "$ac_ct_LD"; then
18225   { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
18226 $as_echo "$ac_ct_LD" >&6; }
18227 else
18228   { $as_echo "$as_me:$LINENO: result: no" >&5
18229 $as_echo "no" >&6; }
18230 fi
18231
18232   if test "x$ac_ct_LD" = x; then
18233     LD=""
18234   else
18235     case $cross_compiling:$ac_tool_warned in
18236 yes:)
18237 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18239 ac_tool_warned=yes ;;
18240 esac
18241     LD=$ac_ct_LD
18242   fi
18243 else
18244   LD="$ac_cv_prog_LD"
18245 fi
18246
18247
18248 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18249 $as_echo_n "checking for ANSI C header files... " >&6; }
18250 if test "${ac_cv_header_stdc+set}" = set; then
18251   $as_echo_n "(cached) " >&6
18252 else
18253   cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h.  */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h.  */
18259 #include <stdlib.h>
18260 #include <stdarg.h>
18261 #include <string.h>
18262 #include <float.h>
18263
18264 int
18265 main ()
18266 {
18267
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
18274 case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18279 $as_echo "$ac_try_echo") >&5
18280   (eval "$ac_compile") 2>conftest.er1
18281   ac_status=$?
18282   grep -v '^ *+' conftest.er1 >conftest.err
18283   rm -f conftest.er1
18284   cat conftest.err >&5
18285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); } && {
18287          test -z "$ac_c_werror_flag" ||
18288          test ! -s conftest.err
18289        } && test -s conftest.$ac_objext; then
18290   ac_cv_header_stdc=yes
18291 else
18292   $as_echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18294
18295         ac_cv_header_stdc=no
18296 fi
18297
18298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18299
18300 if test $ac_cv_header_stdc = yes; then
18301   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18302   cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308 #include <string.h>
18309
18310 _ACEOF
18311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18312   $EGREP "memchr" >/dev/null 2>&1; then
18313   :
18314 else
18315   ac_cv_header_stdc=no
18316 fi
18317 rm -f conftest*
18318
18319 fi
18320
18321 if test $ac_cv_header_stdc = yes; then
18322   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18323   cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h.  */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h.  */
18329 #include <stdlib.h>
18330
18331 _ACEOF
18332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18333   $EGREP "free" >/dev/null 2>&1; then
18334   :
18335 else
18336   ac_cv_header_stdc=no
18337 fi
18338 rm -f conftest*
18339
18340 fi
18341
18342 if test $ac_cv_header_stdc = yes; then
18343   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18344   if test "$cross_compiling" = yes; then
18345   :
18346 else
18347   cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h.  */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h.  */
18353 #include <ctype.h>
18354 #include <stdlib.h>
18355 #if ((' ' & 0x0FF) == 0x020)
18356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18358 #else
18359 # define ISLOWER(c) \
18360                    (('a' <= (c) && (c) <= 'i') \
18361                      || ('j' <= (c) && (c) <= 'r') \
18362                      || ('s' <= (c) && (c) <= 'z'))
18363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18364 #endif
18365
18366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18367 int
18368 main ()
18369 {
18370   int i;
18371   for (i = 0; i < 256; i++)
18372     if (XOR (islower (i), ISLOWER (i))
18373         || toupper (i) != TOUPPER (i))
18374       return 2;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest$ac_exeext
18379 if { (ac_try="$ac_link"
18380 case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18385 $as_echo "$ac_try_echo") >&5
18386   (eval "$ac_link") 2>&5
18387   ac_status=$?
18388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18390   { (case "(($ac_try" in
18391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392   *) ac_try_echo=$ac_try;;
18393 esac
18394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18395 $as_echo "$ac_try_echo") >&5
18396   (eval "$ac_try") 2>&5
18397   ac_status=$?
18398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); }; }; then
18400   :
18401 else
18402   $as_echo "$as_me: program exited with status $ac_status" >&5
18403 $as_echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406 ( exit $ac_status )
18407 ac_cv_header_stdc=no
18408 fi
18409 rm -rf conftest.dSYM
18410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18411 fi
18412
18413
18414 fi
18415 fi
18416 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18417 $as_echo "$ac_cv_header_stdc" >&6; }
18418 if test $ac_cv_header_stdc = yes; then
18419
18420 cat >>confdefs.h <<\_ACEOF
18421 #define STDC_HEADERS 1
18422 _ACEOF
18423
18424 fi
18425
18426
18427   { $as_echo "$as_me:$LINENO: checking for GNU libc2" >&5
18428 $as_echo_n "checking for GNU libc2... " >&6; }
18429   if test "${knfsd_cv_glibc2+set}" = set; then
18430   $as_echo_n "(cached) " >&6
18431 else
18432   cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438
18439       #include <features.h>
18440       #if !defined(__GLIBC__)
18441       # error Nope
18442       #endif
18443
18444 _ACEOF
18445 if { (ac_try="$ac_cpp conftest.$ac_ext"
18446 case "(($ac_try" in
18447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448   *) ac_try_echo=$ac_try;;
18449 esac
18450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18451 $as_echo "$ac_try_echo") >&5
18452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18453   ac_status=$?
18454   grep -v '^ *+' conftest.er1 >conftest.err
18455   rm -f conftest.er1
18456   cat conftest.err >&5
18457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); } >/dev/null && {
18459          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18460          test ! -s conftest.err
18461        }; then
18462   knfsd_cv_glibc2=yes
18463 else
18464   $as_echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18466
18467   knfsd_cv_glibc2=no
18468 fi
18469
18470 rm -f conftest.err conftest.$ac_ext
18471 fi
18472
18473   { $as_echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
18474 $as_echo "$knfsd_cv_glibc2" >&6; }
18475   if test $knfsd_cv_glibc2 = yes; then
18476     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18477     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
18478   fi
18479
18480
18481   { $as_echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
18482 $as_echo_n "checking for BSD signal semantics... " >&6; }
18483   if test "${knfsd_cv_bsd_signals+set}" = set; then
18484   $as_echo_n "(cached) " >&6
18485 else
18486   if test "$cross_compiling" = yes; then
18487
18488       case "$host_os" in
18489         *linux*) knfsd_cv_bsd_signals=no;;
18490         *bsd*)   knfsd_cv_bsd_signals=yes;;
18491         *)       { { $as_echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
18492 $as_echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
18493    { (exit 1); exit 1; }; };;
18494       esac
18495
18496 else
18497   cat >conftest.$ac_ext <<_ACEOF
18498 /* confdefs.h.  */
18499 _ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h.  */
18503
18504         #include <signal.h>
18505         #include <unistd.h>
18506         #include <sys/wait.h>
18507
18508         static int counter = 0;
18509         static RETSIGTYPE handler(int num) { counter++; }
18510
18511         int main()
18512         {
18513                 int     s;
18514                 if ((s = fork()) < 0) return 1;
18515                 if (s != 0) {
18516                         if (wait(&s) < 0) return 1;
18517                         return WIFSIGNALED(s)? 1 : 0;
18518                 }
18519
18520                 signal(SIGHUP, handler);
18521                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
18522                 return (counter == 2)? 0 : 1;
18523         }
18524
18525 _ACEOF
18526 rm -f conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530   *) ac_try_echo=$ac_try;;
18531 esac
18532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18533 $as_echo "$ac_try_echo") >&5
18534   (eval "$ac_link") 2>&5
18535   ac_status=$?
18536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18543 $as_echo "$ac_try_echo") >&5
18544   (eval "$ac_try") 2>&5
18545   ac_status=$?
18546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; }; then
18548   knfsd_cv_bsd_signals=yes
18549 else
18550   $as_echo "$as_me: program exited with status $ac_status" >&5
18551 $as_echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554 ( exit $ac_status )
18555 knfsd_cv_bsd_signals=no
18556 fi
18557 rm -rf conftest.dSYM
18558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18559 fi
18560
18561
18562 fi
18563      { $as_echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
18564 $as_echo "$knfsd_cv_bsd_signals" >&6; }
18565     test $knfsd_cv_bsd_signals = yes &&
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE_BSD_SIGNALS 1
18568 _ACEOF
18569
18570
18571
18572
18573 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
18574 $as_echo_n "checking for gethostbyname... " >&6; }
18575 if test "${ac_cv_func_gethostbyname+set}" = set; then
18576   $as_echo_n "(cached) " >&6
18577 else
18578   cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h.  */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h.  */
18584 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18586 #define gethostbyname innocuous_gethostbyname
18587
18588 /* System header to define __stub macros and hopefully few prototypes,
18589     which can conflict with char gethostbyname (); below.
18590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591     <limits.h> exists even on freestanding compilers.  */
18592
18593 #ifdef __STDC__
18594 # include <limits.h>
18595 #else
18596 # include <assert.h>
18597 #endif
18598
18599 #undef gethostbyname
18600
18601 /* Override any GCC internal prototype to avoid an error.
18602    Use char because int might match the return type of a GCC
18603    builtin and then its argument prototype would still apply.  */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char gethostbyname ();
18608 /* The GNU C library defines this for functions which it implements
18609     to always fail with ENOSYS.  Some functions are actually named
18610     something starting with __ and the normal name is an alias.  */
18611 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18612 choke me
18613 #endif
18614
18615 int
18616 main ()
18617 {
18618 return gethostbyname ();
18619   ;
18620   return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18630 $as_echo "$ac_try_echo") >&5
18631   (eval "$ac_link") 2>conftest.er1
18632   ac_status=$?
18633   grep -v '^ *+' conftest.er1 >conftest.err
18634   rm -f conftest.er1
18635   cat conftest.err >&5
18636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); } && {
18638          test -z "$ac_c_werror_flag" ||
18639          test ! -s conftest.err
18640        } && test -s conftest$ac_exeext && {
18641          test "$cross_compiling" = yes ||
18642          $as_test_x conftest$ac_exeext
18643        }; then
18644   ac_cv_func_gethostbyname=yes
18645 else
18646   $as_echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18648
18649         ac_cv_func_gethostbyname=no
18650 fi
18651
18652 rm -rf conftest.dSYM
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654       conftest$ac_exeext conftest.$ac_ext
18655 fi
18656 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18657 $as_echo "$ac_cv_func_gethostbyname" >&6; }
18658 if test "x$ac_cv_func_gethostbyname" = x""yes; then
18659   :
18660 else
18661   { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18662 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18663 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18664   $as_echo_n "(cached) " >&6
18665 else
18666   ac_check_lib_save_LIBS=$LIBS
18667 LIBS="-lnsl  $LIBS"
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674
18675 /* Override any GCC internal prototype to avoid an error.
18676    Use char because int might match the return type of a GCC
18677    builtin and then its argument prototype would still apply.  */
18678 #ifdef __cplusplus
18679 extern "C"
18680 #endif
18681 char gethostbyname ();
18682 int
18683 main ()
18684 {
18685 return gethostbyname ();
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18697 $as_echo "$ac_try_echo") >&5
18698   (eval "$ac_link") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } && {
18705          test -z "$ac_c_werror_flag" ||
18706          test ! -s conftest.err
18707        } && test -s conftest$ac_exeext && {
18708          test "$cross_compiling" = yes ||
18709          $as_test_x conftest$ac_exeext
18710        }; then
18711   ac_cv_lib_nsl_gethostbyname=yes
18712 else
18713   $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716         ac_cv_lib_nsl_gethostbyname=no
18717 fi
18718
18719 rm -rf conftest.dSYM
18720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18721       conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18723 fi
18724 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18725 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18726 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
18727   LIBNSL="-lnsl"
18728 fi
18729
18730 fi
18731
18732
18733
18734 { $as_echo "$as_me:$LINENO: checking for connect" >&5
18735 $as_echo_n "checking for connect... " >&6; }
18736 if test "${ac_cv_func_connect+set}" = set; then
18737   $as_echo_n "(cached) " >&6
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18747 #define connect innocuous_connect
18748
18749 /* System header to define __stub macros and hopefully few prototypes,
18750     which can conflict with char connect (); below.
18751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752     <limits.h> exists even on freestanding compilers.  */
18753
18754 #ifdef __STDC__
18755 # include <limits.h>
18756 #else
18757 # include <assert.h>
18758 #endif
18759
18760 #undef connect
18761
18762 /* Override any GCC internal prototype to avoid an error.
18763    Use char because int might match the return type of a GCC
18764    builtin and then its argument prototype would still apply.  */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char connect ();
18769 /* The GNU C library defines this for functions which it implements
18770     to always fail with ENOSYS.  Some functions are actually named
18771     something starting with __ and the normal name is an alias.  */
18772 #if defined __stub_connect || defined __stub___connect
18773 choke me
18774 #endif
18775
18776 int
18777 main ()
18778 {
18779 return connect ();
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792   (eval "$ac_link") 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } && {
18799          test -z "$ac_c_werror_flag" ||
18800          test ! -s conftest.err
18801        } && test -s conftest$ac_exeext && {
18802          test "$cross_compiling" = yes ||
18803          $as_test_x conftest$ac_exeext
18804        }; then
18805   ac_cv_func_connect=yes
18806 else
18807   $as_echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810         ac_cv_func_connect=no
18811 fi
18812
18813 rm -rf conftest.dSYM
18814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815       conftest$ac_exeext conftest.$ac_ext
18816 fi
18817 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18818 $as_echo "$ac_cv_func_connect" >&6; }
18819 if test "x$ac_cv_func_connect" = x""yes; then
18820   :
18821 else
18822   { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18823 $as_echo_n "checking for connect in -lsocket... " >&6; }
18824 if test "${ac_cv_lib_socket_connect+set}" = set; then
18825   $as_echo_n "(cached) " >&6
18826 else
18827   ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lsocket $LIBNSL $LIBS"
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835
18836 /* Override any GCC internal prototype to avoid an error.
18837    Use char because int might match the return type of a GCC
18838    builtin and then its argument prototype would still apply.  */
18839 #ifdef __cplusplus
18840 extern "C"
18841 #endif
18842 char connect ();
18843 int
18844 main ()
18845 {
18846 return connect ();
18847   ;
18848   return 0;
18849 }
18850 _ACEOF
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18858 $as_echo "$ac_try_echo") >&5
18859   (eval "$ac_link") 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } && {
18866          test -z "$ac_c_werror_flag" ||
18867          test ! -s conftest.err
18868        } && test -s conftest$ac_exeext && {
18869          test "$cross_compiling" = yes ||
18870          $as_test_x conftest$ac_exeext
18871        }; then
18872   ac_cv_lib_socket_connect=yes
18873 else
18874   $as_echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877         ac_cv_lib_socket_connect=no
18878 fi
18879
18880 rm -rf conftest.dSYM
18881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18882       conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18884 fi
18885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18886 $as_echo "$ac_cv_lib_socket_connect" >&6; }
18887 if test "x$ac_cv_lib_socket_connect" = x""yes; then
18888   LIBSOCKET="-lsocket"
18889 else
18890   { { $as_echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
18891 $as_echo "$as_me: error: Function 'socket' not found." >&2;}
18892    { (exit 1); exit 1; }; }
18893 fi
18894
18895 fi
18896
18897
18898 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18899 $as_echo_n "checking for getaddrinfo... " >&6; }
18900 if test "${ac_cv_func_getaddrinfo+set}" = set; then
18901   $as_echo_n "(cached) " >&6
18902 else
18903   cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
18910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18911 #define getaddrinfo innocuous_getaddrinfo
18912
18913 /* System header to define __stub macros and hopefully few prototypes,
18914     which can conflict with char getaddrinfo (); below.
18915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18916     <limits.h> exists even on freestanding compilers.  */
18917
18918 #ifdef __STDC__
18919 # include <limits.h>
18920 #else
18921 # include <assert.h>
18922 #endif
18923
18924 #undef getaddrinfo
18925
18926 /* Override any GCC internal prototype to avoid an error.
18927    Use char because int might match the return type of a GCC
18928    builtin and then its argument prototype would still apply.  */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 char getaddrinfo ();
18933 /* The GNU C library defines this for functions which it implements
18934     to always fail with ENOSYS.  Some functions are actually named
18935     something starting with __ and the normal name is an alias.  */
18936 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
18937 choke me
18938 #endif
18939
18940 int
18941 main ()
18942 {
18943 return getaddrinfo ();
18944   ;
18945   return 0;
18946 }
18947 _ACEOF
18948 rm -f conftest.$ac_objext conftest$ac_exeext
18949 if { (ac_try="$ac_link"
18950 case "(($ac_try" in
18951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952   *) ac_try_echo=$ac_try;;
18953 esac
18954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18955 $as_echo "$ac_try_echo") >&5
18956   (eval "$ac_link") 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } && {
18963          test -z "$ac_c_werror_flag" ||
18964          test ! -s conftest.err
18965        } && test -s conftest$ac_exeext && {
18966          test "$cross_compiling" = yes ||
18967          $as_test_x conftest$ac_exeext
18968        }; then
18969   ac_cv_func_getaddrinfo=yes
18970 else
18971   $as_echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974         ac_cv_func_getaddrinfo=no
18975 fi
18976
18977 rm -rf conftest.dSYM
18978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18979       conftest$ac_exeext conftest.$ac_ext
18980 fi
18981 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
18982 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
18983 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
18984   :
18985 else
18986   { { $as_echo "$as_me:$LINENO: error: Function 'getaddrinfo' not found." >&5
18987 $as_echo "$as_me: error: Function 'getaddrinfo' not found." >&2;}
18988    { (exit 1); exit 1; }; }
18989 fi
18990
18991
18992 { $as_echo "$as_me:$LINENO: checking for getrpcbynumber" >&5
18993 $as_echo_n "checking for getrpcbynumber... " >&6; }
18994 if test "${ac_cv_func_getrpcbynumber+set}" = set; then
18995   $as_echo_n "(cached) " >&6
18996 else
18997   cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003 /* Define getrpcbynumber to an innocuous variant, in case <limits.h> declares getrpcbynumber.
19004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19005 #define getrpcbynumber innocuous_getrpcbynumber
19006
19007 /* System header to define __stub macros and hopefully few prototypes,
19008     which can conflict with char getrpcbynumber (); below.
19009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19010     <limits.h> exists even on freestanding compilers.  */
19011
19012 #ifdef __STDC__
19013 # include <limits.h>
19014 #else
19015 # include <assert.h>
19016 #endif
19017
19018 #undef getrpcbynumber
19019
19020 /* Override any GCC internal prototype to avoid an error.
19021    Use char because int might match the return type of a GCC
19022    builtin and then its argument prototype would still apply.  */
19023 #ifdef __cplusplus
19024 extern "C"
19025 #endif
19026 char getrpcbynumber ();
19027 /* The GNU C library defines this for functions which it implements
19028     to always fail with ENOSYS.  Some functions are actually named
19029     something starting with __ and the normal name is an alias.  */
19030 #if defined __stub_getrpcbynumber || defined __stub___getrpcbynumber
19031 choke me
19032 #endif
19033
19034 int
19035 main ()
19036 {
19037 return getrpcbynumber ();
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (ac_try="$ac_link"
19044 case "(($ac_try" in
19045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046   *) ac_try_echo=$ac_try;;
19047 esac
19048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19049 $as_echo "$ac_try_echo") >&5
19050   (eval "$ac_link") 2>conftest.er1
19051   ac_status=$?
19052   grep -v '^ *+' conftest.er1 >conftest.err
19053   rm -f conftest.er1
19054   cat conftest.err >&5
19055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); } && {
19057          test -z "$ac_c_werror_flag" ||
19058          test ! -s conftest.err
19059        } && test -s conftest$ac_exeext && {
19060          test "$cross_compiling" = yes ||
19061          $as_test_x conftest$ac_exeext
19062        }; then
19063   ac_cv_func_getrpcbynumber=yes
19064 else
19065   $as_echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19067
19068         ac_cv_func_getrpcbynumber=no
19069 fi
19070
19071 rm -rf conftest.dSYM
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073       conftest$ac_exeext conftest.$ac_ext
19074 fi
19075 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getrpcbynumber" >&5
19076 $as_echo "$ac_cv_func_getrpcbynumber" >&6; }
19077 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then
19078   :
19079 else
19080   { { $as_echo "$as_me:$LINENO: error: Function 'getrpcbynumber' not found." >&5
19081 $as_echo "$as_me: error: Function 'getrpcbynumber' not found." >&2;}
19082    { (exit 1); exit 1; }; }
19083 fi
19084
19085
19086 { $as_echo "$as_me:$LINENO: checking for getservbyname" >&5
19087 $as_echo_n "checking for getservbyname... " >&6; }
19088 if test "${ac_cv_func_getservbyname+set}" = set; then
19089   $as_echo_n "(cached) " >&6
19090 else
19091   cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097 /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
19098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19099 #define getservbyname innocuous_getservbyname
19100
19101 /* System header to define __stub macros and hopefully few prototypes,
19102     which can conflict with char getservbyname (); below.
19103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19104     <limits.h> exists even on freestanding compilers.  */
19105
19106 #ifdef __STDC__
19107 # include <limits.h>
19108 #else
19109 # include <assert.h>
19110 #endif
19111
19112 #undef getservbyname
19113
19114 /* Override any GCC internal prototype to avoid an error.
19115    Use char because int might match the return type of a GCC
19116    builtin and then its argument prototype would still apply.  */
19117 #ifdef __cplusplus
19118 extern "C"
19119 #endif
19120 char getservbyname ();
19121 /* The GNU C library defines this for functions which it implements
19122     to always fail with ENOSYS.  Some functions are actually named
19123     something starting with __ and the normal name is an alias.  */
19124 #if defined __stub_getservbyname || defined __stub___getservbyname
19125 choke me
19126 #endif
19127
19128 int
19129 main ()
19130 {
19131 return getservbyname ();
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19143 $as_echo "$ac_try_echo") >&5
19144   (eval "$ac_link") 2>conftest.er1
19145   ac_status=$?
19146   grep -v '^ *+' conftest.er1 >conftest.err
19147   rm -f conftest.er1
19148   cat conftest.err >&5
19149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); } && {
19151          test -z "$ac_c_werror_flag" ||
19152          test ! -s conftest.err
19153        } && test -s conftest$ac_exeext && {
19154          test "$cross_compiling" = yes ||
19155          $as_test_x conftest$ac_exeext
19156        }; then
19157   ac_cv_func_getservbyname=yes
19158 else
19159   $as_echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19161
19162         ac_cv_func_getservbyname=no
19163 fi
19164
19165 rm -rf conftest.dSYM
19166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19167       conftest$ac_exeext conftest.$ac_ext
19168 fi
19169 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
19170 $as_echo "$ac_cv_func_getservbyname" >&6; }
19171 if test "x$ac_cv_func_getservbyname" = x""yes; then
19172   :
19173 else
19174   { { $as_echo "$as_me:$LINENO: error: Function 'getservbyname' not found." >&5
19175 $as_echo "$as_me: error: Function 'getservbyname' not found." >&2;}
19176    { (exit 1); exit 1; }; }
19177 fi
19178
19179
19180 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19181 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
19182 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19183   $as_echo_n "(cached) " >&6
19184 else
19185   ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lcrypt  $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193
19194 /* Override any GCC internal prototype to avoid an error.
19195    Use char because int might match the return type of a GCC
19196    builtin and then its argument prototype would still apply.  */
19197 #ifdef __cplusplus
19198 extern "C"
19199 #endif
19200 char crypt ();
19201 int
19202 main ()
19203 {
19204 return crypt ();
19205   ;
19206   return 0;
19207 }
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19216 $as_echo "$ac_try_echo") >&5
19217   (eval "$ac_link") 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } && {
19224          test -z "$ac_c_werror_flag" ||
19225          test ! -s conftest.err
19226        } && test -s conftest$ac_exeext && {
19227          test "$cross_compiling" = yes ||
19228          $as_test_x conftest$ac_exeext
19229        }; then
19230   ac_cv_lib_crypt_crypt=yes
19231 else
19232   $as_echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235         ac_cv_lib_crypt_crypt=no
19236 fi
19237
19238 rm -rf conftest.dSYM
19239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19240       conftest$ac_exeext conftest.$ac_ext
19241 LIBS=$ac_check_lib_save_LIBS
19242 fi
19243 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19244 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19245 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
19246   LIBCRYPT="-lcrypt"
19247 fi
19248
19249
19250 if test "$enable_nfsv4" = yes; then
19251
19252
19253     { $as_echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
19254 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
19255 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
19256   $as_echo_n "(cached) " >&6
19257 else
19258   ac_check_lib_save_LIBS=$LIBS
19259 LIBS="-levent  $LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266
19267 /* Override any GCC internal prototype to avoid an error.
19268    Use char because int might match the return type of a GCC
19269    builtin and then its argument prototype would still apply.  */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 char event_dispatch ();
19274 int
19275 main ()
19276 {
19277 return event_dispatch ();
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286   *) ac_try_echo=$ac_try;;
19287 esac
19288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19289 $as_echo "$ac_try_echo") >&5
19290   (eval "$ac_link") 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } && {
19297          test -z "$ac_c_werror_flag" ||
19298          test ! -s conftest.err
19299        } && test -s conftest$ac_exeext && {
19300          test "$cross_compiling" = yes ||
19301          $as_test_x conftest$ac_exeext
19302        }; then
19303   ac_cv_lib_event_event_dispatch=yes
19304 else
19305   $as_echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308         ac_cv_lib_event_event_dispatch=no
19309 fi
19310
19311 rm -rf conftest.dSYM
19312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19313       conftest$ac_exeext conftest.$ac_ext
19314 LIBS=$ac_check_lib_save_LIBS
19315 fi
19316 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
19317 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
19318 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then
19319   libevent=1
19320 else
19321   { { $as_echo "$as_me:$LINENO: error: libevent not found." >&5
19322 $as_echo "$as_me: error: libevent not found." >&2;}
19323    { (exit 1); exit 1; }; }
19324 fi
19325
19326
19327
19328 for ac_header in event.h
19329 do
19330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19332   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19333 $as_echo_n "checking for $ac_header... " >&6; }
19334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19335   $as_echo_n "(cached) " >&6
19336 fi
19337 ac_res=`eval 'as_val=${'$as_ac_Header'}
19338                  $as_echo "$as_val"'`
19339                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19340 $as_echo "$ac_res" >&6; }
19341 else
19342   # Is the header compilable?
19343 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19344 $as_echo_n "checking $ac_header usability... " >&6; }
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h.  */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h.  */
19351 $ac_includes_default
19352 #include <$ac_header>
19353 _ACEOF
19354 rm -f conftest.$ac_objext
19355 if { (ac_try="$ac_compile"
19356 case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19361 $as_echo "$ac_try_echo") >&5
19362   (eval "$ac_compile") 2>conftest.er1
19363   ac_status=$?
19364   grep -v '^ *+' conftest.er1 >conftest.err
19365   rm -f conftest.er1
19366   cat conftest.err >&5
19367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); } && {
19369          test -z "$ac_c_werror_flag" ||
19370          test ! -s conftest.err
19371        } && test -s conftest.$ac_objext; then
19372   ac_header_compiler=yes
19373 else
19374   $as_echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377         ac_header_compiler=no
19378 fi
19379
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19382 $as_echo "$ac_header_compiler" >&6; }
19383
19384 # Is the header present?
19385 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19386 $as_echo_n "checking $ac_header presence... " >&6; }
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393 #include <$ac_header>
19394 _ACEOF
19395 if { (ac_try="$ac_cpp conftest.$ac_ext"
19396 case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19401 $as_echo "$ac_try_echo") >&5
19402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } >/dev/null && {
19409          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19410          test ! -s conftest.err
19411        }; then
19412   ac_header_preproc=yes
19413 else
19414   $as_echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417   ac_header_preproc=no
19418 fi
19419
19420 rm -f conftest.err conftest.$ac_ext
19421 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19422 $as_echo "$ac_header_preproc" >&6; }
19423
19424 # So?  What about this header?
19425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19426   yes:no: )
19427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19428 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19431     ac_header_preproc=yes
19432     ;;
19433   no:yes:* )
19434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19435 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19437 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19439 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19441 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19443 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19445 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19446     ( cat <<\_ASBOX
19447 ## ---------------------------------------- ##
19448 ## Report this to linux-nfs@vger.kernel.org ##
19449 ## ---------------------------------------- ##
19450 _ASBOX
19451      ) | sed "s/^/$as_me: WARNING:     /" >&2
19452     ;;
19453 esac
19454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19455 $as_echo_n "checking for $ac_header... " >&6; }
19456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19457   $as_echo_n "(cached) " >&6
19458 else
19459   eval "$as_ac_Header=\$ac_header_preproc"
19460 fi
19461 ac_res=`eval 'as_val=${'$as_ac_Header'}
19462                  $as_echo "$as_val"'`
19463                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19464 $as_echo "$ac_res" >&6; }
19465
19466 fi
19467 as_val=`eval 'as_val=${'$as_ac_Header'}
19468                  $as_echo "$as_val"'`
19469    if test "x$as_val" = x""yes; then
19470   cat >>confdefs.h <<_ACEOF
19471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19472 _ACEOF
19473
19474 else
19475   { { $as_echo "$as_me:$LINENO: error: libevent headers not found." >&5
19476 $as_echo "$as_me: error: libevent headers not found." >&2;}
19477    { (exit 1); exit 1; }; }
19478 fi
19479
19480 done
19481
19482
19483
19484
19485
19486
19487     { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
19488 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
19489 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
19490   $as_echo_n "(cached) " >&6
19491 else
19492   ac_check_lib_save_LIBS=$LIBS
19493 LIBS="-lnfsidmap  $LIBS"
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h.  */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h.  */
19500
19501 /* Override any GCC internal prototype to avoid an error.
19502    Use char because int might match the return type of a GCC
19503    builtin and then its argument prototype would still apply.  */
19504 #ifdef __cplusplus
19505 extern "C"
19506 #endif
19507 char nfs4_init_name_mapping ();
19508 int
19509 main ()
19510 {
19511 return nfs4_init_name_mapping ();
19512   ;
19513   return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (ac_try="$ac_link"
19518 case "(($ac_try" in
19519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520   *) ac_try_echo=$ac_try;;
19521 esac
19522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 $as_echo "$ac_try_echo") >&5
19524   (eval "$ac_link") 2>conftest.er1
19525   ac_status=$?
19526   grep -v '^ *+' conftest.er1 >conftest.err
19527   rm -f conftest.er1
19528   cat conftest.err >&5
19529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); } && {
19531          test -z "$ac_c_werror_flag" ||
19532          test ! -s conftest.err
19533        } && test -s conftest$ac_exeext && {
19534          test "$cross_compiling" = yes ||
19535          $as_test_x conftest$ac_exeext
19536        }; then
19537   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
19538 else
19539   $as_echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
19543 fi
19544
19545 rm -rf conftest.dSYM
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19547       conftest$ac_exeext conftest.$ac_ext
19548 LIBS=$ac_check_lib_save_LIBS
19549 fi
19550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
19551 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
19552 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
19553   libnfsidmap=1
19554 else
19555   { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
19556 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
19557    { (exit 1); exit 1; }; }
19558 fi
19559
19560
19561
19562 for ac_header in nfsidmap.h
19563 do
19564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19566   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19567 $as_echo_n "checking for $ac_header... " >&6; }
19568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19569   $as_echo_n "(cached) " >&6
19570 fi
19571 ac_res=`eval 'as_val=${'$as_ac_Header'}
19572                  $as_echo "$as_val"'`
19573                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19574 $as_echo "$ac_res" >&6; }
19575 else
19576   # Is the header compilable?
19577 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19578 $as_echo_n "checking $ac_header usability... " >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585 $ac_includes_default
19586 #include <$ac_header>
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19595 $as_echo "$ac_try_echo") >&5
19596   (eval "$ac_compile") 2>conftest.er1
19597   ac_status=$?
19598   grep -v '^ *+' conftest.er1 >conftest.err
19599   rm -f conftest.er1
19600   cat conftest.err >&5
19601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); } && {
19603          test -z "$ac_c_werror_flag" ||
19604          test ! -s conftest.err
19605        } && test -s conftest.$ac_objext; then
19606   ac_header_compiler=yes
19607 else
19608   $as_echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19610
19611         ac_header_compiler=no
19612 fi
19613
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19616 $as_echo "$ac_header_compiler" >&6; }
19617
19618 # Is the header present?
19619 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19620 $as_echo_n "checking $ac_header presence... " >&6; }
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 #include <$ac_header>
19628 _ACEOF
19629 if { (ac_try="$ac_cpp conftest.$ac_ext"
19630 case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19635 $as_echo "$ac_try_echo") >&5
19636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } >/dev/null && {
19643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19644          test ! -s conftest.err
19645        }; then
19646   ac_header_preproc=yes
19647 else
19648   $as_echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651   ac_header_preproc=no
19652 fi
19653
19654 rm -f conftest.err conftest.$ac_ext
19655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19656 $as_echo "$ac_header_preproc" >&6; }
19657
19658 # So?  What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19660   yes:no: )
19661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19662 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19665     ac_header_preproc=yes
19666     ;;
19667   no:yes:* )
19668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19669 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19671 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19672     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19673 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19675 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19679 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19680     ( cat <<\_ASBOX
19681 ## ---------------------------------------- ##
19682 ## Report this to linux-nfs@vger.kernel.org ##
19683 ## ---------------------------------------- ##
19684 _ASBOX
19685      ) | sed "s/^/$as_me: WARNING:     /" >&2
19686     ;;
19687 esac
19688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19689 $as_echo_n "checking for $ac_header... " >&6; }
19690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19691   $as_echo_n "(cached) " >&6
19692 else
19693   eval "$as_ac_Header=\$ac_header_preproc"
19694 fi
19695 ac_res=`eval 'as_val=${'$as_ac_Header'}
19696                  $as_echo "$as_val"'`
19697                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19698 $as_echo "$ac_res" >&6; }
19699
19700 fi
19701 as_val=`eval 'as_val=${'$as_ac_Header'}
19702                  $as_echo "$as_val"'`
19703    if test "x$as_val" = x""yes; then
19704   cat >>confdefs.h <<_ACEOF
19705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706 _ACEOF
19707
19708 else
19709   { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
19710 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
19711    { (exit 1); exit 1; }; }
19712 fi
19713
19714 done
19715
19716
19717     { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
19718 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
19719 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
19720   $as_echo_n "(cached) " >&6
19721 else
19722   ac_check_lib_save_LIBS=$LIBS
19723 LIBS="-lnfsidmap  $LIBS"
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730
19731 /* Override any GCC internal prototype to avoid an error.
19732    Use char because int might match the return type of a GCC
19733    builtin and then its argument prototype would still apply.  */
19734 #ifdef __cplusplus
19735 extern "C"
19736 #endif
19737 char nfs4_set_debug ();
19738 int
19739 main ()
19740 {
19741 return nfs4_set_debug ();
19742   ;
19743   return 0;
19744 }
19745 _ACEOF
19746 rm -f conftest.$ac_objext conftest$ac_exeext
19747 if { (ac_try="$ac_link"
19748 case "(($ac_try" in
19749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750   *) ac_try_echo=$ac_try;;
19751 esac
19752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19753 $as_echo "$ac_try_echo") >&5
19754   (eval "$ac_link") 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } && {
19761          test -z "$ac_c_werror_flag" ||
19762          test ! -s conftest.err
19763        } && test -s conftest$ac_exeext && {
19764          test "$cross_compiling" = yes ||
19765          $as_test_x conftest$ac_exeext
19766        }; then
19767   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
19768 else
19769   $as_echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19771
19772         ac_cv_lib_nfsidmap_nfs4_set_debug=no
19773 fi
19774
19775 rm -rf conftest.dSYM
19776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19777       conftest$ac_exeext conftest.$ac_ext
19778 LIBS=$ac_check_lib_save_LIBS
19779 fi
19780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
19781 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
19782 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
19783
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_NFS4_SET_DEBUG 1
19786 _ACEOF
19787
19788 fi
19789
19790
19791
19792
19793       if test "$enable_gss" = yes; then
19794
19795
19796 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19797         if test -n "$ac_tool_prefix"; then
19798   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19799 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19801 $as_echo_n "checking for $ac_word... " >&6; }
19802 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19803   $as_echo_n "(cached) " >&6
19804 else
19805   case $PKG_CONFIG in
19806   [\\/]* | ?:[\\/]*)
19807   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19808   ;;
19809   *)
19810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19811 for as_dir in $PATH
19812 do
19813   IFS=$as_save_IFS
19814   test -z "$as_dir" && as_dir=.
19815   for ac_exec_ext in '' $ac_executable_extensions; do
19816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19817     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19819     break 2
19820   fi
19821 done
19822 done
19823 IFS=$as_save_IFS
19824
19825   ;;
19826 esac
19827 fi
19828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19829 if test -n "$PKG_CONFIG"; then
19830   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19831 $as_echo "$PKG_CONFIG" >&6; }
19832 else
19833   { $as_echo "$as_me:$LINENO: result: no" >&5
19834 $as_echo "no" >&6; }
19835 fi
19836
19837
19838 fi
19839 if test -z "$ac_cv_path_PKG_CONFIG"; then
19840   ac_pt_PKG_CONFIG=$PKG_CONFIG
19841   # Extract the first word of "pkg-config", so it can be a program name with args.
19842 set dummy pkg-config; ac_word=$2
19843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19844 $as_echo_n "checking for $ac_word... " >&6; }
19845 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19846   $as_echo_n "(cached) " >&6
19847 else
19848   case $ac_pt_PKG_CONFIG in
19849   [\\/]* | ?:[\\/]*)
19850   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19851   ;;
19852   *)
19853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19854 for as_dir in $PATH
19855 do
19856   IFS=$as_save_IFS
19857   test -z "$as_dir" && as_dir=.
19858   for ac_exec_ext in '' $ac_executable_extensions; do
19859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19860     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19861     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19862     break 2
19863   fi
19864 done
19865 done
19866 IFS=$as_save_IFS
19867
19868   ;;
19869 esac
19870 fi
19871 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19872 if test -n "$ac_pt_PKG_CONFIG"; then
19873   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19874 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19875 else
19876   { $as_echo "$as_me:$LINENO: result: no" >&5
19877 $as_echo "no" >&6; }
19878 fi
19879
19880   if test "x$ac_pt_PKG_CONFIG" = x; then
19881     PKG_CONFIG=""
19882   else
19883     case $cross_compiling:$ac_tool_warned in
19884 yes:)
19885 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19887 ac_tool_warned=yes ;;
19888 esac
19889     PKG_CONFIG=$ac_pt_PKG_CONFIG
19890   fi
19891 else
19892   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19893 fi
19894
19895 fi
19896 if test -n "$PKG_CONFIG"; then
19897         _pkg_min_version=0.9.0
19898         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19899 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19900         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19901                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19902 $as_echo "yes" >&6; }
19903         else
19904                 { $as_echo "$as_me:$LINENO: result: no" >&5
19905 $as_echo "no" >&6; }
19906                 PKG_CONFIG=""
19907         fi
19908
19909 fi
19910
19911
19912
19913 pkg_failed=no
19914 { $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
19915 $as_echo_n "checking for GSSGLUE... " >&6; }
19916
19917 if test -n "$GSSGLUE_CFLAGS"; then
19918     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
19919  elif test -n "$PKG_CONFIG"; then
19920     if test -n "$PKG_CONFIG" && \
19921     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19922   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19923   ac_status=$?
19924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); }; then
19926   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
19927 else
19928   pkg_failed=yes
19929 fi
19930  else
19931     pkg_failed=untried
19932 fi
19933 if test -n "$GSSGLUE_LIBS"; then
19934     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
19935  elif test -n "$PKG_CONFIG"; then
19936     if test -n "$PKG_CONFIG" && \
19937     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19938   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19939   ac_status=$?
19940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; then
19942   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
19943 else
19944   pkg_failed=yes
19945 fi
19946  else
19947     pkg_failed=untried
19948 fi
19949
19950
19951
19952 if test $pkg_failed = yes; then
19953
19954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19955         _pkg_short_errors_supported=yes
19956 else
19957         _pkg_short_errors_supported=no
19958 fi
19959         if test $_pkg_short_errors_supported = yes; then
19960                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
19961         else
19962                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
19963         fi
19964         # Put the nasty error message in config.log where it belongs
19965         echo "$GSSGLUE_PKG_ERRORS" >&5
19966
19967         { { $as_echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
19968
19969 $GSSGLUE_PKG_ERRORS
19970
19971 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19972 installed software in a non-standard prefix.
19973
19974 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19975 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19976 See the pkg-config man page for more details.
19977 " >&5
19978 $as_echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
19979
19980 $GSSGLUE_PKG_ERRORS
19981
19982 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19983 installed software in a non-standard prefix.
19984
19985 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19986 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19987 See the pkg-config man page for more details.
19988 " >&2;}
19989    { (exit 1); exit 1; }; }
19990 elif test $pkg_failed = untried; then
19991         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19993 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19994 is in your PATH or set the PKG_CONFIG environment variable to the full
19995 path to pkg-config.
19996
19997 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19998 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19999 See the pkg-config man page for more details.
20000
20001 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20002 See \`config.log' for more details." >&5
20003 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20004 is in your PATH or set the PKG_CONFIG environment variable to the full
20005 path to pkg-config.
20006
20007 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
20008 and GSSGLUE_LIBS to avoid the need to call pkg-config.
20009 See the pkg-config man page for more details.
20010
20011 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20012 See \`config.log' for more details." >&2;}
20013    { (exit 1); exit 1; }; }; }
20014 else
20015         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
20016         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
20017         { $as_echo "$as_me:$LINENO: result: yes" >&5
20018 $as_echo "yes" >&6; }
20019         :
20020 fi
20021
20022     if test "$enable_tirpc" = no; then
20023
20024 pkg_failed=no
20025 { $as_echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20026 $as_echo_n "checking for RPCSECGSS... " >&6; }
20027
20028 if test -n "$RPCSECGSS_CFLAGS"; then
20029     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20030  elif test -n "$PKG_CONFIG"; then
20031     if test -n "$PKG_CONFIG" && \
20032     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
20033   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
20034   ac_status=$?
20035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); }; then
20037   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
20038 else
20039   pkg_failed=yes
20040 fi
20041  else
20042     pkg_failed=untried
20043 fi
20044 if test -n "$RPCSECGSS_LIBS"; then
20045     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20046  elif test -n "$PKG_CONFIG"; then
20047     if test -n "$PKG_CONFIG" && \
20048     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
20049   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
20050   ac_status=$?
20051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); }; then
20053   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
20054 else
20055   pkg_failed=yes
20056 fi
20057  else
20058     pkg_failed=untried
20059 fi
20060
20061
20062
20063 if test $pkg_failed = yes; then
20064
20065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20066         _pkg_short_errors_supported=yes
20067 else
20068         _pkg_short_errors_supported=no
20069 fi
20070         if test $_pkg_short_errors_supported = yes; then
20071                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
20072         else
20073                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
20074         fi
20075         # Put the nasty error message in config.log where it belongs
20076         echo "$RPCSECGSS_PKG_ERRORS" >&5
20077
20078         { { $as_echo "$as_me:$LINENO: error: Package requirements (librpcsecgss >= 0.16) were not met:
20079
20080 $RPCSECGSS_PKG_ERRORS
20081
20082 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20083 installed software in a non-standard prefix.
20084
20085 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20086 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20087 See the pkg-config man page for more details.
20088 " >&5
20089 $as_echo "$as_me: error: Package requirements (librpcsecgss >= 0.16) were not met:
20090
20091 $RPCSECGSS_PKG_ERRORS
20092
20093 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20094 installed software in a non-standard prefix.
20095
20096 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20097 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20098 See the pkg-config man page for more details.
20099 " >&2;}
20100    { (exit 1); exit 1; }; }
20101 elif test $pkg_failed = untried; then
20102         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20104 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20105 is in your PATH or set the PKG_CONFIG environment variable to the full
20106 path to pkg-config.
20107
20108 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20109 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20110 See the pkg-config man page for more details.
20111
20112 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20113 See \`config.log' for more details." >&5
20114 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20115 is in your PATH or set the PKG_CONFIG environment variable to the full
20116 path to pkg-config.
20117
20118 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20119 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20120 See the pkg-config man page for more details.
20121
20122 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20123 See \`config.log' for more details." >&2;}
20124    { (exit 1); exit 1; }; }; }
20125 else
20126         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
20127         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
20128         { $as_echo "$as_me:$LINENO: result: yes" >&5
20129 $as_echo "yes" >&6; }
20130         :
20131 fi
20132   fi
20133
20134
20135   fi
20136 fi
20137
20138 if test "$knfsd_cv_glibc2" = no; then
20139     { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
20140 $as_echo_n "checking for daemon in -lbsd... " >&6; }
20141 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
20142   $as_echo_n "(cached) " >&6
20143 else
20144   ac_check_lib_save_LIBS=$LIBS
20145 LIBS="-lbsd  $LIBS"
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 /* Override any GCC internal prototype to avoid an error.
20154    Use char because int might match the return type of a GCC
20155    builtin and then its argument prototype would still apply.  */
20156 #ifdef __cplusplus
20157 extern "C"
20158 #endif
20159 char daemon ();
20160 int
20161 main ()
20162 {
20163 return daemon ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
20170 case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20175 $as_echo "$ac_try_echo") >&5
20176   (eval "$ac_link") 2>conftest.er1
20177   ac_status=$?
20178   grep -v '^ *+' conftest.er1 >conftest.err
20179   rm -f conftest.er1
20180   cat conftest.err >&5
20181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); } && {
20183          test -z "$ac_c_werror_flag" ||
20184          test ! -s conftest.err
20185        } && test -s conftest$ac_exeext && {
20186          test "$cross_compiling" = yes ||
20187          $as_test_x conftest$ac_exeext
20188        }; then
20189   ac_cv_lib_bsd_daemon=yes
20190 else
20191   $as_echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194         ac_cv_lib_bsd_daemon=no
20195 fi
20196
20197 rm -rf conftest.dSYM
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199       conftest$ac_exeext conftest.$ac_ext
20200 LIBS=$ac_check_lib_save_LIBS
20201 fi
20202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
20203 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
20204 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then
20205   LIBBSD="-lbsd"
20206 fi
20207
20208 fi
20209
20210 if test "$choose_blkid" != no; then
20211    { $as_echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
20212 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
20213 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
20214   $as_echo_n "(cached) " >&6
20215 else
20216   ac_check_lib_save_LIBS=$LIBS
20217 LIBS="-lblkid  $LIBS"
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224
20225 /* Override any GCC internal prototype to avoid an error.
20226    Use char because int might match the return type of a GCC
20227    builtin and then its argument prototype would still apply.  */
20228 #ifdef __cplusplus
20229 extern "C"
20230 #endif
20231 char blkid_get_library_version ();
20232 int
20233 main ()
20234 {
20235 return blkid_get_library_version ();
20236   ;
20237   return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244   *) ac_try_echo=$ac_try;;
20245 esac
20246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20247 $as_echo "$ac_try_echo") >&5
20248   (eval "$ac_link") 2>conftest.er1
20249   ac_status=$?
20250   grep -v '^ *+' conftest.er1 >conftest.err
20251   rm -f conftest.er1
20252   cat conftest.err >&5
20253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } && {
20255          test -z "$ac_c_werror_flag" ||
20256          test ! -s conftest.err
20257        } && test -s conftest$ac_exeext && {
20258          test "$cross_compiling" = yes ||
20259          $as_test_x conftest$ac_exeext
20260        }; then
20261   ac_cv_lib_blkid_blkid_get_library_version=yes
20262 else
20263   $as_echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20265
20266         ac_cv_lib_blkid_blkid_get_library_version=no
20267 fi
20268
20269 rm -rf conftest.dSYM
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271       conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20273 fi
20274 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
20275 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
20276 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then
20277   LIBBLKID="-lblkid"
20278 else
20279   { { $as_echo "$as_me:$LINENO: error: libblkid needed" >&5
20280 $as_echo "$as_me: error: libblkid needed" >&2;}
20281    { (exit 1); exit 1; }; }
20282 fi
20283
20284    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20285   { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
20286 $as_echo_n "checking for blkid/blkid.h... " >&6; }
20287 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20288   $as_echo_n "(cached) " >&6
20289 fi
20290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
20291 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
20292 else
20293   # Is the header compilable?
20294 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
20295 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302 $ac_includes_default
20303 #include <blkid/blkid.h>
20304 _ACEOF
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309   *) ac_try_echo=$ac_try;;
20310 esac
20311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20312 $as_echo "$ac_try_echo") >&5
20313   (eval "$ac_compile") 2>conftest.er1
20314   ac_status=$?
20315   grep -v '^ *+' conftest.er1 >conftest.err
20316   rm -f conftest.er1
20317   cat conftest.err >&5
20318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } && {
20320          test -z "$ac_c_werror_flag" ||
20321          test ! -s conftest.err
20322        } && test -s conftest.$ac_objext; then
20323   ac_header_compiler=yes
20324 else
20325   $as_echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328         ac_header_compiler=no
20329 fi
20330
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20333 $as_echo "$ac_header_compiler" >&6; }
20334
20335 # Is the header present?
20336 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
20337 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
20338 cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h.  */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h.  */
20344 #include <blkid/blkid.h>
20345 _ACEOF
20346 if { (ac_try="$ac_cpp conftest.$ac_ext"
20347 case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20352 $as_echo "$ac_try_echo") >&5
20353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20354   ac_status=$?
20355   grep -v '^ *+' conftest.er1 >conftest.err
20356   rm -f conftest.er1
20357   cat conftest.err >&5
20358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } >/dev/null && {
20360          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20361          test ! -s conftest.err
20362        }; then
20363   ac_header_preproc=yes
20364 else
20365   $as_echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368   ac_header_preproc=no
20369 fi
20370
20371 rm -f conftest.err conftest.$ac_ext
20372 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20373 $as_echo "$ac_header_preproc" >&6; }
20374
20375 # So?  What about this header?
20376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20377   yes:no: )
20378     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
20379 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20380     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
20381 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
20382     ac_header_preproc=yes
20383     ;;
20384   no:yes:* )
20385     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
20386 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
20387     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
20388 $as_echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
20389     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
20390 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
20391     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
20392 $as_echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20393     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
20394 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
20395     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
20396 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
20397     ( cat <<\_ASBOX
20398 ## ---------------------------------------- ##
20399 ## Report this to linux-nfs@vger.kernel.org ##
20400 ## ---------------------------------------- ##
20401 _ASBOX
20402      ) | sed "s/^/$as_me: WARNING:     /" >&2
20403     ;;
20404 esac
20405 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
20406 $as_echo_n "checking for blkid/blkid.h... " >&6; }
20407 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20408   $as_echo_n "(cached) " >&6
20409 else
20410   ac_cv_header_blkid_blkid_h=$ac_header_preproc
20411 fi
20412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
20413 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
20414
20415 fi
20416 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
20417   :
20418 else
20419   { { $as_echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
20420 $as_echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
20421    { (exit 1); exit 1; }; }
20422 fi
20423
20424
20425
20426   { $as_echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
20427 $as_echo_n "checking for suitable libblkid version... " >&6; }
20428   if test "${libblkid_cv_is_recent+set}" = set; then
20429   $as_echo_n "(cached) " >&6
20430 else
20431
20432     saved_LIBS="$LIBS"
20433     LIBS=-lblkid
20434     if test "$cross_compiling" = yes; then
20435   libblkid_cv_is_recent=unknown
20436 else
20437   cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443
20444         #include <blkid/blkid.h>
20445         int main()
20446         {
20447                 int vers = blkid_get_library_version(0, 0);
20448                 return vers >= 140 ? 0 : 1;
20449         }
20450
20451 _ACEOF
20452 rm -f conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456   *) ac_try_echo=$ac_try;;
20457 esac
20458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20459 $as_echo "$ac_try_echo") >&5
20460   (eval "$ac_link") 2>&5
20461   ac_status=$?
20462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20464   { (case "(($ac_try" in
20465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466   *) ac_try_echo=$ac_try;;
20467 esac
20468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20469 $as_echo "$ac_try_echo") >&5
20470   (eval "$ac_try") 2>&5
20471   ac_status=$?
20472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   libblkid_cv_is_recent=yes
20475 else
20476   $as_echo "$as_me: program exited with status $ac_status" >&5
20477 $as_echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 ( exit $ac_status )
20481 libblkid_cv_is_recent=no
20482 fi
20483 rm -rf conftest.dSYM
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20485 fi
20486
20487
20488     LIBS="$saved_LIBS"
20489 fi
20490
20491   { $as_echo "$as_me:$LINENO: result: $libblkid_cv_is_recent" >&5
20492 $as_echo "$libblkid_cv_is_recent" >&6; }
20493
20494    if test $choose_blkid = yes; then
20495       use_blkid=1
20496       test $libblkid_cv_is_recent = no && { $as_echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
20497 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
20498    else
20499       if test $libblkid_cv_is_recent = yes
20500       then use_blkid=1
20501       else use_blkid=0
20502            { $as_echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
20503 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
20504       fi
20505     fi
20506
20507 cat >>confdefs.h <<_ACEOF
20508 #define USE_BLKID $use_blkid
20509 _ACEOF
20510
20511 fi
20512
20513
20514
20515
20516
20517 if test "$enable_gss" = yes; then
20518     { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
20519 $as_echo_n "checking for getnameinfo... " >&6; }
20520 if test "${ac_cv_func_getnameinfo+set}" = set; then
20521   $as_echo_n "(cached) " >&6
20522 else
20523   cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h.  */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h.  */
20529 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
20530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20531 #define getnameinfo innocuous_getnameinfo
20532
20533 /* System header to define __stub macros and hopefully few prototypes,
20534     which can conflict with char getnameinfo (); below.
20535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536     <limits.h> exists even on freestanding compilers.  */
20537
20538 #ifdef __STDC__
20539 # include <limits.h>
20540 #else
20541 # include <assert.h>
20542 #endif
20543
20544 #undef getnameinfo
20545
20546 /* Override any GCC internal prototype to avoid an error.
20547    Use char because int might match the return type of a GCC
20548    builtin and then its argument prototype would still apply.  */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 char getnameinfo ();
20553 /* The GNU C library defines this for functions which it implements
20554     to always fail with ENOSYS.  Some functions are actually named
20555     something starting with __ and the normal name is an alias.  */
20556 #if defined __stub_getnameinfo || defined __stub___getnameinfo
20557 choke me
20558 #endif
20559
20560 int
20561 main ()
20562 {
20563 return getnameinfo ();
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575 $as_echo "$ac_try_echo") >&5
20576   (eval "$ac_link") 2>conftest.er1
20577   ac_status=$?
20578   grep -v '^ *+' conftest.er1 >conftest.err
20579   rm -f conftest.er1
20580   cat conftest.err >&5
20581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } && {
20583          test -z "$ac_c_werror_flag" ||
20584          test ! -s conftest.err
20585        } && test -s conftest$ac_exeext && {
20586          test "$cross_compiling" = yes ||
20587          $as_test_x conftest$ac_exeext
20588        }; then
20589   ac_cv_func_getnameinfo=yes
20590 else
20591   $as_echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594         ac_cv_func_getnameinfo=no
20595 fi
20596
20597 rm -rf conftest.dSYM
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599       conftest$ac_exeext conftest.$ac_ext
20600 fi
20601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
20602 $as_echo "$ac_cv_func_getnameinfo" >&6; }
20603 if test "x$ac_cv_func_getnameinfo" = x""yes; then
20604   :
20605 else
20606   { { $as_echo "$as_me:$LINENO: error: GSSAPI support requires 'getnameinfo' function" >&5
20607 $as_echo "$as_me: error: GSSAPI support requires 'getnameinfo' function" >&2;}
20608    { (exit 1); exit 1; }; }
20609 fi
20610
20611
20612
20613
20614     { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20615 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
20616 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20617   $as_echo_n "(cached) " >&6
20618 else
20619   ac_check_lib_save_LIBS=$LIBS
20620 LIBS="-lnfsidmap  $LIBS"
20621 cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h.  */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h.  */
20627
20628 /* Override any GCC internal prototype to avoid an error.
20629    Use char because int might match the return type of a GCC
20630    builtin and then its argument prototype would still apply.  */
20631 #ifdef __cplusplus
20632 extern "C"
20633 #endif
20634 char nfs4_init_name_mapping ();
20635 int
20636 main ()
20637 {
20638 return nfs4_init_name_mapping ();
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (ac_try="$ac_link"
20645 case "(($ac_try" in
20646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647   *) ac_try_echo=$ac_try;;
20648 esac
20649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20650 $as_echo "$ac_try_echo") >&5
20651   (eval "$ac_link") 2>conftest.er1
20652   ac_status=$?
20653   grep -v '^ *+' conftest.er1 >conftest.err
20654   rm -f conftest.er1
20655   cat conftest.err >&5
20656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); } && {
20658          test -z "$ac_c_werror_flag" ||
20659          test ! -s conftest.err
20660        } && test -s conftest$ac_exeext && {
20661          test "$cross_compiling" = yes ||
20662          $as_test_x conftest$ac_exeext
20663        }; then
20664   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20665 else
20666   $as_echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20670 fi
20671
20672 rm -rf conftest.dSYM
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674       conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20676 fi
20677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20678 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
20679 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
20680   libnfsidmap=1
20681 else
20682   { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
20683 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
20684    { (exit 1); exit 1; }; }
20685 fi
20686
20687
20688
20689 for ac_header in nfsidmap.h
20690 do
20691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20694 $as_echo_n "checking for $ac_header... " >&6; }
20695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20696   $as_echo_n "(cached) " >&6
20697 fi
20698 ac_res=`eval 'as_val=${'$as_ac_Header'}
20699                  $as_echo "$as_val"'`
20700                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20701 $as_echo "$ac_res" >&6; }
20702 else
20703   # Is the header compilable?
20704 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20705 $as_echo_n "checking $ac_header usability... " >&6; }
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h.  */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h.  */
20712 $ac_includes_default
20713 #include <$ac_header>
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719   *) ac_try_echo=$ac_try;;
20720 esac
20721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20722 $as_echo "$ac_try_echo") >&5
20723   (eval "$ac_compile") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } && {
20730          test -z "$ac_c_werror_flag" ||
20731          test ! -s conftest.err
20732        } && test -s conftest.$ac_objext; then
20733   ac_header_compiler=yes
20734 else
20735   $as_echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738         ac_header_compiler=no
20739 fi
20740
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20743 $as_echo "$ac_header_compiler" >&6; }
20744
20745 # Is the header present?
20746 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20747 $as_echo_n "checking $ac_header presence... " >&6; }
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h.  */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h.  */
20754 #include <$ac_header>
20755 _ACEOF
20756 if { (ac_try="$ac_cpp conftest.$ac_ext"
20757 case "(($ac_try" in
20758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759   *) ac_try_echo=$ac_try;;
20760 esac
20761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20762 $as_echo "$ac_try_echo") >&5
20763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } >/dev/null && {
20770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20771          test ! -s conftest.err
20772        }; then
20773   ac_header_preproc=yes
20774 else
20775   $as_echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778   ac_header_preproc=no
20779 fi
20780
20781 rm -f conftest.err conftest.$ac_ext
20782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20783 $as_echo "$ac_header_preproc" >&6; }
20784
20785 # So?  What about this header?
20786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20787   yes:no: )
20788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20789 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20792     ac_header_preproc=yes
20793     ;;
20794   no:yes:* )
20795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20796 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20798 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20800 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20802 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20806 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20807     ( cat <<\_ASBOX
20808 ## ---------------------------------------- ##
20809 ## Report this to linux-nfs@vger.kernel.org ##
20810 ## ---------------------------------------- ##
20811 _ASBOX
20812      ) | sed "s/^/$as_me: WARNING:     /" >&2
20813     ;;
20814 esac
20815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20816 $as_echo_n "checking for $ac_header... " >&6; }
20817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20818   $as_echo_n "(cached) " >&6
20819 else
20820   eval "$as_ac_Header=\$ac_header_preproc"
20821 fi
20822 ac_res=`eval 'as_val=${'$as_ac_Header'}
20823                  $as_echo "$as_val"'`
20824                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20825 $as_echo "$ac_res" >&6; }
20826
20827 fi
20828 as_val=`eval 'as_val=${'$as_ac_Header'}
20829                  $as_echo "$as_val"'`
20830    if test "x$as_val" = x""yes; then
20831   cat >>confdefs.h <<_ACEOF
20832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20833 _ACEOF
20834
20835 else
20836   { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
20837 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
20838    { (exit 1); exit 1; }; }
20839 fi
20840
20841 done
20842
20843
20844     { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
20845 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
20846 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
20847   $as_echo_n "(cached) " >&6
20848 else
20849   ac_check_lib_save_LIBS=$LIBS
20850 LIBS="-lnfsidmap  $LIBS"
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857
20858 /* Override any GCC internal prototype to avoid an error.
20859    Use char because int might match the return type of a GCC
20860    builtin and then its argument prototype would still apply.  */
20861 #ifdef __cplusplus
20862 extern "C"
20863 #endif
20864 char nfs4_set_debug ();
20865 int
20866 main ()
20867 {
20868 return nfs4_set_debug ();
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (ac_try="$ac_link"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20880 $as_echo "$ac_try_echo") >&5
20881   (eval "$ac_link") 2>conftest.er1
20882   ac_status=$?
20883   grep -v '^ *+' conftest.er1 >conftest.err
20884   rm -f conftest.er1
20885   cat conftest.err >&5
20886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } && {
20888          test -z "$ac_c_werror_flag" ||
20889          test ! -s conftest.err
20890        } && test -s conftest$ac_exeext && {
20891          test "$cross_compiling" = yes ||
20892          $as_test_x conftest$ac_exeext
20893        }; then
20894   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
20895 else
20896   $as_echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899         ac_cv_lib_nfsidmap_nfs4_set_debug=no
20900 fi
20901
20902 rm -rf conftest.dSYM
20903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20904       conftest$ac_exeext conftest.$ac_ext
20905 LIBS=$ac_check_lib_save_LIBS
20906 fi
20907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
20908 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
20909 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
20910
20911 cat >>confdefs.h <<\_ACEOF
20912 #define HAVE_NFS4_SET_DEBUG 1
20913 _ACEOF
20914
20915 fi
20916
20917
20918
20919
20920
20921 for ac_header in spkm3.h
20922 do
20923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20925   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20926 $as_echo_n "checking for $ac_header... " >&6; }
20927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20928   $as_echo_n "(cached) " >&6
20929 fi
20930 ac_res=`eval 'as_val=${'$as_ac_Header'}
20931                  $as_echo "$as_val"'`
20932                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20933 $as_echo "$ac_res" >&6; }
20934 else
20935   # Is the header compilable?
20936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20937 $as_echo_n "checking $ac_header usability... " >&6; }
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 $ac_includes_default
20945 #include <$ac_header>
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   ac_header_compiler=yes
20966 else
20967   $as_echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970         ac_header_compiler=no
20971 fi
20972
20973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20975 $as_echo "$ac_header_compiler" >&6; }
20976
20977 # Is the header present?
20978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20979 $as_echo_n "checking $ac_header presence... " >&6; }
20980 cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986 #include <$ac_header>
20987 _ACEOF
20988 if { (ac_try="$ac_cpp conftest.$ac_ext"
20989 case "(($ac_try" in
20990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991   *) ac_try_echo=$ac_try;;
20992 esac
20993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } >/dev/null && {
21002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        }; then
21005   ac_header_preproc=yes
21006 else
21007   $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010   ac_header_preproc=no
21011 fi
21012
21013 rm -f conftest.err conftest.$ac_ext
21014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21015 $as_echo "$ac_header_preproc" >&6; }
21016
21017 # So?  What about this header?
21018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21019   yes:no: )
21020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21024     ac_header_preproc=yes
21025     ;;
21026   no:yes:* )
21027     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21029     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21030 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21031     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21033     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21034 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21035     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21039     ( cat <<\_ASBOX
21040 ## ---------------------------------------- ##
21041 ## Report this to linux-nfs@vger.kernel.org ##
21042 ## ---------------------------------------- ##
21043 _ASBOX
21044      ) | sed "s/^/$as_me: WARNING:     /" >&2
21045     ;;
21046 esac
21047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21048 $as_echo_n "checking for $ac_header... " >&6; }
21049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21050   $as_echo_n "(cached) " >&6
21051 else
21052   eval "$as_ac_Header=\$ac_header_preproc"
21053 fi
21054 ac_res=`eval 'as_val=${'$as_ac_Header'}
21055                  $as_echo "$as_val"'`
21056                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21057 $as_echo "$ac_res" >&6; }
21058
21059 fi
21060 as_val=`eval 'as_val=${'$as_ac_Header'}
21061                  $as_echo "$as_val"'`
21062    if test "x$as_val" = x""yes; then
21063   cat >>confdefs.h <<_ACEOF
21064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21065 _ACEOF
21066
21067 else
21068   { $as_echo "$as_me:$LINENO: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
21069 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21070 fi
21071
21072 done
21073
21074
21075
21076   { $as_echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21077 $as_echo_n "checking for Kerberos v5... " >&6; }
21078
21079 # Check whether --with-krb5 was given.
21080 if test "${with_krb5+set}" = set; then
21081   withval=$with_krb5;  case "$withval" in
21082     yes|no)
21083        krb5_with=""
21084        ;;
21085     *)
21086        krb5_with="$withval"
21087        ;;
21088     esac
21089
21090 fi
21091
21092
21093   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21094              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21095             K5CONFIG=""
21096     if test -f $dir/bin/krb5-config; then
21097       K5CONFIG=$dir/bin/krb5-config
21098     elif test -f "/usr/kerberos/bin/krb5-config"; then
21099       K5CONFIG="/usr/kerberos/bin/krb5-config"
21100     elif test -f "/usr/lib/mit/bin/krb5-config"; then
21101       K5CONFIG="/usr/lib/mit/bin/krb5-config"
21102     fi
21103     if test "$K5CONFIG" != ""; then
21104       KRBCFLAGS=`$K5CONFIG --cflags`
21105       KRBLIBS=`$K5CONFIG --libs gssapi`
21106       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21107
21108 cat >>confdefs.h <<_ACEOF
21109 #define KRB5_VERSION $K5VERS
21110 _ACEOF
21111
21112       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21113                 \( -f $dir/lib/libgssapi_krb5.a -o \
21114                    -f $dir/lib64/libgssapi_krb5.a -o \
21115                    -f $dir/lib64/libgssapi_krb5.so -o \
21116                    -f $dir/lib/libgssapi_krb5.so \) ; then
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_KRB5 1
21120 _ACEOF
21121
21122          KRBDIR="$dir"
21123                      if test $K5VERS -le 131; then
21124
21125 cat >>confdefs.h <<\_ACEOF
21126 #define USE_GSS_KRB5_CCACHE_NAME 1
21127 _ACEOF
21128
21129          fi
21130          gssapi_lib=gssapi_krb5
21131          break
21132                   elif test \( -f $dir/include/heim_err.h -o\
21133                  -f $dir/include/heimdal/heim_err.h \) -a \
21134                 -f $dir/lib/libroken.a; then
21135
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_HEIMDAL 1
21138 _ACEOF
21139
21140          KRBDIR="$dir"
21141          gssapi_lib=gssapi
21142         break
21143       fi
21144     fi
21145   done
21146     if test "x$KRBDIR" = "x"; then
21147     if test "x$krb5_with" = "x"; then
21148       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21149 $as_echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21150    { (exit 1); exit 1; }; }
21151     else
21152       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21153 $as_echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21154    { (exit 1); exit 1; }; }
21155     fi
21156   fi
21157   { $as_echo "$as_me:$LINENO: result: $KRBDIR" >&5
21158 $as_echo "$KRBDIR" >&6; }
21159
21160     echo "The current KRBDIR is $KRBDIR"
21161   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
21162        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
21163     KRBLDFLAGS="";
21164   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
21165     KRBLDFLAGS="";
21166   else
21167     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
21168   fi
21169
21170     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21171 { $as_echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21172 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
21173 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21174   $as_echo_n "(cached) " >&6
21175 else
21176   ac_check_lib_save_LIBS=$LIBS
21177 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184
21185 /* Override any GCC internal prototype to avoid an error.
21186    Use char because int might match the return type of a GCC
21187    builtin and then its argument prototype would still apply.  */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char gss_krb5_export_lucid_sec_context ();
21192 int
21193 main ()
21194 {
21195 return gss_krb5_export_lucid_sec_context ();
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204   *) ac_try_echo=$ac_try;;
21205 esac
21206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21207 $as_echo "$ac_try_echo") >&5
21208   (eval "$ac_link") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest$ac_exeext && {
21218          test "$cross_compiling" = yes ||
21219          $as_test_x conftest$ac_exeext
21220        }; then
21221   eval "$as_ac_Lib=yes"
21222 else
21223   $as_echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226         eval "$as_ac_Lib=no"
21227 fi
21228
21229 rm -rf conftest.dSYM
21230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21231       conftest$ac_exeext conftest.$ac_ext
21232 LIBS=$ac_check_lib_save_LIBS
21233 fi
21234 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21235                  $as_echo "$as_val"'`
21236                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21237 $as_echo "$ac_res" >&6; }
21238 as_val=`eval 'as_val=${'$as_ac_Lib'}
21239                  $as_echo "$as_val"'`
21240    if test "x$as_val" = x""yes; then
21241
21242 cat >>confdefs.h <<\_ACEOF
21243 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21244 _ACEOF
21245
21246 fi
21247
21248   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21249 { $as_echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21250 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
21251 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21252   $as_echo_n "(cached) " >&6
21253 else
21254   ac_check_lib_save_LIBS=$LIBS
21255 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21256 cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h.  */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h.  */
21262
21263 /* Override any GCC internal prototype to avoid an error.
21264    Use char because int might match the return type of a GCC
21265    builtin and then its argument prototype would still apply.  */
21266 #ifdef __cplusplus
21267 extern "C"
21268 #endif
21269 char gss_krb5_set_allowable_enctypes ();
21270 int
21271 main ()
21272 {
21273 return gss_krb5_set_allowable_enctypes ();
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext conftest$ac_exeext
21279 if { (ac_try="$ac_link"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21285 $as_echo "$ac_try_echo") >&5
21286   (eval "$ac_link") 2>conftest.er1
21287   ac_status=$?
21288   grep -v '^ *+' conftest.er1 >conftest.err
21289   rm -f conftest.er1
21290   cat conftest.err >&5
21291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } && {
21293          test -z "$ac_c_werror_flag" ||
21294          test ! -s conftest.err
21295        } && test -s conftest$ac_exeext && {
21296          test "$cross_compiling" = yes ||
21297          $as_test_x conftest$ac_exeext
21298        }; then
21299   eval "$as_ac_Lib=yes"
21300 else
21301   $as_echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21303
21304         eval "$as_ac_Lib=no"
21305 fi
21306
21307 rm -rf conftest.dSYM
21308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21309       conftest$ac_exeext conftest.$ac_ext
21310 LIBS=$ac_check_lib_save_LIBS
21311 fi
21312 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21313                  $as_echo "$as_val"'`
21314                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21315 $as_echo "$ac_res" >&6; }
21316 as_val=`eval 'as_val=${'$as_ac_Lib'}
21317                  $as_echo "$as_val"'`
21318    if test "x$as_val" = x""yes; then
21319
21320 cat >>confdefs.h <<\_ACEOF
21321 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21322 _ACEOF
21323
21324 fi
21325
21326   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21327 { $as_echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21328 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
21329 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21330   $as_echo_n "(cached) " >&6
21331 else
21332   ac_check_lib_save_LIBS=$LIBS
21333 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h.  */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h.  */
21340
21341 /* Override any GCC internal prototype to avoid an error.
21342    Use char because int might match the return type of a GCC
21343    builtin and then its argument prototype would still apply.  */
21344 #ifdef __cplusplus
21345 extern "C"
21346 #endif
21347 char gss_krb5_ccache_name ();
21348 int
21349 main ()
21350 {
21351 return gss_krb5_ccache_name ();
21352   ;
21353   return 0;
21354 }
21355 _ACEOF
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (ac_try="$ac_link"
21358 case "(($ac_try" in
21359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360   *) ac_try_echo=$ac_try;;
21361 esac
21362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21363 $as_echo "$ac_try_echo") >&5
21364   (eval "$ac_link") 2>conftest.er1
21365   ac_status=$?
21366   grep -v '^ *+' conftest.er1 >conftest.err
21367   rm -f conftest.er1
21368   cat conftest.err >&5
21369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); } && {
21371          test -z "$ac_c_werror_flag" ||
21372          test ! -s conftest.err
21373        } && test -s conftest$ac_exeext && {
21374          test "$cross_compiling" = yes ||
21375          $as_test_x conftest$ac_exeext
21376        }; then
21377   eval "$as_ac_Lib=yes"
21378 else
21379   $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382         eval "$as_ac_Lib=no"
21383 fi
21384
21385 rm -rf conftest.dSYM
21386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21387       conftest$ac_exeext conftest.$ac_ext
21388 LIBS=$ac_check_lib_save_LIBS
21389 fi
21390 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21391                  $as_echo "$as_val"'`
21392                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21393 $as_echo "$ac_res" >&6; }
21394 as_val=`eval 'as_val=${'$as_ac_Lib'}
21395                  $as_echo "$as_val"'`
21396    if test "x$as_val" = x""yes; then
21397
21398 cat >>confdefs.h <<\_ACEOF
21399 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21400 _ACEOF
21401
21402 fi
21403
21404
21405     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
21406 { $as_echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
21407 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
21408 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21409   $as_echo_n "(cached) " >&6
21410 else
21411   ac_check_lib_save_LIBS=$LIBS
21412 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419
21420 /* Override any GCC internal prototype to avoid an error.
21421    Use char because int might match the return type of a GCC
21422    builtin and then its argument prototype would still apply.  */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 char krb5_get_error_message ();
21427 int
21428 main ()
21429 {
21430 return krb5_get_error_message ();
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21442 $as_echo "$ac_try_echo") >&5
21443   (eval "$ac_link") 2>conftest.er1
21444   ac_status=$?
21445   grep -v '^ *+' conftest.er1 >conftest.err
21446   rm -f conftest.er1
21447   cat conftest.err >&5
21448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } && {
21450          test -z "$ac_c_werror_flag" ||
21451          test ! -s conftest.err
21452        } && test -s conftest$ac_exeext && {
21453          test "$cross_compiling" = yes ||
21454          $as_test_x conftest$ac_exeext
21455        }; then
21456   eval "$as_ac_Lib=yes"
21457 else
21458   $as_echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461         eval "$as_ac_Lib=no"
21462 fi
21463
21464 rm -rf conftest.dSYM
21465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21466       conftest$ac_exeext conftest.$ac_ext
21467 LIBS=$ac_check_lib_save_LIBS
21468 fi
21469 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21470                  $as_echo "$as_val"'`
21471                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21472 $as_echo "$ac_res" >&6; }
21473 as_val=`eval 'as_val=${'$as_ac_Lib'}
21474                  $as_echo "$as_val"'`
21475    if test "x$as_val" = x""yes; then
21476
21477 cat >>confdefs.h <<\_ACEOF
21478 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
21479 _ACEOF
21480
21481 fi
21482
21483
21484     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
21485 { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
21486 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
21487 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21488   $as_echo_n "(cached) " >&6
21489 else
21490   ac_check_lib_save_LIBS=$LIBS
21491 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h.  */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h.  */
21498
21499 /* Override any GCC internal prototype to avoid an error.
21500    Use char because int might match the return type of a GCC
21501    builtin and then its argument prototype would still apply.  */
21502 #ifdef __cplusplus
21503 extern "C"
21504 #endif
21505 char krb5_get_init_creds_opt_set_addressless ();
21506 int
21507 main ()
21508 {
21509 return krb5_get_init_creds_opt_set_addressless ();
21510   ;
21511   return 0;
21512 }
21513 _ACEOF
21514 rm -f conftest.$ac_objext conftest$ac_exeext
21515 if { (ac_try="$ac_link"
21516 case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21521 $as_echo "$ac_try_echo") >&5
21522   (eval "$ac_link") 2>conftest.er1
21523   ac_status=$?
21524   grep -v '^ *+' conftest.er1 >conftest.err
21525   rm -f conftest.er1
21526   cat conftest.err >&5
21527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } && {
21529          test -z "$ac_c_werror_flag" ||
21530          test ! -s conftest.err
21531        } && test -s conftest$ac_exeext && {
21532          test "$cross_compiling" = yes ||
21533          $as_test_x conftest$ac_exeext
21534        }; then
21535   eval "$as_ac_Lib=yes"
21536 else
21537   $as_echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540         eval "$as_ac_Lib=no"
21541 fi
21542
21543 rm -rf conftest.dSYM
21544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21545       conftest$ac_exeext conftest.$ac_ext
21546 LIBS=$ac_check_lib_save_LIBS
21547 fi
21548 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21549                  $as_echo "$as_val"'`
21550                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21551 $as_echo "$ac_res" >&6; }
21552 as_val=`eval 'as_val=${'$as_ac_Lib'}
21553                  $as_echo "$as_val"'`
21554    if test "x$as_val" = x""yes; then
21555
21556 cat >>confdefs.h <<\_ACEOF
21557 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
21558 _ACEOF
21559
21560 fi
21561
21562
21563     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21564     { $as_echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21565 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21566   fi
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578     if test "$enable_tirpc" = no; then
21579
21580         { $as_echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21581 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
21582 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21583   $as_echo_n "(cached) " >&6
21584 else
21585   ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-lrpcsecgss  $LIBS"
21587 cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593
21594 /* Override any GCC internal prototype to avoid an error.
21595    Use char because int might match the return type of a GCC
21596    builtin and then its argument prototype would still apply.  */
21597 #ifdef __cplusplus
21598 extern "C"
21599 #endif
21600 char authgss_create_default ();
21601 int
21602 main ()
21603 {
21604 return authgss_create_default ();
21605   ;
21606   return 0;
21607 }
21608 _ACEOF
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21616 $as_echo "$ac_try_echo") >&5
21617   (eval "$ac_link") 2>conftest.er1
21618   ac_status=$?
21619   grep -v '^ *+' conftest.er1 >conftest.err
21620   rm -f conftest.er1
21621   cat conftest.err >&5
21622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); } && {
21624          test -z "$ac_c_werror_flag" ||
21625          test ! -s conftest.err
21626        } && test -s conftest$ac_exeext && {
21627          test "$cross_compiling" = yes ||
21628          $as_test_x conftest$ac_exeext
21629        }; then
21630   ac_cv_lib_rpcsecgss_authgss_create_default=yes
21631 else
21632   $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635         ac_cv_lib_rpcsecgss_authgss_create_default=no
21636 fi
21637
21638 rm -rf conftest.dSYM
21639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21640       conftest$ac_exeext conftest.$ac_ext
21641 LIBS=$ac_check_lib_save_LIBS
21642 fi
21643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21644 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
21645 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then
21646   librpcsecgss=1
21647 else
21648   { { $as_echo "$as_me:$LINENO: error: librpcsecgss not found." >&5
21649 $as_echo "$as_me: error: librpcsecgss not found." >&2;}
21650    { (exit 1); exit 1; }; }
21651 fi
21652
21653
21654     { $as_echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21655 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
21656 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21657   $as_echo_n "(cached) " >&6
21658 else
21659   ac_check_lib_save_LIBS=$LIBS
21660 LIBS="-lrpcsecgss  $LIBS"
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667
21668 /* Override any GCC internal prototype to avoid an error.
21669    Use char because int might match the return type of a GCC
21670    builtin and then its argument prototype would still apply.  */
21671 #ifdef __cplusplus
21672 extern "C"
21673 #endif
21674 char authgss_set_debug_level ();
21675 int
21676 main ()
21677 {
21678 return authgss_set_debug_level ();
21679   ;
21680   return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690 $as_echo "$ac_try_echo") >&5
21691   (eval "$ac_link") 2>conftest.er1
21692   ac_status=$?
21693   grep -v '^ *+' conftest.er1 >conftest.err
21694   rm -f conftest.er1
21695   cat conftest.err >&5
21696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); } && {
21698          test -z "$ac_c_werror_flag" ||
21699          test ! -s conftest.err
21700        } && test -s conftest$ac_exeext && {
21701          test "$cross_compiling" = yes ||
21702          $as_test_x conftest$ac_exeext
21703        }; then
21704   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21705 else
21706   $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21710 fi
21711
21712 rm -rf conftest.dSYM
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714       conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21716 fi
21717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21718 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
21719 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then
21720
21721 cat >>confdefs.h <<\_ACEOF
21722 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21723 _ACEOF
21724
21725 fi
21726
21727
21728   fi
21729
21730
21731
21732 fi
21733
21734
21735
21736   { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21737 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21738 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21739   $as_echo_n "(cached) " >&6
21740 else
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 <netdb.h>
21748
21749 int
21750 main ()
21751 {
21752 #ifndef AI_ADDRCONFIG
21753   (void) AI_ADDRCONFIG;
21754 #endif
21755
21756   ;
21757   return 0;
21758 }
21759 _ACEOF
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764   *) ac_try_echo=$ac_try;;
21765 esac
21766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21767 $as_echo "$ac_try_echo") >&5
21768   (eval "$ac_compile") 2>conftest.er1
21769   ac_status=$?
21770   grep -v '^ *+' conftest.er1 >conftest.err
21771   rm -f conftest.er1
21772   cat conftest.err >&5
21773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } && {
21775          test -z "$ac_c_werror_flag" ||
21776          test ! -s conftest.err
21777        } && test -s conftest.$ac_objext; then
21778   ac_cv_have_decl_AI_ADDRCONFIG=yes
21779 else
21780   $as_echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783         ac_cv_have_decl_AI_ADDRCONFIG=no
21784 fi
21785
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 fi
21788 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21789 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21790 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21791
21792 cat >>confdefs.h <<\_ACEOF
21793 #define HAVE_DECL_AI_ADDRCONFIG 1
21794 _ACEOF
21795
21796 fi
21797
21798
21799   if test "$enable_ipv6" = yes; then
21800
21801         if test "$enable_tirpc" = no; then
21802       { { $as_echo "$as_me:$LINENO: error: '--enable-ipv6' requires TIRPC support." >&5
21803 $as_echo "$as_me: error: '--enable-ipv6' requires TIRPC support." >&2;}
21804    { (exit 1); exit 1; }; }
21805     fi
21806
21807
21808
21809
21810 for ac_func in getifaddrs getnameinfo bindresvport_sa
21811 do
21812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21813 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21814 $as_echo_n "checking for $ac_func... " >&6; }
21815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21816   $as_echo_n "(cached) " >&6
21817 else
21818   cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21826 #define $ac_func innocuous_$ac_func
21827
21828 /* System header to define __stub macros and hopefully few prototypes,
21829     which can conflict with char $ac_func (); below.
21830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21831     <limits.h> exists even on freestanding compilers.  */
21832
21833 #ifdef __STDC__
21834 # include <limits.h>
21835 #else
21836 # include <assert.h>
21837 #endif
21838
21839 #undef $ac_func
21840
21841 /* Override any GCC internal prototype to avoid an error.
21842    Use char because int might match the return type of a GCC
21843    builtin and then its argument prototype would still apply.  */
21844 #ifdef __cplusplus
21845 extern "C"
21846 #endif
21847 char $ac_func ();
21848 /* The GNU C library defines this for functions which it implements
21849     to always fail with ENOSYS.  Some functions are actually named
21850     something starting with __ and the normal name is an alias.  */
21851 #if defined __stub_$ac_func || defined __stub___$ac_func
21852 choke me
21853 #endif
21854
21855 int
21856 main ()
21857 {
21858 return $ac_func ();
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (ac_try="$ac_link"
21865 case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21870 $as_echo "$ac_try_echo") >&5
21871   (eval "$ac_link") 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } && {
21878          test -z "$ac_c_werror_flag" ||
21879          test ! -s conftest.err
21880        } && test -s conftest$ac_exeext && {
21881          test "$cross_compiling" = yes ||
21882          $as_test_x conftest$ac_exeext
21883        }; then
21884   eval "$as_ac_var=yes"
21885 else
21886   $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889         eval "$as_ac_var=no"
21890 fi
21891
21892 rm -rf conftest.dSYM
21893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21894       conftest$ac_exeext conftest.$ac_ext
21895 fi
21896 ac_res=`eval 'as_val=${'$as_ac_var'}
21897                  $as_echo "$as_val"'`
21898                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21899 $as_echo "$ac_res" >&6; }
21900 as_val=`eval 'as_val=${'$as_ac_var'}
21901                  $as_echo "$as_val"'`
21902    if test "x$as_val" = x""yes; then
21903   cat >>confdefs.h <<_ACEOF
21904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21905 _ACEOF
21906
21907 else
21908   { { $as_echo "$as_me:$LINENO: error: Missing library functions needed for IPv6." >&5
21909 $as_echo "$as_me: error: Missing library functions needed for IPv6." >&2;}
21910    { (exit 1); exit 1; }; }
21911 fi
21912 done
21913
21914
21915             { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21916 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21917 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21918   $as_echo_n "(cached) " >&6
21919 else
21920   cat >conftest.$ac_ext <<_ACEOF
21921 /* confdefs.h.  */
21922 _ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h.  */
21926  #include <netdb.h>
21927
21928 int
21929 main ()
21930 {
21931 #ifndef AI_ADDRCONFIG
21932   (void) AI_ADDRCONFIG;
21933 #endif
21934
21935   ;
21936   return 0;
21937 }
21938 _ACEOF
21939 rm -f conftest.$ac_objext
21940 if { (ac_try="$ac_compile"
21941 case "(($ac_try" in
21942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943   *) ac_try_echo=$ac_try;;
21944 esac
21945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21946 $as_echo "$ac_try_echo") >&5
21947   (eval "$ac_compile") 2>conftest.er1
21948   ac_status=$?
21949   grep -v '^ *+' conftest.er1 >conftest.err
21950   rm -f conftest.er1
21951   cat conftest.err >&5
21952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); } && {
21954          test -z "$ac_c_werror_flag" ||
21955          test ! -s conftest.err
21956        } && test -s conftest.$ac_objext; then
21957   ac_cv_have_decl_AI_ADDRCONFIG=yes
21958 else
21959   $as_echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962         ac_cv_have_decl_AI_ADDRCONFIG=no
21963 fi
21964
21965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966 fi
21967 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21968 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21969 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21970   :
21971 else
21972   { { $as_echo "$as_me:$LINENO: error: full getaddrinfo(3) implementation needed for IPv6 support" >&5
21973 $as_echo "$as_me: error: full getaddrinfo(3) implementation needed for IPv6 support" >&2;}
21974    { (exit 1); exit 1; }; }
21975 fi
21976
21977
21978   fi
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22006                  malloc.h memory.h netdb.h netinet/in.h paths.h \
22007                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22008                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22009                  syslog.h unistd.h com_err.h et/com_err.h \
22010                  ifaddrs.h
22011 do
22012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22014   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22015 $as_echo_n "checking for $ac_header... " >&6; }
22016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22017   $as_echo_n "(cached) " >&6
22018 fi
22019 ac_res=`eval 'as_val=${'$as_ac_Header'}
22020                  $as_echo "$as_val"'`
22021                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22022 $as_echo "$ac_res" >&6; }
22023 else
22024   # Is the header compilable?
22025 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22026 $as_echo_n "checking $ac_header usability... " >&6; }
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h.  */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h.  */
22033 $ac_includes_default
22034 #include <$ac_header>
22035 _ACEOF
22036 rm -f conftest.$ac_objext
22037 if { (ac_try="$ac_compile"
22038 case "(($ac_try" in
22039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040   *) ac_try_echo=$ac_try;;
22041 esac
22042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22043 $as_echo "$ac_try_echo") >&5
22044   (eval "$ac_compile") 2>conftest.er1
22045   ac_status=$?
22046   grep -v '^ *+' conftest.er1 >conftest.err
22047   rm -f conftest.er1
22048   cat conftest.err >&5
22049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); } && {
22051          test -z "$ac_c_werror_flag" ||
22052          test ! -s conftest.err
22053        } && test -s conftest.$ac_objext; then
22054   ac_header_compiler=yes
22055 else
22056   $as_echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059         ac_header_compiler=no
22060 fi
22061
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22064 $as_echo "$ac_header_compiler" >&6; }
22065
22066 # Is the header present?
22067 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22068 $as_echo_n "checking $ac_header presence... " >&6; }
22069 cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h.  */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h.  */
22075 #include <$ac_header>
22076 _ACEOF
22077 if { (ac_try="$ac_cpp conftest.$ac_ext"
22078 case "(($ac_try" in
22079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080   *) ac_try_echo=$ac_try;;
22081 esac
22082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22083 $as_echo "$ac_try_echo") >&5
22084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } >/dev/null && {
22091          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        }; then
22094   ac_header_preproc=yes
22095 else
22096   $as_echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099   ac_header_preproc=no
22100 fi
22101
22102 rm -f conftest.err conftest.$ac_ext
22103 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22104 $as_echo "$ac_header_preproc" >&6; }
22105
22106 # So?  What about this header?
22107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22108   yes:no: )
22109     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22110 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22111     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22113     ac_header_preproc=yes
22114     ;;
22115   no:yes:* )
22116     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22117 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22119 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22121 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22123 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22127 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22128     ( cat <<\_ASBOX
22129 ## ---------------------------------------- ##
22130 ## Report this to linux-nfs@vger.kernel.org ##
22131 ## ---------------------------------------- ##
22132 _ASBOX
22133      ) | sed "s/^/$as_me: WARNING:     /" >&2
22134     ;;
22135 esac
22136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22137 $as_echo_n "checking for $ac_header... " >&6; }
22138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22139   $as_echo_n "(cached) " >&6
22140 else
22141   eval "$as_ac_Header=\$ac_header_preproc"
22142 fi
22143 ac_res=`eval 'as_val=${'$as_ac_Header'}
22144                  $as_echo "$as_val"'`
22145                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22146 $as_echo "$ac_res" >&6; }
22147
22148 fi
22149 as_val=`eval 'as_val=${'$as_ac_Header'}
22150                  $as_echo "$as_val"'`
22151    if test "x$as_val" = x""yes; then
22152   cat >>confdefs.h <<_ACEOF
22153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22154 _ACEOF
22155
22156 fi
22157
22158 done
22159
22160
22161 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22162 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22163 if test "${ac_cv_c_const+set}" = set; then
22164   $as_echo_n "(cached) " >&6
22165 else
22166   cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172
22173 int
22174 main ()
22175 {
22176 /* FIXME: Include the comments suggested by Paul. */
22177 #ifndef __cplusplus
22178   /* Ultrix mips cc rejects this.  */
22179   typedef int charset[2];
22180   const charset cs;
22181   /* SunOS 4.1.1 cc rejects this.  */
22182   char const *const *pcpcc;
22183   char **ppc;
22184   /* NEC SVR4.0.2 mips cc rejects this.  */
22185   struct point {int x, y;};
22186   static struct point const zero = {0,0};
22187   /* AIX XL C 1.02.0.0 rejects this.
22188      It does not let you subtract one const X* pointer from another in
22189      an arm of an if-expression whose if-part is not a constant
22190      expression */
22191   const char *g = "string";
22192   pcpcc = &g + (g ? g-g : 0);
22193   /* HPUX 7.0 cc rejects these. */
22194   ++pcpcc;
22195   ppc = (char**) pcpcc;
22196   pcpcc = (char const *const *) ppc;
22197   { /* SCO 3.2v4 cc rejects this.  */
22198     char *t;
22199     char const *s = 0 ? (char *) 0 : (char const *) 0;
22200
22201     *t++ = 0;
22202     if (s) return 0;
22203   }
22204   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22205     int x[] = {25, 17};
22206     const int *foo = &x[0];
22207     ++foo;
22208   }
22209   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22210     typedef const int *iptr;
22211     iptr p = 0;
22212     ++p;
22213   }
22214   { /* AIX XL C 1.02.0.0 rejects this saying
22215        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22216     struct s { int j; const int *ap[3]; };
22217     struct s *b; b->j = 5;
22218   }
22219   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22220     const int foo = 10;
22221     if (!foo) return 0;
22222   }
22223   return !cs[0] && !zero.x;
22224 #endif
22225
22226   ;
22227   return 0;
22228 }
22229 _ACEOF
22230 rm -f conftest.$ac_objext
22231 if { (ac_try="$ac_compile"
22232 case "(($ac_try" in
22233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234   *) ac_try_echo=$ac_try;;
22235 esac
22236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22237 $as_echo "$ac_try_echo") >&5
22238   (eval "$ac_compile") 2>conftest.er1
22239   ac_status=$?
22240   grep -v '^ *+' conftest.er1 >conftest.err
22241   rm -f conftest.er1
22242   cat conftest.err >&5
22243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } && {
22245          test -z "$ac_c_werror_flag" ||
22246          test ! -s conftest.err
22247        } && test -s conftest.$ac_objext; then
22248   ac_cv_c_const=yes
22249 else
22250   $as_echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253         ac_cv_c_const=no
22254 fi
22255
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 fi
22258 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22259 $as_echo "$ac_cv_c_const" >&6; }
22260 if test $ac_cv_c_const = no; then
22261
22262 cat >>confdefs.h <<\_ACEOF
22263 #define const /**/
22264 _ACEOF
22265
22266 fi
22267
22268 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22269 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22270 if test "${ac_cv_type_uid_t+set}" = set; then
22271   $as_echo_n "(cached) " >&6
22272 else
22273   cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h.  */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h.  */
22279 #include <sys/types.h>
22280
22281 _ACEOF
22282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22283   $EGREP "uid_t" >/dev/null 2>&1; then
22284   ac_cv_type_uid_t=yes
22285 else
22286   ac_cv_type_uid_t=no
22287 fi
22288 rm -f conftest*
22289
22290 fi
22291 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22292 $as_echo "$ac_cv_type_uid_t" >&6; }
22293 if test $ac_cv_type_uid_t = no; then
22294
22295 cat >>confdefs.h <<\_ACEOF
22296 #define uid_t int
22297 _ACEOF
22298
22299
22300 cat >>confdefs.h <<\_ACEOF
22301 #define gid_t int
22302 _ACEOF
22303
22304 fi
22305
22306 { $as_echo "$as_me:$LINENO: checking for inline" >&5
22307 $as_echo_n "checking for inline... " >&6; }
22308 if test "${ac_cv_c_inline+set}" = set; then
22309   $as_echo_n "(cached) " >&6
22310 else
22311   ac_cv_c_inline=no
22312 for ac_kw in inline __inline__ __inline; do
22313   cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h.  */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h.  */
22319 #ifndef __cplusplus
22320 typedef int foo_t;
22321 static $ac_kw foo_t static_foo () {return 0; }
22322 $ac_kw foo_t foo () {return 0; }
22323 #endif
22324
22325 _ACEOF
22326 rm -f conftest.$ac_objext
22327 if { (ac_try="$ac_compile"
22328 case "(($ac_try" in
22329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330   *) ac_try_echo=$ac_try;;
22331 esac
22332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22333 $as_echo "$ac_try_echo") >&5
22334   (eval "$ac_compile") 2>conftest.er1
22335   ac_status=$?
22336   grep -v '^ *+' conftest.er1 >conftest.err
22337   rm -f conftest.er1
22338   cat conftest.err >&5
22339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } && {
22341          test -z "$ac_c_werror_flag" ||
22342          test ! -s conftest.err
22343        } && test -s conftest.$ac_objext; then
22344   ac_cv_c_inline=$ac_kw
22345 else
22346   $as_echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349
22350 fi
22351
22352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353   test "$ac_cv_c_inline" != no && break
22354 done
22355
22356 fi
22357 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22358 $as_echo "$ac_cv_c_inline" >&6; }
22359
22360
22361 case $ac_cv_c_inline in
22362   inline | yes) ;;
22363   *)
22364     case $ac_cv_c_inline in
22365       no) ac_val=;;
22366       *) ac_val=$ac_cv_c_inline;;
22367     esac
22368     cat >>confdefs.h <<_ACEOF
22369 #ifndef __cplusplus
22370 #define inline $ac_val
22371 #endif
22372 _ACEOF
22373     ;;
22374 esac
22375
22376 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
22377 $as_echo_n "checking for off_t... " >&6; }
22378 if test "${ac_cv_type_off_t+set}" = set; then
22379   $as_echo_n "(cached) " >&6
22380 else
22381   ac_cv_type_off_t=no
22382 cat >conftest.$ac_ext <<_ACEOF
22383 /* confdefs.h.  */
22384 _ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h.  */
22388 $ac_includes_default
22389 int
22390 main ()
22391 {
22392 if (sizeof (off_t))
22393        return 0;
22394   ;
22395   return 0;
22396 }
22397 _ACEOF
22398 rm -f conftest.$ac_objext
22399 if { (ac_try="$ac_compile"
22400 case "(($ac_try" in
22401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402   *) ac_try_echo=$ac_try;;
22403 esac
22404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22405 $as_echo "$ac_try_echo") >&5
22406   (eval "$ac_compile") 2>conftest.er1
22407   ac_status=$?
22408   grep -v '^ *+' conftest.er1 >conftest.err
22409   rm -f conftest.er1
22410   cat conftest.err >&5
22411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); } && {
22413          test -z "$ac_c_werror_flag" ||
22414          test ! -s conftest.err
22415        } && test -s conftest.$ac_objext; then
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 ((off_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   :
22451 else
22452   $as_echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455         ac_cv_type_off_t=yes
22456 fi
22457
22458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22459 else
22460   $as_echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22462
22463
22464 fi
22465
22466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467 fi
22468 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22469 $as_echo "$ac_cv_type_off_t" >&6; }
22470 if test "x$ac_cv_type_off_t" = x""yes; then
22471   :
22472 else
22473
22474 cat >>confdefs.h <<_ACEOF
22475 #define off_t long int
22476 _ACEOF
22477
22478 fi
22479
22480 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
22481 $as_echo_n "checking for pid_t... " >&6; }
22482 if test "${ac_cv_type_pid_t+set}" = set; then
22483   $as_echo_n "(cached) " >&6
22484 else
22485   ac_cv_type_pid_t=no
22486 cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492 $ac_includes_default
22493 int
22494 main ()
22495 {
22496 if (sizeof (pid_t))
22497        return 0;
22498   ;
22499   return 0;
22500 }
22501 _ACEOF
22502 rm -f conftest.$ac_objext
22503 if { (ac_try="$ac_compile"
22504 case "(($ac_try" in
22505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506   *) ac_try_echo=$ac_try;;
22507 esac
22508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22509 $as_echo "$ac_try_echo") >&5
22510   (eval "$ac_compile") 2>conftest.er1
22511   ac_status=$?
22512   grep -v '^ *+' conftest.er1 >conftest.err
22513   rm -f conftest.er1
22514   cat conftest.err >&5
22515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); } && {
22517          test -z "$ac_c_werror_flag" ||
22518          test ! -s conftest.err
22519        } && test -s conftest.$ac_objext; then
22520   cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 $ac_includes_default
22527 int
22528 main ()
22529 {
22530 if (sizeof ((pid_t)))
22531           return 0;
22532   ;
22533   return 0;
22534 }
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540   *) ac_try_echo=$ac_try;;
22541 esac
22542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22543 $as_echo "$ac_try_echo") >&5
22544   (eval "$ac_compile") 2>conftest.er1
22545   ac_status=$?
22546   grep -v '^ *+' conftest.er1 >conftest.err
22547   rm -f conftest.er1
22548   cat conftest.err >&5
22549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); } && {
22551          test -z "$ac_c_werror_flag" ||
22552          test ! -s conftest.err
22553        } && test -s conftest.$ac_objext; then
22554   :
22555 else
22556   $as_echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559         ac_cv_type_pid_t=yes
22560 fi
22561
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 else
22564   $as_echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 fi
22572 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22573 $as_echo "$ac_cv_type_pid_t" >&6; }
22574 if test "x$ac_cv_type_pid_t" = x""yes; then
22575   :
22576 else
22577
22578 cat >>confdefs.h <<_ACEOF
22579 #define pid_t int
22580 _ACEOF
22581
22582 fi
22583
22584 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
22585 $as_echo_n "checking for size_t... " >&6; }
22586 if test "${ac_cv_type_size_t+set}" = set; then
22587   $as_echo_n "(cached) " >&6
22588 else
22589   ac_cv_type_size_t=no
22590 cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h.  */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h.  */
22596 $ac_includes_default
22597 int
22598 main ()
22599 {
22600 if (sizeof (size_t))
22601        return 0;
22602   ;
22603   return 0;
22604 }
22605 _ACEOF
22606 rm -f conftest.$ac_objext
22607 if { (ac_try="$ac_compile"
22608 case "(($ac_try" in
22609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610   *) ac_try_echo=$ac_try;;
22611 esac
22612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22613 $as_echo "$ac_try_echo") >&5
22614   (eval "$ac_compile") 2>conftest.er1
22615   ac_status=$?
22616   grep -v '^ *+' conftest.er1 >conftest.err
22617   rm -f conftest.er1
22618   cat conftest.err >&5
22619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); } && {
22621          test -z "$ac_c_werror_flag" ||
22622          test ! -s conftest.err
22623        } && test -s conftest.$ac_objext; then
22624   cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h.  */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h.  */
22630 $ac_includes_default
22631 int
22632 main ()
22633 {
22634 if (sizeof ((size_t)))
22635           return 0;
22636   ;
22637   return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext
22641 if { (ac_try="$ac_compile"
22642 case "(($ac_try" in
22643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644   *) ac_try_echo=$ac_try;;
22645 esac
22646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22647 $as_echo "$ac_try_echo") >&5
22648   (eval "$ac_compile") 2>conftest.er1
22649   ac_status=$?
22650   grep -v '^ *+' conftest.er1 >conftest.err
22651   rm -f conftest.er1
22652   cat conftest.err >&5
22653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); } && {
22655          test -z "$ac_c_werror_flag" ||
22656          test ! -s conftest.err
22657        } && test -s conftest.$ac_objext; then
22658   :
22659 else
22660   $as_echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22662
22663         ac_cv_type_size_t=yes
22664 fi
22665
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 else
22668   $as_echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671
22672 fi
22673
22674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675 fi
22676 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22677 $as_echo "$ac_cv_type_size_t" >&6; }
22678 if test "x$ac_cv_type_size_t" = x""yes; then
22679   :
22680 else
22681
22682 cat >>confdefs.h <<_ACEOF
22683 #define size_t unsigned int
22684 _ACEOF
22685
22686 fi
22687
22688 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22689 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22690 if test "${ac_cv_header_time+set}" = set; then
22691   $as_echo_n "(cached) " >&6
22692 else
22693   cat >conftest.$ac_ext <<_ACEOF
22694 /* confdefs.h.  */
22695 _ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h.  */
22699 #include <sys/types.h>
22700 #include <sys/time.h>
22701 #include <time.h>
22702
22703 int
22704 main ()
22705 {
22706 if ((struct tm *) 0)
22707 return 0;
22708   ;
22709   return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext
22713 if { (ac_try="$ac_compile"
22714 case "(($ac_try" in
22715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716   *) ac_try_echo=$ac_try;;
22717 esac
22718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22719 $as_echo "$ac_try_echo") >&5
22720   (eval "$ac_compile") 2>conftest.er1
22721   ac_status=$?
22722   grep -v '^ *+' conftest.er1 >conftest.err
22723   rm -f conftest.er1
22724   cat conftest.err >&5
22725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726   (exit $ac_status); } && {
22727          test -z "$ac_c_werror_flag" ||
22728          test ! -s conftest.err
22729        } && test -s conftest.$ac_objext; then
22730   ac_cv_header_time=yes
22731 else
22732   $as_echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735         ac_cv_header_time=no
22736 fi
22737
22738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 fi
22740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22741 $as_echo "$ac_cv_header_time" >&6; }
22742 if test $ac_cv_header_time = yes; then
22743
22744 cat >>confdefs.h <<\_ACEOF
22745 #define TIME_WITH_SYS_TIME 1
22746 _ACEOF
22747
22748 fi
22749
22750 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22751 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22752 if test "${ac_cv_struct_tm+set}" = set; then
22753   $as_echo_n "(cached) " >&6
22754 else
22755   cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h.  */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h.  */
22761 #include <sys/types.h>
22762 #include <time.h>
22763
22764 int
22765 main ()
22766 {
22767 struct tm tm;
22768                                      int *p = &tm.tm_sec;
22769                                      return !p;
22770   ;
22771   return 0;
22772 }
22773 _ACEOF
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778   *) ac_try_echo=$ac_try;;
22779 esac
22780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22781 $as_echo "$ac_try_echo") >&5
22782   (eval "$ac_compile") 2>conftest.er1
22783   ac_status=$?
22784   grep -v '^ *+' conftest.er1 >conftest.err
22785   rm -f conftest.er1
22786   cat conftest.err >&5
22787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788   (exit $ac_status); } && {
22789          test -z "$ac_c_werror_flag" ||
22790          test ! -s conftest.err
22791        } && test -s conftest.$ac_objext; then
22792   ac_cv_struct_tm=time.h
22793 else
22794   $as_echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797         ac_cv_struct_tm=sys/time.h
22798 fi
22799
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 fi
22802 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22803 $as_echo "$ac_cv_struct_tm" >&6; }
22804 if test $ac_cv_struct_tm = sys/time.h; then
22805
22806 cat >>confdefs.h <<\_ACEOF
22807 #define TM_IN_SYS_TIME 1
22808 _ACEOF
22809
22810 fi
22811
22812
22813 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22814 # for constant arguments.  Useless!
22815 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
22816 $as_echo_n "checking for working alloca.h... " >&6; }
22817 if test "${ac_cv_working_alloca_h+set}" = set; then
22818   $as_echo_n "(cached) " >&6
22819 else
22820   cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h.  */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h.  */
22826 #include <alloca.h>
22827 int
22828 main ()
22829 {
22830 char *p = (char *) alloca (2 * sizeof (int));
22831                           if (p) return 0;
22832   ;
22833   return 0;
22834 }
22835 _ACEOF
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (ac_try="$ac_link"
22838 case "(($ac_try" in
22839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840   *) ac_try_echo=$ac_try;;
22841 esac
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844   (eval "$ac_link") 2>conftest.er1
22845   ac_status=$?
22846   grep -v '^ *+' conftest.er1 >conftest.err
22847   rm -f conftest.er1
22848   cat conftest.err >&5
22849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } && {
22851          test -z "$ac_c_werror_flag" ||
22852          test ! -s conftest.err
22853        } && test -s conftest$ac_exeext && {
22854          test "$cross_compiling" = yes ||
22855          $as_test_x conftest$ac_exeext
22856        }; then
22857   ac_cv_working_alloca_h=yes
22858 else
22859   $as_echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22861
22862         ac_cv_working_alloca_h=no
22863 fi
22864
22865 rm -rf conftest.dSYM
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867       conftest$ac_exeext conftest.$ac_ext
22868 fi
22869 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22870 $as_echo "$ac_cv_working_alloca_h" >&6; }
22871 if test $ac_cv_working_alloca_h = yes; then
22872
22873 cat >>confdefs.h <<\_ACEOF
22874 #define HAVE_ALLOCA_H 1
22875 _ACEOF
22876
22877 fi
22878
22879 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
22880 $as_echo_n "checking for alloca... " >&6; }
22881 if test "${ac_cv_func_alloca_works+set}" = set; then
22882   $as_echo_n "(cached) " >&6
22883 else
22884   cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h.  */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h.  */
22890 #ifdef __GNUC__
22891 # define alloca __builtin_alloca
22892 #else
22893 # ifdef _MSC_VER
22894 #  include <malloc.h>
22895 #  define alloca _alloca
22896 # else
22897 #  ifdef HAVE_ALLOCA_H
22898 #   include <alloca.h>
22899 #  else
22900 #   ifdef _AIX
22901  #pragma alloca
22902 #   else
22903 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22904 char *alloca ();
22905 #    endif
22906 #   endif
22907 #  endif
22908 # endif
22909 #endif
22910
22911 int
22912 main ()
22913 {
22914 char *p = (char *) alloca (1);
22915                                     if (p) return 0;
22916   ;
22917   return 0;
22918 }
22919 _ACEOF
22920 rm -f conftest.$ac_objext conftest$ac_exeext
22921 if { (ac_try="$ac_link"
22922 case "(($ac_try" in
22923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924   *) ac_try_echo=$ac_try;;
22925 esac
22926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22927 $as_echo "$ac_try_echo") >&5
22928   (eval "$ac_link") 2>conftest.er1
22929   ac_status=$?
22930   grep -v '^ *+' conftest.er1 >conftest.err
22931   rm -f conftest.er1
22932   cat conftest.err >&5
22933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); } && {
22935          test -z "$ac_c_werror_flag" ||
22936          test ! -s conftest.err
22937        } && test -s conftest$ac_exeext && {
22938          test "$cross_compiling" = yes ||
22939          $as_test_x conftest$ac_exeext
22940        }; then
22941   ac_cv_func_alloca_works=yes
22942 else
22943   $as_echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946         ac_cv_func_alloca_works=no
22947 fi
22948
22949 rm -rf conftest.dSYM
22950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22951       conftest$ac_exeext conftest.$ac_ext
22952 fi
22953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22954 $as_echo "$ac_cv_func_alloca_works" >&6; }
22955
22956 if test $ac_cv_func_alloca_works = yes; then
22957
22958 cat >>confdefs.h <<\_ACEOF
22959 #define HAVE_ALLOCA 1
22960 _ACEOF
22961
22962 else
22963   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22964 # that cause trouble.  Some versions do not even contain alloca or
22965 # contain a buggy version.  If you still want to use their alloca,
22966 # use ar to extract alloca.o from them instead of compiling alloca.c.
22967
22968 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22969
22970 cat >>confdefs.h <<\_ACEOF
22971 #define C_ALLOCA 1
22972 _ACEOF
22973
22974
22975 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22976 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22977 if test "${ac_cv_os_cray+set}" = set; then
22978   $as_echo_n "(cached) " >&6
22979 else
22980   cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h.  */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h.  */
22986 #if defined CRAY && ! defined CRAY2
22987 webecray
22988 #else
22989 wenotbecray
22990 #endif
22991
22992 _ACEOF
22993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22994   $EGREP "webecray" >/dev/null 2>&1; then
22995   ac_cv_os_cray=yes
22996 else
22997   ac_cv_os_cray=no
22998 fi
22999 rm -f conftest*
23000
23001 fi
23002 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23003 $as_echo "$ac_cv_os_cray" >&6; }
23004 if test $ac_cv_os_cray = yes; then
23005   for ac_func in _getb67 GETB67 getb67; do
23006     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23008 $as_echo_n "checking for $ac_func... " >&6; }
23009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23010   $as_echo_n "(cached) " >&6
23011 else
23012   cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23020 #define $ac_func innocuous_$ac_func
23021
23022 /* System header to define __stub macros and hopefully few prototypes,
23023     which can conflict with char $ac_func (); below.
23024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23025     <limits.h> exists even on freestanding compilers.  */
23026
23027 #ifdef __STDC__
23028 # include <limits.h>
23029 #else
23030 # include <assert.h>
23031 #endif
23032
23033 #undef $ac_func
23034
23035 /* Override any GCC internal prototype to avoid an error.
23036    Use char because int might match the return type of a GCC
23037    builtin and then its argument prototype would still apply.  */
23038 #ifdef __cplusplus
23039 extern "C"
23040 #endif
23041 char $ac_func ();
23042 /* The GNU C library defines this for functions which it implements
23043     to always fail with ENOSYS.  Some functions are actually named
23044     something starting with __ and the normal name is an alias.  */
23045 #if defined __stub_$ac_func || defined __stub___$ac_func
23046 choke me
23047 #endif
23048
23049 int
23050 main ()
23051 {
23052 return $ac_func ();
23053   ;
23054   return 0;
23055 }
23056 _ACEOF
23057 rm -f conftest.$ac_objext conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061   *) ac_try_echo=$ac_try;;
23062 esac
23063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23064 $as_echo "$ac_try_echo") >&5
23065   (eval "$ac_link") 2>conftest.er1
23066   ac_status=$?
23067   grep -v '^ *+' conftest.er1 >conftest.err
23068   rm -f conftest.er1
23069   cat conftest.err >&5
23070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } && {
23072          test -z "$ac_c_werror_flag" ||
23073          test ! -s conftest.err
23074        } && test -s conftest$ac_exeext && {
23075          test "$cross_compiling" = yes ||
23076          $as_test_x conftest$ac_exeext
23077        }; then
23078   eval "$as_ac_var=yes"
23079 else
23080   $as_echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083         eval "$as_ac_var=no"
23084 fi
23085
23086 rm -rf conftest.dSYM
23087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23088       conftest$ac_exeext conftest.$ac_ext
23089 fi
23090 ac_res=`eval 'as_val=${'$as_ac_var'}
23091                  $as_echo "$as_val"'`
23092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23093 $as_echo "$ac_res" >&6; }
23094 as_val=`eval 'as_val=${'$as_ac_var'}
23095                  $as_echo "$as_val"'`
23096    if test "x$as_val" = x""yes; then
23097
23098 cat >>confdefs.h <<_ACEOF
23099 #define CRAY_STACKSEG_END $ac_func
23100 _ACEOF
23101
23102     break
23103 fi
23104
23105   done
23106 fi
23107
23108 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23109 $as_echo_n "checking stack direction for C alloca... " >&6; }
23110 if test "${ac_cv_c_stack_direction+set}" = set; then
23111   $as_echo_n "(cached) " >&6
23112 else
23113   if test "$cross_compiling" = yes; then
23114   ac_cv_c_stack_direction=0
23115 else
23116   cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h.  */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h.  */
23122 $ac_includes_default
23123 int
23124 find_stack_direction ()
23125 {
23126   static char *addr = 0;
23127   auto char dummy;
23128   if (addr == 0)
23129     {
23130       addr = &dummy;
23131       return find_stack_direction ();
23132     }
23133   else
23134     return (&dummy > addr) ? 1 : -1;
23135 }
23136
23137 int
23138 main ()
23139 {
23140   return find_stack_direction () < 0;
23141 }
23142 _ACEOF
23143 rm -f conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147   *) ac_try_echo=$ac_try;;
23148 esac
23149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23150 $as_echo "$ac_try_echo") >&5
23151   (eval "$ac_link") 2>&5
23152   ac_status=$?
23153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23155   { (case "(($ac_try" in
23156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157   *) ac_try_echo=$ac_try;;
23158 esac
23159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23160 $as_echo "$ac_try_echo") >&5
23161   (eval "$ac_try") 2>&5
23162   ac_status=$?
23163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; }; then
23165   ac_cv_c_stack_direction=1
23166 else
23167   $as_echo "$as_me: program exited with status $ac_status" >&5
23168 $as_echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171 ( exit $ac_status )
23172 ac_cv_c_stack_direction=-1
23173 fi
23174 rm -rf conftest.dSYM
23175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23176 fi
23177
23178
23179 fi
23180 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23181 $as_echo "$ac_cv_c_stack_direction" >&6; }
23182
23183 cat >>confdefs.h <<_ACEOF
23184 #define STACK_DIRECTION $ac_cv_c_stack_direction
23185 _ACEOF
23186
23187
23188 fi
23189
23190
23191
23192
23193
23194
23195 ac_header_dirent=no
23196 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23197   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23198 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23199 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23201   $as_echo_n "(cached) " >&6
23202 else
23203   cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 #include <sys/types.h>
23210 #include <$ac_hdr>
23211
23212 int
23213 main ()
23214 {
23215 if ((DIR *) 0)
23216 return 0;
23217   ;
23218   return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225   *) ac_try_echo=$ac_try;;
23226 esac
23227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23228 $as_echo "$ac_try_echo") >&5
23229   (eval "$ac_compile") 2>conftest.er1
23230   ac_status=$?
23231   grep -v '^ *+' conftest.er1 >conftest.err
23232   rm -f conftest.er1
23233   cat conftest.err >&5
23234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); } && {
23236          test -z "$ac_c_werror_flag" ||
23237          test ! -s conftest.err
23238        } && test -s conftest.$ac_objext; then
23239   eval "$as_ac_Header=yes"
23240 else
23241   $as_echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244         eval "$as_ac_Header=no"
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 fi
23249 ac_res=`eval 'as_val=${'$as_ac_Header'}
23250                  $as_echo "$as_val"'`
23251                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23252 $as_echo "$ac_res" >&6; }
23253 as_val=`eval 'as_val=${'$as_ac_Header'}
23254                  $as_echo "$as_val"'`
23255    if test "x$as_val" = x""yes; then
23256   cat >>confdefs.h <<_ACEOF
23257 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23258 _ACEOF
23259
23260 ac_header_dirent=$ac_hdr; break
23261 fi
23262
23263 done
23264 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23265 if test $ac_header_dirent = dirent.h; then
23266   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23267 $as_echo_n "checking for library containing opendir... " >&6; }
23268 if test "${ac_cv_search_opendir+set}" = set; then
23269   $as_echo_n "(cached) " >&6
23270 else
23271   ac_func_search_save_LIBS=$LIBS
23272 cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23278
23279 /* Override any GCC internal prototype to avoid an error.
23280    Use char because int might match the return type of a GCC
23281    builtin and then its argument prototype would still apply.  */
23282 #ifdef __cplusplus
23283 extern "C"
23284 #endif
23285 char opendir ();
23286 int
23287 main ()
23288 {
23289 return opendir ();
23290   ;
23291   return 0;
23292 }
23293 _ACEOF
23294 for ac_lib in '' dir; do
23295   if test -z "$ac_lib"; then
23296     ac_res="none required"
23297   else
23298     ac_res=-l$ac_lib
23299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23300   fi
23301   rm -f conftest.$ac_objext conftest$ac_exeext
23302 if { (ac_try="$ac_link"
23303 case "(($ac_try" in
23304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305   *) ac_try_echo=$ac_try;;
23306 esac
23307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23308 $as_echo "$ac_try_echo") >&5
23309   (eval "$ac_link") 2>conftest.er1
23310   ac_status=$?
23311   grep -v '^ *+' conftest.er1 >conftest.err
23312   rm -f conftest.er1
23313   cat conftest.err >&5
23314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } && {
23316          test -z "$ac_c_werror_flag" ||
23317          test ! -s conftest.err
23318        } && test -s conftest$ac_exeext && {
23319          test "$cross_compiling" = yes ||
23320          $as_test_x conftest$ac_exeext
23321        }; then
23322   ac_cv_search_opendir=$ac_res
23323 else
23324   $as_echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23326
23327
23328 fi
23329
23330 rm -rf conftest.dSYM
23331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23332       conftest$ac_exeext
23333   if test "${ac_cv_search_opendir+set}" = set; then
23334   break
23335 fi
23336 done
23337 if test "${ac_cv_search_opendir+set}" = set; then
23338   :
23339 else
23340   ac_cv_search_opendir=no
23341 fi
23342 rm conftest.$ac_ext
23343 LIBS=$ac_func_search_save_LIBS
23344 fi
23345 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23346 $as_echo "$ac_cv_search_opendir" >&6; }
23347 ac_res=$ac_cv_search_opendir
23348 if test "$ac_res" != no; then
23349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23350
23351 fi
23352
23353 else
23354   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23355 $as_echo_n "checking for library containing opendir... " >&6; }
23356 if test "${ac_cv_search_opendir+set}" = set; then
23357   $as_echo_n "(cached) " >&6
23358 else
23359   ac_func_search_save_LIBS=$LIBS
23360 cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366
23367 /* Override any GCC internal prototype to avoid an error.
23368    Use char because int might match the return type of a GCC
23369    builtin and then its argument prototype would still apply.  */
23370 #ifdef __cplusplus
23371 extern "C"
23372 #endif
23373 char opendir ();
23374 int
23375 main ()
23376 {
23377 return opendir ();
23378   ;
23379   return 0;
23380 }
23381 _ACEOF
23382 for ac_lib in '' x; do
23383   if test -z "$ac_lib"; then
23384     ac_res="none required"
23385   else
23386     ac_res=-l$ac_lib
23387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23388   fi
23389   rm -f conftest.$ac_objext conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393   *) ac_try_echo=$ac_try;;
23394 esac
23395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396 $as_echo "$ac_try_echo") >&5
23397   (eval "$ac_link") 2>conftest.er1
23398   ac_status=$?
23399   grep -v '^ *+' conftest.er1 >conftest.err
23400   rm -f conftest.er1
23401   cat conftest.err >&5
23402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } && {
23404          test -z "$ac_c_werror_flag" ||
23405          test ! -s conftest.err
23406        } && test -s conftest$ac_exeext && {
23407          test "$cross_compiling" = yes ||
23408          $as_test_x conftest$ac_exeext
23409        }; then
23410   ac_cv_search_opendir=$ac_res
23411 else
23412   $as_echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415
23416 fi
23417
23418 rm -rf conftest.dSYM
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23420       conftest$ac_exeext
23421   if test "${ac_cv_search_opendir+set}" = set; then
23422   break
23423 fi
23424 done
23425 if test "${ac_cv_search_opendir+set}" = set; then
23426   :
23427 else
23428   ac_cv_search_opendir=no
23429 fi
23430 rm conftest.$ac_ext
23431 LIBS=$ac_func_search_save_LIBS
23432 fi
23433 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23434 $as_echo "$ac_cv_search_opendir" >&6; }
23435 ac_res=$ac_cv_search_opendir
23436 if test "$ac_res" != no; then
23437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23438
23439 fi
23440
23441 fi
23442
23443 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23444 $as_echo_n "checking whether closedir returns void... " >&6; }
23445 if test "${ac_cv_func_closedir_void+set}" = set; then
23446   $as_echo_n "(cached) " >&6
23447 else
23448   if test "$cross_compiling" = yes; then
23449   ac_cv_func_closedir_void=yes
23450 else
23451   cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h.  */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h.  */
23457 $ac_includes_default
23458 #include <$ac_header_dirent>
23459 #ifndef __cplusplus
23460 int closedir ();
23461 #endif
23462
23463 int
23464 main ()
23465 {
23466 return closedir (opendir (".")) != 0;
23467   ;
23468   return 0;
23469 }
23470 _ACEOF
23471 rm -f conftest$ac_exeext
23472 if { (ac_try="$ac_link"
23473 case "(($ac_try" in
23474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475   *) ac_try_echo=$ac_try;;
23476 esac
23477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23478 $as_echo "$ac_try_echo") >&5
23479   (eval "$ac_link") 2>&5
23480   ac_status=$?
23481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483   { (case "(($ac_try" in
23484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485   *) ac_try_echo=$ac_try;;
23486 esac
23487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23488 $as_echo "$ac_try_echo") >&5
23489   (eval "$ac_try") 2>&5
23490   ac_status=$?
23491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492   (exit $ac_status); }; }; then
23493   ac_cv_func_closedir_void=no
23494 else
23495   $as_echo "$as_me: program exited with status $ac_status" >&5
23496 $as_echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23498
23499 ( exit $ac_status )
23500 ac_cv_func_closedir_void=yes
23501 fi
23502 rm -rf conftest.dSYM
23503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23504 fi
23505
23506
23507 fi
23508 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23509 $as_echo "$ac_cv_func_closedir_void" >&6; }
23510 if test $ac_cv_func_closedir_void = yes; then
23511
23512 cat >>confdefs.h <<\_ACEOF
23513 #define CLOSEDIR_VOID 1
23514 _ACEOF
23515
23516 fi
23517
23518 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
23519 $as_echo_n "checking for error_at_line... " >&6; }
23520 if test "${ac_cv_lib_error_at_line+set}" = set; then
23521   $as_echo_n "(cached) " >&6
23522 else
23523   cat >conftest.$ac_ext <<_ACEOF
23524 /* confdefs.h.  */
23525 _ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h.  */
23529 #include <error.h>
23530 int
23531 main ()
23532 {
23533 error_at_line (0, 0, "", 0, "an error occurred");
23534   ;
23535   return 0;
23536 }
23537 _ACEOF
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23545 $as_echo "$ac_try_echo") >&5
23546   (eval "$ac_link") 2>conftest.er1
23547   ac_status=$?
23548   grep -v '^ *+' conftest.er1 >conftest.err
23549   rm -f conftest.er1
23550   cat conftest.err >&5
23551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } && {
23553          test -z "$ac_c_werror_flag" ||
23554          test ! -s conftest.err
23555        } && test -s conftest$ac_exeext && {
23556          test "$cross_compiling" = yes ||
23557          $as_test_x conftest$ac_exeext
23558        }; then
23559   ac_cv_lib_error_at_line=yes
23560 else
23561   $as_echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564         ac_cv_lib_error_at_line=no
23565 fi
23566
23567 rm -rf conftest.dSYM
23568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23569       conftest$ac_exeext conftest.$ac_ext
23570 fi
23571 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23572 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23573 if test $ac_cv_lib_error_at_line = no; then
23574   case " $LIBOBJS " in
23575   *" error.$ac_objext "* ) ;;
23576   *) LIBOBJS="$LIBOBJS error.$ac_objext"
23577  ;;
23578 esac
23579
23580 fi
23581
23582
23583 for ac_header in vfork.h
23584 do
23585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23587   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23588 $as_echo_n "checking for $ac_header... " >&6; }
23589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23590   $as_echo_n "(cached) " >&6
23591 fi
23592 ac_res=`eval 'as_val=${'$as_ac_Header'}
23593                  $as_echo "$as_val"'`
23594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23595 $as_echo "$ac_res" >&6; }
23596 else
23597   # Is the header compilable?
23598 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23599 $as_echo_n "checking $ac_header usability... " >&6; }
23600 cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606 $ac_includes_default
23607 #include <$ac_header>
23608 _ACEOF
23609 rm -f conftest.$ac_objext
23610 if { (ac_try="$ac_compile"
23611 case "(($ac_try" in
23612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613   *) ac_try_echo=$ac_try;;
23614 esac
23615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23616 $as_echo "$ac_try_echo") >&5
23617   (eval "$ac_compile") 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } && {
23624          test -z "$ac_c_werror_flag" ||
23625          test ! -s conftest.err
23626        } && test -s conftest.$ac_objext; then
23627   ac_header_compiler=yes
23628 else
23629   $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23631
23632         ac_header_compiler=no
23633 fi
23634
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23637 $as_echo "$ac_header_compiler" >&6; }
23638
23639 # Is the header present?
23640 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23641 $as_echo_n "checking $ac_header presence... " >&6; }
23642 cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648 #include <$ac_header>
23649 _ACEOF
23650 if { (ac_try="$ac_cpp conftest.$ac_ext"
23651 case "(($ac_try" in
23652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653   *) ac_try_echo=$ac_try;;
23654 esac
23655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23656 $as_echo "$ac_try_echo") >&5
23657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23658   ac_status=$?
23659   grep -v '^ *+' conftest.er1 >conftest.err
23660   rm -f conftest.er1
23661   cat conftest.err >&5
23662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); } >/dev/null && {
23664          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23665          test ! -s conftest.err
23666        }; then
23667   ac_header_preproc=yes
23668 else
23669   $as_echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672   ac_header_preproc=no
23673 fi
23674
23675 rm -f conftest.err conftest.$ac_ext
23676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23677 $as_echo "$ac_header_preproc" >&6; }
23678
23679 # So?  What about this header?
23680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23681   yes:no: )
23682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23683 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23686     ac_header_preproc=yes
23687     ;;
23688   no:yes:* )
23689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23690 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23692 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23694 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23696 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23700 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23701     ( cat <<\_ASBOX
23702 ## ---------------------------------------- ##
23703 ## Report this to linux-nfs@vger.kernel.org ##
23704 ## ---------------------------------------- ##
23705 _ASBOX
23706      ) | sed "s/^/$as_me: WARNING:     /" >&2
23707     ;;
23708 esac
23709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23710 $as_echo_n "checking for $ac_header... " >&6; }
23711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23712   $as_echo_n "(cached) " >&6
23713 else
23714   eval "$as_ac_Header=\$ac_header_preproc"
23715 fi
23716 ac_res=`eval 'as_val=${'$as_ac_Header'}
23717                  $as_echo "$as_val"'`
23718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23719 $as_echo "$ac_res" >&6; }
23720
23721 fi
23722 as_val=`eval 'as_val=${'$as_ac_Header'}
23723                  $as_echo "$as_val"'`
23724    if test "x$as_val" = x""yes; then
23725   cat >>confdefs.h <<_ACEOF
23726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23727 _ACEOF
23728
23729 fi
23730
23731 done
23732
23733
23734
23735 for ac_func in fork vfork
23736 do
23737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23739 $as_echo_n "checking for $ac_func... " >&6; }
23740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23741   $as_echo_n "(cached) " >&6
23742 else
23743   cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h.  */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h.  */
23749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23751 #define $ac_func innocuous_$ac_func
23752
23753 /* System header to define __stub macros and hopefully few prototypes,
23754     which can conflict with char $ac_func (); below.
23755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23756     <limits.h> exists even on freestanding compilers.  */
23757
23758 #ifdef __STDC__
23759 # include <limits.h>
23760 #else
23761 # include <assert.h>
23762 #endif
23763
23764 #undef $ac_func
23765
23766 /* Override any GCC internal prototype to avoid an error.
23767    Use char because int might match the return type of a GCC
23768    builtin and then its argument prototype would still apply.  */
23769 #ifdef __cplusplus
23770 extern "C"
23771 #endif
23772 char $ac_func ();
23773 /* The GNU C library defines this for functions which it implements
23774     to always fail with ENOSYS.  Some functions are actually named
23775     something starting with __ and the normal name is an alias.  */
23776 #if defined __stub_$ac_func || defined __stub___$ac_func
23777 choke me
23778 #endif
23779
23780 int
23781 main ()
23782 {
23783 return $ac_func ();
23784   ;
23785   return 0;
23786 }
23787 _ACEOF
23788 rm -f conftest.$ac_objext conftest$ac_exeext
23789 if { (ac_try="$ac_link"
23790 case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23795 $as_echo "$ac_try_echo") >&5
23796   (eval "$ac_link") 2>conftest.er1
23797   ac_status=$?
23798   grep -v '^ *+' conftest.er1 >conftest.err
23799   rm -f conftest.er1
23800   cat conftest.err >&5
23801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); } && {
23803          test -z "$ac_c_werror_flag" ||
23804          test ! -s conftest.err
23805        } && test -s conftest$ac_exeext && {
23806          test "$cross_compiling" = yes ||
23807          $as_test_x conftest$ac_exeext
23808        }; then
23809   eval "$as_ac_var=yes"
23810 else
23811   $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814         eval "$as_ac_var=no"
23815 fi
23816
23817 rm -rf conftest.dSYM
23818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23819       conftest$ac_exeext conftest.$ac_ext
23820 fi
23821 ac_res=`eval 'as_val=${'$as_ac_var'}
23822                  $as_echo "$as_val"'`
23823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23824 $as_echo "$ac_res" >&6; }
23825 as_val=`eval 'as_val=${'$as_ac_var'}
23826                  $as_echo "$as_val"'`
23827    if test "x$as_val" = x""yes; then
23828   cat >>confdefs.h <<_ACEOF
23829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23830 _ACEOF
23831
23832 fi
23833 done
23834
23835 if test "x$ac_cv_func_fork" = xyes; then
23836   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
23837 $as_echo_n "checking for working fork... " >&6; }
23838 if test "${ac_cv_func_fork_works+set}" = set; then
23839   $as_echo_n "(cached) " >&6
23840 else
23841   if test "$cross_compiling" = yes; then
23842   ac_cv_func_fork_works=cross
23843 else
23844   cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h.  */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h.  */
23850 $ac_includes_default
23851 int
23852 main ()
23853 {
23854
23855           /* By Ruediger Kuhlmann. */
23856           return fork () < 0;
23857
23858   ;
23859   return 0;
23860 }
23861 _ACEOF
23862 rm -f conftest$ac_exeext
23863 if { (ac_try="$ac_link"
23864 case "(($ac_try" in
23865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23866   *) ac_try_echo=$ac_try;;
23867 esac
23868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23869 $as_echo "$ac_try_echo") >&5
23870   (eval "$ac_link") 2>&5
23871   ac_status=$?
23872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23874   { (case "(($ac_try" in
23875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876   *) ac_try_echo=$ac_try;;
23877 esac
23878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23879 $as_echo "$ac_try_echo") >&5
23880   (eval "$ac_try") 2>&5
23881   ac_status=$?
23882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); }; }; then
23884   ac_cv_func_fork_works=yes
23885 else
23886   $as_echo "$as_me: program exited with status $ac_status" >&5
23887 $as_echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23889
23890 ( exit $ac_status )
23891 ac_cv_func_fork_works=no
23892 fi
23893 rm -rf conftest.dSYM
23894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23895 fi
23896
23897
23898 fi
23899 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23900 $as_echo "$ac_cv_func_fork_works" >&6; }
23901
23902 else
23903   ac_cv_func_fork_works=$ac_cv_func_fork
23904 fi
23905 if test "x$ac_cv_func_fork_works" = xcross; then
23906   case $host in
23907     *-*-amigaos* | *-*-msdosdjgpp*)
23908       # Override, as these systems have only a dummy fork() stub
23909       ac_cv_func_fork_works=no
23910       ;;
23911     *)
23912       ac_cv_func_fork_works=yes
23913       ;;
23914   esac
23915   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23916 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23917 fi
23918 ac_cv_func_vfork_works=$ac_cv_func_vfork
23919 if test "x$ac_cv_func_vfork" = xyes; then
23920   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
23921 $as_echo_n "checking for working vfork... " >&6; }
23922 if test "${ac_cv_func_vfork_works+set}" = set; then
23923   $as_echo_n "(cached) " >&6
23924 else
23925   if test "$cross_compiling" = yes; then
23926   ac_cv_func_vfork_works=cross
23927 else
23928   cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h.  */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h.  */
23934 /* Thanks to Paul Eggert for this test.  */
23935 $ac_includes_default
23936 #include <sys/wait.h>
23937 #ifdef HAVE_VFORK_H
23938 # include <vfork.h>
23939 #endif
23940 /* On some sparc systems, changes by the child to local and incoming
23941    argument registers are propagated back to the parent.  The compiler
23942    is told about this with #include <vfork.h>, but some compilers
23943    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23944    static variable whose address is put into a register that is
23945    clobbered by the vfork.  */
23946 static void
23947 #ifdef __cplusplus
23948 sparc_address_test (int arg)
23949 # else
23950 sparc_address_test (arg) int arg;
23951 #endif
23952 {
23953   static pid_t child;
23954   if (!child) {
23955     child = vfork ();
23956     if (child < 0) {
23957       perror ("vfork");
23958       _exit(2);
23959     }
23960     if (!child) {
23961       arg = getpid();
23962       write(-1, "", 0);
23963       _exit (arg);
23964     }
23965   }
23966 }
23967
23968 int
23969 main ()
23970 {
23971   pid_t parent = getpid ();
23972   pid_t child;
23973
23974   sparc_address_test (0);
23975
23976   child = vfork ();
23977
23978   if (child == 0) {
23979     /* Here is another test for sparc vfork register problems.  This
23980        test uses lots of local variables, at least as many local
23981        variables as main has allocated so far including compiler
23982        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23983        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23984        reuse the register of parent for one of the local variables,
23985        since it will think that parent can't possibly be used any more
23986        in this routine.  Assigning to the local variable will thus
23987        munge parent in the parent process.  */
23988     pid_t
23989       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23990       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23991     /* Convince the compiler that p..p7 are live; otherwise, it might
23992        use the same hardware register for all 8 local variables.  */
23993     if (p != p1 || p != p2 || p != p3 || p != p4
23994         || p != p5 || p != p6 || p != p7)
23995       _exit(1);
23996
23997     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23998        from child file descriptors.  If the child closes a descriptor
23999        before it execs or exits, this munges the parent's descriptor
24000        as well.  Test for this by closing stdout in the child.  */
24001     _exit(close(fileno(stdout)) != 0);
24002   } else {
24003     int status;
24004     struct stat st;
24005
24006     while (wait(&status) != child)
24007       ;
24008     return (
24009          /* Was there some problem with vforking?  */
24010          child < 0
24011
24012          /* Did the child fail?  (This shouldn't happen.)  */
24013          || status
24014
24015          /* Did the vfork/compiler bug occur?  */
24016          || parent != getpid()
24017
24018          /* Did the file descriptor bug occur?  */
24019          || fstat(fileno(stdout), &st) != 0
24020          );
24021   }
24022 }
24023 _ACEOF
24024 rm -f conftest$ac_exeext
24025 if { (ac_try="$ac_link"
24026 case "(($ac_try" in
24027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028   *) ac_try_echo=$ac_try;;
24029 esac
24030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24031 $as_echo "$ac_try_echo") >&5
24032   (eval "$ac_link") 2>&5
24033   ac_status=$?
24034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24036   { (case "(($ac_try" in
24037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038   *) ac_try_echo=$ac_try;;
24039 esac
24040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24041 $as_echo "$ac_try_echo") >&5
24042   (eval "$ac_try") 2>&5
24043   ac_status=$?
24044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045   (exit $ac_status); }; }; then
24046   ac_cv_func_vfork_works=yes
24047 else
24048   $as_echo "$as_me: program exited with status $ac_status" >&5
24049 $as_echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24051
24052 ( exit $ac_status )
24053 ac_cv_func_vfork_works=no
24054 fi
24055 rm -rf conftest.dSYM
24056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24057 fi
24058
24059
24060 fi
24061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24062 $as_echo "$ac_cv_func_vfork_works" >&6; }
24063
24064 fi;
24065 if test "x$ac_cv_func_fork_works" = xcross; then
24066   ac_cv_func_vfork_works=$ac_cv_func_vfork
24067   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24068 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24069 fi
24070
24071 if test "x$ac_cv_func_vfork_works" = xyes; then
24072
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_WORKING_VFORK 1
24075 _ACEOF
24076
24077 else
24078
24079 cat >>confdefs.h <<\_ACEOF
24080 #define vfork fork
24081 _ACEOF
24082
24083 fi
24084 if test "x$ac_cv_func_fork_works" = xyes; then
24085
24086 cat >>confdefs.h <<\_ACEOF
24087 #define HAVE_WORKING_FORK 1
24088 _ACEOF
24089
24090 fi
24091
24092 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24093 $as_echo_n "checking type of array argument to getgroups... " >&6; }
24094 if test "${ac_cv_type_getgroups+set}" = set; then
24095   $as_echo_n "(cached) " >&6
24096 else
24097   if test "$cross_compiling" = yes; then
24098   ac_cv_type_getgroups=cross
24099 else
24100   cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h.  */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h.  */
24106 /* Thanks to Mike Rendell for this test.  */
24107 $ac_includes_default
24108 #define NGID 256
24109 #undef MAX
24110 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24111
24112 int
24113 main ()
24114 {
24115   gid_t gidset[NGID];
24116   int i, n;
24117   union { gid_t gval; long int lval; }  val;
24118
24119   val.lval = -1;
24120   for (i = 0; i < NGID; i++)
24121     gidset[i] = val.gval;
24122   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24123                  gidset);
24124   /* Exit non-zero if getgroups seems to require an array of ints.  This
24125      happens when gid_t is short int but getgroups modifies an array
24126      of ints.  */
24127   return n > 0 && gidset[n] != val.gval;
24128 }
24129 _ACEOF
24130 rm -f conftest$ac_exeext
24131 if { (ac_try="$ac_link"
24132 case "(($ac_try" in
24133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134   *) ac_try_echo=$ac_try;;
24135 esac
24136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24137 $as_echo "$ac_try_echo") >&5
24138   (eval "$ac_link") 2>&5
24139   ac_status=$?
24140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24142   { (case "(($ac_try" in
24143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144   *) ac_try_echo=$ac_try;;
24145 esac
24146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24147 $as_echo "$ac_try_echo") >&5
24148   (eval "$ac_try") 2>&5
24149   ac_status=$?
24150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; }; then
24152   ac_cv_type_getgroups=gid_t
24153 else
24154   $as_echo "$as_me: program exited with status $ac_status" >&5
24155 $as_echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158 ( exit $ac_status )
24159 ac_cv_type_getgroups=int
24160 fi
24161 rm -rf conftest.dSYM
24162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24163 fi
24164
24165
24166 if test $ac_cv_type_getgroups = cross; then
24167         cat >conftest.$ac_ext <<_ACEOF
24168 /* confdefs.h.  */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h.  */
24173 #include <unistd.h>
24174
24175 _ACEOF
24176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24177   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24178   ac_cv_type_getgroups=gid_t
24179 else
24180   ac_cv_type_getgroups=int
24181 fi
24182 rm -f conftest*
24183
24184 fi
24185 fi
24186 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24187 $as_echo "$ac_cv_type_getgroups" >&6; }
24188
24189 cat >>confdefs.h <<_ACEOF
24190 #define GETGROUPS_T $ac_cv_type_getgroups
24191 _ACEOF
24192
24193
24194 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
24195 $as_echo_n "checking for getgroups... " >&6; }
24196 if test "${ac_cv_func_getgroups+set}" = set; then
24197   $as_echo_n "(cached) " >&6
24198 else
24199   cat >conftest.$ac_ext <<_ACEOF
24200 /* confdefs.h.  */
24201 _ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h.  */
24205 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24207 #define getgroups innocuous_getgroups
24208
24209 /* System header to define __stub macros and hopefully few prototypes,
24210     which can conflict with char getgroups (); below.
24211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24212     <limits.h> exists even on freestanding compilers.  */
24213
24214 #ifdef __STDC__
24215 # include <limits.h>
24216 #else
24217 # include <assert.h>
24218 #endif
24219
24220 #undef getgroups
24221
24222 /* Override any GCC internal prototype to avoid an error.
24223    Use char because int might match the return type of a GCC
24224    builtin and then its argument prototype would still apply.  */
24225 #ifdef __cplusplus
24226 extern "C"
24227 #endif
24228 char getgroups ();
24229 /* The GNU C library defines this for functions which it implements
24230     to always fail with ENOSYS.  Some functions are actually named
24231     something starting with __ and the normal name is an alias.  */
24232 #if defined __stub_getgroups || defined __stub___getgroups
24233 choke me
24234 #endif
24235
24236 int
24237 main ()
24238 {
24239 return getgroups ();
24240   ;
24241   return 0;
24242 }
24243 _ACEOF
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (ac_try="$ac_link"
24246 case "(($ac_try" in
24247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248   *) ac_try_echo=$ac_try;;
24249 esac
24250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24251 $as_echo "$ac_try_echo") >&5
24252   (eval "$ac_link") 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } && {
24259          test -z "$ac_c_werror_flag" ||
24260          test ! -s conftest.err
24261        } && test -s conftest$ac_exeext && {
24262          test "$cross_compiling" = yes ||
24263          $as_test_x conftest$ac_exeext
24264        }; then
24265   ac_cv_func_getgroups=yes
24266 else
24267   $as_echo "$as_me: failed program was:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24269
24270         ac_cv_func_getgroups=no
24271 fi
24272
24273 rm -rf conftest.dSYM
24274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24275       conftest$ac_exeext conftest.$ac_ext
24276 fi
24277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24278 $as_echo "$ac_cv_func_getgroups" >&6; }
24279
24280
24281 # If we don't yet have getgroups, see if it's in -lbsd.
24282 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24283 ac_save_LIBS=$LIBS
24284 if test $ac_cv_func_getgroups = no; then
24285   { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24286 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24287 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24288   $as_echo_n "(cached) " >&6
24289 else
24290   ac_check_lib_save_LIBS=$LIBS
24291 LIBS="-lbsd  $LIBS"
24292 cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h.  */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h.  */
24298
24299 /* Override any GCC internal prototype to avoid an error.
24300    Use char because int might match the return type of a GCC
24301    builtin and then its argument prototype would still apply.  */
24302 #ifdef __cplusplus
24303 extern "C"
24304 #endif
24305 char getgroups ();
24306 int
24307 main ()
24308 {
24309 return getgroups ();
24310   ;
24311   return 0;
24312 }
24313 _ACEOF
24314 rm -f conftest.$ac_objext conftest$ac_exeext
24315 if { (ac_try="$ac_link"
24316 case "(($ac_try" in
24317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318   *) ac_try_echo=$ac_try;;
24319 esac
24320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24321 $as_echo "$ac_try_echo") >&5
24322   (eval "$ac_link") 2>conftest.er1
24323   ac_status=$?
24324   grep -v '^ *+' conftest.er1 >conftest.err
24325   rm -f conftest.er1
24326   cat conftest.err >&5
24327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328   (exit $ac_status); } && {
24329          test -z "$ac_c_werror_flag" ||
24330          test ! -s conftest.err
24331        } && test -s conftest$ac_exeext && {
24332          test "$cross_compiling" = yes ||
24333          $as_test_x conftest$ac_exeext
24334        }; then
24335   ac_cv_lib_bsd_getgroups=yes
24336 else
24337   $as_echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24339
24340         ac_cv_lib_bsd_getgroups=no
24341 fi
24342
24343 rm -rf conftest.dSYM
24344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24345       conftest$ac_exeext conftest.$ac_ext
24346 LIBS=$ac_check_lib_save_LIBS
24347 fi
24348 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24349 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24350 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then
24351   GETGROUPS_LIB=-lbsd
24352 fi
24353
24354 fi
24355
24356 # Run the program to test the functionality of the system-supplied
24357 # getgroups function only if there is such a function.
24358 if test $ac_cv_func_getgroups = yes; then
24359   { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
24360 $as_echo_n "checking for working getgroups... " >&6; }
24361 if test "${ac_cv_func_getgroups_works+set}" = set; then
24362   $as_echo_n "(cached) " >&6
24363 else
24364   if test "$cross_compiling" = yes; then
24365   ac_cv_func_getgroups_works=no
24366 else
24367   cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h.  */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h.  */
24373 $ac_includes_default
24374 int
24375 main ()
24376 {
24377 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
24378        return getgroups (0, 0) == -1;
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24390 $as_echo "$ac_try_echo") >&5
24391   (eval "$ac_link") 2>&5
24392   ac_status=$?
24393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24395   { (case "(($ac_try" in
24396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24397   *) ac_try_echo=$ac_try;;
24398 esac
24399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24400 $as_echo "$ac_try_echo") >&5
24401   (eval "$ac_try") 2>&5
24402   ac_status=$?
24403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); }; }; then
24405   ac_cv_func_getgroups_works=yes
24406 else
24407   $as_echo "$as_me: program exited with status $ac_status" >&5
24408 $as_echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411 ( exit $ac_status )
24412 ac_cv_func_getgroups_works=no
24413 fi
24414 rm -rf conftest.dSYM
24415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24416 fi
24417
24418
24419
24420 fi
24421 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24422 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24423   if test $ac_cv_func_getgroups_works = yes; then
24424
24425 cat >>confdefs.h <<\_ACEOF
24426 #define HAVE_GETGROUPS 1
24427 _ACEOF
24428
24429   fi
24430 fi
24431 LIBS=$ac_save_LIBS
24432
24433 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
24434 # -lseq on Dynix/PTX, -lgen on Unixware.
24435 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
24436 $as_echo_n "checking for library containing getmntent... " >&6; }
24437 if test "${ac_cv_search_getmntent+set}" = set; then
24438   $as_echo_n "(cached) " >&6
24439 else
24440   ac_func_search_save_LIBS=$LIBS
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h.  */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h.  */
24447
24448 /* Override any GCC internal prototype to avoid an error.
24449    Use char because int might match the return type of a GCC
24450    builtin and then its argument prototype would still apply.  */
24451 #ifdef __cplusplus
24452 extern "C"
24453 #endif
24454 char getmntent ();
24455 int
24456 main ()
24457 {
24458 return getmntent ();
24459   ;
24460   return 0;
24461 }
24462 _ACEOF
24463 for ac_lib in '' sun seq gen; do
24464   if test -z "$ac_lib"; then
24465     ac_res="none required"
24466   else
24467     ac_res=-l$ac_lib
24468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24469   fi
24470   rm -f conftest.$ac_objext conftest$ac_exeext
24471 if { (ac_try="$ac_link"
24472 case "(($ac_try" in
24473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474   *) ac_try_echo=$ac_try;;
24475 esac
24476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24477 $as_echo "$ac_try_echo") >&5
24478   (eval "$ac_link") 2>conftest.er1
24479   ac_status=$?
24480   grep -v '^ *+' conftest.er1 >conftest.err
24481   rm -f conftest.er1
24482   cat conftest.err >&5
24483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } && {
24485          test -z "$ac_c_werror_flag" ||
24486          test ! -s conftest.err
24487        } && test -s conftest$ac_exeext && {
24488          test "$cross_compiling" = yes ||
24489          $as_test_x conftest$ac_exeext
24490        }; then
24491   ac_cv_search_getmntent=$ac_res
24492 else
24493   $as_echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24495
24496
24497 fi
24498
24499 rm -rf conftest.dSYM
24500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24501       conftest$ac_exeext
24502   if test "${ac_cv_search_getmntent+set}" = set; then
24503   break
24504 fi
24505 done
24506 if test "${ac_cv_search_getmntent+set}" = set; then
24507   :
24508 else
24509   ac_cv_search_getmntent=no
24510 fi
24511 rm conftest.$ac_ext
24512 LIBS=$ac_func_search_save_LIBS
24513 fi
24514 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
24515 $as_echo "$ac_cv_search_getmntent" >&6; }
24516 ac_res=$ac_cv_search_getmntent
24517 if test "$ac_res" != no; then
24518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24519   ac_cv_func_getmntent=yes
24520
24521 cat >>confdefs.h <<\_ACEOF
24522 #define HAVE_GETMNTENT 1
24523 _ACEOF
24524
24525 else
24526   ac_cv_func_getmntent=no
24527 fi
24528
24529
24530 if test $ac_cv_c_compiler_gnu = yes; then
24531     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24532 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
24533 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24534   $as_echo_n "(cached) " >&6
24535 else
24536     ac_pattern="Autoconf.*'x'"
24537   cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543 #include <sgtty.h>
24544 Autoconf TIOCGETP
24545 _ACEOF
24546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24547   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24548   ac_cv_prog_gcc_traditional=yes
24549 else
24550   ac_cv_prog_gcc_traditional=no
24551 fi
24552 rm -f conftest*
24553
24554
24555   if test $ac_cv_prog_gcc_traditional = no; then
24556     cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562 #include <termio.h>
24563 Autoconf TCGETA
24564 _ACEOF
24565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24566   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24567   ac_cv_prog_gcc_traditional=yes
24568 fi
24569 rm -f conftest*
24570
24571   fi
24572 fi
24573 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24574 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
24575   if test $ac_cv_prog_gcc_traditional = yes; then
24576     CC="$CC -traditional"
24577   fi
24578 fi
24579
24580 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24581 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24582 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24583   $as_echo_n "(cached) " >&6
24584 else
24585   rm -f conftest.sym conftest.file
24586 echo >conftest.file
24587 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24588   if test "$cross_compiling" = yes; then
24589   ac_cv_func_lstat_dereferences_slashed_symlink=no
24590 else
24591   cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h.  */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h.  */
24597 $ac_includes_default
24598 int
24599 main ()
24600 {
24601 struct stat sbuf;
24602      /* Linux will dereference the symlink and fail.
24603         That is better in the sense that it means we will not
24604         have to compile and use the lstat wrapper.  */
24605      return lstat ("conftest.sym/", &sbuf) == 0;
24606   ;
24607   return 0;
24608 }
24609 _ACEOF
24610 rm -f conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614   *) ac_try_echo=$ac_try;;
24615 esac
24616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24617 $as_echo "$ac_try_echo") >&5
24618   (eval "$ac_link") 2>&5
24619   ac_status=$?
24620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24622   { (case "(($ac_try" in
24623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24624   *) ac_try_echo=$ac_try;;
24625 esac
24626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24627 $as_echo "$ac_try_echo") >&5
24628   (eval "$ac_try") 2>&5
24629   ac_status=$?
24630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); }; }; then
24632   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24633 else
24634   $as_echo "$as_me: program exited with status $ac_status" >&5
24635 $as_echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24637
24638 ( exit $ac_status )
24639 ac_cv_func_lstat_dereferences_slashed_symlink=no
24640 fi
24641 rm -rf conftest.dSYM
24642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24643 fi
24644
24645
24646 else
24647   # If the `ln -s' command failed, then we probably don't even
24648   # have an lstat function.
24649   ac_cv_func_lstat_dereferences_slashed_symlink=no
24650 fi
24651 rm -f conftest.sym conftest.file
24652
24653 fi
24654 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24655 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24656
24657 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24658
24659 cat >>confdefs.h <<_ACEOF
24660 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24661 _ACEOF
24662
24663
24664 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24665   case " $LIBOBJS " in
24666   *" lstat.$ac_objext "* ) ;;
24667   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24668  ;;
24669 esac
24670
24671 fi
24672
24673 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24674 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
24675 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24676   $as_echo_n "(cached) " >&6
24677 else
24678   if test "$cross_compiling" = yes; then
24679   ac_cv_func_lstat_empty_string_bug=yes
24680 else
24681   cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h.  */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h.  */
24687 $ac_includes_default
24688 int
24689 main ()
24690 {
24691 struct stat sbuf;
24692   return lstat ("", &sbuf) == 0;
24693   ;
24694   return 0;
24695 }
24696 _ACEOF
24697 rm -f conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701   *) ac_try_echo=$ac_try;;
24702 esac
24703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24704 $as_echo "$ac_try_echo") >&5
24705   (eval "$ac_link") 2>&5
24706   ac_status=$?
24707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24709   { (case "(($ac_try" in
24710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711   *) ac_try_echo=$ac_try;;
24712 esac
24713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24714 $as_echo "$ac_try_echo") >&5
24715   (eval "$ac_try") 2>&5
24716   ac_status=$?
24717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718   (exit $ac_status); }; }; then
24719   ac_cv_func_lstat_empty_string_bug=no
24720 else
24721   $as_echo "$as_me: program exited with status $ac_status" >&5
24722 $as_echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24724
24725 ( exit $ac_status )
24726 ac_cv_func_lstat_empty_string_bug=yes
24727 fi
24728 rm -rf conftest.dSYM
24729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24730 fi
24731
24732
24733 fi
24734 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24735 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
24736 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24737   case " $LIBOBJS " in
24738   *" lstat.$ac_objext "* ) ;;
24739   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24740  ;;
24741 esac
24742
24743
24744 cat >>confdefs.h <<_ACEOF
24745 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24746 _ACEOF
24747
24748 fi
24749
24750 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24751 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24752 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24753   $as_echo_n "(cached) " >&6
24754 else
24755   rm -f conftest.sym conftest.file
24756 echo >conftest.file
24757 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24758   if test "$cross_compiling" = yes; then
24759   ac_cv_func_lstat_dereferences_slashed_symlink=no
24760 else
24761   cat >conftest.$ac_ext <<_ACEOF
24762 /* confdefs.h.  */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h.  */
24767 $ac_includes_default
24768 int
24769 main ()
24770 {
24771 struct stat sbuf;
24772      /* Linux will dereference the symlink and fail.
24773         That is better in the sense that it means we will not
24774         have to compile and use the lstat wrapper.  */
24775      return lstat ("conftest.sym/", &sbuf) == 0;
24776   ;
24777   return 0;
24778 }
24779 _ACEOF
24780 rm -f conftest$ac_exeext
24781 if { (ac_try="$ac_link"
24782 case "(($ac_try" in
24783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784   *) ac_try_echo=$ac_try;;
24785 esac
24786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24787 $as_echo "$ac_try_echo") >&5
24788   (eval "$ac_link") 2>&5
24789   ac_status=$?
24790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24792   { (case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24797 $as_echo "$ac_try_echo") >&5
24798   (eval "$ac_try") 2>&5
24799   ac_status=$?
24800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); }; }; then
24802   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24803 else
24804   $as_echo "$as_me: program exited with status $ac_status" >&5
24805 $as_echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24807
24808 ( exit $ac_status )
24809 ac_cv_func_lstat_dereferences_slashed_symlink=no
24810 fi
24811 rm -rf conftest.dSYM
24812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24813 fi
24814
24815
24816 else
24817   # If the `ln -s' command failed, then we probably don't even
24818   # have an lstat function.
24819   ac_cv_func_lstat_dereferences_slashed_symlink=no
24820 fi
24821 rm -f conftest.sym conftest.file
24822
24823 fi
24824 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24825 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24826
24827 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24828
24829 cat >>confdefs.h <<_ACEOF
24830 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24831 _ACEOF
24832
24833
24834 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24835   case " $LIBOBJS " in
24836   *" lstat.$ac_objext "* ) ;;
24837   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24838  ;;
24839 esac
24840
24841 fi
24842
24843 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24844 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24845 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24846   $as_echo_n "(cached) " >&6
24847 else
24848   cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h.  */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h.  */
24854 #include <sys/types.h>
24855 int
24856 main ()
24857 {
24858 return makedev(0, 0);
24859   ;
24860   return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (ac_try="$ac_link"
24865 case "(($ac_try" in
24866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867   *) ac_try_echo=$ac_try;;
24868 esac
24869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24870 $as_echo "$ac_try_echo") >&5
24871   (eval "$ac_link") 2>conftest.er1
24872   ac_status=$?
24873   grep -v '^ *+' conftest.er1 >conftest.err
24874   rm -f conftest.er1
24875   cat conftest.err >&5
24876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); } && {
24878          test -z "$ac_c_werror_flag" ||
24879          test ! -s conftest.err
24880        } && test -s conftest$ac_exeext && {
24881          test "$cross_compiling" = yes ||
24882          $as_test_x conftest$ac_exeext
24883        }; then
24884   ac_cv_header_sys_types_h_makedev=yes
24885 else
24886   $as_echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24888
24889         ac_cv_header_sys_types_h_makedev=no
24890 fi
24891
24892 rm -rf conftest.dSYM
24893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24894       conftest$ac_exeext conftest.$ac_ext
24895
24896 fi
24897 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24898 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24899
24900 if test $ac_cv_header_sys_types_h_makedev = no; then
24901 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24902   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24903 $as_echo_n "checking for sys/mkdev.h... " >&6; }
24904 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24905   $as_echo_n "(cached) " >&6
24906 fi
24907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24908 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
24909 else
24910   # Is the header compilable?
24911 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24912 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
24913 cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919 $ac_includes_default
24920 #include <sys/mkdev.h>
24921 _ACEOF
24922 rm -f conftest.$ac_objext
24923 if { (ac_try="$ac_compile"
24924 case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930   (eval "$ac_compile") 2>conftest.er1
24931   ac_status=$?
24932   grep -v '^ *+' conftest.er1 >conftest.err
24933   rm -f conftest.er1
24934   cat conftest.err >&5
24935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } && {
24937          test -z "$ac_c_werror_flag" ||
24938          test ! -s conftest.err
24939        } && test -s conftest.$ac_objext; then
24940   ac_header_compiler=yes
24941 else
24942   $as_echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945         ac_header_compiler=no
24946 fi
24947
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24950 $as_echo "$ac_header_compiler" >&6; }
24951
24952 # Is the header present?
24953 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24954 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
24955 cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h.  */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h.  */
24961 #include <sys/mkdev.h>
24962 _ACEOF
24963 if { (ac_try="$ac_cpp conftest.$ac_ext"
24964 case "(($ac_try" in
24965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966   *) ac_try_echo=$ac_try;;
24967 esac
24968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24969 $as_echo "$ac_try_echo") >&5
24970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } >/dev/null && {
24977          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24978          test ! -s conftest.err
24979        }; then
24980   ac_header_preproc=yes
24981 else
24982   $as_echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985   ac_header_preproc=no
24986 fi
24987
24988 rm -f conftest.err conftest.$ac_ext
24989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24990 $as_echo "$ac_header_preproc" >&6; }
24991
24992 # So?  What about this header?
24993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24994   yes:no: )
24995     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24996 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24997     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24998 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24999     ac_header_preproc=yes
25000     ;;
25001   no:yes:* )
25002     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25003 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25004     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25005 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25006     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25007 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25008     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25009 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25010     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25011 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25012     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25013 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25014     ( cat <<\_ASBOX
25015 ## ---------------------------------------- ##
25016 ## Report this to linux-nfs@vger.kernel.org ##
25017 ## ---------------------------------------- ##
25018 _ASBOX
25019      ) | sed "s/^/$as_me: WARNING:     /" >&2
25020     ;;
25021 esac
25022 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25023 $as_echo_n "checking for sys/mkdev.h... " >&6; }
25024 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25025   $as_echo_n "(cached) " >&6
25026 else
25027   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25028 fi
25029 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25030 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
25031
25032 fi
25033 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
25034
25035 cat >>confdefs.h <<\_ACEOF
25036 #define MAJOR_IN_MKDEV 1
25037 _ACEOF
25038
25039 fi
25040
25041
25042
25043   if test $ac_cv_header_sys_mkdev_h = no; then
25044     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25045   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25046 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
25047 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25048   $as_echo_n "(cached) " >&6
25049 fi
25050 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25051 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
25052 else
25053   # Is the header compilable?
25054 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25055 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
25056 cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062 $ac_includes_default
25063 #include <sys/sysmacros.h>
25064 _ACEOF
25065 rm -f conftest.$ac_objext
25066 if { (ac_try="$ac_compile"
25067 case "(($ac_try" in
25068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069   *) ac_try_echo=$ac_try;;
25070 esac
25071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25072 $as_echo "$ac_try_echo") >&5
25073   (eval "$ac_compile") 2>conftest.er1
25074   ac_status=$?
25075   grep -v '^ *+' conftest.er1 >conftest.err
25076   rm -f conftest.er1
25077   cat conftest.err >&5
25078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); } && {
25080          test -z "$ac_c_werror_flag" ||
25081          test ! -s conftest.err
25082        } && test -s conftest.$ac_objext; then
25083   ac_header_compiler=yes
25084 else
25085   $as_echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25087
25088         ac_header_compiler=no
25089 fi
25090
25091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25093 $as_echo "$ac_header_compiler" >&6; }
25094
25095 # Is the header present?
25096 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25097 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
25098 cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h.  */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h.  */
25104 #include <sys/sysmacros.h>
25105 _ACEOF
25106 if { (ac_try="$ac_cpp conftest.$ac_ext"
25107 case "(($ac_try" in
25108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109   *) ac_try_echo=$ac_try;;
25110 esac
25111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25112 $as_echo "$ac_try_echo") >&5
25113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25114   ac_status=$?
25115   grep -v '^ *+' conftest.er1 >conftest.err
25116   rm -f conftest.er1
25117   cat conftest.err >&5
25118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); } >/dev/null && {
25120          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25121          test ! -s conftest.err
25122        }; then
25123   ac_header_preproc=yes
25124 else
25125   $as_echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128   ac_header_preproc=no
25129 fi
25130
25131 rm -f conftest.err conftest.$ac_ext
25132 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25133 $as_echo "$ac_header_preproc" >&6; }
25134
25135 # So?  What about this header?
25136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25137   yes:no: )
25138     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25139 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25140     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25141 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25142     ac_header_preproc=yes
25143     ;;
25144   no:yes:* )
25145     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25146 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25147     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25148 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25149     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25150 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25151     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25152 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25153     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25154 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25155     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25156 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25157     ( cat <<\_ASBOX
25158 ## ---------------------------------------- ##
25159 ## Report this to linux-nfs@vger.kernel.org ##
25160 ## ---------------------------------------- ##
25161 _ASBOX
25162      ) | sed "s/^/$as_me: WARNING:     /" >&2
25163     ;;
25164 esac
25165 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25166 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
25167 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25168   $as_echo_n "(cached) " >&6
25169 else
25170   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25171 fi
25172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25173 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
25174
25175 fi
25176 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
25177
25178 cat >>confdefs.h <<\_ACEOF
25179 #define MAJOR_IN_SYSMACROS 1
25180 _ACEOF
25181
25182 fi
25183
25184
25185   fi
25186 fi
25187
25188 #AC_FUNC_MALLOC
25189 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
25190 $as_echo_n "checking for working memcmp... " >&6; }
25191 if test "${ac_cv_func_memcmp_working+set}" = set; then
25192   $as_echo_n "(cached) " >&6
25193 else
25194   if test "$cross_compiling" = yes; then
25195   ac_cv_func_memcmp_working=no
25196 else
25197   cat >conftest.$ac_ext <<_ACEOF
25198 /* confdefs.h.  */
25199 _ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h.  */
25203 $ac_includes_default
25204 int
25205 main ()
25206 {
25207
25208   /* Some versions of memcmp are not 8-bit clean.  */
25209   char c0 = '\100', c1 = '\200', c2 = '\201';
25210   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25211     return 1;
25212
25213   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25214      or more and with at least one buffer not starting on a 4-byte boundary.
25215      William Lewis provided this test program.   */
25216   {
25217     char foo[21];
25218     char bar[21];
25219     int i;
25220     for (i = 0; i < 4; i++)
25221       {
25222         char *a = foo + i;
25223         char *b = bar + i;
25224         strcpy (a, "--------01111111");
25225         strcpy (b, "--------10000000");
25226         if (memcmp (a, b, 16) >= 0)
25227           return 1;
25228       }
25229     return 0;
25230   }
25231
25232   ;
25233   return 0;
25234 }
25235 _ACEOF
25236 rm -f conftest$ac_exeext
25237 if { (ac_try="$ac_link"
25238 case "(($ac_try" in
25239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240   *) ac_try_echo=$ac_try;;
25241 esac
25242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25243 $as_echo "$ac_try_echo") >&5
25244   (eval "$ac_link") 2>&5
25245   ac_status=$?
25246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25248   { (case "(($ac_try" in
25249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250   *) ac_try_echo=$ac_try;;
25251 esac
25252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254   (eval "$ac_try") 2>&5
25255   ac_status=$?
25256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); }; }; then
25258   ac_cv_func_memcmp_working=yes
25259 else
25260   $as_echo "$as_me: program exited with status $ac_status" >&5
25261 $as_echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25263
25264 ( exit $ac_status )
25265 ac_cv_func_memcmp_working=no
25266 fi
25267 rm -rf conftest.dSYM
25268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25269 fi
25270
25271
25272 fi
25273 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25274 $as_echo "$ac_cv_func_memcmp_working" >&6; }
25275 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25276   *" memcmp.$ac_objext "* ) ;;
25277   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25278  ;;
25279 esac
25280
25281
25282 #AC_FUNC_REALLOC
25283
25284
25285 for ac_header in sys/select.h sys/socket.h
25286 do
25287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25289   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25290 $as_echo_n "checking for $ac_header... " >&6; }
25291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25292   $as_echo_n "(cached) " >&6
25293 fi
25294 ac_res=`eval 'as_val=${'$as_ac_Header'}
25295                  $as_echo "$as_val"'`
25296                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25297 $as_echo "$ac_res" >&6; }
25298 else
25299   # Is the header compilable?
25300 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25301 $as_echo_n "checking $ac_header usability... " >&6; }
25302 cat >conftest.$ac_ext <<_ACEOF
25303 /* confdefs.h.  */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h.  */
25308 $ac_includes_default
25309 #include <$ac_header>
25310 _ACEOF
25311 rm -f conftest.$ac_objext
25312 if { (ac_try="$ac_compile"
25313 case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25318 $as_echo "$ac_try_echo") >&5
25319   (eval "$ac_compile") 2>conftest.er1
25320   ac_status=$?
25321   grep -v '^ *+' conftest.er1 >conftest.err
25322   rm -f conftest.er1
25323   cat conftest.err >&5
25324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); } && {
25326          test -z "$ac_c_werror_flag" ||
25327          test ! -s conftest.err
25328        } && test -s conftest.$ac_objext; then
25329   ac_header_compiler=yes
25330 else
25331   $as_echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25333
25334         ac_header_compiler=no
25335 fi
25336
25337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25339 $as_echo "$ac_header_compiler" >&6; }
25340
25341 # Is the header present?
25342 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25343 $as_echo_n "checking $ac_header presence... " >&6; }
25344 cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h.  */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h.  */
25350 #include <$ac_header>
25351 _ACEOF
25352 if { (ac_try="$ac_cpp conftest.$ac_ext"
25353 case "(($ac_try" in
25354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355   *) ac_try_echo=$ac_try;;
25356 esac
25357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25358 $as_echo "$ac_try_echo") >&5
25359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } >/dev/null && {
25366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25367          test ! -s conftest.err
25368        }; then
25369   ac_header_preproc=yes
25370 else
25371   $as_echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25373
25374   ac_header_preproc=no
25375 fi
25376
25377 rm -f conftest.err conftest.$ac_ext
25378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25379 $as_echo "$ac_header_preproc" >&6; }
25380
25381 # So?  What about this header?
25382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25383   yes:no: )
25384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25388     ac_header_preproc=yes
25389     ;;
25390   no:yes:* )
25391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25392 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25394 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25395     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25396 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25397     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25398 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25402 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25403     ( cat <<\_ASBOX
25404 ## ---------------------------------------- ##
25405 ## Report this to linux-nfs@vger.kernel.org ##
25406 ## ---------------------------------------- ##
25407 _ASBOX
25408      ) | sed "s/^/$as_me: WARNING:     /" >&2
25409     ;;
25410 esac
25411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25412 $as_echo_n "checking for $ac_header... " >&6; }
25413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25414   $as_echo_n "(cached) " >&6
25415 else
25416   eval "$as_ac_Header=\$ac_header_preproc"
25417 fi
25418 ac_res=`eval 'as_val=${'$as_ac_Header'}
25419                  $as_echo "$as_val"'`
25420                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25421 $as_echo "$ac_res" >&6; }
25422
25423 fi
25424 as_val=`eval 'as_val=${'$as_ac_Header'}
25425                  $as_echo "$as_val"'`
25426    if test "x$as_val" = x""yes; then
25427   cat >>confdefs.h <<_ACEOF
25428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25429 _ACEOF
25430
25431 fi
25432
25433 done
25434
25435 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
25436 $as_echo_n "checking types of arguments for select... " >&6; }
25437 if test "${ac_cv_func_select_args+set}" = set; then
25438   $as_echo_n "(cached) " >&6
25439 else
25440   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25441  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25442   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25443    cat >conftest.$ac_ext <<_ACEOF
25444 /* confdefs.h.  */
25445 _ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h.  */
25449 $ac_includes_default
25450 #ifdef HAVE_SYS_SELECT_H
25451 # include <sys/select.h>
25452 #endif
25453 #ifdef HAVE_SYS_SOCKET_H
25454 # include <sys/socket.h>
25455 #endif
25456
25457 int
25458 main ()
25459 {
25460 extern int select ($ac_arg1,
25461                                             $ac_arg234, $ac_arg234, $ac_arg234,
25462                                             $ac_arg5);
25463   ;
25464   return 0;
25465 }
25466 _ACEOF
25467 rm -f conftest.$ac_objext
25468 if { (ac_try="$ac_compile"
25469 case "(($ac_try" in
25470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471   *) ac_try_echo=$ac_try;;
25472 esac
25473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25474 $as_echo "$ac_try_echo") >&5
25475   (eval "$ac_compile") 2>conftest.er1
25476   ac_status=$?
25477   grep -v '^ *+' conftest.er1 >conftest.err
25478   rm -f conftest.er1
25479   cat conftest.err >&5
25480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481   (exit $ac_status); } && {
25482          test -z "$ac_c_werror_flag" ||
25483          test ! -s conftest.err
25484        } && test -s conftest.$ac_objext; then
25485   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25486 else
25487   $as_echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490
25491 fi
25492
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494   done
25495  done
25496 done
25497 # Provide a safe default value.
25498 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25499
25500 fi
25501 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25502 $as_echo "$ac_cv_func_select_args" >&6; }
25503 ac_save_IFS=$IFS; IFS=','
25504 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25505 IFS=$ac_save_IFS
25506 shift
25507
25508 cat >>confdefs.h <<_ACEOF
25509 #define SELECT_TYPE_ARG1 $1
25510 _ACEOF
25511
25512
25513 cat >>confdefs.h <<_ACEOF
25514 #define SELECT_TYPE_ARG234 ($2)
25515 _ACEOF
25516
25517
25518 cat >>confdefs.h <<_ACEOF
25519 #define SELECT_TYPE_ARG5 ($3)
25520 _ACEOF
25521
25522 rm -f conftest*
25523
25524 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25525 $as_echo_n "checking return type of signal handlers... " >&6; }
25526 if test "${ac_cv_type_signal+set}" = set; then
25527   $as_echo_n "(cached) " >&6
25528 else
25529   cat >conftest.$ac_ext <<_ACEOF
25530 /* confdefs.h.  */
25531 _ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h.  */
25535 #include <sys/types.h>
25536 #include <signal.h>
25537
25538 int
25539 main ()
25540 {
25541 return *(signal (0, 0)) (0) == 1;
25542   ;
25543   return 0;
25544 }
25545 _ACEOF
25546 rm -f conftest.$ac_objext
25547 if { (ac_try="$ac_compile"
25548 case "(($ac_try" in
25549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550   *) ac_try_echo=$ac_try;;
25551 esac
25552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25553 $as_echo "$ac_try_echo") >&5
25554   (eval "$ac_compile") 2>conftest.er1
25555   ac_status=$?
25556   grep -v '^ *+' conftest.er1 >conftest.err
25557   rm -f conftest.er1
25558   cat conftest.err >&5
25559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560   (exit $ac_status); } && {
25561          test -z "$ac_c_werror_flag" ||
25562          test ! -s conftest.err
25563        } && test -s conftest.$ac_objext; then
25564   ac_cv_type_signal=int
25565 else
25566   $as_echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25568
25569         ac_cv_type_signal=void
25570 fi
25571
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25573 fi
25574 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25575 $as_echo "$ac_cv_type_signal" >&6; }
25576
25577 cat >>confdefs.h <<_ACEOF
25578 #define RETSIGTYPE $ac_cv_type_signal
25579 _ACEOF
25580
25581
25582 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25583 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
25584 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25585   $as_echo_n "(cached) " >&6
25586 else
25587   if test "$cross_compiling" = yes; then
25588   ac_cv_func_stat_empty_string_bug=yes
25589 else
25590   cat >conftest.$ac_ext <<_ACEOF
25591 /* confdefs.h.  */
25592 _ACEOF
25593 cat confdefs.h >>conftest.$ac_ext
25594 cat >>conftest.$ac_ext <<_ACEOF
25595 /* end confdefs.h.  */
25596 $ac_includes_default
25597 int
25598 main ()
25599 {
25600 struct stat sbuf;
25601   return stat ("", &sbuf) == 0;
25602   ;
25603   return 0;
25604 }
25605 _ACEOF
25606 rm -f conftest$ac_exeext
25607 if { (ac_try="$ac_link"
25608 case "(($ac_try" in
25609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610   *) ac_try_echo=$ac_try;;
25611 esac
25612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25613 $as_echo "$ac_try_echo") >&5
25614   (eval "$ac_link") 2>&5
25615   ac_status=$?
25616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25618   { (case "(($ac_try" in
25619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620   *) ac_try_echo=$ac_try;;
25621 esac
25622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25623 $as_echo "$ac_try_echo") >&5
25624   (eval "$ac_try") 2>&5
25625   ac_status=$?
25626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); }; }; then
25628   ac_cv_func_stat_empty_string_bug=no
25629 else
25630   $as_echo "$as_me: program exited with status $ac_status" >&5
25631 $as_echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25633
25634 ( exit $ac_status )
25635 ac_cv_func_stat_empty_string_bug=yes
25636 fi
25637 rm -rf conftest.dSYM
25638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25639 fi
25640
25641
25642 fi
25643 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25644 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
25645 if test $ac_cv_func_stat_empty_string_bug = yes; then
25646   case " $LIBOBJS " in
25647   *" stat.$ac_objext "* ) ;;
25648   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
25649  ;;
25650 esac
25651
25652
25653 cat >>confdefs.h <<_ACEOF
25654 #define HAVE_STAT_EMPTY_STRING_BUG 1
25655 _ACEOF
25656
25657 fi
25658
25659
25660 for ac_func in vprintf
25661 do
25662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25664 $as_echo_n "checking for $ac_func... " >&6; }
25665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25666   $as_echo_n "(cached) " >&6
25667 else
25668   cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h.  */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h.  */
25674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25676 #define $ac_func innocuous_$ac_func
25677
25678 /* System header to define __stub macros and hopefully few prototypes,
25679     which can conflict with char $ac_func (); below.
25680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25681     <limits.h> exists even on freestanding compilers.  */
25682
25683 #ifdef __STDC__
25684 # include <limits.h>
25685 #else
25686 # include <assert.h>
25687 #endif
25688
25689 #undef $ac_func
25690
25691 /* Override any GCC internal prototype to avoid an error.
25692    Use char because int might match the return type of a GCC
25693    builtin and then its argument prototype would still apply.  */
25694 #ifdef __cplusplus
25695 extern "C"
25696 #endif
25697 char $ac_func ();
25698 /* The GNU C library defines this for functions which it implements
25699     to always fail with ENOSYS.  Some functions are actually named
25700     something starting with __ and the normal name is an alias.  */
25701 #if defined __stub_$ac_func || defined __stub___$ac_func
25702 choke me
25703 #endif
25704
25705 int
25706 main ()
25707 {
25708 return $ac_func ();
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 rm -f conftest.$ac_objext conftest$ac_exeext
25714 if { (ac_try="$ac_link"
25715 case "(($ac_try" in
25716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717   *) ac_try_echo=$ac_try;;
25718 esac
25719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25720 $as_echo "$ac_try_echo") >&5
25721   (eval "$ac_link") 2>conftest.er1
25722   ac_status=$?
25723   grep -v '^ *+' conftest.er1 >conftest.err
25724   rm -f conftest.er1
25725   cat conftest.err >&5
25726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); } && {
25728          test -z "$ac_c_werror_flag" ||
25729          test ! -s conftest.err
25730        } && test -s conftest$ac_exeext && {
25731          test "$cross_compiling" = yes ||
25732          $as_test_x conftest$ac_exeext
25733        }; then
25734   eval "$as_ac_var=yes"
25735 else
25736   $as_echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739         eval "$as_ac_var=no"
25740 fi
25741
25742 rm -rf conftest.dSYM
25743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25744       conftest$ac_exeext conftest.$ac_ext
25745 fi
25746 ac_res=`eval 'as_val=${'$as_ac_var'}
25747                  $as_echo "$as_val"'`
25748                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25749 $as_echo "$ac_res" >&6; }
25750 as_val=`eval 'as_val=${'$as_ac_var'}
25751                  $as_echo "$as_val"'`
25752    if test "x$as_val" = x""yes; then
25753   cat >>confdefs.h <<_ACEOF
25754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25755 _ACEOF
25756
25757 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
25758 $as_echo_n "checking for _doprnt... " >&6; }
25759 if test "${ac_cv_func__doprnt+set}" = set; then
25760   $as_echo_n "(cached) " >&6
25761 else
25762   cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h.  */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h.  */
25768 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25770 #define _doprnt innocuous__doprnt
25771
25772 /* System header to define __stub macros and hopefully few prototypes,
25773     which can conflict with char _doprnt (); below.
25774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25775     <limits.h> exists even on freestanding compilers.  */
25776
25777 #ifdef __STDC__
25778 # include <limits.h>
25779 #else
25780 # include <assert.h>
25781 #endif
25782
25783 #undef _doprnt
25784
25785 /* Override any GCC internal prototype to avoid an error.
25786    Use char because int might match the return type of a GCC
25787    builtin and then its argument prototype would still apply.  */
25788 #ifdef __cplusplus
25789 extern "C"
25790 #endif
25791 char _doprnt ();
25792 /* The GNU C library defines this for functions which it implements
25793     to always fail with ENOSYS.  Some functions are actually named
25794     something starting with __ and the normal name is an alias.  */
25795 #if defined __stub__doprnt || defined __stub____doprnt
25796 choke me
25797 #endif
25798
25799 int
25800 main ()
25801 {
25802 return _doprnt ();
25803   ;
25804   return 0;
25805 }
25806 _ACEOF
25807 rm -f conftest.$ac_objext conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811   *) ac_try_echo=$ac_try;;
25812 esac
25813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25814 $as_echo "$ac_try_echo") >&5
25815   (eval "$ac_link") 2>conftest.er1
25816   ac_status=$?
25817   grep -v '^ *+' conftest.er1 >conftest.err
25818   rm -f conftest.er1
25819   cat conftest.err >&5
25820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } && {
25822          test -z "$ac_c_werror_flag" ||
25823          test ! -s conftest.err
25824        } && test -s conftest$ac_exeext && {
25825          test "$cross_compiling" = yes ||
25826          $as_test_x conftest$ac_exeext
25827        }; then
25828   ac_cv_func__doprnt=yes
25829 else
25830   $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833         ac_cv_func__doprnt=no
25834 fi
25835
25836 rm -rf conftest.dSYM
25837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25838       conftest$ac_exeext conftest.$ac_ext
25839 fi
25840 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25841 $as_echo "$ac_cv_func__doprnt" >&6; }
25842 if test "x$ac_cv_func__doprnt" = x""yes; then
25843
25844 cat >>confdefs.h <<\_ACEOF
25845 #define HAVE_DOPRNT 1
25846 _ACEOF
25847
25848 fi
25849
25850 fi
25851 done
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25887                gethostbyaddr gethostbyname gethostname getmntent \
25888                getnameinfo getrpcbyname getifaddrs \
25889                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25890                realpath rmdir select socket strcasecmp strchr strdup \
25891                strerror strrchr strtol strtoul sigprocmask
25892 do
25893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25895 $as_echo_n "checking for $ac_func... " >&6; }
25896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25897   $as_echo_n "(cached) " >&6
25898 else
25899   cat >conftest.$ac_ext <<_ACEOF
25900 /* confdefs.h.  */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h.  */
25905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25907 #define $ac_func innocuous_$ac_func
25908
25909 /* System header to define __stub macros and hopefully few prototypes,
25910     which can conflict with char $ac_func (); below.
25911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25912     <limits.h> exists even on freestanding compilers.  */
25913
25914 #ifdef __STDC__
25915 # include <limits.h>
25916 #else
25917 # include <assert.h>
25918 #endif
25919
25920 #undef $ac_func
25921
25922 /* Override any GCC internal prototype to avoid an error.
25923    Use char because int might match the return type of a GCC
25924    builtin and then its argument prototype would still apply.  */
25925 #ifdef __cplusplus
25926 extern "C"
25927 #endif
25928 char $ac_func ();
25929 /* The GNU C library defines this for functions which it implements
25930     to always fail with ENOSYS.  Some functions are actually named
25931     something starting with __ and the normal name is an alias.  */
25932 #if defined __stub_$ac_func || defined __stub___$ac_func
25933 choke me
25934 #endif
25935
25936 int
25937 main ()
25938 {
25939 return $ac_func ();
25940   ;
25941   return 0;
25942 }
25943 _ACEOF
25944 rm -f conftest.$ac_objext conftest$ac_exeext
25945 if { (ac_try="$ac_link"
25946 case "(($ac_try" in
25947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25948   *) ac_try_echo=$ac_try;;
25949 esac
25950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25951 $as_echo "$ac_try_echo") >&5
25952   (eval "$ac_link") 2>conftest.er1
25953   ac_status=$?
25954   grep -v '^ *+' conftest.er1 >conftest.err
25955   rm -f conftest.er1
25956   cat conftest.err >&5
25957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958   (exit $ac_status); } && {
25959          test -z "$ac_c_werror_flag" ||
25960          test ! -s conftest.err
25961        } && test -s conftest$ac_exeext && {
25962          test "$cross_compiling" = yes ||
25963          $as_test_x conftest$ac_exeext
25964        }; then
25965   eval "$as_ac_var=yes"
25966 else
25967   $as_echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25969
25970         eval "$as_ac_var=no"
25971 fi
25972
25973 rm -rf conftest.dSYM
25974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25975       conftest$ac_exeext conftest.$ac_ext
25976 fi
25977 ac_res=`eval 'as_val=${'$as_ac_var'}
25978                  $as_echo "$as_val"'`
25979                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25980 $as_echo "$ac_res" >&6; }
25981 as_val=`eval 'as_val=${'$as_ac_var'}
25982                  $as_echo "$as_val"'`
25983    if test "x$as_val" = x""yes; then
25984   cat >>confdefs.h <<_ACEOF
25985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25986 _ACEOF
25987
25988 fi
25989 done
25990
25991
25992
25993 # The cast to long int works around a bug in the HP C Compiler
25994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25996 # This bug is HP SR number 8606223364.
25997 { $as_echo "$as_me:$LINENO: checking size of short" >&5
25998 $as_echo_n "checking size of short... " >&6; }
25999 if test "${ac_cv_sizeof_short+set}" = set; then
26000   $as_echo_n "(cached) " >&6
26001 else
26002   if test "$cross_compiling" = yes; then
26003   # Depending upon the size, compute the lo and hi bounds.
26004 cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010 $ac_includes_default
26011 int
26012 main ()
26013 {
26014 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
26015 test_array [0] = 0
26016
26017   ;
26018   return 0;
26019 }
26020 _ACEOF
26021 rm -f conftest.$ac_objext
26022 if { (ac_try="$ac_compile"
26023 case "(($ac_try" in
26024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025   *) ac_try_echo=$ac_try;;
26026 esac
26027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26028 $as_echo "$ac_try_echo") >&5
26029   (eval "$ac_compile") 2>conftest.er1
26030   ac_status=$?
26031   grep -v '^ *+' conftest.er1 >conftest.err
26032   rm -f conftest.er1
26033   cat conftest.err >&5
26034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); } && {
26036          test -z "$ac_c_werror_flag" ||
26037          test ! -s conftest.err
26038        } && test -s conftest.$ac_objext; then
26039   ac_lo=0 ac_mid=0
26040   while :; do
26041     cat >conftest.$ac_ext <<_ACEOF
26042 /* confdefs.h.  */
26043 _ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h.  */
26047 $ac_includes_default
26048 int
26049 main ()
26050 {
26051 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
26052 test_array [0] = 0
26053
26054   ;
26055   return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext
26059 if { (ac_try="$ac_compile"
26060 case "(($ac_try" in
26061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062   *) ac_try_echo=$ac_try;;
26063 esac
26064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26065 $as_echo "$ac_try_echo") >&5
26066   (eval "$ac_compile") 2>conftest.er1
26067   ac_status=$?
26068   grep -v '^ *+' conftest.er1 >conftest.err
26069   rm -f conftest.er1
26070   cat conftest.err >&5
26071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); } && {
26073          test -z "$ac_c_werror_flag" ||
26074          test ! -s conftest.err
26075        } && test -s conftest.$ac_objext; then
26076   ac_hi=$ac_mid; break
26077 else
26078   $as_echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081         ac_lo=`expr $ac_mid + 1`
26082                         if test $ac_lo -le $ac_mid; then
26083                           ac_lo= ac_hi=
26084                           break
26085                         fi
26086                         ac_mid=`expr 2 '*' $ac_mid + 1`
26087 fi
26088
26089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26090   done
26091 else
26092   $as_echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095         cat >conftest.$ac_ext <<_ACEOF
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101 $ac_includes_default
26102 int
26103 main ()
26104 {
26105 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
26106 test_array [0] = 0
26107
26108   ;
26109   return 0;
26110 }
26111 _ACEOF
26112 rm -f conftest.$ac_objext
26113 if { (ac_try="$ac_compile"
26114 case "(($ac_try" in
26115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26116   *) ac_try_echo=$ac_try;;
26117 esac
26118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26119 $as_echo "$ac_try_echo") >&5
26120   (eval "$ac_compile") 2>conftest.er1
26121   ac_status=$?
26122   grep -v '^ *+' conftest.er1 >conftest.err
26123   rm -f conftest.er1
26124   cat conftest.err >&5
26125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126   (exit $ac_status); } && {
26127          test -z "$ac_c_werror_flag" ||
26128          test ! -s conftest.err
26129        } && test -s conftest.$ac_objext; then
26130   ac_hi=-1 ac_mid=-1
26131   while :; do
26132     cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h.  */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h.  */
26138 $ac_includes_default
26139 int
26140 main ()
26141 {
26142 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
26143 test_array [0] = 0
26144
26145   ;
26146   return 0;
26147 }
26148 _ACEOF
26149 rm -f conftest.$ac_objext
26150 if { (ac_try="$ac_compile"
26151 case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26156 $as_echo "$ac_try_echo") >&5
26157   (eval "$ac_compile") 2>conftest.er1
26158   ac_status=$?
26159   grep -v '^ *+' conftest.er1 >conftest.err
26160   rm -f conftest.er1
26161   cat conftest.err >&5
26162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); } && {
26164          test -z "$ac_c_werror_flag" ||
26165          test ! -s conftest.err
26166        } && test -s conftest.$ac_objext; then
26167   ac_lo=$ac_mid; break
26168 else
26169   $as_echo "$as_me: failed program was:" >&5
26170 sed 's/^/| /' conftest.$ac_ext >&5
26171
26172         ac_hi=`expr '(' $ac_mid ')' - 1`
26173                         if test $ac_mid -le $ac_hi; then
26174                           ac_lo= ac_hi=
26175                           break
26176                         fi
26177                         ac_mid=`expr 2 '*' $ac_mid`
26178 fi
26179
26180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181   done
26182 else
26183   $as_echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186         ac_lo= ac_hi=
26187 fi
26188
26189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26190 fi
26191
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26193 # Binary search between lo and hi bounds.
26194 while test "x$ac_lo" != "x$ac_hi"; do
26195   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26196   cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202 $ac_includes_default
26203 int
26204 main ()
26205 {
26206 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
26207 test_array [0] = 0
26208
26209   ;
26210   return 0;
26211 }
26212 _ACEOF
26213 rm -f conftest.$ac_objext
26214 if { (ac_try="$ac_compile"
26215 case "(($ac_try" in
26216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217   *) ac_try_echo=$ac_try;;
26218 esac
26219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26220 $as_echo "$ac_try_echo") >&5
26221   (eval "$ac_compile") 2>conftest.er1
26222   ac_status=$?
26223   grep -v '^ *+' conftest.er1 >conftest.err
26224   rm -f conftest.er1
26225   cat conftest.err >&5
26226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); } && {
26228          test -z "$ac_c_werror_flag" ||
26229          test ! -s conftest.err
26230        } && test -s conftest.$ac_objext; then
26231   ac_hi=$ac_mid
26232 else
26233   $as_echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26235
26236         ac_lo=`expr '(' $ac_mid ')' + 1`
26237 fi
26238
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240 done
26241 case $ac_lo in
26242 ?*) ac_cv_sizeof_short=$ac_lo;;
26243 '') if test "$ac_cv_type_short" = yes; then
26244      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26246 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26247 See \`config.log' for more details." >&5
26248 $as_echo "$as_me: error: cannot compute sizeof (short)
26249 See \`config.log' for more details." >&2;}
26250    { (exit 77); exit 77; }; }; }
26251    else
26252      ac_cv_sizeof_short=0
26253    fi ;;
26254 esac
26255 else
26256   cat >conftest.$ac_ext <<_ACEOF
26257 /* confdefs.h.  */
26258 _ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h.  */
26262 $ac_includes_default
26263 static long int longval () { return (long int) (sizeof (short)); }
26264 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
26265 #include <stdio.h>
26266 #include <stdlib.h>
26267 int
26268 main ()
26269 {
26270
26271   FILE *f = fopen ("conftest.val", "w");
26272   if (! f)
26273     return 1;
26274   if (((long int) (sizeof (short))) < 0)
26275     {
26276       long int i = longval ();
26277       if (i != ((long int) (sizeof (short))))
26278         return 1;
26279       fprintf (f, "%ld", i);
26280     }
26281   else
26282     {
26283       unsigned long int i = ulongval ();
26284       if (i != ((long int) (sizeof (short))))
26285         return 1;
26286       fprintf (f, "%lu", i);
26287     }
26288   /* Do not output a trailing newline, as this causes \r\n confusion
26289      on some platforms.  */
26290   return ferror (f) || fclose (f) != 0;
26291
26292   ;
26293   return 0;
26294 }
26295 _ACEOF
26296 rm -f conftest$ac_exeext
26297 if { (ac_try="$ac_link"
26298 case "(($ac_try" in
26299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300   *) ac_try_echo=$ac_try;;
26301 esac
26302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26303 $as_echo "$ac_try_echo") >&5
26304   (eval "$ac_link") 2>&5
26305   ac_status=$?
26306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26308   { (case "(($ac_try" in
26309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310   *) ac_try_echo=$ac_try;;
26311 esac
26312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26313 $as_echo "$ac_try_echo") >&5
26314   (eval "$ac_try") 2>&5
26315   ac_status=$?
26316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); }; }; then
26318   ac_cv_sizeof_short=`cat conftest.val`
26319 else
26320   $as_echo "$as_me: program exited with status $ac_status" >&5
26321 $as_echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26323
26324 ( exit $ac_status )
26325 if test "$ac_cv_type_short" = yes; then
26326      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26328 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26329 See \`config.log' for more details." >&5
26330 $as_echo "$as_me: error: cannot compute sizeof (short)
26331 See \`config.log' for more details." >&2;}
26332    { (exit 77); exit 77; }; }; }
26333    else
26334      ac_cv_sizeof_short=0
26335    fi
26336 fi
26337 rm -rf conftest.dSYM
26338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26339 fi
26340 rm -f conftest.val
26341 fi
26342 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26343 $as_echo "$ac_cv_sizeof_short" >&6; }
26344
26345
26346
26347 cat >>confdefs.h <<_ACEOF
26348 #define SIZEOF_SHORT $ac_cv_sizeof_short
26349 _ACEOF
26350
26351
26352 # The cast to long int works around a bug in the HP C Compiler
26353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26355 # This bug is HP SR number 8606223364.
26356 { $as_echo "$as_me:$LINENO: checking size of int" >&5
26357 $as_echo_n "checking size of int... " >&6; }
26358 if test "${ac_cv_sizeof_int+set}" = set; then
26359   $as_echo_n "(cached) " >&6
26360 else
26361   if test "$cross_compiling" = yes; then
26362   # Depending upon the size, compute the lo and hi bounds.
26363 cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 $ac_includes_default
26370 int
26371 main ()
26372 {
26373 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
26374 test_array [0] = 0
26375
26376   ;
26377   return 0;
26378 }
26379 _ACEOF
26380 rm -f conftest.$ac_objext
26381 if { (ac_try="$ac_compile"
26382 case "(($ac_try" in
26383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384   *) ac_try_echo=$ac_try;;
26385 esac
26386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26387 $as_echo "$ac_try_echo") >&5
26388   (eval "$ac_compile") 2>conftest.er1
26389   ac_status=$?
26390   grep -v '^ *+' conftest.er1 >conftest.err
26391   rm -f conftest.er1
26392   cat conftest.err >&5
26393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394   (exit $ac_status); } && {
26395          test -z "$ac_c_werror_flag" ||
26396          test ! -s conftest.err
26397        } && test -s conftest.$ac_objext; then
26398   ac_lo=0 ac_mid=0
26399   while :; do
26400     cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h.  */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h.  */
26406 $ac_includes_default
26407 int
26408 main ()
26409 {
26410 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26411 test_array [0] = 0
26412
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421   *) ac_try_echo=$ac_try;;
26422 esac
26423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26424 $as_echo "$ac_try_echo") >&5
26425   (eval "$ac_compile") 2>conftest.er1
26426   ac_status=$?
26427   grep -v '^ *+' conftest.er1 >conftest.err
26428   rm -f conftest.er1
26429   cat conftest.err >&5
26430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431   (exit $ac_status); } && {
26432          test -z "$ac_c_werror_flag" ||
26433          test ! -s conftest.err
26434        } && test -s conftest.$ac_objext; then
26435   ac_hi=$ac_mid; break
26436 else
26437   $as_echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26439
26440         ac_lo=`expr $ac_mid + 1`
26441                         if test $ac_lo -le $ac_mid; then
26442                           ac_lo= ac_hi=
26443                           break
26444                         fi
26445                         ac_mid=`expr 2 '*' $ac_mid + 1`
26446 fi
26447
26448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26449   done
26450 else
26451   $as_echo "$as_me: failed program was:" >&5
26452 sed 's/^/| /' conftest.$ac_ext >&5
26453
26454         cat >conftest.$ac_ext <<_ACEOF
26455 /* confdefs.h.  */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h.  */
26460 $ac_includes_default
26461 int
26462 main ()
26463 {
26464 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
26465 test_array [0] = 0
26466
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (ac_try="$ac_compile"
26473 case "(($ac_try" in
26474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475   *) ac_try_echo=$ac_try;;
26476 esac
26477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26478 $as_echo "$ac_try_echo") >&5
26479   (eval "$ac_compile") 2>conftest.er1
26480   ac_status=$?
26481   grep -v '^ *+' conftest.er1 >conftest.err
26482   rm -f conftest.er1
26483   cat conftest.err >&5
26484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485   (exit $ac_status); } && {
26486          test -z "$ac_c_werror_flag" ||
26487          test ! -s conftest.err
26488        } && test -s conftest.$ac_objext; then
26489   ac_hi=-1 ac_mid=-1
26490   while :; do
26491     cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 $ac_includes_default
26498 int
26499 main ()
26500 {
26501 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
26502 test_array [0] = 0
26503
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 rm -f conftest.$ac_objext
26509 if { (ac_try="$ac_compile"
26510 case "(($ac_try" in
26511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512   *) ac_try_echo=$ac_try;;
26513 esac
26514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26515 $as_echo "$ac_try_echo") >&5
26516   (eval "$ac_compile") 2>conftest.er1
26517   ac_status=$?
26518   grep -v '^ *+' conftest.er1 >conftest.err
26519   rm -f conftest.er1
26520   cat conftest.err >&5
26521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); } && {
26523          test -z "$ac_c_werror_flag" ||
26524          test ! -s conftest.err
26525        } && test -s conftest.$ac_objext; then
26526   ac_lo=$ac_mid; break
26527 else
26528   $as_echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26530
26531         ac_hi=`expr '(' $ac_mid ')' - 1`
26532                         if test $ac_mid -le $ac_hi; then
26533                           ac_lo= ac_hi=
26534                           break
26535                         fi
26536                         ac_mid=`expr 2 '*' $ac_mid`
26537 fi
26538
26539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26540   done
26541 else
26542   $as_echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26544
26545         ac_lo= ac_hi=
26546 fi
26547
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26549 fi
26550
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552 # Binary search between lo and hi bounds.
26553 while test "x$ac_lo" != "x$ac_hi"; do
26554   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26555   cat >conftest.$ac_ext <<_ACEOF
26556 /* confdefs.h.  */
26557 _ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h.  */
26561 $ac_includes_default
26562 int
26563 main ()
26564 {
26565 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26566 test_array [0] = 0
26567
26568   ;
26569   return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576   *) ac_try_echo=$ac_try;;
26577 esac
26578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26579 $as_echo "$ac_try_echo") >&5
26580   (eval "$ac_compile") 2>conftest.er1
26581   ac_status=$?
26582   grep -v '^ *+' conftest.er1 >conftest.err
26583   rm -f conftest.er1
26584   cat conftest.err >&5
26585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); } && {
26587          test -z "$ac_c_werror_flag" ||
26588          test ! -s conftest.err
26589        } && test -s conftest.$ac_objext; then
26590   ac_hi=$ac_mid
26591 else
26592   $as_echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26594
26595         ac_lo=`expr '(' $ac_mid ')' + 1`
26596 fi
26597
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599 done
26600 case $ac_lo in
26601 ?*) ac_cv_sizeof_int=$ac_lo;;
26602 '') if test "$ac_cv_type_int" = yes; then
26603      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26605 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26606 See \`config.log' for more details." >&5
26607 $as_echo "$as_me: error: cannot compute sizeof (int)
26608 See \`config.log' for more details." >&2;}
26609    { (exit 77); exit 77; }; }; }
26610    else
26611      ac_cv_sizeof_int=0
26612    fi ;;
26613 esac
26614 else
26615   cat >conftest.$ac_ext <<_ACEOF
26616 /* confdefs.h.  */
26617 _ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h.  */
26621 $ac_includes_default
26622 static long int longval () { return (long int) (sizeof (int)); }
26623 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
26624 #include <stdio.h>
26625 #include <stdlib.h>
26626 int
26627 main ()
26628 {
26629
26630   FILE *f = fopen ("conftest.val", "w");
26631   if (! f)
26632     return 1;
26633   if (((long int) (sizeof (int))) < 0)
26634     {
26635       long int i = longval ();
26636       if (i != ((long int) (sizeof (int))))
26637         return 1;
26638       fprintf (f, "%ld", i);
26639     }
26640   else
26641     {
26642       unsigned long int i = ulongval ();
26643       if (i != ((long int) (sizeof (int))))
26644         return 1;
26645       fprintf (f, "%lu", i);
26646     }
26647   /* Do not output a trailing newline, as this causes \r\n confusion
26648      on some platforms.  */
26649   return ferror (f) || fclose (f) != 0;
26650
26651   ;
26652   return 0;
26653 }
26654 _ACEOF
26655 rm -f conftest$ac_exeext
26656 if { (ac_try="$ac_link"
26657 case "(($ac_try" in
26658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659   *) ac_try_echo=$ac_try;;
26660 esac
26661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26662 $as_echo "$ac_try_echo") >&5
26663   (eval "$ac_link") 2>&5
26664   ac_status=$?
26665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26667   { (case "(($ac_try" in
26668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669   *) ac_try_echo=$ac_try;;
26670 esac
26671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26672 $as_echo "$ac_try_echo") >&5
26673   (eval "$ac_try") 2>&5
26674   ac_status=$?
26675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); }; }; then
26677   ac_cv_sizeof_int=`cat conftest.val`
26678 else
26679   $as_echo "$as_me: program exited with status $ac_status" >&5
26680 $as_echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683 ( exit $ac_status )
26684 if test "$ac_cv_type_int" = yes; then
26685      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26687 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26688 See \`config.log' for more details." >&5
26689 $as_echo "$as_me: error: cannot compute sizeof (int)
26690 See \`config.log' for more details." >&2;}
26691    { (exit 77); exit 77; }; }; }
26692    else
26693      ac_cv_sizeof_int=0
26694    fi
26695 fi
26696 rm -rf conftest.dSYM
26697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26698 fi
26699 rm -f conftest.val
26700 fi
26701 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26702 $as_echo "$ac_cv_sizeof_int" >&6; }
26703
26704
26705
26706 cat >>confdefs.h <<_ACEOF
26707 #define SIZEOF_INT $ac_cv_sizeof_int
26708 _ACEOF
26709
26710
26711 # The cast to long int works around a bug in the HP C Compiler
26712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26714 # This bug is HP SR number 8606223364.
26715 { $as_echo "$as_me:$LINENO: checking size of long" >&5
26716 $as_echo_n "checking size of long... " >&6; }
26717 if test "${ac_cv_sizeof_long+set}" = set; then
26718   $as_echo_n "(cached) " >&6
26719 else
26720   if test "$cross_compiling" = yes; then
26721   # Depending upon the size, compute the lo and hi bounds.
26722 cat >conftest.$ac_ext <<_ACEOF
26723 /* confdefs.h.  */
26724 _ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h.  */
26728 $ac_includes_default
26729 int
26730 main ()
26731 {
26732 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
26733 test_array [0] = 0
26734
26735   ;
26736   return 0;
26737 }
26738 _ACEOF
26739 rm -f conftest.$ac_objext
26740 if { (ac_try="$ac_compile"
26741 case "(($ac_try" in
26742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743   *) ac_try_echo=$ac_try;;
26744 esac
26745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26746 $as_echo "$ac_try_echo") >&5
26747   (eval "$ac_compile") 2>conftest.er1
26748   ac_status=$?
26749   grep -v '^ *+' conftest.er1 >conftest.err
26750   rm -f conftest.er1
26751   cat conftest.err >&5
26752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); } && {
26754          test -z "$ac_c_werror_flag" ||
26755          test ! -s conftest.err
26756        } && test -s conftest.$ac_objext; then
26757   ac_lo=0 ac_mid=0
26758   while :; do
26759     cat >conftest.$ac_ext <<_ACEOF
26760 /* confdefs.h.  */
26761 _ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h.  */
26765 $ac_includes_default
26766 int
26767 main ()
26768 {
26769 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26770 test_array [0] = 0
26771
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 rm -f conftest.$ac_objext
26777 if { (ac_try="$ac_compile"
26778 case "(($ac_try" in
26779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780   *) ac_try_echo=$ac_try;;
26781 esac
26782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26783 $as_echo "$ac_try_echo") >&5
26784   (eval "$ac_compile") 2>conftest.er1
26785   ac_status=$?
26786   grep -v '^ *+' conftest.er1 >conftest.err
26787   rm -f conftest.er1
26788   cat conftest.err >&5
26789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); } && {
26791          test -z "$ac_c_werror_flag" ||
26792          test ! -s conftest.err
26793        } && test -s conftest.$ac_objext; then
26794   ac_hi=$ac_mid; break
26795 else
26796   $as_echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799         ac_lo=`expr $ac_mid + 1`
26800                         if test $ac_lo -le $ac_mid; then
26801                           ac_lo= ac_hi=
26802                           break
26803                         fi
26804                         ac_mid=`expr 2 '*' $ac_mid + 1`
26805 fi
26806
26807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26808   done
26809 else
26810   $as_echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26812
26813         cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h.  */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h.  */
26819 $ac_includes_default
26820 int
26821 main ()
26822 {
26823 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
26824 test_array [0] = 0
26825
26826   ;
26827   return 0;
26828 }
26829 _ACEOF
26830 rm -f conftest.$ac_objext
26831 if { (ac_try="$ac_compile"
26832 case "(($ac_try" in
26833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834   *) ac_try_echo=$ac_try;;
26835 esac
26836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26837 $as_echo "$ac_try_echo") >&5
26838   (eval "$ac_compile") 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } && {
26845          test -z "$ac_c_werror_flag" ||
26846          test ! -s conftest.err
26847        } && test -s conftest.$ac_objext; then
26848   ac_hi=-1 ac_mid=-1
26849   while :; do
26850     cat >conftest.$ac_ext <<_ACEOF
26851 /* confdefs.h.  */
26852 _ACEOF
26853 cat confdefs.h >>conftest.$ac_ext
26854 cat >>conftest.$ac_ext <<_ACEOF
26855 /* end confdefs.h.  */
26856 $ac_includes_default
26857 int
26858 main ()
26859 {
26860 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26861 test_array [0] = 0
26862
26863   ;
26864   return 0;
26865 }
26866 _ACEOF
26867 rm -f conftest.$ac_objext
26868 if { (ac_try="$ac_compile"
26869 case "(($ac_try" in
26870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871   *) ac_try_echo=$ac_try;;
26872 esac
26873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26874 $as_echo "$ac_try_echo") >&5
26875   (eval "$ac_compile") 2>conftest.er1
26876   ac_status=$?
26877   grep -v '^ *+' conftest.er1 >conftest.err
26878   rm -f conftest.er1
26879   cat conftest.err >&5
26880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); } && {
26882          test -z "$ac_c_werror_flag" ||
26883          test ! -s conftest.err
26884        } && test -s conftest.$ac_objext; then
26885   ac_lo=$ac_mid; break
26886 else
26887   $as_echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26889
26890         ac_hi=`expr '(' $ac_mid ')' - 1`
26891                         if test $ac_mid -le $ac_hi; then
26892                           ac_lo= ac_hi=
26893                           break
26894                         fi
26895                         ac_mid=`expr 2 '*' $ac_mid`
26896 fi
26897
26898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26899   done
26900 else
26901   $as_echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26903
26904         ac_lo= ac_hi=
26905 fi
26906
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26908 fi
26909
26910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 # Binary search between lo and hi bounds.
26912 while test "x$ac_lo" != "x$ac_hi"; do
26913   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26914   cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h.  */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h.  */
26920 $ac_includes_default
26921 int
26922 main ()
26923 {
26924 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26925 test_array [0] = 0
26926
26927   ;
26928   return 0;
26929 }
26930 _ACEOF
26931 rm -f conftest.$ac_objext
26932 if { (ac_try="$ac_compile"
26933 case "(($ac_try" in
26934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935   *) ac_try_echo=$ac_try;;
26936 esac
26937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26938 $as_echo "$ac_try_echo") >&5
26939   (eval "$ac_compile") 2>conftest.er1
26940   ac_status=$?
26941   grep -v '^ *+' conftest.er1 >conftest.err
26942   rm -f conftest.er1
26943   cat conftest.err >&5
26944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945   (exit $ac_status); } && {
26946          test -z "$ac_c_werror_flag" ||
26947          test ! -s conftest.err
26948        } && test -s conftest.$ac_objext; then
26949   ac_hi=$ac_mid
26950 else
26951   $as_echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26953
26954         ac_lo=`expr '(' $ac_mid ')' + 1`
26955 fi
26956
26957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26958 done
26959 case $ac_lo in
26960 ?*) ac_cv_sizeof_long=$ac_lo;;
26961 '') if test "$ac_cv_type_long" = yes; then
26962      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26964 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26965 See \`config.log' for more details." >&5
26966 $as_echo "$as_me: error: cannot compute sizeof (long)
26967 See \`config.log' for more details." >&2;}
26968    { (exit 77); exit 77; }; }; }
26969    else
26970      ac_cv_sizeof_long=0
26971    fi ;;
26972 esac
26973 else
26974   cat >conftest.$ac_ext <<_ACEOF
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980 $ac_includes_default
26981 static long int longval () { return (long int) (sizeof (long)); }
26982 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26983 #include <stdio.h>
26984 #include <stdlib.h>
26985 int
26986 main ()
26987 {
26988
26989   FILE *f = fopen ("conftest.val", "w");
26990   if (! f)
26991     return 1;
26992   if (((long int) (sizeof (long))) < 0)
26993     {
26994       long int i = longval ();
26995       if (i != ((long int) (sizeof (long))))
26996         return 1;
26997       fprintf (f, "%ld", i);
26998     }
26999   else
27000     {
27001       unsigned long int i = ulongval ();
27002       if (i != ((long int) (sizeof (long))))
27003         return 1;
27004       fprintf (f, "%lu", i);
27005     }
27006   /* Do not output a trailing newline, as this causes \r\n confusion
27007      on some platforms.  */
27008   return ferror (f) || fclose (f) != 0;
27009
27010   ;
27011   return 0;
27012 }
27013 _ACEOF
27014 rm -f conftest$ac_exeext
27015 if { (ac_try="$ac_link"
27016 case "(($ac_try" in
27017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018   *) ac_try_echo=$ac_try;;
27019 esac
27020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27021 $as_echo "$ac_try_echo") >&5
27022   (eval "$ac_link") 2>&5
27023   ac_status=$?
27024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27026   { (case "(($ac_try" in
27027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028   *) ac_try_echo=$ac_try;;
27029 esac
27030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27031 $as_echo "$ac_try_echo") >&5
27032   (eval "$ac_try") 2>&5
27033   ac_status=$?
27034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); }; }; then
27036   ac_cv_sizeof_long=`cat conftest.val`
27037 else
27038   $as_echo "$as_me: program exited with status $ac_status" >&5
27039 $as_echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27041
27042 ( exit $ac_status )
27043 if test "$ac_cv_type_long" = yes; then
27044      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27046 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27047 See \`config.log' for more details." >&5
27048 $as_echo "$as_me: error: cannot compute sizeof (long)
27049 See \`config.log' for more details." >&2;}
27050    { (exit 77); exit 77; }; }; }
27051    else
27052      ac_cv_sizeof_long=0
27053    fi
27054 fi
27055 rm -rf conftest.dSYM
27056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27057 fi
27058 rm -f conftest.val
27059 fi
27060 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27061 $as_echo "$ac_cv_sizeof_long" >&6; }
27062
27063
27064
27065 cat >>confdefs.h <<_ACEOF
27066 #define SIZEOF_LONG $ac_cv_sizeof_long
27067 _ACEOF
27068
27069
27070 # The cast to long int works around a bug in the HP C Compiler
27071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27073 # This bug is HP SR number 8606223364.
27074 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27075 $as_echo_n "checking size of size_t... " >&6; }
27076 if test "${ac_cv_sizeof_size_t+set}" = set; then
27077   $as_echo_n "(cached) " >&6
27078 else
27079   if test "$cross_compiling" = yes; then
27080   # Depending upon the size, compute the lo and hi bounds.
27081 cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087 $ac_includes_default
27088 int
27089 main ()
27090 {
27091 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27092 test_array [0] = 0
27093
27094   ;
27095   return 0;
27096 }
27097 _ACEOF
27098 rm -f conftest.$ac_objext
27099 if { (ac_try="$ac_compile"
27100 case "(($ac_try" in
27101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27102   *) ac_try_echo=$ac_try;;
27103 esac
27104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27105 $as_echo "$ac_try_echo") >&5
27106   (eval "$ac_compile") 2>conftest.er1
27107   ac_status=$?
27108   grep -v '^ *+' conftest.er1 >conftest.err
27109   rm -f conftest.er1
27110   cat conftest.err >&5
27111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); } && {
27113          test -z "$ac_c_werror_flag" ||
27114          test ! -s conftest.err
27115        } && test -s conftest.$ac_objext; then
27116   ac_lo=0 ac_mid=0
27117   while :; do
27118     cat >conftest.$ac_ext <<_ACEOF
27119 /* confdefs.h.  */
27120 _ACEOF
27121 cat confdefs.h >>conftest.$ac_ext
27122 cat >>conftest.$ac_ext <<_ACEOF
27123 /* end confdefs.h.  */
27124 $ac_includes_default
27125 int
27126 main ()
27127 {
27128 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27129 test_array [0] = 0
27130
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 rm -f conftest.$ac_objext
27136 if { (ac_try="$ac_compile"
27137 case "(($ac_try" in
27138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139   *) ac_try_echo=$ac_try;;
27140 esac
27141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27142 $as_echo "$ac_try_echo") >&5
27143   (eval "$ac_compile") 2>conftest.er1
27144   ac_status=$?
27145   grep -v '^ *+' conftest.er1 >conftest.err
27146   rm -f conftest.er1
27147   cat conftest.err >&5
27148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); } && {
27150          test -z "$ac_c_werror_flag" ||
27151          test ! -s conftest.err
27152        } && test -s conftest.$ac_objext; then
27153   ac_hi=$ac_mid; break
27154 else
27155   $as_echo "$as_me: failed program was:" >&5
27156 sed 's/^/| /' conftest.$ac_ext >&5
27157
27158         ac_lo=`expr $ac_mid + 1`
27159                         if test $ac_lo -le $ac_mid; then
27160                           ac_lo= ac_hi=
27161                           break
27162                         fi
27163                         ac_mid=`expr 2 '*' $ac_mid + 1`
27164 fi
27165
27166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27167   done
27168 else
27169   $as_echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172         cat >conftest.$ac_ext <<_ACEOF
27173 /* confdefs.h.  */
27174 _ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h.  */
27178 $ac_includes_default
27179 int
27180 main ()
27181 {
27182 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27183 test_array [0] = 0
27184
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27196 $as_echo "$ac_try_echo") >&5
27197   (eval "$ac_compile") 2>conftest.er1
27198   ac_status=$?
27199   grep -v '^ *+' conftest.er1 >conftest.err
27200   rm -f conftest.er1
27201   cat conftest.err >&5
27202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } && {
27204          test -z "$ac_c_werror_flag" ||
27205          test ! -s conftest.err
27206        } && test -s conftest.$ac_objext; then
27207   ac_hi=-1 ac_mid=-1
27208   while :; do
27209     cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 $ac_includes_default
27216 int
27217 main ()
27218 {
27219 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27220 test_array [0] = 0
27221
27222   ;
27223   return 0;
27224 }
27225 _ACEOF
27226 rm -f conftest.$ac_objext
27227 if { (ac_try="$ac_compile"
27228 case "(($ac_try" in
27229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230   *) ac_try_echo=$ac_try;;
27231 esac
27232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27233 $as_echo "$ac_try_echo") >&5
27234   (eval "$ac_compile") 2>conftest.er1
27235   ac_status=$?
27236   grep -v '^ *+' conftest.er1 >conftest.err
27237   rm -f conftest.er1
27238   cat conftest.err >&5
27239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } && {
27241          test -z "$ac_c_werror_flag" ||
27242          test ! -s conftest.err
27243        } && test -s conftest.$ac_objext; then
27244   ac_lo=$ac_mid; break
27245 else
27246   $as_echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249         ac_hi=`expr '(' $ac_mid ')' - 1`
27250                         if test $ac_mid -le $ac_hi; then
27251                           ac_lo= ac_hi=
27252                           break
27253                         fi
27254                         ac_mid=`expr 2 '*' $ac_mid`
27255 fi
27256
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258   done
27259 else
27260   $as_echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27262
27263         ac_lo= ac_hi=
27264 fi
27265
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267 fi
27268
27269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27270 # Binary search between lo and hi bounds.
27271 while test "x$ac_lo" != "x$ac_hi"; do
27272   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27273   cat >conftest.$ac_ext <<_ACEOF
27274 /* confdefs.h.  */
27275 _ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h.  */
27279 $ac_includes_default
27280 int
27281 main ()
27282 {
27283 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27284 test_array [0] = 0
27285
27286   ;
27287   return 0;
27288 }
27289 _ACEOF
27290 rm -f conftest.$ac_objext
27291 if { (ac_try="$ac_compile"
27292 case "(($ac_try" in
27293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294   *) ac_try_echo=$ac_try;;
27295 esac
27296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27297 $as_echo "$ac_try_echo") >&5
27298   (eval "$ac_compile") 2>conftest.er1
27299   ac_status=$?
27300   grep -v '^ *+' conftest.er1 >conftest.err
27301   rm -f conftest.er1
27302   cat conftest.err >&5
27303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); } && {
27305          test -z "$ac_c_werror_flag" ||
27306          test ! -s conftest.err
27307        } && test -s conftest.$ac_objext; then
27308   ac_hi=$ac_mid
27309 else
27310   $as_echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313         ac_lo=`expr '(' $ac_mid ')' + 1`
27314 fi
27315
27316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27317 done
27318 case $ac_lo in
27319 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27320 '') if test "$ac_cv_type_size_t" = yes; then
27321      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27323 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27324 See \`config.log' for more details." >&5
27325 $as_echo "$as_me: error: cannot compute sizeof (size_t)
27326 See \`config.log' for more details." >&2;}
27327    { (exit 77); exit 77; }; }; }
27328    else
27329      ac_cv_sizeof_size_t=0
27330    fi ;;
27331 esac
27332 else
27333   cat >conftest.$ac_ext <<_ACEOF
27334 /* confdefs.h.  */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h.  */
27339 $ac_includes_default
27340 static long int longval () { return (long int) (sizeof (size_t)); }
27341 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
27342 #include <stdio.h>
27343 #include <stdlib.h>
27344 int
27345 main ()
27346 {
27347
27348   FILE *f = fopen ("conftest.val", "w");
27349   if (! f)
27350     return 1;
27351   if (((long int) (sizeof (size_t))) < 0)
27352     {
27353       long int i = longval ();
27354       if (i != ((long int) (sizeof (size_t))))
27355         return 1;
27356       fprintf (f, "%ld", i);
27357     }
27358   else
27359     {
27360       unsigned long int i = ulongval ();
27361       if (i != ((long int) (sizeof (size_t))))
27362         return 1;
27363       fprintf (f, "%lu", i);
27364     }
27365   /* Do not output a trailing newline, as this causes \r\n confusion
27366      on some platforms.  */
27367   return ferror (f) || fclose (f) != 0;
27368
27369   ;
27370   return 0;
27371 }
27372 _ACEOF
27373 rm -f conftest$ac_exeext
27374 if { (ac_try="$ac_link"
27375 case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27380 $as_echo "$ac_try_echo") >&5
27381   (eval "$ac_link") 2>&5
27382   ac_status=$?
27383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27385   { (case "(($ac_try" in
27386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387   *) ac_try_echo=$ac_try;;
27388 esac
27389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27390 $as_echo "$ac_try_echo") >&5
27391   (eval "$ac_try") 2>&5
27392   ac_status=$?
27393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); }; }; then
27395   ac_cv_sizeof_size_t=`cat conftest.val`
27396 else
27397   $as_echo "$as_me: program exited with status $ac_status" >&5
27398 $as_echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401 ( exit $ac_status )
27402 if test "$ac_cv_type_size_t" = yes; then
27403      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27405 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27406 See \`config.log' for more details." >&5
27407 $as_echo "$as_me: error: cannot compute sizeof (size_t)
27408 See \`config.log' for more details." >&2;}
27409    { (exit 77); exit 77; }; }; }
27410    else
27411      ac_cv_sizeof_size_t=0
27412    fi
27413 fi
27414 rm -rf conftest.dSYM
27415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27416 fi
27417 rm -f conftest.val
27418 fi
27419 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27420 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27421
27422
27423
27424 cat >>confdefs.h <<_ACEOF
27425 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27426 _ACEOF
27427
27428
27429 # The cast to long int works around a bug in the HP C Compiler
27430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27432 # This bug is HP SR number 8606223364.
27433 { $as_echo "$as_me:$LINENO: checking size of socklen_t" >&5
27434 $as_echo_n "checking size of socklen_t... " >&6; }
27435 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
27436   $as_echo_n "(cached) " >&6
27437 else
27438   if test "$cross_compiling" = yes; then
27439   # Depending upon the size, compute the lo and hi bounds.
27440 cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h.  */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h.  */
27446 $ac_includes_default
27447 int
27448 main ()
27449 {
27450 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= 0)];
27451 test_array [0] = 0
27452
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 rm -f conftest.$ac_objext
27458 if { (ac_try="$ac_compile"
27459 case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27464 $as_echo "$ac_try_echo") >&5
27465   (eval "$ac_compile") 2>conftest.er1
27466   ac_status=$?
27467   grep -v '^ *+' conftest.er1 >conftest.err
27468   rm -f conftest.er1
27469   cat conftest.err >&5
27470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); } && {
27472          test -z "$ac_c_werror_flag" ||
27473          test ! -s conftest.err
27474        } && test -s conftest.$ac_objext; then
27475   ac_lo=0 ac_mid=0
27476   while :; do
27477     cat >conftest.$ac_ext <<_ACEOF
27478 /* confdefs.h.  */
27479 _ACEOF
27480 cat confdefs.h >>conftest.$ac_ext
27481 cat >>conftest.$ac_ext <<_ACEOF
27482 /* end confdefs.h.  */
27483 $ac_includes_default
27484 int
27485 main ()
27486 {
27487 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27488 test_array [0] = 0
27489
27490   ;
27491   return 0;
27492 }
27493 _ACEOF
27494 rm -f conftest.$ac_objext
27495 if { (ac_try="$ac_compile"
27496 case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27501 $as_echo "$ac_try_echo") >&5
27502   (eval "$ac_compile") 2>conftest.er1
27503   ac_status=$?
27504   grep -v '^ *+' conftest.er1 >conftest.err
27505   rm -f conftest.er1
27506   cat conftest.err >&5
27507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508   (exit $ac_status); } && {
27509          test -z "$ac_c_werror_flag" ||
27510          test ! -s conftest.err
27511        } && test -s conftest.$ac_objext; then
27512   ac_hi=$ac_mid; break
27513 else
27514   $as_echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27516
27517         ac_lo=`expr $ac_mid + 1`
27518                         if test $ac_lo -le $ac_mid; then
27519                           ac_lo= ac_hi=
27520                           break
27521                         fi
27522                         ac_mid=`expr 2 '*' $ac_mid + 1`
27523 fi
27524
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27526   done
27527 else
27528   $as_echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27530
27531         cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h.  */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h.  */
27537 $ac_includes_default
27538 int
27539 main ()
27540 {
27541 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) < 0)];
27542 test_array [0] = 0
27543
27544   ;
27545   return 0;
27546 }
27547 _ACEOF
27548 rm -f conftest.$ac_objext
27549 if { (ac_try="$ac_compile"
27550 case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27555 $as_echo "$ac_try_echo") >&5
27556   (eval "$ac_compile") 2>conftest.er1
27557   ac_status=$?
27558   grep -v '^ *+' conftest.er1 >conftest.err
27559   rm -f conftest.er1
27560   cat conftest.err >&5
27561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); } && {
27563          test -z "$ac_c_werror_flag" ||
27564          test ! -s conftest.err
27565        } && test -s conftest.$ac_objext; then
27566   ac_hi=-1 ac_mid=-1
27567   while :; do
27568     cat >conftest.$ac_ext <<_ACEOF
27569 /* confdefs.h.  */
27570 _ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h.  */
27574 $ac_includes_default
27575 int
27576 main ()
27577 {
27578 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= $ac_mid)];
27579 test_array [0] = 0
27580
27581   ;
27582   return 0;
27583 }
27584 _ACEOF
27585 rm -f conftest.$ac_objext
27586 if { (ac_try="$ac_compile"
27587 case "(($ac_try" in
27588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589   *) ac_try_echo=$ac_try;;
27590 esac
27591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27592 $as_echo "$ac_try_echo") >&5
27593   (eval "$ac_compile") 2>conftest.er1
27594   ac_status=$?
27595   grep -v '^ *+' conftest.er1 >conftest.err
27596   rm -f conftest.er1
27597   cat conftest.err >&5
27598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); } && {
27600          test -z "$ac_c_werror_flag" ||
27601          test ! -s conftest.err
27602        } && test -s conftest.$ac_objext; then
27603   ac_lo=$ac_mid; break
27604 else
27605   $as_echo "$as_me: failed program was:" >&5
27606 sed 's/^/| /' conftest.$ac_ext >&5
27607
27608         ac_hi=`expr '(' $ac_mid ')' - 1`
27609                         if test $ac_mid -le $ac_hi; then
27610                           ac_lo= ac_hi=
27611                           break
27612                         fi
27613                         ac_mid=`expr 2 '*' $ac_mid`
27614 fi
27615
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27617   done
27618 else
27619   $as_echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27621
27622         ac_lo= ac_hi=
27623 fi
27624
27625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27626 fi
27627
27628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27629 # Binary search between lo and hi bounds.
27630 while test "x$ac_lo" != "x$ac_hi"; do
27631   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27632   cat >conftest.$ac_ext <<_ACEOF
27633 /* confdefs.h.  */
27634 _ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h.  */
27638 $ac_includes_default
27639 int
27640 main ()
27641 {
27642 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27643 test_array [0] = 0
27644
27645   ;
27646   return 0;
27647 }
27648 _ACEOF
27649 rm -f conftest.$ac_objext
27650 if { (ac_try="$ac_compile"
27651 case "(($ac_try" in
27652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653   *) ac_try_echo=$ac_try;;
27654 esac
27655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27656 $as_echo "$ac_try_echo") >&5
27657   (eval "$ac_compile") 2>conftest.er1
27658   ac_status=$?
27659   grep -v '^ *+' conftest.er1 >conftest.err
27660   rm -f conftest.er1
27661   cat conftest.err >&5
27662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); } && {
27664          test -z "$ac_c_werror_flag" ||
27665          test ! -s conftest.err
27666        } && test -s conftest.$ac_objext; then
27667   ac_hi=$ac_mid
27668 else
27669   $as_echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27671
27672         ac_lo=`expr '(' $ac_mid ')' + 1`
27673 fi
27674
27675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27676 done
27677 case $ac_lo in
27678 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
27679 '') if test "$ac_cv_type_socklen_t" = yes; then
27680      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27682 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27683 See \`config.log' for more details." >&5
27684 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27685 See \`config.log' for more details." >&2;}
27686    { (exit 77); exit 77; }; }; }
27687    else
27688      ac_cv_sizeof_socklen_t=0
27689    fi ;;
27690 esac
27691 else
27692   cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698 $ac_includes_default
27699 static long int longval () { return (long int) (sizeof (socklen_t)); }
27700 static unsigned long int ulongval () { return (long int) (sizeof (socklen_t)); }
27701 #include <stdio.h>
27702 #include <stdlib.h>
27703 int
27704 main ()
27705 {
27706
27707   FILE *f = fopen ("conftest.val", "w");
27708   if (! f)
27709     return 1;
27710   if (((long int) (sizeof (socklen_t))) < 0)
27711     {
27712       long int i = longval ();
27713       if (i != ((long int) (sizeof (socklen_t))))
27714         return 1;
27715       fprintf (f, "%ld", i);
27716     }
27717   else
27718     {
27719       unsigned long int i = ulongval ();
27720       if (i != ((long int) (sizeof (socklen_t))))
27721         return 1;
27722       fprintf (f, "%lu", i);
27723     }
27724   /* Do not output a trailing newline, as this causes \r\n confusion
27725      on some platforms.  */
27726   return ferror (f) || fclose (f) != 0;
27727
27728   ;
27729   return 0;
27730 }
27731 _ACEOF
27732 rm -f conftest$ac_exeext
27733 if { (ac_try="$ac_link"
27734 case "(($ac_try" in
27735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736   *) ac_try_echo=$ac_try;;
27737 esac
27738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27739 $as_echo "$ac_try_echo") >&5
27740   (eval "$ac_link") 2>&5
27741   ac_status=$?
27742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27744   { (case "(($ac_try" in
27745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746   *) ac_try_echo=$ac_try;;
27747 esac
27748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27749 $as_echo "$ac_try_echo") >&5
27750   (eval "$ac_try") 2>&5
27751   ac_status=$?
27752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); }; }; then
27754   ac_cv_sizeof_socklen_t=`cat conftest.val`
27755 else
27756   $as_echo "$as_me: program exited with status $ac_status" >&5
27757 $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760 ( exit $ac_status )
27761 if test "$ac_cv_type_socklen_t" = yes; then
27762      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27764 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27765 See \`config.log' for more details." >&5
27766 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27767 See \`config.log' for more details." >&2;}
27768    { (exit 77); exit 77; }; }; }
27769    else
27770      ac_cv_sizeof_socklen_t=0
27771    fi
27772 fi
27773 rm -rf conftest.dSYM
27774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27775 fi
27776 rm -f conftest.val
27777 fi
27778 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
27779 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
27780
27781
27782
27783 cat >>confdefs.h <<_ACEOF
27784 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
27785 _ACEOF
27786
27787
27788
27789
27790
27791 cat >>confdefs.h <<_ACEOF
27792 #define NFS_STATEDIR "$statedir"
27793 _ACEOF
27794
27795
27796 if test "x$cross_compiling" = "xno"; then
27797         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27798         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27799         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27800         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27801 else
27802         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27803         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27804         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27805         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27806 fi
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818 case $host in
27819   *)
27820     ARCHFLAGS="" ;;
27821 esac
27822
27823 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
27824
27825 AM_CFLAGS="$my_am_cflags"
27826
27827
27828 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27829 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27830
27831
27832 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile support/nsm/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile tests/Makefile tests/nsm_client/Makefile"
27833
27834 cat >confcache <<\_ACEOF
27835 # This file is a shell script that caches the results of configure
27836 # tests run on this system so they can be shared between configure
27837 # scripts and configure runs, see configure's option --config-cache.
27838 # It is not useful on other systems.  If it contains results you don't
27839 # want to keep, you may remove or edit it.
27840 #
27841 # config.status only pays attention to the cache file if you give it
27842 # the --recheck option to rerun configure.
27843 #
27844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27846 # following values.
27847
27848 _ACEOF
27849
27850 # The following way of writing the cache mishandles newlines in values,
27851 # but we know of no workaround that is simple, portable, and efficient.
27852 # So, we kill variables containing newlines.
27853 # Ultrix sh set writes to stderr and can't be redirected directly,
27854 # and sets the high bit in the cache file unless we assign to the vars.
27855 (
27856   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27857     eval ac_val=\$$ac_var
27858     case $ac_val in #(
27859     *${as_nl}*)
27860       case $ac_var in #(
27861       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27863       esac
27864       case $ac_var in #(
27865       _ | IFS | as_nl) ;; #(
27866       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27867       *) $as_unset $ac_var ;;
27868       esac ;;
27869     esac
27870   done
27871
27872   (set) 2>&1 |
27873     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27874     *${as_nl}ac_space=\ *)
27875       # `set' does not quote correctly, so add quotes (double-quote
27876       # substitution turns \\\\ into \\, and sed turns \\ into \).
27877       sed -n \
27878         "s/'/'\\\\''/g;
27879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27880       ;; #(
27881     *)
27882       # `set' quotes correctly as required by POSIX, so do not add quotes.
27883       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27884       ;;
27885     esac |
27886     sort
27887 ) |
27888   sed '
27889      /^ac_cv_env_/b end
27890      t clear
27891      :clear
27892      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27893      t end
27894      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27895      :end' >>confcache
27896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27897   if test -w "$cache_file"; then
27898     test "x$cache_file" != "x/dev/null" &&
27899       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27900 $as_echo "$as_me: updating cache $cache_file" >&6;}
27901     cat confcache >$cache_file
27902   else
27903     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27905   fi
27906 fi
27907 rm -f confcache
27908
27909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27910 # Let make expand exec_prefix.
27911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27912
27913 DEFS=-DHAVE_CONFIG_H
27914
27915 ac_libobjs=
27916 ac_ltlibobjs=
27917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27918   # 1. Remove the extension, and $U if already installed.
27919   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27920   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27921   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27922   #    will be set to the directory where LIBOBJS objects are built.
27923   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27924   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27925 done
27926 LIBOBJS=$ac_libobjs
27927
27928 LTLIBOBJS=$ac_ltlibobjs
27929
27930
27931  if test -n "$EXEEXT"; then
27932   am__EXEEXT_TRUE=
27933   am__EXEEXT_FALSE='#'
27934 else
27935   am__EXEEXT_TRUE='#'
27936   am__EXEEXT_FALSE=
27937 fi
27938
27939 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27940   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27941 Usually this means the macro was only invoked conditionally." >&5
27942 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27943 Usually this means the macro was only invoked conditionally." >&2;}
27944    { (exit 1); exit 1; }; }
27945 fi
27946 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27947   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27948 Usually this means the macro was only invoked conditionally." >&5
27949 $as_echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27950 Usually this means the macro was only invoked conditionally." >&2;}
27951    { (exit 1); exit 1; }; }
27952 fi
27953 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
27954   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV41\" was never defined.
27955 Usually this means the macro was only invoked conditionally." >&5
27956 $as_echo "$as_me: error: conditional \"CONFIG_NFSV41\" was never defined.
27957 Usually this means the macro was only invoked conditionally." >&2;}
27958    { (exit 1); exit 1; }; }
27959 fi
27960 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27961   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27962 Usually this means the macro was only invoked conditionally." >&5
27963 $as_echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27964 Usually this means the macro was only invoked conditionally." >&2;}
27965    { (exit 1); exit 1; }; }
27966 fi
27967 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
27968   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
27969 Usually this means the macro was only invoked conditionally." >&5
27970 $as_echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
27971 Usually this means the macro was only invoked conditionally." >&2;}
27972    { (exit 1); exit 1; }; }
27973 fi
27974 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
27975   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
27976 Usually this means the macro was only invoked conditionally." >&5
27977 $as_echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
27978 Usually this means the macro was only invoked conditionally." >&2;}
27979    { (exit 1); exit 1; }; }
27980 fi
27981 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
27982   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
27983 Usually this means the macro was only invoked conditionally." >&5
27984 $as_echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
27985 Usually this means the macro was only invoked conditionally." >&2;}
27986    { (exit 1); exit 1; }; }
27987 fi
27988 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27989   { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27990 Usually this means the macro was only invoked conditionally." >&5
27991 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27992 Usually this means the macro was only invoked conditionally." >&2;}
27993    { (exit 1); exit 1; }; }
27994 fi
27995 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27996   { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27997 Usually this means the macro was only invoked conditionally." >&5
27998 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27999 Usually this means the macro was only invoked conditionally." >&2;}
28000    { (exit 1); exit 1; }; }
28001 fi
28002 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28003   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28004 Usually this means the macro was only invoked conditionally." >&5
28005 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
28006 Usually this means the macro was only invoked conditionally." >&2;}
28007    { (exit 1); exit 1; }; }
28008 fi
28009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28010   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28011 Usually this means the macro was only invoked conditionally." >&5
28012 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28013 Usually this means the macro was only invoked conditionally." >&2;}
28014    { (exit 1); exit 1; }; }
28015 fi
28016 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28017   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28018 Usually this means the macro was only invoked conditionally." >&5
28019 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28020 Usually this means the macro was only invoked conditionally." >&2;}
28021    { (exit 1); exit 1; }; }
28022 fi
28023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28024   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28025 Usually this means the macro was only invoked conditionally." >&5
28026 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28027 Usually this means the macro was only invoked conditionally." >&2;}
28028    { (exit 1); exit 1; }; }
28029 fi
28030 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28031   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28032 Usually this means the macro was only invoked conditionally." >&5
28033 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28034 Usually this means the macro was only invoked conditionally." >&2;}
28035    { (exit 1); exit 1; }; }
28036 fi
28037
28038 : ${CONFIG_STATUS=./config.status}
28039 ac_write_fail=0
28040 ac_clean_files_save=$ac_clean_files
28041 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28042 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28044 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28045 #! $SHELL
28046 # Generated by $as_me.
28047 # Run this file to recreate the current configuration.
28048 # Compiler output produced by configure, useful for debugging
28049 # configure, is in config.log if it exists.
28050
28051 debug=false
28052 ac_cs_recheck=false
28053 ac_cs_silent=false
28054 SHELL=\${CONFIG_SHELL-$SHELL}
28055 _ACEOF
28056
28057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28058 ## --------------------- ##
28059 ## M4sh Initialization.  ##
28060 ## --------------------- ##
28061
28062 # Be more Bourne compatible
28063 DUALCASE=1; export DUALCASE # for MKS sh
28064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28065   emulate sh
28066   NULLCMD=:
28067   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28068   # is contrary to our usage.  Disable this feature.
28069   alias -g '${1+"$@"}'='"$@"'
28070   setopt NO_GLOB_SUBST
28071 else
28072   case `(set -o) 2>/dev/null` in
28073   *posix*) set -o posix ;;
28074 esac
28075
28076 fi
28077
28078
28079
28080
28081 # PATH needs CR
28082 # Avoid depending upon Character Ranges.
28083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28086 as_cr_digits='0123456789'
28087 as_cr_alnum=$as_cr_Letters$as_cr_digits
28088
28089 as_nl='
28090 '
28091 export as_nl
28092 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28093 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28096 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28097   as_echo='printf %s\n'
28098   as_echo_n='printf %s'
28099 else
28100   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28101     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28102     as_echo_n='/usr/ucb/echo -n'
28103   else
28104     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28105     as_echo_n_body='eval
28106       arg=$1;
28107       case $arg in
28108       *"$as_nl"*)
28109         expr "X$arg" : "X\\(.*\\)$as_nl";
28110         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28111       esac;
28112       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28113     '
28114     export as_echo_n_body
28115     as_echo_n='sh -c $as_echo_n_body as_echo'
28116   fi
28117   export as_echo_body
28118   as_echo='sh -c $as_echo_body as_echo'
28119 fi
28120
28121 # The user is always right.
28122 if test "${PATH_SEPARATOR+set}" != set; then
28123   PATH_SEPARATOR=:
28124   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28125     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28126       PATH_SEPARATOR=';'
28127   }
28128 fi
28129
28130 # Support unset when possible.
28131 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28132   as_unset=unset
28133 else
28134   as_unset=false
28135 fi
28136
28137
28138 # IFS
28139 # We need space, tab and new line, in precisely that order.  Quoting is
28140 # there to prevent editors from complaining about space-tab.
28141 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28142 # splitting by setting IFS to empty value.)
28143 IFS=" ""        $as_nl"
28144
28145 # Find who we are.  Look in the path if we contain no directory separator.
28146 case $0 in
28147   *[\\/]* ) as_myself=$0 ;;
28148   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28149 for as_dir in $PATH
28150 do
28151   IFS=$as_save_IFS
28152   test -z "$as_dir" && as_dir=.
28153   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28154 done
28155 IFS=$as_save_IFS
28156
28157      ;;
28158 esac
28159 # We did not find ourselves, most probably we were run as `sh COMMAND'
28160 # in which case we are not to be found in the path.
28161 if test "x$as_myself" = x; then
28162   as_myself=$0
28163 fi
28164 if test ! -f "$as_myself"; then
28165   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28166   { (exit 1); exit 1; }
28167 fi
28168
28169 # Work around bugs in pre-3.0 UWIN ksh.
28170 for as_var in ENV MAIL MAILPATH
28171 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28172 done
28173 PS1='$ '
28174 PS2='> '
28175 PS4='+ '
28176
28177 # NLS nuisances.
28178 LC_ALL=C
28179 export LC_ALL
28180 LANGUAGE=C
28181 export LANGUAGE
28182
28183 # Required to use basename.
28184 if expr a : '\(a\)' >/dev/null 2>&1 &&
28185    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28186   as_expr=expr
28187 else
28188   as_expr=false
28189 fi
28190
28191 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28192   as_basename=basename
28193 else
28194   as_basename=false
28195 fi
28196
28197
28198 # Name of the executable.
28199 as_me=`$as_basename -- "$0" ||
28200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28201          X"$0" : 'X\(//\)$' \| \
28202          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28203 $as_echo X/"$0" |
28204     sed '/^.*\/\([^/][^/]*\)\/*$/{
28205             s//\1/
28206             q
28207           }
28208           /^X\/\(\/\/\)$/{
28209             s//\1/
28210             q
28211           }
28212           /^X\/\(\/\).*/{
28213             s//\1/
28214             q
28215           }
28216           s/.*/./; q'`
28217
28218 # CDPATH.
28219 $as_unset CDPATH
28220
28221
28222
28223   as_lineno_1=$LINENO
28224   as_lineno_2=$LINENO
28225   test "x$as_lineno_1" != "x$as_lineno_2" &&
28226   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28227
28228   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28229   # uniformly replaced by the line number.  The first 'sed' inserts a
28230   # line-number line after each line using $LINENO; the second 'sed'
28231   # does the real work.  The second script uses 'N' to pair each
28232   # line-number line with the line containing $LINENO, and appends
28233   # trailing '-' during substitution so that $LINENO is not a special
28234   # case at line end.
28235   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28236   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28237   # E. McMahon (1931-1989) for sed's syntax.  :-)
28238   sed -n '
28239     p
28240     /[$]LINENO/=
28241   ' <$as_myself |
28242     sed '
28243       s/[$]LINENO.*/&-/
28244       t lineno
28245       b
28246       :lineno
28247       N
28248       :loop
28249       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28250       t loop
28251       s/-\n.*//
28252     ' >$as_me.lineno &&
28253   chmod +x "$as_me.lineno" ||
28254     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28255    { (exit 1); exit 1; }; }
28256
28257   # Don't try to exec as it changes $[0], causing all sort of problems
28258   # (the dirname of $[0] is not the place where we might find the
28259   # original and so on.  Autoconf is especially sensitive to this).
28260   . "./$as_me.lineno"
28261   # Exit status is that of the last command.
28262   exit
28263 }
28264
28265
28266 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28267   as_dirname=dirname
28268 else
28269   as_dirname=false
28270 fi
28271
28272 ECHO_C= ECHO_N= ECHO_T=
28273 case `echo -n x` in
28274 -n*)
28275   case `echo 'x\c'` in
28276   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28277   *)   ECHO_C='\c';;
28278   esac;;
28279 *)
28280   ECHO_N='-n';;
28281 esac
28282 if expr a : '\(a\)' >/dev/null 2>&1 &&
28283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28284   as_expr=expr
28285 else
28286   as_expr=false
28287 fi
28288
28289 rm -f conf$$ conf$$.exe conf$$.file
28290 if test -d conf$$.dir; then
28291   rm -f conf$$.dir/conf$$.file
28292 else
28293   rm -f conf$$.dir
28294   mkdir conf$$.dir 2>/dev/null
28295 fi
28296 if (echo >conf$$.file) 2>/dev/null; then
28297   if ln -s conf$$.file conf$$ 2>/dev/null; then
28298     as_ln_s='ln -s'
28299     # ... but there are two gotchas:
28300     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28301     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28302     # In both cases, we have to default to `cp -p'.
28303     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28304       as_ln_s='cp -p'
28305   elif ln conf$$.file conf$$ 2>/dev/null; then
28306     as_ln_s=ln
28307   else
28308     as_ln_s='cp -p'
28309   fi
28310 else
28311   as_ln_s='cp -p'
28312 fi
28313 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28314 rmdir conf$$.dir 2>/dev/null
28315
28316 if mkdir -p . 2>/dev/null; then
28317   as_mkdir_p=:
28318 else
28319   test -d ./-p && rmdir ./-p
28320   as_mkdir_p=false
28321 fi
28322
28323 if test -x / >/dev/null 2>&1; then
28324   as_test_x='test -x'
28325 else
28326   if ls -dL / >/dev/null 2>&1; then
28327     as_ls_L_option=L
28328   else
28329     as_ls_L_option=
28330   fi
28331   as_test_x='
28332     eval sh -c '\''
28333       if test -d "$1"; then
28334         test -d "$1/.";
28335       else
28336         case $1 in
28337         -*)set "./$1";;
28338         esac;
28339         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28340         ???[sx]*):;;*)false;;esac;fi
28341     '\'' sh
28342   '
28343 fi
28344 as_executable_p=$as_test_x
28345
28346 # Sed expression to map a string onto a valid CPP name.
28347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28348
28349 # Sed expression to map a string onto a valid variable name.
28350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28351
28352
28353 exec 6>&1
28354
28355 # Save the log message, to keep $[0] and so on meaningful, and to
28356 # report actual input values of CONFIG_FILES etc. instead of their
28357 # values after options handling.
28358 ac_log="
28359 This file was extended by linux nfs-utils $as_me 1.2.2, which was
28360 generated by GNU Autoconf 2.63.  Invocation command line was
28361
28362   CONFIG_FILES    = $CONFIG_FILES
28363   CONFIG_HEADERS  = $CONFIG_HEADERS
28364   CONFIG_LINKS    = $CONFIG_LINKS
28365   CONFIG_COMMANDS = $CONFIG_COMMANDS
28366   $ $0 $@
28367
28368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28369 "
28370
28371 _ACEOF
28372
28373 case $ac_config_files in *"
28374 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28375 esac
28376
28377 case $ac_config_headers in *"
28378 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28379 esac
28380
28381
28382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28383 # Files that config.status was made for.
28384 config_files="$ac_config_files"
28385 config_headers="$ac_config_headers"
28386 config_commands="$ac_config_commands"
28387
28388 _ACEOF
28389
28390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28391 ac_cs_usage="\
28392 \`$as_me' instantiates files from templates according to the
28393 current configuration.
28394
28395 Usage: $0 [OPTION]... [FILE]...
28396
28397   -h, --help       print this help, then exit
28398   -V, --version    print version number and configuration settings, then exit
28399   -q, --quiet, --silent
28400                    do not print progress messages
28401   -d, --debug      don't remove temporary files
28402       --recheck    update $as_me by reconfiguring in the same conditions
28403       --file=FILE[:TEMPLATE]
28404                    instantiate the configuration file FILE
28405       --header=FILE[:TEMPLATE]
28406                    instantiate the configuration header FILE
28407
28408 Configuration files:
28409 $config_files
28410
28411 Configuration headers:
28412 $config_headers
28413
28414 Configuration commands:
28415 $config_commands
28416
28417 Report bugs to <bug-autoconf@gnu.org>."
28418
28419 _ACEOF
28420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28421 ac_cs_version="\\
28422 linux nfs-utils config.status 1.2.2
28423 configured by $0, generated by GNU Autoconf 2.63,
28424   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28425
28426 Copyright (C) 2008 Free Software Foundation, Inc.
28427 This config.status script is free software; the Free Software Foundation
28428 gives unlimited permission to copy, distribute and modify it."
28429
28430 ac_pwd='$ac_pwd'
28431 srcdir='$srcdir'
28432 INSTALL='$INSTALL'
28433 MKDIR_P='$MKDIR_P'
28434 AWK='$AWK'
28435 test -n "\$AWK" || AWK=awk
28436 _ACEOF
28437
28438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28439 # The default lists apply if the user does not specify any file.
28440 ac_need_defaults=:
28441 while test $# != 0
28442 do
28443   case $1 in
28444   --*=*)
28445     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28446     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28447     ac_shift=:
28448     ;;
28449   *)
28450     ac_option=$1
28451     ac_optarg=$2
28452     ac_shift=shift
28453     ;;
28454   esac
28455
28456   case $ac_option in
28457   # Handling of the options.
28458   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28459     ac_cs_recheck=: ;;
28460   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28461     $as_echo "$ac_cs_version"; exit ;;
28462   --debug | --debu | --deb | --de | --d | -d )
28463     debug=: ;;
28464   --file | --fil | --fi | --f )
28465     $ac_shift
28466     case $ac_optarg in
28467     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28468     esac
28469     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
28470     ac_need_defaults=false;;
28471   --header | --heade | --head | --hea )
28472     $ac_shift
28473     case $ac_optarg in
28474     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28475     esac
28476     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
28477     ac_need_defaults=false;;
28478   --he | --h)
28479     # Conflict between --help and --header
28480     { $as_echo "$as_me: error: ambiguous option: $1
28481 Try \`$0 --help' for more information." >&2
28482    { (exit 1); exit 1; }; };;
28483   --help | --hel | -h )
28484     $as_echo "$ac_cs_usage"; exit ;;
28485   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28486   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28487     ac_cs_silent=: ;;
28488
28489   # This is an error.
28490   -*) { $as_echo "$as_me: error: unrecognized option: $1
28491 Try \`$0 --help' for more information." >&2
28492    { (exit 1); exit 1; }; } ;;
28493
28494   *) ac_config_targets="$ac_config_targets $1"
28495      ac_need_defaults=false ;;
28496
28497   esac
28498   shift
28499 done
28500
28501 ac_configure_extra_args=
28502
28503 if $ac_cs_silent; then
28504   exec 6>/dev/null
28505   ac_configure_extra_args="$ac_configure_extra_args --silent"
28506 fi
28507
28508 _ACEOF
28509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28510 if \$ac_cs_recheck; then
28511   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28512   shift
28513   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28514   CONFIG_SHELL='$SHELL'
28515   export CONFIG_SHELL
28516   exec "\$@"
28517 fi
28518
28519 _ACEOF
28520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28521 exec 5>>config.log
28522 {
28523   echo
28524   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28525 ## Running $as_me. ##
28526 _ASBOX
28527   $as_echo "$ac_log"
28528 } >&5
28529
28530 _ACEOF
28531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28532 #
28533 # INIT-COMMANDS
28534 #
28535 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28536
28537
28538 # The HP-UX ksh and POSIX shell print the target directory to stdout
28539 # if CDPATH is set.
28540 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28541
28542 sed_quote_subst='$sed_quote_subst'
28543 double_quote_subst='$double_quote_subst'
28544 delay_variable_subst='$delay_variable_subst'
28545 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28546 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28547 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28548 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28549 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28550 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28551 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28552 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28553 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28554 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28555 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28556 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28557 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28558 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28559 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28560 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28561 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28562 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28563 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28564 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28565 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28566 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28567 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28568 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28569 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28570 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28571 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28572 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28573 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28574 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28575 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28576 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28577 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28578 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28579 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28580 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28581 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28582 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28583 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28584 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28585 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28586 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28587 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28588 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28589 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"`'
28590 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"`'
28591 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28592 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28593 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28594 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28595 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28596 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28597 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28598 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28599 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28600 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28601 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28602 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28603 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28604 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28605 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28606 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28607 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28608 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28609 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28610 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28611 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28612 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28613 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28614 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28615 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28616 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28617 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28618 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28619 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28620 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28621 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28622 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28623 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28624 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28625 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28626 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28627 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28628 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28629 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28630 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28631 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28632 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28633 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28634 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28635 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28636 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28637 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28638 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28639 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28640 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28641 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28642 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28643 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28644 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28645 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28646 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28647 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28648 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28649 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28650 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28651 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28652 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28653 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28654 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28655 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28656 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28657 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28658 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28659 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28660 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28661 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28662 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28663 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
28664 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28665 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28666 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28667 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28668 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28669 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28670 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28671 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28672 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28673 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28674 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28675 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28676 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28677 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28678 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28679 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28680 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28681 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28682 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28683 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28684 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28685 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28686 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28687 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28688 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28689 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28690 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28691 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28692 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28693 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28694 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28695 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28696 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28697 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28698 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28699 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28700 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28701 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28702 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28703 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28704 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28705 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28706 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28707 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28708 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28709 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28710 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28711 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28712 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28713 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28714 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28715 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28716
28717 LTCC='$LTCC'
28718 LTCFLAGS='$LTCFLAGS'
28719 compiler='$compiler_DEFAULT'
28720
28721 # Quote evaled strings.
28722 for var in SED \
28723 GREP \
28724 EGREP \
28725 FGREP \
28726 LD \
28727 NM \
28728 LN_S \
28729 lt_SP2NL \
28730 lt_NL2SP \
28731 reload_flag \
28732 OBJDUMP \
28733 deplibs_check_method \
28734 file_magic_cmd \
28735 AR \
28736 AR_FLAGS \
28737 STRIP \
28738 RANLIB \
28739 CC \
28740 CFLAGS \
28741 compiler \
28742 lt_cv_sys_global_symbol_pipe \
28743 lt_cv_sys_global_symbol_to_cdecl \
28744 lt_cv_sys_global_symbol_to_c_name_address \
28745 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28746 SHELL \
28747 ECHO \
28748 lt_prog_compiler_no_builtin_flag \
28749 lt_prog_compiler_wl \
28750 lt_prog_compiler_pic \
28751 lt_prog_compiler_static \
28752 lt_cv_prog_compiler_c_o \
28753 need_locks \
28754 DSYMUTIL \
28755 NMEDIT \
28756 LIPO \
28757 OTOOL \
28758 OTOOL64 \
28759 shrext_cmds \
28760 export_dynamic_flag_spec \
28761 whole_archive_flag_spec \
28762 compiler_needs_object \
28763 with_gnu_ld \
28764 allow_undefined_flag \
28765 no_undefined_flag \
28766 hardcode_libdir_flag_spec \
28767 hardcode_libdir_flag_spec_ld \
28768 hardcode_libdir_separator \
28769 fix_srcfile_path \
28770 exclude_expsyms \
28771 include_expsyms \
28772 file_list_spec \
28773 variables_saved_for_relink \
28774 libname_spec \
28775 library_names_spec \
28776 soname_spec \
28777 finish_eval \
28778 old_striplib \
28779 striplib \
28780 compiler_lib_search_dirs \
28781 predep_objects \
28782 postdep_objects \
28783 predeps \
28784 postdeps \
28785 compiler_lib_search_path \
28786 LD_CXX \
28787 compiler_CXX \
28788 lt_prog_compiler_no_builtin_flag_CXX \
28789 lt_prog_compiler_wl_CXX \
28790 lt_prog_compiler_pic_CXX \
28791 lt_prog_compiler_static_CXX \
28792 lt_cv_prog_compiler_c_o_CXX \
28793 export_dynamic_flag_spec_CXX \
28794 whole_archive_flag_spec_CXX \
28795 compiler_needs_object_CXX \
28796 with_gnu_ld_CXX \
28797 allow_undefined_flag_CXX \
28798 no_undefined_flag_CXX \
28799 hardcode_libdir_flag_spec_CXX \
28800 hardcode_libdir_flag_spec_ld_CXX \
28801 hardcode_libdir_separator_CXX \
28802 fix_srcfile_path_CXX \
28803 exclude_expsyms_CXX \
28804 include_expsyms_CXX \
28805 file_list_spec_CXX \
28806 compiler_lib_search_dirs_CXX \
28807 predep_objects_CXX \
28808 postdep_objects_CXX \
28809 predeps_CXX \
28810 postdeps_CXX \
28811 compiler_lib_search_path_CXX; do
28812     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28813     *[\\\\\\\`\\"\\\$]*)
28814       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28815       ;;
28816     *)
28817       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28818       ;;
28819     esac
28820 done
28821
28822 # Double-quote double-evaled strings.
28823 for var in reload_cmds \
28824 old_postinstall_cmds \
28825 old_postuninstall_cmds \
28826 old_archive_cmds \
28827 extract_expsyms_cmds \
28828 old_archive_from_new_cmds \
28829 old_archive_from_expsyms_cmds \
28830 archive_cmds \
28831 archive_expsym_cmds \
28832 module_cmds \
28833 module_expsym_cmds \
28834 export_symbols_cmds \
28835 prelink_cmds \
28836 postinstall_cmds \
28837 postuninstall_cmds \
28838 finish_cmds \
28839 sys_lib_search_path_spec \
28840 sys_lib_dlsearch_path_spec \
28841 old_archive_cmds_CXX \
28842 old_archive_from_new_cmds_CXX \
28843 old_archive_from_expsyms_cmds_CXX \
28844 archive_cmds_CXX \
28845 archive_expsym_cmds_CXX \
28846 module_cmds_CXX \
28847 module_expsym_cmds_CXX \
28848 export_symbols_cmds_CXX \
28849 prelink_cmds_CXX; do
28850     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28851     *[\\\\\\\`\\"\\\$]*)
28852       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28853       ;;
28854     *)
28855       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28856       ;;
28857     esac
28858 done
28859
28860 # Fix-up fallback echo if it was mangled by the above quoting rules.
28861 case \$lt_ECHO in
28862 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28863   ;;
28864 esac
28865
28866 ac_aux_dir='$ac_aux_dir'
28867 xsi_shell='$xsi_shell'
28868 lt_shell_append='$lt_shell_append'
28869
28870 # See if we are running on zsh, and set the options which allow our
28871 # commands through without removal of \ escapes INIT.
28872 if test -n "\${ZSH_VERSION+set}" ; then
28873    setopt NO_GLOB_SUBST
28874 fi
28875
28876
28877     PACKAGE='$PACKAGE'
28878     VERSION='$VERSION'
28879     TIMESTAMP='$TIMESTAMP'
28880     RM='$RM'
28881     ofile='$ofile'
28882
28883
28884
28885
28886
28887
28888 _ACEOF
28889
28890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28891
28892 # Handling of arguments.
28893 for ac_config_target in $ac_config_targets
28894 do
28895   case $ac_config_target in
28896     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28897     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28898     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28899     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28900     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28901     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28902     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28903     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28904     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28905     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28906     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28907     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28908     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28909     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28910     "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
28911     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28912     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28913     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28914     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28915     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28916     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28917     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28918     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28919     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28920     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
28921     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28922     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28923     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28924     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28925     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28926     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28927     "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
28928
28929   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28930 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28931    { (exit 1); exit 1; }; };;
28932   esac
28933 done
28934
28935
28936 # If the user did not use the arguments to specify the items to instantiate,
28937 # then the envvar interface is used.  Set only those that are not.
28938 # We use the long form for the default assignment because of an extremely
28939 # bizarre bug on SunOS 4.1.3.
28940 if $ac_need_defaults; then
28941   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28942   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28943   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28944 fi
28945
28946 # Have a temporary directory for convenience.  Make it in the build tree
28947 # simply because there is no reason against having it here, and in addition,
28948 # creating and moving files from /tmp can sometimes cause problems.
28949 # Hook for its removal unless debugging.
28950 # Note that there is a small window in which the directory will not be cleaned:
28951 # after its creation but before its name has been assigned to `$tmp'.
28952 $debug ||
28953 {
28954   tmp=
28955   trap 'exit_status=$?
28956   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28957 ' 0
28958   trap '{ (exit 1); exit 1; }' 1 2 13 15
28959 }
28960 # Create a (secure) tmp directory for tmp files.
28961
28962 {
28963   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28964   test -n "$tmp" && test -d "$tmp"
28965 }  ||
28966 {
28967   tmp=./conf$$-$RANDOM
28968   (umask 077 && mkdir "$tmp")
28969 } ||
28970 {
28971    $as_echo "$as_me: cannot create a temporary directory in ." >&2
28972    { (exit 1); exit 1; }
28973 }
28974
28975 # Set up the scripts for CONFIG_FILES section.
28976 # No need to generate them if there are no CONFIG_FILES.
28977 # This happens for instance with `./config.status config.h'.
28978 if test -n "$CONFIG_FILES"; then
28979
28980
28981 ac_cr='\r'
28982 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28983 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28984   ac_cs_awk_cr='\\r'
28985 else
28986   ac_cs_awk_cr=$ac_cr
28987 fi
28988
28989 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28990 _ACEOF
28991
28992
28993 {
28994   echo "cat >conf$$subs.awk <<_ACEOF" &&
28995   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28996   echo "_ACEOF"
28997 } >conf$$subs.sh ||
28998   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28999 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29000    { (exit 1); exit 1; }; }
29001 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29002 ac_delim='%!_!# '
29003 for ac_last_try in false false false false false :; do
29004   . ./conf$$subs.sh ||
29005     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29006 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29007    { (exit 1); exit 1; }; }
29008
29009   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29010   if test $ac_delim_n = $ac_delim_num; then
29011     break
29012   elif $ac_last_try; then
29013     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29014 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29015    { (exit 1); exit 1; }; }
29016   else
29017     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29018   fi
29019 done
29020 rm -f conf$$subs.sh
29021
29022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29023 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29024 _ACEOF
29025 sed -n '
29026 h
29027 s/^/S["/; s/!.*/"]=/
29028 p
29029 g
29030 s/^[^!]*!//
29031 :repl
29032 t repl
29033 s/'"$ac_delim"'$//
29034 t delim
29035 :nl
29036 h
29037 s/\(.\{148\}\).*/\1/
29038 t more1
29039 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29040 p
29041 n
29042 b repl
29043 :more1
29044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29045 p
29046 g
29047 s/.\{148\}//
29048 t nl
29049 :delim
29050 h
29051 s/\(.\{148\}\).*/\1/
29052 t more2
29053 s/["\\]/\\&/g; s/^/"/; s/$/"/
29054 p
29055 b
29056 :more2
29057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29058 p
29059 g
29060 s/.\{148\}//
29061 t delim
29062 ' <conf$$subs.awk | sed '
29063 /^[^""]/{
29064   N
29065   s/\n//
29066 }
29067 ' >>$CONFIG_STATUS || ac_write_fail=1
29068 rm -f conf$$subs.awk
29069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29070 _ACAWK
29071 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29072   for (key in S) S_is_set[key] = 1
29073   FS = "\a"
29074
29075 }
29076 {
29077   line = $ 0
29078   nfields = split(line, field, "@")
29079   substed = 0
29080   len = length(field[1])
29081   for (i = 2; i < nfields; i++) {
29082     key = field[i]
29083     keylen = length(key)
29084     if (S_is_set[key]) {
29085       value = S[key]
29086       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29087       len += length(value) + length(field[++i])
29088       substed = 1
29089     } else
29090       len += 1 + keylen
29091   }
29092
29093   print line
29094 }
29095
29096 _ACAWK
29097 _ACEOF
29098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29099 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29100   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29101 else
29102   cat
29103 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29104   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29105 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29106    { (exit 1); exit 1; }; }
29107 _ACEOF
29108
29109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29111 # trailing colons and then remove the whole line if VPATH becomes empty
29112 # (actually we leave an empty line to preserve line numbers).
29113 if test "x$srcdir" = x.; then
29114   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29115 s/:*\$(srcdir):*/:/
29116 s/:*\${srcdir}:*/:/
29117 s/:*@srcdir@:*/:/
29118 s/^\([^=]*=[     ]*\):*/\1/
29119 s/:*$//
29120 s/^[^=]*=[       ]*$//
29121 }'
29122 fi
29123
29124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29125 fi # test -n "$CONFIG_FILES"
29126
29127 # Set up the scripts for CONFIG_HEADERS section.
29128 # No need to generate them if there are no CONFIG_HEADERS.
29129 # This happens for instance with `./config.status Makefile'.
29130 if test -n "$CONFIG_HEADERS"; then
29131 cat >"$tmp/defines.awk" <<\_ACAWK ||
29132 BEGIN {
29133 _ACEOF
29134
29135 # Transform confdefs.h into an awk script `defines.awk', embedded as
29136 # here-document in config.status, that substitutes the proper values into
29137 # config.h.in to produce config.h.
29138
29139 # Create a delimiter string that does not exist in confdefs.h, to ease
29140 # handling of long lines.
29141 ac_delim='%!_!# '
29142 for ac_last_try in false false :; do
29143   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29144   if test -z "$ac_t"; then
29145     break
29146   elif $ac_last_try; then
29147     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29148 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29149    { (exit 1); exit 1; }; }
29150   else
29151     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29152   fi
29153 done
29154
29155 # For the awk script, D is an array of macro values keyed by name,
29156 # likewise P contains macro parameters if any.  Preserve backslash
29157 # newline sequences.
29158
29159 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29160 sed -n '
29161 s/.\{148\}/&'"$ac_delim"'/g
29162 t rset
29163 :rset
29164 s/^[     ]*#[    ]*define[       ][      ]*/ /
29165 t def
29166 d
29167 :def
29168 s/\\$//
29169 t bsnl
29170 s/["\\]/\\&/g
29171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29172 D["\1"]=" \3"/p
29173 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29174 d
29175 :bsnl
29176 s/["\\]/\\&/g
29177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29178 D["\1"]=" \3\\\\\\n"\\/p
29179 t cont
29180 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29181 t cont
29182 d
29183 :cont
29184 n
29185 s/.\{148\}/&'"$ac_delim"'/g
29186 t clear
29187 :clear
29188 s/\\$//
29189 t bsnlc
29190 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29191 d
29192 :bsnlc
29193 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29194 b cont
29195 ' <confdefs.h | sed '
29196 s/'"$ac_delim"'/"\\\
29197 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29198
29199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29200   for (key in D) D_is_set[key] = 1
29201   FS = "\a"
29202 }
29203 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29204   line = \$ 0
29205   split(line, arg, " ")
29206   if (arg[1] == "#") {
29207     defundef = arg[2]
29208     mac1 = arg[3]
29209   } else {
29210     defundef = substr(arg[1], 2)
29211     mac1 = arg[2]
29212   }
29213   split(mac1, mac2, "(") #)
29214   macro = mac2[1]
29215   prefix = substr(line, 1, index(line, defundef) - 1)
29216   if (D_is_set[macro]) {
29217     # Preserve the white space surrounding the "#".
29218     print prefix "define", macro P[macro] D[macro]
29219     next
29220   } else {
29221     # Replace #undef with comments.  This is necessary, for example,
29222     # in the case of _POSIX_SOURCE, which is predefined and required
29223     # on some systems where configure will not decide to define it.
29224     if (defundef == "undef") {
29225       print "/*", prefix defundef, macro, "*/"
29226       next
29227     }
29228   }
29229 }
29230 { print }
29231 _ACAWK
29232 _ACEOF
29233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29234   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29235 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29236    { (exit 1); exit 1; }; }
29237 fi # test -n "$CONFIG_HEADERS"
29238
29239
29240 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29241 shift
29242 for ac_tag
29243 do
29244   case $ac_tag in
29245   :[FHLC]) ac_mode=$ac_tag; continue;;
29246   esac
29247   case $ac_mode$ac_tag in
29248   :[FHL]*:*);;
29249   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29250 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29251    { (exit 1); exit 1; }; };;
29252   :[FH]-) ac_tag=-:-;;
29253   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29254   esac
29255   ac_save_IFS=$IFS
29256   IFS=:
29257   set x $ac_tag
29258   IFS=$ac_save_IFS
29259   shift
29260   ac_file=$1
29261   shift
29262
29263   case $ac_mode in
29264   :L) ac_source=$1;;
29265   :[FH])
29266     ac_file_inputs=
29267     for ac_f
29268     do
29269       case $ac_f in
29270       -) ac_f="$tmp/stdin";;
29271       *) # Look for the file first in the build tree, then in the source tree
29272          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29273          # because $ac_f cannot contain `:'.
29274          test -f "$ac_f" ||
29275            case $ac_f in
29276            [\\/$]*) false;;
29277            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29278            esac ||
29279            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29280 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29281    { (exit 1); exit 1; }; };;
29282       esac
29283       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29284       ac_file_inputs="$ac_file_inputs '$ac_f'"
29285     done
29286
29287     # Let's still pretend it is `configure' which instantiates (i.e., don't
29288     # use $as_me), people would be surprised to read:
29289     #    /* config.h.  Generated by config.status.  */
29290     configure_input='Generated from '`
29291           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29292         `' by configure.'
29293     if test x"$ac_file" != x-; then
29294       configure_input="$ac_file.  $configure_input"
29295       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29296 $as_echo "$as_me: creating $ac_file" >&6;}
29297     fi
29298     # Neutralize special characters interpreted by sed in replacement strings.
29299     case $configure_input in #(
29300     *\&* | *\|* | *\\* )
29301        ac_sed_conf_input=`$as_echo "$configure_input" |
29302        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29303     *) ac_sed_conf_input=$configure_input;;
29304     esac
29305
29306     case $ac_tag in
29307     *:-:* | *:-) cat >"$tmp/stdin" \
29308       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29310    { (exit 1); exit 1; }; } ;;
29311     esac
29312     ;;
29313   esac
29314
29315   ac_dir=`$as_dirname -- "$ac_file" ||
29316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29317          X"$ac_file" : 'X\(//\)[^/]' \| \
29318          X"$ac_file" : 'X\(//\)$' \| \
29319          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29320 $as_echo X"$ac_file" |
29321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29322             s//\1/
29323             q
29324           }
29325           /^X\(\/\/\)[^/].*/{
29326             s//\1/
29327             q
29328           }
29329           /^X\(\/\/\)$/{
29330             s//\1/
29331             q
29332           }
29333           /^X\(\/\).*/{
29334             s//\1/
29335             q
29336           }
29337           s/.*/./; q'`
29338   { as_dir="$ac_dir"
29339   case $as_dir in #(
29340   -*) as_dir=./$as_dir;;
29341   esac
29342   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29343     as_dirs=
29344     while :; do
29345       case $as_dir in #(
29346       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29347       *) as_qdir=$as_dir;;
29348       esac
29349       as_dirs="'$as_qdir' $as_dirs"
29350       as_dir=`$as_dirname -- "$as_dir" ||
29351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29352          X"$as_dir" : 'X\(//\)[^/]' \| \
29353          X"$as_dir" : 'X\(//\)$' \| \
29354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29355 $as_echo X"$as_dir" |
29356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29357             s//\1/
29358             q
29359           }
29360           /^X\(\/\/\)[^/].*/{
29361             s//\1/
29362             q
29363           }
29364           /^X\(\/\/\)$/{
29365             s//\1/
29366             q
29367           }
29368           /^X\(\/\).*/{
29369             s//\1/
29370             q
29371           }
29372           s/.*/./; q'`
29373       test -d "$as_dir" && break
29374     done
29375     test -z "$as_dirs" || eval "mkdir $as_dirs"
29376   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29377 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29378    { (exit 1); exit 1; }; }; }
29379   ac_builddir=.
29380
29381 case "$ac_dir" in
29382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29383 *)
29384   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29385   # A ".." for each directory in $ac_dir_suffix.
29386   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29387   case $ac_top_builddir_sub in
29388   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29389   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29390   esac ;;
29391 esac
29392 ac_abs_top_builddir=$ac_pwd
29393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29394 # for backward compatibility:
29395 ac_top_builddir=$ac_top_build_prefix
29396
29397 case $srcdir in
29398   .)  # We are building in place.
29399     ac_srcdir=.
29400     ac_top_srcdir=$ac_top_builddir_sub
29401     ac_abs_top_srcdir=$ac_pwd ;;
29402   [\\/]* | ?:[\\/]* )  # Absolute name.
29403     ac_srcdir=$srcdir$ac_dir_suffix;
29404     ac_top_srcdir=$srcdir
29405     ac_abs_top_srcdir=$srcdir ;;
29406   *) # Relative name.
29407     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29408     ac_top_srcdir=$ac_top_build_prefix$srcdir
29409     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29410 esac
29411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29412
29413
29414   case $ac_mode in
29415   :F)
29416   #
29417   # CONFIG_FILE
29418   #
29419
29420   case $INSTALL in
29421   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29422   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29423   esac
29424   ac_MKDIR_P=$MKDIR_P
29425   case $MKDIR_P in
29426   [\\/$]* | ?:[\\/]* ) ;;
29427   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29428   esac
29429 _ACEOF
29430
29431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29432 # If the template does not know about datarootdir, expand it.
29433 # FIXME: This hack should be removed a few years after 2.60.
29434 ac_datarootdir_hack=; ac_datarootdir_seen=
29435
29436 ac_sed_dataroot='
29437 /datarootdir/ {
29438   p
29439   q
29440 }
29441 /@datadir@/p
29442 /@docdir@/p
29443 /@infodir@/p
29444 /@localedir@/p
29445 /@mandir@/p
29446 '
29447 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29448 *datarootdir*) ac_datarootdir_seen=yes;;
29449 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29450   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29451 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29452 _ACEOF
29453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29454   ac_datarootdir_hack='
29455   s&@datadir@&$datadir&g
29456   s&@docdir@&$docdir&g
29457   s&@infodir@&$infodir&g
29458   s&@localedir@&$localedir&g
29459   s&@mandir@&$mandir&g
29460     s&\\\${datarootdir}&$datarootdir&g' ;;
29461 esac
29462 _ACEOF
29463
29464 # Neutralize VPATH when `$srcdir' = `.'.
29465 # Shell code in configure.ac might set extrasub.
29466 # FIXME: do we really want to maintain this feature?
29467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29468 ac_sed_extra="$ac_vpsub
29469 $extrasub
29470 _ACEOF
29471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29472 :t
29473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29474 s|@configure_input@|$ac_sed_conf_input|;t t
29475 s&@top_builddir@&$ac_top_builddir_sub&;t t
29476 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29477 s&@srcdir@&$ac_srcdir&;t t
29478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29479 s&@top_srcdir@&$ac_top_srcdir&;t t
29480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29481 s&@builddir@&$ac_builddir&;t t
29482 s&@abs_builddir@&$ac_abs_builddir&;t t
29483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29484 s&@INSTALL@&$ac_INSTALL&;t t
29485 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29486 $ac_datarootdir_hack
29487 "
29488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29489   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29490 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29491    { (exit 1); exit 1; }; }
29492
29493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29494   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29495   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29496   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29497 which seems to be undefined.  Please make sure it is defined." >&5
29498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29499 which seems to be undefined.  Please make sure it is defined." >&2;}
29500
29501   rm -f "$tmp/stdin"
29502   case $ac_file in
29503   -) cat "$tmp/out" && rm -f "$tmp/out";;
29504   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29505   esac \
29506   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29507 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29508    { (exit 1); exit 1; }; }
29509  ;;
29510   :H)
29511   #
29512   # CONFIG_HEADER
29513   #
29514   if test x"$ac_file" != x-; then
29515     {
29516       $as_echo "/* $configure_input  */" \
29517       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29518     } >"$tmp/config.h" \
29519       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29520 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29521    { (exit 1); exit 1; }; }
29522     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29523       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29524 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29525     else
29526       rm -f "$ac_file"
29527       mv "$tmp/config.h" "$ac_file" \
29528         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29529 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29530    { (exit 1); exit 1; }; }
29531     fi
29532   else
29533     $as_echo "/* $configure_input  */" \
29534       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29535       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29536 $as_echo "$as_me: error: could not create -" >&2;}
29537    { (exit 1); exit 1; }; }
29538   fi
29539 # Compute "$ac_file"'s index in $config_headers.
29540 _am_arg="$ac_file"
29541 _am_stamp_count=1
29542 for _am_header in $config_headers :; do
29543   case $_am_header in
29544     $_am_arg | $_am_arg:* )
29545       break ;;
29546     * )
29547       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29548   esac
29549 done
29550 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29551 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29552          X"$_am_arg" : 'X\(//\)[^/]' \| \
29553          X"$_am_arg" : 'X\(//\)$' \| \
29554          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29555 $as_echo X"$_am_arg" |
29556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29557             s//\1/
29558             q
29559           }
29560           /^X\(\/\/\)[^/].*/{
29561             s//\1/
29562             q
29563           }
29564           /^X\(\/\/\)$/{
29565             s//\1/
29566             q
29567           }
29568           /^X\(\/\).*/{
29569             s//\1/
29570             q
29571           }
29572           s/.*/./; q'`/stamp-h$_am_stamp_count
29573  ;;
29574
29575   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29576 $as_echo "$as_me: executing $ac_file commands" >&6;}
29577  ;;
29578   esac
29579
29580
29581   case $ac_file$ac_mode in
29582     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29583   # Autoconf 2.62 quotes --file arguments for eval, but not when files
29584   # are listed without --file.  Let's play safe and only enable the eval
29585   # if we detect the quoting.
29586   case $CONFIG_FILES in
29587   *\'*) eval set x "$CONFIG_FILES" ;;
29588   *)   set x $CONFIG_FILES ;;
29589   esac
29590   shift
29591   for mf
29592   do
29593     # Strip MF so we end up with the name of the file.
29594     mf=`echo "$mf" | sed -e 's/:.*$//'`
29595     # Check whether this is an Automake generated Makefile or not.
29596     # We used to match only the files named `Makefile.in', but
29597     # some people rename them; so instead we look at the file content.
29598     # Grep'ing the first line is not enough: some people post-process
29599     # each Makefile.in and add a new line on top of each file to say so.
29600     # Grep'ing the whole file is not good either: AIX grep has a line
29601     # limit of 2048, but all sed's we know have understand at least 4000.
29602     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29603       dirpart=`$as_dirname -- "$mf" ||
29604 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29605          X"$mf" : 'X\(//\)[^/]' \| \
29606          X"$mf" : 'X\(//\)$' \| \
29607          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29608 $as_echo X"$mf" |
29609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29610             s//\1/
29611             q
29612           }
29613           /^X\(\/\/\)[^/].*/{
29614             s//\1/
29615             q
29616           }
29617           /^X\(\/\/\)$/{
29618             s//\1/
29619             q
29620           }
29621           /^X\(\/\).*/{
29622             s//\1/
29623             q
29624           }
29625           s/.*/./; q'`
29626     else
29627       continue
29628     fi
29629     # Extract the definition of DEPDIR, am__include, and am__quote
29630     # from the Makefile without running `make'.
29631     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29632     test -z "$DEPDIR" && continue
29633     am__include=`sed -n 's/^am__include = //p' < "$mf"`
29634     test -z "am__include" && continue
29635     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29636     # When using ansi2knr, U may be empty or an underscore; expand it
29637     U=`sed -n 's/^U = //p' < "$mf"`
29638     # Find all dependency output files, they are included files with
29639     # $(DEPDIR) in their names.  We invoke sed twice because it is the
29640     # simplest approach to changing $(DEPDIR) to its actual value in the
29641     # expansion.
29642     for file in `sed -n "
29643       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29644          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29645       # Make sure the directory exists.
29646       test -f "$dirpart/$file" && continue
29647       fdir=`$as_dirname -- "$file" ||
29648 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29649          X"$file" : 'X\(//\)[^/]' \| \
29650          X"$file" : 'X\(//\)$' \| \
29651          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29652 $as_echo X"$file" |
29653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29654             s//\1/
29655             q
29656           }
29657           /^X\(\/\/\)[^/].*/{
29658             s//\1/
29659             q
29660           }
29661           /^X\(\/\/\)$/{
29662             s//\1/
29663             q
29664           }
29665           /^X\(\/\).*/{
29666             s//\1/
29667             q
29668           }
29669           s/.*/./; q'`
29670       { as_dir=$dirpart/$fdir
29671   case $as_dir in #(
29672   -*) as_dir=./$as_dir;;
29673   esac
29674   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29675     as_dirs=
29676     while :; do
29677       case $as_dir in #(
29678       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29679       *) as_qdir=$as_dir;;
29680       esac
29681       as_dirs="'$as_qdir' $as_dirs"
29682       as_dir=`$as_dirname -- "$as_dir" ||
29683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29684          X"$as_dir" : 'X\(//\)[^/]' \| \
29685          X"$as_dir" : 'X\(//\)$' \| \
29686          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29687 $as_echo X"$as_dir" |
29688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29689             s//\1/
29690             q
29691           }
29692           /^X\(\/\/\)[^/].*/{
29693             s//\1/
29694             q
29695           }
29696           /^X\(\/\/\)$/{
29697             s//\1/
29698             q
29699           }
29700           /^X\(\/\).*/{
29701             s//\1/
29702             q
29703           }
29704           s/.*/./; q'`
29705       test -d "$as_dir" && break
29706     done
29707     test -z "$as_dirs" || eval "mkdir $as_dirs"
29708   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29709 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29710    { (exit 1); exit 1; }; }; }
29711       # echo "creating $dirpart/$file"
29712       echo '# dummy' > "$dirpart/$file"
29713     done
29714   done
29715 }
29716  ;;
29717     "libtool":C)
29718
29719     # See if we are running on zsh, and set the options which allow our
29720     # commands through without removal of \ escapes.
29721     if test -n "${ZSH_VERSION+set}" ; then
29722       setopt NO_GLOB_SUBST
29723     fi
29724
29725     cfgfile="${ofile}T"
29726     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29727     $RM "$cfgfile"
29728
29729     cat <<_LT_EOF >> "$cfgfile"
29730 #! $SHELL
29731
29732 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29733 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29735 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29736 #
29737 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29738 #                 2006, 2007, 2008 Free Software Foundation, Inc.
29739 #   Written by Gordon Matzigkeit, 1996
29740 #
29741 #   This file is part of GNU Libtool.
29742 #
29743 # GNU Libtool is free software; you can redistribute it and/or
29744 # modify it under the terms of the GNU General Public License as
29745 # published by the Free Software Foundation; either version 2 of
29746 # the License, or (at your option) any later version.
29747 #
29748 # As a special exception to the GNU General Public License,
29749 # if you distribute this file as part of a program or library that
29750 # is built using GNU Libtool, you may include this file under the
29751 # same distribution terms that you use for the rest of that program.
29752 #
29753 # GNU Libtool is distributed in the hope that it will be useful,
29754 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29755 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29756 # GNU General Public License for more details.
29757 #
29758 # You should have received a copy of the GNU General Public License
29759 # along with GNU Libtool; see the file COPYING.  If not, a copy
29760 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29761 # obtained by writing to the Free Software Foundation, Inc.,
29762 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29763
29764
29765 # The names of the tagged configurations supported by this script.
29766 available_tags="CXX "
29767
29768 # ### BEGIN LIBTOOL CONFIG
29769
29770 # Which release of libtool.m4 was used?
29771 macro_version=$macro_version
29772 macro_revision=$macro_revision
29773
29774 # Whether or not to build shared libraries.
29775 build_libtool_libs=$enable_shared
29776
29777 # Whether or not to build static libraries.
29778 build_old_libs=$enable_static
29779
29780 # What type of objects to build.
29781 pic_mode=$pic_mode
29782
29783 # Whether or not to optimize for fast installation.
29784 fast_install=$enable_fast_install
29785
29786 # The host system.
29787 host_alias=$host_alias
29788 host=$host
29789 host_os=$host_os
29790
29791 # The build system.
29792 build_alias=$build_alias
29793 build=$build
29794 build_os=$build_os
29795
29796 # A sed program that does not truncate output.
29797 SED=$lt_SED
29798
29799 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29800 Xsed="\$SED -e 1s/^X//"
29801
29802 # A grep program that handles long lines.
29803 GREP=$lt_GREP
29804
29805 # An ERE matcher.
29806 EGREP=$lt_EGREP
29807
29808 # A literal string matcher.
29809 FGREP=$lt_FGREP
29810
29811 # A BSD- or MS-compatible name lister.
29812 NM=$lt_NM
29813
29814 # Whether we need soft or hard links.
29815 LN_S=$lt_LN_S
29816
29817 # What is the maximum length of a command?
29818 max_cmd_len=$max_cmd_len
29819
29820 # Object file suffix (normally "o").
29821 objext=$ac_objext
29822
29823 # Executable file suffix (normally "").
29824 exeext=$exeext
29825
29826 # whether the shell understands "unset".
29827 lt_unset=$lt_unset
29828
29829 # turn spaces into newlines.
29830 SP2NL=$lt_lt_SP2NL
29831
29832 # turn newlines into spaces.
29833 NL2SP=$lt_lt_NL2SP
29834
29835 # How to create reloadable object files.
29836 reload_flag=$lt_reload_flag
29837 reload_cmds=$lt_reload_cmds
29838
29839 # An object symbol dumper.
29840 OBJDUMP=$lt_OBJDUMP
29841
29842 # Method to check whether dependent libraries are shared objects.
29843 deplibs_check_method=$lt_deplibs_check_method
29844
29845 # Command to use when deplibs_check_method == "file_magic".
29846 file_magic_cmd=$lt_file_magic_cmd
29847
29848 # The archiver.
29849 AR=$lt_AR
29850 AR_FLAGS=$lt_AR_FLAGS
29851
29852 # A symbol stripping program.
29853 STRIP=$lt_STRIP
29854
29855 # Commands used to install an old-style archive.
29856 RANLIB=$lt_RANLIB
29857 old_postinstall_cmds=$lt_old_postinstall_cmds
29858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29859
29860 # A C compiler.
29861 LTCC=$lt_CC
29862
29863 # LTCC compiler flags.
29864 LTCFLAGS=$lt_CFLAGS
29865
29866 # Take the output of nm and produce a listing of raw symbols and C names.
29867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29868
29869 # Transform the output of nm in a proper C declaration.
29870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29871
29872 # Transform the output of nm in a C name address pair.
29873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29874
29875 # Transform the output of nm in a C name address pair when lib prefix is needed.
29876 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29877
29878 # The name of the directory that contains temporary libtool files.
29879 objdir=$objdir
29880
29881 # Shell to use when invoking shell scripts.
29882 SHELL=$lt_SHELL
29883
29884 # An echo program that does not interpret backslashes.
29885 ECHO=$lt_ECHO
29886
29887 # Used to examine libraries when file_magic_cmd begins with "file".
29888 MAGIC_CMD=$MAGIC_CMD
29889
29890 # Must we lock files when doing compilation?
29891 need_locks=$lt_need_locks
29892
29893 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29894 DSYMUTIL=$lt_DSYMUTIL
29895
29896 # Tool to change global to local symbols on Mac OS X.
29897 NMEDIT=$lt_NMEDIT
29898
29899 # Tool to manipulate fat objects and archives on Mac OS X.
29900 LIPO=$lt_LIPO
29901
29902 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29903 OTOOL=$lt_OTOOL
29904
29905 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29906 OTOOL64=$lt_OTOOL64
29907
29908 # Old archive suffix (normally "a").
29909 libext=$libext
29910
29911 # Shared library suffix (normally ".so").
29912 shrext_cmds=$lt_shrext_cmds
29913
29914 # The commands to extract the exported symbol list from a shared archive.
29915 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29916
29917 # Variables whose values should be saved in libtool wrapper scripts and
29918 # restored at link time.
29919 variables_saved_for_relink=$lt_variables_saved_for_relink
29920
29921 # Do we need the "lib" prefix for modules?
29922 need_lib_prefix=$need_lib_prefix
29923
29924 # Do we need a version for libraries?
29925 need_version=$need_version
29926
29927 # Library versioning type.
29928 version_type=$version_type
29929
29930 # Shared library runtime path variable.
29931 runpath_var=$runpath_var
29932
29933 # Shared library path variable.
29934 shlibpath_var=$shlibpath_var
29935
29936 # Is shlibpath searched before the hard-coded library search path?
29937 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29938
29939 # Format of library name prefix.
29940 libname_spec=$lt_libname_spec
29941
29942 # List of archive names.  First name is the real one, the rest are links.
29943 # The last name is the one that the linker finds with -lNAME
29944 library_names_spec=$lt_library_names_spec
29945
29946 # The coded name of the library, if different from the real name.
29947 soname_spec=$lt_soname_spec
29948
29949 # Command to use after installation of a shared archive.
29950 postinstall_cmds=$lt_postinstall_cmds
29951
29952 # Command to use after uninstallation of a shared archive.
29953 postuninstall_cmds=$lt_postuninstall_cmds
29954
29955 # Commands used to finish a libtool library installation in a directory.
29956 finish_cmds=$lt_finish_cmds
29957
29958 # As "finish_cmds", except a single script fragment to be evaled but
29959 # not shown.
29960 finish_eval=$lt_finish_eval
29961
29962 # Whether we should hardcode library paths into libraries.
29963 hardcode_into_libs=$hardcode_into_libs
29964
29965 # Compile-time system search path for libraries.
29966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29967
29968 # Run-time system search path for libraries.
29969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29970
29971 # Whether dlopen is supported.
29972 dlopen_support=$enable_dlopen
29973
29974 # Whether dlopen of programs is supported.
29975 dlopen_self=$enable_dlopen_self
29976
29977 # Whether dlopen of statically linked programs is supported.
29978 dlopen_self_static=$enable_dlopen_self_static
29979
29980 # Commands to strip libraries.
29981 old_striplib=$lt_old_striplib
29982 striplib=$lt_striplib
29983
29984
29985 # The linker used to build libraries.
29986 LD=$lt_LD
29987
29988 # Commands used to build an old-style archive.
29989 old_archive_cmds=$lt_old_archive_cmds
29990
29991 # A language specific compiler.
29992 CC=$lt_compiler
29993
29994 # Is the compiler the GNU compiler?
29995 with_gcc=$GCC
29996
29997 # Compiler flag to turn off builtin functions.
29998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29999
30000 # How to pass a linker flag through the compiler.
30001 wl=$lt_lt_prog_compiler_wl
30002
30003 # Additional compiler flags for building library objects.
30004 pic_flag=$lt_lt_prog_compiler_pic
30005
30006 # Compiler flag to prevent dynamic linking.
30007 link_static_flag=$lt_lt_prog_compiler_static
30008
30009 # Does compiler simultaneously support -c and -o options?
30010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30011
30012 # Whether or not to add -lc for building shared libraries.
30013 build_libtool_need_lc=$archive_cmds_need_lc
30014
30015 # Whether or not to disallow shared libs when runtime libs are static.
30016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30017
30018 # Compiler flag to allow reflexive dlopens.
30019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30020
30021 # Compiler flag to generate shared objects directly from archives.
30022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30023
30024 # Whether the compiler copes with passing no objects directly.
30025 compiler_needs_object=$lt_compiler_needs_object
30026
30027 # Create an old-style archive from a shared archive.
30028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30029
30030 # Create a temporary old-style archive to link instead of a shared archive.
30031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30032
30033 # Commands used to build a shared archive.
30034 archive_cmds=$lt_archive_cmds
30035 archive_expsym_cmds=$lt_archive_expsym_cmds
30036
30037 # Commands used to build a loadable module if different from building
30038 # a shared archive.
30039 module_cmds=$lt_module_cmds
30040 module_expsym_cmds=$lt_module_expsym_cmds
30041
30042 # Whether we are building with GNU ld or not.
30043 with_gnu_ld=$lt_with_gnu_ld
30044
30045 # Flag that allows shared libraries with undefined symbols to be built.
30046 allow_undefined_flag=$lt_allow_undefined_flag
30047
30048 # Flag that enforces no undefined symbols.
30049 no_undefined_flag=$lt_no_undefined_flag
30050
30051 # Flag to hardcode \$libdir into a binary during linking.
30052 # This must work even if \$libdir does not exist
30053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30054
30055 # If ld is used when linking, flag to hardcode \$libdir into a binary
30056 # during linking.  This must work even if \$libdir does not exist.
30057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30058
30059 # Whether we need a single "-rpath" flag with a separated argument.
30060 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30061
30062 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30063 # DIR into the resulting binary.
30064 hardcode_direct=$hardcode_direct
30065
30066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30067 # DIR into the resulting binary and the resulting library dependency is
30068 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30069 # library is relocated.
30070 hardcode_direct_absolute=$hardcode_direct_absolute
30071
30072 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30073 # into the resulting binary.
30074 hardcode_minus_L=$hardcode_minus_L
30075
30076 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30077 # into the resulting binary.
30078 hardcode_shlibpath_var=$hardcode_shlibpath_var
30079
30080 # Set to "yes" if building a shared library automatically hardcodes DIR
30081 # into the library and all subsequent libraries and executables linked
30082 # against it.
30083 hardcode_automatic=$hardcode_automatic
30084
30085 # Set to yes if linker adds runtime paths of dependent libraries
30086 # to runtime path list.
30087 inherit_rpath=$inherit_rpath
30088
30089 # Whether libtool must link a program against all its dependency libraries.
30090 link_all_deplibs=$link_all_deplibs
30091
30092 # Fix the shell variable \$srcfile for the compiler.
30093 fix_srcfile_path=$lt_fix_srcfile_path
30094
30095 # Set to "yes" if exported symbols are required.
30096 always_export_symbols=$always_export_symbols
30097
30098 # The commands to list exported symbols.
30099 export_symbols_cmds=$lt_export_symbols_cmds
30100
30101 # Symbols that should not be listed in the preloaded symbols.
30102 exclude_expsyms=$lt_exclude_expsyms
30103
30104 # Symbols that must always be exported.
30105 include_expsyms=$lt_include_expsyms
30106
30107 # Commands necessary for linking programs (against libraries) with templates.
30108 prelink_cmds=$lt_prelink_cmds
30109
30110 # Specify filename containing input files.
30111 file_list_spec=$lt_file_list_spec
30112
30113 # How to hardcode a shared library path into an executable.
30114 hardcode_action=$hardcode_action
30115
30116 # The directories searched by this compiler when creating a shared library.
30117 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30118
30119 # Dependencies to place before and after the objects being linked to
30120 # create a shared library.
30121 predep_objects=$lt_predep_objects
30122 postdep_objects=$lt_postdep_objects
30123 predeps=$lt_predeps
30124 postdeps=$lt_postdeps
30125
30126 # The library search path used internally by the compiler when linking
30127 # a shared library.
30128 compiler_lib_search_path=$lt_compiler_lib_search_path
30129
30130 # ### END LIBTOOL CONFIG
30131
30132 _LT_EOF
30133
30134   case $host_os in
30135   aix3*)
30136     cat <<\_LT_EOF >> "$cfgfile"
30137 # AIX sometimes has problems with the GCC collect2 program.  For some
30138 # reason, if we set the COLLECT_NAMES environment variable, the problems
30139 # vanish in a puff of smoke.
30140 if test "X${COLLECT_NAMES+set}" != Xset; then
30141   COLLECT_NAMES=
30142   export COLLECT_NAMES
30143 fi
30144 _LT_EOF
30145     ;;
30146   esac
30147
30148
30149 ltmain="$ac_aux_dir/ltmain.sh"
30150
30151
30152   # We use sed instead of cat because bash on DJGPP gets confused if
30153   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30154   # text mode, it properly converts lines to CR/LF.  This bash problem
30155   # is reportedly fixed, but why not run on old versions too?
30156   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30157     || (rm -f "$cfgfile"; exit 1)
30158
30159   case $xsi_shell in
30160   yes)
30161     cat << \_LT_EOF >> "$cfgfile"
30162
30163 # func_dirname file append nondir_replacement
30164 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30165 # otherwise set result to NONDIR_REPLACEMENT.
30166 func_dirname ()
30167 {
30168   case ${1} in
30169     */*) func_dirname_result="${1%/*}${2}" ;;
30170     *  ) func_dirname_result="${3}" ;;
30171   esac
30172 }
30173
30174 # func_basename file
30175 func_basename ()
30176 {
30177   func_basename_result="${1##*/}"
30178 }
30179
30180 # func_dirname_and_basename file append nondir_replacement
30181 # perform func_basename and func_dirname in a single function
30182 # call:
30183 #   dirname:  Compute the dirname of FILE.  If nonempty,
30184 #             add APPEND to the result, otherwise set result
30185 #             to NONDIR_REPLACEMENT.
30186 #             value returned in "$func_dirname_result"
30187 #   basename: Compute filename of FILE.
30188 #             value retuned in "$func_basename_result"
30189 # Implementation must be kept synchronized with func_dirname
30190 # and func_basename. For efficiency, we do not delegate to
30191 # those functions but instead duplicate the functionality here.
30192 func_dirname_and_basename ()
30193 {
30194   case ${1} in
30195     */*) func_dirname_result="${1%/*}${2}" ;;
30196     *  ) func_dirname_result="${3}" ;;
30197   esac
30198   func_basename_result="${1##*/}"
30199 }
30200
30201 # func_stripname prefix suffix name
30202 # strip PREFIX and SUFFIX off of NAME.
30203 # PREFIX and SUFFIX must not contain globbing or regex special
30204 # characters, hashes, percent signs, but SUFFIX may contain a leading
30205 # dot (in which case that matches only a dot).
30206 func_stripname ()
30207 {
30208   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30209   # positional parameters, so assign one to ordinary parameter first.
30210   func_stripname_result=${3}
30211   func_stripname_result=${func_stripname_result#"${1}"}
30212   func_stripname_result=${func_stripname_result%"${2}"}
30213 }
30214
30215 # func_opt_split
30216 func_opt_split ()
30217 {
30218   func_opt_split_opt=${1%%=*}
30219   func_opt_split_arg=${1#*=}
30220 }
30221
30222 # func_lo2o object
30223 func_lo2o ()
30224 {
30225   case ${1} in
30226     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30227     *)    func_lo2o_result=${1} ;;
30228   esac
30229 }
30230
30231 # func_xform libobj-or-source
30232 func_xform ()
30233 {
30234   func_xform_result=${1%.*}.lo
30235 }
30236
30237 # func_arith arithmetic-term...
30238 func_arith ()
30239 {
30240   func_arith_result=$(( $* ))
30241 }
30242
30243 # func_len string
30244 # STRING may not start with a hyphen.
30245 func_len ()
30246 {
30247   func_len_result=${#1}
30248 }
30249
30250 _LT_EOF
30251     ;;
30252   *) # Bourne compatible functions.
30253     cat << \_LT_EOF >> "$cfgfile"
30254
30255 # func_dirname file append nondir_replacement
30256 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30257 # otherwise set result to NONDIR_REPLACEMENT.
30258 func_dirname ()
30259 {
30260   # Extract subdirectory from the argument.
30261   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30262   if test "X$func_dirname_result" = "X${1}"; then
30263     func_dirname_result="${3}"
30264   else
30265     func_dirname_result="$func_dirname_result${2}"
30266   fi
30267 }
30268
30269 # func_basename file
30270 func_basename ()
30271 {
30272   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30273 }
30274
30275
30276 # func_stripname prefix suffix name
30277 # strip PREFIX and SUFFIX off of NAME.
30278 # PREFIX and SUFFIX must not contain globbing or regex special
30279 # characters, hashes, percent signs, but SUFFIX may contain a leading
30280 # dot (in which case that matches only a dot).
30281 # func_strip_suffix prefix name
30282 func_stripname ()
30283 {
30284   case ${2} in
30285     .*) func_stripname_result=`$ECHO "X${3}" \
30286            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30287     *)  func_stripname_result=`$ECHO "X${3}" \
30288            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30289   esac
30290 }
30291
30292 # sed scripts:
30293 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30294 my_sed_long_arg='1s/^-[^=]*=//'
30295
30296 # func_opt_split
30297 func_opt_split ()
30298 {
30299   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30300   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30301 }
30302
30303 # func_lo2o object
30304 func_lo2o ()
30305 {
30306   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30307 }
30308
30309 # func_xform libobj-or-source
30310 func_xform ()
30311 {
30312   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
30313 }
30314
30315 # func_arith arithmetic-term...
30316 func_arith ()
30317 {
30318   func_arith_result=`expr "$@"`
30319 }
30320
30321 # func_len string
30322 # STRING may not start with a hyphen.
30323 func_len ()
30324 {
30325   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
30326 }
30327
30328 _LT_EOF
30329 esac
30330
30331 case $lt_shell_append in
30332   yes)
30333     cat << \_LT_EOF >> "$cfgfile"
30334
30335 # func_append var value
30336 # Append VALUE to the end of shell variable VAR.
30337 func_append ()
30338 {
30339   eval "$1+=\$2"
30340 }
30341 _LT_EOF
30342     ;;
30343   *)
30344     cat << \_LT_EOF >> "$cfgfile"
30345
30346 # func_append var value
30347 # Append VALUE to the end of shell variable VAR.
30348 func_append ()
30349 {
30350   eval "$1=\$$1\$2"
30351 }
30352
30353 _LT_EOF
30354     ;;
30355   esac
30356
30357
30358   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30359     || (rm -f "$cfgfile"; exit 1)
30360
30361   mv -f "$cfgfile" "$ofile" ||
30362     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30363   chmod +x "$ofile"
30364
30365
30366     cat <<_LT_EOF >> "$ofile"
30367
30368 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30369
30370 # The linker used to build libraries.
30371 LD=$lt_LD_CXX
30372
30373 # Commands used to build an old-style archive.
30374 old_archive_cmds=$lt_old_archive_cmds_CXX
30375
30376 # A language specific compiler.
30377 CC=$lt_compiler_CXX
30378
30379 # Is the compiler the GNU compiler?
30380 with_gcc=$GCC_CXX
30381
30382 # Compiler flag to turn off builtin functions.
30383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30384
30385 # How to pass a linker flag through the compiler.
30386 wl=$lt_lt_prog_compiler_wl_CXX
30387
30388 # Additional compiler flags for building library objects.
30389 pic_flag=$lt_lt_prog_compiler_pic_CXX
30390
30391 # Compiler flag to prevent dynamic linking.
30392 link_static_flag=$lt_lt_prog_compiler_static_CXX
30393
30394 # Does compiler simultaneously support -c and -o options?
30395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30396
30397 # Whether or not to add -lc for building shared libraries.
30398 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30399
30400 # Whether or not to disallow shared libs when runtime libs are static.
30401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30402
30403 # Compiler flag to allow reflexive dlopens.
30404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30405
30406 # Compiler flag to generate shared objects directly from archives.
30407 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30408
30409 # Whether the compiler copes with passing no objects directly.
30410 compiler_needs_object=$lt_compiler_needs_object_CXX
30411
30412 # Create an old-style archive from a shared archive.
30413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30414
30415 # Create a temporary old-style archive to link instead of a shared archive.
30416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30417
30418 # Commands used to build a shared archive.
30419 archive_cmds=$lt_archive_cmds_CXX
30420 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30421
30422 # Commands used to build a loadable module if different from building
30423 # a shared archive.
30424 module_cmds=$lt_module_cmds_CXX
30425 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30426
30427 # Whether we are building with GNU ld or not.
30428 with_gnu_ld=$lt_with_gnu_ld_CXX
30429
30430 # Flag that allows shared libraries with undefined symbols to be built.
30431 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30432
30433 # Flag that enforces no undefined symbols.
30434 no_undefined_flag=$lt_no_undefined_flag_CXX
30435
30436 # Flag to hardcode \$libdir into a binary during linking.
30437 # This must work even if \$libdir does not exist
30438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30439
30440 # If ld is used when linking, flag to hardcode \$libdir into a binary
30441 # during linking.  This must work even if \$libdir does not exist.
30442 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30443
30444 # Whether we need a single "-rpath" flag with a separated argument.
30445 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30446
30447 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30448 # DIR into the resulting binary.
30449 hardcode_direct=$hardcode_direct_CXX
30450
30451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30452 # DIR into the resulting binary and the resulting library dependency is
30453 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30454 # library is relocated.
30455 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30456
30457 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30458 # into the resulting binary.
30459 hardcode_minus_L=$hardcode_minus_L_CXX
30460
30461 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30462 # into the resulting binary.
30463 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30464
30465 # Set to "yes" if building a shared library automatically hardcodes DIR
30466 # into the library and all subsequent libraries and executables linked
30467 # against it.
30468 hardcode_automatic=$hardcode_automatic_CXX
30469
30470 # Set to yes if linker adds runtime paths of dependent libraries
30471 # to runtime path list.
30472 inherit_rpath=$inherit_rpath_CXX
30473
30474 # Whether libtool must link a program against all its dependency libraries.
30475 link_all_deplibs=$link_all_deplibs_CXX
30476
30477 # Fix the shell variable \$srcfile for the compiler.
30478 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30479
30480 # Set to "yes" if exported symbols are required.
30481 always_export_symbols=$always_export_symbols_CXX
30482
30483 # The commands to list exported symbols.
30484 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30485
30486 # Symbols that should not be listed in the preloaded symbols.
30487 exclude_expsyms=$lt_exclude_expsyms_CXX
30488
30489 # Symbols that must always be exported.
30490 include_expsyms=$lt_include_expsyms_CXX
30491
30492 # Commands necessary for linking programs (against libraries) with templates.
30493 prelink_cmds=$lt_prelink_cmds_CXX
30494
30495 # Specify filename containing input files.
30496 file_list_spec=$lt_file_list_spec_CXX
30497
30498 # How to hardcode a shared library path into an executable.
30499 hardcode_action=$hardcode_action_CXX
30500
30501 # The directories searched by this compiler when creating a shared library.
30502 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30503
30504 # Dependencies to place before and after the objects being linked to
30505 # create a shared library.
30506 predep_objects=$lt_predep_objects_CXX
30507 postdep_objects=$lt_postdep_objects_CXX
30508 predeps=$lt_predeps_CXX
30509 postdeps=$lt_postdeps_CXX
30510
30511 # The library search path used internally by the compiler when linking
30512 # a shared library.
30513 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30514
30515 # ### END LIBTOOL TAG CONFIG: CXX
30516 _LT_EOF
30517
30518  ;;
30519
30520   esac
30521 done # for ac_tag
30522
30523
30524 { (exit 0); exit 0; }
30525 _ACEOF
30526 chmod +x $CONFIG_STATUS
30527 ac_clean_files=$ac_clean_files_save
30528
30529 test $ac_write_fail = 0 ||
30530   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30531 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30532    { (exit 1); exit 1; }; }
30533
30534
30535 # configure is writing to config.log, and then calls config.status.
30536 # config.status does its own redirection, appending to config.log.
30537 # Unfortunately, on DOS this fails, as config.log is still kept open
30538 # by configure, so config.status won't be able to write to it; its
30539 # output is simply discarded.  So we exec the FD to /dev/null,
30540 # effectively closing config.log, so it can be properly (re)opened and
30541 # appended to by config.status.  When coming back to configure, we
30542 # need to make the FD available again.
30543 if test "$no_create" != yes; then
30544   ac_cs_success=:
30545   ac_config_status_args=
30546   test "$silent" = yes &&
30547     ac_config_status_args="$ac_config_status_args --quiet"
30548   exec 5>/dev/null
30549   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30550   exec 5>>config.log
30551   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30552   # would make configure fail if this is the last instruction.
30553   $ac_cs_success || { (exit 1); exit 1; }
30554 fi
30555 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30556   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30557 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30558 fi
30559
30560