]> 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.1.6.
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$ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 echo=${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 <<EOF
606 $*
607 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 "$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        echo_test_string=`eval $cmd` &&
622        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623     then
624       break
625     fi
626   done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631    test "X$echo_testing_string" = "X$echo_test_string"; then
632   :
633 else
634   # The Solaris, AIX, and Digital Unix default echo programs unquote
635   # backslashes.  This makes it impossible to quote backslashes using
636   #   echo "$something" | sed 's/\\/\\\\/g'
637   #
638   # So, first we look for a working echo in the user's PATH.
639
640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641   for dir in $PATH /usr/ucb; do
642     IFS="$lt_save_ifs"
643     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646        test "X$echo_testing_string" = "X$echo_test_string"; then
647       echo="$dir/echo"
648       break
649     fi
650   done
651   IFS="$lt_save_ifs"
652
653   if test "X$echo" = Xecho; then
654     # We didn't find a better echo, so look for alternatives.
655     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657        test "X$echo_testing_string" = "X$echo_test_string"; then
658       # This shell has a builtin print -r that does the trick.
659       echo='print -r'
660     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661          test "X$CONFIG_SHELL" != X/bin/ksh; then
662       # If we have ksh, try running configure again with it.
663       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664       export ORIGINAL_CONFIG_SHELL
665       CONFIG_SHELL=/bin/ksh
666       export CONFIG_SHELL
667       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668     else
669       # Try using printf.
670       echo='printf %s\n'
671       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673          test "X$echo_testing_string" = "X$echo_test_string"; then
674         # Cool, printf works
675         :
676       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677            test "X$echo_testing_string" = 'X\t' &&
678            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679            test "X$echo_testing_string" = "X$echo_test_string"; then
680         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681         export CONFIG_SHELL
682         SHELL="$CONFIG_SHELL"
683         export SHELL
684         echo="$CONFIG_SHELL $0 --fallback-echo"
685       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686            test "X$echo_testing_string" = 'X\t' &&
687            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688            test "X$echo_testing_string" = "X$echo_test_string"; then
689         echo="$CONFIG_SHELL $0 --fallback-echo"
690       else
691         # maybe with a smaller string...
692         prev=:
693
694         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696           then
697             break
698           fi
699           prev="$cmd"
700         done
701
702         if test "$prev" != 'sed 50q "$0"'; then
703           echo_test_string=`eval $prev`
704           export echo_test_string
705           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706         else
707           # Oops.  We lost completely, so just stick with echo.
708           echo=echo
709         fi
710       fi
711     fi
712   fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='linux nfs-utils'
752 PACKAGE_TARNAME='nfs-utils'
753 PACKAGE_VERSION='1.1.6'
754 PACKAGE_STRING='linux nfs-utils 1.1.6'
755 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
756
757 ac_default_prefix=/usr
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 #  include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #  include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_unique_file="support/include/config.h.in"
795 ac_subst_vars='LTLIBOBJS
796 ACLOCAL_AMFLAGS
797 AM_CFLAGS
798 LDFLAGS_FOR_BUILD
799 CPPFLAGS_FOR_BUILD
800 CXXFLAGS_FOR_BUILD
801 CFLAGS_FOR_BUILD
802 LIBOBJS
803 ALLOCA
804 K5VERS
805 KRBLDFLAGS
806 KRBCFLAGS
807 KRBLIBS
808 KRBDIR
809 LIBBLKID
810 LIBBSD
811 LIBCRYPT
812 LIBSOCKET
813 RPCSECGSS_LIBS
814 RPCSECGSS_CFLAGS
815 GSSGLUE_LIBS
816 GSSGLUE_CFLAGS
817 PKG_CONFIG
818 LIBNSL
819 LD
820 CC_FOR_BUILD
821 LIBTOOL
822 ac_ct_F77
823 FFLAGS
824 F77
825 CXXCPP
826 NMEDIT
827 DSYMUTIL
828 RANLIB
829 AR
830 ECHO
831 SED
832 LN_S
833 am__fastdepCXX_FALSE
834 am__fastdepCXX_TRUE
835 CXXDEPMODE
836 ac_ct_CXX
837 CXXFLAGS
838 CXX
839 HAVE_TCP_WRAPPER
840 HAVE_LIBWRAP
841 LIBWRAP
842 AM_CPPFLAGS
843 EGREP
844 GREP
845 CPP
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 CONFIG_IPV6_FALSE
863 CONFIG_IPV6_TRUE
864 enable_ipv6
865 CONFIG_MOUNT_FALSE
866 CONFIG_MOUNT_TRUE
867 CONFIG_RPCGEN_FALSE
868 CONFIG_RPCGEN_TRUE
869 RPCGEN_PATH
870 kprefix
871 CONFIG_GSS_FALSE
872 CONFIG_GSS_TRUE
873 enable_gss
874 SVCGSSD
875 GSSD
876 CONFIG_NFSV4_FALSE
877 CONFIG_NFSV4_TRUE
878 enable_nfsv4
879 IDMAPD
880 enable_nfsv3
881 startstatd
882 statduser
883 statedir
884 RELEASE
885 MAINT
886 MAINTAINER_MODE_FALSE
887 MAINTAINER_MODE_TRUE
888 am__untar
889 am__tar
890 AMTAR
891 am__leading_dot
892 SET_MAKE
893 AWK
894 mkdir_p
895 MKDIR_P
896 INSTALL_STRIP_PROGRAM
897 STRIP
898 install_sh
899 MAKEINFO
900 AUTOHEADER
901 AUTOMAKE
902 AUTOCONF
903 ACLOCAL
904 VERSION
905 PACKAGE
906 CYGPATH_W
907 am__isrc
908 INSTALL_DATA
909 INSTALL_SCRIPT
910 INSTALL_PROGRAM
911 host_os
912 host_vendor
913 host_cpu
914 host
915 build_os
916 build_vendor
917 build_cpu
918 build
919 target_alias
920 host_alias
921 build_alias
922 LIBS
923 ECHO_T
924 ECHO_N
925 ECHO_C
926 DEFS
927 mandir
928 localedir
929 libdir
930 psdir
931 pdfdir
932 dvidir
933 htmldir
934 infodir
935 docdir
936 oldincludedir
937 includedir
938 localstatedir
939 sharedstatedir
940 sysconfdir
941 datadir
942 datarootdir
943 libexecdir
944 sbindir
945 bindir
946 program_transform_name
947 prefix
948 exec_prefix
949 PACKAGE_BUGREPORT
950 PACKAGE_STRING
951 PACKAGE_VERSION
952 PACKAGE_TARNAME
953 PACKAGE_NAME
954 PATH_SEPARATOR
955 SHELL'
956 ac_subst_files=''
957 ac_user_opts='
958 enable_option_checking
959 enable_maintainer_mode
960 with_release
961 with_statedir
962 with_statduser
963 with_start_statd
964 enable_nfsv3
965 enable_nfsv4
966 enable_gss
967 enable_kprefix
968 with_rpcgen
969 enable_uuid
970 enable_mount
971 enable_tirpc
972 enable_ipv6
973 with_tirpcinclude
974 enable_dependency_tracking
975 with_tcp_wrappers
976 enable_largefile
977 enable_shared
978 enable_static
979 enable_fast_install
980 with_gnu_ld
981 enable_libtool_lock
982 with_pic
983 with_tags
984 with_krb5
985 '
986       ac_precious_vars='build_alias
987 host_alias
988 target_alias
989 CC
990 CFLAGS
991 LDFLAGS
992 LIBS
993 CPPFLAGS
994 CPP
995 CXX
996 CXXFLAGS
997 CCC
998 CXXCPP
999 F77
1000 FFLAGS
1001 PKG_CONFIG
1002 GSSGLUE_CFLAGS
1003 GSSGLUE_LIBS
1004 RPCSECGSS_CFLAGS
1005 RPCSECGSS_LIBS'
1006
1007
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1016 exec_prefix=NONE
1017 no_create=
1018 no_recursion=
1019 prefix=NONE
1020 program_prefix=NONE
1021 program_suffix=NONE
1022 program_transform_name=s,x,x,
1023 silent=
1024 site=
1025 srcdir=
1026 verbose=
1027 x_includes=NONE
1028 x_libraries=NONE
1029
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 includedir='${prefix}/include'
1045 oldincludedir='/usr/include'
1046 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047 infodir='${datarootdir}/info'
1048 htmldir='${docdir}'
1049 dvidir='${docdir}'
1050 pdfdir='${docdir}'
1051 psdir='${docdir}'
1052 libdir='${exec_prefix}/lib'
1053 localedir='${datarootdir}/locale'
1054 mandir='${datarootdir}/man'
1055
1056 ac_prev=
1057 ac_dashdash=
1058 for ac_option
1059 do
1060   # If the previous option needs an argument, assign it.
1061   if test -n "$ac_prev"; then
1062     eval $ac_prev=\$ac_option
1063     ac_prev=
1064     continue
1065   fi
1066
1067   case $ac_option in
1068   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069   *)    ac_optarg=yes ;;
1070   esac
1071
1072   # Accept the important Cygnus configure options, so we can diagnose typos.
1073
1074   case $ac_dashdash$ac_option in
1075   --)
1076     ac_dashdash=yes ;;
1077
1078   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079     ac_prev=bindir ;;
1080   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081     bindir=$ac_optarg ;;
1082
1083   -build | --build | --buil | --bui | --bu)
1084     ac_prev=build_alias ;;
1085   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086     build_alias=$ac_optarg ;;
1087
1088   -cache-file | --cache-file | --cache-fil | --cache-fi \
1089   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090     ac_prev=cache_file ;;
1091   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093     cache_file=$ac_optarg ;;
1094
1095   --config-cache | -C)
1096     cache_file=config.cache ;;
1097
1098   -datadir | --datadir | --datadi | --datad)
1099     ac_prev=datadir ;;
1100   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101     datadir=$ac_optarg ;;
1102
1103   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104   | --dataroo | --dataro | --datar)
1105     ac_prev=datarootdir ;;
1106   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108     datarootdir=$ac_optarg ;;
1109
1110   -disable-* | --disable-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_useropt_orig=$ac_useropt
1117     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118     case $ac_user_opts in
1119       *"
1120 "enable_$ac_useropt"
1121 "*) ;;
1122       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123          ac_unrecognized_sep=', ';;
1124     esac
1125     eval enable_$ac_useropt=no ;;
1126
1127   -docdir | --docdir | --docdi | --doc | --do)
1128     ac_prev=docdir ;;
1129   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130     docdir=$ac_optarg ;;
1131
1132   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133     ac_prev=dvidir ;;
1134   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135     dvidir=$ac_optarg ;;
1136
1137   -enable-* | --enable-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "enable_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval enable_$ac_useropt=\$ac_optarg ;;
1153
1154   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156   | --exec | --exe | --ex)
1157     ac_prev=exec_prefix ;;
1158   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160   | --exec=* | --exe=* | --ex=*)
1161     exec_prefix=$ac_optarg ;;
1162
1163   -gas | --gas | --ga | --g)
1164     # Obsolete; use --with-gas.
1165     with_gas=yes ;;
1166
1167   -help | --help | --hel | --he | -h)
1168     ac_init_help=long ;;
1169   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170     ac_init_help=recursive ;;
1171   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172     ac_init_help=short ;;
1173
1174   -host | --host | --hos | --ho)
1175     ac_prev=host_alias ;;
1176   -host=* | --host=* | --hos=* | --ho=*)
1177     host_alias=$ac_optarg ;;
1178
1179   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180     ac_prev=htmldir ;;
1181   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182   | --ht=*)
1183     htmldir=$ac_optarg ;;
1184
1185   -includedir | --includedir | --includedi | --included | --include \
1186   | --includ | --inclu | --incl | --inc)
1187     ac_prev=includedir ;;
1188   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189   | --includ=* | --inclu=* | --incl=* | --inc=*)
1190     includedir=$ac_optarg ;;
1191
1192   -infodir | --infodir | --infodi | --infod | --info | --inf)
1193     ac_prev=infodir ;;
1194   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195     infodir=$ac_optarg ;;
1196
1197   -libdir | --libdir | --libdi | --libd)
1198     ac_prev=libdir ;;
1199   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200     libdir=$ac_optarg ;;
1201
1202   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203   | --libexe | --libex | --libe)
1204     ac_prev=libexecdir ;;
1205   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206   | --libexe=* | --libex=* | --libe=*)
1207     libexecdir=$ac_optarg ;;
1208
1209   -localedir | --localedir | --localedi | --localed | --locale)
1210     ac_prev=localedir ;;
1211   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212     localedir=$ac_optarg ;;
1213
1214   -localstatedir | --localstatedir | --localstatedi | --localstated \
1215   | --localstate | --localstat | --localsta | --localst | --locals)
1216     ac_prev=localstatedir ;;
1217   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219     localstatedir=$ac_optarg ;;
1220
1221   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222     ac_prev=mandir ;;
1223   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224     mandir=$ac_optarg ;;
1225
1226   -nfp | --nfp | --nf)
1227     # Obsolete; use --without-fp.
1228     with_fp=no ;;
1229
1230   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231   | --no-cr | --no-c | -n)
1232     no_create=yes ;;
1233
1234   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236     no_recursion=yes ;;
1237
1238   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240   | --oldin | --oldi | --old | --ol | --o)
1241     ac_prev=oldincludedir ;;
1242   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245     oldincludedir=$ac_optarg ;;
1246
1247   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248     ac_prev=prefix ;;
1249   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250     prefix=$ac_optarg ;;
1251
1252   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253   | --program-pre | --program-pr | --program-p)
1254     ac_prev=program_prefix ;;
1255   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257     program_prefix=$ac_optarg ;;
1258
1259   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260   | --program-suf | --program-su | --program-s)
1261     ac_prev=program_suffix ;;
1262   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264     program_suffix=$ac_optarg ;;
1265
1266   -program-transform-name | --program-transform-name \
1267   | --program-transform-nam | --program-transform-na \
1268   | --program-transform-n | --program-transform- \
1269   | --program-transform | --program-transfor \
1270   | --program-transfo | --program-transf \
1271   | --program-trans | --program-tran \
1272   | --progr-tra | --program-tr | --program-t)
1273     ac_prev=program_transform_name ;;
1274   -program-transform-name=* | --program-transform-name=* \
1275   | --program-transform-nam=* | --program-transform-na=* \
1276   | --program-transform-n=* | --program-transform-=* \
1277   | --program-transform=* | --program-transfor=* \
1278   | --program-transfo=* | --program-transf=* \
1279   | --program-trans=* | --program-tran=* \
1280   | --progr-tra=* | --program-tr=* | --program-t=*)
1281     program_transform_name=$ac_optarg ;;
1282
1283   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284     ac_prev=pdfdir ;;
1285   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286     pdfdir=$ac_optarg ;;
1287
1288   -psdir | --psdir | --psdi | --psd | --ps)
1289     ac_prev=psdir ;;
1290   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291     psdir=$ac_optarg ;;
1292
1293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294   | -silent | --silent | --silen | --sile | --sil)
1295     silent=yes ;;
1296
1297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298     ac_prev=sbindir ;;
1299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300   | --sbi=* | --sb=*)
1301     sbindir=$ac_optarg ;;
1302
1303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305   | --sharedst | --shareds | --shared | --share | --shar \
1306   | --sha | --sh)
1307     ac_prev=sharedstatedir ;;
1308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311   | --sha=* | --sh=*)
1312     sharedstatedir=$ac_optarg ;;
1313
1314   -site | --site | --sit)
1315     ac_prev=site ;;
1316   -site=* | --site=* | --sit=*)
1317     site=$ac_optarg ;;
1318
1319   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320     ac_prev=srcdir ;;
1321   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322     srcdir=$ac_optarg ;;
1323
1324   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325   | --syscon | --sysco | --sysc | --sys | --sy)
1326     ac_prev=sysconfdir ;;
1327   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329     sysconfdir=$ac_optarg ;;
1330
1331   -target | --target | --targe | --targ | --tar | --ta | --t)
1332     ac_prev=target_alias ;;
1333   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334     target_alias=$ac_optarg ;;
1335
1336   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337     verbose=yes ;;
1338
1339   -version | --version | --versio | --versi | --vers | -V)
1340     ac_init_version=: ;;
1341
1342   -with-* | --with-*)
1343     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344     # Reject names that are not valid shell variable names.
1345     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1347    { (exit 1); exit 1; }; }
1348     ac_useropt_orig=$ac_useropt
1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350     case $ac_user_opts in
1351       *"
1352 "with_$ac_useropt"
1353 "*) ;;
1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355          ac_unrecognized_sep=', ';;
1356     esac
1357     eval with_$ac_useropt=\$ac_optarg ;;
1358
1359   -without-* | --without-*)
1360     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361     # Reject names that are not valid shell variable names.
1362     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1364    { (exit 1); exit 1; }; }
1365     ac_useropt_orig=$ac_useropt
1366     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367     case $ac_user_opts in
1368       *"
1369 "with_$ac_useropt"
1370 "*) ;;
1371       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372          ac_unrecognized_sep=', ';;
1373     esac
1374     eval with_$ac_useropt=no ;;
1375
1376   --x)
1377     # Obsolete; use --with-x.
1378     with_x=yes ;;
1379
1380   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381   | --x-incl | --x-inc | --x-in | --x-i)
1382     ac_prev=x_includes ;;
1383   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385     x_includes=$ac_optarg ;;
1386
1387   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389     ac_prev=x_libraries ;;
1390   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392     x_libraries=$ac_optarg ;;
1393
1394   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1395 Try \`$0 --help' for more information." >&2
1396    { (exit 1); exit 1; }; }
1397     ;;
1398
1399   *=*)
1400     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401     # Reject names that are not valid shell variable names.
1402     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1403       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1404    { (exit 1); exit 1; }; }
1405     eval $ac_envvar=\$ac_optarg
1406     export $ac_envvar ;;
1407
1408   *)
1409     # FIXME: should be removed in autoconf 3.0.
1410     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1414     ;;
1415
1416   esac
1417 done
1418
1419 if test -n "$ac_prev"; then
1420   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1422    { (exit 1); exit 1; }; }
1423 fi
1424
1425 if test -n "$ac_unrecognized_opts"; then
1426   case $enable_option_checking in
1427     no) ;;
1428     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1429    { (exit 1); exit 1; }; } ;;
1430     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431   esac
1432 fi
1433
1434 # Check all directory arguments for consistency.
1435 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436                 datadir sysconfdir sharedstatedir localstatedir includedir \
1437                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438                 libdir localedir mandir
1439 do
1440   eval ac_val=\$$ac_var
1441   # Remove trailing slashes.
1442   case $ac_val in
1443     */ )
1444       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445       eval $ac_var=\$ac_val;;
1446   esac
1447   # Be sure to have absolute directory names.
1448   case $ac_val in
1449     [\\/$]* | ?:[\\/]* )  continue;;
1450     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1451   esac
1452   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1453    { (exit 1); exit 1; }; }
1454 done
1455
1456 # There might be people who depend on the old broken behavior: `$host'
1457 # used to hold the argument of --host etc.
1458 # FIXME: To remove some day.
1459 build=$build_alias
1460 host=$host_alias
1461 target=$target_alias
1462
1463 # FIXME: To remove some day.
1464 if test "x$host_alias" != x; then
1465   if test "x$build_alias" = x; then
1466     cross_compiling=maybe
1467     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1468     If a cross compiler is detected then cross compile mode will be used." >&2
1469   elif test "x$build_alias" != "x$host_alias"; then
1470     cross_compiling=yes
1471   fi
1472 fi
1473
1474 ac_tool_prefix=
1475 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1476
1477 test "$silent" = yes && exec 6>/dev/null
1478
1479
1480 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1481 ac_ls_di=`ls -di .` &&
1482 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1483   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1484    { (exit 1); exit 1; }; }
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1487    { (exit 1); exit 1; }; }
1488
1489
1490 # Find the source files, if location was not specified.
1491 if test -z "$srcdir"; then
1492   ac_srcdir_defaulted=yes
1493   # Try the directory containing this script, then the parent directory.
1494   ac_confdir=`$as_dirname -- "$as_myself" ||
1495 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496          X"$as_myself" : 'X\(//\)[^/]' \| \
1497          X"$as_myself" : 'X\(//\)$' \| \
1498          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499 $as_echo X"$as_myself" |
1500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501             s//\1/
1502             q
1503           }
1504           /^X\(\/\/\)[^/].*/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\/\)$/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\).*/{
1513             s//\1/
1514             q
1515           }
1516           s/.*/./; q'`
1517   srcdir=$ac_confdir
1518   if test ! -r "$srcdir/$ac_unique_file"; then
1519     srcdir=..
1520   fi
1521 else
1522   ac_srcdir_defaulted=no
1523 fi
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1527    { (exit 1); exit 1; }; }
1528 fi
1529 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1530 ac_abs_confdir=`(
1531         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1532    { (exit 1); exit 1; }; }
1533         pwd)`
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1536   srcdir=.
1537 fi
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1541 case $srcdir in
1542 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1543 esac
1544 for ac_var in $ac_precious_vars; do
1545   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546   eval ac_env_${ac_var}_value=\$${ac_var}
1547   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549 done
1550
1551 #
1552 # Report the --help message.
1553 #
1554 if test "$ac_init_help" = "long"; then
1555   # Omit some internal or obsolete options to make the list less imposing.
1556   # This message is too long to be a string in the A/UX 3.1 sh.
1557   cat <<_ACEOF
1558 \`configure' configures linux nfs-utils 1.1.6 to adapt to many kinds of systems.
1559
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1561
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE.  See below for descriptions of some of the useful variables.
1564
1565 Defaults for the options are specified in brackets.
1566
1567 Configuration:
1568   -h, --help              display this help and exit
1569       --help=short        display options specific to this package
1570       --help=recursive    display the short help of all the included packages
1571   -V, --version           display version information and exit
1572   -q, --quiet, --silent   do not print \`checking...' messages
1573       --cache-file=FILE   cache test results in FILE [disabled]
1574   -C, --config-cache      alias for \`--cache-file=config.cache'
1575   -n, --no-create         do not create output files
1576       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1577
1578 Installation directories:
1579   --prefix=PREFIX         install architecture-independent files in PREFIX
1580                           [$ac_default_prefix]
1581   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1582                           [PREFIX]
1583
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1588
1589 For better control, use the options below.
1590
1591 Fine tuning of the installation directories:
1592   --bindir=DIR            user executables [EPREFIX/bin]
1593   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1594   --libexecdir=DIR        program executables [EPREFIX/libexec]
1595   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1596   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1597   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1598   --libdir=DIR            object code libraries [EPREFIX/lib]
1599   --includedir=DIR        C header files [PREFIX/include]
1600   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1601   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1602   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1603   --infodir=DIR           info documentation [DATAROOTDIR/info]
1604   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1605   --mandir=DIR            man documentation [DATAROOTDIR/man]
1606   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1607   --htmldir=DIR           html documentation [DOCDIR]
1608   --dvidir=DIR            dvi documentation [DOCDIR]
1609   --pdfdir=DIR            pdf documentation [DOCDIR]
1610   --psdir=DIR             ps documentation [DOCDIR]
1611 _ACEOF
1612
1613   cat <<\_ACEOF
1614
1615 Program names:
1616   --program-prefix=PREFIX            prepend PREFIX to installed program names
1617   --program-suffix=SUFFIX            append SUFFIX to installed program names
1618   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1619
1620 System types:
1621   --build=BUILD     configure for building on BUILD [guessed]
1622   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1623 _ACEOF
1624 fi
1625
1626 if test -n "$ac_init_help"; then
1627   case $ac_init_help in
1628      short | recursive ) echo "Configuration of linux nfs-utils 1.1.6:";;
1629    esac
1630   cat <<\_ACEOF
1631
1632 Optional Features:
1633   --disable-option-checking  ignore unrecognized --enable/--with options
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --enable-maintainer-mode  enable make rules and dependencies not useful
1637                           (and sometimes confusing) to the casual installer
1638   --enable-nfsv3          enable support for NFSv3 [default=yes]
1639   --enable-nfsv4          enable support for NFSv4 [default=yes]
1640   --enable-gss            enable support for rpcsec_gss [default=yes]
1641   --enable-kprefix        install progs as rpc.knfsd etc
1642   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1643   --enable-mount          Create mount.nfs and don't use the util-linux
1644                           mount(8) functionality. [default=yes]
1645   --enable-tirpc          enable use of TI-RPC [default=no]
1646   --enable-ipv6           enable support for IPv6 [default=no]
1647   --disable-dependency-tracking  speeds up one-time build
1648   --enable-dependency-tracking   do not reject slow dependency extractors
1649   --disable-largefile     omit support for large files
1650   --enable-shared[=PKGS]  build shared libraries [default=yes]
1651   --enable-static[=PKGS]  build static libraries [default=yes]
1652   --enable-fast-install[=PKGS]
1653                           optimize for fast installation [default=yes]
1654   --disable-libtool-lock  avoid locking (might break parallel builds)
1655
1656 Optional Packages:
1657   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1658   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1659   --with-release=XXX      set release to XXX [1]
1660   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1661   --with-statduser=rpcuser
1662                           statd to run under [rpcuser or nobody]
1663   --with-start-statd=scriptname
1664                           When an nfs filesystems is mounted with locking, run
1665                           this script
1666   --with-rpcgen=internal  use internal rpcgen instead of system one
1667   --with-tirpcinclude=DIR use TI-RPC headers in DIR
1668   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1669                  (optionally in PATH)
1670   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-tags[=TAGS]      include additional configurations [automatic]
1674   --with-krb5=DIR         use Kerberos v5 installation in DIR
1675
1676 Some influential environment variables:
1677   CC          C compiler command
1678   CFLAGS      C compiler flags
1679   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1680               nonstandard directory <lib dir>
1681   LIBS        libraries to pass to the linker, e.g. -l<library>
1682   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683               you have headers in a nonstandard directory <include dir>
1684   CPP         C preprocessor
1685   CXX         C++ compiler command
1686   CXXFLAGS    C++ compiler flags
1687   CXXCPP      C++ preprocessor
1688   F77         Fortran 77 compiler command
1689   FFLAGS      Fortran 77 compiler flags
1690   PKG_CONFIG  path to pkg-config utility
1691   GSSGLUE_CFLAGS
1692               C compiler flags for GSSGLUE, overriding pkg-config
1693   GSSGLUE_LIBS
1694               linker flags for GSSGLUE, overriding pkg-config
1695   RPCSECGSS_CFLAGS
1696               C compiler flags for RPCSECGSS, overriding pkg-config
1697   RPCSECGSS_LIBS
1698               linker flags for RPCSECGSS, overriding pkg-config
1699
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1702
1703 Report bugs to <linux-nfs@vger.kernel.org>.
1704 _ACEOF
1705 ac_status=$?
1706 fi
1707
1708 if test "$ac_init_help" = "recursive"; then
1709   # If there are subdirs, report their specific --help.
1710   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711     test -d "$ac_dir" ||
1712       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713       continue
1714     ac_builddir=.
1715
1716 case "$ac_dir" in
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *)
1719   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720   # A ".." for each directory in $ac_dir_suffix.
1721   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722   case $ac_top_builddir_sub in
1723   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725   esac ;;
1726 esac
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1731
1732 case $srcdir in
1733   .)  # We are building in place.
1734     ac_srcdir=.
1735     ac_top_srcdir=$ac_top_builddir_sub
1736     ac_abs_top_srcdir=$ac_pwd ;;
1737   [\\/]* | ?:[\\/]* )  # Absolute name.
1738     ac_srcdir=$srcdir$ac_dir_suffix;
1739     ac_top_srcdir=$srcdir
1740     ac_abs_top_srcdir=$srcdir ;;
1741   *) # Relative name.
1742     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743     ac_top_srcdir=$ac_top_build_prefix$srcdir
1744     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 esac
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747
1748     cd "$ac_dir" || { ac_status=$?; continue; }
1749     # Check for guested configure.
1750     if test -f "$ac_srcdir/configure.gnu"; then
1751       echo &&
1752       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753     elif test -f "$ac_srcdir/configure"; then
1754       echo &&
1755       $SHELL "$ac_srcdir/configure" --help=recursive
1756     else
1757       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758     fi || ac_status=$?
1759     cd "$ac_pwd" || { ac_status=$?; break; }
1760   done
1761 fi
1762
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1765   cat <<\_ACEOF
1766 linux nfs-utils configure 1.1.6
1767 generated by GNU Autoconf 2.63
1768
1769 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1770 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1771 This configure script is free software; the Free Software Foundation
1772 gives unlimited permission to copy, distribute and modify it.
1773 _ACEOF
1774   exit
1775 fi
1776 cat >config.log <<_ACEOF
1777 This file contains any messages produced by compilers while
1778 running configure, to aid debugging if configure makes a mistake.
1779
1780 It was created by linux nfs-utils $as_me 1.1.6, which was
1781 generated by GNU Autoconf 2.63.  Invocation command line was
1782
1783   $ $0 $@
1784
1785 _ACEOF
1786 exec 5>>config.log
1787 {
1788 cat <<_ASUNAME
1789 ## --------- ##
1790 ## Platform. ##
1791 ## --------- ##
1792
1793 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1794 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1795 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1796 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1797 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1798
1799 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1800 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1801
1802 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1803 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1804 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1805 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1806 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1807 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1808 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1809
1810 _ASUNAME
1811
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815   IFS=$as_save_IFS
1816   test -z "$as_dir" && as_dir=.
1817   $as_echo "PATH: $as_dir"
1818 done
1819 IFS=$as_save_IFS
1820
1821 } >&5
1822
1823 cat >&5 <<_ACEOF
1824
1825
1826 ## ----------- ##
1827 ## Core tests. ##
1828 ## ----------- ##
1829
1830 _ACEOF
1831
1832
1833 # Keep a trace of the command line.
1834 # Strip out --no-create and --no-recursion so they do not pile up.
1835 # Strip out --silent because we don't want to record it for future runs.
1836 # Also quote any args containing shell meta-characters.
1837 # Make two passes to allow for proper duplicate-argument suppression.
1838 ac_configure_args=
1839 ac_configure_args0=
1840 ac_configure_args1=
1841 ac_must_keep_next=false
1842 for ac_pass in 1 2
1843 do
1844   for ac_arg
1845   do
1846     case $ac_arg in
1847     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1848     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1849     | -silent | --silent | --silen | --sile | --sil)
1850       continue ;;
1851     *\'*)
1852       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853     esac
1854     case $ac_pass in
1855     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1856     2)
1857       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1858       if test $ac_must_keep_next = true; then
1859         ac_must_keep_next=false # Got value, back to normal.
1860       else
1861         case $ac_arg in
1862           *=* | --config-cache | -C | -disable-* | --disable-* \
1863           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1864           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1865           | -with-* | --with-* | -without-* | --without-* | --x)
1866             case "$ac_configure_args0 " in
1867               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1868             esac
1869             ;;
1870           -* ) ac_must_keep_next=true ;;
1871         esac
1872       fi
1873       ac_configure_args="$ac_configure_args '$ac_arg'"
1874       ;;
1875     esac
1876   done
1877 done
1878 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1879 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1880
1881 # When interrupted or exit'd, cleanup temporary files, and complete
1882 # config.log.  We remove comments because anyway the quotes in there
1883 # would cause problems or look ugly.
1884 # WARNING: Use '\'' to represent an apostrophe within the trap.
1885 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1886 trap 'exit_status=$?
1887   # Save into config.log some information that might help in debugging.
1888   {
1889     echo
1890
1891     cat <<\_ASBOX
1892 ## ---------------- ##
1893 ## Cache variables. ##
1894 ## ---------------- ##
1895 _ASBOX
1896     echo
1897     # The following way of writing the cache mishandles newlines in values,
1898 (
1899   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900     eval ac_val=\$$ac_var
1901     case $ac_val in #(
1902     *${as_nl}*)
1903       case $ac_var in #(
1904       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906       esac
1907       case $ac_var in #(
1908       _ | IFS | as_nl) ;; #(
1909       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910       *) $as_unset $ac_var ;;
1911       esac ;;
1912     esac
1913   done
1914   (set) 2>&1 |
1915     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916     *${as_nl}ac_space=\ *)
1917       sed -n \
1918         "s/'\''/'\''\\\\'\'''\''/g;
1919           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920       ;; #(
1921     *)
1922       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923       ;;
1924     esac |
1925     sort
1926 )
1927     echo
1928
1929     cat <<\_ASBOX
1930 ## ----------------- ##
1931 ## Output variables. ##
1932 ## ----------------- ##
1933 _ASBOX
1934     echo
1935     for ac_var in $ac_subst_vars
1936     do
1937       eval ac_val=\$$ac_var
1938       case $ac_val in
1939       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940       esac
1941       $as_echo "$ac_var='\''$ac_val'\''"
1942     done | sort
1943     echo
1944
1945     if test -n "$ac_subst_files"; then
1946       cat <<\_ASBOX
1947 ## ------------------- ##
1948 ## File substitutions. ##
1949 ## ------------------- ##
1950 _ASBOX
1951       echo
1952       for ac_var in $ac_subst_files
1953       do
1954         eval ac_val=\$$ac_var
1955         case $ac_val in
1956         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957         esac
1958         $as_echo "$ac_var='\''$ac_val'\''"
1959       done | sort
1960       echo
1961     fi
1962
1963     if test -s confdefs.h; then
1964       cat <<\_ASBOX
1965 ## ----------- ##
1966 ## confdefs.h. ##
1967 ## ----------- ##
1968 _ASBOX
1969       echo
1970       cat confdefs.h
1971       echo
1972     fi
1973     test "$ac_signal" != 0 &&
1974       $as_echo "$as_me: caught signal $ac_signal"
1975     $as_echo "$as_me: exit $exit_status"
1976   } >&5
1977   rm -f core *.core core.conftest.* &&
1978     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1979     exit $exit_status
1980 ' 0
1981 for ac_signal in 1 2 13 15; do
1982   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1983 done
1984 ac_signal=0
1985
1986 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1987 rm -f -r conftest* confdefs.h
1988
1989 # Predefined preprocessor variables.
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_NAME "$PACKAGE_NAME"
1993 _ACEOF
1994
1995
1996 cat >>confdefs.h <<_ACEOF
1997 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1998 _ACEOF
1999
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2003 _ACEOF
2004
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_STRING "$PACKAGE_STRING"
2008 _ACEOF
2009
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2013 _ACEOF
2014
2015
2016 # Let the site file select an alternate cache file if it wants to.
2017 # Prefer an explicitly selected file to automatically selected ones.
2018 ac_site_file1=NONE
2019 ac_site_file2=NONE
2020 if test -n "$CONFIG_SITE"; then
2021   ac_site_file1=$CONFIG_SITE
2022 elif test "x$prefix" != xNONE; then
2023   ac_site_file1=$prefix/share/config.site
2024   ac_site_file2=$prefix/etc/config.site
2025 else
2026   ac_site_file1=$ac_default_prefix/share/config.site
2027   ac_site_file2=$ac_default_prefix/etc/config.site
2028 fi
2029 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2030 do
2031   test "x$ac_site_file" = xNONE && continue
2032   if test -r "$ac_site_file"; then
2033     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2034 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2035     sed 's/^/| /' "$ac_site_file" >&5
2036     . "$ac_site_file"
2037   fi
2038 done
2039
2040 if test -r "$cache_file"; then
2041   # Some versions of bash will fail to source /dev/null (special
2042   # files actually), so we avoid doing that.
2043   if test -f "$cache_file"; then
2044     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2045 $as_echo "$as_me: loading cache $cache_file" >&6;}
2046     case $cache_file in
2047       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2048       *)                      . "./$cache_file";;
2049     esac
2050   fi
2051 else
2052   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2053 $as_echo "$as_me: creating cache $cache_file" >&6;}
2054   >$cache_file
2055 fi
2056
2057 # Check that the precious variables saved in the cache have kept the same
2058 # value.
2059 ac_cache_corrupted=false
2060 for ac_var in $ac_precious_vars; do
2061   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2062   eval ac_new_set=\$ac_env_${ac_var}_set
2063   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2064   eval ac_new_val=\$ac_env_${ac_var}_value
2065   case $ac_old_set,$ac_new_set in
2066     set,)
2067       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2068 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2069       ac_cache_corrupted=: ;;
2070     ,set)
2071       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2072 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2073       ac_cache_corrupted=: ;;
2074     ,);;
2075     *)
2076       if test "x$ac_old_val" != "x$ac_new_val"; then
2077         # differences in whitespace do not lead to failure.
2078         ac_old_val_w=`echo x $ac_old_val`
2079         ac_new_val_w=`echo x $ac_new_val`
2080         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2081           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2082 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2083           ac_cache_corrupted=:
2084         else
2085           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2086 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2087           eval $ac_var=\$ac_old_val
2088         fi
2089         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2090 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2091         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2092 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2093       fi;;
2094   esac
2095   # Pass precious variables to config.status.
2096   if test "$ac_new_set" = set; then
2097     case $ac_new_val in
2098     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2099     *) ac_arg=$ac_var=$ac_new_val ;;
2100     esac
2101     case " $ac_configure_args " in
2102       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2103       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2104     esac
2105   fi
2106 done
2107 if $ac_cache_corrupted; then
2108   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2110   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2111 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2112   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2113 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2114    { (exit 1); exit 1; }; }
2115 fi
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141 ac_ext=c
2142 ac_cpp='$CPP $CPPFLAGS'
2143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146
2147
2148 ac_aux_dir=
2149 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2150   if test -f "$ac_dir/install-sh"; then
2151     ac_aux_dir=$ac_dir
2152     ac_install_sh="$ac_aux_dir/install-sh -c"
2153     break
2154   elif test -f "$ac_dir/install.sh"; then
2155     ac_aux_dir=$ac_dir
2156     ac_install_sh="$ac_aux_dir/install.sh -c"
2157     break
2158   elif test -f "$ac_dir/shtool"; then
2159     ac_aux_dir=$ac_dir
2160     ac_install_sh="$ac_aux_dir/shtool install -c"
2161     break
2162   fi
2163 done
2164 if test -z "$ac_aux_dir"; then
2165   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2166 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2167    { (exit 1); exit 1; }; }
2168 fi
2169
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2177
2178
2179 # Make sure we can run config.sub.
2180 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2181   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2182 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2183    { (exit 1); exit 1; }; }
2184
2185 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2186 $as_echo_n "checking build system type... " >&6; }
2187 if test "${ac_cv_build+set}" = set; then
2188   $as_echo_n "(cached) " >&6
2189 else
2190   ac_build_alias=$build_alias
2191 test "x$ac_build_alias" = x &&
2192   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2193 test "x$ac_build_alias" = x &&
2194   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2195 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2196    { (exit 1); exit 1; }; }
2197 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2198   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2199 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201
2202 fi
2203 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2204 $as_echo "$ac_cv_build" >&6; }
2205 case $ac_cv_build in
2206 *-*-*) ;;
2207 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2208 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2209    { (exit 1); exit 1; }; };;
2210 esac
2211 build=$ac_cv_build
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_build
2214 shift
2215 build_cpu=$1
2216 build_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 build_os=$*
2221 IFS=$ac_save_IFS
2222 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2223
2224
2225 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2226 $as_echo_n "checking host system type... " >&6; }
2227 if test "${ac_cv_host+set}" = set; then
2228   $as_echo_n "(cached) " >&6
2229 else
2230   if test "x$host_alias" = x; then
2231   ac_cv_host=$ac_cv_build
2232 else
2233   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2234     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2235 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2236    { (exit 1); exit 1; }; }
2237 fi
2238
2239 fi
2240 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2241 $as_echo "$ac_cv_host" >&6; }
2242 case $ac_cv_host in
2243 *-*-*) ;;
2244 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2245 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2246    { (exit 1); exit 1; }; };;
2247 esac
2248 host=$ac_cv_host
2249 ac_save_IFS=$IFS; IFS='-'
2250 set x $ac_cv_host
2251 shift
2252 host_cpu=$1
2253 host_vendor=$2
2254 shift; shift
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2257 host_os=$*
2258 IFS=$ac_save_IFS
2259 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2260
2261
2262
2263 am__api_version='1.10'
2264
2265 # Find a good install program.  We prefer a C program (faster),
2266 # so one script is as good as another.  But avoid the broken or
2267 # incompatible versions:
2268 # SysV /etc/install, /usr/sbin/install
2269 # SunOS /usr/etc/install
2270 # IRIX /sbin/install
2271 # AIX /bin/install
2272 # AmigaOS /C/install, which installs bootblocks on floppy discs
2273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2276 # OS/2's system install, which has a completely different semantic
2277 # ./install, which can be erroneously created by make from ./install.sh.
2278 # Reject install programs that cannot install multiple files.
2279 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2281 if test -z "$INSTALL"; then
2282 if test "${ac_cv_path_install+set}" = set; then
2283   $as_echo_n "(cached) " >&6
2284 else
2285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   # Account for people who put trailing slashes in PATH elements.
2291 case $as_dir/ in
2292   ./ | .// | /cC/* | \
2293   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2294   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2295   /usr/ucb/* ) ;;
2296   *)
2297     # OSF1 and SCO ODT 3.0 have their own names for install.
2298     # Don't use installbsd from OSF since it installs stuff as root
2299     # by default.
2300     for ac_prog in ginstall scoinst install; do
2301       for ac_exec_ext in '' $ac_executable_extensions; do
2302         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2303           if test $ac_prog = install &&
2304             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2305             # AIX install.  It has an incompatible calling convention.
2306             :
2307           elif test $ac_prog = install &&
2308             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309             # program-specific install script used by HP pwplus--don't use.
2310             :
2311           else
2312             rm -rf conftest.one conftest.two conftest.dir
2313             echo one > conftest.one
2314             echo two > conftest.two
2315             mkdir conftest.dir
2316             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2317               test -s conftest.one && test -s conftest.two &&
2318               test -s conftest.dir/conftest.one &&
2319               test -s conftest.dir/conftest.two
2320             then
2321               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2322               break 3
2323             fi
2324           fi
2325         fi
2326       done
2327     done
2328     ;;
2329 esac
2330
2331 done
2332 IFS=$as_save_IFS
2333
2334 rm -rf conftest.one conftest.two conftest.dir
2335
2336 fi
2337   if test "${ac_cv_path_install+set}" = set; then
2338     INSTALL=$ac_cv_path_install
2339   else
2340     # As a last resort, use the slow shell script.  Don't cache a
2341     # value for INSTALL within a source directory, because that will
2342     # break other packages using the cache if that directory is
2343     # removed, or if the value is a relative name.
2344     INSTALL=$ac_install_sh
2345   fi
2346 fi
2347 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2348 $as_echo "$INSTALL" >&6; }
2349
2350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2351 # It thinks the first close brace ends the variable substitution.
2352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2353
2354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2355
2356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2357
2358 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2359 $as_echo_n "checking whether build environment is sane... " >&6; }
2360 # Just in case
2361 sleep 1
2362 echo timestamp > conftest.file
2363 # Do `set' in a subshell so we don't clobber the current shell's
2364 # arguments.  Must try -L first in case configure is actually a
2365 # symlink; some systems play weird games with the mod time of symlinks
2366 # (eg FreeBSD returns the mod time of the symlink's containing
2367 # directory).
2368 if (
2369    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2370    if test "$*" = "X"; then
2371       # -L didn't work.
2372       set X `ls -t $srcdir/configure conftest.file`
2373    fi
2374    rm -f conftest.file
2375    if test "$*" != "X $srcdir/configure conftest.file" \
2376       && test "$*" != "X conftest.file $srcdir/configure"; then
2377
2378       # If neither matched, then we have a broken ls.  This can happen
2379       # if, for instance, CONFIG_SHELL is bash and it inherits a
2380       # broken ls alias from the environment.  This has actually
2381       # happened.  Such a system could not be considered "sane".
2382       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2383 alias in your environment" >&5
2384 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2385 alias in your environment" >&2;}
2386    { (exit 1); exit 1; }; }
2387    fi
2388
2389    test "$2" = conftest.file
2390    )
2391 then
2392    # Ok.
2393    :
2394 else
2395    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2396 Check your system clock" >&5
2397 $as_echo "$as_me: error: newly created file is older than distributed files!
2398 Check your system clock" >&2;}
2399    { (exit 1); exit 1; }; }
2400 fi
2401 { $as_echo "$as_me:$LINENO: result: yes" >&5
2402 $as_echo "yes" >&6; }
2403 test "$program_prefix" != NONE &&
2404   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2405 # Use a double $ so make ignores it.
2406 test "$program_suffix" != NONE &&
2407   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2408 # Double any \ or $.
2409 # By default was `s,x,x', remove it if useless.
2410 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2411 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2412
2413 # expand $ac_aux_dir to an absolute path
2414 am_aux_dir=`cd $ac_aux_dir && pwd`
2415
2416 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2417 # Use eval to expand $SHELL
2418 if eval "$MISSING --run true"; then
2419   am_missing_run="$MISSING --run "
2420 else
2421   am_missing_run=
2422   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2424 fi
2425
2426 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2427 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2428 if test -z "$MKDIR_P"; then
2429   if test "${ac_cv_path_mkdir+set}" = set; then
2430   $as_echo_n "(cached) " >&6
2431 else
2432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_prog in mkdir gmkdir; do
2438          for ac_exec_ext in '' $ac_executable_extensions; do
2439            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2440            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2441              'mkdir (GNU coreutils) '* | \
2442              'mkdir (coreutils) '* | \
2443              'mkdir (fileutils) '4.1*)
2444                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445                break 3;;
2446            esac
2447          done
2448        done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453
2454   if test "${ac_cv_path_mkdir+set}" = set; then
2455     MKDIR_P="$ac_cv_path_mkdir -p"
2456   else
2457     # As a last resort, use the slow shell script.  Don't cache a
2458     # value for MKDIR_P within a source directory, because that will
2459     # break other packages using the cache if that directory is
2460     # removed, or if the value is a relative name.
2461     test -d ./--version && rmdir ./--version
2462     MKDIR_P="$ac_install_sh -d"
2463   fi
2464 fi
2465 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2466 $as_echo "$MKDIR_P" >&6; }
2467
2468 mkdir_p="$MKDIR_P"
2469 case $mkdir_p in
2470   [\\/$]* | ?:[\\/]*) ;;
2471   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2472 esac
2473
2474 for ac_prog in gawk mawk nawk awk
2475 do
2476   # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if test "${ac_cv_prog_AWK+set}" = set; then
2481   $as_echo_n "(cached) " >&6
2482 else
2483   if test -n "$AWK"; then
2484   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_AWK="$ac_prog"
2494     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 AWK=$ac_cv_prog_AWK
2504 if test -n "$AWK"; then
2505   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2506 $as_echo "$AWK" >&6; }
2507 else
2508   { $as_echo "$as_me:$LINENO: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512
2513   test -n "$AWK" && break
2514 done
2515
2516 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2517 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2518 set x ${MAKE-make}
2519 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2520 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2521   $as_echo_n "(cached) " >&6
2522 else
2523   cat >conftest.make <<\_ACEOF
2524 SHELL = /bin/sh
2525 all:
2526         @echo '@@@%%%=$(MAKE)=@@@%%%'
2527 _ACEOF
2528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2530   *@@@%%%=?*=@@@%%%*)
2531     eval ac_cv_prog_make_${ac_make}_set=yes;;
2532   *)
2533     eval ac_cv_prog_make_${ac_make}_set=no;;
2534 esac
2535 rm -f conftest.make
2536 fi
2537 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2538   { $as_echo "$as_me:$LINENO: result: yes" >&5
2539 $as_echo "yes" >&6; }
2540   SET_MAKE=
2541 else
2542   { $as_echo "$as_me:$LINENO: result: no" >&5
2543 $as_echo "no" >&6; }
2544   SET_MAKE="MAKE=${MAKE-make}"
2545 fi
2546
2547 rm -rf .tst 2>/dev/null
2548 mkdir .tst 2>/dev/null
2549 if test -d .tst; then
2550   am__leading_dot=.
2551 else
2552   am__leading_dot=_
2553 fi
2554 rmdir .tst 2>/dev/null
2555
2556 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2557   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2558   # is not polluted with repeated "-I."
2559   am__isrc=' -I$(srcdir)'
2560   # test to see if srcdir already configured
2561   if test -f $srcdir/config.status; then
2562     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2563 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2564    { (exit 1); exit 1; }; }
2565   fi
2566 fi
2567
2568 # test whether we have cygpath
2569 if test -z "$CYGPATH_W"; then
2570   if (cygpath --version) >/dev/null 2>/dev/null; then
2571     CYGPATH_W='cygpath -w'
2572   else
2573     CYGPATH_W=echo
2574   fi
2575 fi
2576
2577
2578 # Define the identity of the package.
2579  PACKAGE='nfs-utils'
2580  VERSION='1.1.6'
2581
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE "$PACKAGE"
2585 _ACEOF
2586
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define VERSION "$VERSION"
2590 _ACEOF
2591
2592 # Some tools Automake needs.
2593
2594 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2595
2596
2597 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2598
2599
2600 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2601
2602
2603 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2604
2605
2606 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2607
2608 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2609
2610 # Installed binaries are usually stripped using `strip' when the user
2611 # run `make install-strip'.  However `strip' might not be the right
2612 # tool to use in cross-compilation environments, therefore Automake
2613 # will honor the `STRIP' environment variable to overrule this program.
2614 if test "$cross_compiling" != no; then
2615   if test -n "$ac_tool_prefix"; then
2616   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}strip; ac_word=$2
2618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_STRIP+set}" = set; then
2621   $as_echo_n "(cached) " >&6
2622 else
2623   if test -n "$STRIP"; then
2624   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 STRIP=$ac_cv_prog_STRIP
2644 if test -n "$STRIP"; then
2645   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2646 $as_echo "$STRIP" >&6; }
2647 else
2648   { $as_echo "$as_me:$LINENO: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652
2653 fi
2654 if test -z "$ac_cv_prog_STRIP"; then
2655   ac_ct_STRIP=$STRIP
2656   # Extract the first word of "strip", so it can be a program name with args.
2657 set dummy strip; ac_word=$2
2658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$ac_ct_STRIP"; then
2664   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671   for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_ac_ct_STRIP="strip"
2674     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2684 if test -n "$ac_ct_STRIP"; then
2685   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2686 $as_echo "$ac_ct_STRIP" >&6; }
2687 else
2688   { $as_echo "$as_me:$LINENO: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692   if test "x$ac_ct_STRIP" = x; then
2693     STRIP=":"
2694   else
2695     case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701     STRIP=$ac_ct_STRIP
2702   fi
2703 else
2704   STRIP="$ac_cv_prog_STRIP"
2705 fi
2706
2707 fi
2708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2709
2710 # We need awk for the "check" target.  The system "awk" is bad on
2711 # some platforms.
2712 # Always define AMTAR for backward compatibility.
2713
2714 AMTAR=${AMTAR-"${am_missing_run}tar"}
2715
2716 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2717
2718
2719
2720
2721
2722
2723
2724 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2725 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2726     # Check whether --enable-maintainer-mode was given.
2727 if test "${enable_maintainer_mode+set}" = set; then
2728   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2729 else
2730   USE_MAINTAINER_MODE=no
2731 fi
2732
2733   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2734 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2735    if test $USE_MAINTAINER_MODE = yes; then
2736   MAINTAINER_MODE_TRUE=
2737   MAINTAINER_MODE_FALSE='#'
2738 else
2739   MAINTAINER_MODE_TRUE='#'
2740   MAINTAINER_MODE_FALSE=
2741 fi
2742
2743   MAINT=$MAINTAINER_MODE_TRUE
2744
2745
2746
2747
2748 # Check whether --with-release was given.
2749 if test "${with_release+set}" = set; then
2750   withval=$with_release; RELEASE=$withval
2751 else
2752   RELEASE=1
2753 fi
2754
2755
2756
2757 # Check whether --with-statedir was given.
2758 if test "${with_statedir+set}" = set; then
2759   withval=$with_statedir; statedir=$withval
2760 else
2761   statedir=/var/lib/nfs
2762 fi
2763
2764
2765
2766 # Check whether --with-statduser was given.
2767 if test "${with_statduser+set}" = set; then
2768   withval=$with_statduser; statduser=$withval
2769 else
2770   if test "x$cross_compiling" = "xno"; then
2771                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2772                         statduser=rpcuser
2773                 else
2774                         statduser=nobody
2775                 fi
2776         else
2777                 statduser=nobody
2778         fi
2779 fi
2780
2781
2782
2783 # Check whether --with-start-statd was given.
2784 if test "${with_start_statd+set}" = set; then
2785   withval=$with_start_statd; startstatd=$withval
2786 else
2787   startstatd=/usr/sbin/start-statd
2788
2789 fi
2790
2791
2792
2793 cat >>confdefs.h <<_ACEOF
2794 #define START_STATD "$startstatd"
2795 _ACEOF
2796
2797 # Check whether --enable-nfsv3 was given.
2798 if test "${enable_nfsv3+set}" = set; then
2799   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2800 else
2801   enable_nfsv3=yes
2802 fi
2803
2804         if test "$enable_nfsv3" = yes; then
2805
2806 cat >>confdefs.h <<\_ACEOF
2807 #define NFS3_SUPPORTED 1
2808 _ACEOF
2809
2810         else
2811                 enable_nfsv3=
2812         fi
2813
2814 # Check whether --enable-nfsv4 was given.
2815 if test "${enable_nfsv4+set}" = set; then
2816   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2817 else
2818   enable_nfsv4=yes
2819 fi
2820
2821         if test "$enable_nfsv4" = yes; then
2822
2823 cat >>confdefs.h <<\_ACEOF
2824 #define NFS4_SUPPORTED 1
2825 _ACEOF
2826
2827                 IDMAPD=idmapd
2828         else
2829                 enable_nfsv4=
2830                 IDMAPD=
2831         fi
2832
2833
2834          if test "$enable_nfsv4" = "yes"; then
2835   CONFIG_NFSV4_TRUE=
2836   CONFIG_NFSV4_FALSE='#'
2837 else
2838   CONFIG_NFSV4_TRUE='#'
2839   CONFIG_NFSV4_FALSE=
2840 fi
2841
2842 # Check whether --enable-gss was given.
2843 if test "${enable_gss+set}" = set; then
2844   enableval=$enable_gss; enable_gss=$enableval
2845 else
2846   enable_gss=yes
2847 fi
2848
2849         if test "$enable_gss" = yes; then
2850
2851 cat >>confdefs.h <<\_ACEOF
2852 #define GSS_SUPPORTED 1
2853 _ACEOF
2854
2855                 GSSD=gssd
2856                 SVCGSSD=svcgssd
2857         else
2858                 enable_gss=
2859                 GSSD=
2860                 SVCGSSD=
2861         fi
2862
2863
2864
2865          if test "$enable_gss" = "yes"; then
2866   CONFIG_GSS_TRUE=
2867   CONFIG_GSS_FALSE='#'
2868 else
2869   CONFIG_GSS_TRUE='#'
2870   CONFIG_GSS_FALSE=
2871 fi
2872
2873 # Check whether --enable-kprefix was given.
2874 if test "${enable_kprefix+set}" = set; then
2875   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2876 else
2877   kprefix=
2878 fi
2879
2880
2881
2882 # Check whether --with-rpcgen was given.
2883 if test "${with_rpcgen+set}" = set; then
2884   withval=$with_rpcgen; rpcgen_path=$withval
2885 else
2886   rpcgen_path=yes
2887 fi
2888
2889         RPCGEN_PATH=
2890         if test "$rpcgen_path" == "yes"; then
2891             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2892             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2893         elif test "$rpcgen_path" != "internal"; then
2894             RPCGEN_PATH=$rpcgen_path
2895         fi
2896
2897          if test "$RPCGEN_PATH" == ""; then
2898   CONFIG_RPCGEN_TRUE=
2899   CONFIG_RPCGEN_FALSE='#'
2900 else
2901   CONFIG_RPCGEN_TRUE='#'
2902   CONFIG_RPCGEN_FALSE=
2903 fi
2904
2905 # Check whether --enable-uuid was given.
2906 if test "${enable_uuid+set}" = set; then
2907   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2908 else
2909   choose_blkid=default
2910 fi
2911
2912 # Check whether --enable-mount was given.
2913 if test "${enable_mount+set}" = set; then
2914   enableval=$enable_mount; enable_mount=$enableval
2915 else
2916   enable_mount=yes
2917 fi
2918
2919          if test "$enable_mount" = "yes"; then
2920   CONFIG_MOUNT_TRUE=
2921   CONFIG_MOUNT_FALSE='#'
2922 else
2923   CONFIG_MOUNT_TRUE='#'
2924   CONFIG_MOUNT_FALSE=
2925 fi
2926
2927 # Check whether --enable-tirpc was given.
2928 if test "${enable_tirpc+set}" = set; then
2929   enableval=$enable_tirpc; enable_tirpc=$enableval
2930 else
2931   enable_tirpc=no
2932 fi
2933
2934 # Check whether --enable-ipv6 was given.
2935 if test "${enable_ipv6+set}" = set; then
2936   enableval=$enable_ipv6; enable_ipv6=$enableval
2937 else
2938   enable_ipv6=no
2939 fi
2940
2941         if test "$enable_ipv6" = yes; then
2942
2943 cat >>confdefs.h <<\_ACEOF
2944 #define IPV6_SUPPORTED 1
2945 _ACEOF
2946
2947         else
2948                 enable_ipv6=
2949         fi
2950
2951          if test "$enable_ipv6" = "yes"; then
2952   CONFIG_IPV6_TRUE=
2953   CONFIG_IPV6_FALSE='#'
2954 else
2955   CONFIG_IPV6_TRUE='#'
2956   CONFIG_IPV6_FALSE=
2957 fi
2958
2959
2960 DEPDIR="${am__leading_dot}deps"
2961
2962 ac_config_commands="$ac_config_commands depfiles"
2963
2964
2965 am_make=${MAKE-make}
2966 cat > confinc << 'END'
2967 am__doit:
2968         @echo done
2969 .PHONY: am__doit
2970 END
2971 # If we don't find an include directive, just comment out the code.
2972 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2973 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2974 am__include="#"
2975 am__quote=
2976 _am_result=none
2977 # First try GNU make style include.
2978 echo "include confinc" > confmf
2979 # We grep out `Entering directory' and `Leaving directory'
2980 # messages which can occur if `w' ends up in MAKEFLAGS.
2981 # In particular we don't look at `^make:' because GNU make might
2982 # be invoked under some other name (usually "gmake"), in which
2983 # case it prints its new name instead of `make'.
2984 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2985    am__include=include
2986    am__quote=
2987    _am_result=GNU
2988 fi
2989 # Now try BSD make style include.
2990 if test "$am__include" = "#"; then
2991    echo '.include "confinc"' > confmf
2992    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2993       am__include=.include
2994       am__quote="\""
2995       _am_result=BSD
2996    fi
2997 fi
2998
2999
3000 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3001 $as_echo "$_am_result" >&6; }
3002 rm -f confinc confmf
3003
3004 # Check whether --enable-dependency-tracking was given.
3005 if test "${enable_dependency_tracking+set}" = set; then
3006   enableval=$enable_dependency_tracking;
3007 fi
3008
3009 if test "x$enable_dependency_tracking" != xno; then
3010   am_depcomp="$ac_aux_dir/depcomp"
3011   AMDEPBACKSLASH='\'
3012 fi
3013  if test "x$enable_dependency_tracking" != xno; then
3014   AMDEP_TRUE=
3015   AMDEP_FALSE='#'
3016 else
3017   AMDEP_TRUE='#'
3018   AMDEP_FALSE=
3019 fi
3020
3021
3022 ac_ext=c
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 if test -n "$ac_tool_prefix"; then
3028   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033   $as_echo_n "(cached) " >&6
3034 else
3035   if test -n "$CC"; then
3036   ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043   for ac_exec_ext in '' $ac_executable_extensions; do
3044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3046     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060   { $as_echo "$as_me:$LINENO: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 fi
3066 if test -z "$ac_cv_prog_CC"; then
3067   ac_ct_CC=$CC
3068   # Extract the first word of "gcc", so it can be a program name with args.
3069 set dummy gcc; ac_word=$2
3070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3073   $as_echo_n "(cached) " >&6
3074 else
3075   if test -n "$ac_ct_CC"; then
3076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083   for ac_exec_ext in '' $ac_executable_extensions; do
3084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085     ac_cv_prog_ac_ct_CC="gcc"
3086     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087     break 2
3088   fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096 if test -n "$ac_ct_CC"; then
3097   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098 $as_echo "$ac_ct_CC" >&6; }
3099 else
3100   { $as_echo "$as_me:$LINENO: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104   if test "x$ac_ct_CC" = x; then
3105     CC=""
3106   else
3107     case $cross_compiling:$ac_tool_warned in
3108 yes:)
3109 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111 ac_tool_warned=yes ;;
3112 esac
3113     CC=$ac_ct_CC
3114   fi
3115 else
3116   CC="$ac_cv_prog_CC"
3117 fi
3118
3119 if test -z "$CC"; then
3120           if test -n "$ac_tool_prefix"; then
3121     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}cc; ac_word=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if test -n "$CC"; then
3129   ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136   for ac_exec_ext in '' $ac_executable_extensions; do
3137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138     ac_cv_prog_CC="${ac_tool_prefix}cc"
3139     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153   { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158   fi
3159 fi
3160 if test -z "$CC"; then
3161   # Extract the first word of "cc", so it can be a program name with args.
3162 set dummy cc; ac_word=$2
3163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then
3166   $as_echo_n "(cached) " >&6
3167 else
3168   if test -n "$CC"; then
3169   ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171   ac_prog_rejected=no
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177   for ac_exec_ext in '' $ac_executable_extensions; do
3178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180        ac_prog_rejected=yes
3181        continue
3182      fi
3183     ac_cv_prog_CC="cc"
3184     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 if test $ac_prog_rejected = yes; then
3192   # We found a bogon in the path, so make sure we never use it.
3193   set dummy $ac_cv_prog_CC
3194   shift
3195   if test $# != 0; then
3196     # We chose a different compiler from the bogus one.
3197     # However, it has the same basename, so the bogon will be chosen
3198     # first if we set CC to just the basename; use the full file name.
3199     shift
3200     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201   fi
3202 fi
3203 fi
3204 fi
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210   { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215 fi
3216 if test -z "$CC"; then
3217   if test -n "$ac_tool_prefix"; then
3218   for ac_prog in cl.exe
3219   do
3220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then
3225   $as_echo_n "(cached) " >&6
3226 else
3227   if test -n "$CC"; then
3228   ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 CC=$ac_cv_prog_CC
3248 if test -n "$CC"; then
3249   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3251 else
3252   { $as_echo "$as_me:$LINENO: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256
3257     test -n "$CC" && break
3258   done
3259 fi
3260 if test -z "$CC"; then
3261   ac_ct_CC=$CC
3262   for ac_prog in cl.exe
3263 do
3264   # Extract the first word of "$ac_prog", so it can be a program name with args.
3265 set dummy $ac_prog; ac_word=$2
3266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3269   $as_echo_n "(cached) " >&6
3270 else
3271   if test -n "$ac_ct_CC"; then
3272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279   for ac_exec_ext in '' $ac_executable_extensions; do
3280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281     ac_cv_prog_ac_ct_CC="$ac_prog"
3282     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3295 else
3296   { $as_echo "$as_me:$LINENO: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301   test -n "$ac_ct_CC" && break
3302 done
3303
3304   if test "x$ac_ct_CC" = x; then
3305     CC=""
3306   else
3307     case $cross_compiling:$ac_tool_warned in
3308 yes:)
3309 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311 ac_tool_warned=yes ;;
3312 esac
3313     CC=$ac_ct_CC
3314   fi
3315 fi
3316
3317 fi
3318
3319
3320 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3325 See \`config.log' for more details." >&2;}
3326    { (exit 1); exit 1; }; }; }
3327
3328 # Provide some information about the compiler.
3329 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3330 set X $ac_compile
3331 ac_compiler=$2
3332 { (ac_try="$ac_compiler --version >&5"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339   (eval "$ac_compiler --version >&5") 2>&5
3340   ac_status=$?
3341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }
3343 { (ac_try="$ac_compiler -v >&5"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3349 $as_echo "$ac_try_echo") >&5
3350   (eval "$ac_compiler -v >&5") 2>&5
3351   ac_status=$?
3352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }
3354 { (ac_try="$ac_compiler -V >&5"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361   (eval "$ac_compiler -V >&5") 2>&5
3362   ac_status=$?
3363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); }
3365
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition
3385 # of exeext.
3386 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389
3390 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392
3393 ac_rmfiles=
3394 for ac_file in $ac_files
3395 do
3396   case $ac_file in
3397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399   esac
3400 done
3401 rm -f $ac_rmfiles
3402
3403 if { (ac_try="$ac_link_default"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409 $as_echo "$ac_try_echo") >&5
3410   (eval "$ac_link_default") 2>&5
3411   ac_status=$?
3412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }; then
3414   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to
3418 # Autoconf.
3419 for ac_file in $ac_files ''
3420 do
3421   test -f "$ac_file" || continue
3422   case $ac_file in
3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424         ;;
3425     [ab].out )
3426         # We found the default executable, but exeext='' is most
3427         # certainly right.
3428         break;;
3429     *.* )
3430         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431         then :; else
3432            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433         fi
3434         # We set ac_cv_exeext here because the later test for it is not
3435         # safe: cross compilers may not add the suffix if given an `-o'
3436         # argument, so we may need to know it at that point already.
3437         # Even if this section looks crufty: it has the advantage of
3438         # actually working.
3439         break;;
3440     * )
3441         break;;
3442   esac
3443 done
3444 test "$ac_cv_exeext" = no && ac_cv_exeext=
3445
3446 else
3447   ac_file=''
3448 fi
3449
3450 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; }
3452 if test -z "$ac_file"; then
3453   $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: C compiler cannot create executables
3461 See \`config.log' for more details." >&2;}
3462    { (exit 77); exit 77; }; }; }
3463 fi
3464
3465 ac_exeext=$ac_cv_exeext
3466
3467 # Check that the compiler produces executables we can run.  If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3472 # If not cross compiling, check that we can run a simple program.
3473 if test "$cross_compiling" != yes; then
3474   if { ac_try='./$ac_file'
3475   { (case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481   (eval "$ac_try") 2>&5
3482   ac_status=$?
3483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }; }; then
3485     cross_compiling=no
3486   else
3487     if test "$cross_compiling" = maybe; then
3488         cross_compiling=yes
3489     else
3490         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details." >&5
3495 $as_echo "$as_me: error: cannot run C compiled programs.
3496 If you meant to cross compile, use \`--host'.
3497 See \`config.log' for more details." >&2;}
3498    { (exit 1); exit 1; }; }; }
3499     fi
3500   fi
3501 fi
3502 { $as_echo "$as_me:$LINENO: result: yes" >&5
3503 $as_echo "yes" >&6; }
3504
3505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3506 ac_clean_files=$ac_clean_files_save
3507 # Check that the compiler produces executables we can run.  If not, either
3508 # the compiler is broken, or we cross compile.
3509 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3510 $as_echo_n "checking whether we are cross compiling... " >&6; }
3511 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3513
3514 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3515 $as_echo_n "checking for suffix of executables... " >&6; }
3516 if { (ac_try="$ac_link"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523   (eval "$ac_link") 2>&5
3524   ac_status=$?
3525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; then
3527   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3529 # work properly (i.e., refer to `conftest.exe'), while it won't with
3530 # `rm'.
3531 for ac_file in conftest.exe conftest conftest.*; do
3532   test -f "$ac_file" || continue
3533   case $ac_file in
3534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536           break;;
3537     * ) break;;
3538   esac
3539 done
3540 else
3541   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3544 See \`config.log' for more details." >&5
3545 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&2;}
3547    { (exit 1); exit 1; }; }; }
3548 fi
3549
3550 rm -f conftest$ac_cv_exeext
3551 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3552 $as_echo "$ac_cv_exeext" >&6; }
3553
3554 rm -f conftest.$ac_ext
3555 EXEEXT=$ac_cv_exeext
3556 ac_exeext=$EXEEXT
3557 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3558 $as_echo_n "checking for suffix of object files... " >&6; }
3559 if test "${ac_cv_objext+set}" = set; then
3560   $as_echo_n "(cached) " >&6
3561 else
3562   cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568
3569 int
3570 main ()
3571 {
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.o conftest.obj
3578 if { (ac_try="$ac_compile"
3579 case "(($ac_try" in
3580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581   *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3584 $as_echo "$ac_try_echo") >&5
3585   (eval "$ac_compile") 2>&5
3586   ac_status=$?
3587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }; then
3589   for ac_file in conftest.o conftest.obj conftest.*; do
3590   test -f "$ac_file" || continue;
3591   case $ac_file in
3592     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3593     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3594        break;;
3595   esac
3596 done
3597 else
3598   $as_echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details." >&2;}
3607    { (exit 1); exit 1; }; }; }
3608 fi
3609
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611 fi
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3615 ac_objext=$OBJEXT
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619   $as_echo_n "(cached) " >&6
3620 else
3621   cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h.  */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631 #ifndef __GNUC__
3632        choke me
3633 #endif
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647   (eval "$ac_compile") 2>conftest.er1
3648   ac_status=$?
3649   grep -v '^ *+' conftest.er1 >conftest.err
3650   rm -f conftest.er1
3651   cat conftest.err >&5
3652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); } && {
3654          test -z "$ac_c_werror_flag" ||
3655          test ! -s conftest.err
3656        } && test -s conftest.$ac_objext; then
3657   ac_compiler_gnu=yes
3658 else
3659   $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662         ac_compiler_gnu=no
3663 fi
3664
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3667
3668 fi
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3672   GCC=yes
3673 else
3674   GCC=
3675 fi
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681   $as_echo_n "(cached) " >&6
3682 else
3683   ac_save_c_werror_flag=$ac_c_werror_flag
3684    ac_c_werror_flag=yes
3685    ac_cv_prog_cc_g=no
3686    CFLAGS="-g"
3687    cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h.  */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h.  */
3693
3694 int
3695 main ()
3696 {
3697
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710   (eval "$ac_compile") 2>conftest.er1
3711   ac_status=$?
3712   grep -v '^ *+' conftest.er1 >conftest.err
3713   rm -f conftest.er1
3714   cat conftest.err >&5
3715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } && {
3717          test -z "$ac_c_werror_flag" ||
3718          test ! -s conftest.err
3719        } && test -s conftest.$ac_objext; then
3720   ac_cv_prog_cc_g=yes
3721 else
3722   $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725         CFLAGS=""
3726       cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745   *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749   (eval "$ac_compile") 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } && {
3756          test -z "$ac_c_werror_flag" ||
3757          test ! -s conftest.err
3758        } && test -s conftest.$ac_objext; then
3759   :
3760 else
3761   $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764         ac_c_werror_flag=$ac_save_c_werror_flag
3765          CFLAGS="-g"
3766          cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h.  */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h.  */
3772
3773 int
3774 main ()
3775 {
3776
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789   (eval "$ac_compile") 2>conftest.er1
3790   ac_status=$?
3791   grep -v '^ *+' conftest.er1 >conftest.err
3792   rm -f conftest.er1
3793   cat conftest.err >&5
3794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } && {
3796          test -z "$ac_c_werror_flag" ||
3797          test ! -s conftest.err
3798        } && test -s conftest.$ac_objext; then
3799   ac_cv_prog_cc_g=yes
3800 else
3801   $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804
3805 fi
3806
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814    ac_c_werror_flag=$ac_save_c_werror_flag
3815 fi
3816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819   CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821   if test "$GCC" = yes; then
3822     CFLAGS="-g -O2"
3823   else
3824     CFLAGS="-g"
3825   fi
3826 else
3827   if test "$GCC" = yes; then
3828     CFLAGS="-O2"
3829   else
3830     CFLAGS=
3831   fi
3832 fi
3833 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836   $as_echo_n "(cached) " >&6
3837 else
3838   ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 #include <stdarg.h>
3847 #include <stdio.h>
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3854      char **p;
3855      int i;
3856 {
3857   return p[i];
3858 }
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3860 {
3861   char *s;
3862   va_list v;
3863   va_start (v,p);
3864   s = g (p, va_arg (v,int));
3865   va_end (v);
3866   return s;
3867 }
3868
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3870    function prototypes and stuff, but not '\xHH' hex character constants.
3871    These don't provoke an error unfortunately, instead are silently treated
3872    as 'x'.  The following induces an error, until -std is added to get
3873    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3874    array size at least.  It's necessary to write '\x00'==0 to get something
3875    that's true only with -std.  */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879    inside strings and character constants.  */
3880 #define FOO(x) 'x'
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 int argc;
3888 char **argv;
3889 int
3890 main ()
3891 {
3892 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 do
3900   CC="$ac_save_CC $ac_arg"
3901   rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909   (eval "$ac_compile") 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } && {
3916          test -z "$ac_c_werror_flag" ||
3917          test ! -s conftest.err
3918        } && test -s conftest.$ac_objext; then
3919   ac_cv_prog_cc_c89=$ac_arg
3920 else
3921   $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924
3925 fi
3926
3927 rm -f core conftest.err conftest.$ac_objext
3928   test "x$ac_cv_prog_cc_c89" != "xno" && break
3929 done
3930 rm -f conftest.$ac_ext
3931 CC=$ac_save_CC
3932
3933 fi
3934 # AC_CACHE_VAL
3935 case "x$ac_cv_prog_cc_c89" in
3936   x)
3937     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3938 $as_echo "none needed" >&6; } ;;
3939   xno)
3940     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3941 $as_echo "unsupported" >&6; } ;;
3942   *)
3943     CC="$CC $ac_cv_prog_cc_c89"
3944     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3946 esac
3947
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955 depcc="$CC"   am_compiler_list=
3956
3957 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3958 $as_echo_n "checking dependency style of $depcc... " >&6; }
3959 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3960   $as_echo_n "(cached) " >&6
3961 else
3962   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3963   # We make a subdir and do the tests there.  Otherwise we can end up
3964   # making bogus files that we don't know about and never remove.  For
3965   # instance it was reported that on HP-UX the gcc test will end up
3966   # making a dummy file named `D' -- because `-MD' means `put the output
3967   # in D'.
3968   mkdir conftest.dir
3969   # Copy depcomp to subdir because otherwise we won't find it if we're
3970   # using a relative directory.
3971   cp "$am_depcomp" conftest.dir
3972   cd conftest.dir
3973   # We will build objects and dependencies in a subdirectory because
3974   # it helps to detect inapplicable dependency modes.  For instance
3975   # both Tru64's cc and ICC support -MD to output dependencies as a
3976   # side effect of compilation, but ICC will put the dependencies in
3977   # the current directory while Tru64 will put them in the object
3978   # directory.
3979   mkdir sub
3980
3981   am_cv_CC_dependencies_compiler_type=none
3982   if test "$am_compiler_list" = ""; then
3983      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3984   fi
3985   for depmode in $am_compiler_list; do
3986     # Setup a source with many dependencies, because some compilers
3987     # like to wrap large dependency lists on column 80 (with \), and
3988     # we should not choose a depcomp mode which is confused by this.
3989     #
3990     # We need to recreate these files for each test, as the compiler may
3991     # overwrite some of them when testing with obscure command lines.
3992     # This happens at least with the AIX C compiler.
3993     : > sub/conftest.c
3994     for i in 1 2 3 4 5 6; do
3995       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3996       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3997       # Solaris 8's {/usr,}/bin/sh.
3998       touch sub/conftst$i.h
3999     done
4000     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4001
4002     case $depmode in
4003     nosideeffect)
4004       # after this tag, mechanisms are not by side-effect, so they'll
4005       # only be used when explicitly requested
4006       if test "x$enable_dependency_tracking" = xyes; then
4007         continue
4008       else
4009         break
4010       fi
4011       ;;
4012     none) break ;;
4013     esac
4014     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4015     # mode.  It turns out that the SunPro C++ compiler does not properly
4016     # handle `-M -o', and we need to detect this.
4017     if depmode=$depmode \
4018        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4019        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4020        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4021          >/dev/null 2>conftest.err &&
4022        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4023        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4024        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4025        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4026       # icc doesn't choke on unknown options, it will just issue warnings
4027       # or remarks (even with -Werror).  So we grep stderr for any message
4028       # that says an option was ignored or not supported.
4029       # When given -MP, icc 7.0 and 7.1 complain thusly:
4030       #   icc: Command line warning: ignoring option '-M'; no argument required
4031       # The diagnosis changed in icc 8.0:
4032       #   icc: Command line remark: option '-MP' not supported
4033       if (grep 'ignoring option' conftest.err ||
4034           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4035         am_cv_CC_dependencies_compiler_type=$depmode
4036         break
4037       fi
4038     fi
4039   done
4040
4041   cd ..
4042   rm -rf conftest.dir
4043 else
4044   am_cv_CC_dependencies_compiler_type=none
4045 fi
4046
4047 fi
4048 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4051
4052  if
4053   test "x$enable_dependency_tracking" != xno \
4054   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4055   am__fastdepCC_TRUE=
4056   am__fastdepCC_FALSE='#'
4057 else
4058   am__fastdepCC_TRUE='#'
4059   am__fastdepCC_FALSE=
4060 fi
4061
4062
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4073   CPP=
4074 fi
4075 if test -z "$CPP"; then
4076   if test "${ac_cv_prog_CPP+set}" = set; then
4077   $as_echo_n "(cached) " >&6
4078 else
4079       # Double quotes because CPP needs to be expanded
4080     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081     do
4082       ac_preproc_ok=false
4083 for ac_c_preproc_warn_flag in '' yes
4084 do
4085   # Use a header file that comes with gcc, so configuring glibc
4086   # with a fresh cross-compiler works.
4087   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088   # <limits.h> exists even on freestanding compilers.
4089   # On the NeXT, cc -E runs the code through the compiler's parser,
4090   # not just through cpp. "Syntax error" is here to catch this case.
4091   cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h.  */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h.  */
4097 #ifdef __STDC__
4098 # include <limits.h>
4099 #else
4100 # include <assert.h>
4101 #endif
4102                      Syntax error
4103 _ACEOF
4104 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4112   ac_status=$?
4113   grep -v '^ *+' conftest.er1 >conftest.err
4114   rm -f conftest.er1
4115   cat conftest.err >&5
4116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); } >/dev/null && {
4118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4119          test ! -s conftest.err
4120        }; then
4121   :
4122 else
4123   $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126   # Broken: fails on valid input.
4127 continue
4128 fi
4129
4130 rm -f conftest.err conftest.$ac_ext
4131
4132   # OK, works on sane cases.  Now check whether nonexistent headers
4133   # can be detected and how.
4134   cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140 #include <ac_nonexistent.h>
4141 _ACEOF
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } >/dev/null && {
4156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157          test ! -s conftest.err
4158        }; then
4159   # Broken: success on invalid input.
4160 continue
4161 else
4162   $as_echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165   # Passes both tests.
4166 ac_preproc_ok=:
4167 break
4168 fi
4169
4170 rm -f conftest.err conftest.$ac_ext
4171
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then
4176   break
4177 fi
4178
4179     done
4180     ac_cv_prog_CPP=$CPP
4181
4182 fi
4183   CPP=$ac_cv_prog_CPP
4184 else
4185   ac_cv_prog_CPP=$CPP
4186 fi
4187 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4188 $as_echo "$CPP" >&6; }
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192   # Use a header file that comes with gcc, so configuring glibc
4193   # with a fresh cross-compiler works.
4194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195   # <limits.h> exists even on freestanding compilers.
4196   # On the NeXT, cc -E runs the code through the compiler's parser,
4197   # not just through cpp. "Syntax error" is here to catch this case.
4198   cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209                      Syntax error
4210 _ACEOF
4211 if { (ac_try="$ac_cpp conftest.$ac_ext"
4212 case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } >/dev/null && {
4225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4226          test ! -s conftest.err
4227        }; then
4228   :
4229 else
4230   $as_echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233   # Broken: fails on valid input.
4234 continue
4235 fi
4236
4237 rm -f conftest.err conftest.$ac_ext
4238
4239   # OK, works on sane cases.  Now check whether nonexistent headers
4240   # can be detected and how.
4241   cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if { (ac_try="$ac_cpp conftest.$ac_ext"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } >/dev/null && {
4263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4264          test ! -s conftest.err
4265        }; then
4266   # Broken: success on invalid input.
4267 continue
4268 else
4269   $as_echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272   # Passes both tests.
4273 ac_preproc_ok=:
4274 break
4275 fi
4276
4277 rm -f conftest.err conftest.$ac_ext
4278
4279 done
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then
4283   :
4284 else
4285   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4288 See \`config.log' for more details." >&5
4289 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details." >&2;}
4291    { (exit 1); exit 1; }; }; }
4292 fi
4293
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
4300
4301 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4302 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4303 if test "${ac_cv_path_GREP+set}" = set; then
4304   $as_echo_n "(cached) " >&6
4305 else
4306   if test -z "$GREP"; then
4307   ac_path_GREP_found=false
4308   # Loop through the user's path and test for each of PROGNAME-LIST
4309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_prog in grep ggrep; do
4315     for ac_exec_ext in '' $ac_executable_extensions; do
4316       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4317       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4318 # Check for GNU ac_path_GREP and select it if it is found.
4319   # Check for GNU $ac_path_GREP
4320 case `"$ac_path_GREP" --version 2>&1` in
4321 *GNU*)
4322   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4323 *)
4324   ac_count=0
4325   $as_echo_n 0123456789 >"conftest.in"
4326   while :
4327   do
4328     cat "conftest.in" "conftest.in" >"conftest.tmp"
4329     mv "conftest.tmp" "conftest.in"
4330     cp "conftest.in" "conftest.nl"
4331     $as_echo 'GREP' >> "conftest.nl"
4332     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334     ac_count=`expr $ac_count + 1`
4335     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4336       # Best one so far, save it but keep looking for a better one
4337       ac_cv_path_GREP="$ac_path_GREP"
4338       ac_path_GREP_max=$ac_count
4339     fi
4340     # 10*(2^10) chars as input seems more than enough
4341     test $ac_count -gt 10 && break
4342   done
4343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344 esac
4345
4346       $ac_path_GREP_found && break 3
4347     done
4348   done
4349 done
4350 IFS=$as_save_IFS
4351   if test -z "$ac_cv_path_GREP"; then
4352     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4353 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4354    { (exit 1); exit 1; }; }
4355   fi
4356 else
4357   ac_cv_path_GREP=$GREP
4358 fi
4359
4360 fi
4361 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4362 $as_echo "$ac_cv_path_GREP" >&6; }
4363  GREP="$ac_cv_path_GREP"
4364
4365
4366 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4367 $as_echo_n "checking for egrep... " >&6; }
4368 if test "${ac_cv_path_EGREP+set}" = set; then
4369   $as_echo_n "(cached) " >&6
4370 else
4371   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372    then ac_cv_path_EGREP="$GREP -E"
4373    else
4374      if test -z "$EGREP"; then
4375   ac_path_EGREP_found=false
4376   # Loop through the user's path and test for each of PROGNAME-LIST
4377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382   for ac_prog in egrep; do
4383     for ac_exec_ext in '' $ac_executable_extensions; do
4384       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386 # Check for GNU ac_path_EGREP and select it if it is found.
4387   # Check for GNU $ac_path_EGREP
4388 case `"$ac_path_EGREP" --version 2>&1` in
4389 *GNU*)
4390   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4391 *)
4392   ac_count=0
4393   $as_echo_n 0123456789 >"conftest.in"
4394   while :
4395   do
4396     cat "conftest.in" "conftest.in" >"conftest.tmp"
4397     mv "conftest.tmp" "conftest.in"
4398     cp "conftest.in" "conftest.nl"
4399     $as_echo 'EGREP' >> "conftest.nl"
4400     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402     ac_count=`expr $ac_count + 1`
4403     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404       # Best one so far, save it but keep looking for a better one
4405       ac_cv_path_EGREP="$ac_path_EGREP"
4406       ac_path_EGREP_max=$ac_count
4407     fi
4408     # 10*(2^10) chars as input seems more than enough
4409     test $ac_count -gt 10 && break
4410   done
4411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4413
4414       $ac_path_EGREP_found && break 3
4415     done
4416   done
4417 done
4418 IFS=$as_save_IFS
4419   if test -z "$ac_cv_path_EGREP"; then
4420     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4421 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4422    { (exit 1); exit 1; }; }
4423   fi
4424 else
4425   ac_cv_path_EGREP=$EGREP
4426 fi
4427
4428    fi
4429 fi
4430 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4431 $as_echo "$ac_cv_path_EGREP" >&6; }
4432  EGREP="$ac_cv_path_EGREP"
4433
4434
4435 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4436 $as_echo_n "checking for ANSI C header files... " >&6; }
4437 if test "${ac_cv_header_stdc+set}" = set; then
4438   $as_echo_n "(cached) " >&6
4439 else
4440   cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h.  */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h.  */
4446 #include <stdlib.h>
4447 #include <stdarg.h>
4448 #include <string.h>
4449 #include <float.h>
4450
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4466 $as_echo "$ac_try_echo") >&5
4467   (eval "$ac_compile") 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } && {
4474          test -z "$ac_c_werror_flag" ||
4475          test ! -s conftest.err
4476        } && test -s conftest.$ac_objext; then
4477   ac_cv_header_stdc=yes
4478 else
4479   $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482         ac_cv_header_stdc=no
4483 fi
4484
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486
4487 if test $ac_cv_header_stdc = yes; then
4488   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4489   cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 #include <string.h>
4496
4497 _ACEOF
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499   $EGREP "memchr" >/dev/null 2>&1; then
4500   :
4501 else
4502   ac_cv_header_stdc=no
4503 fi
4504 rm -f conftest*
4505
4506 fi
4507
4508 if test $ac_cv_header_stdc = yes; then
4509   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4510   cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 #include <stdlib.h>
4517
4518 _ACEOF
4519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4520   $EGREP "free" >/dev/null 2>&1; then
4521   :
4522 else
4523   ac_cv_header_stdc=no
4524 fi
4525 rm -f conftest*
4526
4527 fi
4528
4529 if test $ac_cv_header_stdc = yes; then
4530   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4531   if test "$cross_compiling" = yes; then
4532   :
4533 else
4534   cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h.  */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h.  */
4540 #include <ctype.h>
4541 #include <stdlib.h>
4542 #if ((' ' & 0x0FF) == 0x020)
4543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4545 #else
4546 # define ISLOWER(c) \
4547                    (('a' <= (c) && (c) <= 'i') \
4548                      || ('j' <= (c) && (c) <= 'r') \
4549                      || ('s' <= (c) && (c) <= 'z'))
4550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4551 #endif
4552
4553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4554 int
4555 main ()
4556 {
4557   int i;
4558   for (i = 0; i < 256; i++)
4559     if (XOR (islower (i), ISLOWER (i))
4560         || toupper (i) != TOUPPER (i))
4561       return 2;
4562   return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest$ac_exeext
4566 if { (ac_try="$ac_link"
4567 case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572 $as_echo "$ac_try_echo") >&5
4573   (eval "$ac_link") 2>&5
4574   ac_status=$?
4575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4577   { (case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582 $as_echo "$ac_try_echo") >&5
4583   (eval "$ac_try") 2>&5
4584   ac_status=$?
4585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; }; then
4587   :
4588 else
4589   $as_echo "$as_me: program exited with status $ac_status" >&5
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 ( exit $ac_status )
4594 ac_cv_header_stdc=no
4595 fi
4596 rm -rf conftest.dSYM
4597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4598 fi
4599
4600
4601 fi
4602 fi
4603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4604 $as_echo "$ac_cv_header_stdc" >&6; }
4605 if test $ac_cv_header_stdc = yes; then
4606
4607 cat >>confdefs.h <<\_ACEOF
4608 #define STDC_HEADERS 1
4609 _ACEOF
4610
4611 fi
4612
4613 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4624                   inttypes.h stdint.h unistd.h
4625 do
4626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4628 $as_echo_n "checking for $ac_header... " >&6; }
4629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4630   $as_echo_n "(cached) " >&6
4631 else
4632   cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 $ac_includes_default
4639
4640 #include <$ac_header>
4641 _ACEOF
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649 $as_echo "$ac_try_echo") >&5
4650   (eval "$ac_compile") 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } && {
4657          test -z "$ac_c_werror_flag" ||
4658          test ! -s conftest.err
4659        } && test -s conftest.$ac_objext; then
4660   eval "$as_ac_Header=yes"
4661 else
4662   $as_echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665         eval "$as_ac_Header=no"
4666 fi
4667
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 ac_res=`eval 'as_val=${'$as_ac_Header'}
4671                  $as_echo "$as_val"'`
4672                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4673 $as_echo "$ac_res" >&6; }
4674 as_val=`eval 'as_val=${'$as_ac_Header'}
4675                  $as_echo "$as_val"'`
4676    if test "x$as_val" = x""yes; then
4677   cat >>confdefs.h <<_ACEOF
4678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4679 _ACEOF
4680
4681 fi
4682
4683 done
4684
4685
4686
4687
4688
4689 # Check whether --with-tirpcinclude was given.
4690 if test "${with_tirpcinclude+set}" = set; then
4691   withval=$with_tirpcinclude; tirpc_header_dir=$withval
4692 else
4693   tirpc_header_dir=/usr/include/tirpc
4694 fi
4695
4696
4697
4698   if test "$enable_tirpc" = yes; then
4699
4700
4701 { $as_echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
4702 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4703 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
4704   $as_echo_n "(cached) " >&6
4705 else
4706   ac_check_lib_save_LIBS=$LIBS
4707 LIBS="-ltirpc  $LIBS"
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714
4715 /* Override any GCC internal prototype to avoid an error.
4716    Use char because int might match the return type of a GCC
4717    builtin and then its argument prototype would still apply.  */
4718 #ifdef __cplusplus
4719 extern "C"
4720 #endif
4721 char clnt_tli_create ();
4722 int
4723 main ()
4724 {
4725 return clnt_tli_create ();
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.$ac_objext conftest$ac_exeext
4731 if { (ac_try="$ac_link"
4732 case "(($ac_try" in
4733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734   *) ac_try_echo=$ac_try;;
4735 esac
4736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4737 $as_echo "$ac_try_echo") >&5
4738   (eval "$ac_link") 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } && {
4745          test -z "$ac_c_werror_flag" ||
4746          test ! -s conftest.err
4747        } && test -s conftest$ac_exeext && {
4748          test "$cross_compiling" = yes ||
4749          $as_test_x conftest$ac_exeext
4750        }; then
4751   ac_cv_lib_tirpc_clnt_tli_create=yes
4752 else
4753   $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756         ac_cv_lib_tirpc_clnt_tli_create=no
4757 fi
4758
4759 rm -rf conftest.dSYM
4760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4761       conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4763 fi
4764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
4765 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
4766 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then
4767   cat >>confdefs.h <<_ACEOF
4768 #define HAVE_LIBTIRPC 1
4769 _ACEOF
4770
4771   LIBS="-ltirpc $LIBS"
4772
4773 else
4774   { { $as_echo "$as_me:$LINENO: error: libtirpc not found." >&5
4775 $as_echo "$as_me: error: libtirpc not found." >&2;}
4776    { (exit 1); exit 1; }; }
4777 fi
4778
4779
4780
4781 for ac_header in ${tirpc_header_dir}/netconfig.h
4782 do
4783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4785   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4786 $as_echo_n "checking for $ac_header... " >&6; }
4787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4788   $as_echo_n "(cached) " >&6
4789 fi
4790 ac_res=`eval 'as_val=${'$as_ac_Header'}
4791                  $as_echo "$as_val"'`
4792                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4793 $as_echo "$ac_res" >&6; }
4794 else
4795   # Is the header compilable?
4796 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4797 $as_echo_n "checking $ac_header usability... " >&6; }
4798 cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 $ac_includes_default
4805 #include <$ac_header>
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4809 case "(($ac_try" in
4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811   *) ac_try_echo=$ac_try;;
4812 esac
4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814 $as_echo "$ac_try_echo") >&5
4815   (eval "$ac_compile") 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } && {
4822          test -z "$ac_c_werror_flag" ||
4823          test ! -s conftest.err
4824        } && test -s conftest.$ac_objext; then
4825   ac_header_compiler=yes
4826 else
4827   $as_echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830         ac_header_compiler=no
4831 fi
4832
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4835 $as_echo "$ac_header_compiler" >&6; }
4836
4837 # Is the header present?
4838 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4839 $as_echo_n "checking $ac_header presence... " >&6; }
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 #include <$ac_header>
4847 _ACEOF
4848 if { (ac_try="$ac_cpp conftest.$ac_ext"
4849 case "(($ac_try" in
4850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851   *) ac_try_echo=$ac_try;;
4852 esac
4853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4856   ac_status=$?
4857   grep -v '^ *+' conftest.er1 >conftest.err
4858   rm -f conftest.er1
4859   cat conftest.err >&5
4860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } >/dev/null && {
4862          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4863          test ! -s conftest.err
4864        }; then
4865   ac_header_preproc=yes
4866 else
4867   $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870   ac_header_preproc=no
4871 fi
4872
4873 rm -f conftest.err conftest.$ac_ext
4874 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4875 $as_echo "$ac_header_preproc" >&6; }
4876
4877 # So?  What about this header?
4878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4879   yes:no: )
4880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4881 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4884     ac_header_preproc=yes
4885     ;;
4886   no:yes:* )
4887     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4888 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4890 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4892 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4894 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4897     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4898 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4899     ( cat <<\_ASBOX
4900 ## ---------------------------------------- ##
4901 ## Report this to linux-nfs@vger.kernel.org ##
4902 ## ---------------------------------------- ##
4903 _ASBOX
4904      ) | sed "s/^/$as_me: WARNING:     /" >&2
4905     ;;
4906 esac
4907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4908 $as_echo_n "checking for $ac_header... " >&6; }
4909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4910   $as_echo_n "(cached) " >&6
4911 else
4912   eval "$as_ac_Header=\$ac_header_preproc"
4913 fi
4914 ac_res=`eval 'as_val=${'$as_ac_Header'}
4915                  $as_echo "$as_val"'`
4916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4917 $as_echo "$ac_res" >&6; }
4918
4919 fi
4920 as_val=`eval 'as_val=${'$as_ac_Header'}
4921                  $as_echo "$as_val"'`
4922    if test "x$as_val" = x""yes; then
4923   cat >>confdefs.h <<_ACEOF
4924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 _ACEOF
4926
4927 else
4928   { { $as_echo "$as_me:$LINENO: error: libtirpc headers not found." >&5
4929 $as_echo "$as_me: error: libtirpc headers not found." >&2;}
4930    { (exit 1); exit 1; }; }
4931 fi
4932
4933 done
4934
4935     AM_CPPFLAGS="-I${tirpc_header_dir}"
4936
4937
4938   fi
4939
4940
4941
4942 # Check whether user wants TCP wrappers support
4943
4944   TCPW_MSG="no"
4945
4946 # Check whether --with-tcp-wrappers was given.
4947 if test "${with_tcp_wrappers+set}" = set; then
4948   withval=$with_tcp_wrappers; with_tcpw=$withval
4949 else
4950   with_tcpw=yes
4951 fi
4952
4953         if test "x$with_tcpw" != "xno" ; then
4954             saved_LIBS="$LIBS"
4955             saved_LDFLAGS="$LDFLAGS"
4956             saved_CPPFLAGS="$CPPFLAGS"
4957             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
4958                 if test -d "${with_tcpw}/lib"; then
4959                     if test -n "${need_dash_r}"; then
4960                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
4961                     else
4962                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
4963                     fi
4964                 else
4965                     if test -n "${need_dash_r}"; then
4966                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
4967                     else
4968                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
4969                     fi
4970                 fi
4971                 if test -d "${with_tcpw}/include"; then
4972                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
4973                 else
4974                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
4975                 fi
4976             fi
4977             LIBWRAP="-lwrap"
4978             LIBS="$LIBWRAP $LIBS"
4979             { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
4980 $as_echo_n "checking for libwrap... " >&6; }
4981             cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987
4988                 #include <tcpd.h>
4989                 int deny_severity = 0, allow_severity = 0;
4990
4991 int
4992 main ()
4993 {
4994 hosts_access(0);
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 rm -f conftest.$ac_objext conftest$ac_exeext
5000 if { (ac_try="$ac_link"
5001 case "(($ac_try" in
5002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003   *) ac_try_echo=$ac_try;;
5004 esac
5005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5006 $as_echo "$ac_try_echo") >&5
5007   (eval "$ac_link") 2>conftest.er1
5008   ac_status=$?
5009   grep -v '^ *+' conftest.er1 >conftest.err
5010   rm -f conftest.er1
5011   cat conftest.err >&5
5012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); } && {
5014          test -z "$ac_c_werror_flag" ||
5015          test ! -s conftest.err
5016        } && test -s conftest$ac_exeext && {
5017          test "$cross_compiling" = yes ||
5018          $as_test_x conftest$ac_exeext
5019        }; then
5020
5021                 { $as_echo "$as_me:$LINENO: result: yes" >&5
5022 $as_echo "yes" >&6; }
5023
5024
5025 cat >>confdefs.h <<\_ACEOF
5026 #define LIBWRAP 1
5027 _ACEOF
5028
5029
5030 cat >>confdefs.h <<\_ACEOF
5031 #define HAVE_LIBWRAP 1
5032 _ACEOF
5033
5034
5035 cat >>confdefs.h <<\_ACEOF
5036 #define HAVE_TCP_WRAPPER 1
5037 _ACEOF
5038
5039                 TCPW_MSG="yes"
5040
5041 else
5042   $as_echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045
5046                 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
5047 $as_echo "$as_me: error: *** libwrap missing" >&2;}
5048    { (exit 1); exit 1; }; }
5049
5050
5051 fi
5052
5053 rm -rf conftest.dSYM
5054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5055       conftest$ac_exeext conftest.$ac_ext
5056             LIBS="$saved_LIBS"
5057         fi
5058
5059
5060
5061
5062
5063 # Arrange for large-file support
5064 # Check whether --enable-largefile was given.
5065 if test "${enable_largefile+set}" = set; then
5066   enableval=$enable_largefile;
5067 fi
5068
5069 if test "$enable_largefile" != no; then
5070
5071   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5072 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5073 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5074   $as_echo_n "(cached) " >&6
5075 else
5076   ac_cv_sys_largefile_CC=no
5077      if test "$GCC" != yes; then
5078        ac_save_CC=$CC
5079        while :; do
5080          # IRIX 6.2 and later do not support large files by default,
5081          # so use the C compiler's -n32 option if that helps.
5082          cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 #include <sys/types.h>
5089  /* Check that off_t can represent 2**63 - 1 correctly.
5090     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5091     since some C++ compilers masquerading as C compilers
5092     incorrectly reject 9223372036854775807.  */
5093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5094   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5095                        && LARGE_OFF_T % 2147483647 == 1)
5096                       ? 1 : -1];
5097 int
5098 main ()
5099 {
5100
5101   ;
5102   return 0;
5103 }
5104 _ACEOF
5105          rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5107 case "(($ac_try" in
5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109   *) ac_try_echo=$ac_try;;
5110 esac
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113   (eval "$ac_compile") 2>conftest.er1
5114   ac_status=$?
5115   grep -v '^ *+' conftest.er1 >conftest.err
5116   rm -f conftest.er1
5117   cat conftest.err >&5
5118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } && {
5120          test -z "$ac_c_werror_flag" ||
5121          test ! -s conftest.err
5122        } && test -s conftest.$ac_objext; then
5123   break
5124 else
5125   $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128
5129 fi
5130
5131 rm -f core conftest.err conftest.$ac_objext
5132          CC="$CC -n32"
5133          rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5135 case "(($ac_try" in
5136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137   *) ac_try_echo=$ac_try;;
5138 esac
5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5140 $as_echo "$ac_try_echo") >&5
5141   (eval "$ac_compile") 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && {
5148          test -z "$ac_c_werror_flag" ||
5149          test ! -s conftest.err
5150        } && test -s conftest.$ac_objext; then
5151   ac_cv_sys_largefile_CC=' -n32'; break
5152 else
5153   $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156
5157 fi
5158
5159 rm -f core conftest.err conftest.$ac_objext
5160          break
5161        done
5162        CC=$ac_save_CC
5163        rm -f conftest.$ac_ext
5164     fi
5165 fi
5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5167 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5168   if test "$ac_cv_sys_largefile_CC" != no; then
5169     CC=$CC$ac_cv_sys_largefile_CC
5170   fi
5171
5172   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5173 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5174 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5175   $as_echo_n "(cached) " >&6
5176 else
5177   while :; do
5178   cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h.  */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h.  */
5184 #include <sys/types.h>
5185  /* Check that off_t can represent 2**63 - 1 correctly.
5186     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5187     since some C++ compilers masquerading as C compilers
5188     incorrectly reject 9223372036854775807.  */
5189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5190   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5191                        && LARGE_OFF_T % 2147483647 == 1)
5192                       ? 1 : -1];
5193 int
5194 main ()
5195 {
5196
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (ac_try="$ac_compile"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209   (eval "$ac_compile") 2>conftest.er1
5210   ac_status=$?
5211   grep -v '^ *+' conftest.er1 >conftest.err
5212   rm -f conftest.er1
5213   cat conftest.err >&5
5214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } && {
5216          test -z "$ac_c_werror_flag" ||
5217          test ! -s conftest.err
5218        } && test -s conftest.$ac_objext; then
5219   ac_cv_sys_file_offset_bits=no; break
5220 else
5221   $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224
5225 fi
5226
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228   cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h.  */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h.  */
5234 #define _FILE_OFFSET_BITS 64
5235 #include <sys/types.h>
5236  /* Check that off_t can represent 2**63 - 1 correctly.
5237     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5238     since some C++ compilers masquerading as C compilers
5239     incorrectly reject 9223372036854775807.  */
5240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5241   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5242                        && LARGE_OFF_T % 2147483647 == 1)
5243                       ? 1 : -1];
5244 int
5245 main ()
5246 {
5247
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5254 case "(($ac_try" in
5255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256   *) ac_try_echo=$ac_try;;
5257 esac
5258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5259 $as_echo "$ac_try_echo") >&5
5260   (eval "$ac_compile") 2>conftest.er1
5261   ac_status=$?
5262   grep -v '^ *+' conftest.er1 >conftest.err
5263   rm -f conftest.er1
5264   cat conftest.err >&5
5265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); } && {
5267          test -z "$ac_c_werror_flag" ||
5268          test ! -s conftest.err
5269        } && test -s conftest.$ac_objext; then
5270   ac_cv_sys_file_offset_bits=64; break
5271 else
5272   $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275
5276 fi
5277
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279   ac_cv_sys_file_offset_bits=unknown
5280   break
5281 done
5282 fi
5283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5284 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5285 case $ac_cv_sys_file_offset_bits in #(
5286   no | unknown) ;;
5287   *)
5288 cat >>confdefs.h <<_ACEOF
5289 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5290 _ACEOF
5291 ;;
5292 esac
5293 rm -rf conftest*
5294   if test $ac_cv_sys_file_offset_bits = unknown; then
5295     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5296 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5297 if test "${ac_cv_sys_large_files+set}" = set; then
5298   $as_echo_n "(cached) " >&6
5299 else
5300   while :; do
5301   cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h.  */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h.  */
5307 #include <sys/types.h>
5308  /* Check that off_t can represent 2**63 - 1 correctly.
5309     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5310     since some C++ compilers masquerading as C compilers
5311     incorrectly reject 9223372036854775807.  */
5312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5313   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5314                        && LARGE_OFF_T % 2147483647 == 1)
5315                       ? 1 : -1];
5316 int
5317 main ()
5318 {
5319
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (ac_try="$ac_compile"
5326 case "(($ac_try" in
5327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328   *) ac_try_echo=$ac_try;;
5329 esac
5330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5331 $as_echo "$ac_try_echo") >&5
5332   (eval "$ac_compile") 2>conftest.er1
5333   ac_status=$?
5334   grep -v '^ *+' conftest.er1 >conftest.err
5335   rm -f conftest.er1
5336   cat conftest.err >&5
5337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); } && {
5339          test -z "$ac_c_werror_flag" ||
5340          test ! -s conftest.err
5341        } && test -s conftest.$ac_objext; then
5342   ac_cv_sys_large_files=no; break
5343 else
5344   $as_echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5346
5347
5348 fi
5349
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351   cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h.  */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h.  */
5357 #define _LARGE_FILES 1
5358 #include <sys/types.h>
5359  /* Check that off_t can represent 2**63 - 1 correctly.
5360     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5361     since some C++ compilers masquerading as C compilers
5362     incorrectly reject 9223372036854775807.  */
5363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5364   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5365                        && LARGE_OFF_T % 2147483647 == 1)
5366                       ? 1 : -1];
5367 int
5368 main ()
5369 {
5370
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383   (eval "$ac_compile") 2>conftest.er1
5384   ac_status=$?
5385   grep -v '^ *+' conftest.er1 >conftest.err
5386   rm -f conftest.er1
5387   cat conftest.err >&5
5388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } && {
5390          test -z "$ac_c_werror_flag" ||
5391          test ! -s conftest.err
5392        } && test -s conftest.$ac_objext; then
5393   ac_cv_sys_large_files=1; break
5394 else
5395   $as_echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398
5399 fi
5400
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402   ac_cv_sys_large_files=unknown
5403   break
5404 done
5405 fi
5406 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5407 $as_echo "$ac_cv_sys_large_files" >&6; }
5408 case $ac_cv_sys_large_files in #(
5409   no | unknown) ;;
5410   *)
5411 cat >>confdefs.h <<_ACEOF
5412 #define _LARGE_FILES $ac_cv_sys_large_files
5413 _ACEOF
5414 ;;
5415 esac
5416 rm -rf conftest*
5417   fi
5418 fi
5419
5420
5421
5422 ac_config_headers="$ac_config_headers support/include/config.h"
5423
5424
5425 # Checks for programs.
5426 ac_ext=cpp
5427 ac_cpp='$CXXCPP $CPPFLAGS'
5428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5431 if test -z "$CXX"; then
5432   if test -n "$CCC"; then
5433     CXX=$CCC
5434   else
5435     if test -n "$ac_tool_prefix"; then
5436   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5437   do
5438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_prog_CXX+set}" = set; then
5443   $as_echo_n "(cached) " >&6
5444 else
5445   if test -n "$CXX"; then
5446   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451   IFS=$as_save_IFS
5452   test -z "$as_dir" && as_dir=.
5453   for ac_exec_ext in '' $ac_executable_extensions; do
5454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457     break 2
5458   fi
5459 done
5460 done
5461 IFS=$as_save_IFS
5462
5463 fi
5464 fi
5465 CXX=$ac_cv_prog_CXX
5466 if test -n "$CXX"; then
5467   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5468 $as_echo "$CXX" >&6; }
5469 else
5470   { $as_echo "$as_me:$LINENO: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474
5475     test -n "$CXX" && break
5476   done
5477 fi
5478 if test -z "$CXX"; then
5479   ac_ct_CXX=$CXX
5480   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5481 do
5482   # Extract the first word of "$ac_prog", so it can be a program name with args.
5483 set dummy $ac_prog; ac_word=$2
5484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5487   $as_echo_n "(cached) " >&6
5488 else
5489   if test -n "$ac_ct_CXX"; then
5490   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497   for ac_exec_ext in '' $ac_executable_extensions; do
5498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499     ac_cv_prog_ac_ct_CXX="$ac_prog"
5500     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5510 if test -n "$ac_ct_CXX"; then
5511   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5512 $as_echo "$ac_ct_CXX" >&6; }
5513 else
5514   { $as_echo "$as_me:$LINENO: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518
5519   test -n "$ac_ct_CXX" && break
5520 done
5521
5522   if test "x$ac_ct_CXX" = x; then
5523     CXX="g++"
5524   else
5525     case $cross_compiling:$ac_tool_warned in
5526 yes:)
5527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5530 esac
5531     CXX=$ac_ct_CXX
5532   fi
5533 fi
5534
5535   fi
5536 fi
5537 # Provide some information about the compiler.
5538 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5539 set X $ac_compile
5540 ac_compiler=$2
5541 { (ac_try="$ac_compiler --version >&5"
5542 case "(($ac_try" in
5543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544   *) ac_try_echo=$ac_try;;
5545 esac
5546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5547 $as_echo "$ac_try_echo") >&5
5548   (eval "$ac_compiler --version >&5") 2>&5
5549   ac_status=$?
5550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }
5552 { (ac_try="$ac_compiler -v >&5"
5553 case "(($ac_try" in
5554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555   *) ac_try_echo=$ac_try;;
5556 esac
5557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5558 $as_echo "$ac_try_echo") >&5
5559   (eval "$ac_compiler -v >&5") 2>&5
5560   ac_status=$?
5561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }
5563 { (ac_try="$ac_compiler -V >&5"
5564 case "(($ac_try" in
5565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566   *) ac_try_echo=$ac_try;;
5567 esac
5568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569 $as_echo "$ac_try_echo") >&5
5570   (eval "$ac_compiler -V >&5") 2>&5
5571   ac_status=$?
5572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); }
5574
5575 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5576 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5578   $as_echo_n "(cached) " >&6
5579 else
5580   cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586
5587 int
5588 main ()
5589 {
5590 #ifndef __GNUC__
5591        choke me
5592 #endif
5593
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602   *) ac_try_echo=$ac_try;;
5603 esac
5604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5605 $as_echo "$ac_try_echo") >&5
5606   (eval "$ac_compile") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } && {
5613          test -z "$ac_cxx_werror_flag" ||
5614          test ! -s conftest.err
5615        } && test -s conftest.$ac_objext; then
5616   ac_compiler_gnu=yes
5617 else
5618   $as_echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621         ac_compiler_gnu=no
5622 fi
5623
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5626
5627 fi
5628 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5629 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5630 if test $ac_compiler_gnu = yes; then
5631   GXX=yes
5632 else
5633   GXX=
5634 fi
5635 ac_test_CXXFLAGS=${CXXFLAGS+set}
5636 ac_save_CXXFLAGS=$CXXFLAGS
5637 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5638 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5639 if test "${ac_cv_prog_cxx_g+set}" = set; then
5640   $as_echo_n "(cached) " >&6
5641 else
5642   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5643    ac_cxx_werror_flag=yes
5644    ac_cv_prog_cxx_g=no
5645    CXXFLAGS="-g"
5646    cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h.  */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h.  */
5652
5653 int
5654 main ()
5655 {
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668 $as_echo "$ac_try_echo") >&5
5669   (eval "$ac_compile") 2>conftest.er1
5670   ac_status=$?
5671   grep -v '^ *+' conftest.er1 >conftest.err
5672   rm -f conftest.er1
5673   cat conftest.err >&5
5674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } && {
5676          test -z "$ac_cxx_werror_flag" ||
5677          test ! -s conftest.err
5678        } && test -s conftest.$ac_objext; then
5679   ac_cv_prog_cxx_g=yes
5680 else
5681   $as_echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684         CXXFLAGS=""
5685       cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h.  */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h.  */
5691
5692 int
5693 main ()
5694 {
5695
5696   ;
5697   return 0;
5698 }
5699 _ACEOF
5700 rm -f conftest.$ac_objext
5701 if { (ac_try="$ac_compile"
5702 case "(($ac_try" in
5703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704   *) ac_try_echo=$ac_try;;
5705 esac
5706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5707 $as_echo "$ac_try_echo") >&5
5708   (eval "$ac_compile") 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } && {
5715          test -z "$ac_cxx_werror_flag" ||
5716          test ! -s conftest.err
5717        } && test -s conftest.$ac_objext; then
5718   :
5719 else
5720   $as_echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5724          CXXFLAGS="-g"
5725          cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731
5732 int
5733 main ()
5734 {
5735
5736   ;
5737   return 0;
5738 }
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (ac_try="$ac_compile"
5742 case "(($ac_try" in
5743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744   *) ac_try_echo=$ac_try;;
5745 esac
5746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5747 $as_echo "$ac_try_echo") >&5
5748   (eval "$ac_compile") 2>conftest.er1
5749   ac_status=$?
5750   grep -v '^ *+' conftest.er1 >conftest.err
5751   rm -f conftest.er1
5752   cat conftest.err >&5
5753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); } && {
5755          test -z "$ac_cxx_werror_flag" ||
5756          test ! -s conftest.err
5757        } && test -s conftest.$ac_objext; then
5758   ac_cv_prog_cxx_g=yes
5759 else
5760   $as_echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763
5764 fi
5765
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 fi
5768
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5774 fi
5775 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5777 if test "$ac_test_CXXFLAGS" = set; then
5778   CXXFLAGS=$ac_save_CXXFLAGS
5779 elif test $ac_cv_prog_cxx_g = yes; then
5780   if test "$GXX" = yes; then
5781     CXXFLAGS="-g -O2"
5782   else
5783     CXXFLAGS="-g"
5784   fi
5785 else
5786   if test "$GXX" = yes; then
5787     CXXFLAGS="-O2"
5788   else
5789     CXXFLAGS=
5790   fi
5791 fi
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798 depcc="$CXX"  am_compiler_list=
5799
5800 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5801 $as_echo_n "checking dependency style of $depcc... " >&6; }
5802 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5806   # We make a subdir and do the tests there.  Otherwise we can end up
5807   # making bogus files that we don't know about and never remove.  For
5808   # instance it was reported that on HP-UX the gcc test will end up
5809   # making a dummy file named `D' -- because `-MD' means `put the output
5810   # in D'.
5811   mkdir conftest.dir
5812   # Copy depcomp to subdir because otherwise we won't find it if we're
5813   # using a relative directory.
5814   cp "$am_depcomp" conftest.dir
5815   cd conftest.dir
5816   # We will build objects and dependencies in a subdirectory because
5817   # it helps to detect inapplicable dependency modes.  For instance
5818   # both Tru64's cc and ICC support -MD to output dependencies as a
5819   # side effect of compilation, but ICC will put the dependencies in
5820   # the current directory while Tru64 will put them in the object
5821   # directory.
5822   mkdir sub
5823
5824   am_cv_CXX_dependencies_compiler_type=none
5825   if test "$am_compiler_list" = ""; then
5826      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5827   fi
5828   for depmode in $am_compiler_list; do
5829     # Setup a source with many dependencies, because some compilers
5830     # like to wrap large dependency lists on column 80 (with \), and
5831     # we should not choose a depcomp mode which is confused by this.
5832     #
5833     # We need to recreate these files for each test, as the compiler may
5834     # overwrite some of them when testing with obscure command lines.
5835     # This happens at least with the AIX C compiler.
5836     : > sub/conftest.c
5837     for i in 1 2 3 4 5 6; do
5838       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5839       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5840       # Solaris 8's {/usr,}/bin/sh.
5841       touch sub/conftst$i.h
5842     done
5843     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5844
5845     case $depmode in
5846     nosideeffect)
5847       # after this tag, mechanisms are not by side-effect, so they'll
5848       # only be used when explicitly requested
5849       if test "x$enable_dependency_tracking" = xyes; then
5850         continue
5851       else
5852         break
5853       fi
5854       ;;
5855     none) break ;;
5856     esac
5857     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5858     # mode.  It turns out that the SunPro C++ compiler does not properly
5859     # handle `-M -o', and we need to detect this.
5860     if depmode=$depmode \
5861        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5862        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5863        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5864          >/dev/null 2>conftest.err &&
5865        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5866        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5867        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5868        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5869       # icc doesn't choke on unknown options, it will just issue warnings
5870       # or remarks (even with -Werror).  So we grep stderr for any message
5871       # that says an option was ignored or not supported.
5872       # When given -MP, icc 7.0 and 7.1 complain thusly:
5873       #   icc: Command line warning: ignoring option '-M'; no argument required
5874       # The diagnosis changed in icc 8.0:
5875       #   icc: Command line remark: option '-MP' not supported
5876       if (grep 'ignoring option' conftest.err ||
5877           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5878         am_cv_CXX_dependencies_compiler_type=$depmode
5879         break
5880       fi
5881     fi
5882   done
5883
5884   cd ..
5885   rm -rf conftest.dir
5886 else
5887   am_cv_CXX_dependencies_compiler_type=none
5888 fi
5889
5890 fi
5891 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5892 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5893 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5894
5895  if
5896   test "x$enable_dependency_tracking" != xno \
5897   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5898   am__fastdepCXX_TRUE=
5899   am__fastdepCXX_FALSE='#'
5900 else
5901   am__fastdepCXX_TRUE='#'
5902   am__fastdepCXX_FALSE=
5903 fi
5904
5905
5906 ac_ext=c
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 if test -n "$ac_tool_prefix"; then
5912   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if test "${ac_cv_prog_CC+set}" = set; then
5917   $as_echo_n "(cached) " >&6
5918 else
5919   if test -n "$CC"; then
5920   ac_cv_prog_CC="$CC" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5930     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 CC=$ac_cv_prog_CC
5940 if test -n "$CC"; then
5941   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5942 $as_echo "$CC" >&6; }
5943 else
5944   { $as_echo "$as_me:$LINENO: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949 fi
5950 if test -z "$ac_cv_prog_CC"; then
5951   ac_ct_CC=$CC
5952   # Extract the first word of "gcc", so it can be a program name with args.
5953 set dummy gcc; ac_word=$2
5954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5957   $as_echo_n "(cached) " >&6
5958 else
5959   if test -n "$ac_ct_CC"; then
5960   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5969     ac_cv_prog_ac_ct_CC="gcc"
5970     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975 IFS=$as_save_IFS
5976
5977 fi
5978 fi
5979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5980 if test -n "$ac_ct_CC"; then
5981   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5982 $as_echo "$ac_ct_CC" >&6; }
5983 else
5984   { $as_echo "$as_me:$LINENO: result: no" >&5
5985 $as_echo "no" >&6; }
5986 fi
5987
5988   if test "x$ac_ct_CC" = x; then
5989     CC=""
5990   else
5991     case $cross_compiling:$ac_tool_warned in
5992 yes:)
5993 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned=yes ;;
5996 esac
5997     CC=$ac_ct_CC
5998   fi
5999 else
6000   CC="$ac_cv_prog_CC"
6001 fi
6002
6003 if test -z "$CC"; then
6004           if test -n "$ac_tool_prefix"; then
6005     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6006 set dummy ${ac_tool_prefix}cc; ac_word=$2
6007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if test "${ac_cv_prog_CC+set}" = set; then
6010   $as_echo_n "(cached) " >&6
6011 else
6012   if test -n "$CC"; then
6013   ac_cv_prog_CC="$CC" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020   for ac_exec_ext in '' $ac_executable_extensions; do
6021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022     ac_cv_prog_CC="${ac_tool_prefix}cc"
6023     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 CC=$ac_cv_prog_CC
6033 if test -n "$CC"; then
6034   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6035 $as_echo "$CC" >&6; }
6036 else
6037   { $as_echo "$as_me:$LINENO: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042   fi
6043 fi
6044 if test -z "$CC"; then
6045   # Extract the first word of "cc", so it can be a program name with args.
6046 set dummy cc; ac_word=$2
6047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if test "${ac_cv_prog_CC+set}" = set; then
6050   $as_echo_n "(cached) " >&6
6051 else
6052   if test -n "$CC"; then
6053   ac_cv_prog_CC="$CC" # Let the user override the test.
6054 else
6055   ac_prog_rejected=no
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6064        ac_prog_rejected=yes
6065        continue
6066      fi
6067     ac_cv_prog_CC="cc"
6068     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 if test $ac_prog_rejected = yes; then
6076   # We found a bogon in the path, so make sure we never use it.
6077   set dummy $ac_cv_prog_CC
6078   shift
6079   if test $# != 0; then
6080     # We chose a different compiler from the bogus one.
6081     # However, it has the same basename, so the bogon will be chosen
6082     # first if we set CC to just the basename; use the full file name.
6083     shift
6084     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6085   fi
6086 fi
6087 fi
6088 fi
6089 CC=$ac_cv_prog_CC
6090 if test -n "$CC"; then
6091   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6092 $as_echo "$CC" >&6; }
6093 else
6094   { $as_echo "$as_me:$LINENO: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099 fi
6100 if test -z "$CC"; then
6101   if test -n "$ac_tool_prefix"; then
6102   for ac_prog in cl.exe
6103   do
6104     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_CC+set}" = set; then
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if test -n "$CC"; then
6112   ac_cv_prog_CC="$CC" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 CC=$ac_cv_prog_CC
6132 if test -n "$CC"; then
6133   { $as_echo "$as_me:$LINENO: result: $CC" >&5
6134 $as_echo "$CC" >&6; }
6135 else
6136   { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141     test -n "$CC" && break
6142   done
6143 fi
6144 if test -z "$CC"; then
6145   ac_ct_CC=$CC
6146   for ac_prog in cl.exe
6147 do
6148   # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6153   $as_echo_n "(cached) " >&6
6154 else
6155   if test -n "$ac_ct_CC"; then
6156   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_prog_ac_ct_CC="$ac_prog"
6166     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6176 if test -n "$ac_ct_CC"; then
6177   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6178 $as_echo "$ac_ct_CC" >&6; }
6179 else
6180   { $as_echo "$as_me:$LINENO: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184
6185   test -n "$ac_ct_CC" && break
6186 done
6187
6188   if test "x$ac_ct_CC" = x; then
6189     CC=""
6190   else
6191     case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6196 esac
6197     CC=$ac_ct_CC
6198   fi
6199 fi
6200
6201 fi
6202
6203
6204 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6206 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6207 See \`config.log' for more details." >&5
6208 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6209 See \`config.log' for more details." >&2;}
6210    { (exit 1); exit 1; }; }; }
6211
6212 # Provide some information about the compiler.
6213 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6214 set X $ac_compile
6215 ac_compiler=$2
6216 { (ac_try="$ac_compiler --version >&5"
6217 case "(($ac_try" in
6218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219   *) ac_try_echo=$ac_try;;
6220 esac
6221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222 $as_echo "$ac_try_echo") >&5
6223   (eval "$ac_compiler --version >&5") 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }
6227 { (ac_try="$ac_compiler -v >&5"
6228 case "(($ac_try" in
6229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230   *) ac_try_echo=$ac_try;;
6231 esac
6232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6233 $as_echo "$ac_try_echo") >&5
6234   (eval "$ac_compiler -v >&5") 2>&5
6235   ac_status=$?
6236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }
6238 { (ac_try="$ac_compiler -V >&5"
6239 case "(($ac_try" in
6240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241   *) ac_try_echo=$ac_try;;
6242 esac
6243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6244 $as_echo "$ac_try_echo") >&5
6245   (eval "$ac_compiler -V >&5") 2>&5
6246   ac_status=$?
6247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); }
6249
6250 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6251 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6253   $as_echo_n "(cached) " >&6
6254 else
6255   cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h.  */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h.  */
6261
6262 int
6263 main ()
6264 {
6265 #ifndef __GNUC__
6266        choke me
6267 #endif
6268
6269   ;
6270   return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6275 case "(($ac_try" in
6276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277   *) ac_try_echo=$ac_try;;
6278 esac
6279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6280 $as_echo "$ac_try_echo") >&5
6281   (eval "$ac_compile") 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } && {
6288          test -z "$ac_c_werror_flag" ||
6289          test ! -s conftest.err
6290        } && test -s conftest.$ac_objext; then
6291   ac_compiler_gnu=yes
6292 else
6293   $as_echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296         ac_compiler_gnu=no
6297 fi
6298
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6301
6302 fi
6303 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6304 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6305 if test $ac_compiler_gnu = yes; then
6306   GCC=yes
6307 else
6308   GCC=
6309 fi
6310 ac_test_CFLAGS=${CFLAGS+set}
6311 ac_save_CFLAGS=$CFLAGS
6312 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6313 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6314 if test "${ac_cv_prog_cc_g+set}" = set; then
6315   $as_echo_n "(cached) " >&6
6316 else
6317   ac_save_c_werror_flag=$ac_c_werror_flag
6318    ac_c_werror_flag=yes
6319    ac_cv_prog_cc_g=no
6320    CFLAGS="-g"
6321    cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h.  */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h.  */
6327
6328 int
6329 main ()
6330 {
6331
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6338 case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6343 $as_echo "$ac_try_echo") >&5
6344   (eval "$ac_compile") 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } && {
6351          test -z "$ac_c_werror_flag" ||
6352          test ! -s conftest.err
6353        } && test -s conftest.$ac_objext; then
6354   ac_cv_prog_cc_g=yes
6355 else
6356   $as_echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359         CFLAGS=""
6360       cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366
6367 int
6368 main ()
6369 {
6370
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6377 case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383   (eval "$ac_compile") 2>conftest.er1
6384   ac_status=$?
6385   grep -v '^ *+' conftest.er1 >conftest.err
6386   rm -f conftest.er1
6387   cat conftest.err >&5
6388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); } && {
6390          test -z "$ac_c_werror_flag" ||
6391          test ! -s conftest.err
6392        } && test -s conftest.$ac_objext; then
6393   :
6394 else
6395   $as_echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398         ac_c_werror_flag=$ac_save_c_werror_flag
6399          CFLAGS="-g"
6400          cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406
6407 int
6408 main ()
6409 {
6410
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 rm -f conftest.$ac_objext
6416 if { (ac_try="$ac_compile"
6417 case "(($ac_try" in
6418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419   *) ac_try_echo=$ac_try;;
6420 esac
6421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6422 $as_echo "$ac_try_echo") >&5
6423   (eval "$ac_compile") 2>conftest.er1
6424   ac_status=$?
6425   grep -v '^ *+' conftest.er1 >conftest.err
6426   rm -f conftest.er1
6427   cat conftest.err >&5
6428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } && {
6430          test -z "$ac_c_werror_flag" ||
6431          test ! -s conftest.err
6432        } && test -s conftest.$ac_objext; then
6433   ac_cv_prog_cc_g=yes
6434 else
6435   $as_echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438
6439 fi
6440
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 fi
6443
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 fi
6446
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448    ac_c_werror_flag=$ac_save_c_werror_flag
6449 fi
6450 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6451 $as_echo "$ac_cv_prog_cc_g" >&6; }
6452 if test "$ac_test_CFLAGS" = set; then
6453   CFLAGS=$ac_save_CFLAGS
6454 elif test $ac_cv_prog_cc_g = yes; then
6455   if test "$GCC" = yes; then
6456     CFLAGS="-g -O2"
6457   else
6458     CFLAGS="-g"
6459   fi
6460 else
6461   if test "$GCC" = yes; then
6462     CFLAGS="-O2"
6463   else
6464     CFLAGS=
6465   fi
6466 fi
6467 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6468 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6469 if test "${ac_cv_prog_cc_c89+set}" = set; then
6470   $as_echo_n "(cached) " >&6
6471 else
6472   ac_cv_prog_cc_c89=no
6473 ac_save_CC=$CC
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h.  */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h.  */
6480 #include <stdarg.h>
6481 #include <stdio.h>
6482 #include <sys/types.h>
6483 #include <sys/stat.h>
6484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6485 struct buf { int x; };
6486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6487 static char *e (p, i)
6488      char **p;
6489      int i;
6490 {
6491   return p[i];
6492 }
6493 static char *f (char * (*g) (char **, int), char **p, ...)
6494 {
6495   char *s;
6496   va_list v;
6497   va_start (v,p);
6498   s = g (p, va_arg (v,int));
6499   va_end (v);
6500   return s;
6501 }
6502
6503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6504    function prototypes and stuff, but not '\xHH' hex character constants.
6505    These don't provoke an error unfortunately, instead are silently treated
6506    as 'x'.  The following induces an error, until -std is added to get
6507    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6508    array size at least.  It's necessary to write '\x00'==0 to get something
6509    that's true only with -std.  */
6510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6511
6512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6513    inside strings and character constants.  */
6514 #define FOO(x) 'x'
6515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6516
6517 int test (int i, double x);
6518 struct s1 {int (*f) (int a);};
6519 struct s2 {int (*f) (double a);};
6520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6521 int argc;
6522 char **argv;
6523 int
6524 main ()
6525 {
6526 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6527   ;
6528   return 0;
6529 }
6530 _ACEOF
6531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6532         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6533 do
6534   CC="$ac_save_CC $ac_arg"
6535   rm -f conftest.$ac_objext
6536 if { (ac_try="$ac_compile"
6537 case "(($ac_try" in
6538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539   *) ac_try_echo=$ac_try;;
6540 esac
6541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6542 $as_echo "$ac_try_echo") >&5
6543   (eval "$ac_compile") 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } && {
6550          test -z "$ac_c_werror_flag" ||
6551          test ! -s conftest.err
6552        } && test -s conftest.$ac_objext; then
6553   ac_cv_prog_cc_c89=$ac_arg
6554 else
6555   $as_echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558
6559 fi
6560
6561 rm -f core conftest.err conftest.$ac_objext
6562   test "x$ac_cv_prog_cc_c89" != "xno" && break
6563 done
6564 rm -f conftest.$ac_ext
6565 CC=$ac_save_CC
6566
6567 fi
6568 # AC_CACHE_VAL
6569 case "x$ac_cv_prog_cc_c89" in
6570   x)
6571     { $as_echo "$as_me:$LINENO: result: none needed" >&5
6572 $as_echo "none needed" >&6; } ;;
6573   xno)
6574     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6575 $as_echo "unsupported" >&6; } ;;
6576   *)
6577     CC="$CC $ac_cv_prog_cc_c89"
6578     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6579 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6580 esac
6581
6582
6583 ac_ext=c
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
6589 depcc="$CC"   am_compiler_list=
6590
6591 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6592 $as_echo_n "checking dependency style of $depcc... " >&6; }
6593 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6594   $as_echo_n "(cached) " >&6
6595 else
6596   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6597   # We make a subdir and do the tests there.  Otherwise we can end up
6598   # making bogus files that we don't know about and never remove.  For
6599   # instance it was reported that on HP-UX the gcc test will end up
6600   # making a dummy file named `D' -- because `-MD' means `put the output
6601   # in D'.
6602   mkdir conftest.dir
6603   # Copy depcomp to subdir because otherwise we won't find it if we're
6604   # using a relative directory.
6605   cp "$am_depcomp" conftest.dir
6606   cd conftest.dir
6607   # We will build objects and dependencies in a subdirectory because
6608   # it helps to detect inapplicable dependency modes.  For instance
6609   # both Tru64's cc and ICC support -MD to output dependencies as a
6610   # side effect of compilation, but ICC will put the dependencies in
6611   # the current directory while Tru64 will put them in the object
6612   # directory.
6613   mkdir sub
6614
6615   am_cv_CC_dependencies_compiler_type=none
6616   if test "$am_compiler_list" = ""; then
6617      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6618   fi
6619   for depmode in $am_compiler_list; do
6620     # Setup a source with many dependencies, because some compilers
6621     # like to wrap large dependency lists on column 80 (with \), and
6622     # we should not choose a depcomp mode which is confused by this.
6623     #
6624     # We need to recreate these files for each test, as the compiler may
6625     # overwrite some of them when testing with obscure command lines.
6626     # This happens at least with the AIX C compiler.
6627     : > sub/conftest.c
6628     for i in 1 2 3 4 5 6; do
6629       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6630       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6631       # Solaris 8's {/usr,}/bin/sh.
6632       touch sub/conftst$i.h
6633     done
6634     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6635
6636     case $depmode in
6637     nosideeffect)
6638       # after this tag, mechanisms are not by side-effect, so they'll
6639       # only be used when explicitly requested
6640       if test "x$enable_dependency_tracking" = xyes; then
6641         continue
6642       else
6643         break
6644       fi
6645       ;;
6646     none) break ;;
6647     esac
6648     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6649     # mode.  It turns out that the SunPro C++ compiler does not properly
6650     # handle `-M -o', and we need to detect this.
6651     if depmode=$depmode \
6652        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6653        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6654        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6655          >/dev/null 2>conftest.err &&
6656        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6657        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6658        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6659        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6660       # icc doesn't choke on unknown options, it will just issue warnings
6661       # or remarks (even with -Werror).  So we grep stderr for any message
6662       # that says an option was ignored or not supported.
6663       # When given -MP, icc 7.0 and 7.1 complain thusly:
6664       #   icc: Command line warning: ignoring option '-M'; no argument required
6665       # The diagnosis changed in icc 8.0:
6666       #   icc: Command line remark: option '-MP' not supported
6667       if (grep 'ignoring option' conftest.err ||
6668           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6669         am_cv_CC_dependencies_compiler_type=$depmode
6670         break
6671       fi
6672     fi
6673   done
6674
6675   cd ..
6676   rm -rf conftest.dir
6677 else
6678   am_cv_CC_dependencies_compiler_type=none
6679 fi
6680
6681 fi
6682 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6683 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6685
6686  if
6687   test "x$enable_dependency_tracking" != xno \
6688   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6689   am__fastdepCC_TRUE=
6690   am__fastdepCC_FALSE='#'
6691 else
6692   am__fastdepCC_TRUE='#'
6693   am__fastdepCC_FALSE=
6694 fi
6695
6696
6697 ac_ext=c
6698 ac_cpp='$CPP $CPPFLAGS'
6699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6702 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6703 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6704 # On Suns, sometimes $CPP names a directory.
6705 if test -n "$CPP" && test -d "$CPP"; then
6706   CPP=
6707 fi
6708 if test -z "$CPP"; then
6709   if test "${ac_cv_prog_CPP+set}" = set; then
6710   $as_echo_n "(cached) " >&6
6711 else
6712       # Double quotes because CPP needs to be expanded
6713     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6714     do
6715       ac_preproc_ok=false
6716 for ac_c_preproc_warn_flag in '' yes
6717 do
6718   # Use a header file that comes with gcc, so configuring glibc
6719   # with a fresh cross-compiler works.
6720   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721   # <limits.h> exists even on freestanding compilers.
6722   # On the NeXT, cc -E runs the code through the compiler's parser,
6723   # not just through cpp. "Syntax error" is here to catch this case.
6724   cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h.  */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h.  */
6730 #ifdef __STDC__
6731 # include <limits.h>
6732 #else
6733 # include <assert.h>
6734 #endif
6735                      Syntax error
6736 _ACEOF
6737 if { (ac_try="$ac_cpp conftest.$ac_ext"
6738 case "(($ac_try" in
6739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740   *) ac_try_echo=$ac_try;;
6741 esac
6742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6743 $as_echo "$ac_try_echo") >&5
6744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } >/dev/null && {
6751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752          test ! -s conftest.err
6753        }; then
6754   :
6755 else
6756   $as_echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759   # Broken: fails on valid input.
6760 continue
6761 fi
6762
6763 rm -f conftest.err conftest.$ac_ext
6764
6765   # OK, works on sane cases.  Now check whether nonexistent headers
6766   # can be detected and how.
6767   cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h.  */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h.  */
6773 #include <ac_nonexistent.h>
6774 _ACEOF
6775 if { (ac_try="$ac_cpp conftest.$ac_ext"
6776 case "(($ac_try" in
6777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778   *) ac_try_echo=$ac_try;;
6779 esac
6780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6781 $as_echo "$ac_try_echo") >&5
6782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } >/dev/null && {
6789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6790          test ! -s conftest.err
6791        }; then
6792   # Broken: success on invalid input.
6793 continue
6794 else
6795   $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798   # Passes both tests.
6799 ac_preproc_ok=:
6800 break
6801 fi
6802
6803 rm -f conftest.err conftest.$ac_ext
6804
6805 done
6806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6807 rm -f conftest.err conftest.$ac_ext
6808 if $ac_preproc_ok; then
6809   break
6810 fi
6811
6812     done
6813     ac_cv_prog_CPP=$CPP
6814
6815 fi
6816   CPP=$ac_cv_prog_CPP
6817 else
6818   ac_cv_prog_CPP=$CPP
6819 fi
6820 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6821 $as_echo "$CPP" >&6; }
6822 ac_preproc_ok=false
6823 for ac_c_preproc_warn_flag in '' yes
6824 do
6825   # Use a header file that comes with gcc, so configuring glibc
6826   # with a fresh cross-compiler works.
6827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6828   # <limits.h> exists even on freestanding compilers.
6829   # On the NeXT, cc -E runs the code through the compiler's parser,
6830   # not just through cpp. "Syntax error" is here to catch this case.
6831   cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h.  */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h.  */
6837 #ifdef __STDC__
6838 # include <limits.h>
6839 #else
6840 # include <assert.h>
6841 #endif
6842                      Syntax error
6843 _ACEOF
6844 if { (ac_try="$ac_cpp conftest.$ac_ext"
6845 case "(($ac_try" in
6846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847   *) ac_try_echo=$ac_try;;
6848 esac
6849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850 $as_echo "$ac_try_echo") >&5
6851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6852   ac_status=$?
6853   grep -v '^ *+' conftest.er1 >conftest.err
6854   rm -f conftest.er1
6855   cat conftest.err >&5
6856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } >/dev/null && {
6858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6859          test ! -s conftest.err
6860        }; then
6861   :
6862 else
6863   $as_echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866   # Broken: fails on valid input.
6867 continue
6868 fi
6869
6870 rm -f conftest.err conftest.$ac_ext
6871
6872   # OK, works on sane cases.  Now check whether nonexistent headers
6873   # can be detected and how.
6874   cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h.  */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h.  */
6880 #include <ac_nonexistent.h>
6881 _ACEOF
6882 if { (ac_try="$ac_cpp conftest.$ac_ext"
6883 case "(($ac_try" in
6884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885   *) ac_try_echo=$ac_try;;
6886 esac
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6890   ac_status=$?
6891   grep -v '^ *+' conftest.er1 >conftest.err
6892   rm -f conftest.er1
6893   cat conftest.err >&5
6894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } >/dev/null && {
6896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6897          test ! -s conftest.err
6898        }; then
6899   # Broken: success on invalid input.
6900 continue
6901 else
6902   $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905   # Passes both tests.
6906 ac_preproc_ok=:
6907 break
6908 fi
6909
6910 rm -f conftest.err conftest.$ac_ext
6911
6912 done
6913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6914 rm -f conftest.err conftest.$ac_ext
6915 if $ac_preproc_ok; then
6916   :
6917 else
6918   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6920 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6921 See \`config.log' for more details." >&5
6922 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6923 See \`config.log' for more details." >&2;}
6924    { (exit 1); exit 1; }; }; }
6925 fi
6926
6927 ac_ext=c
6928 ac_cpp='$CPP $CPPFLAGS'
6929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6932
6933 # Find a good install program.  We prefer a C program (faster),
6934 # so one script is as good as another.  But avoid the broken or
6935 # incompatible versions:
6936 # SysV /etc/install, /usr/sbin/install
6937 # SunOS /usr/etc/install
6938 # IRIX /sbin/install
6939 # AIX /bin/install
6940 # AmigaOS /C/install, which installs bootblocks on floppy discs
6941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6944 # OS/2's system install, which has a completely different semantic
6945 # ./install, which can be erroneously created by make from ./install.sh.
6946 # Reject install programs that cannot install multiple files.
6947 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6948 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6949 if test -z "$INSTALL"; then
6950 if test "${ac_cv_path_install+set}" = set; then
6951   $as_echo_n "(cached) " >&6
6952 else
6953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   # Account for people who put trailing slashes in PATH elements.
6959 case $as_dir/ in
6960   ./ | .// | /cC/* | \
6961   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6962   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6963   /usr/ucb/* ) ;;
6964   *)
6965     # OSF1 and SCO ODT 3.0 have their own names for install.
6966     # Don't use installbsd from OSF since it installs stuff as root
6967     # by default.
6968     for ac_prog in ginstall scoinst install; do
6969       for ac_exec_ext in '' $ac_executable_extensions; do
6970         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6971           if test $ac_prog = install &&
6972             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6973             # AIX install.  It has an incompatible calling convention.
6974             :
6975           elif test $ac_prog = install &&
6976             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6977             # program-specific install script used by HP pwplus--don't use.
6978             :
6979           else
6980             rm -rf conftest.one conftest.two conftest.dir
6981             echo one > conftest.one
6982             echo two > conftest.two
6983             mkdir conftest.dir
6984             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6985               test -s conftest.one && test -s conftest.two &&
6986               test -s conftest.dir/conftest.one &&
6987               test -s conftest.dir/conftest.two
6988             then
6989               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6990               break 3
6991             fi
6992           fi
6993         fi
6994       done
6995     done
6996     ;;
6997 esac
6998
6999 done
7000 IFS=$as_save_IFS
7001
7002 rm -rf conftest.one conftest.two conftest.dir
7003
7004 fi
7005   if test "${ac_cv_path_install+set}" = set; then
7006     INSTALL=$ac_cv_path_install
7007   else
7008     # As a last resort, use the slow shell script.  Don't cache a
7009     # value for INSTALL within a source directory, because that will
7010     # break other packages using the cache if that directory is
7011     # removed, or if the value is a relative name.
7012     INSTALL=$ac_install_sh
7013   fi
7014 fi
7015 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7016 $as_echo "$INSTALL" >&6; }
7017
7018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7019 # It thinks the first close brace ends the variable substitution.
7020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7021
7022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7023
7024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7025
7026 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7027 $as_echo_n "checking whether ln -s works... " >&6; }
7028 LN_S=$as_ln_s
7029 if test "$LN_S" = "ln -s"; then
7030   { $as_echo "$as_me:$LINENO: result: yes" >&5
7031 $as_echo "yes" >&6; }
7032 else
7033   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7034 $as_echo "no, using $LN_S" >&6; }
7035 fi
7036
7037 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7038 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7039 set x ${MAKE-make}
7040 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7041 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7042   $as_echo_n "(cached) " >&6
7043 else
7044   cat >conftest.make <<\_ACEOF
7045 SHELL = /bin/sh
7046 all:
7047         @echo '@@@%%%=$(MAKE)=@@@%%%'
7048 _ACEOF
7049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7050 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7051   *@@@%%%=?*=@@@%%%*)
7052     eval ac_cv_prog_make_${ac_make}_set=yes;;
7053   *)
7054     eval ac_cv_prog_make_${ac_make}_set=no;;
7055 esac
7056 rm -f conftest.make
7057 fi
7058 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7059   { $as_echo "$as_me:$LINENO: result: yes" >&5
7060 $as_echo "yes" >&6; }
7061   SET_MAKE=
7062 else
7063   { $as_echo "$as_me:$LINENO: result: no" >&5
7064 $as_echo "no" >&6; }
7065   SET_MAKE="MAKE=${MAKE-make}"
7066 fi
7067
7068 # Check whether --enable-shared was given.
7069 if test "${enable_shared+set}" = set; then
7070   enableval=$enable_shared; p=${PACKAGE-default}
7071     case $enableval in
7072     yes) enable_shared=yes ;;
7073     no) enable_shared=no ;;
7074     *)
7075       enable_shared=no
7076       # Look at the argument we got.  We use all the common list separators.
7077       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7078       for pkg in $enableval; do
7079         IFS="$lt_save_ifs"
7080         if test "X$pkg" = "X$p"; then
7081           enable_shared=yes
7082         fi
7083       done
7084       IFS="$lt_save_ifs"
7085       ;;
7086     esac
7087 else
7088   enable_shared=yes
7089 fi
7090
7091
7092 # Check whether --enable-static was given.
7093 if test "${enable_static+set}" = set; then
7094   enableval=$enable_static; p=${PACKAGE-default}
7095     case $enableval in
7096     yes) enable_static=yes ;;
7097     no) enable_static=no ;;
7098     *)
7099      enable_static=no
7100       # Look at the argument we got.  We use all the common list separators.
7101       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7102       for pkg in $enableval; do
7103         IFS="$lt_save_ifs"
7104         if test "X$pkg" = "X$p"; then
7105           enable_static=yes
7106         fi
7107       done
7108       IFS="$lt_save_ifs"
7109       ;;
7110     esac
7111 else
7112   enable_static=yes
7113 fi
7114
7115
7116 # Check whether --enable-fast-install was given.
7117 if test "${enable_fast_install+set}" = set; then
7118   enableval=$enable_fast_install; p=${PACKAGE-default}
7119     case $enableval in
7120     yes) enable_fast_install=yes ;;
7121     no) enable_fast_install=no ;;
7122     *)
7123       enable_fast_install=no
7124       # Look at the argument we got.  We use all the common list separators.
7125       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7126       for pkg in $enableval; do
7127         IFS="$lt_save_ifs"
7128         if test "X$pkg" = "X$p"; then
7129           enable_fast_install=yes
7130         fi
7131       done
7132       IFS="$lt_save_ifs"
7133       ;;
7134     esac
7135 else
7136   enable_fast_install=yes
7137 fi
7138
7139
7140 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7141 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7142 if test "${lt_cv_path_SED+set}" = set; then
7143   $as_echo_n "(cached) " >&6
7144 else
7145   # Loop through the user's path and test for sed and gsed.
7146 # Then use that list of sed's as ones to test for truncation.
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152   for lt_ac_prog in sed gsed; do
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
7155         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7156       fi
7157     done
7158   done
7159 done
7160 IFS=$as_save_IFS
7161 lt_ac_max=0
7162 lt_ac_count=0
7163 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7164 # along with /bin/sed that truncates output.
7165 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7166   test ! -f $lt_ac_sed && continue
7167   cat /dev/null > conftest.in
7168   lt_ac_count=0
7169   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7170   # Check for GNU sed and select it if it is found.
7171   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7172     lt_cv_path_SED=$lt_ac_sed
7173     break
7174   fi
7175   while true; do
7176     cat conftest.in conftest.in >conftest.tmp
7177     mv conftest.tmp conftest.in
7178     cp conftest.in conftest.nl
7179     echo >>conftest.nl
7180     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7181     cmp -s conftest.out conftest.nl || break
7182     # 10000 chars as input seems more than enough
7183     test $lt_ac_count -gt 10 && break
7184     lt_ac_count=`expr $lt_ac_count + 1`
7185     if test $lt_ac_count -gt $lt_ac_max; then
7186       lt_ac_max=$lt_ac_count
7187       lt_cv_path_SED=$lt_ac_sed
7188     fi
7189   done
7190 done
7191
7192 fi
7193
7194 SED=$lt_cv_path_SED
7195
7196 { $as_echo "$as_me:$LINENO: result: $SED" >&5
7197 $as_echo "$SED" >&6; }
7198
7199
7200 # Check whether --with-gnu-ld was given.
7201 if test "${with_gnu_ld+set}" = set; then
7202   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7203 else
7204   with_gnu_ld=no
7205 fi
7206
7207 ac_prog=ld
7208 if test "$GCC" = yes; then
7209   # Check if gcc -print-prog-name=ld gives a path.
7210   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7211 $as_echo_n "checking for ld used by $CC... " >&6; }
7212   case $host in
7213   *-*-mingw*)
7214     # gcc leaves a trailing carriage return which upsets mingw
7215     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7216   *)
7217     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7218   esac
7219   case $ac_prog in
7220     # Accept absolute paths.
7221     [\\/]* | ?:[\\/]*)
7222       re_direlt='/[^/][^/]*/\.\./'
7223       # Canonicalize the pathname of ld
7224       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7225       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7226         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7227       done
7228       test -z "$LD" && LD="$ac_prog"
7229       ;;
7230   "")
7231     # If it fails, then pretend we aren't using GCC.
7232     ac_prog=ld
7233     ;;
7234   *)
7235     # If it is relative, then search for the first ld in PATH.
7236     with_gnu_ld=unknown
7237     ;;
7238   esac
7239 elif test "$with_gnu_ld" = yes; then
7240   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7241 $as_echo_n "checking for GNU ld... " >&6; }
7242 else
7243   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7244 $as_echo_n "checking for non-GNU ld... " >&6; }
7245 fi
7246 if test "${lt_cv_path_LD+set}" = set; then
7247   $as_echo_n "(cached) " >&6
7248 else
7249   if test -z "$LD"; then
7250   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7251   for ac_dir in $PATH; do
7252     IFS="$lt_save_ifs"
7253     test -z "$ac_dir" && ac_dir=.
7254     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7255       lt_cv_path_LD="$ac_dir/$ac_prog"
7256       # Check to see if the program is GNU ld.  I'd rather use --version,
7257       # but apparently some variants of GNU ld only accept -v.
7258       # Break only if it was the GNU/non-GNU ld that we prefer.
7259       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7260       *GNU* | *'with BFD'*)
7261         test "$with_gnu_ld" != no && break
7262         ;;
7263       *)
7264         test "$with_gnu_ld" != yes && break
7265         ;;
7266       esac
7267     fi
7268   done
7269   IFS="$lt_save_ifs"
7270 else
7271   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7272 fi
7273 fi
7274
7275 LD="$lt_cv_path_LD"
7276 if test -n "$LD"; then
7277   { $as_echo "$as_me:$LINENO: result: $LD" >&5
7278 $as_echo "$LD" >&6; }
7279 else
7280   { $as_echo "$as_me:$LINENO: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7284 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7285    { (exit 1); exit 1; }; }
7286 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7287 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7288 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7289   $as_echo_n "(cached) " >&6
7290 else
7291   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7292 case `$LD -v 2>&1 </dev/null` in
7293 *GNU* | *'with BFD'*)
7294   lt_cv_prog_gnu_ld=yes
7295   ;;
7296 *)
7297   lt_cv_prog_gnu_ld=no
7298   ;;
7299 esac
7300 fi
7301 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7302 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7303 with_gnu_ld=$lt_cv_prog_gnu_ld
7304
7305
7306 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7307 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7308 if test "${lt_cv_ld_reload_flag+set}" = set; then
7309   $as_echo_n "(cached) " >&6
7310 else
7311   lt_cv_ld_reload_flag='-r'
7312 fi
7313 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7314 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7315 reload_flag=$lt_cv_ld_reload_flag
7316 case $reload_flag in
7317 "" | " "*) ;;
7318 *) reload_flag=" $reload_flag" ;;
7319 esac
7320 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7321 case $host_os in
7322   darwin*)
7323     if test "$GCC" = yes; then
7324       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7325     else
7326       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7327     fi
7328     ;;
7329 esac
7330
7331 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7332 $as_echo_n "checking for BSD-compatible nm... " >&6; }
7333 if test "${lt_cv_path_NM+set}" = set; then
7334   $as_echo_n "(cached) " >&6
7335 else
7336   if test -n "$NM"; then
7337   # Let the user override the test.
7338   lt_cv_path_NM="$NM"
7339 else
7340   lt_nm_to_check="${ac_tool_prefix}nm"
7341   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7342     lt_nm_to_check="$lt_nm_to_check nm"
7343   fi
7344   for lt_tmp_nm in $lt_nm_to_check; do
7345     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7346     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7347       IFS="$lt_save_ifs"
7348       test -z "$ac_dir" && ac_dir=.
7349       tmp_nm="$ac_dir/$lt_tmp_nm"
7350       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7351         # Check to see if the nm accepts a BSD-compat flag.
7352         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7353         #   nm: unknown option "B" ignored
7354         # Tru64's nm complains that /dev/null is an invalid object file
7355         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7356         */dev/null* | *'Invalid file or object type'*)
7357           lt_cv_path_NM="$tmp_nm -B"
7358           break
7359           ;;
7360         *)
7361           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7362           */dev/null*)
7363             lt_cv_path_NM="$tmp_nm -p"
7364             break
7365             ;;
7366           *)
7367             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7368             continue # so that we can try to find one that supports BSD flags
7369             ;;
7370           esac
7371           ;;
7372         esac
7373       fi
7374     done
7375     IFS="$lt_save_ifs"
7376   done
7377   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7378 fi
7379 fi
7380 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7381 $as_echo "$lt_cv_path_NM" >&6; }
7382 NM="$lt_cv_path_NM"
7383
7384 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7386 if test "${lt_cv_deplibs_check_method+set}" = set; then
7387   $as_echo_n "(cached) " >&6
7388 else
7389   lt_cv_file_magic_cmd='$MAGIC_CMD'
7390 lt_cv_file_magic_test_file=
7391 lt_cv_deplibs_check_method='unknown'
7392 # Need to set the preceding variable on all platforms that support
7393 # interlibrary dependencies.
7394 # 'none' -- dependencies not supported.
7395 # `unknown' -- same as none, but documents that we really don't know.
7396 # 'pass_all' -- all dependencies passed with no checks.
7397 # 'test_compile' -- check by making test program.
7398 # 'file_magic [[regex]]' -- check by looking for files in library path
7399 # which responds to the $file_magic_cmd with a given extended regex.
7400 # If you have `file' or equivalent on your system and you're not sure
7401 # whether `pass_all' will *always* work, you probably want this one.
7402
7403 case $host_os in
7404 aix[4-9]*)
7405   lt_cv_deplibs_check_method=pass_all
7406   ;;
7407
7408 beos*)
7409   lt_cv_deplibs_check_method=pass_all
7410   ;;
7411
7412 bsdi[45]*)
7413   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7414   lt_cv_file_magic_cmd='/usr/bin/file -L'
7415   lt_cv_file_magic_test_file=/shlib/libc.so
7416   ;;
7417
7418 cygwin*)
7419   # func_win32_libid is a shell function defined in ltmain.sh
7420   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7421   lt_cv_file_magic_cmd='func_win32_libid'
7422   ;;
7423
7424 mingw* | pw32*)
7425   # Base MSYS/MinGW do not provide the 'file' command needed by
7426   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7427   # unless we find 'file', for example because we are cross-compiling.
7428   if ( file / ) >/dev/null 2>&1; then
7429     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7430     lt_cv_file_magic_cmd='func_win32_libid'
7431   else
7432     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7433     lt_cv_file_magic_cmd='$OBJDUMP -f'
7434   fi
7435   ;;
7436
7437 darwin* | rhapsody*)
7438   lt_cv_deplibs_check_method=pass_all
7439   ;;
7440
7441 freebsd* | dragonfly*)
7442   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7443     case $host_cpu in
7444     i*86 )
7445       # Not sure whether the presence of OpenBSD here was a mistake.
7446       # Let's accept both of them until this is cleared up.
7447       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7448       lt_cv_file_magic_cmd=/usr/bin/file
7449       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7450       ;;
7451     esac
7452   else
7453     lt_cv_deplibs_check_method=pass_all
7454   fi
7455   ;;
7456
7457 gnu*)
7458   lt_cv_deplibs_check_method=pass_all
7459   ;;
7460
7461 hpux10.20* | hpux11*)
7462   lt_cv_file_magic_cmd=/usr/bin/file
7463   case $host_cpu in
7464   ia64*)
7465     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7466     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7467     ;;
7468   hppa*64*)
7469     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]'
7470     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7471     ;;
7472   *)
7473     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7474     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7475     ;;
7476   esac
7477   ;;
7478
7479 interix[3-9]*)
7480   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7481   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7482   ;;
7483
7484 irix5* | irix6* | nonstopux*)
7485   case $LD in
7486   *-32|*"-32 ") libmagic=32-bit;;
7487   *-n32|*"-n32 ") libmagic=N32;;
7488   *-64|*"-64 ") libmagic=64-bit;;
7489   *) libmagic=never-match;;
7490   esac
7491   lt_cv_deplibs_check_method=pass_all
7492   ;;
7493
7494 # This must be Linux ELF.
7495 linux* | k*bsd*-gnu)
7496   lt_cv_deplibs_check_method=pass_all
7497   ;;
7498
7499 netbsd*)
7500   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7502   else
7503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7504   fi
7505   ;;
7506
7507 newos6*)
7508   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7509   lt_cv_file_magic_cmd=/usr/bin/file
7510   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7511   ;;
7512
7513 nto-qnx*)
7514   lt_cv_deplibs_check_method=unknown
7515   ;;
7516
7517 openbsd*)
7518   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7519     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7520   else
7521     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7522   fi
7523   ;;
7524
7525 osf3* | osf4* | osf5*)
7526   lt_cv_deplibs_check_method=pass_all
7527   ;;
7528
7529 rdos*)
7530   lt_cv_deplibs_check_method=pass_all
7531   ;;
7532
7533 solaris*)
7534   lt_cv_deplibs_check_method=pass_all
7535   ;;
7536
7537 sysv4 | sysv4.3*)
7538   case $host_vendor in
7539   motorola)
7540     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]'
7541     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7542     ;;
7543   ncr)
7544     lt_cv_deplibs_check_method=pass_all
7545     ;;
7546   sequent)
7547     lt_cv_file_magic_cmd='/bin/file'
7548     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7549     ;;
7550   sni)
7551     lt_cv_file_magic_cmd='/bin/file'
7552     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7553     lt_cv_file_magic_test_file=/lib/libc.so
7554     ;;
7555   siemens)
7556     lt_cv_deplibs_check_method=pass_all
7557     ;;
7558   pc)
7559     lt_cv_deplibs_check_method=pass_all
7560     ;;
7561   esac
7562   ;;
7563
7564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7565   lt_cv_deplibs_check_method=pass_all
7566   ;;
7567 esac
7568
7569 fi
7570 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7571 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7572 file_magic_cmd=$lt_cv_file_magic_cmd
7573 deplibs_check_method=$lt_cv_deplibs_check_method
7574 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7575
7576
7577
7578
7579 # If no C compiler was specified, use CC.
7580 LTCC=${LTCC-"$CC"}
7581
7582 # If no C compiler flags were specified, use CFLAGS.
7583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7584
7585 # Allow CC to be a program name with arguments.
7586 compiler=$CC
7587
7588 # Check whether --enable-libtool-lock was given.
7589 if test "${enable_libtool_lock+set}" = set; then
7590   enableval=$enable_libtool_lock;
7591 fi
7592
7593 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7594
7595 # Some flags need to be propagated to the compiler or linker for good
7596 # libtool support.
7597 case $host in
7598 ia64-*-hpux*)
7599   # Find out which ABI we are using.
7600   echo 'int i;' > conftest.$ac_ext
7601   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602   (eval $ac_compile) 2>&5
7603   ac_status=$?
7604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; then
7606     case `/usr/bin/file conftest.$ac_objext` in
7607     *ELF-32*)
7608       HPUX_IA64_MODE="32"
7609       ;;
7610     *ELF-64*)
7611       HPUX_IA64_MODE="64"
7612       ;;
7613     esac
7614   fi
7615   rm -rf conftest*
7616   ;;
7617 *-*-irix6*)
7618   # Find out which ABI we are using.
7619   echo '#line 7619 "configure"' > conftest.$ac_ext
7620   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7621   (eval $ac_compile) 2>&5
7622   ac_status=$?
7623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; then
7625    if test "$lt_cv_prog_gnu_ld" = yes; then
7626     case `/usr/bin/file conftest.$ac_objext` in
7627     *32-bit*)
7628       LD="${LD-ld} -melf32bsmip"
7629       ;;
7630     *N32*)
7631       LD="${LD-ld} -melf32bmipn32"
7632       ;;
7633     *64-bit*)
7634       LD="${LD-ld} -melf64bmip"
7635       ;;
7636     esac
7637    else
7638     case `/usr/bin/file conftest.$ac_objext` in
7639     *32-bit*)
7640       LD="${LD-ld} -32"
7641       ;;
7642     *N32*)
7643       LD="${LD-ld} -n32"
7644       ;;
7645     *64-bit*)
7646       LD="${LD-ld} -64"
7647       ;;
7648     esac
7649    fi
7650   fi
7651   rm -rf conftest*
7652   ;;
7653
7654 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7655 s390*-*linux*|sparc*-*linux*)
7656   # Find out which ABI we are using.
7657   echo 'int i;' > conftest.$ac_ext
7658   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659   (eval $ac_compile) 2>&5
7660   ac_status=$?
7661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; then
7663     case `/usr/bin/file conftest.o` in
7664     *32-bit*)
7665       case $host in
7666         x86_64-*kfreebsd*-gnu)
7667           LD="${LD-ld} -m elf_i386_fbsd"
7668           ;;
7669         x86_64-*linux*)
7670           LD="${LD-ld} -m elf_i386"
7671           ;;
7672         ppc64-*linux*|powerpc64-*linux*)
7673           LD="${LD-ld} -m elf32ppclinux"
7674           ;;
7675         s390x-*linux*)
7676           LD="${LD-ld} -m elf_s390"
7677           ;;
7678         sparc64-*linux*)
7679           LD="${LD-ld} -m elf32_sparc"
7680           ;;
7681       esac
7682       ;;
7683     *64-bit*)
7684       libsuff=64
7685       case $host in
7686         x86_64-*kfreebsd*-gnu)
7687           LD="${LD-ld} -m elf_x86_64_fbsd"
7688           ;;
7689         x86_64-*linux*)
7690           LD="${LD-ld} -m elf_x86_64"
7691           ;;
7692         ppc*-*linux*|powerpc*-*linux*)
7693           LD="${LD-ld} -m elf64ppc"
7694           ;;
7695         s390*-*linux*)
7696           LD="${LD-ld} -m elf64_s390"
7697           ;;
7698         sparc*-*linux*)
7699           LD="${LD-ld} -m elf64_sparc"
7700           ;;
7701       esac
7702       ;;
7703     esac
7704   fi
7705   rm -rf conftest*
7706   ;;
7707
7708 *-*-sco3.2v5*)
7709   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7710   SAVE_CFLAGS="$CFLAGS"
7711   CFLAGS="$CFLAGS -belf"
7712   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7713 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7714 if test "${lt_cv_cc_needs_belf+set}" = set; then
7715   $as_echo_n "(cached) " >&6
7716 else
7717   ac_ext=c
7718 ac_cpp='$CPP $CPPFLAGS'
7719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722
7723      cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h.  */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h.  */
7729
7730 int
7731 main ()
7732 {
7733
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (ac_try="$ac_link"
7740 case "(($ac_try" in
7741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742   *) ac_try_echo=$ac_try;;
7743 esac
7744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7745 $as_echo "$ac_try_echo") >&5
7746   (eval "$ac_link") 2>conftest.er1
7747   ac_status=$?
7748   grep -v '^ *+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } && {
7753          test -z "$ac_c_werror_flag" ||
7754          test ! -s conftest.err
7755        } && test -s conftest$ac_exeext && {
7756          test "$cross_compiling" = yes ||
7757          $as_test_x conftest$ac_exeext
7758        }; then
7759   lt_cv_cc_needs_belf=yes
7760 else
7761   $as_echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764         lt_cv_cc_needs_belf=no
7765 fi
7766
7767 rm -rf conftest.dSYM
7768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769       conftest$ac_exeext conftest.$ac_ext
7770      ac_ext=c
7771 ac_cpp='$CPP $CPPFLAGS'
7772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775
7776 fi
7777 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7778 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7779   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7780     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7781     CFLAGS="$SAVE_CFLAGS"
7782   fi
7783   ;;
7784 sparc*-*solaris*)
7785   # Find out which ABI we are using.
7786   echo 'int i;' > conftest.$ac_ext
7787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788   (eval $ac_compile) 2>&5
7789   ac_status=$?
7790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; then
7792     case `/usr/bin/file conftest.o` in
7793     *64-bit*)
7794       case $lt_cv_prog_gnu_ld in
7795       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7796       *)
7797         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7798           LD="${LD-ld} -64"
7799         fi
7800         ;;
7801       esac
7802       ;;
7803     esac
7804   fi
7805   rm -rf conftest*
7806   ;;
7807
7808
7809 esac
7810
7811 need_locks="$enable_libtool_lock"
7812
7813
7814
7815 for ac_header in dlfcn.h
7816 do
7817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7819   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7820 $as_echo_n "checking for $ac_header... " >&6; }
7821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7822   $as_echo_n "(cached) " >&6
7823 fi
7824 ac_res=`eval 'as_val=${'$as_ac_Header'}
7825                  $as_echo "$as_val"'`
7826                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7827 $as_echo "$ac_res" >&6; }
7828 else
7829   # Is the header compilable?
7830 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7831 $as_echo_n "checking $ac_header usability... " >&6; }
7832 cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h.  */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h.  */
7838 $ac_includes_default
7839 #include <$ac_header>
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7848 $as_echo "$ac_try_echo") >&5
7849   (eval "$ac_compile") 2>conftest.er1
7850   ac_status=$?
7851   grep -v '^ *+' conftest.er1 >conftest.err
7852   rm -f conftest.er1
7853   cat conftest.err >&5
7854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } && {
7856          test -z "$ac_c_werror_flag" ||
7857          test ! -s conftest.err
7858        } && test -s conftest.$ac_objext; then
7859   ac_header_compiler=yes
7860 else
7861   $as_echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864         ac_header_compiler=no
7865 fi
7866
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7869 $as_echo "$ac_header_compiler" >&6; }
7870
7871 # Is the header present?
7872 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7873 $as_echo_n "checking $ac_header presence... " >&6; }
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 #include <$ac_header>
7881 _ACEOF
7882 if { (ac_try="$ac_cpp conftest.$ac_ext"
7883 case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7888 $as_echo "$ac_try_echo") >&5
7889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7890   ac_status=$?
7891   grep -v '^ *+' conftest.er1 >conftest.err
7892   rm -f conftest.er1
7893   cat conftest.err >&5
7894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } >/dev/null && {
7896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7897          test ! -s conftest.err
7898        }; then
7899   ac_header_preproc=yes
7900 else
7901   $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904   ac_header_preproc=no
7905 fi
7906
7907 rm -f conftest.err conftest.$ac_ext
7908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7909 $as_echo "$ac_header_preproc" >&6; }
7910
7911 # So?  What about this header?
7912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7913   yes:no: )
7914     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7915 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7918     ac_header_preproc=yes
7919     ;;
7920   no:yes:* )
7921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7922 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7924 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7926 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7928 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7932 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7933     ( cat <<\_ASBOX
7934 ## ---------------------------------------- ##
7935 ## Report this to linux-nfs@vger.kernel.org ##
7936 ## ---------------------------------------- ##
7937 _ASBOX
7938      ) | sed "s/^/$as_me: WARNING:     /" >&2
7939     ;;
7940 esac
7941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7942 $as_echo_n "checking for $ac_header... " >&6; }
7943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7944   $as_echo_n "(cached) " >&6
7945 else
7946   eval "$as_ac_Header=\$ac_header_preproc"
7947 fi
7948 ac_res=`eval 'as_val=${'$as_ac_Header'}
7949                  $as_echo "$as_val"'`
7950                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7951 $as_echo "$ac_res" >&6; }
7952
7953 fi
7954 as_val=`eval 'as_val=${'$as_ac_Header'}
7955                  $as_echo "$as_val"'`
7956    if test "x$as_val" = x""yes; then
7957   cat >>confdefs.h <<_ACEOF
7958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7959 _ACEOF
7960
7961 fi
7962
7963 done
7964
7965
7966
7967 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7968     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7969     (test "X$CXX" != "Xg++"))) ; then
7970   ac_ext=cpp
7971 ac_cpp='$CXXCPP $CPPFLAGS'
7972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7975 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7976 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7977 if test -z "$CXXCPP"; then
7978   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7979   $as_echo_n "(cached) " >&6
7980 else
7981       # Double quotes because CXXCPP needs to be expanded
7982     for CXXCPP in "$CXX -E" "/lib/cpp"
7983     do
7984       ac_preproc_ok=false
7985 for ac_cxx_preproc_warn_flag in '' yes
7986 do
7987   # Use a header file that comes with gcc, so configuring glibc
7988   # with a fresh cross-compiler works.
7989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7990   # <limits.h> exists even on freestanding compilers.
7991   # On the NeXT, cc -E runs the code through the compiler's parser,
7992   # not just through cpp. "Syntax error" is here to catch this case.
7993   cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 #ifdef __STDC__
8000 # include <limits.h>
8001 #else
8002 # include <assert.h>
8003 #endif
8004                      Syntax error
8005 _ACEOF
8006 if { (ac_try="$ac_cpp conftest.$ac_ext"
8007 case "(($ac_try" in
8008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009   *) ac_try_echo=$ac_try;;
8010 esac
8011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012 $as_echo "$ac_try_echo") >&5
8013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } >/dev/null && {
8020          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8021          test ! -s conftest.err
8022        }; then
8023   :
8024 else
8025   $as_echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028   # Broken: fails on valid input.
8029 continue
8030 fi
8031
8032 rm -f conftest.err conftest.$ac_ext
8033
8034   # OK, works on sane cases.  Now check whether nonexistent headers
8035   # can be detected and how.
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042 #include <ac_nonexistent.h>
8043 _ACEOF
8044 if { (ac_try="$ac_cpp conftest.$ac_ext"
8045 case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8052   ac_status=$?
8053   grep -v '^ *+' conftest.er1 >conftest.err
8054   rm -f conftest.er1
8055   cat conftest.err >&5
8056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } >/dev/null && {
8058          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8059          test ! -s conftest.err
8060        }; then
8061   # Broken: success on invalid input.
8062 continue
8063 else
8064   $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067   # Passes both tests.
8068 ac_preproc_ok=:
8069 break
8070 fi
8071
8072 rm -f conftest.err conftest.$ac_ext
8073
8074 done
8075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8076 rm -f conftest.err conftest.$ac_ext
8077 if $ac_preproc_ok; then
8078   break
8079 fi
8080
8081     done
8082     ac_cv_prog_CXXCPP=$CXXCPP
8083
8084 fi
8085   CXXCPP=$ac_cv_prog_CXXCPP
8086 else
8087   ac_cv_prog_CXXCPP=$CXXCPP
8088 fi
8089 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8090 $as_echo "$CXXCPP" >&6; }
8091 ac_preproc_ok=false
8092 for ac_cxx_preproc_warn_flag in '' yes
8093 do
8094   # Use a header file that comes with gcc, so configuring glibc
8095   # with a fresh cross-compiler works.
8096   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097   # <limits.h> exists even on freestanding compilers.
8098   # On the NeXT, cc -E runs the code through the compiler's parser,
8099   # not just through cpp. "Syntax error" is here to catch this case.
8100   cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106 #ifdef __STDC__
8107 # include <limits.h>
8108 #else
8109 # include <assert.h>
8110 #endif
8111                      Syntax error
8112 _ACEOF
8113 if { (ac_try="$ac_cpp conftest.$ac_ext"
8114 case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8119 $as_echo "$ac_try_echo") >&5
8120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8121   ac_status=$?
8122   grep -v '^ *+' conftest.er1 >conftest.err
8123   rm -f conftest.er1
8124   cat conftest.err >&5
8125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } >/dev/null && {
8127          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8128          test ! -s conftest.err
8129        }; then
8130   :
8131 else
8132   $as_echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135   # Broken: fails on valid input.
8136 continue
8137 fi
8138
8139 rm -f conftest.err conftest.$ac_ext
8140
8141   # OK, works on sane cases.  Now check whether nonexistent headers
8142   # can be detected and how.
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 #include <ac_nonexistent.h>
8150 _ACEOF
8151 if { (ac_try="$ac_cpp conftest.$ac_ext"
8152 case "(($ac_try" in
8153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154   *) ac_try_echo=$ac_try;;
8155 esac
8156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157 $as_echo "$ac_try_echo") >&5
8158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8159   ac_status=$?
8160   grep -v '^ *+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } >/dev/null && {
8165          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8166          test ! -s conftest.err
8167        }; then
8168   # Broken: success on invalid input.
8169 continue
8170 else
8171   $as_echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174   # Passes both tests.
8175 ac_preproc_ok=:
8176 break
8177 fi
8178
8179 rm -f conftest.err conftest.$ac_ext
8180
8181 done
8182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8183 rm -f conftest.err conftest.$ac_ext
8184 if $ac_preproc_ok; then
8185   :
8186 else
8187   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8189 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8190 See \`config.log' for more details." >&5
8191 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8192 See \`config.log' for more details." >&2;}
8193    { (exit 1); exit 1; }; }; }
8194 fi
8195
8196 ac_ext=cpp
8197 ac_cpp='$CXXCPP $CPPFLAGS'
8198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8201
8202 fi
8203
8204
8205 ac_ext=f
8206 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8207 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8209 if test -n "$ac_tool_prefix"; then
8210   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8211   do
8212     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_prog_F77+set}" = set; then
8217   $as_echo_n "(cached) " >&6
8218 else
8219   if test -n "$F77"; then
8220   ac_cv_prog_F77="$F77" # Let the user override the test.
8221 else
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225   IFS=$as_save_IFS
8226   test -z "$as_dir" && as_dir=.
8227   for ac_exec_ext in '' $ac_executable_extensions; do
8228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8230     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231     break 2
8232   fi
8233 done
8234 done
8235 IFS=$as_save_IFS
8236
8237 fi
8238 fi
8239 F77=$ac_cv_prog_F77
8240 if test -n "$F77"; then
8241   { $as_echo "$as_me:$LINENO: result: $F77" >&5
8242 $as_echo "$F77" >&6; }
8243 else
8244   { $as_echo "$as_me:$LINENO: result: no" >&5
8245 $as_echo "no" >&6; }
8246 fi
8247
8248
8249     test -n "$F77" && break
8250   done
8251 fi
8252 if test -z "$F77"; then
8253   ac_ct_F77=$F77
8254   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8255 do
8256   # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8261   $as_echo_n "(cached) " >&6
8262 else
8263   if test -n "$ac_ct_F77"; then
8264   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271   for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_prog_ac_ct_F77="$ac_prog"
8274     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278 done
8279 IFS=$as_save_IFS
8280
8281 fi
8282 fi
8283 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8284 if test -n "$ac_ct_F77"; then
8285   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8286 $as_echo "$ac_ct_F77" >&6; }
8287 else
8288   { $as_echo "$as_me:$LINENO: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293   test -n "$ac_ct_F77" && break
8294 done
8295
8296   if test "x$ac_ct_F77" = x; then
8297     F77=""
8298   else
8299     case $cross_compiling:$ac_tool_warned in
8300 yes:)
8301 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303 ac_tool_warned=yes ;;
8304 esac
8305     F77=$ac_ct_F77
8306   fi
8307 fi
8308
8309
8310 # Provide some information about the compiler.
8311 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8312 set X $ac_compile
8313 ac_compiler=$2
8314 { (ac_try="$ac_compiler --version >&5"
8315 case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8320 $as_echo "$ac_try_echo") >&5
8321   (eval "$ac_compiler --version >&5") 2>&5
8322   ac_status=$?
8323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }
8325 { (ac_try="$ac_compiler -v >&5"
8326 case "(($ac_try" in
8327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328   *) ac_try_echo=$ac_try;;
8329 esac
8330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8331 $as_echo "$ac_try_echo") >&5
8332   (eval "$ac_compiler -v >&5") 2>&5
8333   ac_status=$?
8334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }
8336 { (ac_try="$ac_compiler -V >&5"
8337 case "(($ac_try" in
8338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339   *) ac_try_echo=$ac_try;;
8340 esac
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343   (eval "$ac_compiler -V >&5") 2>&5
8344   ac_status=$?
8345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }
8347 rm -f a.out
8348
8349 # If we don't use `.F' as extension, the preprocessor is not run on the
8350 # input file.  (Note that this only needs to work for GNU compilers.)
8351 ac_save_ext=$ac_ext
8352 ac_ext=F
8353 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8354 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
8355 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8356   $as_echo_n "(cached) " >&6
8357 else
8358   cat >conftest.$ac_ext <<_ACEOF
8359       program main
8360 #ifndef __GNUC__
8361        choke me
8362 #endif
8363
8364       end
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (ac_try="$ac_compile"
8368 case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374   (eval "$ac_compile") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } && {
8381          test -z "$ac_f77_werror_flag" ||
8382          test ! -s conftest.err
8383        } && test -s conftest.$ac_objext; then
8384   ac_compiler_gnu=yes
8385 else
8386   $as_echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389         ac_compiler_gnu=no
8390 fi
8391
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8394
8395 fi
8396 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8397 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
8398 ac_ext=$ac_save_ext
8399 ac_test_FFLAGS=${FFLAGS+set}
8400 ac_save_FFLAGS=$FFLAGS
8401 FFLAGS=
8402 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8403 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
8404 if test "${ac_cv_prog_f77_g+set}" = set; then
8405   $as_echo_n "(cached) " >&6
8406 else
8407   FFLAGS=-g
8408 cat >conftest.$ac_ext <<_ACEOF
8409       program main
8410
8411       end
8412 _ACEOF
8413 rm -f conftest.$ac_objext
8414 if { (ac_try="$ac_compile"
8415 case "(($ac_try" in
8416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417   *) ac_try_echo=$ac_try;;
8418 esac
8419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8420 $as_echo "$ac_try_echo") >&5
8421   (eval "$ac_compile") 2>conftest.er1
8422   ac_status=$?
8423   grep -v '^ *+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } && {
8428          test -z "$ac_f77_werror_flag" ||
8429          test ! -s conftest.err
8430        } && test -s conftest.$ac_objext; then
8431   ac_cv_prog_f77_g=yes
8432 else
8433   $as_echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436         ac_cv_prog_f77_g=no
8437 fi
8438
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440
8441 fi
8442 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8443 $as_echo "$ac_cv_prog_f77_g" >&6; }
8444 if test "$ac_test_FFLAGS" = set; then
8445   FFLAGS=$ac_save_FFLAGS
8446 elif test $ac_cv_prog_f77_g = yes; then
8447   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8448     FFLAGS="-g -O2"
8449   else
8450     FFLAGS="-g"
8451   fi
8452 else
8453   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8454     FFLAGS="-O2"
8455   else
8456     FFLAGS=
8457   fi
8458 fi
8459
8460 if test $ac_compiler_gnu = yes; then
8461   G77=yes
8462 else
8463   G77=
8464 fi
8465 ac_ext=c
8466 ac_cpp='$CPP $CPPFLAGS'
8467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8470
8471
8472
8473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8474 # find the maximum length of command line arguments
8475 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8476 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8477 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8478   $as_echo_n "(cached) " >&6
8479 else
8480     i=0
8481   teststring="ABCD"
8482
8483   case $build_os in
8484   msdosdjgpp*)
8485     # On DJGPP, this test can blow up pretty badly due to problems in libc
8486     # (any single argument exceeding 2000 bytes causes a buffer overrun
8487     # during glob expansion).  Even if it were fixed, the result of this
8488     # check would be larger than it should be.
8489     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8490     ;;
8491
8492   gnu*)
8493     # Under GNU Hurd, this test is not required because there is
8494     # no limit to the length of command line arguments.
8495     # Libtool will interpret -1 as no limit whatsoever
8496     lt_cv_sys_max_cmd_len=-1;
8497     ;;
8498
8499   cygwin* | mingw*)
8500     # On Win9x/ME, this test blows up -- it succeeds, but takes
8501     # about 5 minutes as the teststring grows exponentially.
8502     # Worse, since 9x/ME are not pre-emptively multitasking,
8503     # you end up with a "frozen" computer, even though with patience
8504     # the test eventually succeeds (with a max line length of 256k).
8505     # Instead, let's just punt: use the minimum linelength reported by
8506     # all of the supported platforms: 8192 (on NT/2K/XP).
8507     lt_cv_sys_max_cmd_len=8192;
8508     ;;
8509
8510   amigaos*)
8511     # On AmigaOS with pdksh, this test takes hours, literally.
8512     # So we just punt and use a minimum line length of 8192.
8513     lt_cv_sys_max_cmd_len=8192;
8514     ;;
8515
8516   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8517     # This has been around since 386BSD, at least.  Likely further.
8518     if test -x /sbin/sysctl; then
8519       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8520     elif test -x /usr/sbin/sysctl; then
8521       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8522     else
8523       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8524     fi
8525     # And add a safety zone
8526     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8527     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8528     ;;
8529
8530   interix*)
8531     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8532     lt_cv_sys_max_cmd_len=196608
8533     ;;
8534
8535   osf*)
8536     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8537     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8538     # nice to cause kernel panics so lets avoid the loop below.
8539     # First set a reasonable default.
8540     lt_cv_sys_max_cmd_len=16384
8541     #
8542     if test -x /sbin/sysconfig; then
8543       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8544         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8545       esac
8546     fi
8547     ;;
8548   sco3.2v5*)
8549     lt_cv_sys_max_cmd_len=102400
8550     ;;
8551   sysv5* | sco5v6* | sysv4.2uw2*)
8552     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8553     if test -n "$kargmax"; then
8554       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8555     else
8556       lt_cv_sys_max_cmd_len=32768
8557     fi
8558     ;;
8559   *)
8560     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8561     if test -n "$lt_cv_sys_max_cmd_len"; then
8562       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8563       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8564     else
8565       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8566       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8567                = "XX$teststring") >/dev/null 2>&1 &&
8568               new_result=`expr "X$teststring" : ".*" 2>&1` &&
8569               lt_cv_sys_max_cmd_len=$new_result &&
8570               test $i != 17 # 1/2 MB should be enough
8571       do
8572         i=`expr $i + 1`
8573         teststring=$teststring$teststring
8574       done
8575       teststring=
8576       # Add a significant safety factor because C++ compilers can tack on massive
8577       # amounts of additional arguments before passing them to the linker.
8578       # It appears as though 1/2 is a usable value.
8579       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8580     fi
8581     ;;
8582   esac
8583
8584 fi
8585
8586 if test -n $lt_cv_sys_max_cmd_len ; then
8587   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8588 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8589 else
8590   { $as_echo "$as_me:$LINENO: result: none" >&5
8591 $as_echo "none" >&6; }
8592 fi
8593
8594
8595
8596
8597
8598 # Check for command to grab the raw symbol name followed by C symbol from nm.
8599 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8600 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8601 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8602   $as_echo_n "(cached) " >&6
8603 else
8604
8605 # These are sane defaults that work on at least a few old systems.
8606 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8607
8608 # Character class describing NM global symbol codes.
8609 symcode='[BCDEGRST]'
8610
8611 # Regexp to match symbols that can be accessed directly from C.
8612 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8613
8614 # Transform an extracted symbol line into a proper C declaration
8615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8616
8617 # Transform an extracted symbol line into symbol name and symbol address
8618 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8619
8620 # Define system-specific variables.
8621 case $host_os in
8622 aix*)
8623   symcode='[BCDT]'
8624   ;;
8625 cygwin* | mingw* | pw32*)
8626   symcode='[ABCDGISTW]'
8627   ;;
8628 hpux*) # Its linker distinguishes data from code symbols
8629   if test "$host_cpu" = ia64; then
8630     symcode='[ABCDEGRST]'
8631   fi
8632   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8633   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8634   ;;
8635 linux* | k*bsd*-gnu)
8636   if test "$host_cpu" = ia64; then
8637     symcode='[ABCDGIRSTW]'
8638     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8639     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8640   fi
8641   ;;
8642 irix* | nonstopux*)
8643   symcode='[BCDEGRST]'
8644   ;;
8645 osf*)
8646   symcode='[BCDEGQRST]'
8647   ;;
8648 solaris*)
8649   symcode='[BDRT]'
8650   ;;
8651 sco3.2v5*)
8652   symcode='[DT]'
8653   ;;
8654 sysv4.2uw2*)
8655   symcode='[DT]'
8656   ;;
8657 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8658   symcode='[ABDT]'
8659   ;;
8660 sysv4)
8661   symcode='[DFNSTU]'
8662   ;;
8663 esac
8664
8665 # Handle CRLF in mingw tool chain
8666 opt_cr=
8667 case $build_os in
8668 mingw*)
8669   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8670   ;;
8671 esac
8672
8673 # If we're using GNU nm, then use its standard symbol codes.
8674 case `$NM -V 2>&1` in
8675 *GNU* | *'with BFD'*)
8676   symcode='[ABCDGIRSTW]' ;;
8677 esac
8678
8679 # Try without a prefix undercore, then with it.
8680 for ac_symprfx in "" "_"; do
8681
8682   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8683   symxfrm="\\1 $ac_symprfx\\2 \\2"
8684
8685   # Write the raw and C identifiers.
8686   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8687
8688   # Check to see that the pipe works correctly.
8689   pipe_works=no
8690
8691   rm -f conftest*
8692   cat > conftest.$ac_ext <<EOF
8693 #ifdef __cplusplus
8694 extern "C" {
8695 #endif
8696 char nm_test_var;
8697 void nm_test_func(){}
8698 #ifdef __cplusplus
8699 }
8700 #endif
8701 int main(){nm_test_var='a';nm_test_func();return(0);}
8702 EOF
8703
8704   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705   (eval $ac_compile) 2>&5
8706   ac_status=$?
8707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; then
8709     # Now try to grab the symbols.
8710     nlist=conftest.nm
8711     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8712   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8713   ac_status=$?
8714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } && test -s "$nlist"; then
8716       # Try sorting and uniquifying the output.
8717       if sort "$nlist" | uniq > "$nlist"T; then
8718         mv -f "$nlist"T "$nlist"
8719       else
8720         rm -f "$nlist"T
8721       fi
8722
8723       # Make sure that we snagged all the symbols we need.
8724       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8725         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8726           cat <<EOF > conftest.$ac_ext
8727 #ifdef __cplusplus
8728 extern "C" {
8729 #endif
8730
8731 EOF
8732           # Now generate the symbol file.
8733           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8734
8735           cat <<EOF >> conftest.$ac_ext
8736 #if defined (__STDC__) && __STDC__
8737 # define lt_ptr_t void *
8738 #else
8739 # define lt_ptr_t char *
8740 # define const
8741 #endif
8742
8743 /* The mapping between symbol names and symbols. */
8744 const struct {
8745   const char *name;
8746   lt_ptr_t address;
8747 }
8748 lt_preloaded_symbols[] =
8749 {
8750 EOF
8751           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8752           cat <<\EOF >> conftest.$ac_ext
8753   {0, (lt_ptr_t) 0}
8754 };
8755
8756 #ifdef __cplusplus
8757 }
8758 #endif
8759 EOF
8760           # Now try linking the two files.
8761           mv conftest.$ac_objext conftstm.$ac_objext
8762           lt_save_LIBS="$LIBS"
8763           lt_save_CFLAGS="$CFLAGS"
8764           LIBS="conftstm.$ac_objext"
8765           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8766           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767   (eval $ac_link) 2>&5
8768   ac_status=$?
8769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8771             pipe_works=yes
8772           fi
8773           LIBS="$lt_save_LIBS"
8774           CFLAGS="$lt_save_CFLAGS"
8775         else
8776           echo "cannot find nm_test_func in $nlist" >&5
8777         fi
8778       else
8779         echo "cannot find nm_test_var in $nlist" >&5
8780       fi
8781     else
8782       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8783     fi
8784   else
8785     echo "$progname: failed program was:" >&5
8786     cat conftest.$ac_ext >&5
8787   fi
8788   rm -rf conftest* conftst*
8789
8790   # Do not use the global_symbol_pipe unless it works.
8791   if test "$pipe_works" = yes; then
8792     break
8793   else
8794     lt_cv_sys_global_symbol_pipe=
8795   fi
8796 done
8797
8798 fi
8799
8800 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8801   lt_cv_sys_global_symbol_to_cdecl=
8802 fi
8803 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8804   { $as_echo "$as_me:$LINENO: result: failed" >&5
8805 $as_echo "failed" >&6; }
8806 else
8807   { $as_echo "$as_me:$LINENO: result: ok" >&5
8808 $as_echo "ok" >&6; }
8809 fi
8810
8811 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8812 $as_echo_n "checking for objdir... " >&6; }
8813 if test "${lt_cv_objdir+set}" = set; then
8814   $as_echo_n "(cached) " >&6
8815 else
8816   rm -f .libs 2>/dev/null
8817 mkdir .libs 2>/dev/null
8818 if test -d .libs; then
8819   lt_cv_objdir=.libs
8820 else
8821   # MS-DOS does not allow filenames that begin with a dot.
8822   lt_cv_objdir=_libs
8823 fi
8824 rmdir .libs 2>/dev/null
8825 fi
8826 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8827 $as_echo "$lt_cv_objdir" >&6; }
8828 objdir=$lt_cv_objdir
8829
8830
8831
8832
8833
8834 case $host_os in
8835 aix3*)
8836   # AIX sometimes has problems with the GCC collect2 program.  For some
8837   # reason, if we set the COLLECT_NAMES environment variable, the problems
8838   # vanish in a puff of smoke.
8839   if test "X${COLLECT_NAMES+set}" != Xset; then
8840     COLLECT_NAMES=
8841     export COLLECT_NAMES
8842   fi
8843   ;;
8844 esac
8845
8846 # Sed substitution that helps us do robust quoting.  It backslashifies
8847 # metacharacters that are still active within double-quoted strings.
8848 Xsed='sed -e 1s/^X//'
8849 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8850
8851 # Same as above, but do not quote variable references.
8852 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8853
8854 # Sed substitution to delay expansion of an escaped shell variable in a
8855 # double_quote_subst'ed string.
8856 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8857
8858 # Sed substitution to avoid accidental globbing in evaled expressions
8859 no_glob_subst='s/\*/\\\*/g'
8860
8861 # Constants:
8862 rm="rm -f"
8863
8864 # Global variables:
8865 default_ofile=libtool
8866 can_build_shared=yes
8867
8868 # All known linkers require a `.a' archive for static linking (except MSVC,
8869 # which needs '.lib').
8870 libext=a
8871 ltmain="$ac_aux_dir/ltmain.sh"
8872 ofile="$default_ofile"
8873 with_gnu_ld="$lt_cv_prog_gnu_ld"
8874
8875 if test -n "$ac_tool_prefix"; then
8876   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8877 set dummy ${ac_tool_prefix}ar; ac_word=$2
8878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_AR+set}" = set; then
8881   $as_echo_n "(cached) " >&6
8882 else
8883   if test -n "$AR"; then
8884   ac_cv_prog_AR="$AR" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889   IFS=$as_save_IFS
8890   test -z "$as_dir" && as_dir=.
8891   for ac_exec_ext in '' $ac_executable_extensions; do
8892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893     ac_cv_prog_AR="${ac_tool_prefix}ar"
8894     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8895     break 2
8896   fi
8897 done
8898 done
8899 IFS=$as_save_IFS
8900
8901 fi
8902 fi
8903 AR=$ac_cv_prog_AR
8904 if test -n "$AR"; then
8905   { $as_echo "$as_me:$LINENO: result: $AR" >&5
8906 $as_echo "$AR" >&6; }
8907 else
8908   { $as_echo "$as_me:$LINENO: result: no" >&5
8909 $as_echo "no" >&6; }
8910 fi
8911
8912
8913 fi
8914 if test -z "$ac_cv_prog_AR"; then
8915   ac_ct_AR=$AR
8916   # Extract the first word of "ar", so it can be a program name with args.
8917 set dummy ar; ac_word=$2
8918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8921   $as_echo_n "(cached) " >&6
8922 else
8923   if test -n "$ac_ct_AR"; then
8924   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929   IFS=$as_save_IFS
8930   test -z "$as_dir" && as_dir=.
8931   for ac_exec_ext in '' $ac_executable_extensions; do
8932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933     ac_cv_prog_ac_ct_AR="ar"
8934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935     break 2
8936   fi
8937 done
8938 done
8939 IFS=$as_save_IFS
8940
8941 fi
8942 fi
8943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8944 if test -n "$ac_ct_AR"; then
8945   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8946 $as_echo "$ac_ct_AR" >&6; }
8947 else
8948   { $as_echo "$as_me:$LINENO: result: no" >&5
8949 $as_echo "no" >&6; }
8950 fi
8951
8952   if test "x$ac_ct_AR" = x; then
8953     AR="false"
8954   else
8955     case $cross_compiling:$ac_tool_warned in
8956 yes:)
8957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959 ac_tool_warned=yes ;;
8960 esac
8961     AR=$ac_ct_AR
8962   fi
8963 else
8964   AR="$ac_cv_prog_AR"
8965 fi
8966
8967 if test -n "$ac_tool_prefix"; then
8968   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if test "${ac_cv_prog_RANLIB+set}" = set; then
8973   $as_echo_n "(cached) " >&6
8974 else
8975   if test -n "$RANLIB"; then
8976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981   IFS=$as_save_IFS
8982   test -z "$as_dir" && as_dir=.
8983   for ac_exec_ext in '' $ac_executable_extensions; do
8984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8986     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8987     break 2
8988   fi
8989 done
8990 done
8991 IFS=$as_save_IFS
8992
8993 fi
8994 fi
8995 RANLIB=$ac_cv_prog_RANLIB
8996 if test -n "$RANLIB"; then
8997   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8998 $as_echo "$RANLIB" >&6; }
8999 else
9000   { $as_echo "$as_me:$LINENO: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004
9005 fi
9006 if test -z "$ac_cv_prog_RANLIB"; then
9007   ac_ct_RANLIB=$RANLIB
9008   # Extract the first word of "ranlib", so it can be a program name with args.
9009 set dummy ranlib; ac_word=$2
9010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9013   $as_echo_n "(cached) " >&6
9014 else
9015   if test -n "$ac_ct_RANLIB"; then
9016   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9017 else
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9020 do
9021   IFS=$as_save_IFS
9022   test -z "$as_dir" && as_dir=.
9023   for ac_exec_ext in '' $ac_executable_extensions; do
9024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025     ac_cv_prog_ac_ct_RANLIB="ranlib"
9026     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9027     break 2
9028   fi
9029 done
9030 done
9031 IFS=$as_save_IFS
9032
9033 fi
9034 fi
9035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9036 if test -n "$ac_ct_RANLIB"; then
9037   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9038 $as_echo "$ac_ct_RANLIB" >&6; }
9039 else
9040   { $as_echo "$as_me:$LINENO: result: no" >&5
9041 $as_echo "no" >&6; }
9042 fi
9043
9044   if test "x$ac_ct_RANLIB" = x; then
9045     RANLIB=":"
9046   else
9047     case $cross_compiling:$ac_tool_warned in
9048 yes:)
9049 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9051 ac_tool_warned=yes ;;
9052 esac
9053     RANLIB=$ac_ct_RANLIB
9054   fi
9055 else
9056   RANLIB="$ac_cv_prog_RANLIB"
9057 fi
9058
9059 if test -n "$ac_tool_prefix"; then
9060   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9061 set dummy ${ac_tool_prefix}strip; ac_word=$2
9062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if test "${ac_cv_prog_STRIP+set}" = set; then
9065   $as_echo_n "(cached) " >&6
9066 else
9067   if test -n "$STRIP"; then
9068   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9069 else
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 for as_dir in $PATH
9072 do
9073   IFS=$as_save_IFS
9074   test -z "$as_dir" && as_dir=.
9075   for ac_exec_ext in '' $ac_executable_extensions; do
9076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9078     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9079     break 2
9080   fi
9081 done
9082 done
9083 IFS=$as_save_IFS
9084
9085 fi
9086 fi
9087 STRIP=$ac_cv_prog_STRIP
9088 if test -n "$STRIP"; then
9089   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9090 $as_echo "$STRIP" >&6; }
9091 else
9092   { $as_echo "$as_me:$LINENO: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096
9097 fi
9098 if test -z "$ac_cv_prog_STRIP"; then
9099   ac_ct_STRIP=$STRIP
9100   # Extract the first word of "strip", so it can be a program name with args.
9101 set dummy strip; ac_word=$2
9102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9105   $as_echo_n "(cached) " >&6
9106 else
9107   if test -n "$ac_ct_STRIP"; then
9108   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9109 else
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113   IFS=$as_save_IFS
9114   test -z "$as_dir" && as_dir=.
9115   for ac_exec_ext in '' $ac_executable_extensions; do
9116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117     ac_cv_prog_ac_ct_STRIP="strip"
9118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9119     break 2
9120   fi
9121 done
9122 done
9123 IFS=$as_save_IFS
9124
9125 fi
9126 fi
9127 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9128 if test -n "$ac_ct_STRIP"; then
9129   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9130 $as_echo "$ac_ct_STRIP" >&6; }
9131 else
9132   { $as_echo "$as_me:$LINENO: result: no" >&5
9133 $as_echo "no" >&6; }
9134 fi
9135
9136   if test "x$ac_ct_STRIP" = x; then
9137     STRIP=":"
9138   else
9139     case $cross_compiling:$ac_tool_warned in
9140 yes:)
9141 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9143 ac_tool_warned=yes ;;
9144 esac
9145     STRIP=$ac_ct_STRIP
9146   fi
9147 else
9148   STRIP="$ac_cv_prog_STRIP"
9149 fi
9150
9151
9152 old_CC="$CC"
9153 old_CFLAGS="$CFLAGS"
9154
9155 # Set sane defaults for various variables
9156 test -z "$AR" && AR=ar
9157 test -z "$AR_FLAGS" && AR_FLAGS=cru
9158 test -z "$AS" && AS=as
9159 test -z "$CC" && CC=cc
9160 test -z "$LTCC" && LTCC=$CC
9161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9162 test -z "$DLLTOOL" && DLLTOOL=dlltool
9163 test -z "$LD" && LD=ld
9164 test -z "$LN_S" && LN_S="ln -s"
9165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9166 test -z "$NM" && NM=nm
9167 test -z "$SED" && SED=sed
9168 test -z "$OBJDUMP" && OBJDUMP=objdump
9169 test -z "$RANLIB" && RANLIB=:
9170 test -z "$STRIP" && STRIP=:
9171 test -z "$ac_objext" && ac_objext=o
9172
9173 # Determine commands to create old-style static archives.
9174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9175 old_postinstall_cmds='chmod 644 $oldlib'
9176 old_postuninstall_cmds=
9177
9178 if test -n "$RANLIB"; then
9179   case $host_os in
9180   openbsd*)
9181     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9182     ;;
9183   *)
9184     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9185     ;;
9186   esac
9187   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9188 fi
9189
9190 for cc_temp in $compiler""; do
9191   case $cc_temp in
9192     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9193     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9194     \-*) ;;
9195     *) break;;
9196   esac
9197 done
9198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9199
9200
9201 # Only perform the check for file, if the check method requires it
9202 case $deplibs_check_method in
9203 file_magic*)
9204   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9205     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9206 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9207 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9208   $as_echo_n "(cached) " >&6
9209 else
9210   case $MAGIC_CMD in
9211 [\\/*] |  ?:[\\/]*)
9212   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9213   ;;
9214 *)
9215   lt_save_MAGIC_CMD="$MAGIC_CMD"
9216   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9217   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9218   for ac_dir in $ac_dummy; do
9219     IFS="$lt_save_ifs"
9220     test -z "$ac_dir" && ac_dir=.
9221     if test -f $ac_dir/${ac_tool_prefix}file; then
9222       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9223       if test -n "$file_magic_test_file"; then
9224         case $deplibs_check_method in
9225         "file_magic "*)
9226           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9227           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9228           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9229             $EGREP "$file_magic_regex" > /dev/null; then
9230             :
9231           else
9232             cat <<EOF 1>&2
9233
9234 *** Warning: the command libtool uses to detect shared libraries,
9235 *** $file_magic_cmd, produces output that libtool cannot recognize.
9236 *** The result is that libtool may fail to recognize shared libraries
9237 *** as such.  This will affect the creation of libtool libraries that
9238 *** depend on shared libraries, but programs linked with such libtool
9239 *** libraries will work regardless of this problem.  Nevertheless, you
9240 *** may want to report the problem to your system manager and/or to
9241 *** bug-libtool@gnu.org
9242
9243 EOF
9244           fi ;;
9245         esac
9246       fi
9247       break
9248     fi
9249   done
9250   IFS="$lt_save_ifs"
9251   MAGIC_CMD="$lt_save_MAGIC_CMD"
9252   ;;
9253 esac
9254 fi
9255
9256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9257 if test -n "$MAGIC_CMD"; then
9258   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9259 $as_echo "$MAGIC_CMD" >&6; }
9260 else
9261   { $as_echo "$as_me:$LINENO: result: no" >&5
9262 $as_echo "no" >&6; }
9263 fi
9264
9265 if test -z "$lt_cv_path_MAGIC_CMD"; then
9266   if test -n "$ac_tool_prefix"; then
9267     { $as_echo "$as_me:$LINENO: checking for file" >&5
9268 $as_echo_n "checking for file... " >&6; }
9269 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9270   $as_echo_n "(cached) " >&6
9271 else
9272   case $MAGIC_CMD in
9273 [\\/*] |  ?:[\\/]*)
9274   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9275   ;;
9276 *)
9277   lt_save_MAGIC_CMD="$MAGIC_CMD"
9278   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9279   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9280   for ac_dir in $ac_dummy; do
9281     IFS="$lt_save_ifs"
9282     test -z "$ac_dir" && ac_dir=.
9283     if test -f $ac_dir/file; then
9284       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9285       if test -n "$file_magic_test_file"; then
9286         case $deplibs_check_method in
9287         "file_magic "*)
9288           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9289           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9290           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9291             $EGREP "$file_magic_regex" > /dev/null; then
9292             :
9293           else
9294             cat <<EOF 1>&2
9295
9296 *** Warning: the command libtool uses to detect shared libraries,
9297 *** $file_magic_cmd, produces output that libtool cannot recognize.
9298 *** The result is that libtool may fail to recognize shared libraries
9299 *** as such.  This will affect the creation of libtool libraries that
9300 *** depend on shared libraries, but programs linked with such libtool
9301 *** libraries will work regardless of this problem.  Nevertheless, you
9302 *** may want to report the problem to your system manager and/or to
9303 *** bug-libtool@gnu.org
9304
9305 EOF
9306           fi ;;
9307         esac
9308       fi
9309       break
9310     fi
9311   done
9312   IFS="$lt_save_ifs"
9313   MAGIC_CMD="$lt_save_MAGIC_CMD"
9314   ;;
9315 esac
9316 fi
9317
9318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9319 if test -n "$MAGIC_CMD"; then
9320   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9321 $as_echo "$MAGIC_CMD" >&6; }
9322 else
9323   { $as_echo "$as_me:$LINENO: result: no" >&5
9324 $as_echo "no" >&6; }
9325 fi
9326
9327   else
9328     MAGIC_CMD=:
9329   fi
9330 fi
9331
9332   fi
9333   ;;
9334 esac
9335
9336
9337   case $host_os in
9338     rhapsody* | darwin*)
9339     if test -n "$ac_tool_prefix"; then
9340   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9341 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9345   $as_echo_n "(cached) " >&6
9346 else
9347   if test -n "$DSYMUTIL"; then
9348   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9349 else
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353   IFS=$as_save_IFS
9354   test -z "$as_dir" && as_dir=.
9355   for ac_exec_ext in '' $ac_executable_extensions; do
9356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9357     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9359     break 2
9360   fi
9361 done
9362 done
9363 IFS=$as_save_IFS
9364
9365 fi
9366 fi
9367 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9368 if test -n "$DSYMUTIL"; then
9369   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9370 $as_echo "$DSYMUTIL" >&6; }
9371 else
9372   { $as_echo "$as_me:$LINENO: result: no" >&5
9373 $as_echo "no" >&6; }
9374 fi
9375
9376
9377 fi
9378 if test -z "$ac_cv_prog_DSYMUTIL"; then
9379   ac_ct_DSYMUTIL=$DSYMUTIL
9380   # Extract the first word of "dsymutil", so it can be a program name with args.
9381 set dummy dsymutil; ac_word=$2
9382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9385   $as_echo_n "(cached) " >&6
9386 else
9387   if test -n "$ac_ct_DSYMUTIL"; then
9388   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9389 else
9390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 for as_dir in $PATH
9392 do
9393   IFS=$as_save_IFS
9394   test -z "$as_dir" && as_dir=.
9395   for ac_exec_ext in '' $ac_executable_extensions; do
9396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9397     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9398     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9399     break 2
9400   fi
9401 done
9402 done
9403 IFS=$as_save_IFS
9404
9405 fi
9406 fi
9407 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9408 if test -n "$ac_ct_DSYMUTIL"; then
9409   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9410 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9411 else
9412   { $as_echo "$as_me:$LINENO: result: no" >&5
9413 $as_echo "no" >&6; }
9414 fi
9415
9416   if test "x$ac_ct_DSYMUTIL" = x; then
9417     DSYMUTIL=":"
9418   else
9419     case $cross_compiling:$ac_tool_warned in
9420 yes:)
9421 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9423 ac_tool_warned=yes ;;
9424 esac
9425     DSYMUTIL=$ac_ct_DSYMUTIL
9426   fi
9427 else
9428   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9429 fi
9430
9431     if test -n "$ac_tool_prefix"; then
9432   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9433 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9437   $as_echo_n "(cached) " >&6
9438 else
9439   if test -n "$NMEDIT"; then
9440   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9441 else
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in $PATH
9444 do
9445   IFS=$as_save_IFS
9446   test -z "$as_dir" && as_dir=.
9447   for ac_exec_ext in '' $ac_executable_extensions; do
9448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9450     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451     break 2
9452   fi
9453 done
9454 done
9455 IFS=$as_save_IFS
9456
9457 fi
9458 fi
9459 NMEDIT=$ac_cv_prog_NMEDIT
9460 if test -n "$NMEDIT"; then
9461   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9462 $as_echo "$NMEDIT" >&6; }
9463 else
9464   { $as_echo "$as_me:$LINENO: result: no" >&5
9465 $as_echo "no" >&6; }
9466 fi
9467
9468
9469 fi
9470 if test -z "$ac_cv_prog_NMEDIT"; then
9471   ac_ct_NMEDIT=$NMEDIT
9472   # Extract the first word of "nmedit", so it can be a program name with args.
9473 set dummy nmedit; ac_word=$2
9474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9477   $as_echo_n "(cached) " >&6
9478 else
9479   if test -n "$ac_ct_NMEDIT"; then
9480   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9481 else
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483 for as_dir in $PATH
9484 do
9485   IFS=$as_save_IFS
9486   test -z "$as_dir" && as_dir=.
9487   for ac_exec_ext in '' $ac_executable_extensions; do
9488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9489     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9491     break 2
9492   fi
9493 done
9494 done
9495 IFS=$as_save_IFS
9496
9497 fi
9498 fi
9499 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9500 if test -n "$ac_ct_NMEDIT"; then
9501   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9502 $as_echo "$ac_ct_NMEDIT" >&6; }
9503 else
9504   { $as_echo "$as_me:$LINENO: result: no" >&5
9505 $as_echo "no" >&6; }
9506 fi
9507
9508   if test "x$ac_ct_NMEDIT" = x; then
9509     NMEDIT=":"
9510   else
9511     case $cross_compiling:$ac_tool_warned in
9512 yes:)
9513 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9515 ac_tool_warned=yes ;;
9516 esac
9517     NMEDIT=$ac_ct_NMEDIT
9518   fi
9519 else
9520   NMEDIT="$ac_cv_prog_NMEDIT"
9521 fi
9522
9523
9524     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9525 $as_echo_n "checking for -single_module linker flag... " >&6; }
9526 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9527   $as_echo_n "(cached) " >&6
9528 else
9529   lt_cv_apple_cc_single_mod=no
9530       if test -z "${LT_MULTI_MODULE}"; then
9531    # By default we will add the -single_module flag. You can override
9532    # by either setting the environment variable LT_MULTI_MODULE
9533    # non-empty at configure time, or by adding -multi_module to the
9534    # link flags.
9535    echo "int foo(void){return 1;}" > conftest.c
9536    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9537      -dynamiclib ${wl}-single_module conftest.c
9538    if test -f libconftest.dylib; then
9539      lt_cv_apple_cc_single_mod=yes
9540      rm -rf libconftest.dylib*
9541    fi
9542    rm conftest.c
9543       fi
9544 fi
9545 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9546 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9547     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9548 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9549 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9550   $as_echo_n "(cached) " >&6
9551 else
9552   lt_cv_ld_exported_symbols_list=no
9553       save_LDFLAGS=$LDFLAGS
9554       echo "_main" > conftest.sym
9555       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9556       cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562
9563 int
9564 main ()
9565 {
9566
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9573 case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578 $as_echo "$ac_try_echo") >&5
9579   (eval "$ac_link") 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } && {
9586          test -z "$ac_c_werror_flag" ||
9587          test ! -s conftest.err
9588        } && test -s conftest$ac_exeext && {
9589          test "$cross_compiling" = yes ||
9590          $as_test_x conftest$ac_exeext
9591        }; then
9592   lt_cv_ld_exported_symbols_list=yes
9593 else
9594   $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597         lt_cv_ld_exported_symbols_list=no
9598 fi
9599
9600 rm -rf conftest.dSYM
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602       conftest$ac_exeext conftest.$ac_ext
9603    LDFLAGS="$save_LDFLAGS"
9604
9605 fi
9606 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9607 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9608     case $host_os in
9609     rhapsody* | darwin1.[0123])
9610       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9611     darwin1.*)
9612      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9613     darwin*)
9614       # if running on 10.5 or later, the deployment target defaults
9615       # to the OS version, if on x86, and 10.4, the deployment
9616       # target defaults to 10.4. Don't you love it?
9617       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9618    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9619      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9620    10.[012]*)
9621      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9622    10.*)
9623      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9624       esac
9625     ;;
9626   esac
9627     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9628       _lt_dar_single_mod='$single_module'
9629     fi
9630     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9631       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9632     else
9633       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9634     fi
9635     if test "$DSYMUTIL" != ":"; then
9636       _lt_dsymutil="~$DSYMUTIL \$lib || :"
9637     else
9638       _lt_dsymutil=
9639     fi
9640     ;;
9641   esac
9642
9643
9644 enable_dlopen=no
9645 enable_win32_dll=no
9646
9647 # Check whether --enable-libtool-lock was given.
9648 if test "${enable_libtool_lock+set}" = set; then
9649   enableval=$enable_libtool_lock;
9650 fi
9651
9652 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9653
9654
9655 # Check whether --with-pic was given.
9656 if test "${with_pic+set}" = set; then
9657   withval=$with_pic; pic_mode="$withval"
9658 else
9659   pic_mode=default
9660 fi
9661
9662 test -z "$pic_mode" && pic_mode=default
9663
9664 # Use C for the default configuration in the libtool script
9665 tagname=
9666 lt_save_CC="$CC"
9667 ac_ext=c
9668 ac_cpp='$CPP $CPPFLAGS'
9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673
9674 # Source file extension for C test sources.
9675 ac_ext=c
9676
9677 # Object file extension for compiled C test sources.
9678 objext=o
9679 objext=$objext
9680
9681 # Code to be used in simple compile tests
9682 lt_simple_compile_test_code="int some_variable = 0;"
9683
9684 # Code to be used in simple link tests
9685 lt_simple_link_test_code='int main(){return(0);}'
9686
9687
9688 # If no C compiler was specified, use CC.
9689 LTCC=${LTCC-"$CC"}
9690
9691 # If no C compiler flags were specified, use CFLAGS.
9692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9693
9694 # Allow CC to be a program name with arguments.
9695 compiler=$CC
9696
9697
9698 # save warnings/boilerplate of simple test code
9699 ac_outfile=conftest.$ac_objext
9700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9702 _lt_compiler_boilerplate=`cat conftest.err`
9703 $rm conftest*
9704
9705 ac_outfile=conftest.$ac_objext
9706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9708 _lt_linker_boilerplate=`cat conftest.err`
9709 $rm -r conftest*
9710
9711
9712
9713 lt_prog_compiler_no_builtin_flag=
9714
9715 if test "$GCC" = yes; then
9716   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9717
9718
9719 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9720 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9721 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9722   $as_echo_n "(cached) " >&6
9723 else
9724   lt_cv_prog_compiler_rtti_exceptions=no
9725   ac_outfile=conftest.$ac_objext
9726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727    lt_compiler_flag="-fno-rtti -fno-exceptions"
9728    # Insert the option either (1) after the last *FLAGS variable, or
9729    # (2) before a word containing "conftest.", or (3) at the end.
9730    # Note that $ac_compile itself does not contain backslashes and begins
9731    # with a dollar sign (not a hyphen), so the echo should work correctly.
9732    # The option is referenced via a variable to avoid confusing sed.
9733    lt_compile=`echo "$ac_compile" | $SED \
9734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736    -e 's:$: $lt_compiler_flag:'`
9737    (eval echo "\"\$as_me:9737: $lt_compile\"" >&5)
9738    (eval "$lt_compile" 2>conftest.err)
9739    ac_status=$?
9740    cat conftest.err >&5
9741    echo "$as_me:9741: \$? = $ac_status" >&5
9742    if (exit $ac_status) && test -s "$ac_outfile"; then
9743      # The compiler can only warn and ignore the option if not recognized
9744      # So say no if there are warnings other than the usual output.
9745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9748        lt_cv_prog_compiler_rtti_exceptions=yes
9749      fi
9750    fi
9751    $rm conftest*
9752
9753 fi
9754 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9755 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9756
9757 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9758     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9759 else
9760     :
9761 fi
9762
9763 fi
9764
9765 lt_prog_compiler_wl=
9766 lt_prog_compiler_pic=
9767 lt_prog_compiler_static=
9768
9769 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9770 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9771
9772   if test "$GCC" = yes; then
9773     lt_prog_compiler_wl='-Wl,'
9774     lt_prog_compiler_static='-static'
9775
9776     case $host_os in
9777       aix*)
9778       # All AIX code is PIC.
9779       if test "$host_cpu" = ia64; then
9780         # AIX 5 now supports IA64 processor
9781         lt_prog_compiler_static='-Bstatic'
9782       fi
9783       ;;
9784
9785     amigaos*)
9786       # FIXME: we need at least 68020 code to build shared libraries, but
9787       # adding the `-m68020' flag to GCC prevents building anything better,
9788       # like `-m68040'.
9789       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9790       ;;
9791
9792     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9793       # PIC is the default for these OSes.
9794       ;;
9795
9796     mingw* | cygwin* | pw32* | os2*)
9797       # This hack is so that the source file can tell whether it is being
9798       # built for inclusion in a dll (and should export symbols for example).
9799       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9800       # (--disable-auto-import) libraries
9801       lt_prog_compiler_pic='-DDLL_EXPORT'
9802       ;;
9803
9804     darwin* | rhapsody*)
9805       # PIC is the default on this platform
9806       # Common symbols not allowed in MH_DYLIB files
9807       lt_prog_compiler_pic='-fno-common'
9808       ;;
9809
9810     interix[3-9]*)
9811       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9812       # Instead, we relocate shared libraries at runtime.
9813       ;;
9814
9815     msdosdjgpp*)
9816       # Just because we use GCC doesn't mean we suddenly get shared libraries
9817       # on systems that don't support them.
9818       lt_prog_compiler_can_build_shared=no
9819       enable_shared=no
9820       ;;
9821
9822     sysv4*MP*)
9823       if test -d /usr/nec; then
9824         lt_prog_compiler_pic=-Kconform_pic
9825       fi
9826       ;;
9827
9828     hpux*)
9829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9830       # not for PA HP-UX.
9831       case $host_cpu in
9832       hppa*64*|ia64*)
9833         # +Z the default
9834         ;;
9835       *)
9836         lt_prog_compiler_pic='-fPIC'
9837         ;;
9838       esac
9839       ;;
9840
9841     *)
9842       lt_prog_compiler_pic='-fPIC'
9843       ;;
9844     esac
9845   else
9846     # PORTME Check for flag to pass linker flags through the system compiler.
9847     case $host_os in
9848     aix*)
9849       lt_prog_compiler_wl='-Wl,'
9850       if test "$host_cpu" = ia64; then
9851         # AIX 5 now supports IA64 processor
9852         lt_prog_compiler_static='-Bstatic'
9853       else
9854         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9855       fi
9856       ;;
9857       darwin*)
9858         # PIC is the default on this platform
9859         # Common symbols not allowed in MH_DYLIB files
9860        case $cc_basename in
9861          xlc*)
9862          lt_prog_compiler_pic='-qnocommon'
9863          lt_prog_compiler_wl='-Wl,'
9864          ;;
9865        esac
9866        ;;
9867
9868     mingw* | cygwin* | pw32* | os2*)
9869       # This hack is so that the source file can tell whether it is being
9870       # built for inclusion in a dll (and should export symbols for example).
9871       lt_prog_compiler_pic='-DDLL_EXPORT'
9872       ;;
9873
9874     hpux9* | hpux10* | hpux11*)
9875       lt_prog_compiler_wl='-Wl,'
9876       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9877       # not for PA HP-UX.
9878       case $host_cpu in
9879       hppa*64*|ia64*)
9880         # +Z the default
9881         ;;
9882       *)
9883         lt_prog_compiler_pic='+Z'
9884         ;;
9885       esac
9886       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9887       lt_prog_compiler_static='${wl}-a ${wl}archive'
9888       ;;
9889
9890     irix5* | irix6* | nonstopux*)
9891       lt_prog_compiler_wl='-Wl,'
9892       # PIC (with -KPIC) is the default.
9893       lt_prog_compiler_static='-non_shared'
9894       ;;
9895
9896     newsos6)
9897       lt_prog_compiler_pic='-KPIC'
9898       lt_prog_compiler_static='-Bstatic'
9899       ;;
9900
9901     linux* | k*bsd*-gnu)
9902       case $cc_basename in
9903       icc* | ecc*)
9904         lt_prog_compiler_wl='-Wl,'
9905         lt_prog_compiler_pic='-KPIC'
9906         lt_prog_compiler_static='-static'
9907         ;;
9908       pgcc* | pgf77* | pgf90* | pgf95*)
9909         # Portland Group compilers (*not* the Pentium gcc compiler,
9910         # which looks to be a dead project)
9911         lt_prog_compiler_wl='-Wl,'
9912         lt_prog_compiler_pic='-fpic'
9913         lt_prog_compiler_static='-Bstatic'
9914         ;;
9915       ccc*)
9916         lt_prog_compiler_wl='-Wl,'
9917         # All Alpha code is PIC.
9918         lt_prog_compiler_static='-non_shared'
9919         ;;
9920       *)
9921         case `$CC -V 2>&1 | sed 5q` in
9922         *Sun\ C*)
9923           # Sun C 5.9
9924           lt_prog_compiler_pic='-KPIC'
9925           lt_prog_compiler_static='-Bstatic'
9926           lt_prog_compiler_wl='-Wl,'
9927           ;;
9928         *Sun\ F*)
9929           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9930           lt_prog_compiler_pic='-KPIC'
9931           lt_prog_compiler_static='-Bstatic'
9932           lt_prog_compiler_wl=''
9933           ;;
9934         esac
9935         ;;
9936       esac
9937       ;;
9938
9939     osf3* | osf4* | osf5*)
9940       lt_prog_compiler_wl='-Wl,'
9941       # All OSF/1 code is PIC.
9942       lt_prog_compiler_static='-non_shared'
9943       ;;
9944
9945     rdos*)
9946       lt_prog_compiler_static='-non_shared'
9947       ;;
9948
9949     solaris*)
9950       lt_prog_compiler_pic='-KPIC'
9951       lt_prog_compiler_static='-Bstatic'
9952       case $cc_basename in
9953       f77* | f90* | f95*)
9954         lt_prog_compiler_wl='-Qoption ld ';;
9955       *)
9956         lt_prog_compiler_wl='-Wl,';;
9957       esac
9958       ;;
9959
9960     sunos4*)
9961       lt_prog_compiler_wl='-Qoption ld '
9962       lt_prog_compiler_pic='-PIC'
9963       lt_prog_compiler_static='-Bstatic'
9964       ;;
9965
9966     sysv4 | sysv4.2uw2* | sysv4.3*)
9967       lt_prog_compiler_wl='-Wl,'
9968       lt_prog_compiler_pic='-KPIC'
9969       lt_prog_compiler_static='-Bstatic'
9970       ;;
9971
9972     sysv4*MP*)
9973       if test -d /usr/nec ;then
9974         lt_prog_compiler_pic='-Kconform_pic'
9975         lt_prog_compiler_static='-Bstatic'
9976       fi
9977       ;;
9978
9979     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9980       lt_prog_compiler_wl='-Wl,'
9981       lt_prog_compiler_pic='-KPIC'
9982       lt_prog_compiler_static='-Bstatic'
9983       ;;
9984
9985     unicos*)
9986       lt_prog_compiler_wl='-Wl,'
9987       lt_prog_compiler_can_build_shared=no
9988       ;;
9989
9990     uts4*)
9991       lt_prog_compiler_pic='-pic'
9992       lt_prog_compiler_static='-Bstatic'
9993       ;;
9994
9995     *)
9996       lt_prog_compiler_can_build_shared=no
9997       ;;
9998     esac
9999   fi
10000
10001 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10002 $as_echo "$lt_prog_compiler_pic" >&6; }
10003
10004 #
10005 # Check to make sure the PIC flag actually works.
10006 #
10007 if test -n "$lt_prog_compiler_pic"; then
10008
10009 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10010 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10011 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10012   $as_echo_n "(cached) " >&6
10013 else
10014   lt_cv_prog_compiler_pic_works=no
10015   ac_outfile=conftest.$ac_objext
10016    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10017    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10018    # Insert the option either (1) after the last *FLAGS variable, or
10019    # (2) before a word containing "conftest.", or (3) at the end.
10020    # Note that $ac_compile itself does not contain backslashes and begins
10021    # with a dollar sign (not a hyphen), so the echo should work correctly.
10022    # The option is referenced via a variable to avoid confusing sed.
10023    lt_compile=`echo "$ac_compile" | $SED \
10024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10026    -e 's:$: $lt_compiler_flag:'`
10027    (eval echo "\"\$as_me:10027: $lt_compile\"" >&5)
10028    (eval "$lt_compile" 2>conftest.err)
10029    ac_status=$?
10030    cat conftest.err >&5
10031    echo "$as_me:10031: \$? = $ac_status" >&5
10032    if (exit $ac_status) && test -s "$ac_outfile"; then
10033      # The compiler can only warn and ignore the option if not recognized
10034      # So say no if there are warnings other than the usual output.
10035      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10036      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10037      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10038        lt_cv_prog_compiler_pic_works=yes
10039      fi
10040    fi
10041    $rm conftest*
10042
10043 fi
10044 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10045 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10046
10047 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10048     case $lt_prog_compiler_pic in
10049      "" | " "*) ;;
10050      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10051      esac
10052 else
10053     lt_prog_compiler_pic=
10054      lt_prog_compiler_can_build_shared=no
10055 fi
10056
10057 fi
10058 case $host_os in
10059   # For platforms which do not support PIC, -DPIC is meaningless:
10060   *djgpp*)
10061     lt_prog_compiler_pic=
10062     ;;
10063   *)
10064     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10065     ;;
10066 esac
10067
10068 #
10069 # Check to make sure the static flag actually works.
10070 #
10071 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10072 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10073 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10074 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10075   $as_echo_n "(cached) " >&6
10076 else
10077   lt_cv_prog_compiler_static_works=no
10078    save_LDFLAGS="$LDFLAGS"
10079    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10080    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10081    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10082      # The linker can only warn and ignore the option if not recognized
10083      # So say no if there are warnings
10084      if test -s conftest.err; then
10085        # Append any errors to the config.log.
10086        cat conftest.err 1>&5
10087        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10088        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10089        if diff conftest.exp conftest.er2 >/dev/null; then
10090          lt_cv_prog_compiler_static_works=yes
10091        fi
10092      else
10093        lt_cv_prog_compiler_static_works=yes
10094      fi
10095    fi
10096    $rm -r conftest*
10097    LDFLAGS="$save_LDFLAGS"
10098
10099 fi
10100 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10101 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10102
10103 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10104     :
10105 else
10106     lt_prog_compiler_static=
10107 fi
10108
10109
10110 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10111 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10112 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10113   $as_echo_n "(cached) " >&6
10114 else
10115   lt_cv_prog_compiler_c_o=no
10116    $rm -r conftest 2>/dev/null
10117    mkdir conftest
10118    cd conftest
10119    mkdir out
10120    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10121
10122    lt_compiler_flag="-o out/conftest2.$ac_objext"
10123    # Insert the option either (1) after the last *FLAGS variable, or
10124    # (2) before a word containing "conftest.", or (3) at the end.
10125    # Note that $ac_compile itself does not contain backslashes and begins
10126    # with a dollar sign (not a hyphen), so the echo should work correctly.
10127    lt_compile=`echo "$ac_compile" | $SED \
10128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10130    -e 's:$: $lt_compiler_flag:'`
10131    (eval echo "\"\$as_me:10131: $lt_compile\"" >&5)
10132    (eval "$lt_compile" 2>out/conftest.err)
10133    ac_status=$?
10134    cat out/conftest.err >&5
10135    echo "$as_me:10135: \$? = $ac_status" >&5
10136    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10137    then
10138      # The compiler can only warn and ignore the option if not recognized
10139      # So say no if there are warnings
10140      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10141      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10142      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10143        lt_cv_prog_compiler_c_o=yes
10144      fi
10145    fi
10146    chmod u+w . 2>&5
10147    $rm conftest*
10148    # SGI C++ compiler will create directory out/ii_files/ for
10149    # template instantiation
10150    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10151    $rm out/* && rmdir out
10152    cd ..
10153    rmdir conftest
10154    $rm conftest*
10155
10156 fi
10157 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10158 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10159
10160
10161 hard_links="nottested"
10162 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10163   # do not overwrite the value of need_locks provided by the user
10164   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10165 $as_echo_n "checking if we can lock with hard links... " >&6; }
10166   hard_links=yes
10167   $rm conftest*
10168   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10169   touch conftest.a
10170   ln conftest.a conftest.b 2>&5 || hard_links=no
10171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10172   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10173 $as_echo "$hard_links" >&6; }
10174   if test "$hard_links" = no; then
10175     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10176 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10177     need_locks=warn
10178   fi
10179 else
10180   need_locks=no
10181 fi
10182
10183 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10184 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10185
10186   runpath_var=
10187   allow_undefined_flag=
10188   enable_shared_with_static_runtimes=no
10189   archive_cmds=
10190   archive_expsym_cmds=
10191   old_archive_From_new_cmds=
10192   old_archive_from_expsyms_cmds=
10193   export_dynamic_flag_spec=
10194   whole_archive_flag_spec=
10195   thread_safe_flag_spec=
10196   hardcode_libdir_flag_spec=
10197   hardcode_libdir_flag_spec_ld=
10198   hardcode_libdir_separator=
10199   hardcode_direct=no
10200   hardcode_minus_L=no
10201   hardcode_shlibpath_var=unsupported
10202   link_all_deplibs=unknown
10203   hardcode_automatic=no
10204   module_cmds=
10205   module_expsym_cmds=
10206   always_export_symbols=no
10207   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10208   # include_expsyms should be a list of space-separated symbols to be *always*
10209   # included in the symbol list
10210   include_expsyms=
10211   # exclude_expsyms can be an extended regexp of symbols to exclude
10212   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10213   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10214   # as well as any symbol that contains `d'.
10215   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10216   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10217   # platforms (ab)use it in PIC code, but their linkers get confused if
10218   # the symbol is explicitly referenced.  Since portable code cannot
10219   # rely on this symbol name, it's probably fine to never include it in
10220   # preloaded symbol tables.
10221   # Exclude shared library initialization/finalization symbols.
10222   extract_expsyms_cmds=
10223   # Just being paranoid about ensuring that cc_basename is set.
10224   for cc_temp in $compiler""; do
10225   case $cc_temp in
10226     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10227     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10228     \-*) ;;
10229     *) break;;
10230   esac
10231 done
10232 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10233
10234   case $host_os in
10235   cygwin* | mingw* | pw32*)
10236     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10237     # When not using gcc, we currently assume that we are using
10238     # Microsoft Visual C++.
10239     if test "$GCC" != yes; then
10240       with_gnu_ld=no
10241     fi
10242     ;;
10243   interix*)
10244     # we just hope/assume this is gcc and not c89 (= MSVC++)
10245     with_gnu_ld=yes
10246     ;;
10247   openbsd*)
10248     with_gnu_ld=no
10249     ;;
10250   esac
10251
10252   ld_shlibs=yes
10253   if test "$with_gnu_ld" = yes; then
10254     # If archive_cmds runs LD, not CC, wlarc should be empty
10255     wlarc='${wl}'
10256
10257     # Set some defaults for GNU ld with shared library support. These
10258     # are reset later if shared libraries are not supported. Putting them
10259     # here allows them to be overridden if necessary.
10260     runpath_var=LD_RUN_PATH
10261     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10262     export_dynamic_flag_spec='${wl}--export-dynamic'
10263     # ancient GNU ld didn't support --whole-archive et. al.
10264     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10265         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10266       else
10267         whole_archive_flag_spec=
10268     fi
10269     supports_anon_versioning=no
10270     case `$LD -v 2>/dev/null` in
10271       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10272       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10273       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10274       *\ 2.11.*) ;; # other 2.11 versions
10275       *) supports_anon_versioning=yes ;;
10276     esac
10277
10278     # See if GNU ld supports shared libraries.
10279     case $host_os in
10280     aix[3-9]*)
10281       # On AIX/PPC, the GNU linker is very broken
10282       if test "$host_cpu" != ia64; then
10283         ld_shlibs=no
10284         cat <<EOF 1>&2
10285
10286 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10287 *** to be unable to reliably create shared libraries on AIX.
10288 *** Therefore, libtool is disabling shared libraries support.  If you
10289 *** really care for shared libraries, you may want to modify your PATH
10290 *** so that a non-GNU linker is found, and then restart.
10291
10292 EOF
10293       fi
10294       ;;
10295
10296     amigaos*)
10297       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)'
10298       hardcode_libdir_flag_spec='-L$libdir'
10299       hardcode_minus_L=yes
10300
10301       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10302       # that the semantics of dynamic libraries on AmigaOS, at least up
10303       # to version 4, is to share data among multiple programs linked
10304       # with the same dynamic library.  Since this doesn't match the
10305       # behavior of shared libraries on other platforms, we can't use
10306       # them.
10307       ld_shlibs=no
10308       ;;
10309
10310     beos*)
10311       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10312         allow_undefined_flag=unsupported
10313         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10314         # support --undefined.  This deserves some investigation.  FIXME
10315         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10316       else
10317         ld_shlibs=no
10318       fi
10319       ;;
10320
10321     cygwin* | mingw* | pw32*)
10322       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10323       # as there is no search path for DLLs.
10324       hardcode_libdir_flag_spec='-L$libdir'
10325       allow_undefined_flag=unsupported
10326       always_export_symbols=no
10327       enable_shared_with_static_runtimes=yes
10328       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10329
10330       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10331         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10332         # If the export-symbols file already is a .def file (1st line
10333         # is EXPORTS), use it as is; otherwise, prepend...
10334         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10335           cp $export_symbols $output_objdir/$soname.def;
10336         else
10337           echo EXPORTS > $output_objdir/$soname.def;
10338           cat $export_symbols >> $output_objdir/$soname.def;
10339         fi~
10340         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10341       else
10342         ld_shlibs=no
10343       fi
10344       ;;
10345
10346     interix[3-9]*)
10347       hardcode_direct=no
10348       hardcode_shlibpath_var=no
10349       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10350       export_dynamic_flag_spec='${wl}-E'
10351       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10352       # Instead, shared libraries are loaded at an image base (0x10000000 by
10353       # default) and relocated if they conflict, which is a slow very memory
10354       # consuming and fragmenting process.  To avoid this, we pick a random,
10355       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10356       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10357       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10358       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'
10359       ;;
10360
10361     gnu* | linux* | k*bsd*-gnu)
10362       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10363         tmp_addflag=
10364         case $cc_basename,$host_cpu in
10365         pgcc*)                          # Portland Group C compiler
10366           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'
10367           tmp_addflag=' $pic_flag'
10368           ;;
10369         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10370           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'
10371           tmp_addflag=' $pic_flag -Mnomain' ;;
10372         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10373           tmp_addflag=' -i_dynamic' ;;
10374         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10375           tmp_addflag=' -i_dynamic -nofor_main' ;;
10376         ifc* | ifort*)                  # Intel Fortran compiler
10377           tmp_addflag=' -nofor_main' ;;
10378         esac
10379         case `$CC -V 2>&1 | sed 5q` in
10380         *Sun\ C*)                       # Sun C 5.9
10381           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'
10382           tmp_sharedflag='-G' ;;
10383         *Sun\ F*)                       # Sun Fortran 8.3
10384           tmp_sharedflag='-G' ;;
10385         *)
10386           tmp_sharedflag='-shared' ;;
10387         esac
10388         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389
10390         if test $supports_anon_versioning = yes; then
10391           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10392   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10393   $echo "local: *; };" >> $output_objdir/$libname.ver~
10394           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10395         fi
10396       else
10397         ld_shlibs=no
10398       fi
10399       ;;
10400
10401     netbsd*)
10402       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10403         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10404         wlarc=
10405       else
10406         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10408       fi
10409       ;;
10410
10411     solaris*)
10412       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10413         ld_shlibs=no
10414         cat <<EOF 1>&2
10415
10416 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10417 *** create shared libraries on Solaris systems.  Therefore, libtool
10418 *** is disabling shared libraries support.  We urge you to upgrade GNU
10419 *** binutils to release 2.9.1 or newer.  Another option is to modify
10420 *** your PATH or compiler configuration so that the native linker is
10421 *** used, and then restart.
10422
10423 EOF
10424       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10425         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10426         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10427       else
10428         ld_shlibs=no
10429       fi
10430       ;;
10431
10432     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10433       case `$LD -v 2>&1` in
10434         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10435         ld_shlibs=no
10436         cat <<_LT_EOF 1>&2
10437
10438 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10439 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10440 *** is disabling shared libraries support.  We urge you to upgrade GNU
10441 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10442 *** your PATH or compiler configuration so that the native linker is
10443 *** used, and then restart.
10444
10445 _LT_EOF
10446         ;;
10447         *)
10448           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10449             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10450             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10451             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10452           else
10453             ld_shlibs=no
10454           fi
10455         ;;
10456       esac
10457       ;;
10458
10459     sunos4*)
10460       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10461       wlarc=
10462       hardcode_direct=yes
10463       hardcode_shlibpath_var=no
10464       ;;
10465
10466     *)
10467       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10468         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10469         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10470       else
10471         ld_shlibs=no
10472       fi
10473       ;;
10474     esac
10475
10476     if test "$ld_shlibs" = no; then
10477       runpath_var=
10478       hardcode_libdir_flag_spec=
10479       export_dynamic_flag_spec=
10480       whole_archive_flag_spec=
10481     fi
10482   else
10483     # PORTME fill in a description of your system's linker (not GNU ld)
10484     case $host_os in
10485     aix3*)
10486       allow_undefined_flag=unsupported
10487       always_export_symbols=yes
10488       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'
10489       # Note: this linker hardcodes the directories in LIBPATH if there
10490       # are no directories specified by -L.
10491       hardcode_minus_L=yes
10492       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10493         # Neither direct hardcoding nor static linking is supported with a
10494         # broken collect2.
10495         hardcode_direct=unsupported
10496       fi
10497       ;;
10498
10499     aix[4-9]*)
10500       if test "$host_cpu" = ia64; then
10501         # On IA64, the linker does run time linking by default, so we don't
10502         # have to do anything special.
10503         aix_use_runtimelinking=no
10504         exp_sym_flag='-Bexport'
10505         no_entry_flag=""
10506       else
10507         # If we're using GNU nm, then we don't want the "-C" option.
10508         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10509         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10510           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'
10511         else
10512           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'
10513         fi
10514         aix_use_runtimelinking=no
10515
10516         # Test if we are trying to use run time linking or normal
10517         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10518         # need to do runtime linking.
10519         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10520           for ld_flag in $LDFLAGS; do
10521           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10522             aix_use_runtimelinking=yes
10523             break
10524           fi
10525           done
10526           ;;
10527         esac
10528
10529         exp_sym_flag='-bexport'
10530         no_entry_flag='-bnoentry'
10531       fi
10532
10533       # When large executables or shared objects are built, AIX ld can
10534       # have problems creating the table of contents.  If linking a library
10535       # or program results in "error TOC overflow" add -mminimal-toc to
10536       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10537       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10538
10539       archive_cmds=''
10540       hardcode_direct=yes
10541       hardcode_libdir_separator=':'
10542       link_all_deplibs=yes
10543
10544       if test "$GCC" = yes; then
10545         case $host_os in aix4.[012]|aix4.[012].*)
10546         # We only want to do this on AIX 4.2 and lower, the check
10547         # below for broken collect2 doesn't work under 4.3+
10548           collect2name=`${CC} -print-prog-name=collect2`
10549           if test -f "$collect2name" && \
10550            strings "$collect2name" | grep resolve_lib_name >/dev/null
10551           then
10552           # We have reworked collect2
10553           :
10554           else
10555           # We have old collect2
10556           hardcode_direct=unsupported
10557           # It fails to find uninstalled libraries when the uninstalled
10558           # path is not listed in the libpath.  Setting hardcode_minus_L
10559           # to unsupported forces relinking
10560           hardcode_minus_L=yes
10561           hardcode_libdir_flag_spec='-L$libdir'
10562           hardcode_libdir_separator=
10563           fi
10564           ;;
10565         esac
10566         shared_flag='-shared'
10567         if test "$aix_use_runtimelinking" = yes; then
10568           shared_flag="$shared_flag "'${wl}-G'
10569         fi
10570       else
10571         # not using gcc
10572         if test "$host_cpu" = ia64; then
10573         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10574         # chokes on -Wl,-G. The following line is correct:
10575           shared_flag='-G'
10576         else
10577           if test "$aix_use_runtimelinking" = yes; then
10578             shared_flag='${wl}-G'
10579           else
10580             shared_flag='${wl}-bM:SRE'
10581           fi
10582         fi
10583       fi
10584
10585       # It seems that -bexpall does not export symbols beginning with
10586       # underscore (_), so it is better to generate a list of symbols to export.
10587       always_export_symbols=yes
10588       if test "$aix_use_runtimelinking" = yes; then
10589         # Warning - without using the other runtime loading flags (-brtl),
10590         # -berok will link without error, but may produce a broken library.
10591         allow_undefined_flag='-berok'
10592        # Determine the default libpath from the value encoded in an empty executable.
10593        cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599
10600 int
10601 main ()
10602 {
10603
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616   (eval "$ac_link") 2>conftest.er1
10617   ac_status=$?
10618   grep -v '^ *+' conftest.er1 >conftest.err
10619   rm -f conftest.er1
10620   cat conftest.err >&5
10621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } && {
10623          test -z "$ac_c_werror_flag" ||
10624          test ! -s conftest.err
10625        } && test -s conftest$ac_exeext && {
10626          test "$cross_compiling" = yes ||
10627          $as_test_x conftest$ac_exeext
10628        }; then
10629
10630 lt_aix_libpath_sed='
10631     /Import File Strings/,/^$/ {
10632         /^0/ {
10633             s/^0  *\(.*\)$/\1/
10634             p
10635         }
10636     }'
10637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10638 # Check for a 64-bit object if we didn't find anything.
10639 if test -z "$aix_libpath"; then
10640   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10641 fi
10642 else
10643   $as_echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646
10647 fi
10648
10649 rm -rf conftest.dSYM
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651       conftest$ac_exeext conftest.$ac_ext
10652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10653
10654        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10655         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10656        else
10657         if test "$host_cpu" = ia64; then
10658           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10659           allow_undefined_flag="-z nodefs"
10660           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"
10661         else
10662          # Determine the default libpath from the value encoded in an empty executable.
10663          cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669
10670 int
10671 main ()
10672 {
10673
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682   *) ac_try_echo=$ac_try;;
10683 esac
10684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686   (eval "$ac_link") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } && {
10693          test -z "$ac_c_werror_flag" ||
10694          test ! -s conftest.err
10695        } && test -s conftest$ac_exeext && {
10696          test "$cross_compiling" = yes ||
10697          $as_test_x conftest$ac_exeext
10698        }; then
10699
10700 lt_aix_libpath_sed='
10701     /Import File Strings/,/^$/ {
10702         /^0/ {
10703             s/^0  *\(.*\)$/\1/
10704             p
10705         }
10706     }'
10707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10708 # Check for a 64-bit object if we didn't find anything.
10709 if test -z "$aix_libpath"; then
10710   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10711 fi
10712 else
10713   $as_echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716
10717 fi
10718
10719 rm -rf conftest.dSYM
10720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10721       conftest$ac_exeext conftest.$ac_ext
10722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10723
10724          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10725           # Warning - without using the other run time loading flags,
10726           # -berok will link without error, but may produce a broken library.
10727           no_undefined_flag=' ${wl}-bernotok'
10728           allow_undefined_flag=' ${wl}-berok'
10729           # Exported symbols can be pulled into shared objects from archives
10730           whole_archive_flag_spec='$convenience'
10731           archive_cmds_need_lc=yes
10732           # This is similar to how AIX traditionally builds its shared libraries.
10733           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'
10734         fi
10735       fi
10736       ;;
10737
10738     amigaos*)
10739       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)'
10740       hardcode_libdir_flag_spec='-L$libdir'
10741       hardcode_minus_L=yes
10742       # see comment about different semantics on the GNU ld section
10743       ld_shlibs=no
10744       ;;
10745
10746     bsdi[45]*)
10747       export_dynamic_flag_spec=-rdynamic
10748       ;;
10749
10750     cygwin* | mingw* | pw32*)
10751       # When not using gcc, we currently assume that we are using
10752       # Microsoft Visual C++.
10753       # hardcode_libdir_flag_spec is actually meaningless, as there is
10754       # no search path for DLLs.
10755       hardcode_libdir_flag_spec=' '
10756       allow_undefined_flag=unsupported
10757       # Tell ltmain to make .lib files, not .a files.
10758       libext=lib
10759       # Tell ltmain to make .dll files, not .so files.
10760       shrext_cmds=".dll"
10761       # FIXME: Setting linknames here is a bad hack.
10762       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10763       # The linker will automatically build a .lib file if we build a DLL.
10764       old_archive_From_new_cmds='true'
10765       # FIXME: Should let the user specify the lib program.
10766       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10767       fix_srcfile_path='`cygpath -w "$srcfile"`'
10768       enable_shared_with_static_runtimes=yes
10769       ;;
10770
10771     darwin* | rhapsody*)
10772       case $host_os in
10773         rhapsody* | darwin1.[012])
10774          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10775          ;;
10776        *) # Darwin 1.3 on
10777          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10778            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10779          else
10780            case ${MACOSX_DEPLOYMENT_TARGET} in
10781              10.[012])
10782                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10783                ;;
10784              10.*)
10785                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10786                ;;
10787            esac
10788          fi
10789          ;;
10790       esac
10791       archive_cmds_need_lc=no
10792       hardcode_direct=no
10793       hardcode_automatic=yes
10794       hardcode_shlibpath_var=unsupported
10795       whole_archive_flag_spec=''
10796       link_all_deplibs=yes
10797     if test "$GCC" = yes ; then
10798         output_verbose_link_cmd='echo'
10799         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10800         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10801         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}"
10802         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}"
10803     else
10804       case $cc_basename in
10805         xlc*)
10806          output_verbose_link_cmd='echo'
10807          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10808          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10809           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10810          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10811           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10812           ;;
10813        *)
10814          ld_shlibs=no
10815           ;;
10816       esac
10817     fi
10818       ;;
10819
10820     dgux*)
10821       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822       hardcode_libdir_flag_spec='-L$libdir'
10823       hardcode_shlibpath_var=no
10824       ;;
10825
10826     freebsd1*)
10827       ld_shlibs=no
10828       ;;
10829
10830     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10831     # support.  Future versions do this automatically, but an explicit c++rt0.o
10832     # does not break anything, and helps significantly (at the cost of a little
10833     # extra space).
10834     freebsd2.2*)
10835       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10836       hardcode_libdir_flag_spec='-R$libdir'
10837       hardcode_direct=yes
10838       hardcode_shlibpath_var=no
10839       ;;
10840
10841     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10842     freebsd2*)
10843       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10844       hardcode_direct=yes
10845       hardcode_minus_L=yes
10846       hardcode_shlibpath_var=no
10847       ;;
10848
10849     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10850     freebsd* | dragonfly*)
10851       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10852       hardcode_libdir_flag_spec='-R$libdir'
10853       hardcode_direct=yes
10854       hardcode_shlibpath_var=no
10855       ;;
10856
10857     hpux9*)
10858       if test "$GCC" = yes; then
10859         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'
10860       else
10861         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'
10862       fi
10863       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10864       hardcode_libdir_separator=:
10865       hardcode_direct=yes
10866
10867       # hardcode_minus_L: Not really in the search PATH,
10868       # but as the default location of the library.
10869       hardcode_minus_L=yes
10870       export_dynamic_flag_spec='${wl}-E'
10871       ;;
10872
10873     hpux10*)
10874       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10875         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10876       else
10877         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10878       fi
10879       if test "$with_gnu_ld" = no; then
10880         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10881         hardcode_libdir_separator=:
10882
10883         hardcode_direct=yes
10884         export_dynamic_flag_spec='${wl}-E'
10885
10886         # hardcode_minus_L: Not really in the search PATH,
10887         # but as the default location of the library.
10888         hardcode_minus_L=yes
10889       fi
10890       ;;
10891
10892     hpux11*)
10893       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10894         case $host_cpu in
10895         hppa*64*)
10896           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10897           ;;
10898         ia64*)
10899           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10900           ;;
10901         *)
10902           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10903           ;;
10904         esac
10905       else
10906         case $host_cpu in
10907         hppa*64*)
10908           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10909           ;;
10910         ia64*)
10911           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10912           ;;
10913         *)
10914           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10915           ;;
10916         esac
10917       fi
10918       if test "$with_gnu_ld" = no; then
10919         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10920         hardcode_libdir_separator=:
10921
10922         case $host_cpu in
10923         hppa*64*|ia64*)
10924           hardcode_libdir_flag_spec_ld='+b $libdir'
10925           hardcode_direct=no
10926           hardcode_shlibpath_var=no
10927           ;;
10928         *)
10929           hardcode_direct=yes
10930           export_dynamic_flag_spec='${wl}-E'
10931
10932           # hardcode_minus_L: Not really in the search PATH,
10933           # but as the default location of the library.
10934           hardcode_minus_L=yes
10935           ;;
10936         esac
10937       fi
10938       ;;
10939
10940     irix5* | irix6* | nonstopux*)
10941       if test "$GCC" = yes; then
10942         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10943       else
10944         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10945         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10946       fi
10947       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10948       hardcode_libdir_separator=:
10949       link_all_deplibs=yes
10950       ;;
10951
10952     netbsd*)
10953       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10954         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10955       else
10956         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10957       fi
10958       hardcode_libdir_flag_spec='-R$libdir'
10959       hardcode_direct=yes
10960       hardcode_shlibpath_var=no
10961       ;;
10962
10963     newsos6)
10964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965       hardcode_direct=yes
10966       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10967       hardcode_libdir_separator=:
10968       hardcode_shlibpath_var=no
10969       ;;
10970
10971     openbsd*)
10972       if test -f /usr/libexec/ld.so; then
10973         hardcode_direct=yes
10974         hardcode_shlibpath_var=no
10975         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10976           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10977           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10978           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10979           export_dynamic_flag_spec='${wl}-E'
10980         else
10981           case $host_os in
10982            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10983              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10984              hardcode_libdir_flag_spec='-R$libdir'
10985              ;;
10986            *)
10987              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10988              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10989              ;;
10990           esac
10991         fi
10992       else
10993         ld_shlibs=no
10994       fi
10995       ;;
10996
10997     os2*)
10998       hardcode_libdir_flag_spec='-L$libdir'
10999       hardcode_minus_L=yes
11000       allow_undefined_flag=unsupported
11001       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'
11002       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11003       ;;
11004
11005     osf3*)
11006       if test "$GCC" = yes; then
11007         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11008         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11009       else
11010         allow_undefined_flag=' -expect_unresolved \*'
11011         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11012       fi
11013       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11014       hardcode_libdir_separator=:
11015       ;;
11016
11017     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11018       if test "$GCC" = yes; then
11019         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11020         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11021         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11022       else
11023         allow_undefined_flag=' -expect_unresolved \*'
11024         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11025         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11026         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11027
11028         # Both c and cxx compiler support -rpath directly
11029         hardcode_libdir_flag_spec='-rpath $libdir'
11030       fi
11031       hardcode_libdir_separator=:
11032       ;;
11033
11034     solaris*)
11035       no_undefined_flag=' -z text'
11036       if test "$GCC" = yes; then
11037         wlarc='${wl}'
11038         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11039         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11040           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11041       else
11042         wlarc=''
11043         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11044         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11045         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11046       fi
11047       hardcode_libdir_flag_spec='-R$libdir'
11048       hardcode_shlibpath_var=no
11049       case $host_os in
11050       solaris2.[0-5] | solaris2.[0-5].*) ;;
11051       *)
11052         # The compiler driver will combine and reorder linker options,
11053         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11054         # but is careful enough not to reorder.
11055         # Supported since Solaris 2.6 (maybe 2.5.1?)
11056         if test "$GCC" = yes; then
11057           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11058         else
11059           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11060         fi
11061         ;;
11062       esac
11063       link_all_deplibs=yes
11064       ;;
11065
11066     sunos4*)
11067       if test "x$host_vendor" = xsequent; then
11068         # Use $CC to link under sequent, because it throws in some extra .o
11069         # files that make .init and .fini sections work.
11070         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11071       else
11072         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11073       fi
11074       hardcode_libdir_flag_spec='-L$libdir'
11075       hardcode_direct=yes
11076       hardcode_minus_L=yes
11077       hardcode_shlibpath_var=no
11078       ;;
11079
11080     sysv4)
11081       case $host_vendor in
11082         sni)
11083           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084           hardcode_direct=yes # is this really true???
11085         ;;
11086         siemens)
11087           ## LD is ld it makes a PLAMLIB
11088           ## CC just makes a GrossModule.
11089           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11090           reload_cmds='$CC -r -o $output$reload_objs'
11091           hardcode_direct=no
11092         ;;
11093         motorola)
11094           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11095           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11096         ;;
11097       esac
11098       runpath_var='LD_RUN_PATH'
11099       hardcode_shlibpath_var=no
11100       ;;
11101
11102     sysv4.3*)
11103       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104       hardcode_shlibpath_var=no
11105       export_dynamic_flag_spec='-Bexport'
11106       ;;
11107
11108     sysv4*MP*)
11109       if test -d /usr/nec; then
11110         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11111         hardcode_shlibpath_var=no
11112         runpath_var=LD_RUN_PATH
11113         hardcode_runpath_var=yes
11114         ld_shlibs=yes
11115       fi
11116       ;;
11117
11118     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11119       no_undefined_flag='${wl}-z,text'
11120       archive_cmds_need_lc=no
11121       hardcode_shlibpath_var=no
11122       runpath_var='LD_RUN_PATH'
11123
11124       if test "$GCC" = yes; then
11125         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127       else
11128         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11130       fi
11131       ;;
11132
11133     sysv5* | sco3.2v5* | sco5v6*)
11134       # Note: We can NOT use -z defs as we might desire, because we do not
11135       # link with -lc, and that would cause any symbols used from libc to
11136       # always be unresolved, which means just about no library would
11137       # ever link correctly.  If we're not using GNU ld we use -z text
11138       # though, which does catch some bad symbols but isn't as heavy-handed
11139       # as -z defs.
11140       no_undefined_flag='${wl}-z,text'
11141       allow_undefined_flag='${wl}-z,nodefs'
11142       archive_cmds_need_lc=no
11143       hardcode_shlibpath_var=no
11144       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11145       hardcode_libdir_separator=':'
11146       link_all_deplibs=yes
11147       export_dynamic_flag_spec='${wl}-Bexport'
11148       runpath_var='LD_RUN_PATH'
11149
11150       if test "$GCC" = yes; then
11151         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11152         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11153       else
11154         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11155         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11156       fi
11157       ;;
11158
11159     uts4*)
11160       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161       hardcode_libdir_flag_spec='-L$libdir'
11162       hardcode_shlibpath_var=no
11163       ;;
11164
11165     *)
11166       ld_shlibs=no
11167       ;;
11168     esac
11169   fi
11170
11171 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11172 $as_echo "$ld_shlibs" >&6; }
11173 test "$ld_shlibs" = no && can_build_shared=no
11174
11175 #
11176 # Do we need to explicitly link libc?
11177 #
11178 case "x$archive_cmds_need_lc" in
11179 x|xyes)
11180   # Assume -lc should be added
11181   archive_cmds_need_lc=yes
11182
11183   if test "$enable_shared" = yes && test "$GCC" = yes; then
11184     case $archive_cmds in
11185     *'~'*)
11186       # FIXME: we may have to deal with multi-command sequences.
11187       ;;
11188     '$CC '*)
11189       # Test whether the compiler implicitly links with -lc since on some
11190       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11191       # to ld, don't add -lc before -lgcc.
11192       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11193 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11194       $rm conftest*
11195       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11196
11197       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198   (eval $ac_compile) 2>&5
11199   ac_status=$?
11200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); } 2>conftest.err; then
11202         soname=conftest
11203         lib=conftest
11204         libobjs=conftest.$ac_objext
11205         deplibs=
11206         wl=$lt_prog_compiler_wl
11207         pic_flag=$lt_prog_compiler_pic
11208         compiler_flags=-v
11209         linker_flags=-v
11210         verstring=
11211         output_objdir=.
11212         libname=conftest
11213         lt_save_allow_undefined_flag=$allow_undefined_flag
11214         allow_undefined_flag=
11215         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11216   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11217   ac_status=$?
11218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }
11220         then
11221           archive_cmds_need_lc=no
11222         else
11223           archive_cmds_need_lc=yes
11224         fi
11225         allow_undefined_flag=$lt_save_allow_undefined_flag
11226       else
11227         cat conftest.err 1>&5
11228       fi
11229       $rm conftest*
11230       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11231 $as_echo "$archive_cmds_need_lc" >&6; }
11232       ;;
11233     esac
11234   fi
11235   ;;
11236 esac
11237
11238 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11240 library_names_spec=
11241 libname_spec='lib$name'
11242 soname_spec=
11243 shrext_cmds=".so"
11244 postinstall_cmds=
11245 postuninstall_cmds=
11246 finish_cmds=
11247 finish_eval=
11248 shlibpath_var=
11249 shlibpath_overrides_runpath=unknown
11250 version_type=none
11251 dynamic_linker="$host_os ld.so"
11252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11253
11254 if test "$GCC" = yes; then
11255   case $host_os in
11256     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11257     *) lt_awk_arg="/^libraries:/" ;;
11258   esac
11259   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11260   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11261     # if the path contains ";" then we assume it to be the separator
11262     # otherwise default to the standard path separator (i.e. ":") - it is
11263     # assumed that no part of a normal pathname contains ";" but that should
11264     # okay in the real world where ";" in dirpaths is itself problematic.
11265     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11266   else
11267     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11268   fi
11269   # Ok, now we have the path, separated by spaces, we can step through it
11270   # and add multilib dir if necessary.
11271   lt_tmp_lt_search_path_spec=
11272   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11273   for lt_sys_path in $lt_search_path_spec; do
11274     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11275       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11276     else
11277       test -d "$lt_sys_path" && \
11278         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11279     fi
11280   done
11281   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11282 BEGIN {RS=" "; FS="/|\n";} {
11283   lt_foo="";
11284   lt_count=0;
11285   for (lt_i = NF; lt_i > 0; lt_i--) {
11286     if ($lt_i != "" && $lt_i != ".") {
11287       if ($lt_i == "..") {
11288         lt_count++;
11289       } else {
11290         if (lt_count == 0) {
11291           lt_foo="/" $lt_i lt_foo;
11292         } else {
11293           lt_count--;
11294         }
11295       }
11296     }
11297   }
11298   if (lt_foo != "") { lt_freq[lt_foo]++; }
11299   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11300 }'`
11301   sys_lib_search_path_spec=`echo $lt_search_path_spec`
11302 else
11303   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11304 fi
11305 need_lib_prefix=unknown
11306 hardcode_into_libs=no
11307
11308 # when you set need_version to no, make sure it does not cause -set_version
11309 # flags to be left without arguments
11310 need_version=unknown
11311
11312 case $host_os in
11313 aix3*)
11314   version_type=linux
11315   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11316   shlibpath_var=LIBPATH
11317
11318   # AIX 3 has no versioning support, so we append a major version to the name.
11319   soname_spec='${libname}${release}${shared_ext}$major'
11320   ;;
11321
11322 aix[4-9]*)
11323   version_type=linux
11324   need_lib_prefix=no
11325   need_version=no
11326   hardcode_into_libs=yes
11327   if test "$host_cpu" = ia64; then
11328     # AIX 5 supports IA64
11329     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11330     shlibpath_var=LD_LIBRARY_PATH
11331   else
11332     # With GCC up to 2.95.x, collect2 would create an import file
11333     # for dependence libraries.  The import file would start with
11334     # the line `#! .'.  This would cause the generated library to
11335     # depend on `.', always an invalid library.  This was fixed in
11336     # development snapshots of GCC prior to 3.0.
11337     case $host_os in
11338       aix4 | aix4.[01] | aix4.[01].*)
11339       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11340            echo ' yes '
11341            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11342         :
11343       else
11344         can_build_shared=no
11345       fi
11346       ;;
11347     esac
11348     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11349     # soname into executable. Probably we can add versioning support to
11350     # collect2, so additional links can be useful in future.
11351     if test "$aix_use_runtimelinking" = yes; then
11352       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11353       # instead of lib<name>.a to let people know that these are not
11354       # typical AIX shared libraries.
11355       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356     else
11357       # We preserve .a as extension for shared libraries through AIX4.2
11358       # and later when we are not doing run time linking.
11359       library_names_spec='${libname}${release}.a $libname.a'
11360       soname_spec='${libname}${release}${shared_ext}$major'
11361     fi
11362     shlibpath_var=LIBPATH
11363   fi
11364   ;;
11365
11366 amigaos*)
11367   library_names_spec='$libname.ixlibrary $libname.a'
11368   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11369   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'
11370   ;;
11371
11372 beos*)
11373   library_names_spec='${libname}${shared_ext}'
11374   dynamic_linker="$host_os ld.so"
11375   shlibpath_var=LIBRARY_PATH
11376   ;;
11377
11378 bsdi[45]*)
11379   version_type=linux
11380   need_version=no
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382   soname_spec='${libname}${release}${shared_ext}$major'
11383   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11384   shlibpath_var=LD_LIBRARY_PATH
11385   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11386   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11387   # the default ld.so.conf also contains /usr/contrib/lib and
11388   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11389   # libtool to hard-code these into programs
11390   ;;
11391
11392 cygwin* | mingw* | pw32*)
11393   version_type=windows
11394   shrext_cmds=".dll"
11395   need_version=no
11396   need_lib_prefix=no
11397
11398   case $GCC,$host_os in
11399   yes,cygwin* | yes,mingw* | yes,pw32*)
11400     library_names_spec='$libname.dll.a'
11401     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11402     postinstall_cmds='base_file=`basename \${file}`~
11403       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11404       dldir=$destdir/`dirname \$dlpath`~
11405       test -d \$dldir || mkdir -p \$dldir~
11406       $install_prog $dir/$dlname \$dldir/$dlname~
11407       chmod a+x \$dldir/$dlname'
11408     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409       dlpath=$dir/\$dldll~
11410        $rm \$dlpath'
11411     shlibpath_overrides_runpath=yes
11412
11413     case $host_os in
11414     cygwin*)
11415       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11418       ;;
11419     mingw*)
11420       # MinGW DLLs use traditional 'lib' prefix
11421       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11423       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11424         # It is most probably a Windows format PATH printed by
11425         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11426         # path with ; separators, and with drive letters. We can handle the
11427         # drive letters (cygwin fileutils understands them), so leave them,
11428         # especially as we might pass files found there to a mingw objdump,
11429         # which wouldn't understand a cygwinified path. Ahh.
11430         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11431       else
11432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11433       fi
11434       ;;
11435     pw32*)
11436       # pw32 DLLs use 'pw' prefix rather than 'lib'
11437       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11438       ;;
11439     esac
11440     ;;
11441
11442   *)
11443     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11444     ;;
11445   esac
11446   dynamic_linker='Win32 ld.exe'
11447   # FIXME: first we should search . and the directory the executable is in
11448   shlibpath_var=PATH
11449   ;;
11450
11451 darwin* | rhapsody*)
11452   dynamic_linker="$host_os dyld"
11453   version_type=darwin
11454   need_lib_prefix=no
11455   need_version=no
11456   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11457   soname_spec='${libname}${release}${major}$shared_ext'
11458   shlibpath_overrides_runpath=yes
11459   shlibpath_var=DYLD_LIBRARY_PATH
11460   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11461
11462   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11463   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11464   ;;
11465
11466 dgux*)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   ;;
11474
11475 freebsd1*)
11476   dynamic_linker=no
11477   ;;
11478
11479 freebsd* | dragonfly*)
11480   # DragonFly does not have aout.  When/if they implement a new
11481   # versioning mechanism, adjust this.
11482   if test -x /usr/bin/objformat; then
11483     objformat=`/usr/bin/objformat`
11484   else
11485     case $host_os in
11486     freebsd[123]*) objformat=aout ;;
11487     *) objformat=elf ;;
11488     esac
11489   fi
11490   version_type=freebsd-$objformat
11491   case $version_type in
11492     freebsd-elf*)
11493       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11494       need_version=no
11495       need_lib_prefix=no
11496       ;;
11497     freebsd-*)
11498       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11499       need_version=yes
11500       ;;
11501   esac
11502   shlibpath_var=LD_LIBRARY_PATH
11503   case $host_os in
11504   freebsd2*)
11505     shlibpath_overrides_runpath=yes
11506     ;;
11507   freebsd3.[01]* | freebsdelf3.[01]*)
11508     shlibpath_overrides_runpath=yes
11509     hardcode_into_libs=yes
11510     ;;
11511   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11512   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11513     shlibpath_overrides_runpath=no
11514     hardcode_into_libs=yes
11515     ;;
11516   *) # from 4.6 on, and DragonFly
11517     shlibpath_overrides_runpath=yes
11518     hardcode_into_libs=yes
11519     ;;
11520   esac
11521   ;;
11522
11523 gnu*)
11524   version_type=linux
11525   need_lib_prefix=no
11526   need_version=no
11527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11528   soname_spec='${libname}${release}${shared_ext}$major'
11529   shlibpath_var=LD_LIBRARY_PATH
11530   hardcode_into_libs=yes
11531   ;;
11532
11533 hpux9* | hpux10* | hpux11*)
11534   # Give a soname corresponding to the major version so that dld.sl refuses to
11535   # link against other versions.
11536   version_type=sunos
11537   need_lib_prefix=no
11538   need_version=no
11539   case $host_cpu in
11540   ia64*)
11541     shrext_cmds='.so'
11542     hardcode_into_libs=yes
11543     dynamic_linker="$host_os dld.so"
11544     shlibpath_var=LD_LIBRARY_PATH
11545     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547     soname_spec='${libname}${release}${shared_ext}$major'
11548     if test "X$HPUX_IA64_MODE" = X32; then
11549       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11550     else
11551       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11552     fi
11553     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11554     ;;
11555    hppa*64*)
11556      shrext_cmds='.sl'
11557      hardcode_into_libs=yes
11558      dynamic_linker="$host_os dld.sl"
11559      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11560      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11561      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562      soname_spec='${libname}${release}${shared_ext}$major'
11563      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11564      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11565      ;;
11566    *)
11567     shrext_cmds='.sl'
11568     dynamic_linker="$host_os dld.sl"
11569     shlibpath_var=SHLIB_PATH
11570     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572     soname_spec='${libname}${release}${shared_ext}$major'
11573     ;;
11574   esac
11575   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11576   postinstall_cmds='chmod 555 $lib'
11577   ;;
11578
11579 interix[3-9]*)
11580   version_type=linux
11581   need_lib_prefix=no
11582   need_version=no
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11584   soname_spec='${libname}${release}${shared_ext}$major'
11585   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11586   shlibpath_var=LD_LIBRARY_PATH
11587   shlibpath_overrides_runpath=no
11588   hardcode_into_libs=yes
11589   ;;
11590
11591 irix5* | irix6* | nonstopux*)
11592   case $host_os in
11593     nonstopux*) version_type=nonstopux ;;
11594     *)
11595         if test "$lt_cv_prog_gnu_ld" = yes; then
11596                 version_type=linux
11597         else
11598                 version_type=irix
11599         fi ;;
11600   esac
11601   need_lib_prefix=no
11602   need_version=no
11603   soname_spec='${libname}${release}${shared_ext}$major'
11604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11605   case $host_os in
11606   irix5* | nonstopux*)
11607     libsuff= shlibsuff=
11608     ;;
11609   *)
11610     case $LD in # libtool.m4 will add one of these switches to LD
11611     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11612       libsuff= shlibsuff= libmagic=32-bit;;
11613     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11614       libsuff=32 shlibsuff=N32 libmagic=N32;;
11615     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11616       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11617     *) libsuff= shlibsuff= libmagic=never-match;;
11618     esac
11619     ;;
11620   esac
11621   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11622   shlibpath_overrides_runpath=no
11623   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11624   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11625   hardcode_into_libs=yes
11626   ;;
11627
11628 # No shared lib support for Linux oldld, aout, or coff.
11629 linux*oldld* | linux*aout* | linux*coff*)
11630   dynamic_linker=no
11631   ;;
11632
11633 # This must be Linux ELF.
11634 linux* | k*bsd*-gnu)
11635   version_type=linux
11636   need_lib_prefix=no
11637   need_version=no
11638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639   soname_spec='${libname}${release}${shared_ext}$major'
11640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11641   shlibpath_var=LD_LIBRARY_PATH
11642   shlibpath_overrides_runpath=no
11643   # This implies no fast_install, which is unacceptable.
11644   # Some rework will be needed to allow for fast_install
11645   # before this can be enabled.
11646   hardcode_into_libs=yes
11647   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11648   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11649
11650   # Append ld.so.conf contents to the search path
11651   if test -f /etc/ld.so.conf; then
11652     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' ' '`
11653     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11654   fi
11655
11656   # We used to test for /lib/ld.so.1 and disable shared libraries on
11657   # powerpc, because MkLinux only supported shared libraries with the
11658   # GNU dynamic linker.  Since this was broken with cross compilers,
11659   # most powerpc-linux boxes support dynamic linking these days and
11660   # people can always --disable-shared, the test was removed, and we
11661   # assume the GNU/Linux dynamic linker is in use.
11662   dynamic_linker='GNU/Linux ld.so'
11663   ;;
11664
11665 netbsd*)
11666   version_type=sunos
11667   need_lib_prefix=no
11668   need_version=no
11669   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672     dynamic_linker='NetBSD (a.out) ld.so'
11673   else
11674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11675     soname_spec='${libname}${release}${shared_ext}$major'
11676     dynamic_linker='NetBSD ld.elf_so'
11677   fi
11678   shlibpath_var=LD_LIBRARY_PATH
11679   shlibpath_overrides_runpath=yes
11680   hardcode_into_libs=yes
11681   ;;
11682
11683 newsos6)
11684   version_type=linux
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   shlibpath_overrides_runpath=yes
11688   ;;
11689
11690 nto-qnx*)
11691   version_type=linux
11692   need_lib_prefix=no
11693   need_version=no
11694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695   soname_spec='${libname}${release}${shared_ext}$major'
11696   shlibpath_var=LD_LIBRARY_PATH
11697   shlibpath_overrides_runpath=yes
11698   ;;
11699
11700 openbsd*)
11701   version_type=sunos
11702   sys_lib_dlsearch_path_spec="/usr/lib"
11703   need_lib_prefix=no
11704   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11705   case $host_os in
11706     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11707     *)                         need_version=no  ;;
11708   esac
11709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11713     case $host_os in
11714       openbsd2.[89] | openbsd2.[89].*)
11715         shlibpath_overrides_runpath=no
11716         ;;
11717       *)
11718         shlibpath_overrides_runpath=yes
11719         ;;
11720       esac
11721   else
11722     shlibpath_overrides_runpath=yes
11723   fi
11724   ;;
11725
11726 os2*)
11727   libname_spec='$name'
11728   shrext_cmds=".dll"
11729   need_lib_prefix=no
11730   library_names_spec='$libname${shared_ext} $libname.a'
11731   dynamic_linker='OS/2 ld.exe'
11732   shlibpath_var=LIBPATH
11733   ;;
11734
11735 osf3* | osf4* | osf5*)
11736   version_type=osf
11737   need_lib_prefix=no
11738   need_version=no
11739   soname_spec='${libname}${release}${shared_ext}$major'
11740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741   shlibpath_var=LD_LIBRARY_PATH
11742   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11743   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11744   ;;
11745
11746 rdos*)
11747   dynamic_linker=no
11748   ;;
11749
11750 solaris*)
11751   version_type=linux
11752   need_lib_prefix=no
11753   need_version=no
11754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755   soname_spec='${libname}${release}${shared_ext}$major'
11756   shlibpath_var=LD_LIBRARY_PATH
11757   shlibpath_overrides_runpath=yes
11758   hardcode_into_libs=yes
11759   # ldd complains unless libraries are executable
11760   postinstall_cmds='chmod +x $lib'
11761   ;;
11762
11763 sunos4*)
11764   version_type=sunos
11765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11766   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11767   shlibpath_var=LD_LIBRARY_PATH
11768   shlibpath_overrides_runpath=yes
11769   if test "$with_gnu_ld" = yes; then
11770     need_lib_prefix=no
11771   fi
11772   need_version=yes
11773   ;;
11774
11775 sysv4 | sysv4.3*)
11776   version_type=linux
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778   soname_spec='${libname}${release}${shared_ext}$major'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   case $host_vendor in
11781     sni)
11782       shlibpath_overrides_runpath=no
11783       need_lib_prefix=no
11784       export_dynamic_flag_spec='${wl}-Blargedynsym'
11785       runpath_var=LD_RUN_PATH
11786       ;;
11787     siemens)
11788       need_lib_prefix=no
11789       ;;
11790     motorola)
11791       need_lib_prefix=no
11792       need_version=no
11793       shlibpath_overrides_runpath=no
11794       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11795       ;;
11796   esac
11797   ;;
11798
11799 sysv4*MP*)
11800   if test -d /usr/nec ;then
11801     version_type=linux
11802     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11803     soname_spec='$libname${shared_ext}.$major'
11804     shlibpath_var=LD_LIBRARY_PATH
11805   fi
11806   ;;
11807
11808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11809   version_type=freebsd-elf
11810   need_lib_prefix=no
11811   need_version=no
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   hardcode_into_libs=yes
11816   if test "$with_gnu_ld" = yes; then
11817     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11818     shlibpath_overrides_runpath=no
11819   else
11820     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11821     shlibpath_overrides_runpath=yes
11822     case $host_os in
11823       sco3.2v5*)
11824         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11825         ;;
11826     esac
11827   fi
11828   sys_lib_dlsearch_path_spec='/usr/lib'
11829   ;;
11830
11831 uts4*)
11832   version_type=linux
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834   soname_spec='${libname}${release}${shared_ext}$major'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   ;;
11837
11838 *)
11839   dynamic_linker=no
11840   ;;
11841 esac
11842 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11843 $as_echo "$dynamic_linker" >&6; }
11844 test "$dynamic_linker" = no && can_build_shared=no
11845
11846 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11847   $as_echo_n "(cached) " >&6
11848 else
11849   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11850 fi
11851
11852 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11854   $as_echo_n "(cached) " >&6
11855 else
11856   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11857 fi
11858
11859 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11860
11861 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11862 if test "$GCC" = yes; then
11863   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11864 fi
11865
11866 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11867 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11868 hardcode_action=
11869 if test -n "$hardcode_libdir_flag_spec" || \
11870    test -n "$runpath_var" || \
11871    test "X$hardcode_automatic" = "Xyes" ; then
11872
11873   # We can hardcode non-existant directories.
11874   if test "$hardcode_direct" != no &&
11875      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11876      # have to relink, otherwise we might link with an installed library
11877      # when we should be linking with a yet-to-be-installed one
11878      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11879      test "$hardcode_minus_L" != no; then
11880     # Linking always hardcodes the temporary library directory.
11881     hardcode_action=relink
11882   else
11883     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11884     hardcode_action=immediate
11885   fi
11886 else
11887   # We cannot hardcode anything, or else we can only hardcode existing
11888   # directories.
11889   hardcode_action=unsupported
11890 fi
11891 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11892 $as_echo "$hardcode_action" >&6; }
11893
11894 if test "$hardcode_action" = relink; then
11895   # Fast installation is not supported
11896   enable_fast_install=no
11897 elif test "$shlibpath_overrides_runpath" = yes ||
11898      test "$enable_shared" = no; then
11899   # Fast installation is not necessary
11900   enable_fast_install=needless
11901 fi
11902
11903 striplib=
11904 old_striplib=
11905 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11906 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11907 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11908   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11909   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11910   { $as_echo "$as_me:$LINENO: result: yes" >&5
11911 $as_echo "yes" >&6; }
11912 else
11913 # FIXME - insert some real tests, host_os isn't really good enough
11914   case $host_os in
11915    darwin*)
11916        if test -n "$STRIP" ; then
11917          striplib="$STRIP -x"
11918          old_striplib="$STRIP -S"
11919          { $as_echo "$as_me:$LINENO: result: yes" >&5
11920 $as_echo "yes" >&6; }
11921        else
11922   { $as_echo "$as_me:$LINENO: result: no" >&5
11923 $as_echo "no" >&6; }
11924 fi
11925        ;;
11926    *)
11927   { $as_echo "$as_me:$LINENO: result: no" >&5
11928 $as_echo "no" >&6; }
11929     ;;
11930   esac
11931 fi
11932
11933 if test "x$enable_dlopen" != xyes; then
11934   enable_dlopen=unknown
11935   enable_dlopen_self=unknown
11936   enable_dlopen_self_static=unknown
11937 else
11938   lt_cv_dlopen=no
11939   lt_cv_dlopen_libs=
11940
11941   case $host_os in
11942   beos*)
11943     lt_cv_dlopen="load_add_on"
11944     lt_cv_dlopen_libs=
11945     lt_cv_dlopen_self=yes
11946     ;;
11947
11948   mingw* | pw32*)
11949     lt_cv_dlopen="LoadLibrary"
11950     lt_cv_dlopen_libs=
11951    ;;
11952
11953   cygwin*)
11954     lt_cv_dlopen="dlopen"
11955     lt_cv_dlopen_libs=
11956    ;;
11957
11958   darwin*)
11959   # if libdl is installed we need to link against it
11960     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11963   $as_echo_n "(cached) " >&6
11964 else
11965   ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-ldl  $LIBS"
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973
11974 /* Override any GCC internal prototype to avoid an error.
11975    Use char because int might match the return type of a GCC
11976    builtin and then its argument prototype would still apply.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char dlopen ();
11981 int
11982 main ()
11983 {
11984 return dlopen ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11996 $as_echo "$ac_try_echo") >&5
11997   (eval "$ac_link") 2>conftest.er1
11998   ac_status=$?
11999   grep -v '^ *+' conftest.er1 >conftest.err
12000   rm -f conftest.er1
12001   cat conftest.err >&5
12002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } && {
12004          test -z "$ac_c_werror_flag" ||
12005          test ! -s conftest.err
12006        } && test -s conftest$ac_exeext && {
12007          test "$cross_compiling" = yes ||
12008          $as_test_x conftest$ac_exeext
12009        }; then
12010   ac_cv_lib_dl_dlopen=yes
12011 else
12012   $as_echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015         ac_cv_lib_dl_dlopen=no
12016 fi
12017
12018 rm -rf conftest.dSYM
12019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12020       conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12025 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12027 else
12028
12029     lt_cv_dlopen="dyld"
12030     lt_cv_dlopen_libs=
12031     lt_cv_dlopen_self=yes
12032
12033 fi
12034
12035    ;;
12036
12037   *)
12038     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12039 $as_echo_n "checking for shl_load... " >&6; }
12040 if test "${ac_cv_func_shl_load+set}" = set; then
12041   $as_echo_n "(cached) " >&6
12042 else
12043   cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12051 #define shl_load innocuous_shl_load
12052
12053 /* System header to define __stub macros and hopefully few prototypes,
12054     which can conflict with char shl_load (); below.
12055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056     <limits.h> exists even on freestanding compilers.  */
12057
12058 #ifdef __STDC__
12059 # include <limits.h>
12060 #else
12061 # include <assert.h>
12062 #endif
12063
12064 #undef shl_load
12065
12066 /* Override any GCC internal prototype to avoid an error.
12067    Use char because int might match the return type of a GCC
12068    builtin and then its argument prototype would still apply.  */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char shl_load ();
12073 /* The GNU C library defines this for functions which it implements
12074     to always fail with ENOSYS.  Some functions are actually named
12075     something starting with __ and the normal name is an alias.  */
12076 #if defined __stub_shl_load || defined __stub___shl_load
12077 choke me
12078 #endif
12079
12080 int
12081 main ()
12082 {
12083 return shl_load ();
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092   *) ac_try_echo=$ac_try;;
12093 esac
12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096   (eval "$ac_link") 2>conftest.er1
12097   ac_status=$?
12098   grep -v '^ *+' conftest.er1 >conftest.err
12099   rm -f conftest.er1
12100   cat conftest.err >&5
12101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); } && {
12103          test -z "$ac_c_werror_flag" ||
12104          test ! -s conftest.err
12105        } && test -s conftest$ac_exeext && {
12106          test "$cross_compiling" = yes ||
12107          $as_test_x conftest$ac_exeext
12108        }; then
12109   ac_cv_func_shl_load=yes
12110 else
12111   $as_echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114         ac_cv_func_shl_load=no
12115 fi
12116
12117 rm -rf conftest.dSYM
12118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119       conftest$ac_exeext conftest.$ac_ext
12120 fi
12121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12122 $as_echo "$ac_cv_func_shl_load" >&6; }
12123 if test "x$ac_cv_func_shl_load" = x""yes; then
12124   lt_cv_dlopen="shl_load"
12125 else
12126   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12127 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12128 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12129   $as_echo_n "(cached) " >&6
12130 else
12131   ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-ldld  $LIBS"
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h.  */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h.  */
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141    Use char because int might match the return type of a GCC
12142    builtin and then its argument prototype would still apply.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char shl_load ();
12147 int
12148 main ()
12149 {
12150 return shl_load ();
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12162 $as_echo "$ac_try_echo") >&5
12163   (eval "$ac_link") 2>conftest.er1
12164   ac_status=$?
12165   grep -v '^ *+' conftest.er1 >conftest.err
12166   rm -f conftest.er1
12167   cat conftest.err >&5
12168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); } && {
12170          test -z "$ac_c_werror_flag" ||
12171          test ! -s conftest.err
12172        } && test -s conftest$ac_exeext && {
12173          test "$cross_compiling" = yes ||
12174          $as_test_x conftest$ac_exeext
12175        }; then
12176   ac_cv_lib_dld_shl_load=yes
12177 else
12178   $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181         ac_cv_lib_dld_shl_load=no
12182 fi
12183
12184 rm -rf conftest.dSYM
12185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12186       conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12188 fi
12189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12190 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12191 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12192   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12193 else
12194   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12195 $as_echo_n "checking for dlopen... " >&6; }
12196 if test "${ac_cv_func_dlopen+set}" = set; then
12197   $as_echo_n "(cached) " >&6
12198 else
12199   cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12207 #define dlopen innocuous_dlopen
12208
12209 /* System header to define __stub macros and hopefully few prototypes,
12210     which can conflict with char dlopen (); below.
12211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212     <limits.h> exists even on freestanding compilers.  */
12213
12214 #ifdef __STDC__
12215 # include <limits.h>
12216 #else
12217 # include <assert.h>
12218 #endif
12219
12220 #undef dlopen
12221
12222 /* Override any GCC internal prototype to avoid an error.
12223    Use char because int might match the return type of a GCC
12224    builtin and then its argument prototype would still apply.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char dlopen ();
12229 /* The GNU C library defines this for functions which it implements
12230     to always fail with ENOSYS.  Some functions are actually named
12231     something starting with __ and the normal name is an alias.  */
12232 #if defined __stub_dlopen || defined __stub___dlopen
12233 choke me
12234 #endif
12235
12236 int
12237 main ()
12238 {
12239 return dlopen ();
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12251 $as_echo "$ac_try_echo") >&5
12252   (eval "$ac_link") 2>conftest.er1
12253   ac_status=$?
12254   grep -v '^ *+' conftest.er1 >conftest.err
12255   rm -f conftest.er1
12256   cat conftest.err >&5
12257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } && {
12259          test -z "$ac_c_werror_flag" ||
12260          test ! -s conftest.err
12261        } && test -s conftest$ac_exeext && {
12262          test "$cross_compiling" = yes ||
12263          $as_test_x conftest$ac_exeext
12264        }; then
12265   ac_cv_func_dlopen=yes
12266 else
12267   $as_echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270         ac_cv_func_dlopen=no
12271 fi
12272
12273 rm -rf conftest.dSYM
12274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12275       conftest$ac_exeext conftest.$ac_ext
12276 fi
12277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12278 $as_echo "$ac_cv_func_dlopen" >&6; }
12279 if test "x$ac_cv_func_dlopen" = x""yes; then
12280   lt_cv_dlopen="dlopen"
12281 else
12282   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12285   $as_echo_n "(cached) " >&6
12286 else
12287   ac_check_lib_save_LIBS=$LIBS
12288 LIBS="-ldl  $LIBS"
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295
12296 /* Override any GCC internal prototype to avoid an error.
12297    Use char because int might match the return type of a GCC
12298    builtin and then its argument prototype would still apply.  */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char dlopen ();
12303 int
12304 main ()
12305 {
12306 return dlopen ();
12307   ;
12308   return 0;
12309 }
12310 _ACEOF
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (ac_try="$ac_link"
12313 case "(($ac_try" in
12314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315   *) ac_try_echo=$ac_try;;
12316 esac
12317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12318 $as_echo "$ac_try_echo") >&5
12319   (eval "$ac_link") 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } && {
12326          test -z "$ac_c_werror_flag" ||
12327          test ! -s conftest.err
12328        } && test -s conftest$ac_exeext && {
12329          test "$cross_compiling" = yes ||
12330          $as_test_x conftest$ac_exeext
12331        }; then
12332   ac_cv_lib_dl_dlopen=yes
12333 else
12334   $as_echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337         ac_cv_lib_dl_dlopen=no
12338 fi
12339
12340 rm -rf conftest.dSYM
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342       conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12344 fi
12345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12346 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12347 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12348   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12349 else
12350   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12351 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12352 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12353   $as_echo_n "(cached) " >&6
12354 else
12355   ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-lsvld  $LIBS"
12357 cat >conftest.$ac_ext <<_ACEOF
12358 /* confdefs.h.  */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h.  */
12363
12364 /* Override any GCC internal prototype to avoid an error.
12365    Use char because int might match the return type of a GCC
12366    builtin and then its argument prototype would still apply.  */
12367 #ifdef __cplusplus
12368 extern "C"
12369 #endif
12370 char dlopen ();
12371 int
12372 main ()
12373 {
12374 return dlopen ();
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383   *) ac_try_echo=$ac_try;;
12384 esac
12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386 $as_echo "$ac_try_echo") >&5
12387   (eval "$ac_link") 2>conftest.er1
12388   ac_status=$?
12389   grep -v '^ *+' conftest.er1 >conftest.err
12390   rm -f conftest.er1
12391   cat conftest.err >&5
12392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } && {
12394          test -z "$ac_c_werror_flag" ||
12395          test ! -s conftest.err
12396        } && test -s conftest$ac_exeext && {
12397          test "$cross_compiling" = yes ||
12398          $as_test_x conftest$ac_exeext
12399        }; then
12400   ac_cv_lib_svld_dlopen=yes
12401 else
12402   $as_echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405         ac_cv_lib_svld_dlopen=no
12406 fi
12407
12408 rm -rf conftest.dSYM
12409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12410       conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12414 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12415 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12416   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12417 else
12418   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12419 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12420 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12421   $as_echo_n "(cached) " >&6
12422 else
12423   ac_check_lib_save_LIBS=$LIBS
12424 LIBS="-ldld  $LIBS"
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431
12432 /* Override any GCC internal prototype to avoid an error.
12433    Use char because int might match the return type of a GCC
12434    builtin and then its argument prototype would still apply.  */
12435 #ifdef __cplusplus
12436 extern "C"
12437 #endif
12438 char dld_link ();
12439 int
12440 main ()
12441 {
12442 return dld_link ();
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (ac_try="$ac_link"
12449 case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12454 $as_echo "$ac_try_echo") >&5
12455   (eval "$ac_link") 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } && {
12462          test -z "$ac_c_werror_flag" ||
12463          test ! -s conftest.err
12464        } && test -s conftest$ac_exeext && {
12465          test "$cross_compiling" = yes ||
12466          $as_test_x conftest$ac_exeext
12467        }; then
12468   ac_cv_lib_dld_dld_link=yes
12469 else
12470   $as_echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473         ac_cv_lib_dld_dld_link=no
12474 fi
12475
12476 rm -rf conftest.dSYM
12477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12478       conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12480 fi
12481 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12482 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12483 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12484   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12485 fi
12486
12487
12488 fi
12489
12490
12491 fi
12492
12493
12494 fi
12495
12496
12497 fi
12498
12499
12500 fi
12501
12502     ;;
12503   esac
12504
12505   if test "x$lt_cv_dlopen" != xno; then
12506     enable_dlopen=yes
12507   else
12508     enable_dlopen=no
12509   fi
12510
12511   case $lt_cv_dlopen in
12512   dlopen)
12513     save_CPPFLAGS="$CPPFLAGS"
12514     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12515
12516     save_LDFLAGS="$LDFLAGS"
12517     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12518
12519     save_LIBS="$LIBS"
12520     LIBS="$lt_cv_dlopen_libs $LIBS"
12521
12522     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12523 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12524 if test "${lt_cv_dlopen_self+set}" = set; then
12525   $as_echo_n "(cached) " >&6
12526 else
12527           if test "$cross_compiling" = yes; then :
12528   lt_cv_dlopen_self=cross
12529 else
12530   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12531   lt_status=$lt_dlunknown
12532   cat > conftest.$ac_ext <<EOF
12533 #line 12533 "configure"
12534 #include "confdefs.h"
12535
12536 #if HAVE_DLFCN_H
12537 #include <dlfcn.h>
12538 #endif
12539
12540 #include <stdio.h>
12541
12542 #ifdef RTLD_GLOBAL
12543 #  define LT_DLGLOBAL           RTLD_GLOBAL
12544 #else
12545 #  ifdef DL_GLOBAL
12546 #    define LT_DLGLOBAL         DL_GLOBAL
12547 #  else
12548 #    define LT_DLGLOBAL         0
12549 #  endif
12550 #endif
12551
12552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12553    find out it does not work in some platform. */
12554 #ifndef LT_DLLAZY_OR_NOW
12555 #  ifdef RTLD_LAZY
12556 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12557 #  else
12558 #    ifdef DL_LAZY
12559 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12560 #    else
12561 #      ifdef RTLD_NOW
12562 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12563 #      else
12564 #        ifdef DL_NOW
12565 #          define LT_DLLAZY_OR_NOW      DL_NOW
12566 #        else
12567 #          define LT_DLLAZY_OR_NOW      0
12568 #        endif
12569 #      endif
12570 #    endif
12571 #  endif
12572 #endif
12573
12574 #ifdef __cplusplus
12575 extern "C" void exit (int);
12576 #endif
12577
12578 void fnord() { int i=42;}
12579 int main ()
12580 {
12581   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12582   int status = $lt_dlunknown;
12583
12584   if (self)
12585     {
12586       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12587       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12588       /* dlclose (self); */
12589     }
12590   else
12591     puts (dlerror ());
12592
12593     exit (status);
12594 }
12595 EOF
12596   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597   (eval $ac_link) 2>&5
12598   ac_status=$?
12599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12601     (./conftest; exit; ) >&5 2>/dev/null
12602     lt_status=$?
12603     case x$lt_status in
12604       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12605       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12606       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12607     esac
12608   else :
12609     # compilation failed
12610     lt_cv_dlopen_self=no
12611   fi
12612 fi
12613 rm -fr conftest*
12614
12615
12616 fi
12617 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12618 $as_echo "$lt_cv_dlopen_self" >&6; }
12619
12620     if test "x$lt_cv_dlopen_self" = xyes; then
12621       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12622       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12623 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12624 if test "${lt_cv_dlopen_self_static+set}" = set; then
12625   $as_echo_n "(cached) " >&6
12626 else
12627           if test "$cross_compiling" = yes; then :
12628   lt_cv_dlopen_self_static=cross
12629 else
12630   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12631   lt_status=$lt_dlunknown
12632   cat > conftest.$ac_ext <<EOF
12633 #line 12633 "configure"
12634 #include "confdefs.h"
12635
12636 #if HAVE_DLFCN_H
12637 #include <dlfcn.h>
12638 #endif
12639
12640 #include <stdio.h>
12641
12642 #ifdef RTLD_GLOBAL
12643 #  define LT_DLGLOBAL           RTLD_GLOBAL
12644 #else
12645 #  ifdef DL_GLOBAL
12646 #    define LT_DLGLOBAL         DL_GLOBAL
12647 #  else
12648 #    define LT_DLGLOBAL         0
12649 #  endif
12650 #endif
12651
12652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12653    find out it does not work in some platform. */
12654 #ifndef LT_DLLAZY_OR_NOW
12655 #  ifdef RTLD_LAZY
12656 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12657 #  else
12658 #    ifdef DL_LAZY
12659 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12660 #    else
12661 #      ifdef RTLD_NOW
12662 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12663 #      else
12664 #        ifdef DL_NOW
12665 #          define LT_DLLAZY_OR_NOW      DL_NOW
12666 #        else
12667 #          define LT_DLLAZY_OR_NOW      0
12668 #        endif
12669 #      endif
12670 #    endif
12671 #  endif
12672 #endif
12673
12674 #ifdef __cplusplus
12675 extern "C" void exit (int);
12676 #endif
12677
12678 void fnord() { int i=42;}
12679 int main ()
12680 {
12681   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12682   int status = $lt_dlunknown;
12683
12684   if (self)
12685     {
12686       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12687       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12688       /* dlclose (self); */
12689     }
12690   else
12691     puts (dlerror ());
12692
12693     exit (status);
12694 }
12695 EOF
12696   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697   (eval $ac_link) 2>&5
12698   ac_status=$?
12699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12701     (./conftest; exit; ) >&5 2>/dev/null
12702     lt_status=$?
12703     case x$lt_status in
12704       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12705       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12706       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12707     esac
12708   else :
12709     # compilation failed
12710     lt_cv_dlopen_self_static=no
12711   fi
12712 fi
12713 rm -fr conftest*
12714
12715
12716 fi
12717 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12718 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12719     fi
12720
12721     CPPFLAGS="$save_CPPFLAGS"
12722     LDFLAGS="$save_LDFLAGS"
12723     LIBS="$save_LIBS"
12724     ;;
12725   esac
12726
12727   case $lt_cv_dlopen_self in
12728   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12729   *) enable_dlopen_self=unknown ;;
12730   esac
12731
12732   case $lt_cv_dlopen_self_static in
12733   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12734   *) enable_dlopen_self_static=unknown ;;
12735   esac
12736 fi
12737
12738
12739 # Report which library types will actually be built
12740 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12741 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12742 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12743 $as_echo "$can_build_shared" >&6; }
12744
12745 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12746 $as_echo_n "checking whether to build shared libraries... " >&6; }
12747 test "$can_build_shared" = "no" && enable_shared=no
12748
12749 # On AIX, shared libraries and static libraries use the same namespace, and
12750 # are all built from PIC.
12751 case $host_os in
12752 aix3*)
12753   test "$enable_shared" = yes && enable_static=no
12754   if test -n "$RANLIB"; then
12755     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12756     postinstall_cmds='$RANLIB $lib'
12757   fi
12758   ;;
12759
12760 aix[4-9]*)
12761   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12762     test "$enable_shared" = yes && enable_static=no
12763   fi
12764     ;;
12765 esac
12766 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12767 $as_echo "$enable_shared" >&6; }
12768
12769 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12770 $as_echo_n "checking whether to build static libraries... " >&6; }
12771 # Make sure either enable_shared or enable_static is yes.
12772 test "$enable_shared" = yes || enable_static=yes
12773 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12774 $as_echo "$enable_static" >&6; }
12775
12776 # The else clause should only fire when bootstrapping the
12777 # libtool distribution, otherwise you forgot to ship ltmain.sh
12778 # with your package, and you will get complaints that there are
12779 # no rules to generate ltmain.sh.
12780 if test -f "$ltmain"; then
12781   # See if we are running on zsh, and set the options which allow our commands through
12782   # without removal of \ escapes.
12783   if test -n "${ZSH_VERSION+set}" ; then
12784     setopt NO_GLOB_SUBST
12785   fi
12786   # Now quote all the things that may contain metacharacters while being
12787   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12788   # variables and quote the copies for generation of the libtool script.
12789   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12790     SED SHELL STRIP \
12791     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12792     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12793     deplibs_check_method reload_flag reload_cmds need_locks \
12794     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12795     lt_cv_sys_global_symbol_to_c_name_address \
12796     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12797     old_postinstall_cmds old_postuninstall_cmds \
12798     compiler \
12799     CC \
12800     LD \
12801     lt_prog_compiler_wl \
12802     lt_prog_compiler_pic \
12803     lt_prog_compiler_static \
12804     lt_prog_compiler_no_builtin_flag \
12805     export_dynamic_flag_spec \
12806     thread_safe_flag_spec \
12807     whole_archive_flag_spec \
12808     enable_shared_with_static_runtimes \
12809     old_archive_cmds \
12810     old_archive_from_new_cmds \
12811     predep_objects \
12812     postdep_objects \
12813     predeps \
12814     postdeps \
12815     compiler_lib_search_path \
12816     compiler_lib_search_dirs \
12817     archive_cmds \
12818     archive_expsym_cmds \
12819     postinstall_cmds \
12820     postuninstall_cmds \
12821     old_archive_from_expsyms_cmds \
12822     allow_undefined_flag \
12823     no_undefined_flag \
12824     export_symbols_cmds \
12825     hardcode_libdir_flag_spec \
12826     hardcode_libdir_flag_spec_ld \
12827     hardcode_libdir_separator \
12828     hardcode_automatic \
12829     module_cmds \
12830     module_expsym_cmds \
12831     lt_cv_prog_compiler_c_o \
12832     fix_srcfile_path \
12833     exclude_expsyms \
12834     include_expsyms; do
12835
12836     case $var in
12837     old_archive_cmds | \
12838     old_archive_from_new_cmds | \
12839     archive_cmds | \
12840     archive_expsym_cmds | \
12841     module_cmds | \
12842     module_expsym_cmds | \
12843     old_archive_from_expsyms_cmds | \
12844     export_symbols_cmds | \
12845     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12846     postinstall_cmds | postuninstall_cmds | \
12847     old_postinstall_cmds | old_postuninstall_cmds | \
12848     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12849       # Double-quote double-evaled strings.
12850       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12851       ;;
12852     *)
12853       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12854       ;;
12855     esac
12856   done
12857
12858   case $lt_echo in
12859   *'\$0 --fallback-echo"')
12860     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12861     ;;
12862   esac
12863
12864 cfgfile="${ofile}T"
12865   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12866   $rm -f "$cfgfile"
12867   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12868 $as_echo "$as_me: creating $ofile" >&6;}
12869
12870   cat <<__EOF__ >> "$cfgfile"
12871 #! $SHELL
12872
12873 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12874 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12875 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12876 #
12877 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12878 # Free Software Foundation, Inc.
12879 #
12880 # This file is part of GNU Libtool:
12881 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12882 #
12883 # This program is free software; you can redistribute it and/or modify
12884 # it under the terms of the GNU General Public License as published by
12885 # the Free Software Foundation; either version 2 of the License, or
12886 # (at your option) any later version.
12887 #
12888 # This program is distributed in the hope that it will be useful, but
12889 # WITHOUT ANY WARRANTY; without even the implied warranty of
12890 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12891 # General Public License for more details.
12892 #
12893 # You should have received a copy of the GNU General Public License
12894 # along with this program; if not, write to the Free Software
12895 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12896 #
12897 # As a special exception to the GNU General Public License, if you
12898 # distribute this file as part of a program that contains a
12899 # configuration script generated by Autoconf, you may include it under
12900 # the same distribution terms that you use for the rest of that program.
12901
12902 # A sed program that does not truncate output.
12903 SED=$lt_SED
12904
12905 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12906 Xsed="$SED -e 1s/^X//"
12907
12908 # The HP-UX ksh and POSIX shell print the target directory to stdout
12909 # if CDPATH is set.
12910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12911
12912 # The names of the tagged configurations supported by this script.
12913 available_tags=
12914
12915 # ### BEGIN LIBTOOL CONFIG
12916
12917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12918
12919 # Shell to use when invoking shell scripts.
12920 SHELL=$lt_SHELL
12921
12922 # Whether or not to build shared libraries.
12923 build_libtool_libs=$enable_shared
12924
12925 # Whether or not to build static libraries.
12926 build_old_libs=$enable_static
12927
12928 # Whether or not to add -lc for building shared libraries.
12929 build_libtool_need_lc=$archive_cmds_need_lc
12930
12931 # Whether or not to disallow shared libs when runtime libs are static
12932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12933
12934 # Whether or not to optimize for fast installation.
12935 fast_install=$enable_fast_install
12936
12937 # The host system.
12938 host_alias=$host_alias
12939 host=$host
12940 host_os=$host_os
12941
12942 # The build system.
12943 build_alias=$build_alias
12944 build=$build
12945 build_os=$build_os
12946
12947 # An echo program that does not interpret backslashes.
12948 echo=$lt_echo
12949
12950 # The archiver.
12951 AR=$lt_AR
12952 AR_FLAGS=$lt_AR_FLAGS
12953
12954 # A C compiler.
12955 LTCC=$lt_LTCC
12956
12957 # LTCC compiler flags.
12958 LTCFLAGS=$lt_LTCFLAGS
12959
12960 # A language-specific compiler.
12961 CC=$lt_compiler
12962
12963 # Is the compiler the GNU C compiler?
12964 with_gcc=$GCC
12965
12966 # An ERE matcher.
12967 EGREP=$lt_EGREP
12968
12969 # The linker used to build libraries.
12970 LD=$lt_LD
12971
12972 # Whether we need hard or soft links.
12973 LN_S=$lt_LN_S
12974
12975 # A BSD-compatible nm program.
12976 NM=$lt_NM
12977
12978 # A symbol stripping program
12979 STRIP=$lt_STRIP
12980
12981 # Used to examine libraries when file_magic_cmd begins "file"
12982 MAGIC_CMD=$MAGIC_CMD
12983
12984 # Used on cygwin: DLL creation program.
12985 DLLTOOL="$DLLTOOL"
12986
12987 # Used on cygwin: object dumper.
12988 OBJDUMP="$OBJDUMP"
12989
12990 # Used on cygwin: assembler.
12991 AS="$AS"
12992
12993 # The name of the directory that contains temporary libtool files.
12994 objdir=$objdir
12995
12996 # How to create reloadable object files.
12997 reload_flag=$lt_reload_flag
12998 reload_cmds=$lt_reload_cmds
12999
13000 # How to pass a linker flag through the compiler.
13001 wl=$lt_lt_prog_compiler_wl
13002
13003 # Object file suffix (normally "o").
13004 objext="$ac_objext"
13005
13006 # Old archive suffix (normally "a").
13007 libext="$libext"
13008
13009 # Shared library suffix (normally ".so").
13010 shrext_cmds='$shrext_cmds'
13011
13012 # Executable file suffix (normally "").
13013 exeext="$exeext"
13014
13015 # Additional compiler flags for building library objects.
13016 pic_flag=$lt_lt_prog_compiler_pic
13017 pic_mode=$pic_mode
13018
13019 # What is the maximum length of a command?
13020 max_cmd_len=$lt_cv_sys_max_cmd_len
13021
13022 # Does compiler simultaneously support -c and -o options?
13023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13024
13025 # Must we lock files when doing compilation?
13026 need_locks=$lt_need_locks
13027
13028 # Do we need the lib prefix for modules?
13029 need_lib_prefix=$need_lib_prefix
13030
13031 # Do we need a version for libraries?
13032 need_version=$need_version
13033
13034 # Whether dlopen is supported.
13035 dlopen_support=$enable_dlopen
13036
13037 # Whether dlopen of programs is supported.
13038 dlopen_self=$enable_dlopen_self
13039
13040 # Whether dlopen of statically linked programs is supported.
13041 dlopen_self_static=$enable_dlopen_self_static
13042
13043 # Compiler flag to prevent dynamic linking.
13044 link_static_flag=$lt_lt_prog_compiler_static
13045
13046 # Compiler flag to turn off builtin functions.
13047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13048
13049 # Compiler flag to allow reflexive dlopens.
13050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13051
13052 # Compiler flag to generate shared objects directly from archives.
13053 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13054
13055 # Compiler flag to generate thread-safe objects.
13056 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13057
13058 # Library versioning type.
13059 version_type=$version_type
13060
13061 # Format of library name prefix.
13062 libname_spec=$lt_libname_spec
13063
13064 # List of archive names.  First name is the real one, the rest are links.
13065 # The last name is the one that the linker finds with -lNAME.
13066 library_names_spec=$lt_library_names_spec
13067
13068 # The coded name of the library, if different from the real name.
13069 soname_spec=$lt_soname_spec
13070
13071 # Commands used to build and install an old-style archive.
13072 RANLIB=$lt_RANLIB
13073 old_archive_cmds=$lt_old_archive_cmds
13074 old_postinstall_cmds=$lt_old_postinstall_cmds
13075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13076
13077 # Create an old-style archive from a shared archive.
13078 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13079
13080 # Create a temporary old-style archive to link instead of a shared archive.
13081 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13082
13083 # Commands used to build and install a shared archive.
13084 archive_cmds=$lt_archive_cmds
13085 archive_expsym_cmds=$lt_archive_expsym_cmds
13086 postinstall_cmds=$lt_postinstall_cmds
13087 postuninstall_cmds=$lt_postuninstall_cmds
13088
13089 # Commands used to build a loadable module (assumed same as above if empty)
13090 module_cmds=$lt_module_cmds
13091 module_expsym_cmds=$lt_module_expsym_cmds
13092
13093 # Commands to strip libraries.
13094 old_striplib=$lt_old_striplib
13095 striplib=$lt_striplib
13096
13097 # Dependencies to place before the objects being linked to create a
13098 # shared library.
13099 predep_objects=$lt_predep_objects
13100
13101 # Dependencies to place after the objects being linked to create a
13102 # shared library.
13103 postdep_objects=$lt_postdep_objects
13104
13105 # Dependencies to place before the objects being linked to create a
13106 # shared library.
13107 predeps=$lt_predeps
13108
13109 # Dependencies to place after the objects being linked to create a
13110 # shared library.
13111 postdeps=$lt_postdeps
13112
13113 # The directories searched by this compiler when creating a shared
13114 # library
13115 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13116
13117 # The library search path used internally by the compiler when linking
13118 # a shared library.
13119 compiler_lib_search_path=$lt_compiler_lib_search_path
13120
13121 # Method to check whether dependent libraries are shared objects.
13122 deplibs_check_method=$lt_deplibs_check_method
13123
13124 # Command to use when deplibs_check_method == file_magic.
13125 file_magic_cmd=$lt_file_magic_cmd
13126
13127 # Flag that allows shared libraries with undefined symbols to be built.
13128 allow_undefined_flag=$lt_allow_undefined_flag
13129
13130 # Flag that forces no undefined symbols.
13131 no_undefined_flag=$lt_no_undefined_flag
13132
13133 # Commands used to finish a libtool library installation in a directory.
13134 finish_cmds=$lt_finish_cmds
13135
13136 # Same as above, but a single script fragment to be evaled but not shown.
13137 finish_eval=$lt_finish_eval
13138
13139 # Take the output of nm and produce a listing of raw symbols and C names.
13140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13141
13142 # Transform the output of nm in a proper C declaration
13143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13144
13145 # Transform the output of nm in a C name address pair
13146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13147
13148 # This is the shared library runtime path variable.
13149 runpath_var=$runpath_var
13150
13151 # This is the shared library path variable.
13152 shlibpath_var=$shlibpath_var
13153
13154 # Is shlibpath searched before the hard-coded library search path?
13155 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13156
13157 # How to hardcode a shared library path into an executable.
13158 hardcode_action=$hardcode_action
13159
13160 # Whether we should hardcode library paths into libraries.
13161 hardcode_into_libs=$hardcode_into_libs
13162
13163 # Flag to hardcode \$libdir into a binary during linking.
13164 # This must work even if \$libdir does not exist.
13165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13166
13167 # If ld is used when linking, flag to hardcode \$libdir into
13168 # a binary during linking. This must work even if \$libdir does
13169 # not exist.
13170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13171
13172 # Whether we need a single -rpath flag with a separated argument.
13173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13174
13175 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13176 # resulting binary.
13177 hardcode_direct=$hardcode_direct
13178
13179 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13180 # resulting binary.
13181 hardcode_minus_L=$hardcode_minus_L
13182
13183 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13184 # the resulting binary.
13185 hardcode_shlibpath_var=$hardcode_shlibpath_var
13186
13187 # Set to yes if building a shared library automatically hardcodes DIR into the library
13188 # and all subsequent libraries and executables linked against it.
13189 hardcode_automatic=$hardcode_automatic
13190
13191 # Variables whose values should be saved in libtool wrapper scripts and
13192 # restored at relink time.
13193 variables_saved_for_relink="$variables_saved_for_relink"
13194
13195 # Whether libtool must link a program against all its dependency libraries.
13196 link_all_deplibs=$link_all_deplibs
13197
13198 # Compile-time system search path for libraries
13199 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13200
13201 # Run-time system search path for libraries
13202 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13203
13204 # Fix the shell variable \$srcfile for the compiler.
13205 fix_srcfile_path=$lt_fix_srcfile_path
13206
13207 # Set to yes if exported symbols are required.
13208 always_export_symbols=$always_export_symbols
13209
13210 # The commands to list exported symbols.
13211 export_symbols_cmds=$lt_export_symbols_cmds
13212
13213 # The commands to extract the exported symbol list from a shared archive.
13214 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13215
13216 # Symbols that should not be listed in the preloaded symbols.
13217 exclude_expsyms=$lt_exclude_expsyms
13218
13219 # Symbols that must always be exported.
13220 include_expsyms=$lt_include_expsyms
13221
13222 # ### END LIBTOOL CONFIG
13223
13224 __EOF__
13225
13226
13227   case $host_os in
13228   aix3*)
13229     cat <<\EOF >> "$cfgfile"
13230
13231 # AIX sometimes has problems with the GCC collect2 program.  For some
13232 # reason, if we set the COLLECT_NAMES environment variable, the problems
13233 # vanish in a puff of smoke.
13234 if test "X${COLLECT_NAMES+set}" != Xset; then
13235   COLLECT_NAMES=
13236   export COLLECT_NAMES
13237 fi
13238 EOF
13239     ;;
13240   esac
13241
13242   # We use sed instead of cat because bash on DJGPP gets confused if
13243   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13244   # text mode, it properly converts lines to CR/LF.  This bash problem
13245   # is reportedly fixed, but why not run on old versions too?
13246   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13247
13248   mv -f "$cfgfile" "$ofile" || \
13249     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13250   chmod +x "$ofile"
13251
13252 else
13253   # If there is no Makefile yet, we rely on a make rule to execute
13254   # `config.status --recheck' to rerun these tests and create the
13255   # libtool script then.
13256   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13257   if test -f "$ltmain_in"; then
13258     test -f Makefile && make "$ltmain"
13259   fi
13260 fi
13261
13262
13263 ac_ext=c
13264 ac_cpp='$CPP $CPPFLAGS'
13265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13268
13269 CC="$lt_save_CC"
13270
13271
13272 # Check whether --with-tags was given.
13273 if test "${with_tags+set}" = set; then
13274   withval=$with_tags; tagnames="$withval"
13275 fi
13276
13277
13278 if test -f "$ltmain" && test -n "$tagnames"; then
13279   if test ! -f "${ofile}"; then
13280     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13281 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13282   fi
13283
13284   if test -z "$LTCC"; then
13285     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13286     if test -z "$LTCC"; then
13287       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13288 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13289     else
13290       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13291 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13292     fi
13293   fi
13294   if test -z "$LTCFLAGS"; then
13295     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13296   fi
13297
13298   # Extract list of available tagged configurations in $ofile.
13299   # Note that this assumes the entire list is on one line.
13300   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13301
13302   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13303   for tagname in $tagnames; do
13304     IFS="$lt_save_ifs"
13305     # Check whether tagname contains only valid characters
13306     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13307     "") ;;
13308     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13309 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
13310    { (exit 1); exit 1; }; }
13311         ;;
13312     esac
13313
13314     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13315     then
13316       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13317 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13318    { (exit 1); exit 1; }; }
13319     fi
13320
13321     # Update the list of available tags.
13322     if test -n "$tagname"; then
13323       echo appending configuration tag \"$tagname\" to $ofile
13324
13325       case $tagname in
13326       CXX)
13327         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13328             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13329             (test "X$CXX" != "Xg++"))) ; then
13330           ac_ext=cpp
13331 ac_cpp='$CXXCPP $CPPFLAGS'
13332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13335
13336
13337
13338
13339 archive_cmds_need_lc_CXX=no
13340 allow_undefined_flag_CXX=
13341 always_export_symbols_CXX=no
13342 archive_expsym_cmds_CXX=
13343 export_dynamic_flag_spec_CXX=
13344 hardcode_direct_CXX=no
13345 hardcode_libdir_flag_spec_CXX=
13346 hardcode_libdir_flag_spec_ld_CXX=
13347 hardcode_libdir_separator_CXX=
13348 hardcode_minus_L_CXX=no
13349 hardcode_shlibpath_var_CXX=unsupported
13350 hardcode_automatic_CXX=no
13351 module_cmds_CXX=
13352 module_expsym_cmds_CXX=
13353 link_all_deplibs_CXX=unknown
13354 old_archive_cmds_CXX=$old_archive_cmds
13355 no_undefined_flag_CXX=
13356 whole_archive_flag_spec_CXX=
13357 enable_shared_with_static_runtimes_CXX=no
13358
13359 # Dependencies to place before and after the object being linked:
13360 predep_objects_CXX=
13361 postdep_objects_CXX=
13362 predeps_CXX=
13363 postdeps_CXX=
13364 compiler_lib_search_path_CXX=
13365 compiler_lib_search_dirs_CXX=
13366
13367 # Source file extension for C++ test sources.
13368 ac_ext=cpp
13369
13370 # Object file extension for compiled C++ test sources.
13371 objext=o
13372 objext_CXX=$objext
13373
13374 # Code to be used in simple compile tests
13375 lt_simple_compile_test_code="int some_variable = 0;"
13376
13377 # Code to be used in simple link tests
13378 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13379
13380 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13381
13382 # If no C compiler was specified, use CC.
13383 LTCC=${LTCC-"$CC"}
13384
13385 # If no C compiler flags were specified, use CFLAGS.
13386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13387
13388 # Allow CC to be a program name with arguments.
13389 compiler=$CC
13390
13391
13392 # save warnings/boilerplate of simple test code
13393 ac_outfile=conftest.$ac_objext
13394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13396 _lt_compiler_boilerplate=`cat conftest.err`
13397 $rm conftest*
13398
13399 ac_outfile=conftest.$ac_objext
13400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13402 _lt_linker_boilerplate=`cat conftest.err`
13403 $rm -r conftest*
13404
13405
13406 # Allow CC to be a program name with arguments.
13407 lt_save_CC=$CC
13408 lt_save_LD=$LD
13409 lt_save_GCC=$GCC
13410 GCC=$GXX
13411 lt_save_with_gnu_ld=$with_gnu_ld
13412 lt_save_path_LD=$lt_cv_path_LD
13413 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13414   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13415 else
13416   $as_unset lt_cv_prog_gnu_ld
13417 fi
13418 if test -n "${lt_cv_path_LDCXX+set}"; then
13419   lt_cv_path_LD=$lt_cv_path_LDCXX
13420 else
13421   $as_unset lt_cv_path_LD
13422 fi
13423 test -z "${LDCXX+set}" || LD=$LDCXX
13424 CC=${CXX-"c++"}
13425 compiler=$CC
13426 compiler_CXX=$CC
13427 for cc_temp in $compiler""; do
13428   case $cc_temp in
13429     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13430     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13431     \-*) ;;
13432     *) break;;
13433   esac
13434 done
13435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13436
13437
13438 # We don't want -fno-exception wen compiling C++ code, so set the
13439 # no_builtin_flag separately
13440 if test "$GXX" = yes; then
13441   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13442 else
13443   lt_prog_compiler_no_builtin_flag_CXX=
13444 fi
13445
13446 if test "$GXX" = yes; then
13447   # Set up default GNU C++ configuration
13448
13449
13450 # Check whether --with-gnu-ld was given.
13451 if test "${with_gnu_ld+set}" = set; then
13452   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13453 else
13454   with_gnu_ld=no
13455 fi
13456
13457 ac_prog=ld
13458 if test "$GCC" = yes; then
13459   # Check if gcc -print-prog-name=ld gives a path.
13460   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13461 $as_echo_n "checking for ld used by $CC... " >&6; }
13462   case $host in
13463   *-*-mingw*)
13464     # gcc leaves a trailing carriage return which upsets mingw
13465     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13466   *)
13467     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13468   esac
13469   case $ac_prog in
13470     # Accept absolute paths.
13471     [\\/]* | ?:[\\/]*)
13472       re_direlt='/[^/][^/]*/\.\./'
13473       # Canonicalize the pathname of ld
13474       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13475       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13476         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13477       done
13478       test -z "$LD" && LD="$ac_prog"
13479       ;;
13480   "")
13481     # If it fails, then pretend we aren't using GCC.
13482     ac_prog=ld
13483     ;;
13484   *)
13485     # If it is relative, then search for the first ld in PATH.
13486     with_gnu_ld=unknown
13487     ;;
13488   esac
13489 elif test "$with_gnu_ld" = yes; then
13490   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13491 $as_echo_n "checking for GNU ld... " >&6; }
13492 else
13493   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13494 $as_echo_n "checking for non-GNU ld... " >&6; }
13495 fi
13496 if test "${lt_cv_path_LD+set}" = set; then
13497   $as_echo_n "(cached) " >&6
13498 else
13499   if test -z "$LD"; then
13500   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13501   for ac_dir in $PATH; do
13502     IFS="$lt_save_ifs"
13503     test -z "$ac_dir" && ac_dir=.
13504     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13505       lt_cv_path_LD="$ac_dir/$ac_prog"
13506       # Check to see if the program is GNU ld.  I'd rather use --version,
13507       # but apparently some variants of GNU ld only accept -v.
13508       # Break only if it was the GNU/non-GNU ld that we prefer.
13509       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13510       *GNU* | *'with BFD'*)
13511         test "$with_gnu_ld" != no && break
13512         ;;
13513       *)
13514         test "$with_gnu_ld" != yes && break
13515         ;;
13516       esac
13517     fi
13518   done
13519   IFS="$lt_save_ifs"
13520 else
13521   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13522 fi
13523 fi
13524
13525 LD="$lt_cv_path_LD"
13526 if test -n "$LD"; then
13527   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13528 $as_echo "$LD" >&6; }
13529 else
13530   { $as_echo "$as_me:$LINENO: result: no" >&5
13531 $as_echo "no" >&6; }
13532 fi
13533 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13534 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13535    { (exit 1); exit 1; }; }
13536 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13538 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13539   $as_echo_n "(cached) " >&6
13540 else
13541   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13542 case `$LD -v 2>&1 </dev/null` in
13543 *GNU* | *'with BFD'*)
13544   lt_cv_prog_gnu_ld=yes
13545   ;;
13546 *)
13547   lt_cv_prog_gnu_ld=no
13548   ;;
13549 esac
13550 fi
13551 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13552 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13553 with_gnu_ld=$lt_cv_prog_gnu_ld
13554
13555
13556
13557   # Check if GNU C++ uses GNU ld as the underlying linker, since the
13558   # archiving commands below assume that GNU ld is being used.
13559   if test "$with_gnu_ld" = yes; then
13560     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561     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'
13562
13563     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13564     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13565
13566     # If archive_cmds runs LD, not CC, wlarc should be empty
13567     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13568     #     investigate it a little bit more. (MM)
13569     wlarc='${wl}'
13570
13571     # ancient GNU ld didn't support --whole-archive et. al.
13572     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13573         grep 'no-whole-archive' > /dev/null; then
13574       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13575     else
13576       whole_archive_flag_spec_CXX=
13577     fi
13578   else
13579     with_gnu_ld=no
13580     wlarc=
13581
13582     # A generic and very simple default shared library creation
13583     # command for GNU C++ for the case where it uses the native
13584     # linker, instead of GNU ld.  If possible, this setting should
13585     # overridden to take advantage of the native linker features on
13586     # the platform it is being used on.
13587     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13588   fi
13589
13590   # Commands to make compiler produce verbose output that lists
13591   # what "hidden" libraries, object files and flags are used when
13592   # linking a shared library.
13593   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13594
13595 else
13596   GXX=no
13597   with_gnu_ld=no
13598   wlarc=
13599 fi
13600
13601 # PORTME: fill in a description of your system's C++ link characteristics
13602 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13604 ld_shlibs_CXX=yes
13605 case $host_os in
13606   aix3*)
13607     # FIXME: insert proper C++ library support
13608     ld_shlibs_CXX=no
13609     ;;
13610   aix[4-9]*)
13611     if test "$host_cpu" = ia64; then
13612       # On IA64, the linker does run time linking by default, so we don't
13613       # have to do anything special.
13614       aix_use_runtimelinking=no
13615       exp_sym_flag='-Bexport'
13616       no_entry_flag=""
13617     else
13618       aix_use_runtimelinking=no
13619
13620       # Test if we are trying to use run time linking or normal
13621       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13622       # need to do runtime linking.
13623       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13624         for ld_flag in $LDFLAGS; do
13625           case $ld_flag in
13626           *-brtl*)
13627             aix_use_runtimelinking=yes
13628             break
13629             ;;
13630           esac
13631         done
13632         ;;
13633       esac
13634
13635       exp_sym_flag='-bexport'
13636       no_entry_flag='-bnoentry'
13637     fi
13638
13639     # When large executables or shared objects are built, AIX ld can
13640     # have problems creating the table of contents.  If linking a library
13641     # or program results in "error TOC overflow" add -mminimal-toc to
13642     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13643     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13644
13645     archive_cmds_CXX=''
13646     hardcode_direct_CXX=yes
13647     hardcode_libdir_separator_CXX=':'
13648     link_all_deplibs_CXX=yes
13649
13650     if test "$GXX" = yes; then
13651       case $host_os in aix4.[012]|aix4.[012].*)
13652       # We only want to do this on AIX 4.2 and lower, the check
13653       # below for broken collect2 doesn't work under 4.3+
13654         collect2name=`${CC} -print-prog-name=collect2`
13655         if test -f "$collect2name" && \
13656            strings "$collect2name" | grep resolve_lib_name >/dev/null
13657         then
13658           # We have reworked collect2
13659           :
13660         else
13661           # We have old collect2
13662           hardcode_direct_CXX=unsupported
13663           # It fails to find uninstalled libraries when the uninstalled
13664           # path is not listed in the libpath.  Setting hardcode_minus_L
13665           # to unsupported forces relinking
13666           hardcode_minus_L_CXX=yes
13667           hardcode_libdir_flag_spec_CXX='-L$libdir'
13668           hardcode_libdir_separator_CXX=
13669         fi
13670         ;;
13671       esac
13672       shared_flag='-shared'
13673       if test "$aix_use_runtimelinking" = yes; then
13674         shared_flag="$shared_flag "'${wl}-G'
13675       fi
13676     else
13677       # not using gcc
13678       if test "$host_cpu" = ia64; then
13679         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13680         # chokes on -Wl,-G. The following line is correct:
13681         shared_flag='-G'
13682       else
13683         if test "$aix_use_runtimelinking" = yes; then
13684           shared_flag='${wl}-G'
13685         else
13686           shared_flag='${wl}-bM:SRE'
13687         fi
13688       fi
13689     fi
13690
13691     # It seems that -bexpall does not export symbols beginning with
13692     # underscore (_), so it is better to generate a list of symbols to export.
13693     always_export_symbols_CXX=yes
13694     if test "$aix_use_runtimelinking" = yes; then
13695       # Warning - without using the other runtime loading flags (-brtl),
13696       # -berok will link without error, but may produce a broken library.
13697       allow_undefined_flag_CXX='-berok'
13698       # Determine the default libpath from the value encoded in an empty executable.
13699       cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705
13706 int
13707 main ()
13708 {
13709
13710   ;
13711   return 0;
13712 }
13713 _ACEOF
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (ac_try="$ac_link"
13716 case "(($ac_try" in
13717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718   *) ac_try_echo=$ac_try;;
13719 esac
13720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13721 $as_echo "$ac_try_echo") >&5
13722   (eval "$ac_link") 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } && {
13729          test -z "$ac_cxx_werror_flag" ||
13730          test ! -s conftest.err
13731        } && test -s conftest$ac_exeext && {
13732          test "$cross_compiling" = yes ||
13733          $as_test_x conftest$ac_exeext
13734        }; then
13735
13736 lt_aix_libpath_sed='
13737     /Import File Strings/,/^$/ {
13738         /^0/ {
13739             s/^0  *\(.*\)$/\1/
13740             p
13741         }
13742     }'
13743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13744 # Check for a 64-bit object if we didn't find anything.
13745 if test -z "$aix_libpath"; then
13746   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13747 fi
13748 else
13749   $as_echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752
13753 fi
13754
13755 rm -rf conftest.dSYM
13756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13757       conftest$ac_exeext conftest.$ac_ext
13758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13759
13760       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13761
13762       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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13763      else
13764       if test "$host_cpu" = ia64; then
13765         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13766         allow_undefined_flag_CXX="-z nodefs"
13767         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"
13768       else
13769         # Determine the default libpath from the value encoded in an empty executable.
13770         cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776
13777 int
13778 main ()
13779 {
13780
13781   ;
13782   return 0;
13783 }
13784 _ACEOF
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13792 $as_echo "$ac_try_echo") >&5
13793   (eval "$ac_link") 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } && {
13800          test -z "$ac_cxx_werror_flag" ||
13801          test ! -s conftest.err
13802        } && test -s conftest$ac_exeext && {
13803          test "$cross_compiling" = yes ||
13804          $as_test_x conftest$ac_exeext
13805        }; then
13806
13807 lt_aix_libpath_sed='
13808     /Import File Strings/,/^$/ {
13809         /^0/ {
13810             s/^0  *\(.*\)$/\1/
13811             p
13812         }
13813     }'
13814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13815 # Check for a 64-bit object if we didn't find anything.
13816 if test -z "$aix_libpath"; then
13817   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13818 fi
13819 else
13820   $as_echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823
13824 fi
13825
13826 rm -rf conftest.dSYM
13827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13828       conftest$ac_exeext conftest.$ac_ext
13829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13830
13831         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13832         # Warning - without using the other run time loading flags,
13833         # -berok will link without error, but may produce a broken library.
13834         no_undefined_flag_CXX=' ${wl}-bernotok'
13835         allow_undefined_flag_CXX=' ${wl}-berok'
13836         # Exported symbols can be pulled into shared objects from archives
13837         whole_archive_flag_spec_CXX='$convenience'
13838         archive_cmds_need_lc_CXX=yes
13839         # This is similar to how AIX traditionally builds its shared libraries.
13840         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'
13841       fi
13842     fi
13843     ;;
13844
13845   beos*)
13846     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13847       allow_undefined_flag_CXX=unsupported
13848       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13849       # support --undefined.  This deserves some investigation.  FIXME
13850       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851     else
13852       ld_shlibs_CXX=no
13853     fi
13854     ;;
13855
13856   chorus*)
13857     case $cc_basename in
13858       *)
13859         # FIXME: insert proper C++ library support
13860         ld_shlibs_CXX=no
13861         ;;
13862     esac
13863     ;;
13864
13865   cygwin* | mingw* | pw32*)
13866     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13867     # as there is no search path for DLLs.
13868     hardcode_libdir_flag_spec_CXX='-L$libdir'
13869     allow_undefined_flag_CXX=unsupported
13870     always_export_symbols_CXX=no
13871     enable_shared_with_static_runtimes_CXX=yes
13872
13873     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13874       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'
13875       # If the export-symbols file already is a .def file (1st line
13876       # is EXPORTS), use it as is; otherwise, prepend...
13877       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13878         cp $export_symbols $output_objdir/$soname.def;
13879       else
13880         echo EXPORTS > $output_objdir/$soname.def;
13881         cat $export_symbols >> $output_objdir/$soname.def;
13882       fi~
13883       $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'
13884     else
13885       ld_shlibs_CXX=no
13886     fi
13887   ;;
13888       darwin* | rhapsody*)
13889       archive_cmds_need_lc_CXX=no
13890       hardcode_direct_CXX=no
13891       hardcode_automatic_CXX=yes
13892       hardcode_shlibpath_var_CXX=unsupported
13893       whole_archive_flag_spec_CXX=''
13894       link_all_deplibs_CXX=yes
13895       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13896       if test "$GXX" = yes ; then
13897       output_verbose_link_cmd='echo'
13898       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}"
13899       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13900       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}"
13901       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}"
13902       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13903         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}"
13904         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}"
13905       fi
13906       else
13907       case $cc_basename in
13908         xlc*)
13909          output_verbose_link_cmd='echo'
13910           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13911           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13912           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13913           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13914           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13915           ;;
13916        *)
13917          ld_shlibs_CXX=no
13918           ;;
13919       esac
13920       fi
13921         ;;
13922
13923   dgux*)
13924     case $cc_basename in
13925       ec++*)
13926         # FIXME: insert proper C++ library support
13927         ld_shlibs_CXX=no
13928         ;;
13929       ghcx*)
13930         # Green Hills C++ Compiler
13931         # FIXME: insert proper C++ library support
13932         ld_shlibs_CXX=no
13933         ;;
13934       *)
13935         # FIXME: insert proper C++ library support
13936         ld_shlibs_CXX=no
13937         ;;
13938     esac
13939     ;;
13940   freebsd[12]*)
13941     # C++ shared libraries reported to be fairly broken before switch to ELF
13942     ld_shlibs_CXX=no
13943     ;;
13944   freebsd-elf*)
13945     archive_cmds_need_lc_CXX=no
13946     ;;
13947   freebsd* | dragonfly*)
13948     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13949     # conventions
13950     ld_shlibs_CXX=yes
13951     ;;
13952   gnu*)
13953     ;;
13954   hpux9*)
13955     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13956     hardcode_libdir_separator_CXX=:
13957     export_dynamic_flag_spec_CXX='${wl}-E'
13958     hardcode_direct_CXX=yes
13959     hardcode_minus_L_CXX=yes # Not in the search PATH,
13960                                 # but as the default
13961                                 # location of the library.
13962
13963     case $cc_basename in
13964     CC*)
13965       # FIXME: insert proper C++ library support
13966       ld_shlibs_CXX=no
13967       ;;
13968     aCC*)
13969       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'
13970       # Commands to make compiler produce verbose output that lists
13971       # what "hidden" libraries, object files and flags are used when
13972       # linking a shared library.
13973       #
13974       # There doesn't appear to be a way to prevent this compiler from
13975       # explicitly linking system object files so we need to strip them
13976       # from the output so that they don't get included in the library
13977       # dependencies.
13978       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 $list'
13979       ;;
13980     *)
13981       if test "$GXX" = yes; then
13982         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'
13983       else
13984         # FIXME: insert proper C++ library support
13985         ld_shlibs_CXX=no
13986       fi
13987       ;;
13988     esac
13989     ;;
13990   hpux10*|hpux11*)
13991     if test $with_gnu_ld = no; then
13992       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13993       hardcode_libdir_separator_CXX=:
13994
13995       case $host_cpu in
13996       hppa*64*|ia64*) ;;
13997       *)
13998         export_dynamic_flag_spec_CXX='${wl}-E'
13999         ;;
14000       esac
14001     fi
14002     case $host_cpu in
14003     hppa*64*|ia64*)
14004       hardcode_direct_CXX=no
14005       hardcode_shlibpath_var_CXX=no
14006       ;;
14007     *)
14008       hardcode_direct_CXX=yes
14009       hardcode_minus_L_CXX=yes # Not in the search PATH,
14010                                               # but as the default
14011                                               # location of the library.
14012       ;;
14013     esac
14014
14015     case $cc_basename in
14016       CC*)
14017         # FIXME: insert proper C++ library support
14018         ld_shlibs_CXX=no
14019         ;;
14020       aCC*)
14021         case $host_cpu in
14022         hppa*64*)
14023           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14024           ;;
14025         ia64*)
14026           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14027           ;;
14028         *)
14029           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14030           ;;
14031         esac
14032         # Commands to make compiler produce verbose output that lists
14033         # what "hidden" libraries, object files and flags are used when
14034         # linking a shared library.
14035         #
14036         # There doesn't appear to be a way to prevent this compiler from
14037         # explicitly linking system object files so we need to strip them
14038         # from the output so that they don't get included in the library
14039         # dependencies.
14040         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 $list'
14041         ;;
14042       *)
14043         if test "$GXX" = yes; then
14044           if test $with_gnu_ld = no; then
14045             case $host_cpu in
14046             hppa*64*)
14047               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14048               ;;
14049             ia64*)
14050               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14051               ;;
14052             *)
14053               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'
14054               ;;
14055             esac
14056           fi
14057         else
14058           # FIXME: insert proper C++ library support
14059           ld_shlibs_CXX=no
14060         fi
14061         ;;
14062     esac
14063     ;;
14064   interix[3-9]*)
14065     hardcode_direct_CXX=no
14066     hardcode_shlibpath_var_CXX=no
14067     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14068     export_dynamic_flag_spec_CXX='${wl}-E'
14069     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14070     # Instead, shared libraries are loaded at an image base (0x10000000 by
14071     # default) and relocated if they conflict, which is a slow very memory
14072     # consuming and fragmenting process.  To avoid this, we pick a random,
14073     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14074     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14075     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'
14076     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'
14077     ;;
14078   irix5* | irix6*)
14079     case $cc_basename in
14080       CC*)
14081         # SGI C++
14082         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14083
14084         # Archives containing C++ object files must be created using
14085         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14086         # necessary to make sure instantiated templates are included
14087         # in the archive.
14088         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14089         ;;
14090       *)
14091         if test "$GXX" = yes; then
14092           if test "$with_gnu_ld" = no; then
14093             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14094           else
14095             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14096           fi
14097         fi
14098         link_all_deplibs_CXX=yes
14099         ;;
14100     esac
14101     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14102     hardcode_libdir_separator_CXX=:
14103     ;;
14104   linux* | k*bsd*-gnu)
14105     case $cc_basename in
14106       KCC*)
14107         # Kuck and Associates, Inc. (KAI) C++ Compiler
14108
14109         # KCC will only create a shared library if the output file
14110         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14111         # to its proper name (with version) after linking.
14112         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'
14113         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'
14114         # Commands to make compiler produce verbose output that lists
14115         # what "hidden" libraries, object files and flags are used when
14116         # linking a shared library.
14117         #
14118         # There doesn't appear to be a way to prevent this compiler from
14119         # explicitly linking system object files so we need to strip them
14120         # from the output so that they don't get included in the library
14121         # dependencies.
14122         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 $list'
14123
14124         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14125         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14126
14127         # Archives containing C++ object files must be created using
14128         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14129         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14130         ;;
14131       icpc*)
14132         # Intel C++
14133         with_gnu_ld=yes
14134         # version 8.0 and above of icpc choke on multiply defined symbols
14135         # if we add $predep_objects and $postdep_objects, however 7.1 and
14136         # earlier do not add the objects themselves.
14137         case `$CC -V 2>&1` in
14138         *"Version 7."*)
14139           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14140           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'
14141           ;;
14142         *)  # Version 8.0 or newer
14143           tmp_idyn=
14144           case $host_cpu in
14145             ia64*) tmp_idyn=' -i_dynamic';;
14146           esac
14147           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14148           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'
14149           ;;
14150         esac
14151         archive_cmds_need_lc_CXX=no
14152         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14153         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14154         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14155         ;;
14156       pgCC* | pgcpp*)
14157         # Portland Group C++ compiler
14158         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14159         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'
14160
14161         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14162         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14163         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'
14164         ;;
14165       cxx*)
14166         # Compaq C++
14167         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168         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'
14169
14170         runpath_var=LD_RUN_PATH
14171         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14172         hardcode_libdir_separator_CXX=:
14173
14174         # Commands to make compiler produce verbose output that lists
14175         # what "hidden" libraries, object files and flags are used when
14176         # linking a shared library.
14177         #
14178         # There doesn't appear to be a way to prevent this compiler from
14179         # explicitly linking system object files so we need to strip them
14180         # from the output so that they don't get included in the library
14181         # dependencies.
14182         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
14183         ;;
14184       *)
14185         case `$CC -V 2>&1 | sed 5q` in
14186         *Sun\ C*)
14187           # Sun C++ 5.9
14188           no_undefined_flag_CXX=' -zdefs'
14189           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14190           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'
14191           hardcode_libdir_flag_spec_CXX='-R$libdir'
14192           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'
14193
14194           # Not sure whether something based on
14195           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14196           # would be better.
14197           output_verbose_link_cmd='echo'
14198
14199           # Archives containing C++ object files must be created using
14200           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14201           # necessary to make sure instantiated templates are included
14202           # in the archive.
14203           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14204           ;;
14205         esac
14206         ;;
14207     esac
14208     ;;
14209   lynxos*)
14210     # FIXME: insert proper C++ library support
14211     ld_shlibs_CXX=no
14212     ;;
14213   m88k*)
14214     # FIXME: insert proper C++ library support
14215     ld_shlibs_CXX=no
14216     ;;
14217   mvs*)
14218     case $cc_basename in
14219       cxx*)
14220         # FIXME: insert proper C++ library support
14221         ld_shlibs_CXX=no
14222         ;;
14223       *)
14224         # FIXME: insert proper C++ library support
14225         ld_shlibs_CXX=no
14226         ;;
14227     esac
14228     ;;
14229   netbsd*)
14230     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14231       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14232       wlarc=
14233       hardcode_libdir_flag_spec_CXX='-R$libdir'
14234       hardcode_direct_CXX=yes
14235       hardcode_shlibpath_var_CXX=no
14236     fi
14237     # Workaround some broken pre-1.5 toolchains
14238     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14239     ;;
14240   openbsd2*)
14241     # C++ shared libraries are fairly broken
14242     ld_shlibs_CXX=no
14243     ;;
14244   openbsd*)
14245     if test -f /usr/libexec/ld.so; then
14246       hardcode_direct_CXX=yes
14247       hardcode_shlibpath_var_CXX=no
14248       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14249       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14250       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14251         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14252         export_dynamic_flag_spec_CXX='${wl}-E'
14253         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14254       fi
14255       output_verbose_link_cmd='echo'
14256     else
14257       ld_shlibs_CXX=no
14258     fi
14259     ;;
14260   osf3*)
14261     case $cc_basename in
14262       KCC*)
14263         # Kuck and Associates, Inc. (KAI) C++ Compiler
14264
14265         # KCC will only create a shared library if the output file
14266         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14267         # to its proper name (with version) after linking.
14268         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'
14269
14270         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14271         hardcode_libdir_separator_CXX=:
14272
14273         # Archives containing C++ object files must be created using
14274         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14275         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14276
14277         ;;
14278       RCC*)
14279         # Rational C++ 2.4.1
14280         # FIXME: insert proper C++ library support
14281         ld_shlibs_CXX=no
14282         ;;
14283       cxx*)
14284         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14285         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14286
14287         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14288         hardcode_libdir_separator_CXX=:
14289
14290         # Commands to make compiler produce verbose output that lists
14291         # what "hidden" libraries, object files and flags are used when
14292         # linking a shared library.
14293         #
14294         # There doesn't appear to be a way to prevent this compiler from
14295         # explicitly linking system object files so we need to strip them
14296         # from the output so that they don't get included in the library
14297         # dependencies.
14298         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
14299         ;;
14300       *)
14301         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14302           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14303           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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14304
14305           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14306           hardcode_libdir_separator_CXX=:
14307
14308           # Commands to make compiler produce verbose output that lists
14309           # what "hidden" libraries, object files and flags are used when
14310           # linking a shared library.
14311           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14312
14313         else
14314           # FIXME: insert proper C++ library support
14315           ld_shlibs_CXX=no
14316         fi
14317         ;;
14318     esac
14319     ;;
14320   osf4* | osf5*)
14321     case $cc_basename in
14322       KCC*)
14323         # Kuck and Associates, Inc. (KAI) C++ Compiler
14324
14325         # KCC will only create a shared library if the output file
14326         # ends with ".so" (or ".sl" for HP-UX), so rename the library
14327         # to its proper name (with version) after linking.
14328         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'
14329
14330         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14331         hardcode_libdir_separator_CXX=:
14332
14333         # Archives containing C++ object files must be created using
14334         # the KAI C++ compiler.
14335         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14336         ;;
14337       RCC*)
14338         # Rational C++ 2.4.1
14339         # FIXME: insert proper C++ library support
14340         ld_shlibs_CXX=no
14341         ;;
14342       cxx*)
14343         allow_undefined_flag_CXX=' -expect_unresolved \*'
14344         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14345         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14346           echo "-hidden">> $lib.exp~
14347           $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
14348           $rm $lib.exp'
14349
14350         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14351         hardcode_libdir_separator_CXX=:
14352
14353         # Commands to make compiler produce verbose output that lists
14354         # what "hidden" libraries, object files and flags are used when
14355         # linking a shared library.
14356         #
14357         # There doesn't appear to be a way to prevent this compiler from
14358         # explicitly linking system object files so we need to strip them
14359         # from the output so that they don't get included in the library
14360         # dependencies.
14361         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
14362         ;;
14363       *)
14364         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14365           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14366          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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14367
14368           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14369           hardcode_libdir_separator_CXX=:
14370
14371           # Commands to make compiler produce verbose output that lists
14372           # what "hidden" libraries, object files and flags are used when
14373           # linking a shared library.
14374           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14375
14376         else
14377           # FIXME: insert proper C++ library support
14378           ld_shlibs_CXX=no
14379         fi
14380         ;;
14381     esac
14382     ;;
14383   psos*)
14384     # FIXME: insert proper C++ library support
14385     ld_shlibs_CXX=no
14386     ;;
14387   sunos4*)
14388     case $cc_basename in
14389       CC*)
14390         # Sun C++ 4.x
14391         # FIXME: insert proper C++ library support
14392         ld_shlibs_CXX=no
14393         ;;
14394       lcc*)
14395         # Lucid
14396         # FIXME: insert proper C++ library support
14397         ld_shlibs_CXX=no
14398         ;;
14399       *)
14400         # FIXME: insert proper C++ library support
14401         ld_shlibs_CXX=no
14402         ;;
14403     esac
14404     ;;
14405   solaris*)
14406     case $cc_basename in
14407       CC*)
14408         # Sun C++ 4.2, 5.x and Centerline C++
14409         archive_cmds_need_lc_CXX=yes
14410         no_undefined_flag_CXX=' -zdefs'
14411         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14412         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14413         $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'
14414
14415         hardcode_libdir_flag_spec_CXX='-R$libdir'
14416         hardcode_shlibpath_var_CXX=no
14417         case $host_os in
14418           solaris2.[0-5] | solaris2.[0-5].*) ;;
14419           *)
14420             # The compiler driver will combine and reorder linker options,
14421             # but understands `-z linker_flag'.
14422             # Supported since Solaris 2.6 (maybe 2.5.1?)
14423             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14424             ;;
14425         esac
14426         link_all_deplibs_CXX=yes
14427
14428         output_verbose_link_cmd='echo'
14429
14430         # Archives containing C++ object files must be created using
14431         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14432         # necessary to make sure instantiated templates are included
14433         # in the archive.
14434         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14435         ;;
14436       gcx*)
14437         # Green Hills C++ Compiler
14438         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14439
14440         # The C++ compiler must be used to create the archive.
14441         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14442         ;;
14443       *)
14444         # GNU C++ compiler with Solaris linker
14445         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14446           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14447           if $CC --version | grep -v '^2\.7' > /dev/null; then
14448             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14449             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14450                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14451
14452             # Commands to make compiler produce verbose output that lists
14453             # what "hidden" libraries, object files and flags are used when
14454             # linking a shared library.
14455             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14456           else
14457             # g++ 2.7 appears to require `-G' NOT `-shared' on this
14458             # platform.
14459             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14460             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14461                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14462
14463             # Commands to make compiler produce verbose output that lists
14464             # what "hidden" libraries, object files and flags are used when
14465             # linking a shared library.
14466             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14467           fi
14468
14469           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14470           case $host_os in
14471           solaris2.[0-5] | solaris2.[0-5].*) ;;
14472           *)
14473             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14474             ;;
14475           esac
14476         fi
14477         ;;
14478     esac
14479     ;;
14480   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14481     no_undefined_flag_CXX='${wl}-z,text'
14482     archive_cmds_need_lc_CXX=no
14483     hardcode_shlibpath_var_CXX=no
14484     runpath_var='LD_RUN_PATH'
14485
14486     case $cc_basename in
14487       CC*)
14488         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14490         ;;
14491       *)
14492         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14493         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14494         ;;
14495     esac
14496     ;;
14497   sysv5* | sco3.2v5* | sco5v6*)
14498     # Note: We can NOT use -z defs as we might desire, because we do not
14499     # link with -lc, and that would cause any symbols used from libc to
14500     # always be unresolved, which means just about no library would
14501     # ever link correctly.  If we're not using GNU ld we use -z text
14502     # though, which does catch some bad symbols but isn't as heavy-handed
14503     # as -z defs.
14504     # For security reasons, it is highly recommended that you always
14505     # use absolute paths for naming shared libraries, and exclude the
14506     # DT_RUNPATH tag from executables and libraries.  But doing so
14507     # requires that you compile everything twice, which is a pain.
14508     # So that behaviour is only enabled if SCOABSPATH is set to a
14509     # non-empty value in the environment.  Most likely only useful for
14510     # creating official distributions of packages.
14511     # This is a hack until libtool officially supports absolute path
14512     # names for shared libraries.
14513     no_undefined_flag_CXX='${wl}-z,text'
14514     allow_undefined_flag_CXX='${wl}-z,nodefs'
14515     archive_cmds_need_lc_CXX=no
14516     hardcode_shlibpath_var_CXX=no
14517     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14518     hardcode_libdir_separator_CXX=':'
14519     link_all_deplibs_CXX=yes
14520     export_dynamic_flag_spec_CXX='${wl}-Bexport'
14521     runpath_var='LD_RUN_PATH'
14522
14523     case $cc_basename in
14524       CC*)
14525         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14526         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14527         ;;
14528       *)
14529         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531         ;;
14532     esac
14533     ;;
14534   tandem*)
14535     case $cc_basename in
14536       NCC*)
14537         # NonStop-UX NCC 3.20
14538         # FIXME: insert proper C++ library support
14539         ld_shlibs_CXX=no
14540         ;;
14541       *)
14542         # FIXME: insert proper C++ library support
14543         ld_shlibs_CXX=no
14544         ;;
14545     esac
14546     ;;
14547   vxworks*)
14548     # FIXME: insert proper C++ library support
14549     ld_shlibs_CXX=no
14550     ;;
14551   *)
14552     # FIXME: insert proper C++ library support
14553     ld_shlibs_CXX=no
14554     ;;
14555 esac
14556 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14557 $as_echo "$ld_shlibs_CXX" >&6; }
14558 test "$ld_shlibs_CXX" = no && can_build_shared=no
14559
14560 GCC_CXX="$GXX"
14561 LD_CXX="$LD"
14562
14563 cat > conftest.$ac_ext <<EOF
14564 class Foo
14565 {
14566 public:
14567   Foo (void) { a = 0; }
14568 private:
14569   int a;
14570 };
14571 EOF
14572
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574   (eval $ac_compile) 2>&5
14575   ac_status=$?
14576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; then
14578   # Parse the compiler output and extract the necessary
14579   # objects, libraries and library flags.
14580
14581   # Sentinel used to keep track of whether or not we are before
14582   # the conftest object file.
14583   pre_test_object_deps_done=no
14584
14585   # The `*' in the case matches for architectures that use `case' in
14586   # $output_verbose_cmd can trigger glob expansion during the loop
14587   # eval without this substitution.
14588   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14589
14590   for p in `eval $output_verbose_link_cmd`; do
14591     case $p in
14592
14593     -L* | -R* | -l*)
14594        # Some compilers place space between "-{L,R}" and the path.
14595        # Remove the space.
14596        if test $p = "-L" \
14597           || test $p = "-R"; then
14598          prev=$p
14599          continue
14600        else
14601          prev=
14602        fi
14603
14604        if test "$pre_test_object_deps_done" = no; then
14605          case $p in
14606          -L* | -R*)
14607            # Internal compiler library paths should come after those
14608            # provided the user.  The postdeps already come after the
14609            # user supplied libs so there is no need to process them.
14610            if test -z "$compiler_lib_search_path_CXX"; then
14611              compiler_lib_search_path_CXX="${prev}${p}"
14612            else
14613              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14614            fi
14615            ;;
14616          # The "-l" case would never come before the object being
14617          # linked, so don't bother handling this case.
14618          esac
14619        else
14620          if test -z "$postdeps_CXX"; then
14621            postdeps_CXX="${prev}${p}"
14622          else
14623            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14624          fi
14625        fi
14626        ;;
14627
14628     *.$objext)
14629        # This assumes that the test object file only shows up
14630        # once in the compiler output.
14631        if test "$p" = "conftest.$objext"; then
14632          pre_test_object_deps_done=yes
14633          continue
14634        fi
14635
14636        if test "$pre_test_object_deps_done" = no; then
14637          if test -z "$predep_objects_CXX"; then
14638            predep_objects_CXX="$p"
14639          else
14640            predep_objects_CXX="$predep_objects_CXX $p"
14641          fi
14642        else
14643          if test -z "$postdep_objects_CXX"; then
14644            postdep_objects_CXX="$p"
14645          else
14646            postdep_objects_CXX="$postdep_objects_CXX $p"
14647          fi
14648        fi
14649        ;;
14650
14651     *) ;; # Ignore the rest.
14652
14653     esac
14654   done
14655
14656   # Clean up.
14657   rm -f a.out a.exe
14658 else
14659   echo "libtool.m4: error: problem compiling CXX test program"
14660 fi
14661
14662 $rm -f confest.$objext
14663
14664 compiler_lib_search_dirs_CXX=
14665 if test -n "$compiler_lib_search_path_CXX"; then
14666   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14667 fi
14668
14669 # PORTME: override above test on systems where it is broken
14670 case $host_os in
14671 interix[3-9]*)
14672   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14673   # hack all around it, let's just trust "g++" to DTRT.
14674   predep_objects_CXX=
14675   postdep_objects_CXX=
14676   postdeps_CXX=
14677   ;;
14678
14679 linux*)
14680   case `$CC -V 2>&1 | sed 5q` in
14681   *Sun\ C*)
14682     # Sun C++ 5.9
14683     #
14684     # The more standards-conforming stlport4 library is
14685     # incompatible with the Cstd library. Avoid specifying
14686     # it if it's in CXXFLAGS. Ignore libCrun as
14687     # -library=stlport4 depends on it.
14688     case " $CXX $CXXFLAGS " in
14689     *" -library=stlport4 "*)
14690       solaris_use_stlport4=yes
14691       ;;
14692     esac
14693     if test "$solaris_use_stlport4" != yes; then
14694       postdeps_CXX='-library=Cstd -library=Crun'
14695     fi
14696     ;;
14697   esac
14698   ;;
14699
14700 solaris*)
14701   case $cc_basename in
14702   CC*)
14703     # The more standards-conforming stlport4 library is
14704     # incompatible with the Cstd library. Avoid specifying
14705     # it if it's in CXXFLAGS. Ignore libCrun as
14706     # -library=stlport4 depends on it.
14707     case " $CXX $CXXFLAGS " in
14708     *" -library=stlport4 "*)
14709       solaris_use_stlport4=yes
14710       ;;
14711     esac
14712
14713     # Adding this requires a known-good setup of shared libraries for
14714     # Sun compiler versions before 5.6, else PIC objects from an old
14715     # archive will be linked into the output, leading to subtle bugs.
14716     if test "$solaris_use_stlport4" != yes; then
14717       postdeps_CXX='-library=Cstd -library=Crun'
14718     fi
14719     ;;
14720   esac
14721   ;;
14722 esac
14723
14724 case " $postdeps_CXX " in
14725 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14726 esac
14727
14728 lt_prog_compiler_wl_CXX=
14729 lt_prog_compiler_pic_CXX=
14730 lt_prog_compiler_static_CXX=
14731
14732 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14733 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14734
14735   # C++ specific cases for pic, static, wl, etc.
14736   if test "$GXX" = yes; then
14737     lt_prog_compiler_wl_CXX='-Wl,'
14738     lt_prog_compiler_static_CXX='-static'
14739
14740     case $host_os in
14741     aix*)
14742       # All AIX code is PIC.
14743       if test "$host_cpu" = ia64; then
14744         # AIX 5 now supports IA64 processor
14745         lt_prog_compiler_static_CXX='-Bstatic'
14746       fi
14747       ;;
14748     amigaos*)
14749       # FIXME: we need at least 68020 code to build shared libraries, but
14750       # adding the `-m68020' flag to GCC prevents building anything better,
14751       # like `-m68040'.
14752       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14753       ;;
14754     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14755       # PIC is the default for these OSes.
14756       ;;
14757     mingw* | cygwin* | os2* | pw32*)
14758       # This hack is so that the source file can tell whether it is being
14759       # built for inclusion in a dll (and should export symbols for example).
14760       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14761       # (--disable-auto-import) libraries
14762       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14763       ;;
14764     darwin* | rhapsody*)
14765       # PIC is the default on this platform
14766       # Common symbols not allowed in MH_DYLIB files
14767       lt_prog_compiler_pic_CXX='-fno-common'
14768       ;;
14769     *djgpp*)
14770       # DJGPP does not support shared libraries at all
14771       lt_prog_compiler_pic_CXX=
14772       ;;
14773     interix[3-9]*)
14774       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14775       # Instead, we relocate shared libraries at runtime.
14776       ;;
14777     sysv4*MP*)
14778       if test -d /usr/nec; then
14779         lt_prog_compiler_pic_CXX=-Kconform_pic
14780       fi
14781       ;;
14782     hpux*)
14783       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784       # not for PA HP-UX.
14785       case $host_cpu in
14786       hppa*64*|ia64*)
14787         ;;
14788       *)
14789         lt_prog_compiler_pic_CXX='-fPIC'
14790         ;;
14791       esac
14792       ;;
14793     *)
14794       lt_prog_compiler_pic_CXX='-fPIC'
14795       ;;
14796     esac
14797   else
14798     case $host_os in
14799       aix[4-9]*)
14800         # All AIX code is PIC.
14801         if test "$host_cpu" = ia64; then
14802           # AIX 5 now supports IA64 processor
14803           lt_prog_compiler_static_CXX='-Bstatic'
14804         else
14805           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14806         fi
14807         ;;
14808       chorus*)
14809         case $cc_basename in
14810         cxch68*)
14811           # Green Hills C++ Compiler
14812           # _LT_AC_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"
14813           ;;
14814         esac
14815         ;;
14816        darwin*)
14817          # PIC is the default on this platform
14818          # Common symbols not allowed in MH_DYLIB files
14819          case $cc_basename in
14820            xlc*)
14821            lt_prog_compiler_pic_CXX='-qnocommon'
14822            lt_prog_compiler_wl_CXX='-Wl,'
14823            ;;
14824          esac
14825        ;;
14826       dgux*)
14827         case $cc_basename in
14828           ec++*)
14829             lt_prog_compiler_pic_CXX='-KPIC'
14830             ;;
14831           ghcx*)
14832             # Green Hills C++ Compiler
14833             lt_prog_compiler_pic_CXX='-pic'
14834             ;;
14835           *)
14836             ;;
14837         esac
14838         ;;
14839       freebsd* | dragonfly*)
14840         # FreeBSD uses GNU C++
14841         ;;
14842       hpux9* | hpux10* | hpux11*)
14843         case $cc_basename in
14844           CC*)
14845             lt_prog_compiler_wl_CXX='-Wl,'
14846             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14847             if test "$host_cpu" != ia64; then
14848               lt_prog_compiler_pic_CXX='+Z'
14849             fi
14850             ;;
14851           aCC*)
14852             lt_prog_compiler_wl_CXX='-Wl,'
14853             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14854             case $host_cpu in
14855             hppa*64*|ia64*)
14856               # +Z the default
14857               ;;
14858             *)
14859               lt_prog_compiler_pic_CXX='+Z'
14860               ;;
14861             esac
14862             ;;
14863           *)
14864             ;;
14865         esac
14866         ;;
14867       interix*)
14868         # This is c89, which is MS Visual C++ (no shared libs)
14869         # Anyone wants to do a port?
14870         ;;
14871       irix5* | irix6* | nonstopux*)
14872         case $cc_basename in
14873           CC*)
14874             lt_prog_compiler_wl_CXX='-Wl,'
14875             lt_prog_compiler_static_CXX='-non_shared'
14876             # CC pic flag -KPIC is the default.
14877             ;;
14878           *)
14879             ;;
14880         esac
14881         ;;
14882       linux* | k*bsd*-gnu)
14883         case $cc_basename in
14884           KCC*)
14885             # KAI C++ Compiler
14886             lt_prog_compiler_wl_CXX='--backend -Wl,'
14887             lt_prog_compiler_pic_CXX='-fPIC'
14888             ;;
14889           icpc* | ecpc*)
14890             # Intel C++
14891             lt_prog_compiler_wl_CXX='-Wl,'
14892             lt_prog_compiler_pic_CXX='-KPIC'
14893             lt_prog_compiler_static_CXX='-static'
14894             ;;
14895           pgCC* | pgcpp*)
14896             # Portland Group C++ compiler.
14897             lt_prog_compiler_wl_CXX='-Wl,'
14898             lt_prog_compiler_pic_CXX='-fpic'
14899             lt_prog_compiler_static_CXX='-Bstatic'
14900             ;;
14901           cxx*)
14902             # Compaq C++
14903             # Make sure the PIC flag is empty.  It appears that all Alpha
14904             # Linux and Compaq Tru64 Unix objects are PIC.
14905             lt_prog_compiler_pic_CXX=
14906             lt_prog_compiler_static_CXX='-non_shared'
14907             ;;
14908           *)
14909             case `$CC -V 2>&1 | sed 5q` in
14910             *Sun\ C*)
14911               # Sun C++ 5.9
14912               lt_prog_compiler_pic_CXX='-KPIC'
14913               lt_prog_compiler_static_CXX='-Bstatic'
14914               lt_prog_compiler_wl_CXX='-Qoption ld '
14915               ;;
14916             esac
14917             ;;
14918         esac
14919         ;;
14920       lynxos*)
14921         ;;
14922       m88k*)
14923         ;;
14924       mvs*)
14925         case $cc_basename in
14926           cxx*)
14927             lt_prog_compiler_pic_CXX='-W c,exportall'
14928             ;;
14929           *)
14930             ;;
14931         esac
14932         ;;
14933       netbsd*)
14934         ;;
14935       osf3* | osf4* | osf5*)
14936         case $cc_basename in
14937           KCC*)
14938             lt_prog_compiler_wl_CXX='--backend -Wl,'
14939             ;;
14940           RCC*)
14941             # Rational C++ 2.4.1
14942             lt_prog_compiler_pic_CXX='-pic'
14943             ;;
14944           cxx*)
14945             # Digital/Compaq C++
14946             lt_prog_compiler_wl_CXX='-Wl,'
14947             # Make sure the PIC flag is empty.  It appears that all Alpha
14948             # Linux and Compaq Tru64 Unix objects are PIC.
14949             lt_prog_compiler_pic_CXX=
14950             lt_prog_compiler_static_CXX='-non_shared'
14951             ;;
14952           *)
14953             ;;
14954         esac
14955         ;;
14956       psos*)
14957         ;;
14958       solaris*)
14959         case $cc_basename in
14960           CC*)
14961             # Sun C++ 4.2, 5.x and Centerline C++
14962             lt_prog_compiler_pic_CXX='-KPIC'
14963             lt_prog_compiler_static_CXX='-Bstatic'
14964             lt_prog_compiler_wl_CXX='-Qoption ld '
14965             ;;
14966           gcx*)
14967             # Green Hills C++ Compiler
14968             lt_prog_compiler_pic_CXX='-PIC'
14969             ;;
14970           *)
14971             ;;
14972         esac
14973         ;;
14974       sunos4*)
14975         case $cc_basename in
14976           CC*)
14977             # Sun C++ 4.x
14978             lt_prog_compiler_pic_CXX='-pic'
14979             lt_prog_compiler_static_CXX='-Bstatic'
14980             ;;
14981           lcc*)
14982             # Lucid
14983             lt_prog_compiler_pic_CXX='-pic'
14984             ;;
14985           *)
14986             ;;
14987         esac
14988         ;;
14989       tandem*)
14990         case $cc_basename in
14991           NCC*)
14992             # NonStop-UX NCC 3.20
14993             lt_prog_compiler_pic_CXX='-KPIC'
14994             ;;
14995           *)
14996             ;;
14997         esac
14998         ;;
14999       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15000         case $cc_basename in
15001           CC*)
15002             lt_prog_compiler_wl_CXX='-Wl,'
15003             lt_prog_compiler_pic_CXX='-KPIC'
15004             lt_prog_compiler_static_CXX='-Bstatic'
15005             ;;
15006         esac
15007         ;;
15008       vxworks*)
15009         ;;
15010       *)
15011         lt_prog_compiler_can_build_shared_CXX=no
15012         ;;
15013     esac
15014   fi
15015
15016 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15017 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15018
15019 #
15020 # Check to make sure the PIC flag actually works.
15021 #
15022 if test -n "$lt_prog_compiler_pic_CXX"; then
15023
15024 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15026 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15027   $as_echo_n "(cached) " >&6
15028 else
15029   lt_cv_prog_compiler_pic_works_CXX=no
15030   ac_outfile=conftest.$ac_objext
15031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15032    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15033    # Insert the option either (1) after the last *FLAGS variable, or
15034    # (2) before a word containing "conftest.", or (3) at the end.
15035    # Note that $ac_compile itself does not contain backslashes and begins
15036    # with a dollar sign (not a hyphen), so the echo should work correctly.
15037    # The option is referenced via a variable to avoid confusing sed.
15038    lt_compile=`echo "$ac_compile" | $SED \
15039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15041    -e 's:$: $lt_compiler_flag:'`
15042    (eval echo "\"\$as_me:15042: $lt_compile\"" >&5)
15043    (eval "$lt_compile" 2>conftest.err)
15044    ac_status=$?
15045    cat conftest.err >&5
15046    echo "$as_me:15046: \$? = $ac_status" >&5
15047    if (exit $ac_status) && test -s "$ac_outfile"; then
15048      # The compiler can only warn and ignore the option if not recognized
15049      # So say no if there are warnings other than the usual output.
15050      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15051      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15052      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15053        lt_cv_prog_compiler_pic_works_CXX=yes
15054      fi
15055    fi
15056    $rm conftest*
15057
15058 fi
15059 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15060 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15061
15062 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15063     case $lt_prog_compiler_pic_CXX in
15064      "" | " "*) ;;
15065      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15066      esac
15067 else
15068     lt_prog_compiler_pic_CXX=
15069      lt_prog_compiler_can_build_shared_CXX=no
15070 fi
15071
15072 fi
15073 case $host_os in
15074   # For platforms which do not support PIC, -DPIC is meaningless:
15075   *djgpp*)
15076     lt_prog_compiler_pic_CXX=
15077     ;;
15078   *)
15079     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15080     ;;
15081 esac
15082
15083 #
15084 # Check to make sure the static flag actually works.
15085 #
15086 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15087 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15088 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15089 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15090   $as_echo_n "(cached) " >&6
15091 else
15092   lt_cv_prog_compiler_static_works_CXX=no
15093    save_LDFLAGS="$LDFLAGS"
15094    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15095    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15096    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15097      # The linker can only warn and ignore the option if not recognized
15098      # So say no if there are warnings
15099      if test -s conftest.err; then
15100        # Append any errors to the config.log.
15101        cat conftest.err 1>&5
15102        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15103        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15104        if diff conftest.exp conftest.er2 >/dev/null; then
15105          lt_cv_prog_compiler_static_works_CXX=yes
15106        fi
15107      else
15108        lt_cv_prog_compiler_static_works_CXX=yes
15109      fi
15110    fi
15111    $rm -r conftest*
15112    LDFLAGS="$save_LDFLAGS"
15113
15114 fi
15115 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15116 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15117
15118 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15119     :
15120 else
15121     lt_prog_compiler_static_CXX=
15122 fi
15123
15124
15125 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15127 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15128   $as_echo_n "(cached) " >&6
15129 else
15130   lt_cv_prog_compiler_c_o_CXX=no
15131    $rm -r conftest 2>/dev/null
15132    mkdir conftest
15133    cd conftest
15134    mkdir out
15135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15136
15137    lt_compiler_flag="-o out/conftest2.$ac_objext"
15138    # Insert the option either (1) after the last *FLAGS variable, or
15139    # (2) before a word containing "conftest.", or (3) at the end.
15140    # Note that $ac_compile itself does not contain backslashes and begins
15141    # with a dollar sign (not a hyphen), so the echo should work correctly.
15142    lt_compile=`echo "$ac_compile" | $SED \
15143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15145    -e 's:$: $lt_compiler_flag:'`
15146    (eval echo "\"\$as_me:15146: $lt_compile\"" >&5)
15147    (eval "$lt_compile" 2>out/conftest.err)
15148    ac_status=$?
15149    cat out/conftest.err >&5
15150    echo "$as_me:15150: \$? = $ac_status" >&5
15151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15152    then
15153      # The compiler can only warn and ignore the option if not recognized
15154      # So say no if there are warnings
15155      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15156      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15157      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15158        lt_cv_prog_compiler_c_o_CXX=yes
15159      fi
15160    fi
15161    chmod u+w . 2>&5
15162    $rm conftest*
15163    # SGI C++ compiler will create directory out/ii_files/ for
15164    # template instantiation
15165    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15166    $rm out/* && rmdir out
15167    cd ..
15168    rmdir conftest
15169    $rm conftest*
15170
15171 fi
15172 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15173 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15174
15175
15176 hard_links="nottested"
15177 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15178   # do not overwrite the value of need_locks provided by the user
15179   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15180 $as_echo_n "checking if we can lock with hard links... " >&6; }
15181   hard_links=yes
15182   $rm conftest*
15183   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15184   touch conftest.a
15185   ln conftest.a conftest.b 2>&5 || hard_links=no
15186   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15187   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15188 $as_echo "$hard_links" >&6; }
15189   if test "$hard_links" = no; then
15190     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15191 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15192     need_locks=warn
15193   fi
15194 else
15195   need_locks=no
15196 fi
15197
15198 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15199 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15200
15201   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15202   case $host_os in
15203   aix[4-9]*)
15204     # If we're using GNU nm, then we don't want the "-C" option.
15205     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15206     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15207       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15208     else
15209       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15210     fi
15211     ;;
15212   pw32*)
15213     export_symbols_cmds_CXX="$ltdll_cmds"
15214   ;;
15215   cygwin* | mingw*)
15216     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15217   ;;
15218   *)
15219     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15220   ;;
15221   esac
15222   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15223
15224 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15225 $as_echo "$ld_shlibs_CXX" >&6; }
15226 test "$ld_shlibs_CXX" = no && can_build_shared=no
15227
15228 #
15229 # Do we need to explicitly link libc?
15230 #
15231 case "x$archive_cmds_need_lc_CXX" in
15232 x|xyes)
15233   # Assume -lc should be added
15234   archive_cmds_need_lc_CXX=yes
15235
15236   if test "$enable_shared" = yes && test "$GCC" = yes; then
15237     case $archive_cmds_CXX in
15238     *'~'*)
15239       # FIXME: we may have to deal with multi-command sequences.
15240       ;;
15241     '$CC '*)
15242       # Test whether the compiler implicitly links with -lc since on some
15243       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15244       # to ld, don't add -lc before -lgcc.
15245       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15246 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15247       $rm conftest*
15248       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15249
15250       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251   (eval $ac_compile) 2>&5
15252   ac_status=$?
15253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); } 2>conftest.err; then
15255         soname=conftest
15256         lib=conftest
15257         libobjs=conftest.$ac_objext
15258         deplibs=
15259         wl=$lt_prog_compiler_wl_CXX
15260         pic_flag=$lt_prog_compiler_pic_CXX
15261         compiler_flags=-v
15262         linker_flags=-v
15263         verstring=
15264         output_objdir=.
15265         libname=conftest
15266         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15267         allow_undefined_flag_CXX=
15268         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15269   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15270   ac_status=$?
15271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }
15273         then
15274           archive_cmds_need_lc_CXX=no
15275         else
15276           archive_cmds_need_lc_CXX=yes
15277         fi
15278         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15279       else
15280         cat conftest.err 1>&5
15281       fi
15282       $rm conftest*
15283       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15284 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15285       ;;
15286     esac
15287   fi
15288   ;;
15289 esac
15290
15291 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15292 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15293 library_names_spec=
15294 libname_spec='lib$name'
15295 soname_spec=
15296 shrext_cmds=".so"
15297 postinstall_cmds=
15298 postuninstall_cmds=
15299 finish_cmds=
15300 finish_eval=
15301 shlibpath_var=
15302 shlibpath_overrides_runpath=unknown
15303 version_type=none
15304 dynamic_linker="$host_os ld.so"
15305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15306
15307 need_lib_prefix=unknown
15308 hardcode_into_libs=no
15309
15310 # when you set need_version to no, make sure it does not cause -set_version
15311 # flags to be left without arguments
15312 need_version=unknown
15313
15314 case $host_os in
15315 aix3*)
15316   version_type=linux
15317   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15318   shlibpath_var=LIBPATH
15319
15320   # AIX 3 has no versioning support, so we append a major version to the name.
15321   soname_spec='${libname}${release}${shared_ext}$major'
15322   ;;
15323
15324 aix[4-9]*)
15325   version_type=linux
15326   need_lib_prefix=no
15327   need_version=no
15328   hardcode_into_libs=yes
15329   if test "$host_cpu" = ia64; then
15330     # AIX 5 supports IA64
15331     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15332     shlibpath_var=LD_LIBRARY_PATH
15333   else
15334     # With GCC up to 2.95.x, collect2 would create an import file
15335     # for dependence libraries.  The import file would start with
15336     # the line `#! .'.  This would cause the generated library to
15337     # depend on `.', always an invalid library.  This was fixed in
15338     # development snapshots of GCC prior to 3.0.
15339     case $host_os in
15340       aix4 | aix4.[01] | aix4.[01].*)
15341       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15342            echo ' yes '
15343            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15344         :
15345       else
15346         can_build_shared=no
15347       fi
15348       ;;
15349     esac
15350     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15351     # soname into executable. Probably we can add versioning support to
15352     # collect2, so additional links can be useful in future.
15353     if test "$aix_use_runtimelinking" = yes; then
15354       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15355       # instead of lib<name>.a to let people know that these are not
15356       # typical AIX shared libraries.
15357       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358     else
15359       # We preserve .a as extension for shared libraries through AIX4.2
15360       # and later when we are not doing run time linking.
15361       library_names_spec='${libname}${release}.a $libname.a'
15362       soname_spec='${libname}${release}${shared_ext}$major'
15363     fi
15364     shlibpath_var=LIBPATH
15365   fi
15366   ;;
15367
15368 amigaos*)
15369   library_names_spec='$libname.ixlibrary $libname.a'
15370   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15371   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'
15372   ;;
15373
15374 beos*)
15375   library_names_spec='${libname}${shared_ext}'
15376   dynamic_linker="$host_os ld.so"
15377   shlibpath_var=LIBRARY_PATH
15378   ;;
15379
15380 bsdi[45]*)
15381   version_type=linux
15382   need_version=no
15383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384   soname_spec='${libname}${release}${shared_ext}$major'
15385   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15386   shlibpath_var=LD_LIBRARY_PATH
15387   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15388   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15389   # the default ld.so.conf also contains /usr/contrib/lib and
15390   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15391   # libtool to hard-code these into programs
15392   ;;
15393
15394 cygwin* | mingw* | pw32*)
15395   version_type=windows
15396   shrext_cmds=".dll"
15397   need_version=no
15398   need_lib_prefix=no
15399
15400   case $GCC,$host_os in
15401   yes,cygwin* | yes,mingw* | yes,pw32*)
15402     library_names_spec='$libname.dll.a'
15403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15404     postinstall_cmds='base_file=`basename \${file}`~
15405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15406       dldir=$destdir/`dirname \$dlpath`~
15407       test -d \$dldir || mkdir -p \$dldir~
15408       $install_prog $dir/$dlname \$dldir/$dlname~
15409       chmod a+x \$dldir/$dlname'
15410     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15411       dlpath=$dir/\$dldll~
15412        $rm \$dlpath'
15413     shlibpath_overrides_runpath=yes
15414
15415     case $host_os in
15416     cygwin*)
15417       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15418       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15419       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15420       ;;
15421     mingw*)
15422       # MinGW DLLs use traditional 'lib' prefix
15423       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15425       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15426         # It is most probably a Windows format PATH printed by
15427         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15428         # path with ; separators, and with drive letters. We can handle the
15429         # drive letters (cygwin fileutils understands them), so leave them,
15430         # especially as we might pass files found there to a mingw objdump,
15431         # which wouldn't understand a cygwinified path. Ahh.
15432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15433       else
15434         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15435       fi
15436       ;;
15437     pw32*)
15438       # pw32 DLLs use 'pw' prefix rather than 'lib'
15439       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440       ;;
15441     esac
15442     ;;
15443
15444   *)
15445     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15446     ;;
15447   esac
15448   dynamic_linker='Win32 ld.exe'
15449   # FIXME: first we should search . and the directory the executable is in
15450   shlibpath_var=PATH
15451   ;;
15452
15453 darwin* | rhapsody*)
15454   dynamic_linker="$host_os dyld"
15455   version_type=darwin
15456   need_lib_prefix=no
15457   need_version=no
15458   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15459   soname_spec='${libname}${release}${major}$shared_ext'
15460   shlibpath_overrides_runpath=yes
15461   shlibpath_var=DYLD_LIBRARY_PATH
15462   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15463
15464   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15465   ;;
15466
15467 dgux*)
15468   version_type=linux
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   shlibpath_var=LD_LIBRARY_PATH
15474   ;;
15475
15476 freebsd1*)
15477   dynamic_linker=no
15478   ;;
15479
15480 freebsd* | dragonfly*)
15481   # DragonFly does not have aout.  When/if they implement a new
15482   # versioning mechanism, adjust this.
15483   if test -x /usr/bin/objformat; then
15484     objformat=`/usr/bin/objformat`
15485   else
15486     case $host_os in
15487     freebsd[123]*) objformat=aout ;;
15488     *) objformat=elf ;;
15489     esac
15490   fi
15491   version_type=freebsd-$objformat
15492   case $version_type in
15493     freebsd-elf*)
15494       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15495       need_version=no
15496       need_lib_prefix=no
15497       ;;
15498     freebsd-*)
15499       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15500       need_version=yes
15501       ;;
15502   esac
15503   shlibpath_var=LD_LIBRARY_PATH
15504   case $host_os in
15505   freebsd2*)
15506     shlibpath_overrides_runpath=yes
15507     ;;
15508   freebsd3.[01]* | freebsdelf3.[01]*)
15509     shlibpath_overrides_runpath=yes
15510     hardcode_into_libs=yes
15511     ;;
15512   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15513   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15514     shlibpath_overrides_runpath=no
15515     hardcode_into_libs=yes
15516     ;;
15517   *) # from 4.6 on, and DragonFly
15518     shlibpath_overrides_runpath=yes
15519     hardcode_into_libs=yes
15520     ;;
15521   esac
15522   ;;
15523
15524 gnu*)
15525   version_type=linux
15526   need_lib_prefix=no
15527   need_version=no
15528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15529   soname_spec='${libname}${release}${shared_ext}$major'
15530   shlibpath_var=LD_LIBRARY_PATH
15531   hardcode_into_libs=yes
15532   ;;
15533
15534 hpux9* | hpux10* | hpux11*)
15535   # Give a soname corresponding to the major version so that dld.sl refuses to
15536   # link against other versions.
15537   version_type=sunos
15538   need_lib_prefix=no
15539   need_version=no
15540   case $host_cpu in
15541   ia64*)
15542     shrext_cmds='.so'
15543     hardcode_into_libs=yes
15544     dynamic_linker="$host_os dld.so"
15545     shlibpath_var=LD_LIBRARY_PATH
15546     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548     soname_spec='${libname}${release}${shared_ext}$major'
15549     if test "X$HPUX_IA64_MODE" = X32; then
15550       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15551     else
15552       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15553     fi
15554     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15555     ;;
15556    hppa*64*)
15557      shrext_cmds='.sl'
15558      hardcode_into_libs=yes
15559      dynamic_linker="$host_os dld.sl"
15560      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15561      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15562      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563      soname_spec='${libname}${release}${shared_ext}$major'
15564      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15565      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15566      ;;
15567    *)
15568     shrext_cmds='.sl'
15569     dynamic_linker="$host_os dld.sl"
15570     shlibpath_var=SHLIB_PATH
15571     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573     soname_spec='${libname}${release}${shared_ext}$major'
15574     ;;
15575   esac
15576   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15577   postinstall_cmds='chmod 555 $lib'
15578   ;;
15579
15580 interix[3-9]*)
15581   version_type=linux
15582   need_lib_prefix=no
15583   need_version=no
15584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15585   soname_spec='${libname}${release}${shared_ext}$major'
15586   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15587   shlibpath_var=LD_LIBRARY_PATH
15588   shlibpath_overrides_runpath=no
15589   hardcode_into_libs=yes
15590   ;;
15591
15592 irix5* | irix6* | nonstopux*)
15593   case $host_os in
15594     nonstopux*) version_type=nonstopux ;;
15595     *)
15596         if test "$lt_cv_prog_gnu_ld" = yes; then
15597                 version_type=linux
15598         else
15599                 version_type=irix
15600         fi ;;
15601   esac
15602   need_lib_prefix=no
15603   need_version=no
15604   soname_spec='${libname}${release}${shared_ext}$major'
15605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15606   case $host_os in
15607   irix5* | nonstopux*)
15608     libsuff= shlibsuff=
15609     ;;
15610   *)
15611     case $LD in # libtool.m4 will add one of these switches to LD
15612     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15613       libsuff= shlibsuff= libmagic=32-bit;;
15614     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15615       libsuff=32 shlibsuff=N32 libmagic=N32;;
15616     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15617       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15618     *) libsuff= shlibsuff= libmagic=never-match;;
15619     esac
15620     ;;
15621   esac
15622   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15623   shlibpath_overrides_runpath=no
15624   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15625   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15626   hardcode_into_libs=yes
15627   ;;
15628
15629 # No shared lib support for Linux oldld, aout, or coff.
15630 linux*oldld* | linux*aout* | linux*coff*)
15631   dynamic_linker=no
15632   ;;
15633
15634 # This must be Linux ELF.
15635 linux* | k*bsd*-gnu)
15636   version_type=linux
15637   need_lib_prefix=no
15638   need_version=no
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640   soname_spec='${libname}${release}${shared_ext}$major'
15641   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15642   shlibpath_var=LD_LIBRARY_PATH
15643   shlibpath_overrides_runpath=no
15644   # This implies no fast_install, which is unacceptable.
15645   # Some rework will be needed to allow for fast_install
15646   # before this can be enabled.
15647   hardcode_into_libs=yes
15648   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15649   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15650
15651   # Append ld.so.conf contents to the search path
15652   if test -f /etc/ld.so.conf; then
15653     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' ' '`
15654     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15655   fi
15656
15657   # We used to test for /lib/ld.so.1 and disable shared libraries on
15658   # powerpc, because MkLinux only supported shared libraries with the
15659   # GNU dynamic linker.  Since this was broken with cross compilers,
15660   # most powerpc-linux boxes support dynamic linking these days and
15661   # people can always --disable-shared, the test was removed, and we
15662   # assume the GNU/Linux dynamic linker is in use.
15663   dynamic_linker='GNU/Linux ld.so'
15664   ;;
15665
15666 netbsd*)
15667   version_type=sunos
15668   need_lib_prefix=no
15669   need_version=no
15670   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15673     dynamic_linker='NetBSD (a.out) ld.so'
15674   else
15675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15676     soname_spec='${libname}${release}${shared_ext}$major'
15677     dynamic_linker='NetBSD ld.elf_so'
15678   fi
15679   shlibpath_var=LD_LIBRARY_PATH
15680   shlibpath_overrides_runpath=yes
15681   hardcode_into_libs=yes
15682   ;;
15683
15684 newsos6)
15685   version_type=linux
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   shlibpath_overrides_runpath=yes
15689   ;;
15690
15691 nto-qnx*)
15692   version_type=linux
15693   need_lib_prefix=no
15694   need_version=no
15695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696   soname_spec='${libname}${release}${shared_ext}$major'
15697   shlibpath_var=LD_LIBRARY_PATH
15698   shlibpath_overrides_runpath=yes
15699   ;;
15700
15701 openbsd*)
15702   version_type=sunos
15703   sys_lib_dlsearch_path_spec="/usr/lib"
15704   need_lib_prefix=no
15705   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15706   case $host_os in
15707     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15708     *)                         need_version=no  ;;
15709   esac
15710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15712   shlibpath_var=LD_LIBRARY_PATH
15713   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15714     case $host_os in
15715       openbsd2.[89] | openbsd2.[89].*)
15716         shlibpath_overrides_runpath=no
15717         ;;
15718       *)
15719         shlibpath_overrides_runpath=yes
15720         ;;
15721       esac
15722   else
15723     shlibpath_overrides_runpath=yes
15724   fi
15725   ;;
15726
15727 os2*)
15728   libname_spec='$name'
15729   shrext_cmds=".dll"
15730   need_lib_prefix=no
15731   library_names_spec='$libname${shared_ext} $libname.a'
15732   dynamic_linker='OS/2 ld.exe'
15733   shlibpath_var=LIBPATH
15734   ;;
15735
15736 osf3* | osf4* | osf5*)
15737   version_type=osf
15738   need_lib_prefix=no
15739   need_version=no
15740   soname_spec='${libname}${release}${shared_ext}$major'
15741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742   shlibpath_var=LD_LIBRARY_PATH
15743   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15744   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15745   ;;
15746
15747 rdos*)
15748   dynamic_linker=no
15749   ;;
15750
15751 solaris*)
15752   version_type=linux
15753   need_lib_prefix=no
15754   need_version=no
15755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756   soname_spec='${libname}${release}${shared_ext}$major'
15757   shlibpath_var=LD_LIBRARY_PATH
15758   shlibpath_overrides_runpath=yes
15759   hardcode_into_libs=yes
15760   # ldd complains unless libraries are executable
15761   postinstall_cmds='chmod +x $lib'
15762   ;;
15763
15764 sunos4*)
15765   version_type=sunos
15766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15767   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15768   shlibpath_var=LD_LIBRARY_PATH
15769   shlibpath_overrides_runpath=yes
15770   if test "$with_gnu_ld" = yes; then
15771     need_lib_prefix=no
15772   fi
15773   need_version=yes
15774   ;;
15775
15776 sysv4 | sysv4.3*)
15777   version_type=linux
15778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779   soname_spec='${libname}${release}${shared_ext}$major'
15780   shlibpath_var=LD_LIBRARY_PATH
15781   case $host_vendor in
15782     sni)
15783       shlibpath_overrides_runpath=no
15784       need_lib_prefix=no
15785       export_dynamic_flag_spec='${wl}-Blargedynsym'
15786       runpath_var=LD_RUN_PATH
15787       ;;
15788     siemens)
15789       need_lib_prefix=no
15790       ;;
15791     motorola)
15792       need_lib_prefix=no
15793       need_version=no
15794       shlibpath_overrides_runpath=no
15795       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15796       ;;
15797   esac
15798   ;;
15799
15800 sysv4*MP*)
15801   if test -d /usr/nec ;then
15802     version_type=linux
15803     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15804     soname_spec='$libname${shared_ext}.$major'
15805     shlibpath_var=LD_LIBRARY_PATH
15806   fi
15807   ;;
15808
15809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15810   version_type=freebsd-elf
15811   need_lib_prefix=no
15812   need_version=no
15813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15814   soname_spec='${libname}${release}${shared_ext}$major'
15815   shlibpath_var=LD_LIBRARY_PATH
15816   hardcode_into_libs=yes
15817   if test "$with_gnu_ld" = yes; then
15818     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15819     shlibpath_overrides_runpath=no
15820   else
15821     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15822     shlibpath_overrides_runpath=yes
15823     case $host_os in
15824       sco3.2v5*)
15825         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15826         ;;
15827     esac
15828   fi
15829   sys_lib_dlsearch_path_spec='/usr/lib'
15830   ;;
15831
15832 uts4*)
15833   version_type=linux
15834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835   soname_spec='${libname}${release}${shared_ext}$major'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   ;;
15838
15839 *)
15840   dynamic_linker=no
15841   ;;
15842 esac
15843 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15844 $as_echo "$dynamic_linker" >&6; }
15845 test "$dynamic_linker" = no && can_build_shared=no
15846
15847 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15848   $as_echo_n "(cached) " >&6
15849 else
15850   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15851 fi
15852
15853 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15854 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15855   $as_echo_n "(cached) " >&6
15856 else
15857   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15858 fi
15859
15860 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15861
15862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15863 if test "$GCC" = yes; then
15864   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15865 fi
15866
15867 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15868 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15869 hardcode_action_CXX=
15870 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15871    test -n "$runpath_var_CXX" || \
15872    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15873
15874   # We can hardcode non-existant directories.
15875   if test "$hardcode_direct_CXX" != no &&
15876      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15877      # have to relink, otherwise we might link with an installed library
15878      # when we should be linking with a yet-to-be-installed one
15879      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15880      test "$hardcode_minus_L_CXX" != no; then
15881     # Linking always hardcodes the temporary library directory.
15882     hardcode_action_CXX=relink
15883   else
15884     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15885     hardcode_action_CXX=immediate
15886   fi
15887 else
15888   # We cannot hardcode anything, or else we can only hardcode existing
15889   # directories.
15890   hardcode_action_CXX=unsupported
15891 fi
15892 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15893 $as_echo "$hardcode_action_CXX" >&6; }
15894
15895 if test "$hardcode_action_CXX" = relink; then
15896   # Fast installation is not supported
15897   enable_fast_install=no
15898 elif test "$shlibpath_overrides_runpath" = yes ||
15899      test "$enable_shared" = no; then
15900   # Fast installation is not necessary
15901   enable_fast_install=needless
15902 fi
15903
15904
15905 # The else clause should only fire when bootstrapping the
15906 # libtool distribution, otherwise you forgot to ship ltmain.sh
15907 # with your package, and you will get complaints that there are
15908 # no rules to generate ltmain.sh.
15909 if test -f "$ltmain"; then
15910   # See if we are running on zsh, and set the options which allow our commands through
15911   # without removal of \ escapes.
15912   if test -n "${ZSH_VERSION+set}" ; then
15913     setopt NO_GLOB_SUBST
15914   fi
15915   # Now quote all the things that may contain metacharacters while being
15916   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15917   # variables and quote the copies for generation of the libtool script.
15918   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15919     SED SHELL STRIP \
15920     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15921     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15922     deplibs_check_method reload_flag reload_cmds need_locks \
15923     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15924     lt_cv_sys_global_symbol_to_c_name_address \
15925     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15926     old_postinstall_cmds old_postuninstall_cmds \
15927     compiler_CXX \
15928     CC_CXX \
15929     LD_CXX \
15930     lt_prog_compiler_wl_CXX \
15931     lt_prog_compiler_pic_CXX \
15932     lt_prog_compiler_static_CXX \
15933     lt_prog_compiler_no_builtin_flag_CXX \
15934     export_dynamic_flag_spec_CXX \
15935     thread_safe_flag_spec_CXX \
15936     whole_archive_flag_spec_CXX \
15937     enable_shared_with_static_runtimes_CXX \
15938     old_archive_cmds_CXX \
15939     old_archive_from_new_cmds_CXX \
15940     predep_objects_CXX \
15941     postdep_objects_CXX \
15942     predeps_CXX \
15943     postdeps_CXX \
15944     compiler_lib_search_path_CXX \
15945     compiler_lib_search_dirs_CXX \
15946     archive_cmds_CXX \
15947     archive_expsym_cmds_CXX \
15948     postinstall_cmds_CXX \
15949     postuninstall_cmds_CXX \
15950     old_archive_from_expsyms_cmds_CXX \
15951     allow_undefined_flag_CXX \
15952     no_undefined_flag_CXX \
15953     export_symbols_cmds_CXX \
15954     hardcode_libdir_flag_spec_CXX \
15955     hardcode_libdir_flag_spec_ld_CXX \
15956     hardcode_libdir_separator_CXX \
15957     hardcode_automatic_CXX \
15958     module_cmds_CXX \
15959     module_expsym_cmds_CXX \
15960     lt_cv_prog_compiler_c_o_CXX \
15961     fix_srcfile_path_CXX \
15962     exclude_expsyms_CXX \
15963     include_expsyms_CXX; do
15964
15965     case $var in
15966     old_archive_cmds_CXX | \
15967     old_archive_from_new_cmds_CXX | \
15968     archive_cmds_CXX | \
15969     archive_expsym_cmds_CXX | \
15970     module_cmds_CXX | \
15971     module_expsym_cmds_CXX | \
15972     old_archive_from_expsyms_cmds_CXX | \
15973     export_symbols_cmds_CXX | \
15974     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15975     postinstall_cmds | postuninstall_cmds | \
15976     old_postinstall_cmds | old_postuninstall_cmds | \
15977     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15978       # Double-quote double-evaled strings.
15979       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15980       ;;
15981     *)
15982       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15983       ;;
15984     esac
15985   done
15986
15987   case $lt_echo in
15988   *'\$0 --fallback-echo"')
15989     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15990     ;;
15991   esac
15992
15993 cfgfile="$ofile"
15994
15995   cat <<__EOF__ >> "$cfgfile"
15996 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15997
15998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15999
16000 # Shell to use when invoking shell scripts.
16001 SHELL=$lt_SHELL
16002
16003 # Whether or not to build shared libraries.
16004 build_libtool_libs=$enable_shared
16005
16006 # Whether or not to build static libraries.
16007 build_old_libs=$enable_static
16008
16009 # Whether or not to add -lc for building shared libraries.
16010 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16011
16012 # Whether or not to disallow shared libs when runtime libs are static
16013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16014
16015 # Whether or not to optimize for fast installation.
16016 fast_install=$enable_fast_install
16017
16018 # The host system.
16019 host_alias=$host_alias
16020 host=$host
16021 host_os=$host_os
16022
16023 # The build system.
16024 build_alias=$build_alias
16025 build=$build
16026 build_os=$build_os
16027
16028 # An echo program that does not interpret backslashes.
16029 echo=$lt_echo
16030
16031 # The archiver.
16032 AR=$lt_AR
16033 AR_FLAGS=$lt_AR_FLAGS
16034
16035 # A C compiler.
16036 LTCC=$lt_LTCC
16037
16038 # LTCC compiler flags.
16039 LTCFLAGS=$lt_LTCFLAGS
16040
16041 # A language-specific compiler.
16042 CC=$lt_compiler_CXX
16043
16044 # Is the compiler the GNU C compiler?
16045 with_gcc=$GCC_CXX
16046
16047 # An ERE matcher.
16048 EGREP=$lt_EGREP
16049
16050 # The linker used to build libraries.
16051 LD=$lt_LD_CXX
16052
16053 # Whether we need hard or soft links.
16054 LN_S=$lt_LN_S
16055
16056 # A BSD-compatible nm program.
16057 NM=$lt_NM
16058
16059 # A symbol stripping program
16060 STRIP=$lt_STRIP
16061
16062 # Used to examine libraries when file_magic_cmd begins "file"
16063 MAGIC_CMD=$MAGIC_CMD
16064
16065 # Used on cygwin: DLL creation program.
16066 DLLTOOL="$DLLTOOL"
16067
16068 # Used on cygwin: object dumper.
16069 OBJDUMP="$OBJDUMP"
16070
16071 # Used on cygwin: assembler.
16072 AS="$AS"
16073
16074 # The name of the directory that contains temporary libtool files.
16075 objdir=$objdir
16076
16077 # How to create reloadable object files.
16078 reload_flag=$lt_reload_flag
16079 reload_cmds=$lt_reload_cmds
16080
16081 # How to pass a linker flag through the compiler.
16082 wl=$lt_lt_prog_compiler_wl_CXX
16083
16084 # Object file suffix (normally "o").
16085 objext="$ac_objext"
16086
16087 # Old archive suffix (normally "a").
16088 libext="$libext"
16089
16090 # Shared library suffix (normally ".so").
16091 shrext_cmds='$shrext_cmds'
16092
16093 # Executable file suffix (normally "").
16094 exeext="$exeext"
16095
16096 # Additional compiler flags for building library objects.
16097 pic_flag=$lt_lt_prog_compiler_pic_CXX
16098 pic_mode=$pic_mode
16099
16100 # What is the maximum length of a command?
16101 max_cmd_len=$lt_cv_sys_max_cmd_len
16102
16103 # Does compiler simultaneously support -c and -o options?
16104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16105
16106 # Must we lock files when doing compilation?
16107 need_locks=$lt_need_locks
16108
16109 # Do we need the lib prefix for modules?
16110 need_lib_prefix=$need_lib_prefix
16111
16112 # Do we need a version for libraries?
16113 need_version=$need_version
16114
16115 # Whether dlopen is supported.
16116 dlopen_support=$enable_dlopen
16117
16118 # Whether dlopen of programs is supported.
16119 dlopen_self=$enable_dlopen_self
16120
16121 # Whether dlopen of statically linked programs is supported.
16122 dlopen_self_static=$enable_dlopen_self_static
16123
16124 # Compiler flag to prevent dynamic linking.
16125 link_static_flag=$lt_lt_prog_compiler_static_CXX
16126
16127 # Compiler flag to turn off builtin functions.
16128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16129
16130 # Compiler flag to allow reflexive dlopens.
16131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16132
16133 # Compiler flag to generate shared objects directly from archives.
16134 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16135
16136 # Compiler flag to generate thread-safe objects.
16137 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16138
16139 # Library versioning type.
16140 version_type=$version_type
16141
16142 # Format of library name prefix.
16143 libname_spec=$lt_libname_spec
16144
16145 # List of archive names.  First name is the real one, the rest are links.
16146 # The last name is the one that the linker finds with -lNAME.
16147 library_names_spec=$lt_library_names_spec
16148
16149 # The coded name of the library, if different from the real name.
16150 soname_spec=$lt_soname_spec
16151
16152 # Commands used to build and install an old-style archive.
16153 RANLIB=$lt_RANLIB
16154 old_archive_cmds=$lt_old_archive_cmds_CXX
16155 old_postinstall_cmds=$lt_old_postinstall_cmds
16156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16157
16158 # Create an old-style archive from a shared archive.
16159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16160
16161 # Create a temporary old-style archive to link instead of a shared archive.
16162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16163
16164 # Commands used to build and install a shared archive.
16165 archive_cmds=$lt_archive_cmds_CXX
16166 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16167 postinstall_cmds=$lt_postinstall_cmds
16168 postuninstall_cmds=$lt_postuninstall_cmds
16169
16170 # Commands used to build a loadable module (assumed same as above if empty)
16171 module_cmds=$lt_module_cmds_CXX
16172 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16173
16174 # Commands to strip libraries.
16175 old_striplib=$lt_old_striplib
16176 striplib=$lt_striplib
16177
16178 # Dependencies to place before the objects being linked to create a
16179 # shared library.
16180 predep_objects=$lt_predep_objects_CXX
16181
16182 # Dependencies to place after the objects being linked to create a
16183 # shared library.
16184 postdep_objects=$lt_postdep_objects_CXX
16185
16186 # Dependencies to place before the objects being linked to create a
16187 # shared library.
16188 predeps=$lt_predeps_CXX
16189
16190 # Dependencies to place after the objects being linked to create a
16191 # shared library.
16192 postdeps=$lt_postdeps_CXX
16193
16194 # The directories searched by this compiler when creating a shared
16195 # library
16196 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16197
16198 # The library search path used internally by the compiler when linking
16199 # a shared library.
16200 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16201
16202 # Method to check whether dependent libraries are shared objects.
16203 deplibs_check_method=$lt_deplibs_check_method
16204
16205 # Command to use when deplibs_check_method == file_magic.
16206 file_magic_cmd=$lt_file_magic_cmd
16207
16208 # Flag that allows shared libraries with undefined symbols to be built.
16209 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16210
16211 # Flag that forces no undefined symbols.
16212 no_undefined_flag=$lt_no_undefined_flag_CXX
16213
16214 # Commands used to finish a libtool library installation in a directory.
16215 finish_cmds=$lt_finish_cmds
16216
16217 # Same as above, but a single script fragment to be evaled but not shown.
16218 finish_eval=$lt_finish_eval
16219
16220 # Take the output of nm and produce a listing of raw symbols and C names.
16221 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16222
16223 # Transform the output of nm in a proper C declaration
16224 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16225
16226 # Transform the output of nm in a C name address pair
16227 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16228
16229 # This is the shared library runtime path variable.
16230 runpath_var=$runpath_var
16231
16232 # This is the shared library path variable.
16233 shlibpath_var=$shlibpath_var
16234
16235 # Is shlibpath searched before the hard-coded library search path?
16236 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16237
16238 # How to hardcode a shared library path into an executable.
16239 hardcode_action=$hardcode_action_CXX
16240
16241 # Whether we should hardcode library paths into libraries.
16242 hardcode_into_libs=$hardcode_into_libs
16243
16244 # Flag to hardcode \$libdir into a binary during linking.
16245 # This must work even if \$libdir does not exist.
16246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16247
16248 # If ld is used when linking, flag to hardcode \$libdir into
16249 # a binary during linking. This must work even if \$libdir does
16250 # not exist.
16251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16252
16253 # Whether we need a single -rpath flag with a separated argument.
16254 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16255
16256 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16257 # resulting binary.
16258 hardcode_direct=$hardcode_direct_CXX
16259
16260 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16261 # resulting binary.
16262 hardcode_minus_L=$hardcode_minus_L_CXX
16263
16264 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16265 # the resulting binary.
16266 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16267
16268 # Set to yes if building a shared library automatically hardcodes DIR into the library
16269 # and all subsequent libraries and executables linked against it.
16270 hardcode_automatic=$hardcode_automatic_CXX
16271
16272 # Variables whose values should be saved in libtool wrapper scripts and
16273 # restored at relink time.
16274 variables_saved_for_relink="$variables_saved_for_relink"
16275
16276 # Whether libtool must link a program against all its dependency libraries.
16277 link_all_deplibs=$link_all_deplibs_CXX
16278
16279 # Compile-time system search path for libraries
16280 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16281
16282 # Run-time system search path for libraries
16283 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16284
16285 # Fix the shell variable \$srcfile for the compiler.
16286 fix_srcfile_path=$lt_fix_srcfile_path
16287
16288 # Set to yes if exported symbols are required.
16289 always_export_symbols=$always_export_symbols_CXX
16290
16291 # The commands to list exported symbols.
16292 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16293
16294 # The commands to extract the exported symbol list from a shared archive.
16295 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16296
16297 # Symbols that should not be listed in the preloaded symbols.
16298 exclude_expsyms=$lt_exclude_expsyms_CXX
16299
16300 # Symbols that must always be exported.
16301 include_expsyms=$lt_include_expsyms_CXX
16302
16303 # ### END LIBTOOL TAG CONFIG: $tagname
16304
16305 __EOF__
16306
16307
16308 else
16309   # If there is no Makefile yet, we rely on a make rule to execute
16310   # `config.status --recheck' to rerun these tests and create the
16311   # libtool script then.
16312   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16313   if test -f "$ltmain_in"; then
16314     test -f Makefile && make "$ltmain"
16315   fi
16316 fi
16317
16318
16319 ac_ext=c
16320 ac_cpp='$CPP $CPPFLAGS'
16321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16324
16325 CC=$lt_save_CC
16326 LDCXX=$LD
16327 LD=$lt_save_LD
16328 GCC=$lt_save_GCC
16329 with_gnu_ldcxx=$with_gnu_ld
16330 with_gnu_ld=$lt_save_with_gnu_ld
16331 lt_cv_path_LDCXX=$lt_cv_path_LD
16332 lt_cv_path_LD=$lt_save_path_LD
16333 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16334 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16335
16336         else
16337           tagname=""
16338         fi
16339         ;;
16340
16341       F77)
16342         if test -n "$F77" && test "X$F77" != "Xno"; then
16343
16344 ac_ext=f
16345 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16346 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16348
16349
16350 archive_cmds_need_lc_F77=no
16351 allow_undefined_flag_F77=
16352 always_export_symbols_F77=no
16353 archive_expsym_cmds_F77=
16354 export_dynamic_flag_spec_F77=
16355 hardcode_direct_F77=no
16356 hardcode_libdir_flag_spec_F77=
16357 hardcode_libdir_flag_spec_ld_F77=
16358 hardcode_libdir_separator_F77=
16359 hardcode_minus_L_F77=no
16360 hardcode_automatic_F77=no
16361 module_cmds_F77=
16362 module_expsym_cmds_F77=
16363 link_all_deplibs_F77=unknown
16364 old_archive_cmds_F77=$old_archive_cmds
16365 no_undefined_flag_F77=
16366 whole_archive_flag_spec_F77=
16367 enable_shared_with_static_runtimes_F77=no
16368
16369 # Source file extension for f77 test sources.
16370 ac_ext=f
16371
16372 # Object file extension for compiled f77 test sources.
16373 objext=o
16374 objext_F77=$objext
16375
16376 # Code to be used in simple compile tests
16377 lt_simple_compile_test_code="\
16378       subroutine t
16379       return
16380       end
16381 "
16382
16383 # Code to be used in simple link tests
16384 lt_simple_link_test_code="\
16385       program t
16386       end
16387 "
16388
16389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16390
16391 # If no C compiler was specified, use CC.
16392 LTCC=${LTCC-"$CC"}
16393
16394 # If no C compiler flags were specified, use CFLAGS.
16395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16396
16397 # Allow CC to be a program name with arguments.
16398 compiler=$CC
16399
16400
16401 # save warnings/boilerplate of simple test code
16402 ac_outfile=conftest.$ac_objext
16403 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16404 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16405 _lt_compiler_boilerplate=`cat conftest.err`
16406 $rm conftest*
16407
16408 ac_outfile=conftest.$ac_objext
16409 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16410 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16411 _lt_linker_boilerplate=`cat conftest.err`
16412 $rm -r conftest*
16413
16414
16415 # Allow CC to be a program name with arguments.
16416 lt_save_CC="$CC"
16417 CC=${F77-"f77"}
16418 compiler=$CC
16419 compiler_F77=$CC
16420 for cc_temp in $compiler""; do
16421   case $cc_temp in
16422     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16423     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16424     \-*) ;;
16425     *) break;;
16426   esac
16427 done
16428 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16429
16430
16431 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16432 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16433 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16434 $as_echo "$can_build_shared" >&6; }
16435
16436 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16437 $as_echo_n "checking whether to build shared libraries... " >&6; }
16438 test "$can_build_shared" = "no" && enable_shared=no
16439
16440 # On AIX, shared libraries and static libraries use the same namespace, and
16441 # are all built from PIC.
16442 case $host_os in
16443 aix3*)
16444   test "$enable_shared" = yes && enable_static=no
16445   if test -n "$RANLIB"; then
16446     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16447     postinstall_cmds='$RANLIB $lib'
16448   fi
16449   ;;
16450 aix[4-9]*)
16451   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16452     test "$enable_shared" = yes && enable_static=no
16453   fi
16454   ;;
16455 esac
16456 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16457 $as_echo "$enable_shared" >&6; }
16458
16459 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16460 $as_echo_n "checking whether to build static libraries... " >&6; }
16461 # Make sure either enable_shared or enable_static is yes.
16462 test "$enable_shared" = yes || enable_static=yes
16463 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16464 $as_echo "$enable_static" >&6; }
16465
16466 GCC_F77="$G77"
16467 LD_F77="$LD"
16468
16469 lt_prog_compiler_wl_F77=
16470 lt_prog_compiler_pic_F77=
16471 lt_prog_compiler_static_F77=
16472
16473 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16474 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16475
16476   if test "$GCC" = yes; then
16477     lt_prog_compiler_wl_F77='-Wl,'
16478     lt_prog_compiler_static_F77='-static'
16479
16480     case $host_os in
16481       aix*)
16482       # All AIX code is PIC.
16483       if test "$host_cpu" = ia64; then
16484         # AIX 5 now supports IA64 processor
16485         lt_prog_compiler_static_F77='-Bstatic'
16486       fi
16487       ;;
16488
16489     amigaos*)
16490       # FIXME: we need at least 68020 code to build shared libraries, but
16491       # adding the `-m68020' flag to GCC prevents building anything better,
16492       # like `-m68040'.
16493       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16494       ;;
16495
16496     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16497       # PIC is the default for these OSes.
16498       ;;
16499
16500     mingw* | cygwin* | pw32* | os2*)
16501       # This hack is so that the source file can tell whether it is being
16502       # built for inclusion in a dll (and should export symbols for example).
16503       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16504       # (--disable-auto-import) libraries
16505       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16506       ;;
16507
16508     darwin* | rhapsody*)
16509       # PIC is the default on this platform
16510       # Common symbols not allowed in MH_DYLIB files
16511       lt_prog_compiler_pic_F77='-fno-common'
16512       ;;
16513
16514     interix[3-9]*)
16515       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16516       # Instead, we relocate shared libraries at runtime.
16517       ;;
16518
16519     msdosdjgpp*)
16520       # Just because we use GCC doesn't mean we suddenly get shared libraries
16521       # on systems that don't support them.
16522       lt_prog_compiler_can_build_shared_F77=no
16523       enable_shared=no
16524       ;;
16525
16526     sysv4*MP*)
16527       if test -d /usr/nec; then
16528         lt_prog_compiler_pic_F77=-Kconform_pic
16529       fi
16530       ;;
16531
16532     hpux*)
16533       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16534       # not for PA HP-UX.
16535       case $host_cpu in
16536       hppa*64*|ia64*)
16537         # +Z the default
16538         ;;
16539       *)
16540         lt_prog_compiler_pic_F77='-fPIC'
16541         ;;
16542       esac
16543       ;;
16544
16545     *)
16546       lt_prog_compiler_pic_F77='-fPIC'
16547       ;;
16548     esac
16549   else
16550     # PORTME Check for flag to pass linker flags through the system compiler.
16551     case $host_os in
16552     aix*)
16553       lt_prog_compiler_wl_F77='-Wl,'
16554       if test "$host_cpu" = ia64; then
16555         # AIX 5 now supports IA64 processor
16556         lt_prog_compiler_static_F77='-Bstatic'
16557       else
16558         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16559       fi
16560       ;;
16561       darwin*)
16562         # PIC is the default on this platform
16563         # Common symbols not allowed in MH_DYLIB files
16564        case $cc_basename in
16565          xlc*)
16566          lt_prog_compiler_pic_F77='-qnocommon'
16567          lt_prog_compiler_wl_F77='-Wl,'
16568          ;;
16569        esac
16570        ;;
16571
16572     mingw* | cygwin* | pw32* | os2*)
16573       # This hack is so that the source file can tell whether it is being
16574       # built for inclusion in a dll (and should export symbols for example).
16575       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16576       ;;
16577
16578     hpux9* | hpux10* | hpux11*)
16579       lt_prog_compiler_wl_F77='-Wl,'
16580       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16581       # not for PA HP-UX.
16582       case $host_cpu in
16583       hppa*64*|ia64*)
16584         # +Z the default
16585         ;;
16586       *)
16587         lt_prog_compiler_pic_F77='+Z'
16588         ;;
16589       esac
16590       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16591       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16592       ;;
16593
16594     irix5* | irix6* | nonstopux*)
16595       lt_prog_compiler_wl_F77='-Wl,'
16596       # PIC (with -KPIC) is the default.
16597       lt_prog_compiler_static_F77='-non_shared'
16598       ;;
16599
16600     newsos6)
16601       lt_prog_compiler_pic_F77='-KPIC'
16602       lt_prog_compiler_static_F77='-Bstatic'
16603       ;;
16604
16605     linux* | k*bsd*-gnu)
16606       case $cc_basename in
16607       icc* | ecc*)
16608         lt_prog_compiler_wl_F77='-Wl,'
16609         lt_prog_compiler_pic_F77='-KPIC'
16610         lt_prog_compiler_static_F77='-static'
16611         ;;
16612       pgcc* | pgf77* | pgf90* | pgf95*)
16613         # Portland Group compilers (*not* the Pentium gcc compiler,
16614         # which looks to be a dead project)
16615         lt_prog_compiler_wl_F77='-Wl,'
16616         lt_prog_compiler_pic_F77='-fpic'
16617         lt_prog_compiler_static_F77='-Bstatic'
16618         ;;
16619       ccc*)
16620         lt_prog_compiler_wl_F77='-Wl,'
16621         # All Alpha code is PIC.
16622         lt_prog_compiler_static_F77='-non_shared'
16623         ;;
16624       *)
16625         case `$CC -V 2>&1 | sed 5q` in
16626         *Sun\ C*)
16627           # Sun C 5.9
16628           lt_prog_compiler_pic_F77='-KPIC'
16629           lt_prog_compiler_static_F77='-Bstatic'
16630           lt_prog_compiler_wl_F77='-Wl,'
16631           ;;
16632         *Sun\ F*)
16633           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16634           lt_prog_compiler_pic_F77='-KPIC'
16635           lt_prog_compiler_static_F77='-Bstatic'
16636           lt_prog_compiler_wl_F77=''
16637           ;;
16638         esac
16639         ;;
16640       esac
16641       ;;
16642
16643     osf3* | osf4* | osf5*)
16644       lt_prog_compiler_wl_F77='-Wl,'
16645       # All OSF/1 code is PIC.
16646       lt_prog_compiler_static_F77='-non_shared'
16647       ;;
16648
16649     rdos*)
16650       lt_prog_compiler_static_F77='-non_shared'
16651       ;;
16652
16653     solaris*)
16654       lt_prog_compiler_pic_F77='-KPIC'
16655       lt_prog_compiler_static_F77='-Bstatic'
16656       case $cc_basename in
16657       f77* | f90* | f95*)
16658         lt_prog_compiler_wl_F77='-Qoption ld ';;
16659       *)
16660         lt_prog_compiler_wl_F77='-Wl,';;
16661       esac
16662       ;;
16663
16664     sunos4*)
16665       lt_prog_compiler_wl_F77='-Qoption ld '
16666       lt_prog_compiler_pic_F77='-PIC'
16667       lt_prog_compiler_static_F77='-Bstatic'
16668       ;;
16669
16670     sysv4 | sysv4.2uw2* | sysv4.3*)
16671       lt_prog_compiler_wl_F77='-Wl,'
16672       lt_prog_compiler_pic_F77='-KPIC'
16673       lt_prog_compiler_static_F77='-Bstatic'
16674       ;;
16675
16676     sysv4*MP*)
16677       if test -d /usr/nec ;then
16678         lt_prog_compiler_pic_F77='-Kconform_pic'
16679         lt_prog_compiler_static_F77='-Bstatic'
16680       fi
16681       ;;
16682
16683     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16684       lt_prog_compiler_wl_F77='-Wl,'
16685       lt_prog_compiler_pic_F77='-KPIC'
16686       lt_prog_compiler_static_F77='-Bstatic'
16687       ;;
16688
16689     unicos*)
16690       lt_prog_compiler_wl_F77='-Wl,'
16691       lt_prog_compiler_can_build_shared_F77=no
16692       ;;
16693
16694     uts4*)
16695       lt_prog_compiler_pic_F77='-pic'
16696       lt_prog_compiler_static_F77='-Bstatic'
16697       ;;
16698
16699     *)
16700       lt_prog_compiler_can_build_shared_F77=no
16701       ;;
16702     esac
16703   fi
16704
16705 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16706 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
16707
16708 #
16709 # Check to make sure the PIC flag actually works.
16710 #
16711 if test -n "$lt_prog_compiler_pic_F77"; then
16712
16713 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16714 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16715 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16716   $as_echo_n "(cached) " >&6
16717 else
16718   lt_cv_prog_compiler_pic_works_F77=no
16719   ac_outfile=conftest.$ac_objext
16720    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16721    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16722    # Insert the option either (1) after the last *FLAGS variable, or
16723    # (2) before a word containing "conftest.", or (3) at the end.
16724    # Note that $ac_compile itself does not contain backslashes and begins
16725    # with a dollar sign (not a hyphen), so the echo should work correctly.
16726    # The option is referenced via a variable to avoid confusing sed.
16727    lt_compile=`echo "$ac_compile" | $SED \
16728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730    -e 's:$: $lt_compiler_flag:'`
16731    (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732    (eval "$lt_compile" 2>conftest.err)
16733    ac_status=$?
16734    cat conftest.err >&5
16735    echo "$as_me:16735: \$? = $ac_status" >&5
16736    if (exit $ac_status) && test -s "$ac_outfile"; then
16737      # The compiler can only warn and ignore the option if not recognized
16738      # So say no if there are warnings other than the usual output.
16739      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16740      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16741      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16742        lt_cv_prog_compiler_pic_works_F77=yes
16743      fi
16744    fi
16745    $rm conftest*
16746
16747 fi
16748 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16749 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16750
16751 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16752     case $lt_prog_compiler_pic_F77 in
16753      "" | " "*) ;;
16754      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16755      esac
16756 else
16757     lt_prog_compiler_pic_F77=
16758      lt_prog_compiler_can_build_shared_F77=no
16759 fi
16760
16761 fi
16762 case $host_os in
16763   # For platforms which do not support PIC, -DPIC is meaningless:
16764   *djgpp*)
16765     lt_prog_compiler_pic_F77=
16766     ;;
16767   *)
16768     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16769     ;;
16770 esac
16771
16772 #
16773 # Check to make sure the static flag actually works.
16774 #
16775 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16776 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16777 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16778 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16779   $as_echo_n "(cached) " >&6
16780 else
16781   lt_cv_prog_compiler_static_works_F77=no
16782    save_LDFLAGS="$LDFLAGS"
16783    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16784    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16785    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16786      # The linker can only warn and ignore the option if not recognized
16787      # So say no if there are warnings
16788      if test -s conftest.err; then
16789        # Append any errors to the config.log.
16790        cat conftest.err 1>&5
16791        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16792        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16793        if diff conftest.exp conftest.er2 >/dev/null; then
16794          lt_cv_prog_compiler_static_works_F77=yes
16795        fi
16796      else
16797        lt_cv_prog_compiler_static_works_F77=yes
16798      fi
16799    fi
16800    $rm -r conftest*
16801    LDFLAGS="$save_LDFLAGS"
16802
16803 fi
16804 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16805 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16806
16807 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16808     :
16809 else
16810     lt_prog_compiler_static_F77=
16811 fi
16812
16813
16814 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16816 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16817   $as_echo_n "(cached) " >&6
16818 else
16819   lt_cv_prog_compiler_c_o_F77=no
16820    $rm -r conftest 2>/dev/null
16821    mkdir conftest
16822    cd conftest
16823    mkdir out
16824    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16825
16826    lt_compiler_flag="-o out/conftest2.$ac_objext"
16827    # Insert the option either (1) after the last *FLAGS variable, or
16828    # (2) before a word containing "conftest.", or (3) at the end.
16829    # Note that $ac_compile itself does not contain backslashes and begins
16830    # with a dollar sign (not a hyphen), so the echo should work correctly.
16831    lt_compile=`echo "$ac_compile" | $SED \
16832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16834    -e 's:$: $lt_compiler_flag:'`
16835    (eval echo "\"\$as_me:16835: $lt_compile\"" >&5)
16836    (eval "$lt_compile" 2>out/conftest.err)
16837    ac_status=$?
16838    cat out/conftest.err >&5
16839    echo "$as_me:16839: \$? = $ac_status" >&5
16840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16841    then
16842      # The compiler can only warn and ignore the option if not recognized
16843      # So say no if there are warnings
16844      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16847        lt_cv_prog_compiler_c_o_F77=yes
16848      fi
16849    fi
16850    chmod u+w . 2>&5
16851    $rm conftest*
16852    # SGI C++ compiler will create directory out/ii_files/ for
16853    # template instantiation
16854    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16855    $rm out/* && rmdir out
16856    cd ..
16857    rmdir conftest
16858    $rm conftest*
16859
16860 fi
16861 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16862 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16863
16864
16865 hard_links="nottested"
16866 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16867   # do not overwrite the value of need_locks provided by the user
16868   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16869 $as_echo_n "checking if we can lock with hard links... " >&6; }
16870   hard_links=yes
16871   $rm conftest*
16872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16873   touch conftest.a
16874   ln conftest.a conftest.b 2>&5 || hard_links=no
16875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16877 $as_echo "$hard_links" >&6; }
16878   if test "$hard_links" = no; then
16879     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16880 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16881     need_locks=warn
16882   fi
16883 else
16884   need_locks=no
16885 fi
16886
16887 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16888 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16889
16890   runpath_var=
16891   allow_undefined_flag_F77=
16892   enable_shared_with_static_runtimes_F77=no
16893   archive_cmds_F77=
16894   archive_expsym_cmds_F77=
16895   old_archive_From_new_cmds_F77=
16896   old_archive_from_expsyms_cmds_F77=
16897   export_dynamic_flag_spec_F77=
16898   whole_archive_flag_spec_F77=
16899   thread_safe_flag_spec_F77=
16900   hardcode_libdir_flag_spec_F77=
16901   hardcode_libdir_flag_spec_ld_F77=
16902   hardcode_libdir_separator_F77=
16903   hardcode_direct_F77=no
16904   hardcode_minus_L_F77=no
16905   hardcode_shlibpath_var_F77=unsupported
16906   link_all_deplibs_F77=unknown
16907   hardcode_automatic_F77=no
16908   module_cmds_F77=
16909   module_expsym_cmds_F77=
16910   always_export_symbols_F77=no
16911   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16912   # include_expsyms should be a list of space-separated symbols to be *always*
16913   # included in the symbol list
16914   include_expsyms_F77=
16915   # exclude_expsyms can be an extended regexp of symbols to exclude
16916   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16917   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16918   # as well as any symbol that contains `d'.
16919   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16920   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16921   # platforms (ab)use it in PIC code, but their linkers get confused if
16922   # the symbol is explicitly referenced.  Since portable code cannot
16923   # rely on this symbol name, it's probably fine to never include it in
16924   # preloaded symbol tables.
16925   # Exclude shared library initialization/finalization symbols.
16926   extract_expsyms_cmds=
16927   # Just being paranoid about ensuring that cc_basename is set.
16928   for cc_temp in $compiler""; do
16929   case $cc_temp in
16930     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16931     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16932     \-*) ;;
16933     *) break;;
16934   esac
16935 done
16936 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16937
16938   case $host_os in
16939   cygwin* | mingw* | pw32*)
16940     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16941     # When not using gcc, we currently assume that we are using
16942     # Microsoft Visual C++.
16943     if test "$GCC" != yes; then
16944       with_gnu_ld=no
16945     fi
16946     ;;
16947   interix*)
16948     # we just hope/assume this is gcc and not c89 (= MSVC++)
16949     with_gnu_ld=yes
16950     ;;
16951   openbsd*)
16952     with_gnu_ld=no
16953     ;;
16954   esac
16955
16956   ld_shlibs_F77=yes
16957   if test "$with_gnu_ld" = yes; then
16958     # If archive_cmds runs LD, not CC, wlarc should be empty
16959     wlarc='${wl}'
16960
16961     # Set some defaults for GNU ld with shared library support. These
16962     # are reset later if shared libraries are not supported. Putting them
16963     # here allows them to be overridden if necessary.
16964     runpath_var=LD_RUN_PATH
16965     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16966     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16967     # ancient GNU ld didn't support --whole-archive et. al.
16968     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16969         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16970       else
16971         whole_archive_flag_spec_F77=
16972     fi
16973     supports_anon_versioning=no
16974     case `$LD -v 2>/dev/null` in
16975       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16976       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16977       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16978       *\ 2.11.*) ;; # other 2.11 versions
16979       *) supports_anon_versioning=yes ;;
16980     esac
16981
16982     # See if GNU ld supports shared libraries.
16983     case $host_os in
16984     aix[3-9]*)
16985       # On AIX/PPC, the GNU linker is very broken
16986       if test "$host_cpu" != ia64; then
16987         ld_shlibs_F77=no
16988         cat <<EOF 1>&2
16989
16990 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16991 *** to be unable to reliably create shared libraries on AIX.
16992 *** Therefore, libtool is disabling shared libraries support.  If you
16993 *** really care for shared libraries, you may want to modify your PATH
16994 *** so that a non-GNU linker is found, and then restart.
16995
16996 EOF
16997       fi
16998       ;;
16999
17000     amigaos*)
17001       archive_cmds_F77='$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)'
17002       hardcode_libdir_flag_spec_F77='-L$libdir'
17003       hardcode_minus_L_F77=yes
17004
17005       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17006       # that the semantics of dynamic libraries on AmigaOS, at least up
17007       # to version 4, is to share data among multiple programs linked
17008       # with the same dynamic library.  Since this doesn't match the
17009       # behavior of shared libraries on other platforms, we can't use
17010       # them.
17011       ld_shlibs_F77=no
17012       ;;
17013
17014     beos*)
17015       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17016         allow_undefined_flag_F77=unsupported
17017         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17018         # support --undefined.  This deserves some investigation.  FIXME
17019         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020       else
17021         ld_shlibs_F77=no
17022       fi
17023       ;;
17024
17025     cygwin* | mingw* | pw32*)
17026       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17027       # as there is no search path for DLLs.
17028       hardcode_libdir_flag_spec_F77='-L$libdir'
17029       allow_undefined_flag_F77=unsupported
17030       always_export_symbols_F77=no
17031       enable_shared_with_static_runtimes_F77=yes
17032       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17033
17034       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17035         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17036         # If the export-symbols file already is a .def file (1st line
17037         # is EXPORTS), use it as is; otherwise, prepend...
17038         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17039           cp $export_symbols $output_objdir/$soname.def;
17040         else
17041           echo EXPORTS > $output_objdir/$soname.def;
17042           cat $export_symbols >> $output_objdir/$soname.def;
17043         fi~
17044         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17045       else
17046         ld_shlibs_F77=no
17047       fi
17048       ;;
17049
17050     interix[3-9]*)
17051       hardcode_direct_F77=no
17052       hardcode_shlibpath_var_F77=no
17053       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17054       export_dynamic_flag_spec_F77='${wl}-E'
17055       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17056       # Instead, shared libraries are loaded at an image base (0x10000000 by
17057       # default) and relocated if they conflict, which is a slow very memory
17058       # consuming and fragmenting process.  To avoid this, we pick a random,
17059       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17060       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17061       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17062       archive_expsym_cmds_F77='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'
17063       ;;
17064
17065     gnu* | linux* | k*bsd*-gnu)
17066       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17067         tmp_addflag=
17068         case $cc_basename,$host_cpu in
17069         pgcc*)                          # Portland Group C compiler
17070           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17071           tmp_addflag=' $pic_flag'
17072           ;;
17073         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17074           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17075           tmp_addflag=' $pic_flag -Mnomain' ;;
17076         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17077           tmp_addflag=' -i_dynamic' ;;
17078         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17079           tmp_addflag=' -i_dynamic -nofor_main' ;;
17080         ifc* | ifort*)                  # Intel Fortran compiler
17081           tmp_addflag=' -nofor_main' ;;
17082         esac
17083         case `$CC -V 2>&1 | sed 5q` in
17084         *Sun\ C*)                       # Sun C 5.9
17085           whole_archive_flag_spec_F77='${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'
17086           tmp_sharedflag='-G' ;;
17087         *Sun\ F*)                       # Sun Fortran 8.3
17088           tmp_sharedflag='-G' ;;
17089         *)
17090           tmp_sharedflag='-shared' ;;
17091         esac
17092         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17093
17094         if test $supports_anon_versioning = yes; then
17095           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17096   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17097   $echo "local: *; };" >> $output_objdir/$libname.ver~
17098           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17099         fi
17100       else
17101         ld_shlibs_F77=no
17102       fi
17103       ;;
17104
17105     netbsd*)
17106       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17107         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17108         wlarc=
17109       else
17110         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17112       fi
17113       ;;
17114
17115     solaris*)
17116       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17117         ld_shlibs_F77=no
17118         cat <<EOF 1>&2
17119
17120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17121 *** create shared libraries on Solaris systems.  Therefore, libtool
17122 *** is disabling shared libraries support.  We urge you to upgrade GNU
17123 *** binutils to release 2.9.1 or newer.  Another option is to modify
17124 *** your PATH or compiler configuration so that the native linker is
17125 *** used, and then restart.
17126
17127 EOF
17128       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17129         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17130         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17131       else
17132         ld_shlibs_F77=no
17133       fi
17134       ;;
17135
17136     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17137       case `$LD -v 2>&1` in
17138         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17139         ld_shlibs_F77=no
17140         cat <<_LT_EOF 1>&2
17141
17142 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17143 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17144 *** is disabling shared libraries support.  We urge you to upgrade GNU
17145 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17146 *** your PATH or compiler configuration so that the native linker is
17147 *** used, and then restart.
17148
17149 _LT_EOF
17150         ;;
17151         *)
17152           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17153             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17154             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17155             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17156           else
17157             ld_shlibs_F77=no
17158           fi
17159         ;;
17160       esac
17161       ;;
17162
17163     sunos4*)
17164       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17165       wlarc=
17166       hardcode_direct_F77=yes
17167       hardcode_shlibpath_var_F77=no
17168       ;;
17169
17170     *)
17171       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17172         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17173         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17174       else
17175         ld_shlibs_F77=no
17176       fi
17177       ;;
17178     esac
17179
17180     if test "$ld_shlibs_F77" = no; then
17181       runpath_var=
17182       hardcode_libdir_flag_spec_F77=
17183       export_dynamic_flag_spec_F77=
17184       whole_archive_flag_spec_F77=
17185     fi
17186   else
17187     # PORTME fill in a description of your system's linker (not GNU ld)
17188     case $host_os in
17189     aix3*)
17190       allow_undefined_flag_F77=unsupported
17191       always_export_symbols_F77=yes
17192       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17193       # Note: this linker hardcodes the directories in LIBPATH if there
17194       # are no directories specified by -L.
17195       hardcode_minus_L_F77=yes
17196       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17197         # Neither direct hardcoding nor static linking is supported with a
17198         # broken collect2.
17199         hardcode_direct_F77=unsupported
17200       fi
17201       ;;
17202
17203     aix[4-9]*)
17204       if test "$host_cpu" = ia64; then
17205         # On IA64, the linker does run time linking by default, so we don't
17206         # have to do anything special.
17207         aix_use_runtimelinking=no
17208         exp_sym_flag='-Bexport'
17209         no_entry_flag=""
17210       else
17211         # If we're using GNU nm, then we don't want the "-C" option.
17212         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17213         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17214           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17215         else
17216           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17217         fi
17218         aix_use_runtimelinking=no
17219
17220         # Test if we are trying to use run time linking or normal
17221         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17222         # need to do runtime linking.
17223         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17224           for ld_flag in $LDFLAGS; do
17225           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17226             aix_use_runtimelinking=yes
17227             break
17228           fi
17229           done
17230           ;;
17231         esac
17232
17233         exp_sym_flag='-bexport'
17234         no_entry_flag='-bnoentry'
17235       fi
17236
17237       # When large executables or shared objects are built, AIX ld can
17238       # have problems creating the table of contents.  If linking a library
17239       # or program results in "error TOC overflow" add -mminimal-toc to
17240       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17241       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17242
17243       archive_cmds_F77=''
17244       hardcode_direct_F77=yes
17245       hardcode_libdir_separator_F77=':'
17246       link_all_deplibs_F77=yes
17247
17248       if test "$GCC" = yes; then
17249         case $host_os in aix4.[012]|aix4.[012].*)
17250         # We only want to do this on AIX 4.2 and lower, the check
17251         # below for broken collect2 doesn't work under 4.3+
17252           collect2name=`${CC} -print-prog-name=collect2`
17253           if test -f "$collect2name" && \
17254            strings "$collect2name" | grep resolve_lib_name >/dev/null
17255           then
17256           # We have reworked collect2
17257           :
17258           else
17259           # We have old collect2
17260           hardcode_direct_F77=unsupported
17261           # It fails to find uninstalled libraries when the uninstalled
17262           # path is not listed in the libpath.  Setting hardcode_minus_L
17263           # to unsupported forces relinking
17264           hardcode_minus_L_F77=yes
17265           hardcode_libdir_flag_spec_F77='-L$libdir'
17266           hardcode_libdir_separator_F77=
17267           fi
17268           ;;
17269         esac
17270         shared_flag='-shared'
17271         if test "$aix_use_runtimelinking" = yes; then
17272           shared_flag="$shared_flag "'${wl}-G'
17273         fi
17274       else
17275         # not using gcc
17276         if test "$host_cpu" = ia64; then
17277         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17278         # chokes on -Wl,-G. The following line is correct:
17279           shared_flag='-G'
17280         else
17281           if test "$aix_use_runtimelinking" = yes; then
17282             shared_flag='${wl}-G'
17283           else
17284             shared_flag='${wl}-bM:SRE'
17285           fi
17286         fi
17287       fi
17288
17289       # It seems that -bexpall does not export symbols beginning with
17290       # underscore (_), so it is better to generate a list of symbols to export.
17291       always_export_symbols_F77=yes
17292       if test "$aix_use_runtimelinking" = yes; then
17293         # Warning - without using the other runtime loading flags (-brtl),
17294         # -berok will link without error, but may produce a broken library.
17295         allow_undefined_flag_F77='-berok'
17296        # Determine the default libpath from the value encoded in an empty executable.
17297        cat >conftest.$ac_ext <<_ACEOF
17298       program main
17299
17300       end
17301 _ACEOF
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (ac_try="$ac_link"
17304 case "(($ac_try" in
17305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306   *) ac_try_echo=$ac_try;;
17307 esac
17308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17309 $as_echo "$ac_try_echo") >&5
17310   (eval "$ac_link") 2>conftest.er1
17311   ac_status=$?
17312   grep -v '^ *+' conftest.er1 >conftest.err
17313   rm -f conftest.er1
17314   cat conftest.err >&5
17315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } && {
17317          test -z "$ac_f77_werror_flag" ||
17318          test ! -s conftest.err
17319        } && test -s conftest$ac_exeext && {
17320          test "$cross_compiling" = yes ||
17321          $as_test_x conftest$ac_exeext
17322        }; then
17323
17324 lt_aix_libpath_sed='
17325     /Import File Strings/,/^$/ {
17326         /^0/ {
17327             s/^0  *\(.*\)$/\1/
17328             p
17329         }
17330     }'
17331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17332 # Check for a 64-bit object if we didn't find anything.
17333 if test -z "$aix_libpath"; then
17334   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17335 fi
17336 else
17337   $as_echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340
17341 fi
17342
17343 rm -rf conftest.dSYM
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345       conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17347
17348        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17349         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17350        else
17351         if test "$host_cpu" = ia64; then
17352           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17353           allow_undefined_flag_F77="-z nodefs"
17354           archive_expsym_cmds_F77="\$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"
17355         else
17356          # Determine the default libpath from the value encoded in an empty executable.
17357          cat >conftest.$ac_ext <<_ACEOF
17358       program main
17359
17360       end
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17369 $as_echo "$ac_try_echo") >&5
17370   (eval "$ac_link") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } && {
17377          test -z "$ac_f77_werror_flag" ||
17378          test ! -s conftest.err
17379        } && test -s conftest$ac_exeext && {
17380          test "$cross_compiling" = yes ||
17381          $as_test_x conftest$ac_exeext
17382        }; then
17383
17384 lt_aix_libpath_sed='
17385     /Import File Strings/,/^$/ {
17386         /^0/ {
17387             s/^0  *\(.*\)$/\1/
17388             p
17389         }
17390     }'
17391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17392 # Check for a 64-bit object if we didn't find anything.
17393 if test -z "$aix_libpath"; then
17394   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17395 fi
17396 else
17397   $as_echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400
17401 fi
17402
17403 rm -rf conftest.dSYM
17404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17405       conftest$ac_exeext conftest.$ac_ext
17406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17407
17408          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17409           # Warning - without using the other run time loading flags,
17410           # -berok will link without error, but may produce a broken library.
17411           no_undefined_flag_F77=' ${wl}-bernotok'
17412           allow_undefined_flag_F77=' ${wl}-berok'
17413           # Exported symbols can be pulled into shared objects from archives
17414           whole_archive_flag_spec_F77='$convenience'
17415           archive_cmds_need_lc_F77=yes
17416           # This is similar to how AIX traditionally builds its shared libraries.
17417           archive_expsym_cmds_F77="\$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'
17418         fi
17419       fi
17420       ;;
17421
17422     amigaos*)
17423       archive_cmds_F77='$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)'
17424       hardcode_libdir_flag_spec_F77='-L$libdir'
17425       hardcode_minus_L_F77=yes
17426       # see comment about different semantics on the GNU ld section
17427       ld_shlibs_F77=no
17428       ;;
17429
17430     bsdi[45]*)
17431       export_dynamic_flag_spec_F77=-rdynamic
17432       ;;
17433
17434     cygwin* | mingw* | pw32*)
17435       # When not using gcc, we currently assume that we are using
17436       # Microsoft Visual C++.
17437       # hardcode_libdir_flag_spec is actually meaningless, as there is
17438       # no search path for DLLs.
17439       hardcode_libdir_flag_spec_F77=' '
17440       allow_undefined_flag_F77=unsupported
17441       # Tell ltmain to make .lib files, not .a files.
17442       libext=lib
17443       # Tell ltmain to make .dll files, not .so files.
17444       shrext_cmds=".dll"
17445       # FIXME: Setting linknames here is a bad hack.
17446       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17447       # The linker will automatically build a .lib file if we build a DLL.
17448       old_archive_From_new_cmds_F77='true'
17449       # FIXME: Should let the user specify the lib program.
17450       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17451       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17452       enable_shared_with_static_runtimes_F77=yes
17453       ;;
17454
17455     darwin* | rhapsody*)
17456       case $host_os in
17457         rhapsody* | darwin1.[012])
17458          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17459          ;;
17460        *) # Darwin 1.3 on
17461          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17462            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17463          else
17464            case ${MACOSX_DEPLOYMENT_TARGET} in
17465              10.[012])
17466                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17467                ;;
17468              10.*)
17469                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17470                ;;
17471            esac
17472          fi
17473          ;;
17474       esac
17475       archive_cmds_need_lc_F77=no
17476       hardcode_direct_F77=no
17477       hardcode_automatic_F77=yes
17478       hardcode_shlibpath_var_F77=unsupported
17479       whole_archive_flag_spec_F77=''
17480       link_all_deplibs_F77=yes
17481     if test "$GCC" = yes ; then
17482         output_verbose_link_cmd='echo'
17483         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17484         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17485         archive_expsym_cmds_F77="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}"
17486         module_expsym_cmds_F77="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}"
17487     else
17488       case $cc_basename in
17489         xlc*)
17490          output_verbose_link_cmd='echo'
17491          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17492          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17493           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17494          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17495           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17496           ;;
17497        *)
17498          ld_shlibs_F77=no
17499           ;;
17500       esac
17501     fi
17502       ;;
17503
17504     dgux*)
17505       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17506       hardcode_libdir_flag_spec_F77='-L$libdir'
17507       hardcode_shlibpath_var_F77=no
17508       ;;
17509
17510     freebsd1*)
17511       ld_shlibs_F77=no
17512       ;;
17513
17514     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17515     # support.  Future versions do this automatically, but an explicit c++rt0.o
17516     # does not break anything, and helps significantly (at the cost of a little
17517     # extra space).
17518     freebsd2.2*)
17519       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17520       hardcode_libdir_flag_spec_F77='-R$libdir'
17521       hardcode_direct_F77=yes
17522       hardcode_shlibpath_var_F77=no
17523       ;;
17524
17525     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17526     freebsd2*)
17527       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17528       hardcode_direct_F77=yes
17529       hardcode_minus_L_F77=yes
17530       hardcode_shlibpath_var_F77=no
17531       ;;
17532
17533     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17534     freebsd* | dragonfly*)
17535       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17536       hardcode_libdir_flag_spec_F77='-R$libdir'
17537       hardcode_direct_F77=yes
17538       hardcode_shlibpath_var_F77=no
17539       ;;
17540
17541     hpux9*)
17542       if test "$GCC" = yes; then
17543         archive_cmds_F77='$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'
17544       else
17545         archive_cmds_F77='$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'
17546       fi
17547       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17548       hardcode_libdir_separator_F77=:
17549       hardcode_direct_F77=yes
17550
17551       # hardcode_minus_L: Not really in the search PATH,
17552       # but as the default location of the library.
17553       hardcode_minus_L_F77=yes
17554       export_dynamic_flag_spec_F77='${wl}-E'
17555       ;;
17556
17557     hpux10*)
17558       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17559         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17560       else
17561         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17562       fi
17563       if test "$with_gnu_ld" = no; then
17564         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17565         hardcode_libdir_separator_F77=:
17566
17567         hardcode_direct_F77=yes
17568         export_dynamic_flag_spec_F77='${wl}-E'
17569
17570         # hardcode_minus_L: Not really in the search PATH,
17571         # but as the default location of the library.
17572         hardcode_minus_L_F77=yes
17573       fi
17574       ;;
17575
17576     hpux11*)
17577       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17578         case $host_cpu in
17579         hppa*64*)
17580           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581           ;;
17582         ia64*)
17583           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584           ;;
17585         *)
17586           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17587           ;;
17588         esac
17589       else
17590         case $host_cpu in
17591         hppa*64*)
17592           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17593           ;;
17594         ia64*)
17595           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17596           ;;
17597         *)
17598           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17599           ;;
17600         esac
17601       fi
17602       if test "$with_gnu_ld" = no; then
17603         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17604         hardcode_libdir_separator_F77=:
17605
17606         case $host_cpu in
17607         hppa*64*|ia64*)
17608           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17609           hardcode_direct_F77=no
17610           hardcode_shlibpath_var_F77=no
17611           ;;
17612         *)
17613           hardcode_direct_F77=yes
17614           export_dynamic_flag_spec_F77='${wl}-E'
17615
17616           # hardcode_minus_L: Not really in the search PATH,
17617           # but as the default location of the library.
17618           hardcode_minus_L_F77=yes
17619           ;;
17620         esac
17621       fi
17622       ;;
17623
17624     irix5* | irix6* | nonstopux*)
17625       if test "$GCC" = yes; then
17626         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17627       else
17628         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17629         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17630       fi
17631       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17632       hardcode_libdir_separator_F77=:
17633       link_all_deplibs_F77=yes
17634       ;;
17635
17636     netbsd*)
17637       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17638         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17639       else
17640         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17641       fi
17642       hardcode_libdir_flag_spec_F77='-R$libdir'
17643       hardcode_direct_F77=yes
17644       hardcode_shlibpath_var_F77=no
17645       ;;
17646
17647     newsos6)
17648       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649       hardcode_direct_F77=yes
17650       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17651       hardcode_libdir_separator_F77=:
17652       hardcode_shlibpath_var_F77=no
17653       ;;
17654
17655     openbsd*)
17656       if test -f /usr/libexec/ld.so; then
17657         hardcode_direct_F77=yes
17658         hardcode_shlibpath_var_F77=no
17659         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17660           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17661           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17662           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17663           export_dynamic_flag_spec_F77='${wl}-E'
17664         else
17665           case $host_os in
17666            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17667              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17668              hardcode_libdir_flag_spec_F77='-R$libdir'
17669              ;;
17670            *)
17671              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17672              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17673              ;;
17674           esac
17675         fi
17676       else
17677         ld_shlibs_F77=no
17678       fi
17679       ;;
17680
17681     os2*)
17682       hardcode_libdir_flag_spec_F77='-L$libdir'
17683       hardcode_minus_L_F77=yes
17684       allow_undefined_flag_F77=unsupported
17685       archive_cmds_F77='$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'
17686       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17687       ;;
17688
17689     osf3*)
17690       if test "$GCC" = yes; then
17691         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17692         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17693       else
17694         allow_undefined_flag_F77=' -expect_unresolved \*'
17695         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17696       fi
17697       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17698       hardcode_libdir_separator_F77=:
17699       ;;
17700
17701     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17702       if test "$GCC" = yes; then
17703         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17704         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17705         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17706       else
17707         allow_undefined_flag_F77=' -expect_unresolved \*'
17708         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17709         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17710         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17711
17712         # Both c and cxx compiler support -rpath directly
17713         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17714       fi
17715       hardcode_libdir_separator_F77=:
17716       ;;
17717
17718     solaris*)
17719       no_undefined_flag_F77=' -z text'
17720       if test "$GCC" = yes; then
17721         wlarc='${wl}'
17722         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17723         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17724           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17725       else
17726         wlarc=''
17727         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17729         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17730       fi
17731       hardcode_libdir_flag_spec_F77='-R$libdir'
17732       hardcode_shlibpath_var_F77=no
17733       case $host_os in
17734       solaris2.[0-5] | solaris2.[0-5].*) ;;
17735       *)
17736         # The compiler driver will combine and reorder linker options,
17737         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17738         # but is careful enough not to reorder.
17739         # Supported since Solaris 2.6 (maybe 2.5.1?)
17740         if test "$GCC" = yes; then
17741           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17742         else
17743           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17744         fi
17745         ;;
17746       esac
17747       link_all_deplibs_F77=yes
17748       ;;
17749
17750     sunos4*)
17751       if test "x$host_vendor" = xsequent; then
17752         # Use $CC to link under sequent, because it throws in some extra .o
17753         # files that make .init and .fini sections work.
17754         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17755       else
17756         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17757       fi
17758       hardcode_libdir_flag_spec_F77='-L$libdir'
17759       hardcode_direct_F77=yes
17760       hardcode_minus_L_F77=yes
17761       hardcode_shlibpath_var_F77=no
17762       ;;
17763
17764     sysv4)
17765       case $host_vendor in
17766         sni)
17767           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17768           hardcode_direct_F77=yes # is this really true???
17769         ;;
17770         siemens)
17771           ## LD is ld it makes a PLAMLIB
17772           ## CC just makes a GrossModule.
17773           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17774           reload_cmds_F77='$CC -r -o $output$reload_objs'
17775           hardcode_direct_F77=no
17776         ;;
17777         motorola)
17778           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17779           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17780         ;;
17781       esac
17782       runpath_var='LD_RUN_PATH'
17783       hardcode_shlibpath_var_F77=no
17784       ;;
17785
17786     sysv4.3*)
17787       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788       hardcode_shlibpath_var_F77=no
17789       export_dynamic_flag_spec_F77='-Bexport'
17790       ;;
17791
17792     sysv4*MP*)
17793       if test -d /usr/nec; then
17794         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795         hardcode_shlibpath_var_F77=no
17796         runpath_var=LD_RUN_PATH
17797         hardcode_runpath_var=yes
17798         ld_shlibs_F77=yes
17799       fi
17800       ;;
17801
17802     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17803       no_undefined_flag_F77='${wl}-z,text'
17804       archive_cmds_need_lc_F77=no
17805       hardcode_shlibpath_var_F77=no
17806       runpath_var='LD_RUN_PATH'
17807
17808       if test "$GCC" = yes; then
17809         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17811       else
17812         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17813         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17814       fi
17815       ;;
17816
17817     sysv5* | sco3.2v5* | sco5v6*)
17818       # Note: We can NOT use -z defs as we might desire, because we do not
17819       # link with -lc, and that would cause any symbols used from libc to
17820       # always be unresolved, which means just about no library would
17821       # ever link correctly.  If we're not using GNU ld we use -z text
17822       # though, which does catch some bad symbols but isn't as heavy-handed
17823       # as -z defs.
17824       no_undefined_flag_F77='${wl}-z,text'
17825       allow_undefined_flag_F77='${wl}-z,nodefs'
17826       archive_cmds_need_lc_F77=no
17827       hardcode_shlibpath_var_F77=no
17828       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17829       hardcode_libdir_separator_F77=':'
17830       link_all_deplibs_F77=yes
17831       export_dynamic_flag_spec_F77='${wl}-Bexport'
17832       runpath_var='LD_RUN_PATH'
17833
17834       if test "$GCC" = yes; then
17835         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837       else
17838         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17839         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17840       fi
17841       ;;
17842
17843     uts4*)
17844       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17845       hardcode_libdir_flag_spec_F77='-L$libdir'
17846       hardcode_shlibpath_var_F77=no
17847       ;;
17848
17849     *)
17850       ld_shlibs_F77=no
17851       ;;
17852     esac
17853   fi
17854
17855 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17856 $as_echo "$ld_shlibs_F77" >&6; }
17857 test "$ld_shlibs_F77" = no && can_build_shared=no
17858
17859 #
17860 # Do we need to explicitly link libc?
17861 #
17862 case "x$archive_cmds_need_lc_F77" in
17863 x|xyes)
17864   # Assume -lc should be added
17865   archive_cmds_need_lc_F77=yes
17866
17867   if test "$enable_shared" = yes && test "$GCC" = yes; then
17868     case $archive_cmds_F77 in
17869     *'~'*)
17870       # FIXME: we may have to deal with multi-command sequences.
17871       ;;
17872     '$CC '*)
17873       # Test whether the compiler implicitly links with -lc since on some
17874       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17875       # to ld, don't add -lc before -lgcc.
17876       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17877 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17878       $rm conftest*
17879       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17880
17881       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17882   (eval $ac_compile) 2>&5
17883   ac_status=$?
17884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } 2>conftest.err; then
17886         soname=conftest
17887         lib=conftest
17888         libobjs=conftest.$ac_objext
17889         deplibs=
17890         wl=$lt_prog_compiler_wl_F77
17891         pic_flag=$lt_prog_compiler_pic_F77
17892         compiler_flags=-v
17893         linker_flags=-v
17894         verstring=
17895         output_objdir=.
17896         libname=conftest
17897         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17898         allow_undefined_flag_F77=
17899         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17900   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17901   ac_status=$?
17902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); }
17904         then
17905           archive_cmds_need_lc_F77=no
17906         else
17907           archive_cmds_need_lc_F77=yes
17908         fi
17909         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17910       else
17911         cat conftest.err 1>&5
17912       fi
17913       $rm conftest*
17914       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17915 $as_echo "$archive_cmds_need_lc_F77" >&6; }
17916       ;;
17917     esac
17918   fi
17919   ;;
17920 esac
17921
17922 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17923 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17924 library_names_spec=
17925 libname_spec='lib$name'
17926 soname_spec=
17927 shrext_cmds=".so"
17928 postinstall_cmds=
17929 postuninstall_cmds=
17930 finish_cmds=
17931 finish_eval=
17932 shlibpath_var=
17933 shlibpath_overrides_runpath=unknown
17934 version_type=none
17935 dynamic_linker="$host_os ld.so"
17936 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17937
17938 need_lib_prefix=unknown
17939 hardcode_into_libs=no
17940
17941 # when you set need_version to no, make sure it does not cause -set_version
17942 # flags to be left without arguments
17943 need_version=unknown
17944
17945 case $host_os in
17946 aix3*)
17947   version_type=linux
17948   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17949   shlibpath_var=LIBPATH
17950
17951   # AIX 3 has no versioning support, so we append a major version to the name.
17952   soname_spec='${libname}${release}${shared_ext}$major'
17953   ;;
17954
17955 aix[4-9]*)
17956   version_type=linux
17957   need_lib_prefix=no
17958   need_version=no
17959   hardcode_into_libs=yes
17960   if test "$host_cpu" = ia64; then
17961     # AIX 5 supports IA64
17962     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17963     shlibpath_var=LD_LIBRARY_PATH
17964   else
17965     # With GCC up to 2.95.x, collect2 would create an import file
17966     # for dependence libraries.  The import file would start with
17967     # the line `#! .'.  This would cause the generated library to
17968     # depend on `.', always an invalid library.  This was fixed in
17969     # development snapshots of GCC prior to 3.0.
17970     case $host_os in
17971       aix4 | aix4.[01] | aix4.[01].*)
17972       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17973            echo ' yes '
17974            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17975         :
17976       else
17977         can_build_shared=no
17978       fi
17979       ;;
17980     esac
17981     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17982     # soname into executable. Probably we can add versioning support to
17983     # collect2, so additional links can be useful in future.
17984     if test "$aix_use_runtimelinking" = yes; then
17985       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17986       # instead of lib<name>.a to let people know that these are not
17987       # typical AIX shared libraries.
17988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17989     else
17990       # We preserve .a as extension for shared libraries through AIX4.2
17991       # and later when we are not doing run time linking.
17992       library_names_spec='${libname}${release}.a $libname.a'
17993       soname_spec='${libname}${release}${shared_ext}$major'
17994     fi
17995     shlibpath_var=LIBPATH
17996   fi
17997   ;;
17998
17999 amigaos*)
18000   library_names_spec='$libname.ixlibrary $libname.a'
18001   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18002   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'
18003   ;;
18004
18005 beos*)
18006   library_names_spec='${libname}${shared_ext}'
18007   dynamic_linker="$host_os ld.so"
18008   shlibpath_var=LIBRARY_PATH
18009   ;;
18010
18011 bsdi[45]*)
18012   version_type=linux
18013   need_version=no
18014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015   soname_spec='${libname}${release}${shared_ext}$major'
18016   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18017   shlibpath_var=LD_LIBRARY_PATH
18018   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18019   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18020   # the default ld.so.conf also contains /usr/contrib/lib and
18021   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18022   # libtool to hard-code these into programs
18023   ;;
18024
18025 cygwin* | mingw* | pw32*)
18026   version_type=windows
18027   shrext_cmds=".dll"
18028   need_version=no
18029   need_lib_prefix=no
18030
18031   case $GCC,$host_os in
18032   yes,cygwin* | yes,mingw* | yes,pw32*)
18033     library_names_spec='$libname.dll.a'
18034     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18035     postinstall_cmds='base_file=`basename \${file}`~
18036       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18037       dldir=$destdir/`dirname \$dlpath`~
18038       test -d \$dldir || mkdir -p \$dldir~
18039       $install_prog $dir/$dlname \$dldir/$dlname~
18040       chmod a+x \$dldir/$dlname'
18041     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18042       dlpath=$dir/\$dldll~
18043        $rm \$dlpath'
18044     shlibpath_overrides_runpath=yes
18045
18046     case $host_os in
18047     cygwin*)
18048       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18049       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18050       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18051       ;;
18052     mingw*)
18053       # MinGW DLLs use traditional 'lib' prefix
18054       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18055       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18056       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18057         # It is most probably a Windows format PATH printed by
18058         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18059         # path with ; separators, and with drive letters. We can handle the
18060         # drive letters (cygwin fileutils understands them), so leave them,
18061         # especially as we might pass files found there to a mingw objdump,
18062         # which wouldn't understand a cygwinified path. Ahh.
18063         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18064       else
18065         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18066       fi
18067       ;;
18068     pw32*)
18069       # pw32 DLLs use 'pw' prefix rather than 'lib'
18070       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18071       ;;
18072     esac
18073     ;;
18074
18075   *)
18076     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18077     ;;
18078   esac
18079   dynamic_linker='Win32 ld.exe'
18080   # FIXME: first we should search . and the directory the executable is in
18081   shlibpath_var=PATH
18082   ;;
18083
18084 darwin* | rhapsody*)
18085   dynamic_linker="$host_os dyld"
18086   version_type=darwin
18087   need_lib_prefix=no
18088   need_version=no
18089   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18090   soname_spec='${libname}${release}${major}$shared_ext'
18091   shlibpath_overrides_runpath=yes
18092   shlibpath_var=DYLD_LIBRARY_PATH
18093   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18094
18095   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18096   ;;
18097
18098 dgux*)
18099   version_type=linux
18100   need_lib_prefix=no
18101   need_version=no
18102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18103   soname_spec='${libname}${release}${shared_ext}$major'
18104   shlibpath_var=LD_LIBRARY_PATH
18105   ;;
18106
18107 freebsd1*)
18108   dynamic_linker=no
18109   ;;
18110
18111 freebsd* | dragonfly*)
18112   # DragonFly does not have aout.  When/if they implement a new
18113   # versioning mechanism, adjust this.
18114   if test -x /usr/bin/objformat; then
18115     objformat=`/usr/bin/objformat`
18116   else
18117     case $host_os in
18118     freebsd[123]*) objformat=aout ;;
18119     *) objformat=elf ;;
18120     esac
18121   fi
18122   version_type=freebsd-$objformat
18123   case $version_type in
18124     freebsd-elf*)
18125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18126       need_version=no
18127       need_lib_prefix=no
18128       ;;
18129     freebsd-*)
18130       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18131       need_version=yes
18132       ;;
18133   esac
18134   shlibpath_var=LD_LIBRARY_PATH
18135   case $host_os in
18136   freebsd2*)
18137     shlibpath_overrides_runpath=yes
18138     ;;
18139   freebsd3.[01]* | freebsdelf3.[01]*)
18140     shlibpath_overrides_runpath=yes
18141     hardcode_into_libs=yes
18142     ;;
18143   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18144   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18145     shlibpath_overrides_runpath=no
18146     hardcode_into_libs=yes
18147     ;;
18148   *) # from 4.6 on, and DragonFly
18149     shlibpath_overrides_runpath=yes
18150     hardcode_into_libs=yes
18151     ;;
18152   esac
18153   ;;
18154
18155 gnu*)
18156   version_type=linux
18157   need_lib_prefix=no
18158   need_version=no
18159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18160   soname_spec='${libname}${release}${shared_ext}$major'
18161   shlibpath_var=LD_LIBRARY_PATH
18162   hardcode_into_libs=yes
18163   ;;
18164
18165 hpux9* | hpux10* | hpux11*)
18166   # Give a soname corresponding to the major version so that dld.sl refuses to
18167   # link against other versions.
18168   version_type=sunos
18169   need_lib_prefix=no
18170   need_version=no
18171   case $host_cpu in
18172   ia64*)
18173     shrext_cmds='.so'
18174     hardcode_into_libs=yes
18175     dynamic_linker="$host_os dld.so"
18176     shlibpath_var=LD_LIBRARY_PATH
18177     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179     soname_spec='${libname}${release}${shared_ext}$major'
18180     if test "X$HPUX_IA64_MODE" = X32; then
18181       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18182     else
18183       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18184     fi
18185     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18186     ;;
18187    hppa*64*)
18188      shrext_cmds='.sl'
18189      hardcode_into_libs=yes
18190      dynamic_linker="$host_os dld.sl"
18191      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18192      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18193      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194      soname_spec='${libname}${release}${shared_ext}$major'
18195      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18196      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18197      ;;
18198    *)
18199     shrext_cmds='.sl'
18200     dynamic_linker="$host_os dld.sl"
18201     shlibpath_var=SHLIB_PATH
18202     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204     soname_spec='${libname}${release}${shared_ext}$major'
18205     ;;
18206   esac
18207   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18208   postinstall_cmds='chmod 555 $lib'
18209   ;;
18210
18211 interix[3-9]*)
18212   version_type=linux
18213   need_lib_prefix=no
18214   need_version=no
18215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18216   soname_spec='${libname}${release}${shared_ext}$major'
18217   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18218   shlibpath_var=LD_LIBRARY_PATH
18219   shlibpath_overrides_runpath=no
18220   hardcode_into_libs=yes
18221   ;;
18222
18223 irix5* | irix6* | nonstopux*)
18224   case $host_os in
18225     nonstopux*) version_type=nonstopux ;;
18226     *)
18227         if test "$lt_cv_prog_gnu_ld" = yes; then
18228                 version_type=linux
18229         else
18230                 version_type=irix
18231         fi ;;
18232   esac
18233   need_lib_prefix=no
18234   need_version=no
18235   soname_spec='${libname}${release}${shared_ext}$major'
18236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18237   case $host_os in
18238   irix5* | nonstopux*)
18239     libsuff= shlibsuff=
18240     ;;
18241   *)
18242     case $LD in # libtool.m4 will add one of these switches to LD
18243     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18244       libsuff= shlibsuff= libmagic=32-bit;;
18245     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18246       libsuff=32 shlibsuff=N32 libmagic=N32;;
18247     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18248       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18249     *) libsuff= shlibsuff= libmagic=never-match;;
18250     esac
18251     ;;
18252   esac
18253   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18254   shlibpath_overrides_runpath=no
18255   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18256   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18257   hardcode_into_libs=yes
18258   ;;
18259
18260 # No shared lib support for Linux oldld, aout, or coff.
18261 linux*oldld* | linux*aout* | linux*coff*)
18262   dynamic_linker=no
18263   ;;
18264
18265 # This must be Linux ELF.
18266 linux* | k*bsd*-gnu)
18267   version_type=linux
18268   need_lib_prefix=no
18269   need_version=no
18270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271   soname_spec='${libname}${release}${shared_ext}$major'
18272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18273   shlibpath_var=LD_LIBRARY_PATH
18274   shlibpath_overrides_runpath=no
18275   # This implies no fast_install, which is unacceptable.
18276   # Some rework will be needed to allow for fast_install
18277   # before this can be enabled.
18278   hardcode_into_libs=yes
18279   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18280   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18281
18282   # Append ld.so.conf contents to the search path
18283   if test -f /etc/ld.so.conf; then
18284     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' ' '`
18285     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18286   fi
18287
18288   # We used to test for /lib/ld.so.1 and disable shared libraries on
18289   # powerpc, because MkLinux only supported shared libraries with the
18290   # GNU dynamic linker.  Since this was broken with cross compilers,
18291   # most powerpc-linux boxes support dynamic linking these days and
18292   # people can always --disable-shared, the test was removed, and we
18293   # assume the GNU/Linux dynamic linker is in use.
18294   dynamic_linker='GNU/Linux ld.so'
18295   ;;
18296
18297 netbsd*)
18298   version_type=sunos
18299   need_lib_prefix=no
18300   need_version=no
18301   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18303     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18304     dynamic_linker='NetBSD (a.out) ld.so'
18305   else
18306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18307     soname_spec='${libname}${release}${shared_ext}$major'
18308     dynamic_linker='NetBSD ld.elf_so'
18309   fi
18310   shlibpath_var=LD_LIBRARY_PATH
18311   shlibpath_overrides_runpath=yes
18312   hardcode_into_libs=yes
18313   ;;
18314
18315 newsos6)
18316   version_type=linux
18317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318   shlibpath_var=LD_LIBRARY_PATH
18319   shlibpath_overrides_runpath=yes
18320   ;;
18321
18322 nto-qnx*)
18323   version_type=linux
18324   need_lib_prefix=no
18325   need_version=no
18326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18327   soname_spec='${libname}${release}${shared_ext}$major'
18328   shlibpath_var=LD_LIBRARY_PATH
18329   shlibpath_overrides_runpath=yes
18330   ;;
18331
18332 openbsd*)
18333   version_type=sunos
18334   sys_lib_dlsearch_path_spec="/usr/lib"
18335   need_lib_prefix=no
18336   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18337   case $host_os in
18338     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18339     *)                         need_version=no  ;;
18340   esac
18341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18343   shlibpath_var=LD_LIBRARY_PATH
18344   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18345     case $host_os in
18346       openbsd2.[89] | openbsd2.[89].*)
18347         shlibpath_overrides_runpath=no
18348         ;;
18349       *)
18350         shlibpath_overrides_runpath=yes
18351         ;;
18352       esac
18353   else
18354     shlibpath_overrides_runpath=yes
18355   fi
18356   ;;
18357
18358 os2*)
18359   libname_spec='$name'
18360   shrext_cmds=".dll"
18361   need_lib_prefix=no
18362   library_names_spec='$libname${shared_ext} $libname.a'
18363   dynamic_linker='OS/2 ld.exe'
18364   shlibpath_var=LIBPATH
18365   ;;
18366
18367 osf3* | osf4* | osf5*)
18368   version_type=osf
18369   need_lib_prefix=no
18370   need_version=no
18371   soname_spec='${libname}${release}${shared_ext}$major'
18372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373   shlibpath_var=LD_LIBRARY_PATH
18374   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18375   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18376   ;;
18377
18378 rdos*)
18379   dynamic_linker=no
18380   ;;
18381
18382 solaris*)
18383   version_type=linux
18384   need_lib_prefix=no
18385   need_version=no
18386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387   soname_spec='${libname}${release}${shared_ext}$major'
18388   shlibpath_var=LD_LIBRARY_PATH
18389   shlibpath_overrides_runpath=yes
18390   hardcode_into_libs=yes
18391   # ldd complains unless libraries are executable
18392   postinstall_cmds='chmod +x $lib'
18393   ;;
18394
18395 sunos4*)
18396   version_type=sunos
18397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18398   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18399   shlibpath_var=LD_LIBRARY_PATH
18400   shlibpath_overrides_runpath=yes
18401   if test "$with_gnu_ld" = yes; then
18402     need_lib_prefix=no
18403   fi
18404   need_version=yes
18405   ;;
18406
18407 sysv4 | sysv4.3*)
18408   version_type=linux
18409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410   soname_spec='${libname}${release}${shared_ext}$major'
18411   shlibpath_var=LD_LIBRARY_PATH
18412   case $host_vendor in
18413     sni)
18414       shlibpath_overrides_runpath=no
18415       need_lib_prefix=no
18416       export_dynamic_flag_spec='${wl}-Blargedynsym'
18417       runpath_var=LD_RUN_PATH
18418       ;;
18419     siemens)
18420       need_lib_prefix=no
18421       ;;
18422     motorola)
18423       need_lib_prefix=no
18424       need_version=no
18425       shlibpath_overrides_runpath=no
18426       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18427       ;;
18428   esac
18429   ;;
18430
18431 sysv4*MP*)
18432   if test -d /usr/nec ;then
18433     version_type=linux
18434     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18435     soname_spec='$libname${shared_ext}.$major'
18436     shlibpath_var=LD_LIBRARY_PATH
18437   fi
18438   ;;
18439
18440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18441   version_type=freebsd-elf
18442   need_lib_prefix=no
18443   need_version=no
18444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18445   soname_spec='${libname}${release}${shared_ext}$major'
18446   shlibpath_var=LD_LIBRARY_PATH
18447   hardcode_into_libs=yes
18448   if test "$with_gnu_ld" = yes; then
18449     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18450     shlibpath_overrides_runpath=no
18451   else
18452     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18453     shlibpath_overrides_runpath=yes
18454     case $host_os in
18455       sco3.2v5*)
18456         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18457         ;;
18458     esac
18459   fi
18460   sys_lib_dlsearch_path_spec='/usr/lib'
18461   ;;
18462
18463 uts4*)
18464   version_type=linux
18465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466   soname_spec='${libname}${release}${shared_ext}$major'
18467   shlibpath_var=LD_LIBRARY_PATH
18468   ;;
18469
18470 *)
18471   dynamic_linker=no
18472   ;;
18473 esac
18474 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18475 $as_echo "$dynamic_linker" >&6; }
18476 test "$dynamic_linker" = no && can_build_shared=no
18477
18478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18479   $as_echo_n "(cached) " >&6
18480 else
18481   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18482 fi
18483
18484 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18485 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18486   $as_echo_n "(cached) " >&6
18487 else
18488   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18489 fi
18490
18491 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18492
18493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18494 if test "$GCC" = yes; then
18495   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18496 fi
18497
18498 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18500 hardcode_action_F77=
18501 if test -n "$hardcode_libdir_flag_spec_F77" || \
18502    test -n "$runpath_var_F77" || \
18503    test "X$hardcode_automatic_F77" = "Xyes" ; then
18504
18505   # We can hardcode non-existant directories.
18506   if test "$hardcode_direct_F77" != no &&
18507      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18508      # have to relink, otherwise we might link with an installed library
18509      # when we should be linking with a yet-to-be-installed one
18510      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18511      test "$hardcode_minus_L_F77" != no; then
18512     # Linking always hardcodes the temporary library directory.
18513     hardcode_action_F77=relink
18514   else
18515     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18516     hardcode_action_F77=immediate
18517   fi
18518 else
18519   # We cannot hardcode anything, or else we can only hardcode existing
18520   # directories.
18521   hardcode_action_F77=unsupported
18522 fi
18523 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18524 $as_echo "$hardcode_action_F77" >&6; }
18525
18526 if test "$hardcode_action_F77" = relink; then
18527   # Fast installation is not supported
18528   enable_fast_install=no
18529 elif test "$shlibpath_overrides_runpath" = yes ||
18530      test "$enable_shared" = no; then
18531   # Fast installation is not necessary
18532   enable_fast_install=needless
18533 fi
18534
18535
18536 # The else clause should only fire when bootstrapping the
18537 # libtool distribution, otherwise you forgot to ship ltmain.sh
18538 # with your package, and you will get complaints that there are
18539 # no rules to generate ltmain.sh.
18540 if test -f "$ltmain"; then
18541   # See if we are running on zsh, and set the options which allow our commands through
18542   # without removal of \ escapes.
18543   if test -n "${ZSH_VERSION+set}" ; then
18544     setopt NO_GLOB_SUBST
18545   fi
18546   # Now quote all the things that may contain metacharacters while being
18547   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18548   # variables and quote the copies for generation of the libtool script.
18549   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18550     SED SHELL STRIP \
18551     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18552     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18553     deplibs_check_method reload_flag reload_cmds need_locks \
18554     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18555     lt_cv_sys_global_symbol_to_c_name_address \
18556     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18557     old_postinstall_cmds old_postuninstall_cmds \
18558     compiler_F77 \
18559     CC_F77 \
18560     LD_F77 \
18561     lt_prog_compiler_wl_F77 \
18562     lt_prog_compiler_pic_F77 \
18563     lt_prog_compiler_static_F77 \
18564     lt_prog_compiler_no_builtin_flag_F77 \
18565     export_dynamic_flag_spec_F77 \
18566     thread_safe_flag_spec_F77 \
18567     whole_archive_flag_spec_F77 \
18568     enable_shared_with_static_runtimes_F77 \
18569     old_archive_cmds_F77 \
18570     old_archive_from_new_cmds_F77 \
18571     predep_objects_F77 \
18572     postdep_objects_F77 \
18573     predeps_F77 \
18574     postdeps_F77 \
18575     compiler_lib_search_path_F77 \
18576     compiler_lib_search_dirs_F77 \
18577     archive_cmds_F77 \
18578     archive_expsym_cmds_F77 \
18579     postinstall_cmds_F77 \
18580     postuninstall_cmds_F77 \
18581     old_archive_from_expsyms_cmds_F77 \
18582     allow_undefined_flag_F77 \
18583     no_undefined_flag_F77 \
18584     export_symbols_cmds_F77 \
18585     hardcode_libdir_flag_spec_F77 \
18586     hardcode_libdir_flag_spec_ld_F77 \
18587     hardcode_libdir_separator_F77 \
18588     hardcode_automatic_F77 \
18589     module_cmds_F77 \
18590     module_expsym_cmds_F77 \
18591     lt_cv_prog_compiler_c_o_F77 \
18592     fix_srcfile_path_F77 \
18593     exclude_expsyms_F77 \
18594     include_expsyms_F77; do
18595
18596     case $var in
18597     old_archive_cmds_F77 | \
18598     old_archive_from_new_cmds_F77 | \
18599     archive_cmds_F77 | \
18600     archive_expsym_cmds_F77 | \
18601     module_cmds_F77 | \
18602     module_expsym_cmds_F77 | \
18603     old_archive_from_expsyms_cmds_F77 | \
18604     export_symbols_cmds_F77 | \
18605     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18606     postinstall_cmds | postuninstall_cmds | \
18607     old_postinstall_cmds | old_postuninstall_cmds | \
18608     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18609       # Double-quote double-evaled strings.
18610       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18611       ;;
18612     *)
18613       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18614       ;;
18615     esac
18616   done
18617
18618   case $lt_echo in
18619   *'\$0 --fallback-echo"')
18620     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18621     ;;
18622   esac
18623
18624 cfgfile="$ofile"
18625
18626   cat <<__EOF__ >> "$cfgfile"
18627 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18628
18629 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18630
18631 # Shell to use when invoking shell scripts.
18632 SHELL=$lt_SHELL
18633
18634 # Whether or not to build shared libraries.
18635 build_libtool_libs=$enable_shared
18636
18637 # Whether or not to build static libraries.
18638 build_old_libs=$enable_static
18639
18640 # Whether or not to add -lc for building shared libraries.
18641 build_libtool_need_lc=$archive_cmds_need_lc_F77
18642
18643 # Whether or not to disallow shared libs when runtime libs are static
18644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18645
18646 # Whether or not to optimize for fast installation.
18647 fast_install=$enable_fast_install
18648
18649 # The host system.
18650 host_alias=$host_alias
18651 host=$host
18652 host_os=$host_os
18653
18654 # The build system.
18655 build_alias=$build_alias
18656 build=$build
18657 build_os=$build_os
18658
18659 # An echo program that does not interpret backslashes.
18660 echo=$lt_echo
18661
18662 # The archiver.
18663 AR=$lt_AR
18664 AR_FLAGS=$lt_AR_FLAGS
18665
18666 # A C compiler.
18667 LTCC=$lt_LTCC
18668
18669 # LTCC compiler flags.
18670 LTCFLAGS=$lt_LTCFLAGS
18671
18672 # A language-specific compiler.
18673 CC=$lt_compiler_F77
18674
18675 # Is the compiler the GNU C compiler?
18676 with_gcc=$GCC_F77
18677
18678 # An ERE matcher.
18679 EGREP=$lt_EGREP
18680
18681 # The linker used to build libraries.
18682 LD=$lt_LD_F77
18683
18684 # Whether we need hard or soft links.
18685 LN_S=$lt_LN_S
18686
18687 # A BSD-compatible nm program.
18688 NM=$lt_NM
18689
18690 # A symbol stripping program
18691 STRIP=$lt_STRIP
18692
18693 # Used to examine libraries when file_magic_cmd begins "file"
18694 MAGIC_CMD=$MAGIC_CMD
18695
18696 # Used on cygwin: DLL creation program.
18697 DLLTOOL="$DLLTOOL"
18698
18699 # Used on cygwin: object dumper.
18700 OBJDUMP="$OBJDUMP"
18701
18702 # Used on cygwin: assembler.
18703 AS="$AS"
18704
18705 # The name of the directory that contains temporary libtool files.
18706 objdir=$objdir
18707
18708 # How to create reloadable object files.
18709 reload_flag=$lt_reload_flag
18710 reload_cmds=$lt_reload_cmds
18711
18712 # How to pass a linker flag through the compiler.
18713 wl=$lt_lt_prog_compiler_wl_F77
18714
18715 # Object file suffix (normally "o").
18716 objext="$ac_objext"
18717
18718 # Old archive suffix (normally "a").
18719 libext="$libext"
18720
18721 # Shared library suffix (normally ".so").
18722 shrext_cmds='$shrext_cmds'
18723
18724 # Executable file suffix (normally "").
18725 exeext="$exeext"
18726
18727 # Additional compiler flags for building library objects.
18728 pic_flag=$lt_lt_prog_compiler_pic_F77
18729 pic_mode=$pic_mode
18730
18731 # What is the maximum length of a command?
18732 max_cmd_len=$lt_cv_sys_max_cmd_len
18733
18734 # Does compiler simultaneously support -c and -o options?
18735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18736
18737 # Must we lock files when doing compilation?
18738 need_locks=$lt_need_locks
18739
18740 # Do we need the lib prefix for modules?
18741 need_lib_prefix=$need_lib_prefix
18742
18743 # Do we need a version for libraries?
18744 need_version=$need_version
18745
18746 # Whether dlopen is supported.
18747 dlopen_support=$enable_dlopen
18748
18749 # Whether dlopen of programs is supported.
18750 dlopen_self=$enable_dlopen_self
18751
18752 # Whether dlopen of statically linked programs is supported.
18753 dlopen_self_static=$enable_dlopen_self_static
18754
18755 # Compiler flag to prevent dynamic linking.
18756 link_static_flag=$lt_lt_prog_compiler_static_F77
18757
18758 # Compiler flag to turn off builtin functions.
18759 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18760
18761 # Compiler flag to allow reflexive dlopens.
18762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18763
18764 # Compiler flag to generate shared objects directly from archives.
18765 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18766
18767 # Compiler flag to generate thread-safe objects.
18768 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18769
18770 # Library versioning type.
18771 version_type=$version_type
18772
18773 # Format of library name prefix.
18774 libname_spec=$lt_libname_spec
18775
18776 # List of archive names.  First name is the real one, the rest are links.
18777 # The last name is the one that the linker finds with -lNAME.
18778 library_names_spec=$lt_library_names_spec
18779
18780 # The coded name of the library, if different from the real name.
18781 soname_spec=$lt_soname_spec
18782
18783 # Commands used to build and install an old-style archive.
18784 RANLIB=$lt_RANLIB
18785 old_archive_cmds=$lt_old_archive_cmds_F77
18786 old_postinstall_cmds=$lt_old_postinstall_cmds
18787 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18788
18789 # Create an old-style archive from a shared archive.
18790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18791
18792 # Create a temporary old-style archive to link instead of a shared archive.
18793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18794
18795 # Commands used to build and install a shared archive.
18796 archive_cmds=$lt_archive_cmds_F77
18797 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18798 postinstall_cmds=$lt_postinstall_cmds
18799 postuninstall_cmds=$lt_postuninstall_cmds
18800
18801 # Commands used to build a loadable module (assumed same as above if empty)
18802 module_cmds=$lt_module_cmds_F77
18803 module_expsym_cmds=$lt_module_expsym_cmds_F77
18804
18805 # Commands to strip libraries.
18806 old_striplib=$lt_old_striplib
18807 striplib=$lt_striplib
18808
18809 # Dependencies to place before the objects being linked to create a
18810 # shared library.
18811 predep_objects=$lt_predep_objects_F77
18812
18813 # Dependencies to place after the objects being linked to create a
18814 # shared library.
18815 postdep_objects=$lt_postdep_objects_F77
18816
18817 # Dependencies to place before the objects being linked to create a
18818 # shared library.
18819 predeps=$lt_predeps_F77
18820
18821 # Dependencies to place after the objects being linked to create a
18822 # shared library.
18823 postdeps=$lt_postdeps_F77
18824
18825 # The directories searched by this compiler when creating a shared
18826 # library
18827 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18828
18829 # The library search path used internally by the compiler when linking
18830 # a shared library.
18831 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18832
18833 # Method to check whether dependent libraries are shared objects.
18834 deplibs_check_method=$lt_deplibs_check_method
18835
18836 # Command to use when deplibs_check_method == file_magic.
18837 file_magic_cmd=$lt_file_magic_cmd
18838
18839 # Flag that allows shared libraries with undefined symbols to be built.
18840 allow_undefined_flag=$lt_allow_undefined_flag_F77
18841
18842 # Flag that forces no undefined symbols.
18843 no_undefined_flag=$lt_no_undefined_flag_F77
18844
18845 # Commands used to finish a libtool library installation in a directory.
18846 finish_cmds=$lt_finish_cmds
18847
18848 # Same as above, but a single script fragment to be evaled but not shown.
18849 finish_eval=$lt_finish_eval
18850
18851 # Take the output of nm and produce a listing of raw symbols and C names.
18852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18853
18854 # Transform the output of nm in a proper C declaration
18855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18856
18857 # Transform the output of nm in a C name address pair
18858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18859
18860 # This is the shared library runtime path variable.
18861 runpath_var=$runpath_var
18862
18863 # This is the shared library path variable.
18864 shlibpath_var=$shlibpath_var
18865
18866 # Is shlibpath searched before the hard-coded library search path?
18867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18868
18869 # How to hardcode a shared library path into an executable.
18870 hardcode_action=$hardcode_action_F77
18871
18872 # Whether we should hardcode library paths into libraries.
18873 hardcode_into_libs=$hardcode_into_libs
18874
18875 # Flag to hardcode \$libdir into a binary during linking.
18876 # This must work even if \$libdir does not exist.
18877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18878
18879 # If ld is used when linking, flag to hardcode \$libdir into
18880 # a binary during linking. This must work even if \$libdir does
18881 # not exist.
18882 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18883
18884 # Whether we need a single -rpath flag with a separated argument.
18885 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18886
18887 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18888 # resulting binary.
18889 hardcode_direct=$hardcode_direct_F77
18890
18891 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18892 # resulting binary.
18893 hardcode_minus_L=$hardcode_minus_L_F77
18894
18895 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18896 # the resulting binary.
18897 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18898
18899 # Set to yes if building a shared library automatically hardcodes DIR into the library
18900 # and all subsequent libraries and executables linked against it.
18901 hardcode_automatic=$hardcode_automatic_F77
18902
18903 # Variables whose values should be saved in libtool wrapper scripts and
18904 # restored at relink time.
18905 variables_saved_for_relink="$variables_saved_for_relink"
18906
18907 # Whether libtool must link a program against all its dependency libraries.
18908 link_all_deplibs=$link_all_deplibs_F77
18909
18910 # Compile-time system search path for libraries
18911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18912
18913 # Run-time system search path for libraries
18914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18915
18916 # Fix the shell variable \$srcfile for the compiler.
18917 fix_srcfile_path=$lt_fix_srcfile_path
18918
18919 # Set to yes if exported symbols are required.
18920 always_export_symbols=$always_export_symbols_F77
18921
18922 # The commands to list exported symbols.
18923 export_symbols_cmds=$lt_export_symbols_cmds_F77
18924
18925 # The commands to extract the exported symbol list from a shared archive.
18926 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18927
18928 # Symbols that should not be listed in the preloaded symbols.
18929 exclude_expsyms=$lt_exclude_expsyms_F77
18930
18931 # Symbols that must always be exported.
18932 include_expsyms=$lt_include_expsyms_F77
18933
18934 # ### END LIBTOOL TAG CONFIG: $tagname
18935
18936 __EOF__
18937
18938
18939 else
18940   # If there is no Makefile yet, we rely on a make rule to execute
18941   # `config.status --recheck' to rerun these tests and create the
18942   # libtool script then.
18943   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18944   if test -f "$ltmain_in"; then
18945     test -f Makefile && make "$ltmain"
18946   fi
18947 fi
18948
18949
18950 ac_ext=c
18951 ac_cpp='$CPP $CPPFLAGS'
18952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18955
18956 CC="$lt_save_CC"
18957
18958         else
18959           tagname=""
18960         fi
18961         ;;
18962
18963       GCJ)
18964         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18965
18966
18967 # Source file extension for Java test sources.
18968 ac_ext=java
18969
18970 # Object file extension for compiled Java test sources.
18971 objext=o
18972 objext_GCJ=$objext
18973
18974 # Code to be used in simple compile tests
18975 lt_simple_compile_test_code="class foo {}"
18976
18977 # Code to be used in simple link tests
18978 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18979
18980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18981
18982 # If no C compiler was specified, use CC.
18983 LTCC=${LTCC-"$CC"}
18984
18985 # If no C compiler flags were specified, use CFLAGS.
18986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18987
18988 # Allow CC to be a program name with arguments.
18989 compiler=$CC
18990
18991
18992 # save warnings/boilerplate of simple test code
18993 ac_outfile=conftest.$ac_objext
18994 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18996 _lt_compiler_boilerplate=`cat conftest.err`
18997 $rm conftest*
18998
18999 ac_outfile=conftest.$ac_objext
19000 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19002 _lt_linker_boilerplate=`cat conftest.err`
19003 $rm -r conftest*
19004
19005
19006 # Allow CC to be a program name with arguments.
19007 lt_save_CC="$CC"
19008 CC=${GCJ-"gcj"}
19009 compiler=$CC
19010 compiler_GCJ=$CC
19011 for cc_temp in $compiler""; do
19012   case $cc_temp in
19013     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19014     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19015     \-*) ;;
19016     *) break;;
19017   esac
19018 done
19019 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19020
19021
19022 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19023 archive_cmds_need_lc_GCJ=no
19024
19025 old_archive_cmds_GCJ=$old_archive_cmds
19026
19027
19028 lt_prog_compiler_no_builtin_flag_GCJ=
19029
19030 if test "$GCC" = yes; then
19031   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19032
19033
19034 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19035 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19037   $as_echo_n "(cached) " >&6
19038 else
19039   lt_cv_prog_compiler_rtti_exceptions=no
19040   ac_outfile=conftest.$ac_objext
19041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19042    lt_compiler_flag="-fno-rtti -fno-exceptions"
19043    # Insert the option either (1) after the last *FLAGS variable, or
19044    # (2) before a word containing "conftest.", or (3) at the end.
19045    # Note that $ac_compile itself does not contain backslashes and begins
19046    # with a dollar sign (not a hyphen), so the echo should work correctly.
19047    # The option is referenced via a variable to avoid confusing sed.
19048    lt_compile=`echo "$ac_compile" | $SED \
19049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19051    -e 's:$: $lt_compiler_flag:'`
19052    (eval echo "\"\$as_me:19052: $lt_compile\"" >&5)
19053    (eval "$lt_compile" 2>conftest.err)
19054    ac_status=$?
19055    cat conftest.err >&5
19056    echo "$as_me:19056: \$? = $ac_status" >&5
19057    if (exit $ac_status) && test -s "$ac_outfile"; then
19058      # The compiler can only warn and ignore the option if not recognized
19059      # So say no if there are warnings other than the usual output.
19060      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19061      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19062      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19063        lt_cv_prog_compiler_rtti_exceptions=yes
19064      fi
19065    fi
19066    $rm conftest*
19067
19068 fi
19069 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19070 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19071
19072 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19073     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19074 else
19075     :
19076 fi
19077
19078 fi
19079
19080 lt_prog_compiler_wl_GCJ=
19081 lt_prog_compiler_pic_GCJ=
19082 lt_prog_compiler_static_GCJ=
19083
19084 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19085 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19086
19087   if test "$GCC" = yes; then
19088     lt_prog_compiler_wl_GCJ='-Wl,'
19089     lt_prog_compiler_static_GCJ='-static'
19090
19091     case $host_os in
19092       aix*)
19093       # All AIX code is PIC.
19094       if test "$host_cpu" = ia64; then
19095         # AIX 5 now supports IA64 processor
19096         lt_prog_compiler_static_GCJ='-Bstatic'
19097       fi
19098       ;;
19099
19100     amigaos*)
19101       # FIXME: we need at least 68020 code to build shared libraries, but
19102       # adding the `-m68020' flag to GCC prevents building anything better,
19103       # like `-m68040'.
19104       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19105       ;;
19106
19107     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19108       # PIC is the default for these OSes.
19109       ;;
19110
19111     mingw* | cygwin* | pw32* | os2*)
19112       # This hack is so that the source file can tell whether it is being
19113       # built for inclusion in a dll (and should export symbols for example).
19114       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19115       # (--disable-auto-import) libraries
19116
19117       ;;
19118
19119     darwin* | rhapsody*)
19120       # PIC is the default on this platform
19121       # Common symbols not allowed in MH_DYLIB files
19122       lt_prog_compiler_pic_GCJ='-fno-common'
19123       ;;
19124
19125     interix[3-9]*)
19126       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19127       # Instead, we relocate shared libraries at runtime.
19128       ;;
19129
19130     msdosdjgpp*)
19131       # Just because we use GCC doesn't mean we suddenly get shared libraries
19132       # on systems that don't support them.
19133       lt_prog_compiler_can_build_shared_GCJ=no
19134       enable_shared=no
19135       ;;
19136
19137     sysv4*MP*)
19138       if test -d /usr/nec; then
19139         lt_prog_compiler_pic_GCJ=-Kconform_pic
19140       fi
19141       ;;
19142
19143     hpux*)
19144       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19145       # not for PA HP-UX.
19146       case $host_cpu in
19147       hppa*64*|ia64*)
19148         # +Z the default
19149         ;;
19150       *)
19151         lt_prog_compiler_pic_GCJ='-fPIC'
19152         ;;
19153       esac
19154       ;;
19155
19156     *)
19157       lt_prog_compiler_pic_GCJ='-fPIC'
19158       ;;
19159     esac
19160   else
19161     # PORTME Check for flag to pass linker flags through the system compiler.
19162     case $host_os in
19163     aix*)
19164       lt_prog_compiler_wl_GCJ='-Wl,'
19165       if test "$host_cpu" = ia64; then
19166         # AIX 5 now supports IA64 processor
19167         lt_prog_compiler_static_GCJ='-Bstatic'
19168       else
19169         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19170       fi
19171       ;;
19172       darwin*)
19173         # PIC is the default on this platform
19174         # Common symbols not allowed in MH_DYLIB files
19175        case $cc_basename in
19176          xlc*)
19177          lt_prog_compiler_pic_GCJ='-qnocommon'
19178          lt_prog_compiler_wl_GCJ='-Wl,'
19179          ;;
19180        esac
19181        ;;
19182
19183     mingw* | cygwin* | pw32* | os2*)
19184       # This hack is so that the source file can tell whether it is being
19185       # built for inclusion in a dll (and should export symbols for example).
19186
19187       ;;
19188
19189     hpux9* | hpux10* | hpux11*)
19190       lt_prog_compiler_wl_GCJ='-Wl,'
19191       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19192       # not for PA HP-UX.
19193       case $host_cpu in
19194       hppa*64*|ia64*)
19195         # +Z the default
19196         ;;
19197       *)
19198         lt_prog_compiler_pic_GCJ='+Z'
19199         ;;
19200       esac
19201       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19202       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19203       ;;
19204
19205     irix5* | irix6* | nonstopux*)
19206       lt_prog_compiler_wl_GCJ='-Wl,'
19207       # PIC (with -KPIC) is the default.
19208       lt_prog_compiler_static_GCJ='-non_shared'
19209       ;;
19210
19211     newsos6)
19212       lt_prog_compiler_pic_GCJ='-KPIC'
19213       lt_prog_compiler_static_GCJ='-Bstatic'
19214       ;;
19215
19216     linux* | k*bsd*-gnu)
19217       case $cc_basename in
19218       icc* | ecc*)
19219         lt_prog_compiler_wl_GCJ='-Wl,'
19220         lt_prog_compiler_pic_GCJ='-KPIC'
19221         lt_prog_compiler_static_GCJ='-static'
19222         ;;
19223       pgcc* | pgf77* | pgf90* | pgf95*)
19224         # Portland Group compilers (*not* the Pentium gcc compiler,
19225         # which looks to be a dead project)
19226         lt_prog_compiler_wl_GCJ='-Wl,'
19227         lt_prog_compiler_pic_GCJ='-fpic'
19228         lt_prog_compiler_static_GCJ='-Bstatic'
19229         ;;
19230       ccc*)
19231         lt_prog_compiler_wl_GCJ='-Wl,'
19232         # All Alpha code is PIC.
19233         lt_prog_compiler_static_GCJ='-non_shared'
19234         ;;
19235       *)
19236         case `$CC -V 2>&1 | sed 5q` in
19237         *Sun\ C*)
19238           # Sun C 5.9
19239           lt_prog_compiler_pic_GCJ='-KPIC'
19240           lt_prog_compiler_static_GCJ='-Bstatic'
19241           lt_prog_compiler_wl_GCJ='-Wl,'
19242           ;;
19243         *Sun\ F*)
19244           # Sun Fortran 8.3 passes all unrecognized flags to the linker
19245           lt_prog_compiler_pic_GCJ='-KPIC'
19246           lt_prog_compiler_static_GCJ='-Bstatic'
19247           lt_prog_compiler_wl_GCJ=''
19248           ;;
19249         esac
19250         ;;
19251       esac
19252       ;;
19253
19254     osf3* | osf4* | osf5*)
19255       lt_prog_compiler_wl_GCJ='-Wl,'
19256       # All OSF/1 code is PIC.
19257       lt_prog_compiler_static_GCJ='-non_shared'
19258       ;;
19259
19260     rdos*)
19261       lt_prog_compiler_static_GCJ='-non_shared'
19262       ;;
19263
19264     solaris*)
19265       lt_prog_compiler_pic_GCJ='-KPIC'
19266       lt_prog_compiler_static_GCJ='-Bstatic'
19267       case $cc_basename in
19268       f77* | f90* | f95*)
19269         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19270       *)
19271         lt_prog_compiler_wl_GCJ='-Wl,';;
19272       esac
19273       ;;
19274
19275     sunos4*)
19276       lt_prog_compiler_wl_GCJ='-Qoption ld '
19277       lt_prog_compiler_pic_GCJ='-PIC'
19278       lt_prog_compiler_static_GCJ='-Bstatic'
19279       ;;
19280
19281     sysv4 | sysv4.2uw2* | sysv4.3*)
19282       lt_prog_compiler_wl_GCJ='-Wl,'
19283       lt_prog_compiler_pic_GCJ='-KPIC'
19284       lt_prog_compiler_static_GCJ='-Bstatic'
19285       ;;
19286
19287     sysv4*MP*)
19288       if test -d /usr/nec ;then
19289         lt_prog_compiler_pic_GCJ='-Kconform_pic'
19290         lt_prog_compiler_static_GCJ='-Bstatic'
19291       fi
19292       ;;
19293
19294     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19295       lt_prog_compiler_wl_GCJ='-Wl,'
19296       lt_prog_compiler_pic_GCJ='-KPIC'
19297       lt_prog_compiler_static_GCJ='-Bstatic'
19298       ;;
19299
19300     unicos*)
19301       lt_prog_compiler_wl_GCJ='-Wl,'
19302       lt_prog_compiler_can_build_shared_GCJ=no
19303       ;;
19304
19305     uts4*)
19306       lt_prog_compiler_pic_GCJ='-pic'
19307       lt_prog_compiler_static_GCJ='-Bstatic'
19308       ;;
19309
19310     *)
19311       lt_prog_compiler_can_build_shared_GCJ=no
19312       ;;
19313     esac
19314   fi
19315
19316 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19317 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19318
19319 #
19320 # Check to make sure the PIC flag actually works.
19321 #
19322 if test -n "$lt_prog_compiler_pic_GCJ"; then
19323
19324 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19325 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19326 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19327   $as_echo_n "(cached) " >&6
19328 else
19329   lt_cv_prog_compiler_pic_works_GCJ=no
19330   ac_outfile=conftest.$ac_objext
19331    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19332    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19333    # Insert the option either (1) after the last *FLAGS variable, or
19334    # (2) before a word containing "conftest.", or (3) at the end.
19335    # Note that $ac_compile itself does not contain backslashes and begins
19336    # with a dollar sign (not a hyphen), so the echo should work correctly.
19337    # The option is referenced via a variable to avoid confusing sed.
19338    lt_compile=`echo "$ac_compile" | $SED \
19339    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19341    -e 's:$: $lt_compiler_flag:'`
19342    (eval echo "\"\$as_me:19342: $lt_compile\"" >&5)
19343    (eval "$lt_compile" 2>conftest.err)
19344    ac_status=$?
19345    cat conftest.err >&5
19346    echo "$as_me:19346: \$? = $ac_status" >&5
19347    if (exit $ac_status) && test -s "$ac_outfile"; then
19348      # The compiler can only warn and ignore the option if not recognized
19349      # So say no if there are warnings other than the usual output.
19350      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19351      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19352      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19353        lt_cv_prog_compiler_pic_works_GCJ=yes
19354      fi
19355    fi
19356    $rm conftest*
19357
19358 fi
19359 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19360 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19361
19362 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19363     case $lt_prog_compiler_pic_GCJ in
19364      "" | " "*) ;;
19365      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19366      esac
19367 else
19368     lt_prog_compiler_pic_GCJ=
19369      lt_prog_compiler_can_build_shared_GCJ=no
19370 fi
19371
19372 fi
19373 case $host_os in
19374   # For platforms which do not support PIC, -DPIC is meaningless:
19375   *djgpp*)
19376     lt_prog_compiler_pic_GCJ=
19377     ;;
19378   *)
19379     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19380     ;;
19381 esac
19382
19383 #
19384 # Check to make sure the static flag actually works.
19385 #
19386 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19387 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19389 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
19390   $as_echo_n "(cached) " >&6
19391 else
19392   lt_cv_prog_compiler_static_works_GCJ=no
19393    save_LDFLAGS="$LDFLAGS"
19394    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19395    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19396    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19397      # The linker can only warn and ignore the option if not recognized
19398      # So say no if there are warnings
19399      if test -s conftest.err; then
19400        # Append any errors to the config.log.
19401        cat conftest.err 1>&5
19402        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19403        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19404        if diff conftest.exp conftest.er2 >/dev/null; then
19405          lt_cv_prog_compiler_static_works_GCJ=yes
19406        fi
19407      else
19408        lt_cv_prog_compiler_static_works_GCJ=yes
19409      fi
19410    fi
19411    $rm -r conftest*
19412    LDFLAGS="$save_LDFLAGS"
19413
19414 fi
19415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19416 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19417
19418 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19419     :
19420 else
19421     lt_prog_compiler_static_GCJ=
19422 fi
19423
19424
19425 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19427 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19428   $as_echo_n "(cached) " >&6
19429 else
19430   lt_cv_prog_compiler_c_o_GCJ=no
19431    $rm -r conftest 2>/dev/null
19432    mkdir conftest
19433    cd conftest
19434    mkdir out
19435    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19436
19437    lt_compiler_flag="-o out/conftest2.$ac_objext"
19438    # Insert the option either (1) after the last *FLAGS variable, or
19439    # (2) before a word containing "conftest.", or (3) at the end.
19440    # Note that $ac_compile itself does not contain backslashes and begins
19441    # with a dollar sign (not a hyphen), so the echo should work correctly.
19442    lt_compile=`echo "$ac_compile" | $SED \
19443    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19445    -e 's:$: $lt_compiler_flag:'`
19446    (eval echo "\"\$as_me:19446: $lt_compile\"" >&5)
19447    (eval "$lt_compile" 2>out/conftest.err)
19448    ac_status=$?
19449    cat out/conftest.err >&5
19450    echo "$as_me:19450: \$? = $ac_status" >&5
19451    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19452    then
19453      # The compiler can only warn and ignore the option if not recognized
19454      # So say no if there are warnings
19455      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19456      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19457      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19458        lt_cv_prog_compiler_c_o_GCJ=yes
19459      fi
19460    fi
19461    chmod u+w . 2>&5
19462    $rm conftest*
19463    # SGI C++ compiler will create directory out/ii_files/ for
19464    # template instantiation
19465    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19466    $rm out/* && rmdir out
19467    cd ..
19468    rmdir conftest
19469    $rm conftest*
19470
19471 fi
19472 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19473 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19474
19475
19476 hard_links="nottested"
19477 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19478   # do not overwrite the value of need_locks provided by the user
19479   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19480 $as_echo_n "checking if we can lock with hard links... " >&6; }
19481   hard_links=yes
19482   $rm conftest*
19483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19484   touch conftest.a
19485   ln conftest.a conftest.b 2>&5 || hard_links=no
19486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19487   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19488 $as_echo "$hard_links" >&6; }
19489   if test "$hard_links" = no; then
19490     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19491 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19492     need_locks=warn
19493   fi
19494 else
19495   need_locks=no
19496 fi
19497
19498 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19500
19501   runpath_var=
19502   allow_undefined_flag_GCJ=
19503   enable_shared_with_static_runtimes_GCJ=no
19504   archive_cmds_GCJ=
19505   archive_expsym_cmds_GCJ=
19506   old_archive_From_new_cmds_GCJ=
19507   old_archive_from_expsyms_cmds_GCJ=
19508   export_dynamic_flag_spec_GCJ=
19509   whole_archive_flag_spec_GCJ=
19510   thread_safe_flag_spec_GCJ=
19511   hardcode_libdir_flag_spec_GCJ=
19512   hardcode_libdir_flag_spec_ld_GCJ=
19513   hardcode_libdir_separator_GCJ=
19514   hardcode_direct_GCJ=no
19515   hardcode_minus_L_GCJ=no
19516   hardcode_shlibpath_var_GCJ=unsupported
19517   link_all_deplibs_GCJ=unknown
19518   hardcode_automatic_GCJ=no
19519   module_cmds_GCJ=
19520   module_expsym_cmds_GCJ=
19521   always_export_symbols_GCJ=no
19522   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19523   # include_expsyms should be a list of space-separated symbols to be *always*
19524   # included in the symbol list
19525   include_expsyms_GCJ=
19526   # exclude_expsyms can be an extended regexp of symbols to exclude
19527   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19528   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19529   # as well as any symbol that contains `d'.
19530   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19531   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19532   # platforms (ab)use it in PIC code, but their linkers get confused if
19533   # the symbol is explicitly referenced.  Since portable code cannot
19534   # rely on this symbol name, it's probably fine to never include it in
19535   # preloaded symbol tables.
19536   # Exclude shared library initialization/finalization symbols.
19537   extract_expsyms_cmds=
19538   # Just being paranoid about ensuring that cc_basename is set.
19539   for cc_temp in $compiler""; do
19540   case $cc_temp in
19541     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19542     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19543     \-*) ;;
19544     *) break;;
19545   esac
19546 done
19547 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19548
19549   case $host_os in
19550   cygwin* | mingw* | pw32*)
19551     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19552     # When not using gcc, we currently assume that we are using
19553     # Microsoft Visual C++.
19554     if test "$GCC" != yes; then
19555       with_gnu_ld=no
19556     fi
19557     ;;
19558   interix*)
19559     # we just hope/assume this is gcc and not c89 (= MSVC++)
19560     with_gnu_ld=yes
19561     ;;
19562   openbsd*)
19563     with_gnu_ld=no
19564     ;;
19565   esac
19566
19567   ld_shlibs_GCJ=yes
19568   if test "$with_gnu_ld" = yes; then
19569     # If archive_cmds runs LD, not CC, wlarc should be empty
19570     wlarc='${wl}'
19571
19572     # Set some defaults for GNU ld with shared library support. These
19573     # are reset later if shared libraries are not supported. Putting them
19574     # here allows them to be overridden if necessary.
19575     runpath_var=LD_RUN_PATH
19576     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19577     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19578     # ancient GNU ld didn't support --whole-archive et. al.
19579     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19580         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19581       else
19582         whole_archive_flag_spec_GCJ=
19583     fi
19584     supports_anon_versioning=no
19585     case `$LD -v 2>/dev/null` in
19586       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19587       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19588       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19589       *\ 2.11.*) ;; # other 2.11 versions
19590       *) supports_anon_versioning=yes ;;
19591     esac
19592
19593     # See if GNU ld supports shared libraries.
19594     case $host_os in
19595     aix[3-9]*)
19596       # On AIX/PPC, the GNU linker is very broken
19597       if test "$host_cpu" != ia64; then
19598         ld_shlibs_GCJ=no
19599         cat <<EOF 1>&2
19600
19601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19602 *** to be unable to reliably create shared libraries on AIX.
19603 *** Therefore, libtool is disabling shared libraries support.  If you
19604 *** really care for shared libraries, you may want to modify your PATH
19605 *** so that a non-GNU linker is found, and then restart.
19606
19607 EOF
19608       fi
19609       ;;
19610
19611     amigaos*)
19612       archive_cmds_GCJ='$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)'
19613       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19614       hardcode_minus_L_GCJ=yes
19615
19616       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19617       # that the semantics of dynamic libraries on AmigaOS, at least up
19618       # to version 4, is to share data among multiple programs linked
19619       # with the same dynamic library.  Since this doesn't match the
19620       # behavior of shared libraries on other platforms, we can't use
19621       # them.
19622       ld_shlibs_GCJ=no
19623       ;;
19624
19625     beos*)
19626       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19627         allow_undefined_flag_GCJ=unsupported
19628         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19629         # support --undefined.  This deserves some investigation.  FIXME
19630         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19631       else
19632         ld_shlibs_GCJ=no
19633       fi
19634       ;;
19635
19636     cygwin* | mingw* | pw32*)
19637       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19638       # as there is no search path for DLLs.
19639       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19640       allow_undefined_flag_GCJ=unsupported
19641       always_export_symbols_GCJ=no
19642       enable_shared_with_static_runtimes_GCJ=yes
19643       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19644
19645       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19646         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19647         # If the export-symbols file already is a .def file (1st line
19648         # is EXPORTS), use it as is; otherwise, prepend...
19649         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19650           cp $export_symbols $output_objdir/$soname.def;
19651         else
19652           echo EXPORTS > $output_objdir/$soname.def;
19653           cat $export_symbols >> $output_objdir/$soname.def;
19654         fi~
19655         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19656       else
19657         ld_shlibs_GCJ=no
19658       fi
19659       ;;
19660
19661     interix[3-9]*)
19662       hardcode_direct_GCJ=no
19663       hardcode_shlibpath_var_GCJ=no
19664       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19665       export_dynamic_flag_spec_GCJ='${wl}-E'
19666       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19667       # Instead, shared libraries are loaded at an image base (0x10000000 by
19668       # default) and relocated if they conflict, which is a slow very memory
19669       # consuming and fragmenting process.  To avoid this, we pick a random,
19670       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19671       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19672       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19673       archive_expsym_cmds_GCJ='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'
19674       ;;
19675
19676     gnu* | linux* | k*bsd*-gnu)
19677       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19678         tmp_addflag=
19679         case $cc_basename,$host_cpu in
19680         pgcc*)                          # Portland Group C compiler
19681           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19682           tmp_addflag=' $pic_flag'
19683           ;;
19684         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
19685           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19686           tmp_addflag=' $pic_flag -Mnomain' ;;
19687         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
19688           tmp_addflag=' -i_dynamic' ;;
19689         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19690           tmp_addflag=' -i_dynamic -nofor_main' ;;
19691         ifc* | ifort*)                  # Intel Fortran compiler
19692           tmp_addflag=' -nofor_main' ;;
19693         esac
19694         case `$CC -V 2>&1 | sed 5q` in
19695         *Sun\ C*)                       # Sun C 5.9
19696           whole_archive_flag_spec_GCJ='${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'
19697           tmp_sharedflag='-G' ;;
19698         *Sun\ F*)                       # Sun Fortran 8.3
19699           tmp_sharedflag='-G' ;;
19700         *)
19701           tmp_sharedflag='-shared' ;;
19702         esac
19703         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19704
19705         if test $supports_anon_versioning = yes; then
19706           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19707   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19708   $echo "local: *; };" >> $output_objdir/$libname.ver~
19709           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19710         fi
19711       else
19712         ld_shlibs_GCJ=no
19713       fi
19714       ;;
19715
19716     netbsd*)
19717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19718         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19719         wlarc=
19720       else
19721         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19722         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19723       fi
19724       ;;
19725
19726     solaris*)
19727       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19728         ld_shlibs_GCJ=no
19729         cat <<EOF 1>&2
19730
19731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19732 *** create shared libraries on Solaris systems.  Therefore, libtool
19733 *** is disabling shared libraries support.  We urge you to upgrade GNU
19734 *** binutils to release 2.9.1 or newer.  Another option is to modify
19735 *** your PATH or compiler configuration so that the native linker is
19736 *** used, and then restart.
19737
19738 EOF
19739       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19740         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19741         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19742       else
19743         ld_shlibs_GCJ=no
19744       fi
19745       ;;
19746
19747     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19748       case `$LD -v 2>&1` in
19749         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19750         ld_shlibs_GCJ=no
19751         cat <<_LT_EOF 1>&2
19752
19753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19754 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19755 *** is disabling shared libraries support.  We urge you to upgrade GNU
19756 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19757 *** your PATH or compiler configuration so that the native linker is
19758 *** used, and then restart.
19759
19760 _LT_EOF
19761         ;;
19762         *)
19763           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19764             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19765             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19766             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19767           else
19768             ld_shlibs_GCJ=no
19769           fi
19770         ;;
19771       esac
19772       ;;
19773
19774     sunos4*)
19775       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19776       wlarc=
19777       hardcode_direct_GCJ=yes
19778       hardcode_shlibpath_var_GCJ=no
19779       ;;
19780
19781     *)
19782       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19783         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19784         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19785       else
19786         ld_shlibs_GCJ=no
19787       fi
19788       ;;
19789     esac
19790
19791     if test "$ld_shlibs_GCJ" = no; then
19792       runpath_var=
19793       hardcode_libdir_flag_spec_GCJ=
19794       export_dynamic_flag_spec_GCJ=
19795       whole_archive_flag_spec_GCJ=
19796     fi
19797   else
19798     # PORTME fill in a description of your system's linker (not GNU ld)
19799     case $host_os in
19800     aix3*)
19801       allow_undefined_flag_GCJ=unsupported
19802       always_export_symbols_GCJ=yes
19803       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19804       # Note: this linker hardcodes the directories in LIBPATH if there
19805       # are no directories specified by -L.
19806       hardcode_minus_L_GCJ=yes
19807       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19808         # Neither direct hardcoding nor static linking is supported with a
19809         # broken collect2.
19810         hardcode_direct_GCJ=unsupported
19811       fi
19812       ;;
19813
19814     aix[4-9]*)
19815       if test "$host_cpu" = ia64; then
19816         # On IA64, the linker does run time linking by default, so we don't
19817         # have to do anything special.
19818         aix_use_runtimelinking=no
19819         exp_sym_flag='-Bexport'
19820         no_entry_flag=""
19821       else
19822         # If we're using GNU nm, then we don't want the "-C" option.
19823         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19824         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19825           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19826         else
19827           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19828         fi
19829         aix_use_runtimelinking=no
19830
19831         # Test if we are trying to use run time linking or normal
19832         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19833         # need to do runtime linking.
19834         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19835           for ld_flag in $LDFLAGS; do
19836           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19837             aix_use_runtimelinking=yes
19838             break
19839           fi
19840           done
19841           ;;
19842         esac
19843
19844         exp_sym_flag='-bexport'
19845         no_entry_flag='-bnoentry'
19846       fi
19847
19848       # When large executables or shared objects are built, AIX ld can
19849       # have problems creating the table of contents.  If linking a library
19850       # or program results in "error TOC overflow" add -mminimal-toc to
19851       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19852       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19853
19854       archive_cmds_GCJ=''
19855       hardcode_direct_GCJ=yes
19856       hardcode_libdir_separator_GCJ=':'
19857       link_all_deplibs_GCJ=yes
19858
19859       if test "$GCC" = yes; then
19860         case $host_os in aix4.[012]|aix4.[012].*)
19861         # We only want to do this on AIX 4.2 and lower, the check
19862         # below for broken collect2 doesn't work under 4.3+
19863           collect2name=`${CC} -print-prog-name=collect2`
19864           if test -f "$collect2name" && \
19865            strings "$collect2name" | grep resolve_lib_name >/dev/null
19866           then
19867           # We have reworked collect2
19868           :
19869           else
19870           # We have old collect2
19871           hardcode_direct_GCJ=unsupported
19872           # It fails to find uninstalled libraries when the uninstalled
19873           # path is not listed in the libpath.  Setting hardcode_minus_L
19874           # to unsupported forces relinking
19875           hardcode_minus_L_GCJ=yes
19876           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19877           hardcode_libdir_separator_GCJ=
19878           fi
19879           ;;
19880         esac
19881         shared_flag='-shared'
19882         if test "$aix_use_runtimelinking" = yes; then
19883           shared_flag="$shared_flag "'${wl}-G'
19884         fi
19885       else
19886         # not using gcc
19887         if test "$host_cpu" = ia64; then
19888         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19889         # chokes on -Wl,-G. The following line is correct:
19890           shared_flag='-G'
19891         else
19892           if test "$aix_use_runtimelinking" = yes; then
19893             shared_flag='${wl}-G'
19894           else
19895             shared_flag='${wl}-bM:SRE'
19896           fi
19897         fi
19898       fi
19899
19900       # It seems that -bexpall does not export symbols beginning with
19901       # underscore (_), so it is better to generate a list of symbols to export.
19902       always_export_symbols_GCJ=yes
19903       if test "$aix_use_runtimelinking" = yes; then
19904         # Warning - without using the other runtime loading flags (-brtl),
19905         # -berok will link without error, but may produce a broken library.
19906         allow_undefined_flag_GCJ='-berok'
19907        # Determine the default libpath from the value encoded in an empty executable.
19908        cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914
19915 int
19916 main ()
19917 {
19918
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927   *) ac_try_echo=$ac_try;;
19928 esac
19929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19930 $as_echo "$ac_try_echo") >&5
19931   (eval "$ac_link") 2>conftest.er1
19932   ac_status=$?
19933   grep -v '^ *+' conftest.er1 >conftest.err
19934   rm -f conftest.er1
19935   cat conftest.err >&5
19936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } && {
19938          test -z "$ac_c_werror_flag" ||
19939          test ! -s conftest.err
19940        } && test -s conftest$ac_exeext && {
19941          test "$cross_compiling" = yes ||
19942          $as_test_x conftest$ac_exeext
19943        }; then
19944
19945 lt_aix_libpath_sed='
19946     /Import File Strings/,/^$/ {
19947         /^0/ {
19948             s/^0  *\(.*\)$/\1/
19949             p
19950         }
19951     }'
19952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19953 # Check for a 64-bit object if we didn't find anything.
19954 if test -z "$aix_libpath"; then
19955   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19956 fi
19957 else
19958   $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961
19962 fi
19963
19964 rm -rf conftest.dSYM
19965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19966       conftest$ac_exeext conftest.$ac_ext
19967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19968
19969        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19970         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19971        else
19972         if test "$host_cpu" = ia64; then
19973           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19974           allow_undefined_flag_GCJ="-z nodefs"
19975           archive_expsym_cmds_GCJ="\$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"
19976         else
19977          # Determine the default libpath from the value encoded in an empty executable.
19978          cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h.  */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h.  */
19984
19985 int
19986 main ()
19987 {
19988
19989   ;
19990   return 0;
19991 }
19992 _ACEOF
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20000 $as_echo "$ac_try_echo") >&5
20001   (eval "$ac_link") 2>conftest.er1
20002   ac_status=$?
20003   grep -v '^ *+' conftest.er1 >conftest.err
20004   rm -f conftest.er1
20005   cat conftest.err >&5
20006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); } && {
20008          test -z "$ac_c_werror_flag" ||
20009          test ! -s conftest.err
20010        } && test -s conftest$ac_exeext && {
20011          test "$cross_compiling" = yes ||
20012          $as_test_x conftest$ac_exeext
20013        }; then
20014
20015 lt_aix_libpath_sed='
20016     /Import File Strings/,/^$/ {
20017         /^0/ {
20018             s/^0  *\(.*\)$/\1/
20019             p
20020         }
20021     }'
20022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20023 # Check for a 64-bit object if we didn't find anything.
20024 if test -z "$aix_libpath"; then
20025   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20026 fi
20027 else
20028   $as_echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031
20032 fi
20033
20034 rm -rf conftest.dSYM
20035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20036       conftest$ac_exeext conftest.$ac_ext
20037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20038
20039          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20040           # Warning - without using the other run time loading flags,
20041           # -berok will link without error, but may produce a broken library.
20042           no_undefined_flag_GCJ=' ${wl}-bernotok'
20043           allow_undefined_flag_GCJ=' ${wl}-berok'
20044           # Exported symbols can be pulled into shared objects from archives
20045           whole_archive_flag_spec_GCJ='$convenience'
20046           archive_cmds_need_lc_GCJ=yes
20047           # This is similar to how AIX traditionally builds its shared libraries.
20048           archive_expsym_cmds_GCJ="\$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'
20049         fi
20050       fi
20051       ;;
20052
20053     amigaos*)
20054       archive_cmds_GCJ='$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)'
20055       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20056       hardcode_minus_L_GCJ=yes
20057       # see comment about different semantics on the GNU ld section
20058       ld_shlibs_GCJ=no
20059       ;;
20060
20061     bsdi[45]*)
20062       export_dynamic_flag_spec_GCJ=-rdynamic
20063       ;;
20064
20065     cygwin* | mingw* | pw32*)
20066       # When not using gcc, we currently assume that we are using
20067       # Microsoft Visual C++.
20068       # hardcode_libdir_flag_spec is actually meaningless, as there is
20069       # no search path for DLLs.
20070       hardcode_libdir_flag_spec_GCJ=' '
20071       allow_undefined_flag_GCJ=unsupported
20072       # Tell ltmain to make .lib files, not .a files.
20073       libext=lib
20074       # Tell ltmain to make .dll files, not .so files.
20075       shrext_cmds=".dll"
20076       # FIXME: Setting linknames here is a bad hack.
20077       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20078       # The linker will automatically build a .lib file if we build a DLL.
20079       old_archive_From_new_cmds_GCJ='true'
20080       # FIXME: Should let the user specify the lib program.
20081       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20082       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20083       enable_shared_with_static_runtimes_GCJ=yes
20084       ;;
20085
20086     darwin* | rhapsody*)
20087       case $host_os in
20088         rhapsody* | darwin1.[012])
20089          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20090          ;;
20091        *) # Darwin 1.3 on
20092          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20093            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20094          else
20095            case ${MACOSX_DEPLOYMENT_TARGET} in
20096              10.[012])
20097                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20098                ;;
20099              10.*)
20100                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20101                ;;
20102            esac
20103          fi
20104          ;;
20105       esac
20106       archive_cmds_need_lc_GCJ=no
20107       hardcode_direct_GCJ=no
20108       hardcode_automatic_GCJ=yes
20109       hardcode_shlibpath_var_GCJ=unsupported
20110       whole_archive_flag_spec_GCJ=''
20111       link_all_deplibs_GCJ=yes
20112     if test "$GCC" = yes ; then
20113         output_verbose_link_cmd='echo'
20114         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20115         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20116         archive_expsym_cmds_GCJ="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}"
20117         module_expsym_cmds_GCJ="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}"
20118     else
20119       case $cc_basename in
20120         xlc*)
20121          output_verbose_link_cmd='echo'
20122          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20123          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20124           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20125          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20126           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20127           ;;
20128        *)
20129          ld_shlibs_GCJ=no
20130           ;;
20131       esac
20132     fi
20133       ;;
20134
20135     dgux*)
20136       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20137       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20138       hardcode_shlibpath_var_GCJ=no
20139       ;;
20140
20141     freebsd1*)
20142       ld_shlibs_GCJ=no
20143       ;;
20144
20145     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20146     # support.  Future versions do this automatically, but an explicit c++rt0.o
20147     # does not break anything, and helps significantly (at the cost of a little
20148     # extra space).
20149     freebsd2.2*)
20150       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20151       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20152       hardcode_direct_GCJ=yes
20153       hardcode_shlibpath_var_GCJ=no
20154       ;;
20155
20156     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20157     freebsd2*)
20158       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20159       hardcode_direct_GCJ=yes
20160       hardcode_minus_L_GCJ=yes
20161       hardcode_shlibpath_var_GCJ=no
20162       ;;
20163
20164     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20165     freebsd* | dragonfly*)
20166       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20167       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20168       hardcode_direct_GCJ=yes
20169       hardcode_shlibpath_var_GCJ=no
20170       ;;
20171
20172     hpux9*)
20173       if test "$GCC" = yes; then
20174         archive_cmds_GCJ='$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'
20175       else
20176         archive_cmds_GCJ='$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'
20177       fi
20178       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20179       hardcode_libdir_separator_GCJ=:
20180       hardcode_direct_GCJ=yes
20181
20182       # hardcode_minus_L: Not really in the search PATH,
20183       # but as the default location of the library.
20184       hardcode_minus_L_GCJ=yes
20185       export_dynamic_flag_spec_GCJ='${wl}-E'
20186       ;;
20187
20188     hpux10*)
20189       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20190         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20191       else
20192         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20193       fi
20194       if test "$with_gnu_ld" = no; then
20195         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20196         hardcode_libdir_separator_GCJ=:
20197
20198         hardcode_direct_GCJ=yes
20199         export_dynamic_flag_spec_GCJ='${wl}-E'
20200
20201         # hardcode_minus_L: Not really in the search PATH,
20202         # but as the default location of the library.
20203         hardcode_minus_L_GCJ=yes
20204       fi
20205       ;;
20206
20207     hpux11*)
20208       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20209         case $host_cpu in
20210         hppa*64*)
20211           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20212           ;;
20213         ia64*)
20214           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20215           ;;
20216         *)
20217           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20218           ;;
20219         esac
20220       else
20221         case $host_cpu in
20222         hppa*64*)
20223           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20224           ;;
20225         ia64*)
20226           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20227           ;;
20228         *)
20229           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20230           ;;
20231         esac
20232       fi
20233       if test "$with_gnu_ld" = no; then
20234         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20235         hardcode_libdir_separator_GCJ=:
20236
20237         case $host_cpu in
20238         hppa*64*|ia64*)
20239           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20240           hardcode_direct_GCJ=no
20241           hardcode_shlibpath_var_GCJ=no
20242           ;;
20243         *)
20244           hardcode_direct_GCJ=yes
20245           export_dynamic_flag_spec_GCJ='${wl}-E'
20246
20247           # hardcode_minus_L: Not really in the search PATH,
20248           # but as the default location of the library.
20249           hardcode_minus_L_GCJ=yes
20250           ;;
20251         esac
20252       fi
20253       ;;
20254
20255     irix5* | irix6* | nonstopux*)
20256       if test "$GCC" = yes; then
20257         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20258       else
20259         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20260         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20261       fi
20262       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20263       hardcode_libdir_separator_GCJ=:
20264       link_all_deplibs_GCJ=yes
20265       ;;
20266
20267     netbsd*)
20268       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20269         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20270       else
20271         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20272       fi
20273       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20274       hardcode_direct_GCJ=yes
20275       hardcode_shlibpath_var_GCJ=no
20276       ;;
20277
20278     newsos6)
20279       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20280       hardcode_direct_GCJ=yes
20281       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20282       hardcode_libdir_separator_GCJ=:
20283       hardcode_shlibpath_var_GCJ=no
20284       ;;
20285
20286     openbsd*)
20287       if test -f /usr/libexec/ld.so; then
20288         hardcode_direct_GCJ=yes
20289         hardcode_shlibpath_var_GCJ=no
20290         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20291           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20292           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20293           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20294           export_dynamic_flag_spec_GCJ='${wl}-E'
20295         else
20296           case $host_os in
20297            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20298              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20299              hardcode_libdir_flag_spec_GCJ='-R$libdir'
20300              ;;
20301            *)
20302              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20303              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20304              ;;
20305           esac
20306         fi
20307       else
20308         ld_shlibs_GCJ=no
20309       fi
20310       ;;
20311
20312     os2*)
20313       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20314       hardcode_minus_L_GCJ=yes
20315       allow_undefined_flag_GCJ=unsupported
20316       archive_cmds_GCJ='$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'
20317       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20318       ;;
20319
20320     osf3*)
20321       if test "$GCC" = yes; then
20322         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20323         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20324       else
20325         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20326         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20327       fi
20328       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20329       hardcode_libdir_separator_GCJ=:
20330       ;;
20331
20332     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20333       if test "$GCC" = yes; then
20334         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20335         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20336         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20337       else
20338         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20339         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20340         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20341         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20342
20343         # Both c and cxx compiler support -rpath directly
20344         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20345       fi
20346       hardcode_libdir_separator_GCJ=:
20347       ;;
20348
20349     solaris*)
20350       no_undefined_flag_GCJ=' -z text'
20351       if test "$GCC" = yes; then
20352         wlarc='${wl}'
20353         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20354         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20355           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20356       else
20357         wlarc=''
20358         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20359         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20360         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20361       fi
20362       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20363       hardcode_shlibpath_var_GCJ=no
20364       case $host_os in
20365       solaris2.[0-5] | solaris2.[0-5].*) ;;
20366       *)
20367         # The compiler driver will combine and reorder linker options,
20368         # but understands `-z linker_flag'.  GCC discards it without `$wl',
20369         # but is careful enough not to reorder.
20370         # Supported since Solaris 2.6 (maybe 2.5.1?)
20371         if test "$GCC" = yes; then
20372           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20373         else
20374           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20375         fi
20376         ;;
20377       esac
20378       link_all_deplibs_GCJ=yes
20379       ;;
20380
20381     sunos4*)
20382       if test "x$host_vendor" = xsequent; then
20383         # Use $CC to link under sequent, because it throws in some extra .o
20384         # files that make .init and .fini sections work.
20385         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20386       else
20387         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20388       fi
20389       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20390       hardcode_direct_GCJ=yes
20391       hardcode_minus_L_GCJ=yes
20392       hardcode_shlibpath_var_GCJ=no
20393       ;;
20394
20395     sysv4)
20396       case $host_vendor in
20397         sni)
20398           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20399           hardcode_direct_GCJ=yes # is this really true???
20400         ;;
20401         siemens)
20402           ## LD is ld it makes a PLAMLIB
20403           ## CC just makes a GrossModule.
20404           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20405           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20406           hardcode_direct_GCJ=no
20407         ;;
20408         motorola)
20409           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20410           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20411         ;;
20412       esac
20413       runpath_var='LD_RUN_PATH'
20414       hardcode_shlibpath_var_GCJ=no
20415       ;;
20416
20417     sysv4.3*)
20418       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20419       hardcode_shlibpath_var_GCJ=no
20420       export_dynamic_flag_spec_GCJ='-Bexport'
20421       ;;
20422
20423     sysv4*MP*)
20424       if test -d /usr/nec; then
20425         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20426         hardcode_shlibpath_var_GCJ=no
20427         runpath_var=LD_RUN_PATH
20428         hardcode_runpath_var=yes
20429         ld_shlibs_GCJ=yes
20430       fi
20431       ;;
20432
20433     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20434       no_undefined_flag_GCJ='${wl}-z,text'
20435       archive_cmds_need_lc_GCJ=no
20436       hardcode_shlibpath_var_GCJ=no
20437       runpath_var='LD_RUN_PATH'
20438
20439       if test "$GCC" = yes; then
20440         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20441         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20442       else
20443         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20444         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20445       fi
20446       ;;
20447
20448     sysv5* | sco3.2v5* | sco5v6*)
20449       # Note: We can NOT use -z defs as we might desire, because we do not
20450       # link with -lc, and that would cause any symbols used from libc to
20451       # always be unresolved, which means just about no library would
20452       # ever link correctly.  If we're not using GNU ld we use -z text
20453       # though, which does catch some bad symbols but isn't as heavy-handed
20454       # as -z defs.
20455       no_undefined_flag_GCJ='${wl}-z,text'
20456       allow_undefined_flag_GCJ='${wl}-z,nodefs'
20457       archive_cmds_need_lc_GCJ=no
20458       hardcode_shlibpath_var_GCJ=no
20459       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20460       hardcode_libdir_separator_GCJ=':'
20461       link_all_deplibs_GCJ=yes
20462       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20463       runpath_var='LD_RUN_PATH'
20464
20465       if test "$GCC" = yes; then
20466         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20467         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20468       else
20469         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20470         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20471       fi
20472       ;;
20473
20474     uts4*)
20475       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20476       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20477       hardcode_shlibpath_var_GCJ=no
20478       ;;
20479
20480     *)
20481       ld_shlibs_GCJ=no
20482       ;;
20483     esac
20484   fi
20485
20486 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20487 $as_echo "$ld_shlibs_GCJ" >&6; }
20488 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20489
20490 #
20491 # Do we need to explicitly link libc?
20492 #
20493 case "x$archive_cmds_need_lc_GCJ" in
20494 x|xyes)
20495   # Assume -lc should be added
20496   archive_cmds_need_lc_GCJ=yes
20497
20498   if test "$enable_shared" = yes && test "$GCC" = yes; then
20499     case $archive_cmds_GCJ in
20500     *'~'*)
20501       # FIXME: we may have to deal with multi-command sequences.
20502       ;;
20503     '$CC '*)
20504       # Test whether the compiler implicitly links with -lc since on some
20505       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20506       # to ld, don't add -lc before -lgcc.
20507       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20509       $rm conftest*
20510       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20511
20512       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513   (eval $ac_compile) 2>&5
20514   ac_status=$?
20515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } 2>conftest.err; then
20517         soname=conftest
20518         lib=conftest
20519         libobjs=conftest.$ac_objext
20520         deplibs=
20521         wl=$lt_prog_compiler_wl_GCJ
20522         pic_flag=$lt_prog_compiler_pic_GCJ
20523         compiler_flags=-v
20524         linker_flags=-v
20525         verstring=
20526         output_objdir=.
20527         libname=conftest
20528         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20529         allow_undefined_flag_GCJ=
20530         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20531   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20532   ac_status=$?
20533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534   (exit $ac_status); }
20535         then
20536           archive_cmds_need_lc_GCJ=no
20537         else
20538           archive_cmds_need_lc_GCJ=yes
20539         fi
20540         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20541       else
20542         cat conftest.err 1>&5
20543       fi
20544       $rm conftest*
20545       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20546 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20547       ;;
20548     esac
20549   fi
20550   ;;
20551 esac
20552
20553 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20554 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20555 library_names_spec=
20556 libname_spec='lib$name'
20557 soname_spec=
20558 shrext_cmds=".so"
20559 postinstall_cmds=
20560 postuninstall_cmds=
20561 finish_cmds=
20562 finish_eval=
20563 shlibpath_var=
20564 shlibpath_overrides_runpath=unknown
20565 version_type=none
20566 dynamic_linker="$host_os ld.so"
20567 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20568
20569 need_lib_prefix=unknown
20570 hardcode_into_libs=no
20571
20572 # when you set need_version to no, make sure it does not cause -set_version
20573 # flags to be left without arguments
20574 need_version=unknown
20575
20576 case $host_os in
20577 aix3*)
20578   version_type=linux
20579   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20580   shlibpath_var=LIBPATH
20581
20582   # AIX 3 has no versioning support, so we append a major version to the name.
20583   soname_spec='${libname}${release}${shared_ext}$major'
20584   ;;
20585
20586 aix[4-9]*)
20587   version_type=linux
20588   need_lib_prefix=no
20589   need_version=no
20590   hardcode_into_libs=yes
20591   if test "$host_cpu" = ia64; then
20592     # AIX 5 supports IA64
20593     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20594     shlibpath_var=LD_LIBRARY_PATH
20595   else
20596     # With GCC up to 2.95.x, collect2 would create an import file
20597     # for dependence libraries.  The import file would start with
20598     # the line `#! .'.  This would cause the generated library to
20599     # depend on `.', always an invalid library.  This was fixed in
20600     # development snapshots of GCC prior to 3.0.
20601     case $host_os in
20602       aix4 | aix4.[01] | aix4.[01].*)
20603       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20604            echo ' yes '
20605            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20606         :
20607       else
20608         can_build_shared=no
20609       fi
20610       ;;
20611     esac
20612     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20613     # soname into executable. Probably we can add versioning support to
20614     # collect2, so additional links can be useful in future.
20615     if test "$aix_use_runtimelinking" = yes; then
20616       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20617       # instead of lib<name>.a to let people know that these are not
20618       # typical AIX shared libraries.
20619       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620     else
20621       # We preserve .a as extension for shared libraries through AIX4.2
20622       # and later when we are not doing run time linking.
20623       library_names_spec='${libname}${release}.a $libname.a'
20624       soname_spec='${libname}${release}${shared_ext}$major'
20625     fi
20626     shlibpath_var=LIBPATH
20627   fi
20628   ;;
20629
20630 amigaos*)
20631   library_names_spec='$libname.ixlibrary $libname.a'
20632   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20633   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'
20634   ;;
20635
20636 beos*)
20637   library_names_spec='${libname}${shared_ext}'
20638   dynamic_linker="$host_os ld.so"
20639   shlibpath_var=LIBRARY_PATH
20640   ;;
20641
20642 bsdi[45]*)
20643   version_type=linux
20644   need_version=no
20645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646   soname_spec='${libname}${release}${shared_ext}$major'
20647   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20648   shlibpath_var=LD_LIBRARY_PATH
20649   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20650   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20651   # the default ld.so.conf also contains /usr/contrib/lib and
20652   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20653   # libtool to hard-code these into programs
20654   ;;
20655
20656 cygwin* | mingw* | pw32*)
20657   version_type=windows
20658   shrext_cmds=".dll"
20659   need_version=no
20660   need_lib_prefix=no
20661
20662   case $GCC,$host_os in
20663   yes,cygwin* | yes,mingw* | yes,pw32*)
20664     library_names_spec='$libname.dll.a'
20665     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20666     postinstall_cmds='base_file=`basename \${file}`~
20667       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20668       dldir=$destdir/`dirname \$dlpath`~
20669       test -d \$dldir || mkdir -p \$dldir~
20670       $install_prog $dir/$dlname \$dldir/$dlname~
20671       chmod a+x \$dldir/$dlname'
20672     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20673       dlpath=$dir/\$dldll~
20674        $rm \$dlpath'
20675     shlibpath_overrides_runpath=yes
20676
20677     case $host_os in
20678     cygwin*)
20679       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20680       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20681       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20682       ;;
20683     mingw*)
20684       # MinGW DLLs use traditional 'lib' prefix
20685       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20686       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20687       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20688         # It is most probably a Windows format PATH printed by
20689         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20690         # path with ; separators, and with drive letters. We can handle the
20691         # drive letters (cygwin fileutils understands them), so leave them,
20692         # especially as we might pass files found there to a mingw objdump,
20693         # which wouldn't understand a cygwinified path. Ahh.
20694         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20695       else
20696         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20697       fi
20698       ;;
20699     pw32*)
20700       # pw32 DLLs use 'pw' prefix rather than 'lib'
20701       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20702       ;;
20703     esac
20704     ;;
20705
20706   *)
20707     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20708     ;;
20709   esac
20710   dynamic_linker='Win32 ld.exe'
20711   # FIXME: first we should search . and the directory the executable is in
20712   shlibpath_var=PATH
20713   ;;
20714
20715 darwin* | rhapsody*)
20716   dynamic_linker="$host_os dyld"
20717   version_type=darwin
20718   need_lib_prefix=no
20719   need_version=no
20720   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20721   soname_spec='${libname}${release}${major}$shared_ext'
20722   shlibpath_overrides_runpath=yes
20723   shlibpath_var=DYLD_LIBRARY_PATH
20724   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20725
20726   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20727   ;;
20728
20729 dgux*)
20730   version_type=linux
20731   need_lib_prefix=no
20732   need_version=no
20733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20734   soname_spec='${libname}${release}${shared_ext}$major'
20735   shlibpath_var=LD_LIBRARY_PATH
20736   ;;
20737
20738 freebsd1*)
20739   dynamic_linker=no
20740   ;;
20741
20742 freebsd* | dragonfly*)
20743   # DragonFly does not have aout.  When/if they implement a new
20744   # versioning mechanism, adjust this.
20745   if test -x /usr/bin/objformat; then
20746     objformat=`/usr/bin/objformat`
20747   else
20748     case $host_os in
20749     freebsd[123]*) objformat=aout ;;
20750     *) objformat=elf ;;
20751     esac
20752   fi
20753   version_type=freebsd-$objformat
20754   case $version_type in
20755     freebsd-elf*)
20756       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20757       need_version=no
20758       need_lib_prefix=no
20759       ;;
20760     freebsd-*)
20761       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20762       need_version=yes
20763       ;;
20764   esac
20765   shlibpath_var=LD_LIBRARY_PATH
20766   case $host_os in
20767   freebsd2*)
20768     shlibpath_overrides_runpath=yes
20769     ;;
20770   freebsd3.[01]* | freebsdelf3.[01]*)
20771     shlibpath_overrides_runpath=yes
20772     hardcode_into_libs=yes
20773     ;;
20774   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20775   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20776     shlibpath_overrides_runpath=no
20777     hardcode_into_libs=yes
20778     ;;
20779   *) # from 4.6 on, and DragonFly
20780     shlibpath_overrides_runpath=yes
20781     hardcode_into_libs=yes
20782     ;;
20783   esac
20784   ;;
20785
20786 gnu*)
20787   version_type=linux
20788   need_lib_prefix=no
20789   need_version=no
20790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20791   soname_spec='${libname}${release}${shared_ext}$major'
20792   shlibpath_var=LD_LIBRARY_PATH
20793   hardcode_into_libs=yes
20794   ;;
20795
20796 hpux9* | hpux10* | hpux11*)
20797   # Give a soname corresponding to the major version so that dld.sl refuses to
20798   # link against other versions.
20799   version_type=sunos
20800   need_lib_prefix=no
20801   need_version=no
20802   case $host_cpu in
20803   ia64*)
20804     shrext_cmds='.so'
20805     hardcode_into_libs=yes
20806     dynamic_linker="$host_os dld.so"
20807     shlibpath_var=LD_LIBRARY_PATH
20808     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20810     soname_spec='${libname}${release}${shared_ext}$major'
20811     if test "X$HPUX_IA64_MODE" = X32; then
20812       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20813     else
20814       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20815     fi
20816     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20817     ;;
20818    hppa*64*)
20819      shrext_cmds='.sl'
20820      hardcode_into_libs=yes
20821      dynamic_linker="$host_os dld.sl"
20822      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20823      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20825      soname_spec='${libname}${release}${shared_ext}$major'
20826      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20827      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20828      ;;
20829    *)
20830     shrext_cmds='.sl'
20831     dynamic_linker="$host_os dld.sl"
20832     shlibpath_var=SHLIB_PATH
20833     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835     soname_spec='${libname}${release}${shared_ext}$major'
20836     ;;
20837   esac
20838   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20839   postinstall_cmds='chmod 555 $lib'
20840   ;;
20841
20842 interix[3-9]*)
20843   version_type=linux
20844   need_lib_prefix=no
20845   need_version=no
20846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20847   soname_spec='${libname}${release}${shared_ext}$major'
20848   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20849   shlibpath_var=LD_LIBRARY_PATH
20850   shlibpath_overrides_runpath=no
20851   hardcode_into_libs=yes
20852   ;;
20853
20854 irix5* | irix6* | nonstopux*)
20855   case $host_os in
20856     nonstopux*) version_type=nonstopux ;;
20857     *)
20858         if test "$lt_cv_prog_gnu_ld" = yes; then
20859                 version_type=linux
20860         else
20861                 version_type=irix
20862         fi ;;
20863   esac
20864   need_lib_prefix=no
20865   need_version=no
20866   soname_spec='${libname}${release}${shared_ext}$major'
20867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20868   case $host_os in
20869   irix5* | nonstopux*)
20870     libsuff= shlibsuff=
20871     ;;
20872   *)
20873     case $LD in # libtool.m4 will add one of these switches to LD
20874     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20875       libsuff= shlibsuff= libmagic=32-bit;;
20876     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20877       libsuff=32 shlibsuff=N32 libmagic=N32;;
20878     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20879       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20880     *) libsuff= shlibsuff= libmagic=never-match;;
20881     esac
20882     ;;
20883   esac
20884   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20885   shlibpath_overrides_runpath=no
20886   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20887   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20888   hardcode_into_libs=yes
20889   ;;
20890
20891 # No shared lib support for Linux oldld, aout, or coff.
20892 linux*oldld* | linux*aout* | linux*coff*)
20893   dynamic_linker=no
20894   ;;
20895
20896 # This must be Linux ELF.
20897 linux* | k*bsd*-gnu)
20898   version_type=linux
20899   need_lib_prefix=no
20900   need_version=no
20901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902   soname_spec='${libname}${release}${shared_ext}$major'
20903   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20904   shlibpath_var=LD_LIBRARY_PATH
20905   shlibpath_overrides_runpath=no
20906   # This implies no fast_install, which is unacceptable.
20907   # Some rework will be needed to allow for fast_install
20908   # before this can be enabled.
20909   hardcode_into_libs=yes
20910   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20911   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20912
20913   # Append ld.so.conf contents to the search path
20914   if test -f /etc/ld.so.conf; then
20915     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' ' '`
20916     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20917   fi
20918
20919   # We used to test for /lib/ld.so.1 and disable shared libraries on
20920   # powerpc, because MkLinux only supported shared libraries with the
20921   # GNU dynamic linker.  Since this was broken with cross compilers,
20922   # most powerpc-linux boxes support dynamic linking these days and
20923   # people can always --disable-shared, the test was removed, and we
20924   # assume the GNU/Linux dynamic linker is in use.
20925   dynamic_linker='GNU/Linux ld.so'
20926   ;;
20927
20928 netbsd*)
20929   version_type=sunos
20930   need_lib_prefix=no
20931   need_version=no
20932   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20934     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20935     dynamic_linker='NetBSD (a.out) ld.so'
20936   else
20937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20938     soname_spec='${libname}${release}${shared_ext}$major'
20939     dynamic_linker='NetBSD ld.elf_so'
20940   fi
20941   shlibpath_var=LD_LIBRARY_PATH
20942   shlibpath_overrides_runpath=yes
20943   hardcode_into_libs=yes
20944   ;;
20945
20946 newsos6)
20947   version_type=linux
20948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949   shlibpath_var=LD_LIBRARY_PATH
20950   shlibpath_overrides_runpath=yes
20951   ;;
20952
20953 nto-qnx*)
20954   version_type=linux
20955   need_lib_prefix=no
20956   need_version=no
20957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958   soname_spec='${libname}${release}${shared_ext}$major'
20959   shlibpath_var=LD_LIBRARY_PATH
20960   shlibpath_overrides_runpath=yes
20961   ;;
20962
20963 openbsd*)
20964   version_type=sunos
20965   sys_lib_dlsearch_path_spec="/usr/lib"
20966   need_lib_prefix=no
20967   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20968   case $host_os in
20969     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20970     *)                         need_version=no  ;;
20971   esac
20972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20974   shlibpath_var=LD_LIBRARY_PATH
20975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20976     case $host_os in
20977       openbsd2.[89] | openbsd2.[89].*)
20978         shlibpath_overrides_runpath=no
20979         ;;
20980       *)
20981         shlibpath_overrides_runpath=yes
20982         ;;
20983       esac
20984   else
20985     shlibpath_overrides_runpath=yes
20986   fi
20987   ;;
20988
20989 os2*)
20990   libname_spec='$name'
20991   shrext_cmds=".dll"
20992   need_lib_prefix=no
20993   library_names_spec='$libname${shared_ext} $libname.a'
20994   dynamic_linker='OS/2 ld.exe'
20995   shlibpath_var=LIBPATH
20996   ;;
20997
20998 osf3* | osf4* | osf5*)
20999   version_type=osf
21000   need_lib_prefix=no
21001   need_version=no
21002   soname_spec='${libname}${release}${shared_ext}$major'
21003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004   shlibpath_var=LD_LIBRARY_PATH
21005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21007   ;;
21008
21009 rdos*)
21010   dynamic_linker=no
21011   ;;
21012
21013 solaris*)
21014   version_type=linux
21015   need_lib_prefix=no
21016   need_version=no
21017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21018   soname_spec='${libname}${release}${shared_ext}$major'
21019   shlibpath_var=LD_LIBRARY_PATH
21020   shlibpath_overrides_runpath=yes
21021   hardcode_into_libs=yes
21022   # ldd complains unless libraries are executable
21023   postinstall_cmds='chmod +x $lib'
21024   ;;
21025
21026 sunos4*)
21027   version_type=sunos
21028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21029   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21030   shlibpath_var=LD_LIBRARY_PATH
21031   shlibpath_overrides_runpath=yes
21032   if test "$with_gnu_ld" = yes; then
21033     need_lib_prefix=no
21034   fi
21035   need_version=yes
21036   ;;
21037
21038 sysv4 | sysv4.3*)
21039   version_type=linux
21040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21041   soname_spec='${libname}${release}${shared_ext}$major'
21042   shlibpath_var=LD_LIBRARY_PATH
21043   case $host_vendor in
21044     sni)
21045       shlibpath_overrides_runpath=no
21046       need_lib_prefix=no
21047       export_dynamic_flag_spec='${wl}-Blargedynsym'
21048       runpath_var=LD_RUN_PATH
21049       ;;
21050     siemens)
21051       need_lib_prefix=no
21052       ;;
21053     motorola)
21054       need_lib_prefix=no
21055       need_version=no
21056       shlibpath_overrides_runpath=no
21057       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21058       ;;
21059   esac
21060   ;;
21061
21062 sysv4*MP*)
21063   if test -d /usr/nec ;then
21064     version_type=linux
21065     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21066     soname_spec='$libname${shared_ext}.$major'
21067     shlibpath_var=LD_LIBRARY_PATH
21068   fi
21069   ;;
21070
21071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21072   version_type=freebsd-elf
21073   need_lib_prefix=no
21074   need_version=no
21075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21076   soname_spec='${libname}${release}${shared_ext}$major'
21077   shlibpath_var=LD_LIBRARY_PATH
21078   hardcode_into_libs=yes
21079   if test "$with_gnu_ld" = yes; then
21080     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21081     shlibpath_overrides_runpath=no
21082   else
21083     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21084     shlibpath_overrides_runpath=yes
21085     case $host_os in
21086       sco3.2v5*)
21087         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21088         ;;
21089     esac
21090   fi
21091   sys_lib_dlsearch_path_spec='/usr/lib'
21092   ;;
21093
21094 uts4*)
21095   version_type=linux
21096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21097   soname_spec='${libname}${release}${shared_ext}$major'
21098   shlibpath_var=LD_LIBRARY_PATH
21099   ;;
21100
21101 *)
21102   dynamic_linker=no
21103   ;;
21104 esac
21105 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21106 $as_echo "$dynamic_linker" >&6; }
21107 test "$dynamic_linker" = no && can_build_shared=no
21108
21109 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21110   $as_echo_n "(cached) " >&6
21111 else
21112   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21113 fi
21114
21115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21116 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21117   $as_echo_n "(cached) " >&6
21118 else
21119   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21120 fi
21121
21122 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21123
21124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21125 if test "$GCC" = yes; then
21126   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21127 fi
21128
21129 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21131 hardcode_action_GCJ=
21132 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21133    test -n "$runpath_var_GCJ" || \
21134    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21135
21136   # We can hardcode non-existant directories.
21137   if test "$hardcode_direct_GCJ" != no &&
21138      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21139      # have to relink, otherwise we might link with an installed library
21140      # when we should be linking with a yet-to-be-installed one
21141      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21142      test "$hardcode_minus_L_GCJ" != no; then
21143     # Linking always hardcodes the temporary library directory.
21144     hardcode_action_GCJ=relink
21145   else
21146     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21147     hardcode_action_GCJ=immediate
21148   fi
21149 else
21150   # We cannot hardcode anything, or else we can only hardcode existing
21151   # directories.
21152   hardcode_action_GCJ=unsupported
21153 fi
21154 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21155 $as_echo "$hardcode_action_GCJ" >&6; }
21156
21157 if test "$hardcode_action_GCJ" = relink; then
21158   # Fast installation is not supported
21159   enable_fast_install=no
21160 elif test "$shlibpath_overrides_runpath" = yes ||
21161      test "$enable_shared" = no; then
21162   # Fast installation is not necessary
21163   enable_fast_install=needless
21164 fi
21165
21166
21167 # The else clause should only fire when bootstrapping the
21168 # libtool distribution, otherwise you forgot to ship ltmain.sh
21169 # with your package, and you will get complaints that there are
21170 # no rules to generate ltmain.sh.
21171 if test -f "$ltmain"; then
21172   # See if we are running on zsh, and set the options which allow our commands through
21173   # without removal of \ escapes.
21174   if test -n "${ZSH_VERSION+set}" ; then
21175     setopt NO_GLOB_SUBST
21176   fi
21177   # Now quote all the things that may contain metacharacters while being
21178   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21179   # variables and quote the copies for generation of the libtool script.
21180   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21181     SED SHELL STRIP \
21182     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21183     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21184     deplibs_check_method reload_flag reload_cmds need_locks \
21185     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21186     lt_cv_sys_global_symbol_to_c_name_address \
21187     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21188     old_postinstall_cmds old_postuninstall_cmds \
21189     compiler_GCJ \
21190     CC_GCJ \
21191     LD_GCJ \
21192     lt_prog_compiler_wl_GCJ \
21193     lt_prog_compiler_pic_GCJ \
21194     lt_prog_compiler_static_GCJ \
21195     lt_prog_compiler_no_builtin_flag_GCJ \
21196     export_dynamic_flag_spec_GCJ \
21197     thread_safe_flag_spec_GCJ \
21198     whole_archive_flag_spec_GCJ \
21199     enable_shared_with_static_runtimes_GCJ \
21200     old_archive_cmds_GCJ \
21201     old_archive_from_new_cmds_GCJ \
21202     predep_objects_GCJ \
21203     postdep_objects_GCJ \
21204     predeps_GCJ \
21205     postdeps_GCJ \
21206     compiler_lib_search_path_GCJ \
21207     compiler_lib_search_dirs_GCJ \
21208     archive_cmds_GCJ \
21209     archive_expsym_cmds_GCJ \
21210     postinstall_cmds_GCJ \
21211     postuninstall_cmds_GCJ \
21212     old_archive_from_expsyms_cmds_GCJ \
21213     allow_undefined_flag_GCJ \
21214     no_undefined_flag_GCJ \
21215     export_symbols_cmds_GCJ \
21216     hardcode_libdir_flag_spec_GCJ \
21217     hardcode_libdir_flag_spec_ld_GCJ \
21218     hardcode_libdir_separator_GCJ \
21219     hardcode_automatic_GCJ \
21220     module_cmds_GCJ \
21221     module_expsym_cmds_GCJ \
21222     lt_cv_prog_compiler_c_o_GCJ \
21223     fix_srcfile_path_GCJ \
21224     exclude_expsyms_GCJ \
21225     include_expsyms_GCJ; do
21226
21227     case $var in
21228     old_archive_cmds_GCJ | \
21229     old_archive_from_new_cmds_GCJ | \
21230     archive_cmds_GCJ | \
21231     archive_expsym_cmds_GCJ | \
21232     module_cmds_GCJ | \
21233     module_expsym_cmds_GCJ | \
21234     old_archive_from_expsyms_cmds_GCJ | \
21235     export_symbols_cmds_GCJ | \
21236     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21237     postinstall_cmds | postuninstall_cmds | \
21238     old_postinstall_cmds | old_postuninstall_cmds | \
21239     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21240       # Double-quote double-evaled strings.
21241       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21242       ;;
21243     *)
21244       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21245       ;;
21246     esac
21247   done
21248
21249   case $lt_echo in
21250   *'\$0 --fallback-echo"')
21251     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21252     ;;
21253   esac
21254
21255 cfgfile="$ofile"
21256
21257   cat <<__EOF__ >> "$cfgfile"
21258 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21259
21260 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21261
21262 # Shell to use when invoking shell scripts.
21263 SHELL=$lt_SHELL
21264
21265 # Whether or not to build shared libraries.
21266 build_libtool_libs=$enable_shared
21267
21268 # Whether or not to build static libraries.
21269 build_old_libs=$enable_static
21270
21271 # Whether or not to add -lc for building shared libraries.
21272 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21273
21274 # Whether or not to disallow shared libs when runtime libs are static
21275 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21276
21277 # Whether or not to optimize for fast installation.
21278 fast_install=$enable_fast_install
21279
21280 # The host system.
21281 host_alias=$host_alias
21282 host=$host
21283 host_os=$host_os
21284
21285 # The build system.
21286 build_alias=$build_alias
21287 build=$build
21288 build_os=$build_os
21289
21290 # An echo program that does not interpret backslashes.
21291 echo=$lt_echo
21292
21293 # The archiver.
21294 AR=$lt_AR
21295 AR_FLAGS=$lt_AR_FLAGS
21296
21297 # A C compiler.
21298 LTCC=$lt_LTCC
21299
21300 # LTCC compiler flags.
21301 LTCFLAGS=$lt_LTCFLAGS
21302
21303 # A language-specific compiler.
21304 CC=$lt_compiler_GCJ
21305
21306 # Is the compiler the GNU C compiler?
21307 with_gcc=$GCC_GCJ
21308
21309 # An ERE matcher.
21310 EGREP=$lt_EGREP
21311
21312 # The linker used to build libraries.
21313 LD=$lt_LD_GCJ
21314
21315 # Whether we need hard or soft links.
21316 LN_S=$lt_LN_S
21317
21318 # A BSD-compatible nm program.
21319 NM=$lt_NM
21320
21321 # A symbol stripping program
21322 STRIP=$lt_STRIP
21323
21324 # Used to examine libraries when file_magic_cmd begins "file"
21325 MAGIC_CMD=$MAGIC_CMD
21326
21327 # Used on cygwin: DLL creation program.
21328 DLLTOOL="$DLLTOOL"
21329
21330 # Used on cygwin: object dumper.
21331 OBJDUMP="$OBJDUMP"
21332
21333 # Used on cygwin: assembler.
21334 AS="$AS"
21335
21336 # The name of the directory that contains temporary libtool files.
21337 objdir=$objdir
21338
21339 # How to create reloadable object files.
21340 reload_flag=$lt_reload_flag
21341 reload_cmds=$lt_reload_cmds
21342
21343 # How to pass a linker flag through the compiler.
21344 wl=$lt_lt_prog_compiler_wl_GCJ
21345
21346 # Object file suffix (normally "o").
21347 objext="$ac_objext"
21348
21349 # Old archive suffix (normally "a").
21350 libext="$libext"
21351
21352 # Shared library suffix (normally ".so").
21353 shrext_cmds='$shrext_cmds'
21354
21355 # Executable file suffix (normally "").
21356 exeext="$exeext"
21357
21358 # Additional compiler flags for building library objects.
21359 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21360 pic_mode=$pic_mode
21361
21362 # What is the maximum length of a command?
21363 max_cmd_len=$lt_cv_sys_max_cmd_len
21364
21365 # Does compiler simultaneously support -c and -o options?
21366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21367
21368 # Must we lock files when doing compilation?
21369 need_locks=$lt_need_locks
21370
21371 # Do we need the lib prefix for modules?
21372 need_lib_prefix=$need_lib_prefix
21373
21374 # Do we need a version for libraries?
21375 need_version=$need_version
21376
21377 # Whether dlopen is supported.
21378 dlopen_support=$enable_dlopen
21379
21380 # Whether dlopen of programs is supported.
21381 dlopen_self=$enable_dlopen_self
21382
21383 # Whether dlopen of statically linked programs is supported.
21384 dlopen_self_static=$enable_dlopen_self_static
21385
21386 # Compiler flag to prevent dynamic linking.
21387 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21388
21389 # Compiler flag to turn off builtin functions.
21390 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21391
21392 # Compiler flag to allow reflexive dlopens.
21393 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21394
21395 # Compiler flag to generate shared objects directly from archives.
21396 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21397
21398 # Compiler flag to generate thread-safe objects.
21399 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21400
21401 # Library versioning type.
21402 version_type=$version_type
21403
21404 # Format of library name prefix.
21405 libname_spec=$lt_libname_spec
21406
21407 # List of archive names.  First name is the real one, the rest are links.
21408 # The last name is the one that the linker finds with -lNAME.
21409 library_names_spec=$lt_library_names_spec
21410
21411 # The coded name of the library, if different from the real name.
21412 soname_spec=$lt_soname_spec
21413
21414 # Commands used to build and install an old-style archive.
21415 RANLIB=$lt_RANLIB
21416 old_archive_cmds=$lt_old_archive_cmds_GCJ
21417 old_postinstall_cmds=$lt_old_postinstall_cmds
21418 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21419
21420 # Create an old-style archive from a shared archive.
21421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21422
21423 # Create a temporary old-style archive to link instead of a shared archive.
21424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21425
21426 # Commands used to build and install a shared archive.
21427 archive_cmds=$lt_archive_cmds_GCJ
21428 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21429 postinstall_cmds=$lt_postinstall_cmds
21430 postuninstall_cmds=$lt_postuninstall_cmds
21431
21432 # Commands used to build a loadable module (assumed same as above if empty)
21433 module_cmds=$lt_module_cmds_GCJ
21434 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21435
21436 # Commands to strip libraries.
21437 old_striplib=$lt_old_striplib
21438 striplib=$lt_striplib
21439
21440 # Dependencies to place before the objects being linked to create a
21441 # shared library.
21442 predep_objects=$lt_predep_objects_GCJ
21443
21444 # Dependencies to place after the objects being linked to create a
21445 # shared library.
21446 postdep_objects=$lt_postdep_objects_GCJ
21447
21448 # Dependencies to place before the objects being linked to create a
21449 # shared library.
21450 predeps=$lt_predeps_GCJ
21451
21452 # Dependencies to place after the objects being linked to create a
21453 # shared library.
21454 postdeps=$lt_postdeps_GCJ
21455
21456 # The directories searched by this compiler when creating a shared
21457 # library
21458 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21459
21460 # The library search path used internally by the compiler when linking
21461 # a shared library.
21462 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21463
21464 # Method to check whether dependent libraries are shared objects.
21465 deplibs_check_method=$lt_deplibs_check_method
21466
21467 # Command to use when deplibs_check_method == file_magic.
21468 file_magic_cmd=$lt_file_magic_cmd
21469
21470 # Flag that allows shared libraries with undefined symbols to be built.
21471 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21472
21473 # Flag that forces no undefined symbols.
21474 no_undefined_flag=$lt_no_undefined_flag_GCJ
21475
21476 # Commands used to finish a libtool library installation in a directory.
21477 finish_cmds=$lt_finish_cmds
21478
21479 # Same as above, but a single script fragment to be evaled but not shown.
21480 finish_eval=$lt_finish_eval
21481
21482 # Take the output of nm and produce a listing of raw symbols and C names.
21483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21484
21485 # Transform the output of nm in a proper C declaration
21486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21487
21488 # Transform the output of nm in a C name address pair
21489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21490
21491 # This is the shared library runtime path variable.
21492 runpath_var=$runpath_var
21493
21494 # This is the shared library path variable.
21495 shlibpath_var=$shlibpath_var
21496
21497 # Is shlibpath searched before the hard-coded library search path?
21498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21499
21500 # How to hardcode a shared library path into an executable.
21501 hardcode_action=$hardcode_action_GCJ
21502
21503 # Whether we should hardcode library paths into libraries.
21504 hardcode_into_libs=$hardcode_into_libs
21505
21506 # Flag to hardcode \$libdir into a binary during linking.
21507 # This must work even if \$libdir does not exist.
21508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21509
21510 # If ld is used when linking, flag to hardcode \$libdir into
21511 # a binary during linking. This must work even if \$libdir does
21512 # not exist.
21513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21514
21515 # Whether we need a single -rpath flag with a separated argument.
21516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21517
21518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21519 # resulting binary.
21520 hardcode_direct=$hardcode_direct_GCJ
21521
21522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21523 # resulting binary.
21524 hardcode_minus_L=$hardcode_minus_L_GCJ
21525
21526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21527 # the resulting binary.
21528 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21529
21530 # Set to yes if building a shared library automatically hardcodes DIR into the library
21531 # and all subsequent libraries and executables linked against it.
21532 hardcode_automatic=$hardcode_automatic_GCJ
21533
21534 # Variables whose values should be saved in libtool wrapper scripts and
21535 # restored at relink time.
21536 variables_saved_for_relink="$variables_saved_for_relink"
21537
21538 # Whether libtool must link a program against all its dependency libraries.
21539 link_all_deplibs=$link_all_deplibs_GCJ
21540
21541 # Compile-time system search path for libraries
21542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21543
21544 # Run-time system search path for libraries
21545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21546
21547 # Fix the shell variable \$srcfile for the compiler.
21548 fix_srcfile_path=$lt_fix_srcfile_path
21549
21550 # Set to yes if exported symbols are required.
21551 always_export_symbols=$always_export_symbols_GCJ
21552
21553 # The commands to list exported symbols.
21554 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21555
21556 # The commands to extract the exported symbol list from a shared archive.
21557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21558
21559 # Symbols that should not be listed in the preloaded symbols.
21560 exclude_expsyms=$lt_exclude_expsyms_GCJ
21561
21562 # Symbols that must always be exported.
21563 include_expsyms=$lt_include_expsyms_GCJ
21564
21565 # ### END LIBTOOL TAG CONFIG: $tagname
21566
21567 __EOF__
21568
21569
21570 else
21571   # If there is no Makefile yet, we rely on a make rule to execute
21572   # `config.status --recheck' to rerun these tests and create the
21573   # libtool script then.
21574   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21575   if test -f "$ltmain_in"; then
21576     test -f Makefile && make "$ltmain"
21577   fi
21578 fi
21579
21580
21581 ac_ext=c
21582 ac_cpp='$CPP $CPPFLAGS'
21583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21586
21587 CC="$lt_save_CC"
21588
21589         else
21590           tagname=""
21591         fi
21592         ;;
21593
21594       RC)
21595
21596
21597 # Source file extension for RC test sources.
21598 ac_ext=rc
21599
21600 # Object file extension for compiled RC test sources.
21601 objext=o
21602 objext_RC=$objext
21603
21604 # Code to be used in simple compile tests
21605 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21606
21607 # Code to be used in simple link tests
21608 lt_simple_link_test_code="$lt_simple_compile_test_code"
21609
21610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21611
21612 # If no C compiler was specified, use CC.
21613 LTCC=${LTCC-"$CC"}
21614
21615 # If no C compiler flags were specified, use CFLAGS.
21616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21617
21618 # Allow CC to be a program name with arguments.
21619 compiler=$CC
21620
21621
21622 # save warnings/boilerplate of simple test code
21623 ac_outfile=conftest.$ac_objext
21624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21626 _lt_compiler_boilerplate=`cat conftest.err`
21627 $rm conftest*
21628
21629 ac_outfile=conftest.$ac_objext
21630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21632 _lt_linker_boilerplate=`cat conftest.err`
21633 $rm -r conftest*
21634
21635
21636 # Allow CC to be a program name with arguments.
21637 lt_save_CC="$CC"
21638 CC=${RC-"windres"}
21639 compiler=$CC
21640 compiler_RC=$CC
21641 for cc_temp in $compiler""; do
21642   case $cc_temp in
21643     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21644     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21645     \-*) ;;
21646     *) break;;
21647   esac
21648 done
21649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21650
21651 lt_cv_prog_compiler_c_o_RC=yes
21652
21653 # The else clause should only fire when bootstrapping the
21654 # libtool distribution, otherwise you forgot to ship ltmain.sh
21655 # with your package, and you will get complaints that there are
21656 # no rules to generate ltmain.sh.
21657 if test -f "$ltmain"; then
21658   # See if we are running on zsh, and set the options which allow our commands through
21659   # without removal of \ escapes.
21660   if test -n "${ZSH_VERSION+set}" ; then
21661     setopt NO_GLOB_SUBST
21662   fi
21663   # Now quote all the things that may contain metacharacters while being
21664   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21665   # variables and quote the copies for generation of the libtool script.
21666   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21667     SED SHELL STRIP \
21668     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21669     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21670     deplibs_check_method reload_flag reload_cmds need_locks \
21671     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21672     lt_cv_sys_global_symbol_to_c_name_address \
21673     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21674     old_postinstall_cmds old_postuninstall_cmds \
21675     compiler_RC \
21676     CC_RC \
21677     LD_RC \
21678     lt_prog_compiler_wl_RC \
21679     lt_prog_compiler_pic_RC \
21680     lt_prog_compiler_static_RC \
21681     lt_prog_compiler_no_builtin_flag_RC \
21682     export_dynamic_flag_spec_RC \
21683     thread_safe_flag_spec_RC \
21684     whole_archive_flag_spec_RC \
21685     enable_shared_with_static_runtimes_RC \
21686     old_archive_cmds_RC \
21687     old_archive_from_new_cmds_RC \
21688     predep_objects_RC \
21689     postdep_objects_RC \
21690     predeps_RC \
21691     postdeps_RC \
21692     compiler_lib_search_path_RC \
21693     compiler_lib_search_dirs_RC \
21694     archive_cmds_RC \
21695     archive_expsym_cmds_RC \
21696     postinstall_cmds_RC \
21697     postuninstall_cmds_RC \
21698     old_archive_from_expsyms_cmds_RC \
21699     allow_undefined_flag_RC \
21700     no_undefined_flag_RC \
21701     export_symbols_cmds_RC \
21702     hardcode_libdir_flag_spec_RC \
21703     hardcode_libdir_flag_spec_ld_RC \
21704     hardcode_libdir_separator_RC \
21705     hardcode_automatic_RC \
21706     module_cmds_RC \
21707     module_expsym_cmds_RC \
21708     lt_cv_prog_compiler_c_o_RC \
21709     fix_srcfile_path_RC \
21710     exclude_expsyms_RC \
21711     include_expsyms_RC; do
21712
21713     case $var in
21714     old_archive_cmds_RC | \
21715     old_archive_from_new_cmds_RC | \
21716     archive_cmds_RC | \
21717     archive_expsym_cmds_RC | \
21718     module_cmds_RC | \
21719     module_expsym_cmds_RC | \
21720     old_archive_from_expsyms_cmds_RC | \
21721     export_symbols_cmds_RC | \
21722     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21723     postinstall_cmds | postuninstall_cmds | \
21724     old_postinstall_cmds | old_postuninstall_cmds | \
21725     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21726       # Double-quote double-evaled strings.
21727       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21728       ;;
21729     *)
21730       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21731       ;;
21732     esac
21733   done
21734
21735   case $lt_echo in
21736   *'\$0 --fallback-echo"')
21737     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21738     ;;
21739   esac
21740
21741 cfgfile="$ofile"
21742
21743   cat <<__EOF__ >> "$cfgfile"
21744 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21745
21746 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21747
21748 # Shell to use when invoking shell scripts.
21749 SHELL=$lt_SHELL
21750
21751 # Whether or not to build shared libraries.
21752 build_libtool_libs=$enable_shared
21753
21754 # Whether or not to build static libraries.
21755 build_old_libs=$enable_static
21756
21757 # Whether or not to add -lc for building shared libraries.
21758 build_libtool_need_lc=$archive_cmds_need_lc_RC
21759
21760 # Whether or not to disallow shared libs when runtime libs are static
21761 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21762
21763 # Whether or not to optimize for fast installation.
21764 fast_install=$enable_fast_install
21765
21766 # The host system.
21767 host_alias=$host_alias
21768 host=$host
21769 host_os=$host_os
21770
21771 # The build system.
21772 build_alias=$build_alias
21773 build=$build
21774 build_os=$build_os
21775
21776 # An echo program that does not interpret backslashes.
21777 echo=$lt_echo
21778
21779 # The archiver.
21780 AR=$lt_AR
21781 AR_FLAGS=$lt_AR_FLAGS
21782
21783 # A C compiler.
21784 LTCC=$lt_LTCC
21785
21786 # LTCC compiler flags.
21787 LTCFLAGS=$lt_LTCFLAGS
21788
21789 # A language-specific compiler.
21790 CC=$lt_compiler_RC
21791
21792 # Is the compiler the GNU C compiler?
21793 with_gcc=$GCC_RC
21794
21795 # An ERE matcher.
21796 EGREP=$lt_EGREP
21797
21798 # The linker used to build libraries.
21799 LD=$lt_LD_RC
21800
21801 # Whether we need hard or soft links.
21802 LN_S=$lt_LN_S
21803
21804 # A BSD-compatible nm program.
21805 NM=$lt_NM
21806
21807 # A symbol stripping program
21808 STRIP=$lt_STRIP
21809
21810 # Used to examine libraries when file_magic_cmd begins "file"
21811 MAGIC_CMD=$MAGIC_CMD
21812
21813 # Used on cygwin: DLL creation program.
21814 DLLTOOL="$DLLTOOL"
21815
21816 # Used on cygwin: object dumper.
21817 OBJDUMP="$OBJDUMP"
21818
21819 # Used on cygwin: assembler.
21820 AS="$AS"
21821
21822 # The name of the directory that contains temporary libtool files.
21823 objdir=$objdir
21824
21825 # How to create reloadable object files.
21826 reload_flag=$lt_reload_flag
21827 reload_cmds=$lt_reload_cmds
21828
21829 # How to pass a linker flag through the compiler.
21830 wl=$lt_lt_prog_compiler_wl_RC
21831
21832 # Object file suffix (normally "o").
21833 objext="$ac_objext"
21834
21835 # Old archive suffix (normally "a").
21836 libext="$libext"
21837
21838 # Shared library suffix (normally ".so").
21839 shrext_cmds='$shrext_cmds'
21840
21841 # Executable file suffix (normally "").
21842 exeext="$exeext"
21843
21844 # Additional compiler flags for building library objects.
21845 pic_flag=$lt_lt_prog_compiler_pic_RC
21846 pic_mode=$pic_mode
21847
21848 # What is the maximum length of a command?
21849 max_cmd_len=$lt_cv_sys_max_cmd_len
21850
21851 # Does compiler simultaneously support -c and -o options?
21852 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21853
21854 # Must we lock files when doing compilation?
21855 need_locks=$lt_need_locks
21856
21857 # Do we need the lib prefix for modules?
21858 need_lib_prefix=$need_lib_prefix
21859
21860 # Do we need a version for libraries?
21861 need_version=$need_version
21862
21863 # Whether dlopen is supported.
21864 dlopen_support=$enable_dlopen
21865
21866 # Whether dlopen of programs is supported.
21867 dlopen_self=$enable_dlopen_self
21868
21869 # Whether dlopen of statically linked programs is supported.
21870 dlopen_self_static=$enable_dlopen_self_static
21871
21872 # Compiler flag to prevent dynamic linking.
21873 link_static_flag=$lt_lt_prog_compiler_static_RC
21874
21875 # Compiler flag to turn off builtin functions.
21876 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21877
21878 # Compiler flag to allow reflexive dlopens.
21879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21880
21881 # Compiler flag to generate shared objects directly from archives.
21882 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21883
21884 # Compiler flag to generate thread-safe objects.
21885 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21886
21887 # Library versioning type.
21888 version_type=$version_type
21889
21890 # Format of library name prefix.
21891 libname_spec=$lt_libname_spec
21892
21893 # List of archive names.  First name is the real one, the rest are links.
21894 # The last name is the one that the linker finds with -lNAME.
21895 library_names_spec=$lt_library_names_spec
21896
21897 # The coded name of the library, if different from the real name.
21898 soname_spec=$lt_soname_spec
21899
21900 # Commands used to build and install an old-style archive.
21901 RANLIB=$lt_RANLIB
21902 old_archive_cmds=$lt_old_archive_cmds_RC
21903 old_postinstall_cmds=$lt_old_postinstall_cmds
21904 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21905
21906 # Create an old-style archive from a shared archive.
21907 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21908
21909 # Create a temporary old-style archive to link instead of a shared archive.
21910 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21911
21912 # Commands used to build and install a shared archive.
21913 archive_cmds=$lt_archive_cmds_RC
21914 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21915 postinstall_cmds=$lt_postinstall_cmds
21916 postuninstall_cmds=$lt_postuninstall_cmds
21917
21918 # Commands used to build a loadable module (assumed same as above if empty)
21919 module_cmds=$lt_module_cmds_RC
21920 module_expsym_cmds=$lt_module_expsym_cmds_RC
21921
21922 # Commands to strip libraries.
21923 old_striplib=$lt_old_striplib
21924 striplib=$lt_striplib
21925
21926 # Dependencies to place before the objects being linked to create a
21927 # shared library.
21928 predep_objects=$lt_predep_objects_RC
21929
21930 # Dependencies to place after the objects being linked to create a
21931 # shared library.
21932 postdep_objects=$lt_postdep_objects_RC
21933
21934 # Dependencies to place before the objects being linked to create a
21935 # shared library.
21936 predeps=$lt_predeps_RC
21937
21938 # Dependencies to place after the objects being linked to create a
21939 # shared library.
21940 postdeps=$lt_postdeps_RC
21941
21942 # The directories searched by this compiler when creating a shared
21943 # library
21944 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21945
21946 # The library search path used internally by the compiler when linking
21947 # a shared library.
21948 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21949
21950 # Method to check whether dependent libraries are shared objects.
21951 deplibs_check_method=$lt_deplibs_check_method
21952
21953 # Command to use when deplibs_check_method == file_magic.
21954 file_magic_cmd=$lt_file_magic_cmd
21955
21956 # Flag that allows shared libraries with undefined symbols to be built.
21957 allow_undefined_flag=$lt_allow_undefined_flag_RC
21958
21959 # Flag that forces no undefined symbols.
21960 no_undefined_flag=$lt_no_undefined_flag_RC
21961
21962 # Commands used to finish a libtool library installation in a directory.
21963 finish_cmds=$lt_finish_cmds
21964
21965 # Same as above, but a single script fragment to be evaled but not shown.
21966 finish_eval=$lt_finish_eval
21967
21968 # Take the output of nm and produce a listing of raw symbols and C names.
21969 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21970
21971 # Transform the output of nm in a proper C declaration
21972 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21973
21974 # Transform the output of nm in a C name address pair
21975 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21976
21977 # This is the shared library runtime path variable.
21978 runpath_var=$runpath_var
21979
21980 # This is the shared library path variable.
21981 shlibpath_var=$shlibpath_var
21982
21983 # Is shlibpath searched before the hard-coded library search path?
21984 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21985
21986 # How to hardcode a shared library path into an executable.
21987 hardcode_action=$hardcode_action_RC
21988
21989 # Whether we should hardcode library paths into libraries.
21990 hardcode_into_libs=$hardcode_into_libs
21991
21992 # Flag to hardcode \$libdir into a binary during linking.
21993 # This must work even if \$libdir does not exist.
21994 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21995
21996 # If ld is used when linking, flag to hardcode \$libdir into
21997 # a binary during linking. This must work even if \$libdir does
21998 # not exist.
21999 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22000
22001 # Whether we need a single -rpath flag with a separated argument.
22002 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22003
22004 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22005 # resulting binary.
22006 hardcode_direct=$hardcode_direct_RC
22007
22008 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22009 # resulting binary.
22010 hardcode_minus_L=$hardcode_minus_L_RC
22011
22012 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22013 # the resulting binary.
22014 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22015
22016 # Set to yes if building a shared library automatically hardcodes DIR into the library
22017 # and all subsequent libraries and executables linked against it.
22018 hardcode_automatic=$hardcode_automatic_RC
22019
22020 # Variables whose values should be saved in libtool wrapper scripts and
22021 # restored at relink time.
22022 variables_saved_for_relink="$variables_saved_for_relink"
22023
22024 # Whether libtool must link a program against all its dependency libraries.
22025 link_all_deplibs=$link_all_deplibs_RC
22026
22027 # Compile-time system search path for libraries
22028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22029
22030 # Run-time system search path for libraries
22031 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22032
22033 # Fix the shell variable \$srcfile for the compiler.
22034 fix_srcfile_path=$lt_fix_srcfile_path
22035
22036 # Set to yes if exported symbols are required.
22037 always_export_symbols=$always_export_symbols_RC
22038
22039 # The commands to list exported symbols.
22040 export_symbols_cmds=$lt_export_symbols_cmds_RC
22041
22042 # The commands to extract the exported symbol list from a shared archive.
22043 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22044
22045 # Symbols that should not be listed in the preloaded symbols.
22046 exclude_expsyms=$lt_exclude_expsyms_RC
22047
22048 # Symbols that must always be exported.
22049 include_expsyms=$lt_include_expsyms_RC
22050
22051 # ### END LIBTOOL TAG CONFIG: $tagname
22052
22053 __EOF__
22054
22055
22056 else
22057   # If there is no Makefile yet, we rely on a make rule to execute
22058   # `config.status --recheck' to rerun these tests and create the
22059   # libtool script then.
22060   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22061   if test -f "$ltmain_in"; then
22062     test -f Makefile && make "$ltmain"
22063   fi
22064 fi
22065
22066
22067 ac_ext=c
22068 ac_cpp='$CPP $CPPFLAGS'
22069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22072
22073 CC="$lt_save_CC"
22074
22075         ;;
22076
22077       *)
22078         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22079 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22080    { (exit 1); exit 1; }; }
22081         ;;
22082       esac
22083
22084       # Append the new tag name to the list of available tags.
22085       if test -n "$tagname" ; then
22086       available_tags="$available_tags $tagname"
22087     fi
22088     fi
22089   done
22090   IFS="$lt_save_ifs"
22091
22092   # Now substitute the updated list of available tags.
22093   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22094     mv "${ofile}T" "$ofile"
22095     chmod +x "$ofile"
22096   else
22097     rm -f "${ofile}T"
22098     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22099 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22100    { (exit 1); exit 1; }; }
22101   fi
22102 fi
22103
22104
22105
22106 # This can be used to rebuild libtool when needed
22107 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22108
22109 # Always use our own libtool.
22110 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22111
22112 # Prevent multiple expansion
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133 if test "x$CC" != xcc; then
22134   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
22135 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
22136 else
22137   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
22138 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
22139 fi
22140 set dummy $CC; ac_cc=`$as_echo "$2" |
22141                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
22142 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
22143   $as_echo_n "(cached) " >&6
22144 else
22145   cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151
22152 int
22153 main ()
22154 {
22155
22156   ;
22157   return 0;
22158 }
22159 _ACEOF
22160 # Make sure it works both with $CC and with simple cc.
22161 # We do the test twice because some compilers refuse to overwrite an
22162 # existing .o file with -o, though they will create one.
22163 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
22164 rm -f conftest2.*
22165 if { (case "(($ac_try" in
22166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167   *) ac_try_echo=$ac_try;;
22168 esac
22169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22170 $as_echo "$ac_try_echo") >&5
22171   (eval "$ac_try") 2>&5
22172   ac_status=$?
22173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } &&
22175    test -f conftest2.$ac_objext && { (case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181   (eval "$ac_try") 2>&5
22182   ac_status=$?
22183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); };
22185 then
22186   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
22187   if test "x$CC" != xcc; then
22188     # Test first that cc exists at all.
22189     if { ac_try='cc -c conftest.$ac_ext >&5'
22190   { (case "(($ac_try" in
22191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192   *) ac_try_echo=$ac_try;;
22193 esac
22194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22195 $as_echo "$ac_try_echo") >&5
22196   (eval "$ac_try") 2>&5
22197   ac_status=$?
22198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; }; then
22200       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
22201       rm -f conftest2.*
22202       if { (case "(($ac_try" in
22203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204   *) ac_try_echo=$ac_try;;
22205 esac
22206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22207 $as_echo "$ac_try_echo") >&5
22208   (eval "$ac_try") 2>&5
22209   ac_status=$?
22210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); } &&
22212          test -f conftest2.$ac_objext && { (case "(($ac_try" in
22213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214   *) ac_try_echo=$ac_try;;
22215 esac
22216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22217 $as_echo "$ac_try_echo") >&5
22218   (eval "$ac_try") 2>&5
22219   ac_status=$?
22220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); };
22222       then
22223         # cc works too.
22224         :
22225       else
22226         # cc exists but doesn't like -o.
22227         eval ac_cv_prog_cc_${ac_cc}_c_o=no
22228       fi
22229     fi
22230   fi
22231 else
22232   eval ac_cv_prog_cc_${ac_cc}_c_o=no
22233 fi
22234 rm -f core conftest*
22235
22236 fi
22237 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
22238   { $as_echo "$as_me:$LINENO: result: yes" >&5
22239 $as_echo "yes" >&6; }
22240 else
22241   { $as_echo "$as_me:$LINENO: result: no" >&5
22242 $as_echo "no" >&6; }
22243
22244 cat >>confdefs.h <<\_ACEOF
22245 #define NO_MINUS_C_MINUS_O 1
22246 _ACEOF
22247
22248 fi
22249
22250 # FIXME: we rely on the cache variable name because
22251 # there is no other way.
22252 set dummy $CC
22253 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
22254 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
22255    # Losing compiler, so override with the script.
22256    # FIXME: It is wrong to rewrite CC.
22257    # But if we don't then we get into trouble of one sort or another.
22258    # A longer-term fix would be to have automake use am__CC in this case,
22259    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
22260    CC="$am_aux_dir/compile $CC"
22261 fi
22262
22263
22264
22265 if test "x$cross_compiling" = "xno"; then
22266         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
22267 else
22268         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
22269 fi
22270
22271
22272
22273 if test -n "$ac_tool_prefix"; then
22274   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22275 set dummy ${ac_tool_prefix}ar; ac_word=$2
22276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22277 $as_echo_n "checking for $ac_word... " >&6; }
22278 if test "${ac_cv_prog_AR+set}" = set; then
22279   $as_echo_n "(cached) " >&6
22280 else
22281   if test -n "$AR"; then
22282   ac_cv_prog_AR="$AR" # Let the user override the test.
22283 else
22284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22285 for as_dir in $PATH
22286 do
22287   IFS=$as_save_IFS
22288   test -z "$as_dir" && as_dir=.
22289   for ac_exec_ext in '' $ac_executable_extensions; do
22290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22291     ac_cv_prog_AR="${ac_tool_prefix}ar"
22292     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22293     break 2
22294   fi
22295 done
22296 done
22297 IFS=$as_save_IFS
22298
22299 fi
22300 fi
22301 AR=$ac_cv_prog_AR
22302 if test -n "$AR"; then
22303   { $as_echo "$as_me:$LINENO: result: $AR" >&5
22304 $as_echo "$AR" >&6; }
22305 else
22306   { $as_echo "$as_me:$LINENO: result: no" >&5
22307 $as_echo "no" >&6; }
22308 fi
22309
22310
22311 fi
22312 if test -z "$ac_cv_prog_AR"; then
22313   ac_ct_AR=$AR
22314   # Extract the first word of "ar", so it can be a program name with args.
22315 set dummy ar; ac_word=$2
22316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22317 $as_echo_n "checking for $ac_word... " >&6; }
22318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
22319   $as_echo_n "(cached) " >&6
22320 else
22321   if test -n "$ac_ct_AR"; then
22322   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22323 else
22324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22326 do
22327   IFS=$as_save_IFS
22328   test -z "$as_dir" && as_dir=.
22329   for ac_exec_ext in '' $ac_executable_extensions; do
22330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22331     ac_cv_prog_ac_ct_AR="ar"
22332     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22333     break 2
22334   fi
22335 done
22336 done
22337 IFS=$as_save_IFS
22338
22339 fi
22340 fi
22341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
22342 if test -n "$ac_ct_AR"; then
22343   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
22344 $as_echo "$ac_ct_AR" >&6; }
22345 else
22346   { $as_echo "$as_me:$LINENO: result: no" >&5
22347 $as_echo "no" >&6; }
22348 fi
22349
22350   if test "x$ac_ct_AR" = x; then
22351     AR=""
22352   else
22353     case $cross_compiling:$ac_tool_warned in
22354 yes:)
22355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22357 ac_tool_warned=yes ;;
22358 esac
22359     AR=$ac_ct_AR
22360   fi
22361 else
22362   AR="$ac_cv_prog_AR"
22363 fi
22364
22365 if test -n "$ac_tool_prefix"; then
22366   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
22367 set dummy ${ac_tool_prefix}ld; ac_word=$2
22368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22369 $as_echo_n "checking for $ac_word... " >&6; }
22370 if test "${ac_cv_prog_LD+set}" = set; then
22371   $as_echo_n "(cached) " >&6
22372 else
22373   if test -n "$LD"; then
22374   ac_cv_prog_LD="$LD" # Let the user override the test.
22375 else
22376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22377 for as_dir in $PATH
22378 do
22379   IFS=$as_save_IFS
22380   test -z "$as_dir" && as_dir=.
22381   for ac_exec_ext in '' $ac_executable_extensions; do
22382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22383     ac_cv_prog_LD="${ac_tool_prefix}ld"
22384     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22385     break 2
22386   fi
22387 done
22388 done
22389 IFS=$as_save_IFS
22390
22391 fi
22392 fi
22393 LD=$ac_cv_prog_LD
22394 if test -n "$LD"; then
22395   { $as_echo "$as_me:$LINENO: result: $LD" >&5
22396 $as_echo "$LD" >&6; }
22397 else
22398   { $as_echo "$as_me:$LINENO: result: no" >&5
22399 $as_echo "no" >&6; }
22400 fi
22401
22402
22403 fi
22404 if test -z "$ac_cv_prog_LD"; then
22405   ac_ct_LD=$LD
22406   # Extract the first word of "ld", so it can be a program name with args.
22407 set dummy ld; ac_word=$2
22408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22409 $as_echo_n "checking for $ac_word... " >&6; }
22410 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
22411   $as_echo_n "(cached) " >&6
22412 else
22413   if test -n "$ac_ct_LD"; then
22414   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
22415 else
22416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22417 for as_dir in $PATH
22418 do
22419   IFS=$as_save_IFS
22420   test -z "$as_dir" && as_dir=.
22421   for ac_exec_ext in '' $ac_executable_extensions; do
22422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22423     ac_cv_prog_ac_ct_LD="ld"
22424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22425     break 2
22426   fi
22427 done
22428 done
22429 IFS=$as_save_IFS
22430
22431 fi
22432 fi
22433 ac_ct_LD=$ac_cv_prog_ac_ct_LD
22434 if test -n "$ac_ct_LD"; then
22435   { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
22436 $as_echo "$ac_ct_LD" >&6; }
22437 else
22438   { $as_echo "$as_me:$LINENO: result: no" >&5
22439 $as_echo "no" >&6; }
22440 fi
22441
22442   if test "x$ac_ct_LD" = x; then
22443     LD=""
22444   else
22445     case $cross_compiling:$ac_tool_warned in
22446 yes:)
22447 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22449 ac_tool_warned=yes ;;
22450 esac
22451     LD=$ac_ct_LD
22452   fi
22453 else
22454   LD="$ac_cv_prog_LD"
22455 fi
22456
22457
22458 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22459 $as_echo_n "checking for ANSI C header files... " >&6; }
22460 if test "${ac_cv_header_stdc+set}" = set; then
22461   $as_echo_n "(cached) " >&6
22462 else
22463   cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h.  */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h.  */
22469 #include <stdlib.h>
22470 #include <stdarg.h>
22471 #include <string.h>
22472 #include <float.h>
22473
22474 int
22475 main ()
22476 {
22477
22478   ;
22479   return 0;
22480 }
22481 _ACEOF
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486   *) ac_try_echo=$ac_try;;
22487 esac
22488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22489 $as_echo "$ac_try_echo") >&5
22490   (eval "$ac_compile") 2>conftest.er1
22491   ac_status=$?
22492   grep -v '^ *+' conftest.er1 >conftest.err
22493   rm -f conftest.er1
22494   cat conftest.err >&5
22495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); } && {
22497          test -z "$ac_c_werror_flag" ||
22498          test ! -s conftest.err
22499        } && test -s conftest.$ac_objext; then
22500   ac_cv_header_stdc=yes
22501 else
22502   $as_echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505         ac_cv_header_stdc=no
22506 fi
22507
22508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509
22510 if test $ac_cv_header_stdc = yes; then
22511   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22512   cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h.  */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h.  */
22518 #include <string.h>
22519
22520 _ACEOF
22521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22522   $EGREP "memchr" >/dev/null 2>&1; then
22523   :
22524 else
22525   ac_cv_header_stdc=no
22526 fi
22527 rm -f conftest*
22528
22529 fi
22530
22531 if test $ac_cv_header_stdc = yes; then
22532   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22533   cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539 #include <stdlib.h>
22540
22541 _ACEOF
22542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22543   $EGREP "free" >/dev/null 2>&1; then
22544   :
22545 else
22546   ac_cv_header_stdc=no
22547 fi
22548 rm -f conftest*
22549
22550 fi
22551
22552 if test $ac_cv_header_stdc = yes; then
22553   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22554   if test "$cross_compiling" = yes; then
22555   :
22556 else
22557   cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563 #include <ctype.h>
22564 #include <stdlib.h>
22565 #if ((' ' & 0x0FF) == 0x020)
22566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22568 #else
22569 # define ISLOWER(c) \
22570                    (('a' <= (c) && (c) <= 'i') \
22571                      || ('j' <= (c) && (c) <= 'r') \
22572                      || ('s' <= (c) && (c) <= 'z'))
22573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22574 #endif
22575
22576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22577 int
22578 main ()
22579 {
22580   int i;
22581   for (i = 0; i < 256; i++)
22582     if (XOR (islower (i), ISLOWER (i))
22583         || toupper (i) != TOUPPER (i))
22584       return 2;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest$ac_exeext
22589 if { (ac_try="$ac_link"
22590 case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22595 $as_echo "$ac_try_echo") >&5
22596   (eval "$ac_link") 2>&5
22597   ac_status=$?
22598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22600   { (case "(($ac_try" in
22601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602   *) ac_try_echo=$ac_try;;
22603 esac
22604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22605 $as_echo "$ac_try_echo") >&5
22606   (eval "$ac_try") 2>&5
22607   ac_status=$?
22608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); }; }; then
22610   :
22611 else
22612   $as_echo "$as_me: program exited with status $ac_status" >&5
22613 $as_echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616 ( exit $ac_status )
22617 ac_cv_header_stdc=no
22618 fi
22619 rm -rf conftest.dSYM
22620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22621 fi
22622
22623
22624 fi
22625 fi
22626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22627 $as_echo "$ac_cv_header_stdc" >&6; }
22628 if test $ac_cv_header_stdc = yes; then
22629
22630 cat >>confdefs.h <<\_ACEOF
22631 #define STDC_HEADERS 1
22632 _ACEOF
22633
22634 fi
22635
22636
22637   { $as_echo "$as_me:$LINENO: checking for GNU libc2" >&5
22638 $as_echo_n "checking for GNU libc2... " >&6; }
22639   if test "${knfsd_cv_glibc2+set}" = set; then
22640   $as_echo_n "(cached) " >&6
22641 else
22642   cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648
22649       #include <features.h>
22650       #if !defined(__GLIBC__)
22651       # error Nope
22652       #endif
22653
22654 _ACEOF
22655 if { (ac_try="$ac_cpp conftest.$ac_ext"
22656 case "(($ac_try" in
22657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658   *) ac_try_echo=$ac_try;;
22659 esac
22660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22661 $as_echo "$ac_try_echo") >&5
22662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22663   ac_status=$?
22664   grep -v '^ *+' conftest.er1 >conftest.err
22665   rm -f conftest.er1
22666   cat conftest.err >&5
22667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); } >/dev/null && {
22669          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22670          test ! -s conftest.err
22671        }; then
22672   knfsd_cv_glibc2=yes
22673 else
22674   $as_echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677   knfsd_cv_glibc2=no
22678 fi
22679
22680 rm -f conftest.err conftest.$ac_ext
22681 fi
22682
22683   { $as_echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
22684 $as_echo "$knfsd_cv_glibc2" >&6; }
22685   if test $knfsd_cv_glibc2 = yes; then
22686     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
22687     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
22688   fi
22689
22690
22691   { $as_echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
22692 $as_echo_n "checking for BSD signal semantics... " >&6; }
22693   if test "${knfsd_cv_bsd_signals+set}" = set; then
22694   $as_echo_n "(cached) " >&6
22695 else
22696   if test "$cross_compiling" = yes; then
22697
22698       case "$host_os" in
22699         *linux*) knfsd_cv_bsd_signals=no;;
22700         *bsd*)   knfsd_cv_bsd_signals=yes;;
22701         *)       { { $as_echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
22702 $as_echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
22703    { (exit 1); exit 1; }; };;
22704       esac
22705
22706 else
22707   cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h.  */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h.  */
22713
22714         #include <signal.h>
22715         #include <unistd.h>
22716         #include <sys/wait.h>
22717
22718         static int counter = 0;
22719         static RETSIGTYPE handler(int num) { counter++; }
22720
22721         int main()
22722         {
22723                 int     s;
22724                 if ((s = fork()) < 0) return 1;
22725                 if (s != 0) {
22726                         if (wait(&s) < 0) return 1;
22727                         return WIFSIGNALED(s)? 1 : 0;
22728                 }
22729
22730                 signal(SIGHUP, handler);
22731                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
22732                 return (counter == 2)? 0 : 1;
22733         }
22734
22735 _ACEOF
22736 rm -f conftest$ac_exeext
22737 if { (ac_try="$ac_link"
22738 case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22743 $as_echo "$ac_try_echo") >&5
22744   (eval "$ac_link") 2>&5
22745   ac_status=$?
22746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22748   { (case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22753 $as_echo "$ac_try_echo") >&5
22754   (eval "$ac_try") 2>&5
22755   ac_status=$?
22756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); }; }; then
22758   knfsd_cv_bsd_signals=yes
22759 else
22760   $as_echo "$as_me: program exited with status $ac_status" >&5
22761 $as_echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764 ( exit $ac_status )
22765 knfsd_cv_bsd_signals=no
22766 fi
22767 rm -rf conftest.dSYM
22768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22769 fi
22770
22771
22772 fi
22773      { $as_echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
22774 $as_echo "$knfsd_cv_bsd_signals" >&6; }
22775     test $knfsd_cv_bsd_signals = yes &&
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_BSD_SIGNALS 1
22778 _ACEOF
22779
22780
22781
22782
22783 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
22784 $as_echo_n "checking for gethostbyname... " >&6; }
22785 if test "${ac_cv_func_gethostbyname+set}" = set; then
22786   $as_echo_n "(cached) " >&6
22787 else
22788   cat >conftest.$ac_ext <<_ACEOF
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22796 #define gethostbyname innocuous_gethostbyname
22797
22798 /* System header to define __stub macros and hopefully few prototypes,
22799     which can conflict with char gethostbyname (); below.
22800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22801     <limits.h> exists even on freestanding compilers.  */
22802
22803 #ifdef __STDC__
22804 # include <limits.h>
22805 #else
22806 # include <assert.h>
22807 #endif
22808
22809 #undef gethostbyname
22810
22811 /* Override any GCC internal prototype to avoid an error.
22812    Use char because int might match the return type of a GCC
22813    builtin and then its argument prototype would still apply.  */
22814 #ifdef __cplusplus
22815 extern "C"
22816 #endif
22817 char gethostbyname ();
22818 /* The GNU C library defines this for functions which it implements
22819     to always fail with ENOSYS.  Some functions are actually named
22820     something starting with __ and the normal name is an alias.  */
22821 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22822 choke me
22823 #endif
22824
22825 int
22826 main ()
22827 {
22828 return gethostbyname ();
22829   ;
22830   return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext conftest$ac_exeext
22834 if { (ac_try="$ac_link"
22835 case "(($ac_try" in
22836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837   *) ac_try_echo=$ac_try;;
22838 esac
22839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22840 $as_echo "$ac_try_echo") >&5
22841   (eval "$ac_link") 2>conftest.er1
22842   ac_status=$?
22843   grep -v '^ *+' conftest.er1 >conftest.err
22844   rm -f conftest.er1
22845   cat conftest.err >&5
22846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); } && {
22848          test -z "$ac_c_werror_flag" ||
22849          test ! -s conftest.err
22850        } && test -s conftest$ac_exeext && {
22851          test "$cross_compiling" = yes ||
22852          $as_test_x conftest$ac_exeext
22853        }; then
22854   ac_cv_func_gethostbyname=yes
22855 else
22856   $as_echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859         ac_cv_func_gethostbyname=no
22860 fi
22861
22862 rm -rf conftest.dSYM
22863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22864       conftest$ac_exeext conftest.$ac_ext
22865 fi
22866 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22867 $as_echo "$ac_cv_func_gethostbyname" >&6; }
22868 if test "x$ac_cv_func_gethostbyname" = x""yes; then
22869   :
22870 else
22871   { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22872 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22873 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22874   $as_echo_n "(cached) " >&6
22875 else
22876   ac_check_lib_save_LIBS=$LIBS
22877 LIBS="-lnsl  $LIBS"
22878 cat >conftest.$ac_ext <<_ACEOF
22879 /* confdefs.h.  */
22880 _ACEOF
22881 cat confdefs.h >>conftest.$ac_ext
22882 cat >>conftest.$ac_ext <<_ACEOF
22883 /* end confdefs.h.  */
22884
22885 /* Override any GCC internal prototype to avoid an error.
22886    Use char because int might match the return type of a GCC
22887    builtin and then its argument prototype would still apply.  */
22888 #ifdef __cplusplus
22889 extern "C"
22890 #endif
22891 char gethostbyname ();
22892 int
22893 main ()
22894 {
22895 return gethostbyname ();
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 rm -f conftest.$ac_objext conftest$ac_exeext
22901 if { (ac_try="$ac_link"
22902 case "(($ac_try" in
22903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904   *) ac_try_echo=$ac_try;;
22905 esac
22906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22907 $as_echo "$ac_try_echo") >&5
22908   (eval "$ac_link") 2>conftest.er1
22909   ac_status=$?
22910   grep -v '^ *+' conftest.er1 >conftest.err
22911   rm -f conftest.er1
22912   cat conftest.err >&5
22913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); } && {
22915          test -z "$ac_c_werror_flag" ||
22916          test ! -s conftest.err
22917        } && test -s conftest$ac_exeext && {
22918          test "$cross_compiling" = yes ||
22919          $as_test_x conftest$ac_exeext
22920        }; then
22921   ac_cv_lib_nsl_gethostbyname=yes
22922 else
22923   $as_echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926         ac_cv_lib_nsl_gethostbyname=no
22927 fi
22928
22929 rm -rf conftest.dSYM
22930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22931       conftest$ac_exeext conftest.$ac_ext
22932 LIBS=$ac_check_lib_save_LIBS
22933 fi
22934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22935 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22936 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
22937   LIBNSL="-lnsl"
22938 fi
22939
22940 fi
22941
22942
22943
22944 { $as_echo "$as_me:$LINENO: checking for connect" >&5
22945 $as_echo_n "checking for connect... " >&6; }
22946 if test "${ac_cv_func_connect+set}" = set; then
22947   $as_echo_n "(cached) " >&6
22948 else
22949   cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h.  */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h.  */
22955 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22957 #define connect innocuous_connect
22958
22959 /* System header to define __stub macros and hopefully few prototypes,
22960     which can conflict with char connect (); below.
22961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22962     <limits.h> exists even on freestanding compilers.  */
22963
22964 #ifdef __STDC__
22965 # include <limits.h>
22966 #else
22967 # include <assert.h>
22968 #endif
22969
22970 #undef connect
22971
22972 /* Override any GCC internal prototype to avoid an error.
22973    Use char because int might match the return type of a GCC
22974    builtin and then its argument prototype would still apply.  */
22975 #ifdef __cplusplus
22976 extern "C"
22977 #endif
22978 char connect ();
22979 /* The GNU C library defines this for functions which it implements
22980     to always fail with ENOSYS.  Some functions are actually named
22981     something starting with __ and the normal name is an alias.  */
22982 #if defined __stub_connect || defined __stub___connect
22983 choke me
22984 #endif
22985
22986 int
22987 main ()
22988 {
22989 return connect ();
22990   ;
22991   return 0;
22992 }
22993 _ACEOF
22994 rm -f conftest.$ac_objext conftest$ac_exeext
22995 if { (ac_try="$ac_link"
22996 case "(($ac_try" in
22997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998   *) ac_try_echo=$ac_try;;
22999 esac
23000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23001 $as_echo "$ac_try_echo") >&5
23002   (eval "$ac_link") 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } && {
23009          test -z "$ac_c_werror_flag" ||
23010          test ! -s conftest.err
23011        } && test -s conftest$ac_exeext && {
23012          test "$cross_compiling" = yes ||
23013          $as_test_x conftest$ac_exeext
23014        }; then
23015   ac_cv_func_connect=yes
23016 else
23017   $as_echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020         ac_cv_func_connect=no
23021 fi
23022
23023 rm -rf conftest.dSYM
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025       conftest$ac_exeext conftest.$ac_ext
23026 fi
23027 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23028 $as_echo "$ac_cv_func_connect" >&6; }
23029 if test "x$ac_cv_func_connect" = x""yes; then
23030   :
23031 else
23032   { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23033 $as_echo_n "checking for connect in -lsocket... " >&6; }
23034 if test "${ac_cv_lib_socket_connect+set}" = set; then
23035   $as_echo_n "(cached) " >&6
23036 else
23037   ac_check_lib_save_LIBS=$LIBS
23038 LIBS="-lsocket $LIBNSL $LIBS"
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045
23046 /* Override any GCC internal prototype to avoid an error.
23047    Use char because int might match the return type of a GCC
23048    builtin and then its argument prototype would still apply.  */
23049 #ifdef __cplusplus
23050 extern "C"
23051 #endif
23052 char connect ();
23053 int
23054 main ()
23055 {
23056 return connect ();
23057   ;
23058   return 0;
23059 }
23060 _ACEOF
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23068 $as_echo "$ac_try_echo") >&5
23069   (eval "$ac_link") 2>conftest.er1
23070   ac_status=$?
23071   grep -v '^ *+' conftest.er1 >conftest.err
23072   rm -f conftest.er1
23073   cat conftest.err >&5
23074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } && {
23076          test -z "$ac_c_werror_flag" ||
23077          test ! -s conftest.err
23078        } && test -s conftest$ac_exeext && {
23079          test "$cross_compiling" = yes ||
23080          $as_test_x conftest$ac_exeext
23081        }; then
23082   ac_cv_lib_socket_connect=yes
23083 else
23084   $as_echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087         ac_cv_lib_socket_connect=no
23088 fi
23089
23090 rm -rf conftest.dSYM
23091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23092       conftest$ac_exeext conftest.$ac_ext
23093 LIBS=$ac_check_lib_save_LIBS
23094 fi
23095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23096 $as_echo "$ac_cv_lib_socket_connect" >&6; }
23097 if test "x$ac_cv_lib_socket_connect" = x""yes; then
23098   LIBSOCKET="-lsocket"
23099 else
23100   { { $as_echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
23101 $as_echo "$as_me: error: Function 'socket' not found." >&2;}
23102    { (exit 1); exit 1; }; }
23103 fi
23104
23105 fi
23106
23107
23108 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
23109 $as_echo_n "checking for getaddrinfo... " >&6; }
23110 if test "${ac_cv_func_getaddrinfo+set}" = set; then
23111   $as_echo_n "(cached) " >&6
23112 else
23113   cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
23120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23121 #define getaddrinfo innocuous_getaddrinfo
23122
23123 /* System header to define __stub macros and hopefully few prototypes,
23124     which can conflict with char getaddrinfo (); below.
23125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23126     <limits.h> exists even on freestanding compilers.  */
23127
23128 #ifdef __STDC__
23129 # include <limits.h>
23130 #else
23131 # include <assert.h>
23132 #endif
23133
23134 #undef getaddrinfo
23135
23136 /* Override any GCC internal prototype to avoid an error.
23137    Use char because int might match the return type of a GCC
23138    builtin and then its argument prototype would still apply.  */
23139 #ifdef __cplusplus
23140 extern "C"
23141 #endif
23142 char getaddrinfo ();
23143 /* The GNU C library defines this for functions which it implements
23144     to always fail with ENOSYS.  Some functions are actually named
23145     something starting with __ and the normal name is an alias.  */
23146 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
23147 choke me
23148 #endif
23149
23150 int
23151 main ()
23152 {
23153 return getaddrinfo ();
23154   ;
23155   return 0;
23156 }
23157 _ACEOF
23158 rm -f conftest.$ac_objext conftest$ac_exeext
23159 if { (ac_try="$ac_link"
23160 case "(($ac_try" in
23161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162   *) ac_try_echo=$ac_try;;
23163 esac
23164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23165 $as_echo "$ac_try_echo") >&5
23166   (eval "$ac_link") 2>conftest.er1
23167   ac_status=$?
23168   grep -v '^ *+' conftest.er1 >conftest.err
23169   rm -f conftest.er1
23170   cat conftest.err >&5
23171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); } && {
23173          test -z "$ac_c_werror_flag" ||
23174          test ! -s conftest.err
23175        } && test -s conftest$ac_exeext && {
23176          test "$cross_compiling" = yes ||
23177          $as_test_x conftest$ac_exeext
23178        }; then
23179   ac_cv_func_getaddrinfo=yes
23180 else
23181   $as_echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23183
23184         ac_cv_func_getaddrinfo=no
23185 fi
23186
23187 rm -rf conftest.dSYM
23188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23189       conftest$ac_exeext conftest.$ac_ext
23190 fi
23191 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
23192 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
23193 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
23194   :
23195 else
23196   { { $as_echo "$as_me:$LINENO: error: Function 'getaddrinfo' not found." >&5
23197 $as_echo "$as_me: error: Function 'getaddrinfo' not found." >&2;}
23198    { (exit 1); exit 1; }; }
23199 fi
23200
23201
23202 { $as_echo "$as_me:$LINENO: checking for getrpcbynumber" >&5
23203 $as_echo_n "checking for getrpcbynumber... " >&6; }
23204 if test "${ac_cv_func_getrpcbynumber+set}" = set; then
23205   $as_echo_n "(cached) " >&6
23206 else
23207   cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 /* Define getrpcbynumber to an innocuous variant, in case <limits.h> declares getrpcbynumber.
23214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23215 #define getrpcbynumber innocuous_getrpcbynumber
23216
23217 /* System header to define __stub macros and hopefully few prototypes,
23218     which can conflict with char getrpcbynumber (); below.
23219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23220     <limits.h> exists even on freestanding compilers.  */
23221
23222 #ifdef __STDC__
23223 # include <limits.h>
23224 #else
23225 # include <assert.h>
23226 #endif
23227
23228 #undef getrpcbynumber
23229
23230 /* Override any GCC internal prototype to avoid an error.
23231    Use char because int might match the return type of a GCC
23232    builtin and then its argument prototype would still apply.  */
23233 #ifdef __cplusplus
23234 extern "C"
23235 #endif
23236 char getrpcbynumber ();
23237 /* The GNU C library defines this for functions which it implements
23238     to always fail with ENOSYS.  Some functions are actually named
23239     something starting with __ and the normal name is an alias.  */
23240 #if defined __stub_getrpcbynumber || defined __stub___getrpcbynumber
23241 choke me
23242 #endif
23243
23244 int
23245 main ()
23246 {
23247 return getrpcbynumber ();
23248   ;
23249   return 0;
23250 }
23251 _ACEOF
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256   *) ac_try_echo=$ac_try;;
23257 esac
23258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23259 $as_echo "$ac_try_echo") >&5
23260   (eval "$ac_link") 2>conftest.er1
23261   ac_status=$?
23262   grep -v '^ *+' conftest.er1 >conftest.err
23263   rm -f conftest.er1
23264   cat conftest.err >&5
23265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266   (exit $ac_status); } && {
23267          test -z "$ac_c_werror_flag" ||
23268          test ! -s conftest.err
23269        } && test -s conftest$ac_exeext && {
23270          test "$cross_compiling" = yes ||
23271          $as_test_x conftest$ac_exeext
23272        }; then
23273   ac_cv_func_getrpcbynumber=yes
23274 else
23275   $as_echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23277
23278         ac_cv_func_getrpcbynumber=no
23279 fi
23280
23281 rm -rf conftest.dSYM
23282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23283       conftest$ac_exeext conftest.$ac_ext
23284 fi
23285 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getrpcbynumber" >&5
23286 $as_echo "$ac_cv_func_getrpcbynumber" >&6; }
23287 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then
23288   :
23289 else
23290   { { $as_echo "$as_me:$LINENO: error: Function 'getrpcbynumber' not found." >&5
23291 $as_echo "$as_me: error: Function 'getrpcbynumber' not found." >&2;}
23292    { (exit 1); exit 1; }; }
23293 fi
23294
23295
23296 { $as_echo "$as_me:$LINENO: checking for getservbyname" >&5
23297 $as_echo_n "checking for getservbyname... " >&6; }
23298 if test "${ac_cv_func_getservbyname+set}" = set; then
23299   $as_echo_n "(cached) " >&6
23300 else
23301   cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307 /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
23308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23309 #define getservbyname innocuous_getservbyname
23310
23311 /* System header to define __stub macros and hopefully few prototypes,
23312     which can conflict with char getservbyname (); below.
23313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23314     <limits.h> exists even on freestanding compilers.  */
23315
23316 #ifdef __STDC__
23317 # include <limits.h>
23318 #else
23319 # include <assert.h>
23320 #endif
23321
23322 #undef getservbyname
23323
23324 /* Override any GCC internal prototype to avoid an error.
23325    Use char because int might match the return type of a GCC
23326    builtin and then its argument prototype would still apply.  */
23327 #ifdef __cplusplus
23328 extern "C"
23329 #endif
23330 char getservbyname ();
23331 /* The GNU C library defines this for functions which it implements
23332     to always fail with ENOSYS.  Some functions are actually named
23333     something starting with __ and the normal name is an alias.  */
23334 #if defined __stub_getservbyname || defined __stub___getservbyname
23335 choke me
23336 #endif
23337
23338 int
23339 main ()
23340 {
23341 return getservbyname ();
23342   ;
23343   return 0;
23344 }
23345 _ACEOF
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350   *) ac_try_echo=$ac_try;;
23351 esac
23352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23353 $as_echo "$ac_try_echo") >&5
23354   (eval "$ac_link") 2>conftest.er1
23355   ac_status=$?
23356   grep -v '^ *+' conftest.er1 >conftest.err
23357   rm -f conftest.er1
23358   cat conftest.err >&5
23359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360   (exit $ac_status); } && {
23361          test -z "$ac_c_werror_flag" ||
23362          test ! -s conftest.err
23363        } && test -s conftest$ac_exeext && {
23364          test "$cross_compiling" = yes ||
23365          $as_test_x conftest$ac_exeext
23366        }; then
23367   ac_cv_func_getservbyname=yes
23368 else
23369   $as_echo "$as_me: failed program was:" >&5
23370 sed 's/^/| /' conftest.$ac_ext >&5
23371
23372         ac_cv_func_getservbyname=no
23373 fi
23374
23375 rm -rf conftest.dSYM
23376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23377       conftest$ac_exeext conftest.$ac_ext
23378 fi
23379 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
23380 $as_echo "$ac_cv_func_getservbyname" >&6; }
23381 if test "x$ac_cv_func_getservbyname" = x""yes; then
23382   :
23383 else
23384   { { $as_echo "$as_me:$LINENO: error: Function 'getservbyname' not found." >&5
23385 $as_echo "$as_me: error: Function 'getservbyname' not found." >&2;}
23386    { (exit 1); exit 1; }; }
23387 fi
23388
23389
23390 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23391 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23392 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23393   $as_echo_n "(cached) " >&6
23394 else
23395   ac_check_lib_save_LIBS=$LIBS
23396 LIBS="-lcrypt  $LIBS"
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403
23404 /* Override any GCC internal prototype to avoid an error.
23405    Use char because int might match the return type of a GCC
23406    builtin and then its argument prototype would still apply.  */
23407 #ifdef __cplusplus
23408 extern "C"
23409 #endif
23410 char crypt ();
23411 int
23412 main ()
23413 {
23414 return crypt ();
23415   ;
23416   return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (ac_try="$ac_link"
23421 case "(($ac_try" in
23422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423   *) ac_try_echo=$ac_try;;
23424 esac
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427   (eval "$ac_link") 2>conftest.er1
23428   ac_status=$?
23429   grep -v '^ *+' conftest.er1 >conftest.err
23430   rm -f conftest.er1
23431   cat conftest.err >&5
23432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); } && {
23434          test -z "$ac_c_werror_flag" ||
23435          test ! -s conftest.err
23436        } && test -s conftest$ac_exeext && {
23437          test "$cross_compiling" = yes ||
23438          $as_test_x conftest$ac_exeext
23439        }; then
23440   ac_cv_lib_crypt_crypt=yes
23441 else
23442   $as_echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23444
23445         ac_cv_lib_crypt_crypt=no
23446 fi
23447
23448 rm -rf conftest.dSYM
23449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23450       conftest$ac_exeext conftest.$ac_ext
23451 LIBS=$ac_check_lib_save_LIBS
23452 fi
23453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23454 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23455 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
23456   LIBCRYPT="-lcrypt"
23457 fi
23458
23459
23460 if test "$enable_nfsv4" = yes; then
23461
23462
23463     { $as_echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
23464 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
23465 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
23466   $as_echo_n "(cached) " >&6
23467 else
23468   ac_check_lib_save_LIBS=$LIBS
23469 LIBS="-levent  $LIBS"
23470 cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476
23477 /* Override any GCC internal prototype to avoid an error.
23478    Use char because int might match the return type of a GCC
23479    builtin and then its argument prototype would still apply.  */
23480 #ifdef __cplusplus
23481 extern "C"
23482 #endif
23483 char event_dispatch ();
23484 int
23485 main ()
23486 {
23487 return event_dispatch ();
23488   ;
23489   return 0;
23490 }
23491 _ACEOF
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (ac_try="$ac_link"
23494 case "(($ac_try" in
23495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496   *) ac_try_echo=$ac_try;;
23497 esac
23498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23499 $as_echo "$ac_try_echo") >&5
23500   (eval "$ac_link") 2>conftest.er1
23501   ac_status=$?
23502   grep -v '^ *+' conftest.er1 >conftest.err
23503   rm -f conftest.er1
23504   cat conftest.err >&5
23505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); } && {
23507          test -z "$ac_c_werror_flag" ||
23508          test ! -s conftest.err
23509        } && test -s conftest$ac_exeext && {
23510          test "$cross_compiling" = yes ||
23511          $as_test_x conftest$ac_exeext
23512        }; then
23513   ac_cv_lib_event_event_dispatch=yes
23514 else
23515   $as_echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23517
23518         ac_cv_lib_event_event_dispatch=no
23519 fi
23520
23521 rm -rf conftest.dSYM
23522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23523       conftest$ac_exeext conftest.$ac_ext
23524 LIBS=$ac_check_lib_save_LIBS
23525 fi
23526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
23527 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
23528 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then
23529   libevent=1
23530 else
23531   { { $as_echo "$as_me:$LINENO: error: libevent not found." >&5
23532 $as_echo "$as_me: error: libevent not found." >&2;}
23533    { (exit 1); exit 1; }; }
23534 fi
23535
23536
23537
23538 for ac_header in event.h
23539 do
23540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23543 $as_echo_n "checking for $ac_header... " >&6; }
23544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23545   $as_echo_n "(cached) " >&6
23546 fi
23547 ac_res=`eval 'as_val=${'$as_ac_Header'}
23548                  $as_echo "$as_val"'`
23549                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23550 $as_echo "$ac_res" >&6; }
23551 else
23552   # Is the header compilable?
23553 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23554 $as_echo_n "checking $ac_header usability... " >&6; }
23555 cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h.  */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h.  */
23561 $ac_includes_default
23562 #include <$ac_header>
23563 _ACEOF
23564 rm -f conftest.$ac_objext
23565 if { (ac_try="$ac_compile"
23566 case "(($ac_try" in
23567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568   *) ac_try_echo=$ac_try;;
23569 esac
23570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23571 $as_echo "$ac_try_echo") >&5
23572   (eval "$ac_compile") 2>conftest.er1
23573   ac_status=$?
23574   grep -v '^ *+' conftest.er1 >conftest.err
23575   rm -f conftest.er1
23576   cat conftest.err >&5
23577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } && {
23579          test -z "$ac_c_werror_flag" ||
23580          test ! -s conftest.err
23581        } && test -s conftest.$ac_objext; then
23582   ac_header_compiler=yes
23583 else
23584   $as_echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587         ac_header_compiler=no
23588 fi
23589
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23592 $as_echo "$ac_header_compiler" >&6; }
23593
23594 # Is the header present?
23595 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23596 $as_echo_n "checking $ac_header presence... " >&6; }
23597 cat >conftest.$ac_ext <<_ACEOF
23598 /* confdefs.h.  */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h.  */
23603 #include <$ac_header>
23604 _ACEOF
23605 if { (ac_try="$ac_cpp conftest.$ac_ext"
23606 case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23611 $as_echo "$ac_try_echo") >&5
23612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23613   ac_status=$?
23614   grep -v '^ *+' conftest.er1 >conftest.err
23615   rm -f conftest.er1
23616   cat conftest.err >&5
23617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); } >/dev/null && {
23619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23620          test ! -s conftest.err
23621        }; then
23622   ac_header_preproc=yes
23623 else
23624   $as_echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626
23627   ac_header_preproc=no
23628 fi
23629
23630 rm -f conftest.err conftest.$ac_ext
23631 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23632 $as_echo "$ac_header_preproc" >&6; }
23633
23634 # So?  What about this header?
23635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23636   yes:no: )
23637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23638 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23640 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23641     ac_header_preproc=yes
23642     ;;
23643   no:yes:* )
23644     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23645 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23647 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23649 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23651 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23653 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23655 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23656     ( cat <<\_ASBOX
23657 ## ---------------------------------------- ##
23658 ## Report this to linux-nfs@vger.kernel.org ##
23659 ## ---------------------------------------- ##
23660 _ASBOX
23661      ) | sed "s/^/$as_me: WARNING:     /" >&2
23662     ;;
23663 esac
23664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23665 $as_echo_n "checking for $ac_header... " >&6; }
23666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23667   $as_echo_n "(cached) " >&6
23668 else
23669   eval "$as_ac_Header=\$ac_header_preproc"
23670 fi
23671 ac_res=`eval 'as_val=${'$as_ac_Header'}
23672                  $as_echo "$as_val"'`
23673                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23674 $as_echo "$ac_res" >&6; }
23675
23676 fi
23677 as_val=`eval 'as_val=${'$as_ac_Header'}
23678                  $as_echo "$as_val"'`
23679    if test "x$as_val" = x""yes; then
23680   cat >>confdefs.h <<_ACEOF
23681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23682 _ACEOF
23683
23684 else
23685   { { $as_echo "$as_me:$LINENO: error: libevent headers not found." >&5
23686 $as_echo "$as_me: error: libevent headers not found." >&2;}
23687    { (exit 1); exit 1; }; }
23688 fi
23689
23690 done
23691
23692
23693
23694
23695
23696
23697     { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
23698 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
23699 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
23700   $as_echo_n "(cached) " >&6
23701 else
23702   ac_check_lib_save_LIBS=$LIBS
23703 LIBS="-lnfsidmap  $LIBS"
23704 cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710
23711 /* Override any GCC internal prototype to avoid an error.
23712    Use char because int might match the return type of a GCC
23713    builtin and then its argument prototype would still apply.  */
23714 #ifdef __cplusplus
23715 extern "C"
23716 #endif
23717 char nfs4_init_name_mapping ();
23718 int
23719 main ()
23720 {
23721 return nfs4_init_name_mapping ();
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23733 $as_echo "$ac_try_echo") >&5
23734   (eval "$ac_link") 2>conftest.er1
23735   ac_status=$?
23736   grep -v '^ *+' conftest.er1 >conftest.err
23737   rm -f conftest.er1
23738   cat conftest.err >&5
23739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); } && {
23741          test -z "$ac_c_werror_flag" ||
23742          test ! -s conftest.err
23743        } && test -s conftest$ac_exeext && {
23744          test "$cross_compiling" = yes ||
23745          $as_test_x conftest$ac_exeext
23746        }; then
23747   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
23748 else
23749   $as_echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
23753 fi
23754
23755 rm -rf conftest.dSYM
23756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23757       conftest$ac_exeext conftest.$ac_ext
23758 LIBS=$ac_check_lib_save_LIBS
23759 fi
23760 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
23761 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
23762 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
23763   libnfsidmap=1
23764 else
23765   { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
23766 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
23767    { (exit 1); exit 1; }; }
23768 fi
23769
23770
23771
23772 for ac_header in nfsidmap.h
23773 do
23774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23776   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23777 $as_echo_n "checking for $ac_header... " >&6; }
23778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23779   $as_echo_n "(cached) " >&6
23780 fi
23781 ac_res=`eval 'as_val=${'$as_ac_Header'}
23782                  $as_echo "$as_val"'`
23783                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23784 $as_echo "$ac_res" >&6; }
23785 else
23786   # Is the header compilable?
23787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23788 $as_echo_n "checking $ac_header usability... " >&6; }
23789 cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h.  */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h.  */
23795 $ac_includes_default
23796 #include <$ac_header>
23797 _ACEOF
23798 rm -f conftest.$ac_objext
23799 if { (ac_try="$ac_compile"
23800 case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23805 $as_echo "$ac_try_echo") >&5
23806   (eval "$ac_compile") 2>conftest.er1
23807   ac_status=$?
23808   grep -v '^ *+' conftest.er1 >conftest.err
23809   rm -f conftest.er1
23810   cat conftest.err >&5
23811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812   (exit $ac_status); } && {
23813          test -z "$ac_c_werror_flag" ||
23814          test ! -s conftest.err
23815        } && test -s conftest.$ac_objext; then
23816   ac_header_compiler=yes
23817 else
23818   $as_echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23820
23821         ac_header_compiler=no
23822 fi
23823
23824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23826 $as_echo "$ac_header_compiler" >&6; }
23827
23828 # Is the header present?
23829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23830 $as_echo_n "checking $ac_header presence... " >&6; }
23831 cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h.  */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h.  */
23837 #include <$ac_header>
23838 _ACEOF
23839 if { (ac_try="$ac_cpp conftest.$ac_ext"
23840 case "(($ac_try" in
23841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842   *) ac_try_echo=$ac_try;;
23843 esac
23844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23845 $as_echo "$ac_try_echo") >&5
23846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23847   ac_status=$?
23848   grep -v '^ *+' conftest.er1 >conftest.err
23849   rm -f conftest.er1
23850   cat conftest.err >&5
23851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852   (exit $ac_status); } >/dev/null && {
23853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23854          test ! -s conftest.err
23855        }; then
23856   ac_header_preproc=yes
23857 else
23858   $as_echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23860
23861   ac_header_preproc=no
23862 fi
23863
23864 rm -f conftest.err conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23866 $as_echo "$ac_header_preproc" >&6; }
23867
23868 # So?  What about this header?
23869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23870   yes:no: )
23871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23875     ac_header_preproc=yes
23876     ;;
23877   no:yes:* )
23878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23881 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23885 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23886     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23890     ( cat <<\_ASBOX
23891 ## ---------------------------------------- ##
23892 ## Report this to linux-nfs@vger.kernel.org ##
23893 ## ---------------------------------------- ##
23894 _ASBOX
23895      ) | sed "s/^/$as_me: WARNING:     /" >&2
23896     ;;
23897 esac
23898 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23899 $as_echo_n "checking for $ac_header... " >&6; }
23900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23901   $as_echo_n "(cached) " >&6
23902 else
23903   eval "$as_ac_Header=\$ac_header_preproc"
23904 fi
23905 ac_res=`eval 'as_val=${'$as_ac_Header'}
23906                  $as_echo "$as_val"'`
23907                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23908 $as_echo "$ac_res" >&6; }
23909
23910 fi
23911 as_val=`eval 'as_val=${'$as_ac_Header'}
23912                  $as_echo "$as_val"'`
23913    if test "x$as_val" = x""yes; then
23914   cat >>confdefs.h <<_ACEOF
23915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23916 _ACEOF
23917
23918 else
23919   { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
23920 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
23921    { (exit 1); exit 1; }; }
23922 fi
23923
23924 done
23925
23926
23927     { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23928 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
23929 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23930   $as_echo_n "(cached) " >&6
23931 else
23932   ac_check_lib_save_LIBS=$LIBS
23933 LIBS="-lnfsidmap  $LIBS"
23934 cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h.  */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h.  */
23940
23941 /* Override any GCC internal prototype to avoid an error.
23942    Use char because int might match the return type of a GCC
23943    builtin and then its argument prototype would still apply.  */
23944 #ifdef __cplusplus
23945 extern "C"
23946 #endif
23947 char nfs4_set_debug ();
23948 int
23949 main ()
23950 {
23951 return nfs4_set_debug ();
23952   ;
23953   return 0;
23954 }
23955 _ACEOF
23956 rm -f conftest.$ac_objext conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960   *) ac_try_echo=$ac_try;;
23961 esac
23962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23963 $as_echo "$ac_try_echo") >&5
23964   (eval "$ac_link") 2>conftest.er1
23965   ac_status=$?
23966   grep -v '^ *+' conftest.er1 >conftest.err
23967   rm -f conftest.er1
23968   cat conftest.err >&5
23969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } && {
23971          test -z "$ac_c_werror_flag" ||
23972          test ! -s conftest.err
23973        } && test -s conftest$ac_exeext && {
23974          test "$cross_compiling" = yes ||
23975          $as_test_x conftest$ac_exeext
23976        }; then
23977   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23978 else
23979   $as_echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23981
23982         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23983 fi
23984
23985 rm -rf conftest.dSYM
23986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23987       conftest$ac_exeext conftest.$ac_ext
23988 LIBS=$ac_check_lib_save_LIBS
23989 fi
23990 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23991 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23992 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
23993
23994 cat >>confdefs.h <<\_ACEOF
23995 #define HAVE_NFS4_SET_DEBUG 1
23996 _ACEOF
23997
23998 fi
23999
24000
24001
24002
24003       if test "$enable_gss" = yes; then
24004
24005
24006 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24007         if test -n "$ac_tool_prefix"; then
24008   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24009 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24011 $as_echo_n "checking for $ac_word... " >&6; }
24012 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24013   $as_echo_n "(cached) " >&6
24014 else
24015   case $PKG_CONFIG in
24016   [\\/]* | ?:[\\/]*)
24017   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24018   ;;
24019   *)
24020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24021 for as_dir in $PATH
24022 do
24023   IFS=$as_save_IFS
24024   test -z "$as_dir" && as_dir=.
24025   for ac_exec_ext in '' $ac_executable_extensions; do
24026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24027     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24028     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24029     break 2
24030   fi
24031 done
24032 done
24033 IFS=$as_save_IFS
24034
24035   ;;
24036 esac
24037 fi
24038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24039 if test -n "$PKG_CONFIG"; then
24040   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24041 $as_echo "$PKG_CONFIG" >&6; }
24042 else
24043   { $as_echo "$as_me:$LINENO: result: no" >&5
24044 $as_echo "no" >&6; }
24045 fi
24046
24047
24048 fi
24049 if test -z "$ac_cv_path_PKG_CONFIG"; then
24050   ac_pt_PKG_CONFIG=$PKG_CONFIG
24051   # Extract the first word of "pkg-config", so it can be a program name with args.
24052 set dummy pkg-config; ac_word=$2
24053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24054 $as_echo_n "checking for $ac_word... " >&6; }
24055 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
24056   $as_echo_n "(cached) " >&6
24057 else
24058   case $ac_pt_PKG_CONFIG in
24059   [\\/]* | ?:[\\/]*)
24060   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24061   ;;
24062   *)
24063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24064 for as_dir in $PATH
24065 do
24066   IFS=$as_save_IFS
24067   test -z "$as_dir" && as_dir=.
24068   for ac_exec_ext in '' $ac_executable_extensions; do
24069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24070     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24071     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24072     break 2
24073   fi
24074 done
24075 done
24076 IFS=$as_save_IFS
24077
24078   ;;
24079 esac
24080 fi
24081 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24082 if test -n "$ac_pt_PKG_CONFIG"; then
24083   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
24084 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24085 else
24086   { $as_echo "$as_me:$LINENO: result: no" >&5
24087 $as_echo "no" >&6; }
24088 fi
24089
24090   if test "x$ac_pt_PKG_CONFIG" = x; then
24091     PKG_CONFIG=""
24092   else
24093     case $cross_compiling:$ac_tool_warned in
24094 yes:)
24095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
24096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24097 ac_tool_warned=yes ;;
24098 esac
24099     PKG_CONFIG=$ac_pt_PKG_CONFIG
24100   fi
24101 else
24102   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24103 fi
24104
24105 fi
24106 if test -n "$PKG_CONFIG"; then
24107         _pkg_min_version=0.9.0
24108         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
24109 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24110         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24111                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24112 $as_echo "yes" >&6; }
24113         else
24114                 { $as_echo "$as_me:$LINENO: result: no" >&5
24115 $as_echo "no" >&6; }
24116                 PKG_CONFIG=""
24117         fi
24118
24119 fi
24120
24121
24122
24123 pkg_failed=no
24124 { $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
24125 $as_echo_n "checking for GSSGLUE... " >&6; }
24126
24127 if test -n "$GSSGLUE_CFLAGS"; then
24128     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
24129  elif test -n "$PKG_CONFIG"; then
24130     if test -n "$PKG_CONFIG" && \
24131     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
24132   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
24133   ac_status=$?
24134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); }; then
24136   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
24137 else
24138   pkg_failed=yes
24139 fi
24140  else
24141     pkg_failed=untried
24142 fi
24143 if test -n "$GSSGLUE_LIBS"; then
24144     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
24145  elif test -n "$PKG_CONFIG"; then
24146     if test -n "$PKG_CONFIG" && \
24147     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
24148   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
24149   ac_status=$?
24150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; then
24152   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
24153 else
24154   pkg_failed=yes
24155 fi
24156  else
24157     pkg_failed=untried
24158 fi
24159
24160
24161
24162 if test $pkg_failed = yes; then
24163
24164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24165         _pkg_short_errors_supported=yes
24166 else
24167         _pkg_short_errors_supported=no
24168 fi
24169         if test $_pkg_short_errors_supported = yes; then
24170                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
24171         else
24172                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
24173         fi
24174         # Put the nasty error message in config.log where it belongs
24175         echo "$GSSGLUE_PKG_ERRORS" >&5
24176
24177         { { $as_echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
24178
24179 $GSSGLUE_PKG_ERRORS
24180
24181 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24182 installed software in a non-standard prefix.
24183
24184 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24185 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24186 See the pkg-config man page for more details.
24187 " >&5
24188 $as_echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
24189
24190 $GSSGLUE_PKG_ERRORS
24191
24192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24193 installed software in a non-standard prefix.
24194
24195 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24196 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24197 See the pkg-config man page for more details.
24198 " >&2;}
24199    { (exit 1); exit 1; }; }
24200 elif test $pkg_failed = untried; then
24201         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24203 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24204 is in your PATH or set the PKG_CONFIG environment variable to the full
24205 path to pkg-config.
24206
24207 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24208 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24209 See the pkg-config man page for more details.
24210
24211 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24212 See \`config.log' for more details." >&5
24213 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24214 is in your PATH or set the PKG_CONFIG environment variable to the full
24215 path to pkg-config.
24216
24217 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24218 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24219 See the pkg-config man page for more details.
24220
24221 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24222 See \`config.log' for more details." >&2;}
24223    { (exit 1); exit 1; }; }; }
24224 else
24225         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
24226         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
24227         { $as_echo "$as_me:$LINENO: result: yes" >&5
24228 $as_echo "yes" >&6; }
24229         :
24230 fi
24231
24232     if test "$enable_tirpc" = no; then
24233
24234 pkg_failed=no
24235 { $as_echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
24236 $as_echo_n "checking for RPCSECGSS... " >&6; }
24237
24238 if test -n "$RPCSECGSS_CFLAGS"; then
24239     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
24240  elif test -n "$PKG_CONFIG"; then
24241     if test -n "$PKG_CONFIG" && \
24242     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
24243   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
24244   ac_status=$?
24245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; then
24247   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
24248 else
24249   pkg_failed=yes
24250 fi
24251  else
24252     pkg_failed=untried
24253 fi
24254 if test -n "$RPCSECGSS_LIBS"; then
24255     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
24256  elif test -n "$PKG_CONFIG"; then
24257     if test -n "$PKG_CONFIG" && \
24258     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
24259   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
24260   ac_status=$?
24261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); }; then
24263   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
24264 else
24265   pkg_failed=yes
24266 fi
24267  else
24268     pkg_failed=untried
24269 fi
24270
24271
24272
24273 if test $pkg_failed = yes; then
24274
24275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24276         _pkg_short_errors_supported=yes
24277 else
24278         _pkg_short_errors_supported=no
24279 fi
24280         if test $_pkg_short_errors_supported = yes; then
24281                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
24282         else
24283                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
24284         fi
24285         # Put the nasty error message in config.log where it belongs
24286         echo "$RPCSECGSS_PKG_ERRORS" >&5
24287
24288         { { $as_echo "$as_me:$LINENO: error: Package requirements (librpcsecgss >= 0.16) were not met:
24289
24290 $RPCSECGSS_PKG_ERRORS
24291
24292 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24293 installed software in a non-standard prefix.
24294
24295 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24296 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24297 See the pkg-config man page for more details.
24298 " >&5
24299 $as_echo "$as_me: error: Package requirements (librpcsecgss >= 0.16) were not met:
24300
24301 $RPCSECGSS_PKG_ERRORS
24302
24303 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24304 installed software in a non-standard prefix.
24305
24306 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24307 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24308 See the pkg-config man page for more details.
24309 " >&2;}
24310    { (exit 1); exit 1; }; }
24311 elif test $pkg_failed = untried; then
24312         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24314 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
24315 is in your PATH or set the PKG_CONFIG environment variable to the full
24316 path to pkg-config.
24317
24318 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24319 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24320 See the pkg-config man page for more details.
24321
24322 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24323 See \`config.log' for more details." >&5
24324 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
24325 is in your PATH or set the PKG_CONFIG environment variable to the full
24326 path to pkg-config.
24327
24328 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24329 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24330 See the pkg-config man page for more details.
24331
24332 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24333 See \`config.log' for more details." >&2;}
24334    { (exit 1); exit 1; }; }; }
24335 else
24336         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
24337         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
24338         { $as_echo "$as_me:$LINENO: result: yes" >&5
24339 $as_echo "yes" >&6; }
24340         :
24341 fi
24342   fi
24343
24344
24345   fi
24346 fi
24347
24348 if test "$knfsd_cv_glibc2" = no; then
24349     { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
24350 $as_echo_n "checking for daemon in -lbsd... " >&6; }
24351 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
24352   $as_echo_n "(cached) " >&6
24353 else
24354   ac_check_lib_save_LIBS=$LIBS
24355 LIBS="-lbsd  $LIBS"
24356 cat >conftest.$ac_ext <<_ACEOF
24357 /* confdefs.h.  */
24358 _ACEOF
24359 cat confdefs.h >>conftest.$ac_ext
24360 cat >>conftest.$ac_ext <<_ACEOF
24361 /* end confdefs.h.  */
24362
24363 /* Override any GCC internal prototype to avoid an error.
24364    Use char because int might match the return type of a GCC
24365    builtin and then its argument prototype would still apply.  */
24366 #ifdef __cplusplus
24367 extern "C"
24368 #endif
24369 char daemon ();
24370 int
24371 main ()
24372 {
24373 return daemon ();
24374   ;
24375   return 0;
24376 }
24377 _ACEOF
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (ac_try="$ac_link"
24380 case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24385 $as_echo "$ac_try_echo") >&5
24386   (eval "$ac_link") 2>conftest.er1
24387   ac_status=$?
24388   grep -v '^ *+' conftest.er1 >conftest.err
24389   rm -f conftest.er1
24390   cat conftest.err >&5
24391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); } && {
24393          test -z "$ac_c_werror_flag" ||
24394          test ! -s conftest.err
24395        } && test -s conftest$ac_exeext && {
24396          test "$cross_compiling" = yes ||
24397          $as_test_x conftest$ac_exeext
24398        }; then
24399   ac_cv_lib_bsd_daemon=yes
24400 else
24401   $as_echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404         ac_cv_lib_bsd_daemon=no
24405 fi
24406
24407 rm -rf conftest.dSYM
24408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24409       conftest$ac_exeext conftest.$ac_ext
24410 LIBS=$ac_check_lib_save_LIBS
24411 fi
24412 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
24413 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
24414 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then
24415   LIBBSD="-lbsd"
24416 fi
24417
24418 fi
24419
24420 if test "$choose_blkid" != no; then
24421    { $as_echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
24422 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
24423 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
24424   $as_echo_n "(cached) " >&6
24425 else
24426   ac_check_lib_save_LIBS=$LIBS
24427 LIBS="-lblkid  $LIBS"
24428 cat >conftest.$ac_ext <<_ACEOF
24429 /* confdefs.h.  */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h.  */
24434
24435 /* Override any GCC internal prototype to avoid an error.
24436    Use char because int might match the return type of a GCC
24437    builtin and then its argument prototype would still apply.  */
24438 #ifdef __cplusplus
24439 extern "C"
24440 #endif
24441 char blkid_get_library_version ();
24442 int
24443 main ()
24444 {
24445 return blkid_get_library_version ();
24446   ;
24447   return 0;
24448 }
24449 _ACEOF
24450 rm -f conftest.$ac_objext conftest$ac_exeext
24451 if { (ac_try="$ac_link"
24452 case "(($ac_try" in
24453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454   *) ac_try_echo=$ac_try;;
24455 esac
24456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457 $as_echo "$ac_try_echo") >&5
24458   (eval "$ac_link") 2>conftest.er1
24459   ac_status=$?
24460   grep -v '^ *+' conftest.er1 >conftest.err
24461   rm -f conftest.er1
24462   cat conftest.err >&5
24463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464   (exit $ac_status); } && {
24465          test -z "$ac_c_werror_flag" ||
24466          test ! -s conftest.err
24467        } && test -s conftest$ac_exeext && {
24468          test "$cross_compiling" = yes ||
24469          $as_test_x conftest$ac_exeext
24470        }; then
24471   ac_cv_lib_blkid_blkid_get_library_version=yes
24472 else
24473   $as_echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24475
24476         ac_cv_lib_blkid_blkid_get_library_version=no
24477 fi
24478
24479 rm -rf conftest.dSYM
24480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24481       conftest$ac_exeext conftest.$ac_ext
24482 LIBS=$ac_check_lib_save_LIBS
24483 fi
24484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
24485 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
24486 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then
24487   LIBBLKID="-lblkid"
24488 else
24489   { { $as_echo "$as_me:$LINENO: error: libblkid needed" >&5
24490 $as_echo "$as_me: error: libblkid needed" >&2;}
24491    { (exit 1); exit 1; }; }
24492 fi
24493
24494    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
24495   { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
24496 $as_echo_n "checking for blkid/blkid.h... " >&6; }
24497 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
24498   $as_echo_n "(cached) " >&6
24499 fi
24500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
24501 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
24502 else
24503   # Is the header compilable?
24504 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
24505 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
24506 cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h.  */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h.  */
24512 $ac_includes_default
24513 #include <blkid/blkid.h>
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24522 $as_echo "$ac_try_echo") >&5
24523   (eval "$ac_compile") 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } && {
24530          test -z "$ac_c_werror_flag" ||
24531          test ! -s conftest.err
24532        } && test -s conftest.$ac_objext; then
24533   ac_header_compiler=yes
24534 else
24535   $as_echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538         ac_header_compiler=no
24539 fi
24540
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24543 $as_echo "$ac_header_compiler" >&6; }
24544
24545 # Is the header present?
24546 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
24547 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24549 /* confdefs.h.  */
24550 _ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h.  */
24554 #include <blkid/blkid.h>
24555 _ACEOF
24556 if { (ac_try="$ac_cpp conftest.$ac_ext"
24557 case "(($ac_try" in
24558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559   *) ac_try_echo=$ac_try;;
24560 esac
24561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24564   ac_status=$?
24565   grep -v '^ *+' conftest.er1 >conftest.err
24566   rm -f conftest.er1
24567   cat conftest.err >&5
24568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569   (exit $ac_status); } >/dev/null && {
24570          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24571          test ! -s conftest.err
24572        }; then
24573   ac_header_preproc=yes
24574 else
24575   $as_echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24577
24578   ac_header_preproc=no
24579 fi
24580
24581 rm -f conftest.err conftest.$ac_ext
24582 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24583 $as_echo "$ac_header_preproc" >&6; }
24584
24585 # So?  What about this header?
24586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24587   yes:no: )
24588     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
24589 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24590     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
24591 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
24592     ac_header_preproc=yes
24593     ;;
24594   no:yes:* )
24595     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
24596 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
24597     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
24598 $as_echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
24599     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
24600 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
24601     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
24602 $as_echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24603     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
24604 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
24605     { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
24606 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
24607     ( cat <<\_ASBOX
24608 ## ---------------------------------------- ##
24609 ## Report this to linux-nfs@vger.kernel.org ##
24610 ## ---------------------------------------- ##
24611 _ASBOX
24612      ) | sed "s/^/$as_me: WARNING:     /" >&2
24613     ;;
24614 esac
24615 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
24616 $as_echo_n "checking for blkid/blkid.h... " >&6; }
24617 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
24618   $as_echo_n "(cached) " >&6
24619 else
24620   ac_cv_header_blkid_blkid_h=$ac_header_preproc
24621 fi
24622 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
24623 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
24624
24625 fi
24626 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
24627   :
24628 else
24629   { { $as_echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
24630 $as_echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
24631    { (exit 1); exit 1; }; }
24632 fi
24633
24634
24635
24636   { $as_echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
24637 $as_echo_n "checking for suitable libblkid version... " >&6; }
24638   if test "${libblkid_cv_is_recent+set}" = set; then
24639   $as_echo_n "(cached) " >&6
24640 else
24641
24642     saved_LIBS="$LIBS"
24643     LIBS=-lblkid
24644     if test "$cross_compiling" = yes; then
24645   libblkid_cv_is_recent=unknown
24646 else
24647   cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h.  */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h.  */
24653
24654         #include <blkid/blkid.h>
24655         int main()
24656         {
24657                 int vers = blkid_get_library_version(0, 0);
24658                 return vers >= 140 ? 0 : 1;
24659         }
24660
24661 _ACEOF
24662 rm -f conftest$ac_exeext
24663 if { (ac_try="$ac_link"
24664 case "(($ac_try" in
24665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666   *) ac_try_echo=$ac_try;;
24667 esac
24668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24669 $as_echo "$ac_try_echo") >&5
24670   (eval "$ac_link") 2>&5
24671   ac_status=$?
24672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24674   { (case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24679 $as_echo "$ac_try_echo") >&5
24680   (eval "$ac_try") 2>&5
24681   ac_status=$?
24682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); }; }; then
24684   libblkid_cv_is_recent=yes
24685 else
24686   $as_echo "$as_me: program exited with status $ac_status" >&5
24687 $as_echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690 ( exit $ac_status )
24691 libblkid_cv_is_recent=no
24692 fi
24693 rm -rf conftest.dSYM
24694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24695 fi
24696
24697
24698     LIBS="$saved_LIBS"
24699 fi
24700
24701   { $as_echo "$as_me:$LINENO: result: $libblkid_cv_is_recent" >&5
24702 $as_echo "$libblkid_cv_is_recent" >&6; }
24703
24704    if test $choose_blkid = yes; then
24705       use_blkid=1
24706       test $libblkid_cv_is_recent = no && { $as_echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
24707 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
24708    else
24709       if test $libblkid_cv_is_recent = yes
24710       then use_blkid=1
24711       else use_blkid=0
24712            { $as_echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
24713 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
24714       fi
24715     fi
24716
24717 cat >>confdefs.h <<_ACEOF
24718 #define USE_BLKID $use_blkid
24719 _ACEOF
24720
24721 fi
24722
24723
24724
24725
24726
24727 if test "$enable_gss" = yes; then
24728     { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
24729 $as_echo_n "checking for getnameinfo... " >&6; }
24730 if test "${ac_cv_func_getnameinfo+set}" = set; then
24731   $as_echo_n "(cached) " >&6
24732 else
24733   cat >conftest.$ac_ext <<_ACEOF
24734 /* confdefs.h.  */
24735 _ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h.  */
24739 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24741 #define getnameinfo innocuous_getnameinfo
24742
24743 /* System header to define __stub macros and hopefully few prototypes,
24744     which can conflict with char getnameinfo (); below.
24745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24746     <limits.h> exists even on freestanding compilers.  */
24747
24748 #ifdef __STDC__
24749 # include <limits.h>
24750 #else
24751 # include <assert.h>
24752 #endif
24753
24754 #undef getnameinfo
24755
24756 /* Override any GCC internal prototype to avoid an error.
24757    Use char because int might match the return type of a GCC
24758    builtin and then its argument prototype would still apply.  */
24759 #ifdef __cplusplus
24760 extern "C"
24761 #endif
24762 char getnameinfo ();
24763 /* The GNU C library defines this for functions which it implements
24764     to always fail with ENOSYS.  Some functions are actually named
24765     something starting with __ and the normal name is an alias.  */
24766 #if defined __stub_getnameinfo || defined __stub___getnameinfo
24767 choke me
24768 #endif
24769
24770 int
24771 main ()
24772 {
24773 return getnameinfo ();
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24785 $as_echo "$ac_try_echo") >&5
24786   (eval "$ac_link") 2>conftest.er1
24787   ac_status=$?
24788   grep -v '^ *+' conftest.er1 >conftest.err
24789   rm -f conftest.er1
24790   cat conftest.err >&5
24791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792   (exit $ac_status); } && {
24793          test -z "$ac_c_werror_flag" ||
24794          test ! -s conftest.err
24795        } && test -s conftest$ac_exeext && {
24796          test "$cross_compiling" = yes ||
24797          $as_test_x conftest$ac_exeext
24798        }; then
24799   ac_cv_func_getnameinfo=yes
24800 else
24801   $as_echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804         ac_cv_func_getnameinfo=no
24805 fi
24806
24807 rm -rf conftest.dSYM
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809       conftest$ac_exeext conftest.$ac_ext
24810 fi
24811 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24812 $as_echo "$ac_cv_func_getnameinfo" >&6; }
24813 if test "x$ac_cv_func_getnameinfo" = x""yes; then
24814   :
24815 else
24816   { { $as_echo "$as_me:$LINENO: error: GSSAPI support requires 'getnameinfo' function" >&5
24817 $as_echo "$as_me: error: GSSAPI support requires 'getnameinfo' function" >&2;}
24818    { (exit 1); exit 1; }; }
24819 fi
24820
24821
24822
24823
24824     { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
24825 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
24826 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
24827   $as_echo_n "(cached) " >&6
24828 else
24829   ac_check_lib_save_LIBS=$LIBS
24830 LIBS="-lnfsidmap  $LIBS"
24831 cat >conftest.$ac_ext <<_ACEOF
24832 /* confdefs.h.  */
24833 _ACEOF
24834 cat confdefs.h >>conftest.$ac_ext
24835 cat >>conftest.$ac_ext <<_ACEOF
24836 /* end confdefs.h.  */
24837
24838 /* Override any GCC internal prototype to avoid an error.
24839    Use char because int might match the return type of a GCC
24840    builtin and then its argument prototype would still apply.  */
24841 #ifdef __cplusplus
24842 extern "C"
24843 #endif
24844 char nfs4_init_name_mapping ();
24845 int
24846 main ()
24847 {
24848 return nfs4_init_name_mapping ();
24849   ;
24850   return 0;
24851 }
24852 _ACEOF
24853 rm -f conftest.$ac_objext conftest$ac_exeext
24854 if { (ac_try="$ac_link"
24855 case "(($ac_try" in
24856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857   *) ac_try_echo=$ac_try;;
24858 esac
24859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861   (eval "$ac_link") 2>conftest.er1
24862   ac_status=$?
24863   grep -v '^ *+' conftest.er1 >conftest.err
24864   rm -f conftest.er1
24865   cat conftest.err >&5
24866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867   (exit $ac_status); } && {
24868          test -z "$ac_c_werror_flag" ||
24869          test ! -s conftest.err
24870        } && test -s conftest$ac_exeext && {
24871          test "$cross_compiling" = yes ||
24872          $as_test_x conftest$ac_exeext
24873        }; then
24874   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
24875 else
24876   $as_echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24878
24879         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
24880 fi
24881
24882 rm -rf conftest.dSYM
24883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24884       conftest$ac_exeext conftest.$ac_ext
24885 LIBS=$ac_check_lib_save_LIBS
24886 fi
24887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
24888 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
24889 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
24890   libnfsidmap=1
24891 else
24892   { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
24893 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
24894    { (exit 1); exit 1; }; }
24895 fi
24896
24897
24898
24899 for ac_header in nfsidmap.h
24900 do
24901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24904 $as_echo_n "checking for $ac_header... " >&6; }
24905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24906   $as_echo_n "(cached) " >&6
24907 fi
24908 ac_res=`eval 'as_val=${'$as_ac_Header'}
24909                  $as_echo "$as_val"'`
24910                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24911 $as_echo "$ac_res" >&6; }
24912 else
24913   # Is the header compilable?
24914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24915 $as_echo_n "checking $ac_header usability... " >&6; }
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h.  */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h.  */
24922 $ac_includes_default
24923 #include <$ac_header>
24924 _ACEOF
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929   *) ac_try_echo=$ac_try;;
24930 esac
24931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24932 $as_echo "$ac_try_echo") >&5
24933   (eval "$ac_compile") 2>conftest.er1
24934   ac_status=$?
24935   grep -v '^ *+' conftest.er1 >conftest.err
24936   rm -f conftest.er1
24937   cat conftest.err >&5
24938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); } && {
24940          test -z "$ac_c_werror_flag" ||
24941          test ! -s conftest.err
24942        } && test -s conftest.$ac_objext; then
24943   ac_header_compiler=yes
24944 else
24945   $as_echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24947
24948         ac_header_compiler=no
24949 fi
24950
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24953 $as_echo "$ac_header_compiler" >&6; }
24954
24955 # Is the header present?
24956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24957 $as_echo_n "checking $ac_header presence... " >&6; }
24958 cat >conftest.$ac_ext <<_ACEOF
24959 /* confdefs.h.  */
24960 _ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h.  */
24964 #include <$ac_header>
24965 _ACEOF
24966 if { (ac_try="$ac_cpp conftest.$ac_ext"
24967 case "(($ac_try" in
24968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969   *) ac_try_echo=$ac_try;;
24970 esac
24971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24974   ac_status=$?
24975   grep -v '^ *+' conftest.er1 >conftest.err
24976   rm -f conftest.er1
24977   cat conftest.err >&5
24978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); } >/dev/null && {
24980          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24981          test ! -s conftest.err
24982        }; then
24983   ac_header_preproc=yes
24984 else
24985   $as_echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988   ac_header_preproc=no
24989 fi
24990
24991 rm -f conftest.err conftest.$ac_ext
24992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24993 $as_echo "$ac_header_preproc" >&6; }
24994
24995 # So?  What about this header?
24996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24997   yes:no: )
24998     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25000     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25002     ac_header_preproc=yes
25003     ;;
25004   no:yes:* )
25005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25008 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25012 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25017     ( cat <<\_ASBOX
25018 ## ---------------------------------------- ##
25019 ## Report this to linux-nfs@vger.kernel.org ##
25020 ## ---------------------------------------- ##
25021 _ASBOX
25022      ) | sed "s/^/$as_me: WARNING:     /" >&2
25023     ;;
25024 esac
25025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25026 $as_echo_n "checking for $ac_header... " >&6; }
25027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25028   $as_echo_n "(cached) " >&6
25029 else
25030   eval "$as_ac_Header=\$ac_header_preproc"
25031 fi
25032 ac_res=`eval 'as_val=${'$as_ac_Header'}
25033                  $as_echo "$as_val"'`
25034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25035 $as_echo "$ac_res" >&6; }
25036
25037 fi
25038 as_val=`eval 'as_val=${'$as_ac_Header'}
25039                  $as_echo "$as_val"'`
25040    if test "x$as_val" = x""yes; then
25041   cat >>confdefs.h <<_ACEOF
25042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25043 _ACEOF
25044
25045 else
25046   { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
25047 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
25048    { (exit 1); exit 1; }; }
25049 fi
25050
25051 done
25052
25053
25054     { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
25055 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
25056 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
25057   $as_echo_n "(cached) " >&6
25058 else
25059   ac_check_lib_save_LIBS=$LIBS
25060 LIBS="-lnfsidmap  $LIBS"
25061 cat >conftest.$ac_ext <<_ACEOF
25062 /* confdefs.h.  */
25063 _ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h.  */
25067
25068 /* Override any GCC internal prototype to avoid an error.
25069    Use char because int might match the return type of a GCC
25070    builtin and then its argument prototype would still apply.  */
25071 #ifdef __cplusplus
25072 extern "C"
25073 #endif
25074 char nfs4_set_debug ();
25075 int
25076 main ()
25077 {
25078 return nfs4_set_debug ();
25079   ;
25080   return 0;
25081 }
25082 _ACEOF
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (ac_try="$ac_link"
25085 case "(($ac_try" in
25086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087   *) ac_try_echo=$ac_try;;
25088 esac
25089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25090 $as_echo "$ac_try_echo") >&5
25091   (eval "$ac_link") 2>conftest.er1
25092   ac_status=$?
25093   grep -v '^ *+' conftest.er1 >conftest.err
25094   rm -f conftest.er1
25095   cat conftest.err >&5
25096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); } && {
25098          test -z "$ac_c_werror_flag" ||
25099          test ! -s conftest.err
25100        } && test -s conftest$ac_exeext && {
25101          test "$cross_compiling" = yes ||
25102          $as_test_x conftest$ac_exeext
25103        }; then
25104   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
25105 else
25106   $as_echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25108
25109         ac_cv_lib_nfsidmap_nfs4_set_debug=no
25110 fi
25111
25112 rm -rf conftest.dSYM
25113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25114       conftest$ac_exeext conftest.$ac_ext
25115 LIBS=$ac_check_lib_save_LIBS
25116 fi
25117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
25118 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
25119 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
25120
25121 cat >>confdefs.h <<\_ACEOF
25122 #define HAVE_NFS4_SET_DEBUG 1
25123 _ACEOF
25124
25125 fi
25126
25127
25128
25129
25130
25131 for ac_header in spkm3.h
25132 do
25133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25135   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25136 $as_echo_n "checking for $ac_header... " >&6; }
25137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25138   $as_echo_n "(cached) " >&6
25139 fi
25140 ac_res=`eval 'as_val=${'$as_ac_Header'}
25141                  $as_echo "$as_val"'`
25142                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25143 $as_echo "$ac_res" >&6; }
25144 else
25145   # Is the header compilable?
25146 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25147 $as_echo_n "checking $ac_header usability... " >&6; }
25148 cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h.  */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h.  */
25154 $ac_includes_default
25155 #include <$ac_header>
25156 _ACEOF
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161   *) ac_try_echo=$ac_try;;
25162 esac
25163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25164 $as_echo "$ac_try_echo") >&5
25165   (eval "$ac_compile") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && {
25172          test -z "$ac_c_werror_flag" ||
25173          test ! -s conftest.err
25174        } && test -s conftest.$ac_objext; then
25175   ac_header_compiler=yes
25176 else
25177   $as_echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180         ac_header_compiler=no
25181 fi
25182
25183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25184 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25185 $as_echo "$ac_header_compiler" >&6; }
25186
25187 # Is the header present?
25188 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25189 $as_echo_n "checking $ac_header presence... " >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196 #include <$ac_header>
25197 _ACEOF
25198 if { (ac_try="$ac_cpp conftest.$ac_ext"
25199 case "(($ac_try" in
25200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201   *) ac_try_echo=$ac_try;;
25202 esac
25203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25204 $as_echo "$ac_try_echo") >&5
25205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } >/dev/null && {
25212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25213          test ! -s conftest.err
25214        }; then
25215   ac_header_preproc=yes
25216 else
25217   $as_echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220   ac_header_preproc=no
25221 fi
25222
25223 rm -f conftest.err conftest.$ac_ext
25224 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25225 $as_echo "$ac_header_preproc" >&6; }
25226
25227 # So?  What about this header?
25228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25229   yes:no: )
25230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25231 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25234     ac_header_preproc=yes
25235     ;;
25236   no:yes:* )
25237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25238 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25240 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25242 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25244 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25246 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25248 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25249     ( cat <<\_ASBOX
25250 ## ---------------------------------------- ##
25251 ## Report this to linux-nfs@vger.kernel.org ##
25252 ## ---------------------------------------- ##
25253 _ASBOX
25254      ) | sed "s/^/$as_me: WARNING:     /" >&2
25255     ;;
25256 esac
25257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25258 $as_echo_n "checking for $ac_header... " >&6; }
25259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25260   $as_echo_n "(cached) " >&6
25261 else
25262   eval "$as_ac_Header=\$ac_header_preproc"
25263 fi
25264 ac_res=`eval 'as_val=${'$as_ac_Header'}
25265                  $as_echo "$as_val"'`
25266                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25267 $as_echo "$ac_res" >&6; }
25268
25269 fi
25270 as_val=`eval 'as_val=${'$as_ac_Header'}
25271                  $as_echo "$as_val"'`
25272    if test "x$as_val" = x""yes; then
25273   cat >>confdefs.h <<_ACEOF
25274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25275 _ACEOF
25276
25277 else
25278   { $as_echo "$as_me:$LINENO: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
25279 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
25280 fi
25281
25282 done
25283
25284
25285
25286   { $as_echo "$as_me:$LINENO: checking for Kerberos v5" >&5
25287 $as_echo_n "checking for Kerberos v5... " >&6; }
25288
25289 # Check whether --with-krb5 was given.
25290 if test "${with_krb5+set}" = set; then
25291   withval=$with_krb5;  case "$withval" in
25292     yes|no)
25293        krb5_with=""
25294        ;;
25295     *)
25296        krb5_with="$withval"
25297        ;;
25298     esac
25299
25300 fi
25301
25302
25303   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
25304              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
25305             K5CONFIG=""
25306     if test -f $dir/bin/krb5-config; then
25307       K5CONFIG=$dir/bin/krb5-config
25308     elif test -f "/usr/kerberos/bin/krb5-config"; then
25309       K5CONFIG="/usr/kerberos/bin/krb5-config"
25310     elif test -f "/usr/lib/mit/bin/krb5-config"; then
25311       K5CONFIG="/usr/lib/mit/bin/krb5-config"
25312     fi
25313     if test "$K5CONFIG" != ""; then
25314       KRBCFLAGS=`$K5CONFIG --cflags`
25315       KRBLIBS=`$K5CONFIG --libs gssapi`
25316       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
25317
25318 cat >>confdefs.h <<_ACEOF
25319 #define KRB5_VERSION $K5VERS
25320 _ACEOF
25321
25322       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
25323                 \( -f $dir/lib/libgssapi_krb5.a -o \
25324                    -f $dir/lib64/libgssapi_krb5.a -o \
25325                    -f $dir/lib64/libgssapi_krb5.so -o \
25326                    -f $dir/lib/libgssapi_krb5.so \) ; then
25327
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_KRB5 1
25330 _ACEOF
25331
25332          KRBDIR="$dir"
25333                      if test $K5VERS -le 131; then
25334
25335 cat >>confdefs.h <<\_ACEOF
25336 #define USE_GSS_KRB5_CCACHE_NAME 1
25337 _ACEOF
25338
25339          fi
25340          gssapi_lib=gssapi_krb5
25341          break
25342                   elif test \( -f $dir/include/heim_err.h -o\
25343                  -f $dir/include/heimdal/heim_err.h \) -a \
25344                 -f $dir/lib/libroken.a; then
25345
25346 cat >>confdefs.h <<\_ACEOF
25347 #define HAVE_HEIMDAL 1
25348 _ACEOF
25349
25350          KRBDIR="$dir"
25351          gssapi_lib=gssapi
25352         break
25353       fi
25354     fi
25355   done
25356     if test "x$KRBDIR" = "x"; then
25357     if test "x$krb5_with" = "x"; then
25358       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
25359 $as_echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
25360    { (exit 1); exit 1; }; }
25361     else
25362       { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
25363 $as_echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
25364    { (exit 1); exit 1; }; }
25365     fi
25366   fi
25367   { $as_echo "$as_me:$LINENO: result: $KRBDIR" >&5
25368 $as_echo "$KRBDIR" >&6; }
25369
25370     echo "The current KRBDIR is $KRBDIR"
25371   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
25372        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
25373     KRBLDFLAGS="";
25374   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
25375     KRBLDFLAGS="";
25376   else
25377     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
25378   fi
25379
25380     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
25381 { $as_echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
25382 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
25383 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25384   $as_echo_n "(cached) " >&6
25385 else
25386   ac_check_lib_save_LIBS=$LIBS
25387 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25388 cat >conftest.$ac_ext <<_ACEOF
25389 /* confdefs.h.  */
25390 _ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h.  */
25394
25395 /* Override any GCC internal prototype to avoid an error.
25396    Use char because int might match the return type of a GCC
25397    builtin and then its argument prototype would still apply.  */
25398 #ifdef __cplusplus
25399 extern "C"
25400 #endif
25401 char gss_krb5_export_lucid_sec_context ();
25402 int
25403 main ()
25404 {
25405 return gss_krb5_export_lucid_sec_context ();
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 rm -f conftest.$ac_objext conftest$ac_exeext
25411 if { (ac_try="$ac_link"
25412 case "(($ac_try" in
25413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414   *) ac_try_echo=$ac_try;;
25415 esac
25416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25417 $as_echo "$ac_try_echo") >&5
25418   (eval "$ac_link") 2>conftest.er1
25419   ac_status=$?
25420   grep -v '^ *+' conftest.er1 >conftest.err
25421   rm -f conftest.er1
25422   cat conftest.err >&5
25423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); } && {
25425          test -z "$ac_c_werror_flag" ||
25426          test ! -s conftest.err
25427        } && test -s conftest$ac_exeext && {
25428          test "$cross_compiling" = yes ||
25429          $as_test_x conftest$ac_exeext
25430        }; then
25431   eval "$as_ac_Lib=yes"
25432 else
25433   $as_echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25435
25436         eval "$as_ac_Lib=no"
25437 fi
25438
25439 rm -rf conftest.dSYM
25440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25441       conftest$ac_exeext conftest.$ac_ext
25442 LIBS=$ac_check_lib_save_LIBS
25443 fi
25444 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25445                  $as_echo "$as_val"'`
25446                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25447 $as_echo "$ac_res" >&6; }
25448 as_val=`eval 'as_val=${'$as_ac_Lib'}
25449                  $as_echo "$as_val"'`
25450    if test "x$as_val" = x""yes; then
25451
25452 cat >>confdefs.h <<\_ACEOF
25453 #define HAVE_LUCID_CONTEXT_SUPPORT 1
25454 _ACEOF
25455
25456 fi
25457
25458   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
25459 { $as_echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
25460 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
25461 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25462   $as_echo_n "(cached) " >&6
25463 else
25464   ac_check_lib_save_LIBS=$LIBS
25465 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25466 cat >conftest.$ac_ext <<_ACEOF
25467 /* confdefs.h.  */
25468 _ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h.  */
25472
25473 /* Override any GCC internal prototype to avoid an error.
25474    Use char because int might match the return type of a GCC
25475    builtin and then its argument prototype would still apply.  */
25476 #ifdef __cplusplus
25477 extern "C"
25478 #endif
25479 char gss_krb5_set_allowable_enctypes ();
25480 int
25481 main ()
25482 {
25483 return gss_krb5_set_allowable_enctypes ();
25484   ;
25485   return 0;
25486 }
25487 _ACEOF
25488 rm -f conftest.$ac_objext conftest$ac_exeext
25489 if { (ac_try="$ac_link"
25490 case "(($ac_try" in
25491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492   *) ac_try_echo=$ac_try;;
25493 esac
25494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496   (eval "$ac_link") 2>conftest.er1
25497   ac_status=$?
25498   grep -v '^ *+' conftest.er1 >conftest.err
25499   rm -f conftest.er1
25500   cat conftest.err >&5
25501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); } && {
25503          test -z "$ac_c_werror_flag" ||
25504          test ! -s conftest.err
25505        } && test -s conftest$ac_exeext && {
25506          test "$cross_compiling" = yes ||
25507          $as_test_x conftest$ac_exeext
25508        }; then
25509   eval "$as_ac_Lib=yes"
25510 else
25511   $as_echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514         eval "$as_ac_Lib=no"
25515 fi
25516
25517 rm -rf conftest.dSYM
25518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25519       conftest$ac_exeext conftest.$ac_ext
25520 LIBS=$ac_check_lib_save_LIBS
25521 fi
25522 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25523                  $as_echo "$as_val"'`
25524                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25525 $as_echo "$ac_res" >&6; }
25526 as_val=`eval 'as_val=${'$as_ac_Lib'}
25527                  $as_echo "$as_val"'`
25528    if test "x$as_val" = x""yes; then
25529
25530 cat >>confdefs.h <<\_ACEOF
25531 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
25532 _ACEOF
25533
25534 fi
25535
25536   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
25537 { $as_echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
25538 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
25539 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25540   $as_echo_n "(cached) " >&6
25541 else
25542   ac_check_lib_save_LIBS=$LIBS
25543 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25544 cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550
25551 /* Override any GCC internal prototype to avoid an error.
25552    Use char because int might match the return type of a GCC
25553    builtin and then its argument prototype would still apply.  */
25554 #ifdef __cplusplus
25555 extern "C"
25556 #endif
25557 char gss_krb5_ccache_name ();
25558 int
25559 main ()
25560 {
25561 return gss_krb5_ccache_name ();
25562   ;
25563   return 0;
25564 }
25565 _ACEOF
25566 rm -f conftest.$ac_objext conftest$ac_exeext
25567 if { (ac_try="$ac_link"
25568 case "(($ac_try" in
25569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570   *) ac_try_echo=$ac_try;;
25571 esac
25572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25573 $as_echo "$ac_try_echo") >&5
25574   (eval "$ac_link") 2>conftest.er1
25575   ac_status=$?
25576   grep -v '^ *+' conftest.er1 >conftest.err
25577   rm -f conftest.er1
25578   cat conftest.err >&5
25579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); } && {
25581          test -z "$ac_c_werror_flag" ||
25582          test ! -s conftest.err
25583        } && test -s conftest$ac_exeext && {
25584          test "$cross_compiling" = yes ||
25585          $as_test_x conftest$ac_exeext
25586        }; then
25587   eval "$as_ac_Lib=yes"
25588 else
25589   $as_echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25591
25592         eval "$as_ac_Lib=no"
25593 fi
25594
25595 rm -rf conftest.dSYM
25596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25597       conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25599 fi
25600 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25601                  $as_echo "$as_val"'`
25602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25603 $as_echo "$ac_res" >&6; }
25604 as_val=`eval 'as_val=${'$as_ac_Lib'}
25605                  $as_echo "$as_val"'`
25606    if test "x$as_val" = x""yes; then
25607
25608 cat >>confdefs.h <<\_ACEOF
25609 #define HAVE_GSS_KRB5_CCACHE_NAME 1
25610 _ACEOF
25611
25612 fi
25613
25614
25615     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
25616 { $as_echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
25617 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
25618 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25619   $as_echo_n "(cached) " >&6
25620 else
25621   ac_check_lib_save_LIBS=$LIBS
25622 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25623 cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h.  */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h.  */
25629
25630 /* Override any GCC internal prototype to avoid an error.
25631    Use char because int might match the return type of a GCC
25632    builtin and then its argument prototype would still apply.  */
25633 #ifdef __cplusplus
25634 extern "C"
25635 #endif
25636 char krb5_get_error_message ();
25637 int
25638 main ()
25639 {
25640 return krb5_get_error_message ();
25641   ;
25642   return 0;
25643 }
25644 _ACEOF
25645 rm -f conftest.$ac_objext conftest$ac_exeext
25646 if { (ac_try="$ac_link"
25647 case "(($ac_try" in
25648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649   *) ac_try_echo=$ac_try;;
25650 esac
25651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25652 $as_echo "$ac_try_echo") >&5
25653   (eval "$ac_link") 2>conftest.er1
25654   ac_status=$?
25655   grep -v '^ *+' conftest.er1 >conftest.err
25656   rm -f conftest.er1
25657   cat conftest.err >&5
25658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); } && {
25660          test -z "$ac_c_werror_flag" ||
25661          test ! -s conftest.err
25662        } && test -s conftest$ac_exeext && {
25663          test "$cross_compiling" = yes ||
25664          $as_test_x conftest$ac_exeext
25665        }; then
25666   eval "$as_ac_Lib=yes"
25667 else
25668   $as_echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25670
25671         eval "$as_ac_Lib=no"
25672 fi
25673
25674 rm -rf conftest.dSYM
25675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25676       conftest$ac_exeext conftest.$ac_ext
25677 LIBS=$ac_check_lib_save_LIBS
25678 fi
25679 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25680                  $as_echo "$as_val"'`
25681                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25682 $as_echo "$ac_res" >&6; }
25683 as_val=`eval 'as_val=${'$as_ac_Lib'}
25684                  $as_echo "$as_val"'`
25685    if test "x$as_val" = x""yes; then
25686
25687 cat >>confdefs.h <<\_ACEOF
25688 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
25689 _ACEOF
25690
25691 fi
25692
25693
25694     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
25695 { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
25696 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
25697 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25698   $as_echo_n "(cached) " >&6
25699 else
25700   ac_check_lib_save_LIBS=$LIBS
25701 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25702 cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h.  */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h.  */
25708
25709 /* Override any GCC internal prototype to avoid an error.
25710    Use char because int might match the return type of a GCC
25711    builtin and then its argument prototype would still apply.  */
25712 #ifdef __cplusplus
25713 extern "C"
25714 #endif
25715 char krb5_get_init_creds_opt_set_addressless ();
25716 int
25717 main ()
25718 {
25719 return krb5_get_init_creds_opt_set_addressless ();
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 rm -f conftest.$ac_objext conftest$ac_exeext
25725 if { (ac_try="$ac_link"
25726 case "(($ac_try" in
25727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728   *) ac_try_echo=$ac_try;;
25729 esac
25730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25731 $as_echo "$ac_try_echo") >&5
25732   (eval "$ac_link") 2>conftest.er1
25733   ac_status=$?
25734   grep -v '^ *+' conftest.er1 >conftest.err
25735   rm -f conftest.er1
25736   cat conftest.err >&5
25737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); } && {
25739          test -z "$ac_c_werror_flag" ||
25740          test ! -s conftest.err
25741        } && test -s conftest$ac_exeext && {
25742          test "$cross_compiling" = yes ||
25743          $as_test_x conftest$ac_exeext
25744        }; then
25745   eval "$as_ac_Lib=yes"
25746 else
25747   $as_echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25749
25750         eval "$as_ac_Lib=no"
25751 fi
25752
25753 rm -rf conftest.dSYM
25754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25755       conftest$ac_exeext conftest.$ac_ext
25756 LIBS=$ac_check_lib_save_LIBS
25757 fi
25758 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25759                  $as_echo "$as_val"'`
25760                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25761 $as_echo "$ac_res" >&6; }
25762 as_val=`eval 'as_val=${'$as_ac_Lib'}
25763                  $as_echo "$as_val"'`
25764    if test "x$as_val" = x""yes; then
25765
25766 cat >>confdefs.h <<\_ACEOF
25767 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
25768 _ACEOF
25769
25770 fi
25771
25772
25773     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
25774     { $as_echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
25775 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
25776   fi
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788     if test "$enable_tirpc" = no; then
25789
25790         { $as_echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
25791 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
25792 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
25793   $as_echo_n "(cached) " >&6
25794 else
25795   ac_check_lib_save_LIBS=$LIBS
25796 LIBS="-lrpcsecgss  $LIBS"
25797 cat >conftest.$ac_ext <<_ACEOF
25798 /* confdefs.h.  */
25799 _ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h.  */
25803
25804 /* Override any GCC internal prototype to avoid an error.
25805    Use char because int might match the return type of a GCC
25806    builtin and then its argument prototype would still apply.  */
25807 #ifdef __cplusplus
25808 extern "C"
25809 #endif
25810 char authgss_create_default ();
25811 int
25812 main ()
25813 {
25814 return authgss_create_default ();
25815   ;
25816   return 0;
25817 }
25818 _ACEOF
25819 rm -f conftest.$ac_objext conftest$ac_exeext
25820 if { (ac_try="$ac_link"
25821 case "(($ac_try" in
25822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823   *) ac_try_echo=$ac_try;;
25824 esac
25825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25826 $as_echo "$ac_try_echo") >&5
25827   (eval "$ac_link") 2>conftest.er1
25828   ac_status=$?
25829   grep -v '^ *+' conftest.er1 >conftest.err
25830   rm -f conftest.er1
25831   cat conftest.err >&5
25832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833   (exit $ac_status); } && {
25834          test -z "$ac_c_werror_flag" ||
25835          test ! -s conftest.err
25836        } && test -s conftest$ac_exeext && {
25837          test "$cross_compiling" = yes ||
25838          $as_test_x conftest$ac_exeext
25839        }; then
25840   ac_cv_lib_rpcsecgss_authgss_create_default=yes
25841 else
25842   $as_echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25844
25845         ac_cv_lib_rpcsecgss_authgss_create_default=no
25846 fi
25847
25848 rm -rf conftest.dSYM
25849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25850       conftest$ac_exeext conftest.$ac_ext
25851 LIBS=$ac_check_lib_save_LIBS
25852 fi
25853 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
25854 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
25855 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then
25856   librpcsecgss=1
25857 else
25858   { { $as_echo "$as_me:$LINENO: error: librpcsecgss not found." >&5
25859 $as_echo "$as_me: error: librpcsecgss not found." >&2;}
25860    { (exit 1); exit 1; }; }
25861 fi
25862
25863
25864     { $as_echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
25865 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
25866 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
25867   $as_echo_n "(cached) " >&6
25868 else
25869   ac_check_lib_save_LIBS=$LIBS
25870 LIBS="-lrpcsecgss  $LIBS"
25871 cat >conftest.$ac_ext <<_ACEOF
25872 /* confdefs.h.  */
25873 _ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h.  */
25877
25878 /* Override any GCC internal prototype to avoid an error.
25879    Use char because int might match the return type of a GCC
25880    builtin and then its argument prototype would still apply.  */
25881 #ifdef __cplusplus
25882 extern "C"
25883 #endif
25884 char authgss_set_debug_level ();
25885 int
25886 main ()
25887 {
25888 return authgss_set_debug_level ();
25889   ;
25890   return 0;
25891 }
25892 _ACEOF
25893 rm -f conftest.$ac_objext conftest$ac_exeext
25894 if { (ac_try="$ac_link"
25895 case "(($ac_try" in
25896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897   *) ac_try_echo=$ac_try;;
25898 esac
25899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25900 $as_echo "$ac_try_echo") >&5
25901   (eval "$ac_link") 2>conftest.er1
25902   ac_status=$?
25903   grep -v '^ *+' conftest.er1 >conftest.err
25904   rm -f conftest.er1
25905   cat conftest.err >&5
25906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907   (exit $ac_status); } && {
25908          test -z "$ac_c_werror_flag" ||
25909          test ! -s conftest.err
25910        } && test -s conftest$ac_exeext && {
25911          test "$cross_compiling" = yes ||
25912          $as_test_x conftest$ac_exeext
25913        }; then
25914   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
25915 else
25916   $as_echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25918
25919         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
25920 fi
25921
25922 rm -rf conftest.dSYM
25923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25924       conftest$ac_exeext conftest.$ac_ext
25925 LIBS=$ac_check_lib_save_LIBS
25926 fi
25927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
25928 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
25929 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then
25930
25931 cat >>confdefs.h <<\_ACEOF
25932 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
25933 _ACEOF
25934
25935 fi
25936
25937
25938   fi
25939
25940
25941
25942 fi
25943
25944
25945
25946   { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
25947 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
25948 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
25949   $as_echo_n "(cached) " >&6
25950 else
25951   cat >conftest.$ac_ext <<_ACEOF
25952 /* confdefs.h.  */
25953 _ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h.  */
25957  #include <netdb.h>
25958
25959 int
25960 main ()
25961 {
25962 #ifndef AI_ADDRCONFIG
25963   (void) AI_ADDRCONFIG;
25964 #endif
25965
25966   ;
25967   return 0;
25968 }
25969 _ACEOF
25970 rm -f conftest.$ac_objext
25971 if { (ac_try="$ac_compile"
25972 case "(($ac_try" in
25973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974   *) ac_try_echo=$ac_try;;
25975 esac
25976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25977 $as_echo "$ac_try_echo") >&5
25978   (eval "$ac_compile") 2>conftest.er1
25979   ac_status=$?
25980   grep -v '^ *+' conftest.er1 >conftest.err
25981   rm -f conftest.er1
25982   cat conftest.err >&5
25983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); } && {
25985          test -z "$ac_c_werror_flag" ||
25986          test ! -s conftest.err
25987        } && test -s conftest.$ac_objext; then
25988   ac_cv_have_decl_AI_ADDRCONFIG=yes
25989 else
25990   $as_echo "$as_me: failed program was:" >&5
25991 sed 's/^/| /' conftest.$ac_ext >&5
25992
25993         ac_cv_have_decl_AI_ADDRCONFIG=no
25994 fi
25995
25996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25997 fi
25998 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
25999 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
26000 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
26001
26002 cat >>confdefs.h <<\_ACEOF
26003 #define HAVE_DECL_AI_ADDRCONFIG 1
26004 _ACEOF
26005
26006 fi
26007
26008
26009   if test "$enable_ipv6" = yes; then
26010
26011         if test "$enable_tirpc" = no; then
26012       { { $as_echo "$as_me:$LINENO: error: '--enable-ipv6' requires '--enable-tirpc'." >&5
26013 $as_echo "$as_me: error: '--enable-ipv6' requires '--enable-tirpc'." >&2;}
26014    { (exit 1); exit 1; }; }
26015     fi
26016
26017
26018
26019 for ac_func in getnameinfo bindresvport_sa
26020 do
26021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26023 $as_echo_n "checking for $ac_func... " >&6; }
26024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26025   $as_echo_n "(cached) " >&6
26026 else
26027   cat >conftest.$ac_ext <<_ACEOF
26028 /* confdefs.h.  */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h.  */
26033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26035 #define $ac_func innocuous_$ac_func
26036
26037 /* System header to define __stub macros and hopefully few prototypes,
26038     which can conflict with char $ac_func (); below.
26039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26040     <limits.h> exists even on freestanding compilers.  */
26041
26042 #ifdef __STDC__
26043 # include <limits.h>
26044 #else
26045 # include <assert.h>
26046 #endif
26047
26048 #undef $ac_func
26049
26050 /* Override any GCC internal prototype to avoid an error.
26051    Use char because int might match the return type of a GCC
26052    builtin and then its argument prototype would still apply.  */
26053 #ifdef __cplusplus
26054 extern "C"
26055 #endif
26056 char $ac_func ();
26057 /* The GNU C library defines this for functions which it implements
26058     to always fail with ENOSYS.  Some functions are actually named
26059     something starting with __ and the normal name is an alias.  */
26060 #if defined __stub_$ac_func || defined __stub___$ac_func
26061 choke me
26062 #endif
26063
26064 int
26065 main ()
26066 {
26067 return $ac_func ();
26068   ;
26069   return 0;
26070 }
26071 _ACEOF
26072 rm -f conftest.$ac_objext conftest$ac_exeext
26073 if { (ac_try="$ac_link"
26074 case "(($ac_try" in
26075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26076   *) ac_try_echo=$ac_try;;
26077 esac
26078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26079 $as_echo "$ac_try_echo") >&5
26080   (eval "$ac_link") 2>conftest.er1
26081   ac_status=$?
26082   grep -v '^ *+' conftest.er1 >conftest.err
26083   rm -f conftest.er1
26084   cat conftest.err >&5
26085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); } && {
26087          test -z "$ac_c_werror_flag" ||
26088          test ! -s conftest.err
26089        } && test -s conftest$ac_exeext && {
26090          test "$cross_compiling" = yes ||
26091          $as_test_x conftest$ac_exeext
26092        }; then
26093   eval "$as_ac_var=yes"
26094 else
26095   $as_echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098         eval "$as_ac_var=no"
26099 fi
26100
26101 rm -rf conftest.dSYM
26102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26103       conftest$ac_exeext conftest.$ac_ext
26104 fi
26105 ac_res=`eval 'as_val=${'$as_ac_var'}
26106                  $as_echo "$as_val"'`
26107                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26108 $as_echo "$ac_res" >&6; }
26109 as_val=`eval 'as_val=${'$as_ac_var'}
26110                  $as_echo "$as_val"'`
26111    if test "x$as_val" = x""yes; then
26112   cat >>confdefs.h <<_ACEOF
26113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26114 _ACEOF
26115
26116 else
26117   { { $as_echo "$as_me:$LINENO: error: Missing functions needed for IPv6." >&5
26118 $as_echo "$as_me: error: Missing functions needed for IPv6." >&2;}
26119    { (exit 1); exit 1; }; }
26120 fi
26121 done
26122
26123
26124             { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
26125 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
26126 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
26127   $as_echo_n "(cached) " >&6
26128 else
26129   cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h.  */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h.  */
26135  #include <netdb.h>
26136
26137 int
26138 main ()
26139 {
26140 #ifndef AI_ADDRCONFIG
26141   (void) AI_ADDRCONFIG;
26142 #endif
26143
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 rm -f conftest.$ac_objext
26149 if { (ac_try="$ac_compile"
26150 case "(($ac_try" in
26151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152   *) ac_try_echo=$ac_try;;
26153 esac
26154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26155 $as_echo "$ac_try_echo") >&5
26156   (eval "$ac_compile") 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } && {
26163          test -z "$ac_c_werror_flag" ||
26164          test ! -s conftest.err
26165        } && test -s conftest.$ac_objext; then
26166   ac_cv_have_decl_AI_ADDRCONFIG=yes
26167 else
26168   $as_echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171         ac_cv_have_decl_AI_ADDRCONFIG=no
26172 fi
26173
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26175 fi
26176 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
26177 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
26178 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
26179   :
26180 else
26181   { { $as_echo "$as_me:$LINENO: error: full getaddrinfo(3) implementation needed for IPv6 support" >&5
26182 $as_echo "$as_me: error: full getaddrinfo(3) implementation needed for IPv6 support" >&2;}
26183    { (exit 1); exit 1; }; }
26184 fi
26185
26186
26187   fi
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
26215                  malloc.h memory.h netdb.h netinet/in.h paths.h \
26216                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
26217                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
26218                  syslog.h unistd.h com_err.h et/com_err.h \
26219                  ifaddrs.h
26220 do
26221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26223   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26224 $as_echo_n "checking for $ac_header... " >&6; }
26225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26226   $as_echo_n "(cached) " >&6
26227 fi
26228 ac_res=`eval 'as_val=${'$as_ac_Header'}
26229                  $as_echo "$as_val"'`
26230                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26231 $as_echo "$ac_res" >&6; }
26232 else
26233   # Is the header compilable?
26234 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26235 $as_echo_n "checking $ac_header usability... " >&6; }
26236 cat >conftest.$ac_ext <<_ACEOF
26237 /* confdefs.h.  */
26238 _ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h.  */
26242 $ac_includes_default
26243 #include <$ac_header>
26244 _ACEOF
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249   *) ac_try_echo=$ac_try;;
26250 esac
26251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26252 $as_echo "$ac_try_echo") >&5
26253   (eval "$ac_compile") 2>conftest.er1
26254   ac_status=$?
26255   grep -v '^ *+' conftest.er1 >conftest.err
26256   rm -f conftest.er1
26257   cat conftest.err >&5
26258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } && {
26260          test -z "$ac_c_werror_flag" ||
26261          test ! -s conftest.err
26262        } && test -s conftest.$ac_objext; then
26263   ac_header_compiler=yes
26264 else
26265   $as_echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268         ac_header_compiler=no
26269 fi
26270
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26273 $as_echo "$ac_header_compiler" >&6; }
26274
26275 # Is the header present?
26276 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26277 $as_echo_n "checking $ac_header presence... " >&6; }
26278 cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 #include <$ac_header>
26285 _ACEOF
26286 if { (ac_try="$ac_cpp conftest.$ac_ext"
26287 case "(($ac_try" in
26288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26289   *) ac_try_echo=$ac_try;;
26290 esac
26291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26292 $as_echo "$ac_try_echo") >&5
26293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26294   ac_status=$?
26295   grep -v '^ *+' conftest.er1 >conftest.err
26296   rm -f conftest.er1
26297   cat conftest.err >&5
26298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); } >/dev/null && {
26300          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26301          test ! -s conftest.err
26302        }; then
26303   ac_header_preproc=yes
26304 else
26305   $as_echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26307
26308   ac_header_preproc=no
26309 fi
26310
26311 rm -f conftest.err conftest.$ac_ext
26312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26313 $as_echo "$ac_header_preproc" >&6; }
26314
26315 # So?  What about this header?
26316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26317   yes:no: )
26318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26319 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26322     ac_header_preproc=yes
26323     ;;
26324   no:yes:* )
26325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26326 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26328 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26330 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26332 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26336 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26337     ( cat <<\_ASBOX
26338 ## ---------------------------------------- ##
26339 ## Report this to linux-nfs@vger.kernel.org ##
26340 ## ---------------------------------------- ##
26341 _ASBOX
26342      ) | sed "s/^/$as_me: WARNING:     /" >&2
26343     ;;
26344 esac
26345 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26346 $as_echo_n "checking for $ac_header... " >&6; }
26347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26348   $as_echo_n "(cached) " >&6
26349 else
26350   eval "$as_ac_Header=\$ac_header_preproc"
26351 fi
26352 ac_res=`eval 'as_val=${'$as_ac_Header'}
26353                  $as_echo "$as_val"'`
26354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26355 $as_echo "$ac_res" >&6; }
26356
26357 fi
26358 as_val=`eval 'as_val=${'$as_ac_Header'}
26359                  $as_echo "$as_val"'`
26360    if test "x$as_val" = x""yes; then
26361   cat >>confdefs.h <<_ACEOF
26362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26363 _ACEOF
26364
26365 fi
26366
26367 done
26368
26369
26370 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26371 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26372 if test "${ac_cv_c_const+set}" = set; then
26373   $as_echo_n "(cached) " >&6
26374 else
26375   cat >conftest.$ac_ext <<_ACEOF
26376 /* confdefs.h.  */
26377 _ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h.  */
26381
26382 int
26383 main ()
26384 {
26385 /* FIXME: Include the comments suggested by Paul. */
26386 #ifndef __cplusplus
26387   /* Ultrix mips cc rejects this.  */
26388   typedef int charset[2];
26389   const charset cs;
26390   /* SunOS 4.1.1 cc rejects this.  */
26391   char const *const *pcpcc;
26392   char **ppc;
26393   /* NEC SVR4.0.2 mips cc rejects this.  */
26394   struct point {int x, y;};
26395   static struct point const zero = {0,0};
26396   /* AIX XL C 1.02.0.0 rejects this.
26397      It does not let you subtract one const X* pointer from another in
26398      an arm of an if-expression whose if-part is not a constant
26399      expression */
26400   const char *g = "string";
26401   pcpcc = &g + (g ? g-g : 0);
26402   /* HPUX 7.0 cc rejects these. */
26403   ++pcpcc;
26404   ppc = (char**) pcpcc;
26405   pcpcc = (char const *const *) ppc;
26406   { /* SCO 3.2v4 cc rejects this.  */
26407     char *t;
26408     char const *s = 0 ? (char *) 0 : (char const *) 0;
26409
26410     *t++ = 0;
26411     if (s) return 0;
26412   }
26413   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26414     int x[] = {25, 17};
26415     const int *foo = &x[0];
26416     ++foo;
26417   }
26418   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26419     typedef const int *iptr;
26420     iptr p = 0;
26421     ++p;
26422   }
26423   { /* AIX XL C 1.02.0.0 rejects this saying
26424        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26425     struct s { int j; const int *ap[3]; };
26426     struct s *b; b->j = 5;
26427   }
26428   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26429     const int foo = 10;
26430     if (!foo) return 0;
26431   }
26432   return !cs[0] && !zero.x;
26433 #endif
26434
26435   ;
26436   return 0;
26437 }
26438 _ACEOF
26439 rm -f conftest.$ac_objext
26440 if { (ac_try="$ac_compile"
26441 case "(($ac_try" in
26442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443   *) ac_try_echo=$ac_try;;
26444 esac
26445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26446 $as_echo "$ac_try_echo") >&5
26447   (eval "$ac_compile") 2>conftest.er1
26448   ac_status=$?
26449   grep -v '^ *+' conftest.er1 >conftest.err
26450   rm -f conftest.er1
26451   cat conftest.err >&5
26452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); } && {
26454          test -z "$ac_c_werror_flag" ||
26455          test ! -s conftest.err
26456        } && test -s conftest.$ac_objext; then
26457   ac_cv_c_const=yes
26458 else
26459   $as_echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26461
26462         ac_cv_c_const=no
26463 fi
26464
26465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26466 fi
26467 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26468 $as_echo "$ac_cv_c_const" >&6; }
26469 if test $ac_cv_c_const = no; then
26470
26471 cat >>confdefs.h <<\_ACEOF
26472 #define const /**/
26473 _ACEOF
26474
26475 fi
26476
26477 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26478 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26479 if test "${ac_cv_type_uid_t+set}" = set; then
26480   $as_echo_n "(cached) " >&6
26481 else
26482   cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488 #include <sys/types.h>
26489
26490 _ACEOF
26491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26492   $EGREP "uid_t" >/dev/null 2>&1; then
26493   ac_cv_type_uid_t=yes
26494 else
26495   ac_cv_type_uid_t=no
26496 fi
26497 rm -f conftest*
26498
26499 fi
26500 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26501 $as_echo "$ac_cv_type_uid_t" >&6; }
26502 if test $ac_cv_type_uid_t = no; then
26503
26504 cat >>confdefs.h <<\_ACEOF
26505 #define uid_t int
26506 _ACEOF
26507
26508
26509 cat >>confdefs.h <<\_ACEOF
26510 #define gid_t int
26511 _ACEOF
26512
26513 fi
26514
26515 { $as_echo "$as_me:$LINENO: checking for inline" >&5
26516 $as_echo_n "checking for inline... " >&6; }
26517 if test "${ac_cv_c_inline+set}" = set; then
26518   $as_echo_n "(cached) " >&6
26519 else
26520   ac_cv_c_inline=no
26521 for ac_kw in inline __inline__ __inline; do
26522   cat >conftest.$ac_ext <<_ACEOF
26523 /* confdefs.h.  */
26524 _ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h.  */
26528 #ifndef __cplusplus
26529 typedef int foo_t;
26530 static $ac_kw foo_t static_foo () {return 0; }
26531 $ac_kw foo_t foo () {return 0; }
26532 #endif
26533
26534 _ACEOF
26535 rm -f conftest.$ac_objext
26536 if { (ac_try="$ac_compile"
26537 case "(($ac_try" in
26538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539   *) ac_try_echo=$ac_try;;
26540 esac
26541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26542 $as_echo "$ac_try_echo") >&5
26543   (eval "$ac_compile") 2>conftest.er1
26544   ac_status=$?
26545   grep -v '^ *+' conftest.er1 >conftest.err
26546   rm -f conftest.er1
26547   cat conftest.err >&5
26548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549   (exit $ac_status); } && {
26550          test -z "$ac_c_werror_flag" ||
26551          test ! -s conftest.err
26552        } && test -s conftest.$ac_objext; then
26553   ac_cv_c_inline=$ac_kw
26554 else
26555   $as_echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26557
26558
26559 fi
26560
26561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26562   test "$ac_cv_c_inline" != no && break
26563 done
26564
26565 fi
26566 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
26567 $as_echo "$ac_cv_c_inline" >&6; }
26568
26569
26570 case $ac_cv_c_inline in
26571   inline | yes) ;;
26572   *)
26573     case $ac_cv_c_inline in
26574       no) ac_val=;;
26575       *) ac_val=$ac_cv_c_inline;;
26576     esac
26577     cat >>confdefs.h <<_ACEOF
26578 #ifndef __cplusplus
26579 #define inline $ac_val
26580 #endif
26581 _ACEOF
26582     ;;
26583 esac
26584
26585 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
26586 $as_echo_n "checking for off_t... " >&6; }
26587 if test "${ac_cv_type_off_t+set}" = set; then
26588   $as_echo_n "(cached) " >&6
26589 else
26590   ac_cv_type_off_t=no
26591 cat >conftest.$ac_ext <<_ACEOF
26592 /* confdefs.h.  */
26593 _ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h.  */
26597 $ac_includes_default
26598 int
26599 main ()
26600 {
26601 if (sizeof (off_t))
26602        return 0;
26603   ;
26604   return 0;
26605 }
26606 _ACEOF
26607 rm -f conftest.$ac_objext
26608 if { (ac_try="$ac_compile"
26609 case "(($ac_try" in
26610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26611   *) ac_try_echo=$ac_try;;
26612 esac
26613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26614 $as_echo "$ac_try_echo") >&5
26615   (eval "$ac_compile") 2>conftest.er1
26616   ac_status=$?
26617   grep -v '^ *+' conftest.er1 >conftest.err
26618   rm -f conftest.er1
26619   cat conftest.err >&5
26620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); } && {
26622          test -z "$ac_c_werror_flag" ||
26623          test ! -s conftest.err
26624        } && test -s conftest.$ac_objext; then
26625   cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h.  */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h.  */
26631 $ac_includes_default
26632 int
26633 main ()
26634 {
26635 if (sizeof ((off_t)))
26636           return 0;
26637   ;
26638   return 0;
26639 }
26640 _ACEOF
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645   *) ac_try_echo=$ac_try;;
26646 esac
26647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26648 $as_echo "$ac_try_echo") >&5
26649   (eval "$ac_compile") 2>conftest.er1
26650   ac_status=$?
26651   grep -v '^ *+' conftest.er1 >conftest.err
26652   rm -f conftest.er1
26653   cat conftest.err >&5
26654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); } && {
26656          test -z "$ac_c_werror_flag" ||
26657          test ! -s conftest.err
26658        } && test -s conftest.$ac_objext; then
26659   :
26660 else
26661   $as_echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26663
26664         ac_cv_type_off_t=yes
26665 fi
26666
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 else
26669   $as_echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672
26673 fi
26674
26675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26676 fi
26677 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26678 $as_echo "$ac_cv_type_off_t" >&6; }
26679 if test "x$ac_cv_type_off_t" = x""yes; then
26680   :
26681 else
26682
26683 cat >>confdefs.h <<_ACEOF
26684 #define off_t long int
26685 _ACEOF
26686
26687 fi
26688
26689 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
26690 $as_echo_n "checking for pid_t... " >&6; }
26691 if test "${ac_cv_type_pid_t+set}" = set; then
26692   $as_echo_n "(cached) " >&6
26693 else
26694   ac_cv_type_pid_t=no
26695 cat >conftest.$ac_ext <<_ACEOF
26696 /* confdefs.h.  */
26697 _ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h.  */
26701 $ac_includes_default
26702 int
26703 main ()
26704 {
26705 if (sizeof (pid_t))
26706        return 0;
26707   ;
26708   return 0;
26709 }
26710 _ACEOF
26711 rm -f conftest.$ac_objext
26712 if { (ac_try="$ac_compile"
26713 case "(($ac_try" in
26714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26715   *) ac_try_echo=$ac_try;;
26716 esac
26717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26718 $as_echo "$ac_try_echo") >&5
26719   (eval "$ac_compile") 2>conftest.er1
26720   ac_status=$?
26721   grep -v '^ *+' conftest.er1 >conftest.err
26722   rm -f conftest.er1
26723   cat conftest.err >&5
26724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); } && {
26726          test -z "$ac_c_werror_flag" ||
26727          test ! -s conftest.err
26728        } && test -s conftest.$ac_objext; then
26729   cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h.  */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h.  */
26735 $ac_includes_default
26736 int
26737 main ()
26738 {
26739 if (sizeof ((pid_t)))
26740           return 0;
26741   ;
26742   return 0;
26743 }
26744 _ACEOF
26745 rm -f conftest.$ac_objext
26746 if { (ac_try="$ac_compile"
26747 case "(($ac_try" in
26748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26749   *) ac_try_echo=$ac_try;;
26750 esac
26751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26752 $as_echo "$ac_try_echo") >&5
26753   (eval "$ac_compile") 2>conftest.er1
26754   ac_status=$?
26755   grep -v '^ *+' conftest.er1 >conftest.err
26756   rm -f conftest.er1
26757   cat conftest.err >&5
26758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759   (exit $ac_status); } && {
26760          test -z "$ac_c_werror_flag" ||
26761          test ! -s conftest.err
26762        } && test -s conftest.$ac_objext; then
26763   :
26764 else
26765   $as_echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26767
26768         ac_cv_type_pid_t=yes
26769 fi
26770
26771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26772 else
26773   $as_echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776
26777 fi
26778
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 fi
26781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26782 $as_echo "$ac_cv_type_pid_t" >&6; }
26783 if test "x$ac_cv_type_pid_t" = x""yes; then
26784   :
26785 else
26786
26787 cat >>confdefs.h <<_ACEOF
26788 #define pid_t int
26789 _ACEOF
26790
26791 fi
26792
26793 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
26794 $as_echo_n "checking for size_t... " >&6; }
26795 if test "${ac_cv_type_size_t+set}" = set; then
26796   $as_echo_n "(cached) " >&6
26797 else
26798   ac_cv_type_size_t=no
26799 cat >conftest.$ac_ext <<_ACEOF
26800 /* confdefs.h.  */
26801 _ACEOF
26802 cat confdefs.h >>conftest.$ac_ext
26803 cat >>conftest.$ac_ext <<_ACEOF
26804 /* end confdefs.h.  */
26805 $ac_includes_default
26806 int
26807 main ()
26808 {
26809 if (sizeof (size_t))
26810        return 0;
26811   ;
26812   return 0;
26813 }
26814 _ACEOF
26815 rm -f conftest.$ac_objext
26816 if { (ac_try="$ac_compile"
26817 case "(($ac_try" in
26818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819   *) ac_try_echo=$ac_try;;
26820 esac
26821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26822 $as_echo "$ac_try_echo") >&5
26823   (eval "$ac_compile") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } && {
26830          test -z "$ac_c_werror_flag" ||
26831          test ! -s conftest.err
26832        } && test -s conftest.$ac_objext; then
26833   cat >conftest.$ac_ext <<_ACEOF
26834 /* confdefs.h.  */
26835 _ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h.  */
26839 $ac_includes_default
26840 int
26841 main ()
26842 {
26843 if (sizeof ((size_t)))
26844           return 0;
26845   ;
26846   return 0;
26847 }
26848 _ACEOF
26849 rm -f conftest.$ac_objext
26850 if { (ac_try="$ac_compile"
26851 case "(($ac_try" in
26852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853   *) ac_try_echo=$ac_try;;
26854 esac
26855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26856 $as_echo "$ac_try_echo") >&5
26857   (eval "$ac_compile") 2>conftest.er1
26858   ac_status=$?
26859   grep -v '^ *+' conftest.er1 >conftest.err
26860   rm -f conftest.er1
26861   cat conftest.err >&5
26862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863   (exit $ac_status); } && {
26864          test -z "$ac_c_werror_flag" ||
26865          test ! -s conftest.err
26866        } && test -s conftest.$ac_objext; then
26867   :
26868 else
26869   $as_echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872         ac_cv_type_size_t=yes
26873 fi
26874
26875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26876 else
26877   $as_echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26879
26880
26881 fi
26882
26883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26884 fi
26885 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26886 $as_echo "$ac_cv_type_size_t" >&6; }
26887 if test "x$ac_cv_type_size_t" = x""yes; then
26888   :
26889 else
26890
26891 cat >>confdefs.h <<_ACEOF
26892 #define size_t unsigned int
26893 _ACEOF
26894
26895 fi
26896
26897 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26898 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26899 if test "${ac_cv_header_time+set}" = set; then
26900   $as_echo_n "(cached) " >&6
26901 else
26902   cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h.  */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h.  */
26908 #include <sys/types.h>
26909 #include <sys/time.h>
26910 #include <time.h>
26911
26912 int
26913 main ()
26914 {
26915 if ((struct tm *) 0)
26916 return 0;
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 rm -f conftest.$ac_objext
26922 if { (ac_try="$ac_compile"
26923 case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26928 $as_echo "$ac_try_echo") >&5
26929   (eval "$ac_compile") 2>conftest.er1
26930   ac_status=$?
26931   grep -v '^ *+' conftest.er1 >conftest.err
26932   rm -f conftest.er1
26933   cat conftest.err >&5
26934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); } && {
26936          test -z "$ac_c_werror_flag" ||
26937          test ! -s conftest.err
26938        } && test -s conftest.$ac_objext; then
26939   ac_cv_header_time=yes
26940 else
26941   $as_echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26943
26944         ac_cv_header_time=no
26945 fi
26946
26947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26948 fi
26949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26950 $as_echo "$ac_cv_header_time" >&6; }
26951 if test $ac_cv_header_time = yes; then
26952
26953 cat >>confdefs.h <<\_ACEOF
26954 #define TIME_WITH_SYS_TIME 1
26955 _ACEOF
26956
26957 fi
26958
26959 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26960 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26961 if test "${ac_cv_struct_tm+set}" = set; then
26962   $as_echo_n "(cached) " >&6
26963 else
26964   cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970 #include <sys/types.h>
26971 #include <time.h>
26972
26973 int
26974 main ()
26975 {
26976 struct tm tm;
26977                                      int *p = &tm.tm_sec;
26978                                      return !p;
26979   ;
26980   return 0;
26981 }
26982 _ACEOF
26983 rm -f conftest.$ac_objext
26984 if { (ac_try="$ac_compile"
26985 case "(($ac_try" in
26986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987   *) ac_try_echo=$ac_try;;
26988 esac
26989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26990 $as_echo "$ac_try_echo") >&5
26991   (eval "$ac_compile") 2>conftest.er1
26992   ac_status=$?
26993   grep -v '^ *+' conftest.er1 >conftest.err
26994   rm -f conftest.er1
26995   cat conftest.err >&5
26996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); } && {
26998          test -z "$ac_c_werror_flag" ||
26999          test ! -s conftest.err
27000        } && test -s conftest.$ac_objext; then
27001   ac_cv_struct_tm=time.h
27002 else
27003   $as_echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006         ac_cv_struct_tm=sys/time.h
27007 fi
27008
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27010 fi
27011 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27012 $as_echo "$ac_cv_struct_tm" >&6; }
27013 if test $ac_cv_struct_tm = sys/time.h; then
27014
27015 cat >>confdefs.h <<\_ACEOF
27016 #define TM_IN_SYS_TIME 1
27017 _ACEOF
27018
27019 fi
27020
27021
27022 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27023 # for constant arguments.  Useless!
27024 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
27025 $as_echo_n "checking for working alloca.h... " >&6; }
27026 if test "${ac_cv_working_alloca_h+set}" = set; then
27027   $as_echo_n "(cached) " >&6
27028 else
27029   cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h.  */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h.  */
27035 #include <alloca.h>
27036 int
27037 main ()
27038 {
27039 char *p = (char *) alloca (2 * sizeof (int));
27040                           if (p) return 0;
27041   ;
27042   return 0;
27043 }
27044 _ACEOF
27045 rm -f conftest.$ac_objext conftest$ac_exeext
27046 if { (ac_try="$ac_link"
27047 case "(($ac_try" in
27048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27049   *) ac_try_echo=$ac_try;;
27050 esac
27051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27052 $as_echo "$ac_try_echo") >&5
27053   (eval "$ac_link") 2>conftest.er1
27054   ac_status=$?
27055   grep -v '^ *+' conftest.er1 >conftest.err
27056   rm -f conftest.er1
27057   cat conftest.err >&5
27058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); } && {
27060          test -z "$ac_c_werror_flag" ||
27061          test ! -s conftest.err
27062        } && test -s conftest$ac_exeext && {
27063          test "$cross_compiling" = yes ||
27064          $as_test_x conftest$ac_exeext
27065        }; then
27066   ac_cv_working_alloca_h=yes
27067 else
27068   $as_echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27070
27071         ac_cv_working_alloca_h=no
27072 fi
27073
27074 rm -rf conftest.dSYM
27075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27076       conftest$ac_exeext conftest.$ac_ext
27077 fi
27078 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27079 $as_echo "$ac_cv_working_alloca_h" >&6; }
27080 if test $ac_cv_working_alloca_h = yes; then
27081
27082 cat >>confdefs.h <<\_ACEOF
27083 #define HAVE_ALLOCA_H 1
27084 _ACEOF
27085
27086 fi
27087
27088 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
27089 $as_echo_n "checking for alloca... " >&6; }
27090 if test "${ac_cv_func_alloca_works+set}" = set; then
27091   $as_echo_n "(cached) " >&6
27092 else
27093   cat >conftest.$ac_ext <<_ACEOF
27094 /* confdefs.h.  */
27095 _ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h.  */
27099 #ifdef __GNUC__
27100 # define alloca __builtin_alloca
27101 #else
27102 # ifdef _MSC_VER
27103 #  include <malloc.h>
27104 #  define alloca _alloca
27105 # else
27106 #  ifdef HAVE_ALLOCA_H
27107 #   include <alloca.h>
27108 #  else
27109 #   ifdef _AIX
27110  #pragma alloca
27111 #   else
27112 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27113 char *alloca ();
27114 #    endif
27115 #   endif
27116 #  endif
27117 # endif
27118 #endif
27119
27120 int
27121 main ()
27122 {
27123 char *p = (char *) alloca (1);
27124                                     if (p) return 0;
27125   ;
27126   return 0;
27127 }
27128 _ACEOF
27129 rm -f conftest.$ac_objext conftest$ac_exeext
27130 if { (ac_try="$ac_link"
27131 case "(($ac_try" in
27132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133   *) ac_try_echo=$ac_try;;
27134 esac
27135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27136 $as_echo "$ac_try_echo") >&5
27137   (eval "$ac_link") 2>conftest.er1
27138   ac_status=$?
27139   grep -v '^ *+' conftest.er1 >conftest.err
27140   rm -f conftest.er1
27141   cat conftest.err >&5
27142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); } && {
27144          test -z "$ac_c_werror_flag" ||
27145          test ! -s conftest.err
27146        } && test -s conftest$ac_exeext && {
27147          test "$cross_compiling" = yes ||
27148          $as_test_x conftest$ac_exeext
27149        }; then
27150   ac_cv_func_alloca_works=yes
27151 else
27152   $as_echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27154
27155         ac_cv_func_alloca_works=no
27156 fi
27157
27158 rm -rf conftest.dSYM
27159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27160       conftest$ac_exeext conftest.$ac_ext
27161 fi
27162 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27163 $as_echo "$ac_cv_func_alloca_works" >&6; }
27164
27165 if test $ac_cv_func_alloca_works = yes; then
27166
27167 cat >>confdefs.h <<\_ACEOF
27168 #define HAVE_ALLOCA 1
27169 _ACEOF
27170
27171 else
27172   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27173 # that cause trouble.  Some versions do not even contain alloca or
27174 # contain a buggy version.  If you still want to use their alloca,
27175 # use ar to extract alloca.o from them instead of compiling alloca.c.
27176
27177 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27178
27179 cat >>confdefs.h <<\_ACEOF
27180 #define C_ALLOCA 1
27181 _ACEOF
27182
27183
27184 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27185 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27186 if test "${ac_cv_os_cray+set}" = set; then
27187   $as_echo_n "(cached) " >&6
27188 else
27189   cat >conftest.$ac_ext <<_ACEOF
27190 /* confdefs.h.  */
27191 _ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h.  */
27195 #if defined CRAY && ! defined CRAY2
27196 webecray
27197 #else
27198 wenotbecray
27199 #endif
27200
27201 _ACEOF
27202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27203   $EGREP "webecray" >/dev/null 2>&1; then
27204   ac_cv_os_cray=yes
27205 else
27206   ac_cv_os_cray=no
27207 fi
27208 rm -f conftest*
27209
27210 fi
27211 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27212 $as_echo "$ac_cv_os_cray" >&6; }
27213 if test $ac_cv_os_cray = yes; then
27214   for ac_func in _getb67 GETB67 getb67; do
27215     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27216 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27217 $as_echo_n "checking for $ac_func... " >&6; }
27218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27219   $as_echo_n "(cached) " >&6
27220 else
27221   cat >conftest.$ac_ext <<_ACEOF
27222 /* confdefs.h.  */
27223 _ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h.  */
27227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27229 #define $ac_func innocuous_$ac_func
27230
27231 /* System header to define __stub macros and hopefully few prototypes,
27232     which can conflict with char $ac_func (); below.
27233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27234     <limits.h> exists even on freestanding compilers.  */
27235
27236 #ifdef __STDC__
27237 # include <limits.h>
27238 #else
27239 # include <assert.h>
27240 #endif
27241
27242 #undef $ac_func
27243
27244 /* Override any GCC internal prototype to avoid an error.
27245    Use char because int might match the return type of a GCC
27246    builtin and then its argument prototype would still apply.  */
27247 #ifdef __cplusplus
27248 extern "C"
27249 #endif
27250 char $ac_func ();
27251 /* The GNU C library defines this for functions which it implements
27252     to always fail with ENOSYS.  Some functions are actually named
27253     something starting with __ and the normal name is an alias.  */
27254 #if defined __stub_$ac_func || defined __stub___$ac_func
27255 choke me
27256 #endif
27257
27258 int
27259 main ()
27260 {
27261 return $ac_func ();
27262   ;
27263   return 0;
27264 }
27265 _ACEOF
27266 rm -f conftest.$ac_objext conftest$ac_exeext
27267 if { (ac_try="$ac_link"
27268 case "(($ac_try" in
27269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270   *) ac_try_echo=$ac_try;;
27271 esac
27272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27273 $as_echo "$ac_try_echo") >&5
27274   (eval "$ac_link") 2>conftest.er1
27275   ac_status=$?
27276   grep -v '^ *+' conftest.er1 >conftest.err
27277   rm -f conftest.er1
27278   cat conftest.err >&5
27279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280   (exit $ac_status); } && {
27281          test -z "$ac_c_werror_flag" ||
27282          test ! -s conftest.err
27283        } && test -s conftest$ac_exeext && {
27284          test "$cross_compiling" = yes ||
27285          $as_test_x conftest$ac_exeext
27286        }; then
27287   eval "$as_ac_var=yes"
27288 else
27289   $as_echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27291
27292         eval "$as_ac_var=no"
27293 fi
27294
27295 rm -rf conftest.dSYM
27296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27297       conftest$ac_exeext conftest.$ac_ext
27298 fi
27299 ac_res=`eval 'as_val=${'$as_ac_var'}
27300                  $as_echo "$as_val"'`
27301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27302 $as_echo "$ac_res" >&6; }
27303 as_val=`eval 'as_val=${'$as_ac_var'}
27304                  $as_echo "$as_val"'`
27305    if test "x$as_val" = x""yes; then
27306
27307 cat >>confdefs.h <<_ACEOF
27308 #define CRAY_STACKSEG_END $ac_func
27309 _ACEOF
27310
27311     break
27312 fi
27313
27314   done
27315 fi
27316
27317 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27318 $as_echo_n "checking stack direction for C alloca... " >&6; }
27319 if test "${ac_cv_c_stack_direction+set}" = set; then
27320   $as_echo_n "(cached) " >&6
27321 else
27322   if test "$cross_compiling" = yes; then
27323   ac_cv_c_stack_direction=0
27324 else
27325   cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331 $ac_includes_default
27332 int
27333 find_stack_direction ()
27334 {
27335   static char *addr = 0;
27336   auto char dummy;
27337   if (addr == 0)
27338     {
27339       addr = &dummy;
27340       return find_stack_direction ();
27341     }
27342   else
27343     return (&dummy > addr) ? 1 : -1;
27344 }
27345
27346 int
27347 main ()
27348 {
27349   return find_stack_direction () < 0;
27350 }
27351 _ACEOF
27352 rm -f conftest$ac_exeext
27353 if { (ac_try="$ac_link"
27354 case "(($ac_try" in
27355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356   *) ac_try_echo=$ac_try;;
27357 esac
27358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27359 $as_echo "$ac_try_echo") >&5
27360   (eval "$ac_link") 2>&5
27361   ac_status=$?
27362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27364   { (case "(($ac_try" in
27365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366   *) ac_try_echo=$ac_try;;
27367 esac
27368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27369 $as_echo "$ac_try_echo") >&5
27370   (eval "$ac_try") 2>&5
27371   ac_status=$?
27372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373   (exit $ac_status); }; }; then
27374   ac_cv_c_stack_direction=1
27375 else
27376   $as_echo "$as_me: program exited with status $ac_status" >&5
27377 $as_echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27379
27380 ( exit $ac_status )
27381 ac_cv_c_stack_direction=-1
27382 fi
27383 rm -rf conftest.dSYM
27384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27385 fi
27386
27387
27388 fi
27389 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27390 $as_echo "$ac_cv_c_stack_direction" >&6; }
27391
27392 cat >>confdefs.h <<_ACEOF
27393 #define STACK_DIRECTION $ac_cv_c_stack_direction
27394 _ACEOF
27395
27396
27397 fi
27398
27399
27400
27401
27402
27403
27404 ac_header_dirent=no
27405 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27406   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27407 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27408 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
27409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27410   $as_echo_n "(cached) " >&6
27411 else
27412   cat >conftest.$ac_ext <<_ACEOF
27413 /* confdefs.h.  */
27414 _ACEOF
27415 cat confdefs.h >>conftest.$ac_ext
27416 cat >>conftest.$ac_ext <<_ACEOF
27417 /* end confdefs.h.  */
27418 #include <sys/types.h>
27419 #include <$ac_hdr>
27420
27421 int
27422 main ()
27423 {
27424 if ((DIR *) 0)
27425 return 0;
27426   ;
27427   return 0;
27428 }
27429 _ACEOF
27430 rm -f conftest.$ac_objext
27431 if { (ac_try="$ac_compile"
27432 case "(($ac_try" in
27433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434   *) ac_try_echo=$ac_try;;
27435 esac
27436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27437 $as_echo "$ac_try_echo") >&5
27438   (eval "$ac_compile") 2>conftest.er1
27439   ac_status=$?
27440   grep -v '^ *+' conftest.er1 >conftest.err
27441   rm -f conftest.er1
27442   cat conftest.err >&5
27443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444   (exit $ac_status); } && {
27445          test -z "$ac_c_werror_flag" ||
27446          test ! -s conftest.err
27447        } && test -s conftest.$ac_objext; then
27448   eval "$as_ac_Header=yes"
27449 else
27450   $as_echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27452
27453         eval "$as_ac_Header=no"
27454 fi
27455
27456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27457 fi
27458 ac_res=`eval 'as_val=${'$as_ac_Header'}
27459                  $as_echo "$as_val"'`
27460                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27461 $as_echo "$ac_res" >&6; }
27462 as_val=`eval 'as_val=${'$as_ac_Header'}
27463                  $as_echo "$as_val"'`
27464    if test "x$as_val" = x""yes; then
27465   cat >>confdefs.h <<_ACEOF
27466 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27467 _ACEOF
27468
27469 ac_header_dirent=$ac_hdr; break
27470 fi
27471
27472 done
27473 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27474 if test $ac_header_dirent = dirent.h; then
27475   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
27476 $as_echo_n "checking for library containing opendir... " >&6; }
27477 if test "${ac_cv_search_opendir+set}" = set; then
27478   $as_echo_n "(cached) " >&6
27479 else
27480   ac_func_search_save_LIBS=$LIBS
27481 cat >conftest.$ac_ext <<_ACEOF
27482 /* confdefs.h.  */
27483 _ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h.  */
27487
27488 /* Override any GCC internal prototype to avoid an error.
27489    Use char because int might match the return type of a GCC
27490    builtin and then its argument prototype would still apply.  */
27491 #ifdef __cplusplus
27492 extern "C"
27493 #endif
27494 char opendir ();
27495 int
27496 main ()
27497 {
27498 return opendir ();
27499   ;
27500   return 0;
27501 }
27502 _ACEOF
27503 for ac_lib in '' dir; do
27504   if test -z "$ac_lib"; then
27505     ac_res="none required"
27506   else
27507     ac_res=-l$ac_lib
27508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27509   fi
27510   rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27517 $as_echo "$ac_try_echo") >&5
27518   (eval "$ac_link") 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } && {
27525          test -z "$ac_c_werror_flag" ||
27526          test ! -s conftest.err
27527        } && test -s conftest$ac_exeext && {
27528          test "$cross_compiling" = yes ||
27529          $as_test_x conftest$ac_exeext
27530        }; then
27531   ac_cv_search_opendir=$ac_res
27532 else
27533   $as_echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536
27537 fi
27538
27539 rm -rf conftest.dSYM
27540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27541       conftest$ac_exeext
27542   if test "${ac_cv_search_opendir+set}" = set; then
27543   break
27544 fi
27545 done
27546 if test "${ac_cv_search_opendir+set}" = set; then
27547   :
27548 else
27549   ac_cv_search_opendir=no
27550 fi
27551 rm conftest.$ac_ext
27552 LIBS=$ac_func_search_save_LIBS
27553 fi
27554 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27555 $as_echo "$ac_cv_search_opendir" >&6; }
27556 ac_res=$ac_cv_search_opendir
27557 if test "$ac_res" != no; then
27558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27559
27560 fi
27561
27562 else
27563   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
27564 $as_echo_n "checking for library containing opendir... " >&6; }
27565 if test "${ac_cv_search_opendir+set}" = set; then
27566   $as_echo_n "(cached) " >&6
27567 else
27568   ac_func_search_save_LIBS=$LIBS
27569 cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h.  */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h.  */
27575
27576 /* Override any GCC internal prototype to avoid an error.
27577    Use char because int might match the return type of a GCC
27578    builtin and then its argument prototype would still apply.  */
27579 #ifdef __cplusplus
27580 extern "C"
27581 #endif
27582 char opendir ();
27583 int
27584 main ()
27585 {
27586 return opendir ();
27587   ;
27588   return 0;
27589 }
27590 _ACEOF
27591 for ac_lib in '' x; do
27592   if test -z "$ac_lib"; then
27593     ac_res="none required"
27594   else
27595     ac_res=-l$ac_lib
27596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27597   fi
27598   rm -f conftest.$ac_objext conftest$ac_exeext
27599 if { (ac_try="$ac_link"
27600 case "(($ac_try" in
27601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602   *) ac_try_echo=$ac_try;;
27603 esac
27604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27605 $as_echo "$ac_try_echo") >&5
27606   (eval "$ac_link") 2>conftest.er1
27607   ac_status=$?
27608   grep -v '^ *+' conftest.er1 >conftest.err
27609   rm -f conftest.er1
27610   cat conftest.err >&5
27611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612   (exit $ac_status); } && {
27613          test -z "$ac_c_werror_flag" ||
27614          test ! -s conftest.err
27615        } && test -s conftest$ac_exeext && {
27616          test "$cross_compiling" = yes ||
27617          $as_test_x conftest$ac_exeext
27618        }; then
27619   ac_cv_search_opendir=$ac_res
27620 else
27621   $as_echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27623
27624
27625 fi
27626
27627 rm -rf conftest.dSYM
27628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27629       conftest$ac_exeext
27630   if test "${ac_cv_search_opendir+set}" = set; then
27631   break
27632 fi
27633 done
27634 if test "${ac_cv_search_opendir+set}" = set; then
27635   :
27636 else
27637   ac_cv_search_opendir=no
27638 fi
27639 rm conftest.$ac_ext
27640 LIBS=$ac_func_search_save_LIBS
27641 fi
27642 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27643 $as_echo "$ac_cv_search_opendir" >&6; }
27644 ac_res=$ac_cv_search_opendir
27645 if test "$ac_res" != no; then
27646   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27647
27648 fi
27649
27650 fi
27651
27652 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27653 $as_echo_n "checking whether closedir returns void... " >&6; }
27654 if test "${ac_cv_func_closedir_void+set}" = set; then
27655   $as_echo_n "(cached) " >&6
27656 else
27657   if test "$cross_compiling" = yes; then
27658   ac_cv_func_closedir_void=yes
27659 else
27660   cat >conftest.$ac_ext <<_ACEOF
27661 /* confdefs.h.  */
27662 _ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h.  */
27666 $ac_includes_default
27667 #include <$ac_header_dirent>
27668 #ifndef __cplusplus
27669 int closedir ();
27670 #endif
27671
27672 int
27673 main ()
27674 {
27675 return closedir (opendir (".")) != 0;
27676   ;
27677   return 0;
27678 }
27679 _ACEOF
27680 rm -f conftest$ac_exeext
27681 if { (ac_try="$ac_link"
27682 case "(($ac_try" in
27683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684   *) ac_try_echo=$ac_try;;
27685 esac
27686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27687 $as_echo "$ac_try_echo") >&5
27688   (eval "$ac_link") 2>&5
27689   ac_status=$?
27690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27692   { (case "(($ac_try" in
27693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694   *) ac_try_echo=$ac_try;;
27695 esac
27696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27697 $as_echo "$ac_try_echo") >&5
27698   (eval "$ac_try") 2>&5
27699   ac_status=$?
27700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); }; }; then
27702   ac_cv_func_closedir_void=no
27703 else
27704   $as_echo "$as_me: program exited with status $ac_status" >&5
27705 $as_echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27707
27708 ( exit $ac_status )
27709 ac_cv_func_closedir_void=yes
27710 fi
27711 rm -rf conftest.dSYM
27712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27713 fi
27714
27715
27716 fi
27717 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27718 $as_echo "$ac_cv_func_closedir_void" >&6; }
27719 if test $ac_cv_func_closedir_void = yes; then
27720
27721 cat >>confdefs.h <<\_ACEOF
27722 #define CLOSEDIR_VOID 1
27723 _ACEOF
27724
27725 fi
27726
27727 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
27728 $as_echo_n "checking for error_at_line... " >&6; }
27729 if test "${ac_cv_lib_error_at_line+set}" = set; then
27730   $as_echo_n "(cached) " >&6
27731 else
27732   cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 #include <error.h>
27739 int
27740 main ()
27741 {
27742 error_at_line (0, 0, "", 0, "an error occurred");
27743   ;
27744   return 0;
27745 }
27746 _ACEOF
27747 rm -f conftest.$ac_objext conftest$ac_exeext
27748 if { (ac_try="$ac_link"
27749 case "(($ac_try" in
27750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751   *) ac_try_echo=$ac_try;;
27752 esac
27753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27754 $as_echo "$ac_try_echo") >&5
27755   (eval "$ac_link") 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } && {
27762          test -z "$ac_c_werror_flag" ||
27763          test ! -s conftest.err
27764        } && test -s conftest$ac_exeext && {
27765          test "$cross_compiling" = yes ||
27766          $as_test_x conftest$ac_exeext
27767        }; then
27768   ac_cv_lib_error_at_line=yes
27769 else
27770   $as_echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27772
27773         ac_cv_lib_error_at_line=no
27774 fi
27775
27776 rm -rf conftest.dSYM
27777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27778       conftest$ac_exeext conftest.$ac_ext
27779 fi
27780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
27781 $as_echo "$ac_cv_lib_error_at_line" >&6; }
27782 if test $ac_cv_lib_error_at_line = no; then
27783   case " $LIBOBJS " in
27784   *" error.$ac_objext "* ) ;;
27785   *) LIBOBJS="$LIBOBJS error.$ac_objext"
27786  ;;
27787 esac
27788
27789 fi
27790
27791
27792 for ac_header in vfork.h
27793 do
27794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27796   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27797 $as_echo_n "checking for $ac_header... " >&6; }
27798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27799   $as_echo_n "(cached) " >&6
27800 fi
27801 ac_res=`eval 'as_val=${'$as_ac_Header'}
27802                  $as_echo "$as_val"'`
27803                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27804 $as_echo "$ac_res" >&6; }
27805 else
27806   # Is the header compilable?
27807 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27808 $as_echo_n "checking $ac_header usability... " >&6; }
27809 cat >conftest.$ac_ext <<_ACEOF
27810 /* confdefs.h.  */
27811 _ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h.  */
27815 $ac_includes_default
27816 #include <$ac_header>
27817 _ACEOF
27818 rm -f conftest.$ac_objext
27819 if { (ac_try="$ac_compile"
27820 case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27825 $as_echo "$ac_try_echo") >&5
27826   (eval "$ac_compile") 2>conftest.er1
27827   ac_status=$?
27828   grep -v '^ *+' conftest.er1 >conftest.err
27829   rm -f conftest.er1
27830   cat conftest.err >&5
27831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); } && {
27833          test -z "$ac_c_werror_flag" ||
27834          test ! -s conftest.err
27835        } && test -s conftest.$ac_objext; then
27836   ac_header_compiler=yes
27837 else
27838   $as_echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841         ac_header_compiler=no
27842 fi
27843
27844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27845 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27846 $as_echo "$ac_header_compiler" >&6; }
27847
27848 # Is the header present?
27849 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27850 $as_echo_n "checking $ac_header presence... " >&6; }
27851 cat >conftest.$ac_ext <<_ACEOF
27852 /* confdefs.h.  */
27853 _ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h.  */
27857 #include <$ac_header>
27858 _ACEOF
27859 if { (ac_try="$ac_cpp conftest.$ac_ext"
27860 case "(($ac_try" in
27861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862   *) ac_try_echo=$ac_try;;
27863 esac
27864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27865 $as_echo "$ac_try_echo") >&5
27866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27867   ac_status=$?
27868   grep -v '^ *+' conftest.er1 >conftest.err
27869   rm -f conftest.er1
27870   cat conftest.err >&5
27871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872   (exit $ac_status); } >/dev/null && {
27873          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27874          test ! -s conftest.err
27875        }; then
27876   ac_header_preproc=yes
27877 else
27878   $as_echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27880
27881   ac_header_preproc=no
27882 fi
27883
27884 rm -f conftest.err conftest.$ac_ext
27885 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27886 $as_echo "$ac_header_preproc" >&6; }
27887
27888 # So?  What about this header?
27889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27890   yes:no: )
27891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27892 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27895     ac_header_preproc=yes
27896     ;;
27897   no:yes:* )
27898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27899 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27901 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27903 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27905 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27907 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27909 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27910     ( cat <<\_ASBOX
27911 ## ---------------------------------------- ##
27912 ## Report this to linux-nfs@vger.kernel.org ##
27913 ## ---------------------------------------- ##
27914 _ASBOX
27915      ) | sed "s/^/$as_me: WARNING:     /" >&2
27916     ;;
27917 esac
27918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27919 $as_echo_n "checking for $ac_header... " >&6; }
27920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27921   $as_echo_n "(cached) " >&6
27922 else
27923   eval "$as_ac_Header=\$ac_header_preproc"
27924 fi
27925 ac_res=`eval 'as_val=${'$as_ac_Header'}
27926                  $as_echo "$as_val"'`
27927                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27928 $as_echo "$ac_res" >&6; }
27929
27930 fi
27931 as_val=`eval 'as_val=${'$as_ac_Header'}
27932                  $as_echo "$as_val"'`
27933    if test "x$as_val" = x""yes; then
27934   cat >>confdefs.h <<_ACEOF
27935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27936 _ACEOF
27937
27938 fi
27939
27940 done
27941
27942
27943
27944 for ac_func in fork vfork
27945 do
27946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27947 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27948 $as_echo_n "checking for $ac_func... " >&6; }
27949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27950   $as_echo_n "(cached) " >&6
27951 else
27952   cat >conftest.$ac_ext <<_ACEOF
27953 /* confdefs.h.  */
27954 _ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h.  */
27958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27960 #define $ac_func innocuous_$ac_func
27961
27962 /* System header to define __stub macros and hopefully few prototypes,
27963     which can conflict with char $ac_func (); below.
27964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27965     <limits.h> exists even on freestanding compilers.  */
27966
27967 #ifdef __STDC__
27968 # include <limits.h>
27969 #else
27970 # include <assert.h>
27971 #endif
27972
27973 #undef $ac_func
27974
27975 /* Override any GCC internal prototype to avoid an error.
27976    Use char because int might match the return type of a GCC
27977    builtin and then its argument prototype would still apply.  */
27978 #ifdef __cplusplus
27979 extern "C"
27980 #endif
27981 char $ac_func ();
27982 /* The GNU C library defines this for functions which it implements
27983     to always fail with ENOSYS.  Some functions are actually named
27984     something starting with __ and the normal name is an alias.  */
27985 #if defined __stub_$ac_func || defined __stub___$ac_func
27986 choke me
27987 #endif
27988
27989 int
27990 main ()
27991 {
27992 return $ac_func ();
27993   ;
27994   return 0;
27995 }
27996 _ACEOF
27997 rm -f conftest.$ac_objext conftest$ac_exeext
27998 if { (ac_try="$ac_link"
27999 case "(($ac_try" in
28000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001   *) ac_try_echo=$ac_try;;
28002 esac
28003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28004 $as_echo "$ac_try_echo") >&5
28005   (eval "$ac_link") 2>conftest.er1
28006   ac_status=$?
28007   grep -v '^ *+' conftest.er1 >conftest.err
28008   rm -f conftest.er1
28009   cat conftest.err >&5
28010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); } && {
28012          test -z "$ac_c_werror_flag" ||
28013          test ! -s conftest.err
28014        } && test -s conftest$ac_exeext && {
28015          test "$cross_compiling" = yes ||
28016          $as_test_x conftest$ac_exeext
28017        }; then
28018   eval "$as_ac_var=yes"
28019 else
28020   $as_echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28022
28023         eval "$as_ac_var=no"
28024 fi
28025
28026 rm -rf conftest.dSYM
28027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28028       conftest$ac_exeext conftest.$ac_ext
28029 fi
28030 ac_res=`eval 'as_val=${'$as_ac_var'}
28031                  $as_echo "$as_val"'`
28032                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28033 $as_echo "$ac_res" >&6; }
28034 as_val=`eval 'as_val=${'$as_ac_var'}
28035                  $as_echo "$as_val"'`
28036    if test "x$as_val" = x""yes; then
28037   cat >>confdefs.h <<_ACEOF
28038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28039 _ACEOF
28040
28041 fi
28042 done
28043
28044 if test "x$ac_cv_func_fork" = xyes; then
28045   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
28046 $as_echo_n "checking for working fork... " >&6; }
28047 if test "${ac_cv_func_fork_works+set}" = set; then
28048   $as_echo_n "(cached) " >&6
28049 else
28050   if test "$cross_compiling" = yes; then
28051   ac_cv_func_fork_works=cross
28052 else
28053   cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h.  */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h.  */
28059 $ac_includes_default
28060 int
28061 main ()
28062 {
28063
28064           /* By Ruediger Kuhlmann. */
28065           return fork () < 0;
28066
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 rm -f conftest$ac_exeext
28072 if { (ac_try="$ac_link"
28073 case "(($ac_try" in
28074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075   *) ac_try_echo=$ac_try;;
28076 esac
28077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28078 $as_echo "$ac_try_echo") >&5
28079   (eval "$ac_link") 2>&5
28080   ac_status=$?
28081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28083   { (case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28088 $as_echo "$ac_try_echo") >&5
28089   (eval "$ac_try") 2>&5
28090   ac_status=$?
28091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); }; }; then
28093   ac_cv_func_fork_works=yes
28094 else
28095   $as_echo "$as_me: program exited with status $ac_status" >&5
28096 $as_echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28098
28099 ( exit $ac_status )
28100 ac_cv_func_fork_works=no
28101 fi
28102 rm -rf conftest.dSYM
28103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28104 fi
28105
28106
28107 fi
28108 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
28109 $as_echo "$ac_cv_func_fork_works" >&6; }
28110
28111 else
28112   ac_cv_func_fork_works=$ac_cv_func_fork
28113 fi
28114 if test "x$ac_cv_func_fork_works" = xcross; then
28115   case $host in
28116     *-*-amigaos* | *-*-msdosdjgpp*)
28117       # Override, as these systems have only a dummy fork() stub
28118       ac_cv_func_fork_works=no
28119       ;;
28120     *)
28121       ac_cv_func_fork_works=yes
28122       ;;
28123   esac
28124   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
28125 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
28126 fi
28127 ac_cv_func_vfork_works=$ac_cv_func_vfork
28128 if test "x$ac_cv_func_vfork" = xyes; then
28129   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
28130 $as_echo_n "checking for working vfork... " >&6; }
28131 if test "${ac_cv_func_vfork_works+set}" = set; then
28132   $as_echo_n "(cached) " >&6
28133 else
28134   if test "$cross_compiling" = yes; then
28135   ac_cv_func_vfork_works=cross
28136 else
28137   cat >conftest.$ac_ext <<_ACEOF
28138 /* confdefs.h.  */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h.  */
28143 /* Thanks to Paul Eggert for this test.  */
28144 $ac_includes_default
28145 #include <sys/wait.h>
28146 #ifdef HAVE_VFORK_H
28147 # include <vfork.h>
28148 #endif
28149 /* On some sparc systems, changes by the child to local and incoming
28150    argument registers are propagated back to the parent.  The compiler
28151    is told about this with #include <vfork.h>, but some compilers
28152    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
28153    static variable whose address is put into a register that is
28154    clobbered by the vfork.  */
28155 static void
28156 #ifdef __cplusplus
28157 sparc_address_test (int arg)
28158 # else
28159 sparc_address_test (arg) int arg;
28160 #endif
28161 {
28162   static pid_t child;
28163   if (!child) {
28164     child = vfork ();
28165     if (child < 0) {
28166       perror ("vfork");
28167       _exit(2);
28168     }
28169     if (!child) {
28170       arg = getpid();
28171       write(-1, "", 0);
28172       _exit (arg);
28173     }
28174   }
28175 }
28176
28177 int
28178 main ()
28179 {
28180   pid_t parent = getpid ();
28181   pid_t child;
28182
28183   sparc_address_test (0);
28184
28185   child = vfork ();
28186
28187   if (child == 0) {
28188     /* Here is another test for sparc vfork register problems.  This
28189        test uses lots of local variables, at least as many local
28190        variables as main has allocated so far including compiler
28191        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
28192        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
28193        reuse the register of parent for one of the local variables,
28194        since it will think that parent can't possibly be used any more
28195        in this routine.  Assigning to the local variable will thus
28196        munge parent in the parent process.  */
28197     pid_t
28198       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
28199       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
28200     /* Convince the compiler that p..p7 are live; otherwise, it might
28201        use the same hardware register for all 8 local variables.  */
28202     if (p != p1 || p != p2 || p != p3 || p != p4
28203         || p != p5 || p != p6 || p != p7)
28204       _exit(1);
28205
28206     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
28207        from child file descriptors.  If the child closes a descriptor
28208        before it execs or exits, this munges the parent's descriptor
28209        as well.  Test for this by closing stdout in the child.  */
28210     _exit(close(fileno(stdout)) != 0);
28211   } else {
28212     int status;
28213     struct stat st;
28214
28215     while (wait(&status) != child)
28216       ;
28217     return (
28218          /* Was there some problem with vforking?  */
28219          child < 0
28220
28221          /* Did the child fail?  (This shouldn't happen.)  */
28222          || status
28223
28224          /* Did the vfork/compiler bug occur?  */
28225          || parent != getpid()
28226
28227          /* Did the file descriptor bug occur?  */
28228          || fstat(fileno(stdout), &st) != 0
28229          );
28230   }
28231 }
28232 _ACEOF
28233 rm -f conftest$ac_exeext
28234 if { (ac_try="$ac_link"
28235 case "(($ac_try" in
28236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237   *) ac_try_echo=$ac_try;;
28238 esac
28239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28240 $as_echo "$ac_try_echo") >&5
28241   (eval "$ac_link") 2>&5
28242   ac_status=$?
28243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28245   { (case "(($ac_try" in
28246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28247   *) ac_try_echo=$ac_try;;
28248 esac
28249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28250 $as_echo "$ac_try_echo") >&5
28251   (eval "$ac_try") 2>&5
28252   ac_status=$?
28253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254   (exit $ac_status); }; }; then
28255   ac_cv_func_vfork_works=yes
28256 else
28257   $as_echo "$as_me: program exited with status $ac_status" >&5
28258 $as_echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28260
28261 ( exit $ac_status )
28262 ac_cv_func_vfork_works=no
28263 fi
28264 rm -rf conftest.dSYM
28265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28266 fi
28267
28268
28269 fi
28270 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
28271 $as_echo "$ac_cv_func_vfork_works" >&6; }
28272
28273 fi;
28274 if test "x$ac_cv_func_fork_works" = xcross; then
28275   ac_cv_func_vfork_works=$ac_cv_func_vfork
28276   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
28277 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
28278 fi
28279
28280 if test "x$ac_cv_func_vfork_works" = xyes; then
28281
28282 cat >>confdefs.h <<\_ACEOF
28283 #define HAVE_WORKING_VFORK 1
28284 _ACEOF
28285
28286 else
28287
28288 cat >>confdefs.h <<\_ACEOF
28289 #define vfork fork
28290 _ACEOF
28291
28292 fi
28293 if test "x$ac_cv_func_fork_works" = xyes; then
28294
28295 cat >>confdefs.h <<\_ACEOF
28296 #define HAVE_WORKING_FORK 1
28297 _ACEOF
28298
28299 fi
28300
28301 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
28302 $as_echo_n "checking type of array argument to getgroups... " >&6; }
28303 if test "${ac_cv_type_getgroups+set}" = set; then
28304   $as_echo_n "(cached) " >&6
28305 else
28306   if test "$cross_compiling" = yes; then
28307   ac_cv_type_getgroups=cross
28308 else
28309   cat >conftest.$ac_ext <<_ACEOF
28310 /* confdefs.h.  */
28311 _ACEOF
28312 cat confdefs.h >>conftest.$ac_ext
28313 cat >>conftest.$ac_ext <<_ACEOF
28314 /* end confdefs.h.  */
28315 /* Thanks to Mike Rendell for this test.  */
28316 $ac_includes_default
28317 #define NGID 256
28318 #undef MAX
28319 #define MAX(x, y) ((x) > (y) ? (x) : (y))
28320
28321 int
28322 main ()
28323 {
28324   gid_t gidset[NGID];
28325   int i, n;
28326   union { gid_t gval; long int lval; }  val;
28327
28328   val.lval = -1;
28329   for (i = 0; i < NGID; i++)
28330     gidset[i] = val.gval;
28331   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
28332                  gidset);
28333   /* Exit non-zero if getgroups seems to require an array of ints.  This
28334      happens when gid_t is short int but getgroups modifies an array
28335      of ints.  */
28336   return n > 0 && gidset[n] != val.gval;
28337 }
28338 _ACEOF
28339 rm -f conftest$ac_exeext
28340 if { (ac_try="$ac_link"
28341 case "(($ac_try" in
28342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343   *) ac_try_echo=$ac_try;;
28344 esac
28345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28346 $as_echo "$ac_try_echo") >&5
28347   (eval "$ac_link") 2>&5
28348   ac_status=$?
28349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28351   { (case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28356 $as_echo "$ac_try_echo") >&5
28357   (eval "$ac_try") 2>&5
28358   ac_status=$?
28359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); }; }; then
28361   ac_cv_type_getgroups=gid_t
28362 else
28363   $as_echo "$as_me: program exited with status $ac_status" >&5
28364 $as_echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28366
28367 ( exit $ac_status )
28368 ac_cv_type_getgroups=int
28369 fi
28370 rm -rf conftest.dSYM
28371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28372 fi
28373
28374
28375 if test $ac_cv_type_getgroups = cross; then
28376         cat >conftest.$ac_ext <<_ACEOF
28377 /* confdefs.h.  */
28378 _ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h.  */
28382 #include <unistd.h>
28383
28384 _ACEOF
28385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28386   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
28387   ac_cv_type_getgroups=gid_t
28388 else
28389   ac_cv_type_getgroups=int
28390 fi
28391 rm -f conftest*
28392
28393 fi
28394 fi
28395 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
28396 $as_echo "$ac_cv_type_getgroups" >&6; }
28397
28398 cat >>confdefs.h <<_ACEOF
28399 #define GETGROUPS_T $ac_cv_type_getgroups
28400 _ACEOF
28401
28402
28403 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
28404 $as_echo_n "checking for getgroups... " >&6; }
28405 if test "${ac_cv_func_getgroups+set}" = set; then
28406   $as_echo_n "(cached) " >&6
28407 else
28408   cat >conftest.$ac_ext <<_ACEOF
28409 /* confdefs.h.  */
28410 _ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h.  */
28414 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
28415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28416 #define getgroups innocuous_getgroups
28417
28418 /* System header to define __stub macros and hopefully few prototypes,
28419     which can conflict with char getgroups (); below.
28420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28421     <limits.h> exists even on freestanding compilers.  */
28422
28423 #ifdef __STDC__
28424 # include <limits.h>
28425 #else
28426 # include <assert.h>
28427 #endif
28428
28429 #undef getgroups
28430
28431 /* Override any GCC internal prototype to avoid an error.
28432    Use char because int might match the return type of a GCC
28433    builtin and then its argument prototype would still apply.  */
28434 #ifdef __cplusplus
28435 extern "C"
28436 #endif
28437 char getgroups ();
28438 /* The GNU C library defines this for functions which it implements
28439     to always fail with ENOSYS.  Some functions are actually named
28440     something starting with __ and the normal name is an alias.  */
28441 #if defined __stub_getgroups || defined __stub___getgroups
28442 choke me
28443 #endif
28444
28445 int
28446 main ()
28447 {
28448 return getgroups ();
28449   ;
28450   return 0;
28451 }
28452 _ACEOF
28453 rm -f conftest.$ac_objext conftest$ac_exeext
28454 if { (ac_try="$ac_link"
28455 case "(($ac_try" in
28456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28457   *) ac_try_echo=$ac_try;;
28458 esac
28459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28460 $as_echo "$ac_try_echo") >&5
28461   (eval "$ac_link") 2>conftest.er1
28462   ac_status=$?
28463   grep -v '^ *+' conftest.er1 >conftest.err
28464   rm -f conftest.er1
28465   cat conftest.err >&5
28466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467   (exit $ac_status); } && {
28468          test -z "$ac_c_werror_flag" ||
28469          test ! -s conftest.err
28470        } && test -s conftest$ac_exeext && {
28471          test "$cross_compiling" = yes ||
28472          $as_test_x conftest$ac_exeext
28473        }; then
28474   ac_cv_func_getgroups=yes
28475 else
28476   $as_echo "$as_me: failed program was:" >&5
28477 sed 's/^/| /' conftest.$ac_ext >&5
28478
28479         ac_cv_func_getgroups=no
28480 fi
28481
28482 rm -rf conftest.dSYM
28483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28484       conftest$ac_exeext conftest.$ac_ext
28485 fi
28486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
28487 $as_echo "$ac_cv_func_getgroups" >&6; }
28488
28489
28490 # If we don't yet have getgroups, see if it's in -lbsd.
28491 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28492 ac_save_LIBS=$LIBS
28493 if test $ac_cv_func_getgroups = no; then
28494   { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
28495 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28496 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
28497   $as_echo_n "(cached) " >&6
28498 else
28499   ac_check_lib_save_LIBS=$LIBS
28500 LIBS="-lbsd  $LIBS"
28501 cat >conftest.$ac_ext <<_ACEOF
28502 /* confdefs.h.  */
28503 _ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h.  */
28507
28508 /* Override any GCC internal prototype to avoid an error.
28509    Use char because int might match the return type of a GCC
28510    builtin and then its argument prototype would still apply.  */
28511 #ifdef __cplusplus
28512 extern "C"
28513 #endif
28514 char getgroups ();
28515 int
28516 main ()
28517 {
28518 return getgroups ();
28519   ;
28520   return 0;
28521 }
28522 _ACEOF
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527   *) ac_try_echo=$ac_try;;
28528 esac
28529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28530 $as_echo "$ac_try_echo") >&5
28531   (eval "$ac_link") 2>conftest.er1
28532   ac_status=$?
28533   grep -v '^ *+' conftest.er1 >conftest.err
28534   rm -f conftest.er1
28535   cat conftest.err >&5
28536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); } && {
28538          test -z "$ac_c_werror_flag" ||
28539          test ! -s conftest.err
28540        } && test -s conftest$ac_exeext && {
28541          test "$cross_compiling" = yes ||
28542          $as_test_x conftest$ac_exeext
28543        }; then
28544   ac_cv_lib_bsd_getgroups=yes
28545 else
28546   $as_echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28548
28549         ac_cv_lib_bsd_getgroups=no
28550 fi
28551
28552 rm -rf conftest.dSYM
28553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28554       conftest$ac_exeext conftest.$ac_ext
28555 LIBS=$ac_check_lib_save_LIBS
28556 fi
28557 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
28558 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28559 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then
28560   GETGROUPS_LIB=-lbsd
28561 fi
28562
28563 fi
28564
28565 # Run the program to test the functionality of the system-supplied
28566 # getgroups function only if there is such a function.
28567 if test $ac_cv_func_getgroups = yes; then
28568   { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
28569 $as_echo_n "checking for working getgroups... " >&6; }
28570 if test "${ac_cv_func_getgroups_works+set}" = set; then
28571   $as_echo_n "(cached) " >&6
28572 else
28573   if test "$cross_compiling" = yes; then
28574   ac_cv_func_getgroups_works=no
28575 else
28576   cat >conftest.$ac_ext <<_ACEOF
28577 /* confdefs.h.  */
28578 _ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h.  */
28582 $ac_includes_default
28583 int
28584 main ()
28585 {
28586 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
28587        return getgroups (0, 0) == -1;
28588   ;
28589   return 0;
28590 }
28591 _ACEOF
28592 rm -f conftest$ac_exeext
28593 if { (ac_try="$ac_link"
28594 case "(($ac_try" in
28595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596   *) ac_try_echo=$ac_try;;
28597 esac
28598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28599 $as_echo "$ac_try_echo") >&5
28600   (eval "$ac_link") 2>&5
28601   ac_status=$?
28602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28604   { (case "(($ac_try" in
28605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606   *) ac_try_echo=$ac_try;;
28607 esac
28608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28609 $as_echo "$ac_try_echo") >&5
28610   (eval "$ac_try") 2>&5
28611   ac_status=$?
28612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); }; }; then
28614   ac_cv_func_getgroups_works=yes
28615 else
28616   $as_echo "$as_me: program exited with status $ac_status" >&5
28617 $as_echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28619
28620 ( exit $ac_status )
28621 ac_cv_func_getgroups_works=no
28622 fi
28623 rm -rf conftest.dSYM
28624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28625 fi
28626
28627
28628
28629 fi
28630 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
28631 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28632   if test $ac_cv_func_getgroups_works = yes; then
28633
28634 cat >>confdefs.h <<\_ACEOF
28635 #define HAVE_GETGROUPS 1
28636 _ACEOF
28637
28638   fi
28639 fi
28640 LIBS=$ac_save_LIBS
28641
28642 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28643 # -lseq on Dynix/PTX, -lgen on Unixware.
28644 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28645 $as_echo_n "checking for library containing getmntent... " >&6; }
28646 if test "${ac_cv_search_getmntent+set}" = set; then
28647   $as_echo_n "(cached) " >&6
28648 else
28649   ac_func_search_save_LIBS=$LIBS
28650 cat >conftest.$ac_ext <<_ACEOF
28651 /* confdefs.h.  */
28652 _ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h.  */
28656
28657 /* Override any GCC internal prototype to avoid an error.
28658    Use char because int might match the return type of a GCC
28659    builtin and then its argument prototype would still apply.  */
28660 #ifdef __cplusplus
28661 extern "C"
28662 #endif
28663 char getmntent ();
28664 int
28665 main ()
28666 {
28667 return getmntent ();
28668   ;
28669   return 0;
28670 }
28671 _ACEOF
28672 for ac_lib in '' sun seq gen; do
28673   if test -z "$ac_lib"; then
28674     ac_res="none required"
28675   else
28676     ac_res=-l$ac_lib
28677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28678   fi
28679   rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (ac_try="$ac_link"
28681 case "(($ac_try" in
28682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683   *) ac_try_echo=$ac_try;;
28684 esac
28685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28686 $as_echo "$ac_try_echo") >&5
28687   (eval "$ac_link") 2>conftest.er1
28688   ac_status=$?
28689   grep -v '^ *+' conftest.er1 >conftest.err
28690   rm -f conftest.er1
28691   cat conftest.err >&5
28692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); } && {
28694          test -z "$ac_c_werror_flag" ||
28695          test ! -s conftest.err
28696        } && test -s conftest$ac_exeext && {
28697          test "$cross_compiling" = yes ||
28698          $as_test_x conftest$ac_exeext
28699        }; then
28700   ac_cv_search_getmntent=$ac_res
28701 else
28702   $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705
28706 fi
28707
28708 rm -rf conftest.dSYM
28709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710       conftest$ac_exeext
28711   if test "${ac_cv_search_getmntent+set}" = set; then
28712   break
28713 fi
28714 done
28715 if test "${ac_cv_search_getmntent+set}" = set; then
28716   :
28717 else
28718   ac_cv_search_getmntent=no
28719 fi
28720 rm conftest.$ac_ext
28721 LIBS=$ac_func_search_save_LIBS
28722 fi
28723 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28724 $as_echo "$ac_cv_search_getmntent" >&6; }
28725 ac_res=$ac_cv_search_getmntent
28726 if test "$ac_res" != no; then
28727   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28728   ac_cv_func_getmntent=yes
28729
28730 cat >>confdefs.h <<\_ACEOF
28731 #define HAVE_GETMNTENT 1
28732 _ACEOF
28733
28734 else
28735   ac_cv_func_getmntent=no
28736 fi
28737
28738
28739 if test $ac_cv_c_compiler_gnu = yes; then
28740     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
28741 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28742 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
28743   $as_echo_n "(cached) " >&6
28744 else
28745     ac_pattern="Autoconf.*'x'"
28746   cat >conftest.$ac_ext <<_ACEOF
28747 /* confdefs.h.  */
28748 _ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h.  */
28752 #include <sgtty.h>
28753 Autoconf TIOCGETP
28754 _ACEOF
28755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28756   $EGREP "$ac_pattern" >/dev/null 2>&1; then
28757   ac_cv_prog_gcc_traditional=yes
28758 else
28759   ac_cv_prog_gcc_traditional=no
28760 fi
28761 rm -f conftest*
28762
28763
28764   if test $ac_cv_prog_gcc_traditional = no; then
28765     cat >conftest.$ac_ext <<_ACEOF
28766 /* confdefs.h.  */
28767 _ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h.  */
28771 #include <termio.h>
28772 Autoconf TCGETA
28773 _ACEOF
28774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28775   $EGREP "$ac_pattern" >/dev/null 2>&1; then
28776   ac_cv_prog_gcc_traditional=yes
28777 fi
28778 rm -f conftest*
28779
28780   fi
28781 fi
28782 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
28783 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28784   if test $ac_cv_prog_gcc_traditional = yes; then
28785     CC="$CC -traditional"
28786   fi
28787 fi
28788
28789 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
28790 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
28791 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
28792   $as_echo_n "(cached) " >&6
28793 else
28794   rm -f conftest.sym conftest.file
28795 echo >conftest.file
28796 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
28797   if test "$cross_compiling" = yes; then
28798   ac_cv_func_lstat_dereferences_slashed_symlink=no
28799 else
28800   cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h.  */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h.  */
28806 $ac_includes_default
28807 int
28808 main ()
28809 {
28810 struct stat sbuf;
28811      /* Linux will dereference the symlink and fail.
28812         That is better in the sense that it means we will not
28813         have to compile and use the lstat wrapper.  */
28814      return lstat ("conftest.sym/", &sbuf) == 0;
28815   ;
28816   return 0;
28817 }
28818 _ACEOF
28819 rm -f conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823   *) ac_try_echo=$ac_try;;
28824 esac
28825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28826 $as_echo "$ac_try_echo") >&5
28827   (eval "$ac_link") 2>&5
28828   ac_status=$?
28829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28831   { (case "(($ac_try" in
28832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833   *) ac_try_echo=$ac_try;;
28834 esac
28835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28836 $as_echo "$ac_try_echo") >&5
28837   (eval "$ac_try") 2>&5
28838   ac_status=$?
28839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; }; then
28841   ac_cv_func_lstat_dereferences_slashed_symlink=yes
28842 else
28843   $as_echo "$as_me: program exited with status $ac_status" >&5
28844 $as_echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28846
28847 ( exit $ac_status )
28848 ac_cv_func_lstat_dereferences_slashed_symlink=no
28849 fi
28850 rm -rf conftest.dSYM
28851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28852 fi
28853
28854
28855 else
28856   # If the `ln -s' command failed, then we probably don't even
28857   # have an lstat function.
28858   ac_cv_func_lstat_dereferences_slashed_symlink=no
28859 fi
28860 rm -f conftest.sym conftest.file
28861
28862 fi
28863 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
28864 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
28865
28866 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
28867
28868 cat >>confdefs.h <<_ACEOF
28869 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
28870 _ACEOF
28871
28872
28873 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
28874   case " $LIBOBJS " in
28875   *" lstat.$ac_objext "* ) ;;
28876   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
28877  ;;
28878 esac
28879
28880 fi
28881
28882 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
28883 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
28884 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
28885   $as_echo_n "(cached) " >&6
28886 else
28887   if test "$cross_compiling" = yes; then
28888   ac_cv_func_lstat_empty_string_bug=yes
28889 else
28890   cat >conftest.$ac_ext <<_ACEOF
28891 /* confdefs.h.  */
28892 _ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h.  */
28896 $ac_includes_default
28897 int
28898 main ()
28899 {
28900 struct stat sbuf;
28901   return lstat ("", &sbuf) == 0;
28902   ;
28903   return 0;
28904 }
28905 _ACEOF
28906 rm -f conftest$ac_exeext
28907 if { (ac_try="$ac_link"
28908 case "(($ac_try" in
28909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910   *) ac_try_echo=$ac_try;;
28911 esac
28912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28913 $as_echo "$ac_try_echo") >&5
28914   (eval "$ac_link") 2>&5
28915   ac_status=$?
28916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28918   { (case "(($ac_try" in
28919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920   *) ac_try_echo=$ac_try;;
28921 esac
28922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28923 $as_echo "$ac_try_echo") >&5
28924   (eval "$ac_try") 2>&5
28925   ac_status=$?
28926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927   (exit $ac_status); }; }; then
28928   ac_cv_func_lstat_empty_string_bug=no
28929 else
28930   $as_echo "$as_me: program exited with status $ac_status" >&5
28931 $as_echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28933
28934 ( exit $ac_status )
28935 ac_cv_func_lstat_empty_string_bug=yes
28936 fi
28937 rm -rf conftest.dSYM
28938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28939 fi
28940
28941
28942 fi
28943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
28944 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
28945 if test $ac_cv_func_lstat_empty_string_bug = yes; then
28946   case " $LIBOBJS " in
28947   *" lstat.$ac_objext "* ) ;;
28948   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
28949  ;;
28950 esac
28951
28952
28953 cat >>confdefs.h <<_ACEOF
28954 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
28955 _ACEOF
28956
28957 fi
28958
28959 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
28960 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
28961 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
28962   $as_echo_n "(cached) " >&6
28963 else
28964   rm -f conftest.sym conftest.file
28965 echo >conftest.file
28966 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
28967   if test "$cross_compiling" = yes; then
28968   ac_cv_func_lstat_dereferences_slashed_symlink=no
28969 else
28970   cat >conftest.$ac_ext <<_ACEOF
28971 /* confdefs.h.  */
28972 _ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h.  */
28976 $ac_includes_default
28977 int
28978 main ()
28979 {
28980 struct stat sbuf;
28981      /* Linux will dereference the symlink and fail.
28982         That is better in the sense that it means we will not
28983         have to compile and use the lstat wrapper.  */
28984      return lstat ("conftest.sym/", &sbuf) == 0;
28985   ;
28986   return 0;
28987 }
28988 _ACEOF
28989 rm -f conftest$ac_exeext
28990 if { (ac_try="$ac_link"
28991 case "(($ac_try" in
28992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993   *) ac_try_echo=$ac_try;;
28994 esac
28995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28996 $as_echo "$ac_try_echo") >&5
28997   (eval "$ac_link") 2>&5
28998   ac_status=$?
28999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29001   { (case "(($ac_try" in
29002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003   *) ac_try_echo=$ac_try;;
29004 esac
29005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29006 $as_echo "$ac_try_echo") >&5
29007   (eval "$ac_try") 2>&5
29008   ac_status=$?
29009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); }; }; then
29011   ac_cv_func_lstat_dereferences_slashed_symlink=yes
29012 else
29013   $as_echo "$as_me: program exited with status $ac_status" >&5
29014 $as_echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017 ( exit $ac_status )
29018 ac_cv_func_lstat_dereferences_slashed_symlink=no
29019 fi
29020 rm -rf conftest.dSYM
29021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29022 fi
29023
29024
29025 else
29026   # If the `ln -s' command failed, then we probably don't even
29027   # have an lstat function.
29028   ac_cv_func_lstat_dereferences_slashed_symlink=no
29029 fi
29030 rm -f conftest.sym conftest.file
29031
29032 fi
29033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
29034 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
29035
29036 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
29037
29038 cat >>confdefs.h <<_ACEOF
29039 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
29040 _ACEOF
29041
29042
29043 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
29044   case " $LIBOBJS " in
29045   *" lstat.$ac_objext "* ) ;;
29046   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
29047  ;;
29048 esac
29049
29050 fi
29051
29052 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
29053 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
29054 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
29055   $as_echo_n "(cached) " >&6
29056 else
29057   cat >conftest.$ac_ext <<_ACEOF
29058 /* confdefs.h.  */
29059 _ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h.  */
29063 #include <sys/types.h>
29064 int
29065 main ()
29066 {
29067 return makedev(0, 0);
29068   ;
29069   return 0;
29070 }
29071 _ACEOF
29072 rm -f conftest.$ac_objext conftest$ac_exeext
29073 if { (ac_try="$ac_link"
29074 case "(($ac_try" in
29075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076   *) ac_try_echo=$ac_try;;
29077 esac
29078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29079 $as_echo "$ac_try_echo") >&5
29080   (eval "$ac_link") 2>conftest.er1
29081   ac_status=$?
29082   grep -v '^ *+' conftest.er1 >conftest.err
29083   rm -f conftest.er1
29084   cat conftest.err >&5
29085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086   (exit $ac_status); } && {
29087          test -z "$ac_c_werror_flag" ||
29088          test ! -s conftest.err
29089        } && test -s conftest$ac_exeext && {
29090          test "$cross_compiling" = yes ||
29091          $as_test_x conftest$ac_exeext
29092        }; then
29093   ac_cv_header_sys_types_h_makedev=yes
29094 else
29095   $as_echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29097
29098         ac_cv_header_sys_types_h_makedev=no
29099 fi
29100
29101 rm -rf conftest.dSYM
29102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29103       conftest$ac_exeext conftest.$ac_ext
29104
29105 fi
29106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
29107 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
29108
29109 if test $ac_cv_header_sys_types_h_makedev = no; then
29110 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
29111   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
29112 $as_echo_n "checking for sys/mkdev.h... " >&6; }
29113 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
29114   $as_echo_n "(cached) " >&6
29115 fi
29116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
29117 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
29118 else
29119   # Is the header compilable?
29120 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
29121 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
29122 cat >conftest.$ac_ext <<_ACEOF
29123 /* confdefs.h.  */
29124 _ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h.  */
29128 $ac_includes_default
29129 #include <sys/mkdev.h>
29130 _ACEOF
29131 rm -f conftest.$ac_objext
29132 if { (ac_try="$ac_compile"
29133 case "(($ac_try" in
29134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135   *) ac_try_echo=$ac_try;;
29136 esac
29137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29138 $as_echo "$ac_try_echo") >&5
29139   (eval "$ac_compile") 2>conftest.er1
29140   ac_status=$?
29141   grep -v '^ *+' conftest.er1 >conftest.err
29142   rm -f conftest.er1
29143   cat conftest.err >&5
29144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145   (exit $ac_status); } && {
29146          test -z "$ac_c_werror_flag" ||
29147          test ! -s conftest.err
29148        } && test -s conftest.$ac_objext; then
29149   ac_header_compiler=yes
29150 else
29151   $as_echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29153
29154         ac_header_compiler=no
29155 fi
29156
29157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29158 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29159 $as_echo "$ac_header_compiler" >&6; }
29160
29161 # Is the header present?
29162 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
29163 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
29164 cat >conftest.$ac_ext <<_ACEOF
29165 /* confdefs.h.  */
29166 _ACEOF
29167 cat confdefs.h >>conftest.$ac_ext
29168 cat >>conftest.$ac_ext <<_ACEOF
29169 /* end confdefs.h.  */
29170 #include <sys/mkdev.h>
29171 _ACEOF
29172 if { (ac_try="$ac_cpp conftest.$ac_ext"
29173 case "(($ac_try" in
29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175   *) ac_try_echo=$ac_try;;
29176 esac
29177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29178 $as_echo "$ac_try_echo") >&5
29179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29180   ac_status=$?
29181   grep -v '^ *+' conftest.er1 >conftest.err
29182   rm -f conftest.er1
29183   cat conftest.err >&5
29184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185   (exit $ac_status); } >/dev/null && {
29186          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29187          test ! -s conftest.err
29188        }; then
29189   ac_header_preproc=yes
29190 else
29191   $as_echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29193
29194   ac_header_preproc=no
29195 fi
29196
29197 rm -f conftest.err conftest.$ac_ext
29198 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29199 $as_echo "$ac_header_preproc" >&6; }
29200
29201 # So?  What about this header?
29202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29203   yes:no: )
29204     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
29205 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29206     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
29207 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
29208     ac_header_preproc=yes
29209     ;;
29210   no:yes:* )
29211     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
29212 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
29213     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
29214 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
29215     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
29216 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
29217     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
29218 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29219     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
29220 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
29221     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
29222 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
29223     ( cat <<\_ASBOX
29224 ## ---------------------------------------- ##
29225 ## Report this to linux-nfs@vger.kernel.org ##
29226 ## ---------------------------------------- ##
29227 _ASBOX
29228      ) | sed "s/^/$as_me: WARNING:     /" >&2
29229     ;;
29230 esac
29231 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
29232 $as_echo_n "checking for sys/mkdev.h... " >&6; }
29233 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
29234   $as_echo_n "(cached) " >&6
29235 else
29236   ac_cv_header_sys_mkdev_h=$ac_header_preproc
29237 fi
29238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
29239 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
29240
29241 fi
29242 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
29243
29244 cat >>confdefs.h <<\_ACEOF
29245 #define MAJOR_IN_MKDEV 1
29246 _ACEOF
29247
29248 fi
29249
29250
29251
29252   if test $ac_cv_header_sys_mkdev_h = no; then
29253     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
29254   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
29255 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
29256 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
29257   $as_echo_n "(cached) " >&6
29258 fi
29259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
29260 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
29261 else
29262   # Is the header compilable?
29263 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
29264 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
29265 cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h.  */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h.  */
29271 $ac_includes_default
29272 #include <sys/sysmacros.h>
29273 _ACEOF
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278   *) ac_try_echo=$ac_try;;
29279 esac
29280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29281 $as_echo "$ac_try_echo") >&5
29282   (eval "$ac_compile") 2>conftest.er1
29283   ac_status=$?
29284   grep -v '^ *+' conftest.er1 >conftest.err
29285   rm -f conftest.er1
29286   cat conftest.err >&5
29287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); } && {
29289          test -z "$ac_c_werror_flag" ||
29290          test ! -s conftest.err
29291        } && test -s conftest.$ac_objext; then
29292   ac_header_compiler=yes
29293 else
29294   $as_echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29296
29297         ac_header_compiler=no
29298 fi
29299
29300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29302 $as_echo "$ac_header_compiler" >&6; }
29303
29304 # Is the header present?
29305 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
29306 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
29307 cat >conftest.$ac_ext <<_ACEOF
29308 /* confdefs.h.  */
29309 _ACEOF
29310 cat confdefs.h >>conftest.$ac_ext
29311 cat >>conftest.$ac_ext <<_ACEOF
29312 /* end confdefs.h.  */
29313 #include <sys/sysmacros.h>
29314 _ACEOF
29315 if { (ac_try="$ac_cpp conftest.$ac_ext"
29316 case "(($ac_try" in
29317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29318   *) ac_try_echo=$ac_try;;
29319 esac
29320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29321 $as_echo "$ac_try_echo") >&5
29322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29323   ac_status=$?
29324   grep -v '^ *+' conftest.er1 >conftest.err
29325   rm -f conftest.er1
29326   cat conftest.err >&5
29327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); } >/dev/null && {
29329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29330          test ! -s conftest.err
29331        }; then
29332   ac_header_preproc=yes
29333 else
29334   $as_echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29336
29337   ac_header_preproc=no
29338 fi
29339
29340 rm -f conftest.err conftest.$ac_ext
29341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29342 $as_echo "$ac_header_preproc" >&6; }
29343
29344 # So?  What about this header?
29345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29346   yes:no: )
29347     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
29348 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29349     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
29350 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
29351     ac_header_preproc=yes
29352     ;;
29353   no:yes:* )
29354     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
29355 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
29356     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
29357 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
29358     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
29359 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
29360     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
29361 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29362     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
29363 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
29364     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
29365 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
29366     ( cat <<\_ASBOX
29367 ## ---------------------------------------- ##
29368 ## Report this to linux-nfs@vger.kernel.org ##
29369 ## ---------------------------------------- ##
29370 _ASBOX
29371      ) | sed "s/^/$as_me: WARNING:     /" >&2
29372     ;;
29373 esac
29374 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
29375 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
29376 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
29377   $as_echo_n "(cached) " >&6
29378 else
29379   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
29380 fi
29381 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
29382 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
29383
29384 fi
29385 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
29386
29387 cat >>confdefs.h <<\_ACEOF
29388 #define MAJOR_IN_SYSMACROS 1
29389 _ACEOF
29390
29391 fi
29392
29393
29394   fi
29395 fi
29396
29397 #AC_FUNC_MALLOC
29398 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
29399 $as_echo_n "checking for working memcmp... " >&6; }
29400 if test "${ac_cv_func_memcmp_working+set}" = set; then
29401   $as_echo_n "(cached) " >&6
29402 else
29403   if test "$cross_compiling" = yes; then
29404   ac_cv_func_memcmp_working=no
29405 else
29406   cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h.  */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h.  */
29412 $ac_includes_default
29413 int
29414 main ()
29415 {
29416
29417   /* Some versions of memcmp are not 8-bit clean.  */
29418   char c0 = '\100', c1 = '\200', c2 = '\201';
29419   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29420     return 1;
29421
29422   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29423      or more and with at least one buffer not starting on a 4-byte boundary.
29424      William Lewis provided this test program.   */
29425   {
29426     char foo[21];
29427     char bar[21];
29428     int i;
29429     for (i = 0; i < 4; i++)
29430       {
29431         char *a = foo + i;
29432         char *b = bar + i;
29433         strcpy (a, "--------01111111");
29434         strcpy (b, "--------10000000");
29435         if (memcmp (a, b, 16) >= 0)
29436           return 1;
29437       }
29438     return 0;
29439   }
29440
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest$ac_exeext
29446 if { (ac_try="$ac_link"
29447 case "(($ac_try" in
29448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449   *) ac_try_echo=$ac_try;;
29450 esac
29451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29452 $as_echo "$ac_try_echo") >&5
29453   (eval "$ac_link") 2>&5
29454   ac_status=$?
29455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29457   { (case "(($ac_try" in
29458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459   *) ac_try_echo=$ac_try;;
29460 esac
29461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29462 $as_echo "$ac_try_echo") >&5
29463   (eval "$ac_try") 2>&5
29464   ac_status=$?
29465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); }; }; then
29467   ac_cv_func_memcmp_working=yes
29468 else
29469   $as_echo "$as_me: program exited with status $ac_status" >&5
29470 $as_echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29472
29473 ( exit $ac_status )
29474 ac_cv_func_memcmp_working=no
29475 fi
29476 rm -rf conftest.dSYM
29477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29478 fi
29479
29480
29481 fi
29482 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29483 $as_echo "$ac_cv_func_memcmp_working" >&6; }
29484 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
29485   *" memcmp.$ac_objext "* ) ;;
29486   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
29487  ;;
29488 esac
29489
29490
29491 #AC_FUNC_REALLOC
29492
29493
29494 for ac_header in sys/select.h sys/socket.h
29495 do
29496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29498   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29499 $as_echo_n "checking for $ac_header... " >&6; }
29500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29501   $as_echo_n "(cached) " >&6
29502 fi
29503 ac_res=`eval 'as_val=${'$as_ac_Header'}
29504                  $as_echo "$as_val"'`
29505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29506 $as_echo "$ac_res" >&6; }
29507 else
29508   # Is the header compilable?
29509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29510 $as_echo_n "checking $ac_header usability... " >&6; }
29511 cat >conftest.$ac_ext <<_ACEOF
29512 /* confdefs.h.  */
29513 _ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h.  */
29517 $ac_includes_default
29518 #include <$ac_header>
29519 _ACEOF
29520 rm -f conftest.$ac_objext
29521 if { (ac_try="$ac_compile"
29522 case "(($ac_try" in
29523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524   *) ac_try_echo=$ac_try;;
29525 esac
29526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29527 $as_echo "$ac_try_echo") >&5
29528   (eval "$ac_compile") 2>conftest.er1
29529   ac_status=$?
29530   grep -v '^ *+' conftest.er1 >conftest.err
29531   rm -f conftest.er1
29532   cat conftest.err >&5
29533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); } && {
29535          test -z "$ac_c_werror_flag" ||
29536          test ! -s conftest.err
29537        } && test -s conftest.$ac_objext; then
29538   ac_header_compiler=yes
29539 else
29540   $as_echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29542
29543         ac_header_compiler=no
29544 fi
29545
29546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29548 $as_echo "$ac_header_compiler" >&6; }
29549
29550 # Is the header present?
29551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29552 $as_echo_n "checking $ac_header presence... " >&6; }
29553 cat >conftest.$ac_ext <<_ACEOF
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559 #include <$ac_header>
29560 _ACEOF
29561 if { (ac_try="$ac_cpp conftest.$ac_ext"
29562 case "(($ac_try" in
29563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564   *) ac_try_echo=$ac_try;;
29565 esac
29566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29567 $as_echo "$ac_try_echo") >&5
29568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29569   ac_status=$?
29570   grep -v '^ *+' conftest.er1 >conftest.err
29571   rm -f conftest.er1
29572   cat conftest.err >&5
29573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574   (exit $ac_status); } >/dev/null && {
29575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29576          test ! -s conftest.err
29577        }; then
29578   ac_header_preproc=yes
29579 else
29580   $as_echo "$as_me: failed program was:" >&5
29581 sed 's/^/| /' conftest.$ac_ext >&5
29582
29583   ac_header_preproc=no
29584 fi
29585
29586 rm -f conftest.err conftest.$ac_ext
29587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29588 $as_echo "$ac_header_preproc" >&6; }
29589
29590 # So?  What about this header?
29591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29592   yes:no: )
29593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29597     ac_header_preproc=yes
29598     ;;
29599   no:yes:* )
29600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29603 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29607 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29612     ( cat <<\_ASBOX
29613 ## ---------------------------------------- ##
29614 ## Report this to linux-nfs@vger.kernel.org ##
29615 ## ---------------------------------------- ##
29616 _ASBOX
29617      ) | sed "s/^/$as_me: WARNING:     /" >&2
29618     ;;
29619 esac
29620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29621 $as_echo_n "checking for $ac_header... " >&6; }
29622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29623   $as_echo_n "(cached) " >&6
29624 else
29625   eval "$as_ac_Header=\$ac_header_preproc"
29626 fi
29627 ac_res=`eval 'as_val=${'$as_ac_Header'}
29628                  $as_echo "$as_val"'`
29629                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29630 $as_echo "$ac_res" >&6; }
29631
29632 fi
29633 as_val=`eval 'as_val=${'$as_ac_Header'}
29634                  $as_echo "$as_val"'`
29635    if test "x$as_val" = x""yes; then
29636   cat >>confdefs.h <<_ACEOF
29637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29638 _ACEOF
29639
29640 fi
29641
29642 done
29643
29644 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
29645 $as_echo_n "checking types of arguments for select... " >&6; }
29646 if test "${ac_cv_func_select_args+set}" = set; then
29647   $as_echo_n "(cached) " >&6
29648 else
29649   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
29650  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
29651   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
29652    cat >conftest.$ac_ext <<_ACEOF
29653 /* confdefs.h.  */
29654 _ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h.  */
29658 $ac_includes_default
29659 #ifdef HAVE_SYS_SELECT_H
29660 # include <sys/select.h>
29661 #endif
29662 #ifdef HAVE_SYS_SOCKET_H
29663 # include <sys/socket.h>
29664 #endif
29665
29666 int
29667 main ()
29668 {
29669 extern int select ($ac_arg1,
29670                                             $ac_arg234, $ac_arg234, $ac_arg234,
29671                                             $ac_arg5);
29672   ;
29673   return 0;
29674 }
29675 _ACEOF
29676 rm -f conftest.$ac_objext
29677 if { (ac_try="$ac_compile"
29678 case "(($ac_try" in
29679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680   *) ac_try_echo=$ac_try;;
29681 esac
29682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29683 $as_echo "$ac_try_echo") >&5
29684   (eval "$ac_compile") 2>conftest.er1
29685   ac_status=$?
29686   grep -v '^ *+' conftest.er1 >conftest.err
29687   rm -f conftest.er1
29688   cat conftest.err >&5
29689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); } && {
29691          test -z "$ac_c_werror_flag" ||
29692          test ! -s conftest.err
29693        } && test -s conftest.$ac_objext; then
29694   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
29695 else
29696   $as_echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29698
29699
29700 fi
29701
29702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29703   done
29704  done
29705 done
29706 # Provide a safe default value.
29707 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
29708
29709 fi
29710 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
29711 $as_echo "$ac_cv_func_select_args" >&6; }
29712 ac_save_IFS=$IFS; IFS=','
29713 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
29714 IFS=$ac_save_IFS
29715 shift
29716
29717 cat >>confdefs.h <<_ACEOF
29718 #define SELECT_TYPE_ARG1 $1
29719 _ACEOF
29720
29721
29722 cat >>confdefs.h <<_ACEOF
29723 #define SELECT_TYPE_ARG234 ($2)
29724 _ACEOF
29725
29726
29727 cat >>confdefs.h <<_ACEOF
29728 #define SELECT_TYPE_ARG5 ($3)
29729 _ACEOF
29730
29731 rm -f conftest*
29732
29733 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29734 $as_echo_n "checking return type of signal handlers... " >&6; }
29735 if test "${ac_cv_type_signal+set}" = set; then
29736   $as_echo_n "(cached) " >&6
29737 else
29738   cat >conftest.$ac_ext <<_ACEOF
29739 /* confdefs.h.  */
29740 _ACEOF
29741 cat confdefs.h >>conftest.$ac_ext
29742 cat >>conftest.$ac_ext <<_ACEOF
29743 /* end confdefs.h.  */
29744 #include <sys/types.h>
29745 #include <signal.h>
29746
29747 int
29748 main ()
29749 {
29750 return *(signal (0, 0)) (0) == 1;
29751   ;
29752   return 0;
29753 }
29754 _ACEOF
29755 rm -f conftest.$ac_objext
29756 if { (ac_try="$ac_compile"
29757 case "(($ac_try" in
29758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759   *) ac_try_echo=$ac_try;;
29760 esac
29761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29762 $as_echo "$ac_try_echo") >&5
29763   (eval "$ac_compile") 2>conftest.er1
29764   ac_status=$?
29765   grep -v '^ *+' conftest.er1 >conftest.err
29766   rm -f conftest.er1
29767   cat conftest.err >&5
29768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); } && {
29770          test -z "$ac_c_werror_flag" ||
29771          test ! -s conftest.err
29772        } && test -s conftest.$ac_objext; then
29773   ac_cv_type_signal=int
29774 else
29775   $as_echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29777
29778         ac_cv_type_signal=void
29779 fi
29780
29781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29782 fi
29783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29784 $as_echo "$ac_cv_type_signal" >&6; }
29785
29786 cat >>confdefs.h <<_ACEOF
29787 #define RETSIGTYPE $ac_cv_type_signal
29788 _ACEOF
29789
29790
29791 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
29792 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
29793 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
29794   $as_echo_n "(cached) " >&6
29795 else
29796   if test "$cross_compiling" = yes; then
29797   ac_cv_func_stat_empty_string_bug=yes
29798 else
29799   cat >conftest.$ac_ext <<_ACEOF
29800 /* confdefs.h.  */
29801 _ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h.  */
29805 $ac_includes_default
29806 int
29807 main ()
29808 {
29809 struct stat sbuf;
29810   return stat ("", &sbuf) == 0;
29811   ;
29812   return 0;
29813 }
29814 _ACEOF
29815 rm -f conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819   *) ac_try_echo=$ac_try;;
29820 esac
29821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29822 $as_echo "$ac_try_echo") >&5
29823   (eval "$ac_link") 2>&5
29824   ac_status=$?
29825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29827   { (case "(($ac_try" in
29828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829   *) ac_try_echo=$ac_try;;
29830 esac
29831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29832 $as_echo "$ac_try_echo") >&5
29833   (eval "$ac_try") 2>&5
29834   ac_status=$?
29835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836   (exit $ac_status); }; }; then
29837   ac_cv_func_stat_empty_string_bug=no
29838 else
29839   $as_echo "$as_me: program exited with status $ac_status" >&5
29840 $as_echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29842
29843 ( exit $ac_status )
29844 ac_cv_func_stat_empty_string_bug=yes
29845 fi
29846 rm -rf conftest.dSYM
29847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29848 fi
29849
29850
29851 fi
29852 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
29853 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
29854 if test $ac_cv_func_stat_empty_string_bug = yes; then
29855   case " $LIBOBJS " in
29856   *" stat.$ac_objext "* ) ;;
29857   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
29858  ;;
29859 esac
29860
29861
29862 cat >>confdefs.h <<_ACEOF
29863 #define HAVE_STAT_EMPTY_STRING_BUG 1
29864 _ACEOF
29865
29866 fi
29867
29868
29869 for ac_func in vprintf
29870 do
29871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29873 $as_echo_n "checking for $ac_func... " >&6; }
29874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29875   $as_echo_n "(cached) " >&6
29876 else
29877   cat >conftest.$ac_ext <<_ACEOF
29878 /* confdefs.h.  */
29879 _ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h.  */
29883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29885 #define $ac_func innocuous_$ac_func
29886
29887 /* System header to define __stub macros and hopefully few prototypes,
29888     which can conflict with char $ac_func (); below.
29889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29890     <limits.h> exists even on freestanding compilers.  */
29891
29892 #ifdef __STDC__
29893 # include <limits.h>
29894 #else
29895 # include <assert.h>
29896 #endif
29897
29898 #undef $ac_func
29899
29900 /* Override any GCC internal prototype to avoid an error.
29901    Use char because int might match the return type of a GCC
29902    builtin and then its argument prototype would still apply.  */
29903 #ifdef __cplusplus
29904 extern "C"
29905 #endif
29906 char $ac_func ();
29907 /* The GNU C library defines this for functions which it implements
29908     to always fail with ENOSYS.  Some functions are actually named
29909     something starting with __ and the normal name is an alias.  */
29910 #if defined __stub_$ac_func || defined __stub___$ac_func
29911 choke me
29912 #endif
29913
29914 int
29915 main ()
29916 {
29917 return $ac_func ();
29918   ;
29919   return 0;
29920 }
29921 _ACEOF
29922 rm -f conftest.$ac_objext conftest$ac_exeext
29923 if { (ac_try="$ac_link"
29924 case "(($ac_try" in
29925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29926   *) ac_try_echo=$ac_try;;
29927 esac
29928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29929 $as_echo "$ac_try_echo") >&5
29930   (eval "$ac_link") 2>conftest.er1
29931   ac_status=$?
29932   grep -v '^ *+' conftest.er1 >conftest.err
29933   rm -f conftest.er1
29934   cat conftest.err >&5
29935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } && {
29937          test -z "$ac_c_werror_flag" ||
29938          test ! -s conftest.err
29939        } && test -s conftest$ac_exeext && {
29940          test "$cross_compiling" = yes ||
29941          $as_test_x conftest$ac_exeext
29942        }; then
29943   eval "$as_ac_var=yes"
29944 else
29945   $as_echo "$as_me: failed program was:" >&5
29946 sed 's/^/| /' conftest.$ac_ext >&5
29947
29948         eval "$as_ac_var=no"
29949 fi
29950
29951 rm -rf conftest.dSYM
29952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29953       conftest$ac_exeext conftest.$ac_ext
29954 fi
29955 ac_res=`eval 'as_val=${'$as_ac_var'}
29956                  $as_echo "$as_val"'`
29957                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29958 $as_echo "$ac_res" >&6; }
29959 as_val=`eval 'as_val=${'$as_ac_var'}
29960                  $as_echo "$as_val"'`
29961    if test "x$as_val" = x""yes; then
29962   cat >>confdefs.h <<_ACEOF
29963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29964 _ACEOF
29965
29966 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
29967 $as_echo_n "checking for _doprnt... " >&6; }
29968 if test "${ac_cv_func__doprnt+set}" = set; then
29969   $as_echo_n "(cached) " >&6
29970 else
29971   cat >conftest.$ac_ext <<_ACEOF
29972 /* confdefs.h.  */
29973 _ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h.  */
29977 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
29978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29979 #define _doprnt innocuous__doprnt
29980
29981 /* System header to define __stub macros and hopefully few prototypes,
29982     which can conflict with char _doprnt (); below.
29983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29984     <limits.h> exists even on freestanding compilers.  */
29985
29986 #ifdef __STDC__
29987 # include <limits.h>
29988 #else
29989 # include <assert.h>
29990 #endif
29991
29992 #undef _doprnt
29993
29994 /* Override any GCC internal prototype to avoid an error.
29995    Use char because int might match the return type of a GCC
29996    builtin and then its argument prototype would still apply.  */
29997 #ifdef __cplusplus
29998 extern "C"
29999 #endif
30000 char _doprnt ();
30001 /* The GNU C library defines this for functions which it implements
30002     to always fail with ENOSYS.  Some functions are actually named
30003     something starting with __ and the normal name is an alias.  */
30004 #if defined __stub__doprnt || defined __stub____doprnt
30005 choke me
30006 #endif
30007
30008 int
30009 main ()
30010 {
30011 return _doprnt ();
30012   ;
30013   return 0;
30014 }
30015 _ACEOF
30016 rm -f conftest.$ac_objext conftest$ac_exeext
30017 if { (ac_try="$ac_link"
30018 case "(($ac_try" in
30019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30020   *) ac_try_echo=$ac_try;;
30021 esac
30022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30023 $as_echo "$ac_try_echo") >&5
30024   (eval "$ac_link") 2>conftest.er1
30025   ac_status=$?
30026   grep -v '^ *+' conftest.er1 >conftest.err
30027   rm -f conftest.er1
30028   cat conftest.err >&5
30029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030   (exit $ac_status); } && {
30031          test -z "$ac_c_werror_flag" ||
30032          test ! -s conftest.err
30033        } && test -s conftest$ac_exeext && {
30034          test "$cross_compiling" = yes ||
30035          $as_test_x conftest$ac_exeext
30036        }; then
30037   ac_cv_func__doprnt=yes
30038 else
30039   $as_echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30041
30042         ac_cv_func__doprnt=no
30043 fi
30044
30045 rm -rf conftest.dSYM
30046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30047       conftest$ac_exeext conftest.$ac_ext
30048 fi
30049 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
30050 $as_echo "$ac_cv_func__doprnt" >&6; }
30051 if test "x$ac_cv_func__doprnt" = x""yes; then
30052
30053 cat >>confdefs.h <<\_ACEOF
30054 #define HAVE_DOPRNT 1
30055 _ACEOF
30056
30057 fi
30058
30059 fi
30060 done
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
30095                gethostbyaddr gethostbyname gethostname getmntent \
30096                getnameinfo getrpcbyname \
30097                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
30098                realpath rmdir select socket strcasecmp strchr strdup \
30099                strerror strrchr strtol strtoul sigprocmask
30100 do
30101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30103 $as_echo_n "checking for $ac_func... " >&6; }
30104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30105   $as_echo_n "(cached) " >&6
30106 else
30107   cat >conftest.$ac_ext <<_ACEOF
30108 /* confdefs.h.  */
30109 _ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h.  */
30113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30115 #define $ac_func innocuous_$ac_func
30116
30117 /* System header to define __stub macros and hopefully few prototypes,
30118     which can conflict with char $ac_func (); below.
30119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30120     <limits.h> exists even on freestanding compilers.  */
30121
30122 #ifdef __STDC__
30123 # include <limits.h>
30124 #else
30125 # include <assert.h>
30126 #endif
30127
30128 #undef $ac_func
30129
30130 /* Override any GCC internal prototype to avoid an error.
30131    Use char because int might match the return type of a GCC
30132    builtin and then its argument prototype would still apply.  */
30133 #ifdef __cplusplus
30134 extern "C"
30135 #endif
30136 char $ac_func ();
30137 /* The GNU C library defines this for functions which it implements
30138     to always fail with ENOSYS.  Some functions are actually named
30139     something starting with __ and the normal name is an alias.  */
30140 #if defined __stub_$ac_func || defined __stub___$ac_func
30141 choke me
30142 #endif
30143
30144 int
30145 main ()
30146 {
30147 return $ac_func ();
30148   ;
30149   return 0;
30150 }
30151 _ACEOF
30152 rm -f conftest.$ac_objext conftest$ac_exeext
30153 if { (ac_try="$ac_link"
30154 case "(($ac_try" in
30155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156   *) ac_try_echo=$ac_try;;
30157 esac
30158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30159 $as_echo "$ac_try_echo") >&5
30160   (eval "$ac_link") 2>conftest.er1
30161   ac_status=$?
30162   grep -v '^ *+' conftest.er1 >conftest.err
30163   rm -f conftest.er1
30164   cat conftest.err >&5
30165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); } && {
30167          test -z "$ac_c_werror_flag" ||
30168          test ! -s conftest.err
30169        } && test -s conftest$ac_exeext && {
30170          test "$cross_compiling" = yes ||
30171          $as_test_x conftest$ac_exeext
30172        }; then
30173   eval "$as_ac_var=yes"
30174 else
30175   $as_echo "$as_me: failed program was:" >&5
30176 sed 's/^/| /' conftest.$ac_ext >&5
30177
30178         eval "$as_ac_var=no"
30179 fi
30180
30181 rm -rf conftest.dSYM
30182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30183       conftest$ac_exeext conftest.$ac_ext
30184 fi
30185 ac_res=`eval 'as_val=${'$as_ac_var'}
30186                  $as_echo "$as_val"'`
30187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30188 $as_echo "$ac_res" >&6; }
30189 as_val=`eval 'as_val=${'$as_ac_var'}
30190                  $as_echo "$as_val"'`
30191    if test "x$as_val" = x""yes; then
30192   cat >>confdefs.h <<_ACEOF
30193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30194 _ACEOF
30195
30196 fi
30197 done
30198
30199
30200
30201 # The cast to long int works around a bug in the HP C Compiler
30202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30204 # This bug is HP SR number 8606223364.
30205 { $as_echo "$as_me:$LINENO: checking size of short" >&5
30206 $as_echo_n "checking size of short... " >&6; }
30207 if test "${ac_cv_sizeof_short+set}" = set; then
30208   $as_echo_n "(cached) " >&6
30209 else
30210   if test "$cross_compiling" = yes; then
30211   # Depending upon the size, compute the lo and hi bounds.
30212 cat >conftest.$ac_ext <<_ACEOF
30213 /* confdefs.h.  */
30214 _ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h.  */
30218 $ac_includes_default
30219 int
30220 main ()
30221 {
30222 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
30223 test_array [0] = 0
30224
30225   ;
30226   return 0;
30227 }
30228 _ACEOF
30229 rm -f conftest.$ac_objext
30230 if { (ac_try="$ac_compile"
30231 case "(($ac_try" in
30232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30233   *) ac_try_echo=$ac_try;;
30234 esac
30235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30236 $as_echo "$ac_try_echo") >&5
30237   (eval "$ac_compile") 2>conftest.er1
30238   ac_status=$?
30239   grep -v '^ *+' conftest.er1 >conftest.err
30240   rm -f conftest.er1
30241   cat conftest.err >&5
30242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); } && {
30244          test -z "$ac_c_werror_flag" ||
30245          test ! -s conftest.err
30246        } && test -s conftest.$ac_objext; then
30247   ac_lo=0 ac_mid=0
30248   while :; do
30249     cat >conftest.$ac_ext <<_ACEOF
30250 /* confdefs.h.  */
30251 _ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h.  */
30255 $ac_includes_default
30256 int
30257 main ()
30258 {
30259 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
30260 test_array [0] = 0
30261
30262   ;
30263   return 0;
30264 }
30265 _ACEOF
30266 rm -f conftest.$ac_objext
30267 if { (ac_try="$ac_compile"
30268 case "(($ac_try" in
30269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270   *) ac_try_echo=$ac_try;;
30271 esac
30272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30273 $as_echo "$ac_try_echo") >&5
30274   (eval "$ac_compile") 2>conftest.er1
30275   ac_status=$?
30276   grep -v '^ *+' conftest.er1 >conftest.err
30277   rm -f conftest.er1
30278   cat conftest.err >&5
30279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280   (exit $ac_status); } && {
30281          test -z "$ac_c_werror_flag" ||
30282          test ! -s conftest.err
30283        } && test -s conftest.$ac_objext; then
30284   ac_hi=$ac_mid; break
30285 else
30286   $as_echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30288
30289         ac_lo=`expr $ac_mid + 1`
30290                         if test $ac_lo -le $ac_mid; then
30291                           ac_lo= ac_hi=
30292                           break
30293                         fi
30294                         ac_mid=`expr 2 '*' $ac_mid + 1`
30295 fi
30296
30297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30298   done
30299 else
30300   $as_echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303         cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309 $ac_includes_default
30310 int
30311 main ()
30312 {
30313 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
30314 test_array [0] = 0
30315
30316   ;
30317   return 0;
30318 }
30319 _ACEOF
30320 rm -f conftest.$ac_objext
30321 if { (ac_try="$ac_compile"
30322 case "(($ac_try" in
30323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324   *) ac_try_echo=$ac_try;;
30325 esac
30326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30327 $as_echo "$ac_try_echo") >&5
30328   (eval "$ac_compile") 2>conftest.er1
30329   ac_status=$?
30330   grep -v '^ *+' conftest.er1 >conftest.err
30331   rm -f conftest.er1
30332   cat conftest.err >&5
30333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334   (exit $ac_status); } && {
30335          test -z "$ac_c_werror_flag" ||
30336          test ! -s conftest.err
30337        } && test -s conftest.$ac_objext; then
30338   ac_hi=-1 ac_mid=-1
30339   while :; do
30340     cat >conftest.$ac_ext <<_ACEOF
30341 /* confdefs.h.  */
30342 _ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h.  */
30346 $ac_includes_default
30347 int
30348 main ()
30349 {
30350 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
30351 test_array [0] = 0
30352
30353   ;
30354   return 0;
30355 }
30356 _ACEOF
30357 rm -f conftest.$ac_objext
30358 if { (ac_try="$ac_compile"
30359 case "(($ac_try" in
30360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361   *) ac_try_echo=$ac_try;;
30362 esac
30363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30364 $as_echo "$ac_try_echo") >&5
30365   (eval "$ac_compile") 2>conftest.er1
30366   ac_status=$?
30367   grep -v '^ *+' conftest.er1 >conftest.err
30368   rm -f conftest.er1
30369   cat conftest.err >&5
30370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); } && {
30372          test -z "$ac_c_werror_flag" ||
30373          test ! -s conftest.err
30374        } && test -s conftest.$ac_objext; then
30375   ac_lo=$ac_mid; break
30376 else
30377   $as_echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30379
30380         ac_hi=`expr '(' $ac_mid ')' - 1`
30381                         if test $ac_mid -le $ac_hi; then
30382                           ac_lo= ac_hi=
30383                           break
30384                         fi
30385                         ac_mid=`expr 2 '*' $ac_mid`
30386 fi
30387
30388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30389   done
30390 else
30391   $as_echo "$as_me: failed program was:" >&5
30392 sed 's/^/| /' conftest.$ac_ext >&5
30393
30394         ac_lo= ac_hi=
30395 fi
30396
30397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30398 fi
30399
30400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30401 # Binary search between lo and hi bounds.
30402 while test "x$ac_lo" != "x$ac_hi"; do
30403   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30404   cat >conftest.$ac_ext <<_ACEOF
30405 /* confdefs.h.  */
30406 _ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h.  */
30410 $ac_includes_default
30411 int
30412 main ()
30413 {
30414 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
30415 test_array [0] = 0
30416
30417   ;
30418   return 0;
30419 }
30420 _ACEOF
30421 rm -f conftest.$ac_objext
30422 if { (ac_try="$ac_compile"
30423 case "(($ac_try" in
30424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425   *) ac_try_echo=$ac_try;;
30426 esac
30427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30428 $as_echo "$ac_try_echo") >&5
30429   (eval "$ac_compile") 2>conftest.er1
30430   ac_status=$?
30431   grep -v '^ *+' conftest.er1 >conftest.err
30432   rm -f conftest.er1
30433   cat conftest.err >&5
30434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435   (exit $ac_status); } && {
30436          test -z "$ac_c_werror_flag" ||
30437          test ! -s conftest.err
30438        } && test -s conftest.$ac_objext; then
30439   ac_hi=$ac_mid
30440 else
30441   $as_echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30443
30444         ac_lo=`expr '(' $ac_mid ')' + 1`
30445 fi
30446
30447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30448 done
30449 case $ac_lo in
30450 ?*) ac_cv_sizeof_short=$ac_lo;;
30451 '') if test "$ac_cv_type_short" = yes; then
30452      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30454 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
30455 See \`config.log' for more details." >&5
30456 $as_echo "$as_me: error: cannot compute sizeof (short)
30457 See \`config.log' for more details." >&2;}
30458    { (exit 77); exit 77; }; }; }
30459    else
30460      ac_cv_sizeof_short=0
30461    fi ;;
30462 esac
30463 else
30464   cat >conftest.$ac_ext <<_ACEOF
30465 /* confdefs.h.  */
30466 _ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h.  */
30470 $ac_includes_default
30471 static long int longval () { return (long int) (sizeof (short)); }
30472 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
30473 #include <stdio.h>
30474 #include <stdlib.h>
30475 int
30476 main ()
30477 {
30478
30479   FILE *f = fopen ("conftest.val", "w");
30480   if (! f)
30481     return 1;
30482   if (((long int) (sizeof (short))) < 0)
30483     {
30484       long int i = longval ();
30485       if (i != ((long int) (sizeof (short))))
30486         return 1;
30487       fprintf (f, "%ld", i);
30488     }
30489   else
30490     {
30491       unsigned long int i = ulongval ();
30492       if (i != ((long int) (sizeof (short))))
30493         return 1;
30494       fprintf (f, "%lu", i);
30495     }
30496   /* Do not output a trailing newline, as this causes \r\n confusion
30497      on some platforms.  */
30498   return ferror (f) || fclose (f) != 0;
30499
30500   ;
30501   return 0;
30502 }
30503 _ACEOF
30504 rm -f conftest$ac_exeext
30505 if { (ac_try="$ac_link"
30506 case "(($ac_try" in
30507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30508   *) ac_try_echo=$ac_try;;
30509 esac
30510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30511 $as_echo "$ac_try_echo") >&5
30512   (eval "$ac_link") 2>&5
30513   ac_status=$?
30514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30516   { (case "(($ac_try" in
30517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518   *) ac_try_echo=$ac_try;;
30519 esac
30520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30521 $as_echo "$ac_try_echo") >&5
30522   (eval "$ac_try") 2>&5
30523   ac_status=$?
30524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); }; }; then
30526   ac_cv_sizeof_short=`cat conftest.val`
30527 else
30528   $as_echo "$as_me: program exited with status $ac_status" >&5
30529 $as_echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30531
30532 ( exit $ac_status )
30533 if test "$ac_cv_type_short" = yes; then
30534      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30536 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
30537 See \`config.log' for more details." >&5
30538 $as_echo "$as_me: error: cannot compute sizeof (short)
30539 See \`config.log' for more details." >&2;}
30540    { (exit 77); exit 77; }; }; }
30541    else
30542      ac_cv_sizeof_short=0
30543    fi
30544 fi
30545 rm -rf conftest.dSYM
30546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30547 fi
30548 rm -f conftest.val
30549 fi
30550 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
30551 $as_echo "$ac_cv_sizeof_short" >&6; }
30552
30553
30554
30555 cat >>confdefs.h <<_ACEOF
30556 #define SIZEOF_SHORT $ac_cv_sizeof_short
30557 _ACEOF
30558
30559
30560 # The cast to long int works around a bug in the HP C Compiler
30561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30563 # This bug is HP SR number 8606223364.
30564 { $as_echo "$as_me:$LINENO: checking size of int" >&5
30565 $as_echo_n "checking size of int... " >&6; }
30566 if test "${ac_cv_sizeof_int+set}" = set; then
30567   $as_echo_n "(cached) " >&6
30568 else
30569   if test "$cross_compiling" = yes; then
30570   # Depending upon the size, compute the lo and hi bounds.
30571 cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h.  */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h.  */
30577 $ac_includes_default
30578 int
30579 main ()
30580 {
30581 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
30582 test_array [0] = 0
30583
30584   ;
30585   return 0;
30586 }
30587 _ACEOF
30588 rm -f conftest.$ac_objext
30589 if { (ac_try="$ac_compile"
30590 case "(($ac_try" in
30591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592   *) ac_try_echo=$ac_try;;
30593 esac
30594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30595 $as_echo "$ac_try_echo") >&5
30596   (eval "$ac_compile") 2>conftest.er1
30597   ac_status=$?
30598   grep -v '^ *+' conftest.er1 >conftest.err
30599   rm -f conftest.er1
30600   cat conftest.err >&5
30601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602   (exit $ac_status); } && {
30603          test -z "$ac_c_werror_flag" ||
30604          test ! -s conftest.err
30605        } && test -s conftest.$ac_objext; then
30606   ac_lo=0 ac_mid=0
30607   while :; do
30608     cat >conftest.$ac_ext <<_ACEOF
30609 /* confdefs.h.  */
30610 _ACEOF
30611 cat confdefs.h >>conftest.$ac_ext
30612 cat >>conftest.$ac_ext <<_ACEOF
30613 /* end confdefs.h.  */
30614 $ac_includes_default
30615 int
30616 main ()
30617 {
30618 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
30619 test_array [0] = 0
30620
30621   ;
30622   return 0;
30623 }
30624 _ACEOF
30625 rm -f conftest.$ac_objext
30626 if { (ac_try="$ac_compile"
30627 case "(($ac_try" in
30628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629   *) ac_try_echo=$ac_try;;
30630 esac
30631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30632 $as_echo "$ac_try_echo") >&5
30633   (eval "$ac_compile") 2>conftest.er1
30634   ac_status=$?
30635   grep -v '^ *+' conftest.er1 >conftest.err
30636   rm -f conftest.er1
30637   cat conftest.err >&5
30638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639   (exit $ac_status); } && {
30640          test -z "$ac_c_werror_flag" ||
30641          test ! -s conftest.err
30642        } && test -s conftest.$ac_objext; then
30643   ac_hi=$ac_mid; break
30644 else
30645   $as_echo "$as_me: failed program was:" >&5
30646 sed 's/^/| /' conftest.$ac_ext >&5
30647
30648         ac_lo=`expr $ac_mid + 1`
30649                         if test $ac_lo -le $ac_mid; then
30650                           ac_lo= ac_hi=
30651                           break
30652                         fi
30653                         ac_mid=`expr 2 '*' $ac_mid + 1`
30654 fi
30655
30656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30657   done
30658 else
30659   $as_echo "$as_me: failed program was:" >&5
30660 sed 's/^/| /' conftest.$ac_ext >&5
30661
30662         cat >conftest.$ac_ext <<_ACEOF
30663 /* confdefs.h.  */
30664 _ACEOF
30665 cat confdefs.h >>conftest.$ac_ext
30666 cat >>conftest.$ac_ext <<_ACEOF
30667 /* end confdefs.h.  */
30668 $ac_includes_default
30669 int
30670 main ()
30671 {
30672 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
30673 test_array [0] = 0
30674
30675   ;
30676   return 0;
30677 }
30678 _ACEOF
30679 rm -f conftest.$ac_objext
30680 if { (ac_try="$ac_compile"
30681 case "(($ac_try" in
30682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683   *) ac_try_echo=$ac_try;;
30684 esac
30685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30686 $as_echo "$ac_try_echo") >&5
30687   (eval "$ac_compile") 2>conftest.er1
30688   ac_status=$?
30689   grep -v '^ *+' conftest.er1 >conftest.err
30690   rm -f conftest.er1
30691   cat conftest.err >&5
30692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); } && {
30694          test -z "$ac_c_werror_flag" ||
30695          test ! -s conftest.err
30696        } && test -s conftest.$ac_objext; then
30697   ac_hi=-1 ac_mid=-1
30698   while :; do
30699     cat >conftest.$ac_ext <<_ACEOF
30700 /* confdefs.h.  */
30701 _ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h.  */
30705 $ac_includes_default
30706 int
30707 main ()
30708 {
30709 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
30710 test_array [0] = 0
30711
30712   ;
30713   return 0;
30714 }
30715 _ACEOF
30716 rm -f conftest.$ac_objext
30717 if { (ac_try="$ac_compile"
30718 case "(($ac_try" in
30719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30720   *) ac_try_echo=$ac_try;;
30721 esac
30722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30723 $as_echo "$ac_try_echo") >&5
30724   (eval "$ac_compile") 2>conftest.er1
30725   ac_status=$?
30726   grep -v '^ *+' conftest.er1 >conftest.err
30727   rm -f conftest.er1
30728   cat conftest.err >&5
30729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); } && {
30731          test -z "$ac_c_werror_flag" ||
30732          test ! -s conftest.err
30733        } && test -s conftest.$ac_objext; then
30734   ac_lo=$ac_mid; break
30735 else
30736   $as_echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.$ac_ext >&5
30738
30739         ac_hi=`expr '(' $ac_mid ')' - 1`
30740                         if test $ac_mid -le $ac_hi; then
30741                           ac_lo= ac_hi=
30742                           break
30743                         fi
30744                         ac_mid=`expr 2 '*' $ac_mid`
30745 fi
30746
30747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30748   done
30749 else
30750   $as_echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30752
30753         ac_lo= ac_hi=
30754 fi
30755
30756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30757 fi
30758
30759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30760 # Binary search between lo and hi bounds.
30761 while test "x$ac_lo" != "x$ac_hi"; do
30762   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30763   cat >conftest.$ac_ext <<_ACEOF
30764 /* confdefs.h.  */
30765 _ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h.  */
30769 $ac_includes_default
30770 int
30771 main ()
30772 {
30773 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
30774 test_array [0] = 0
30775
30776   ;
30777   return 0;
30778 }
30779 _ACEOF
30780 rm -f conftest.$ac_objext
30781 if { (ac_try="$ac_compile"
30782 case "(($ac_try" in
30783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784   *) ac_try_echo=$ac_try;;
30785 esac
30786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30787 $as_echo "$ac_try_echo") >&5
30788   (eval "$ac_compile") 2>conftest.er1
30789   ac_status=$?
30790   grep -v '^ *+' conftest.er1 >conftest.err
30791   rm -f conftest.er1
30792   cat conftest.err >&5
30793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); } && {
30795          test -z "$ac_c_werror_flag" ||
30796          test ! -s conftest.err
30797        } && test -s conftest.$ac_objext; then
30798   ac_hi=$ac_mid
30799 else
30800   $as_echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803         ac_lo=`expr '(' $ac_mid ')' + 1`
30804 fi
30805
30806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30807 done
30808 case $ac_lo in
30809 ?*) ac_cv_sizeof_int=$ac_lo;;
30810 '') if test "$ac_cv_type_int" = yes; then
30811      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30813 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
30814 See \`config.log' for more details." >&5
30815 $as_echo "$as_me: error: cannot compute sizeof (int)
30816 See \`config.log' for more details." >&2;}
30817    { (exit 77); exit 77; }; }; }
30818    else
30819      ac_cv_sizeof_int=0
30820    fi ;;
30821 esac
30822 else
30823   cat >conftest.$ac_ext <<_ACEOF
30824 /* confdefs.h.  */
30825 _ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h.  */
30829 $ac_includes_default
30830 static long int longval () { return (long int) (sizeof (int)); }
30831 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
30832 #include <stdio.h>
30833 #include <stdlib.h>
30834 int
30835 main ()
30836 {
30837
30838   FILE *f = fopen ("conftest.val", "w");
30839   if (! f)
30840     return 1;
30841   if (((long int) (sizeof (int))) < 0)
30842     {
30843       long int i = longval ();
30844       if (i != ((long int) (sizeof (int))))
30845         return 1;
30846       fprintf (f, "%ld", i);
30847     }
30848   else
30849     {
30850       unsigned long int i = ulongval ();
30851       if (i != ((long int) (sizeof (int))))
30852         return 1;
30853       fprintf (f, "%lu", i);
30854     }
30855   /* Do not output a trailing newline, as this causes \r\n confusion
30856      on some platforms.  */
30857   return ferror (f) || fclose (f) != 0;
30858
30859   ;
30860   return 0;
30861 }
30862 _ACEOF
30863 rm -f conftest$ac_exeext
30864 if { (ac_try="$ac_link"
30865 case "(($ac_try" in
30866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867   *) ac_try_echo=$ac_try;;
30868 esac
30869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30870 $as_echo "$ac_try_echo") >&5
30871   (eval "$ac_link") 2>&5
30872   ac_status=$?
30873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30875   { (case "(($ac_try" in
30876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877   *) ac_try_echo=$ac_try;;
30878 esac
30879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30880 $as_echo "$ac_try_echo") >&5
30881   (eval "$ac_try") 2>&5
30882   ac_status=$?
30883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884   (exit $ac_status); }; }; then
30885   ac_cv_sizeof_int=`cat conftest.val`
30886 else
30887   $as_echo "$as_me: program exited with status $ac_status" >&5
30888 $as_echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30890
30891 ( exit $ac_status )
30892 if test "$ac_cv_type_int" = yes; then
30893      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30895 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
30896 See \`config.log' for more details." >&5
30897 $as_echo "$as_me: error: cannot compute sizeof (int)
30898 See \`config.log' for more details." >&2;}
30899    { (exit 77); exit 77; }; }; }
30900    else
30901      ac_cv_sizeof_int=0
30902    fi
30903 fi
30904 rm -rf conftest.dSYM
30905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30906 fi
30907 rm -f conftest.val
30908 fi
30909 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
30910 $as_echo "$ac_cv_sizeof_int" >&6; }
30911
30912
30913
30914 cat >>confdefs.h <<_ACEOF
30915 #define SIZEOF_INT $ac_cv_sizeof_int
30916 _ACEOF
30917
30918
30919 # The cast to long int works around a bug in the HP C Compiler
30920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30922 # This bug is HP SR number 8606223364.
30923 { $as_echo "$as_me:$LINENO: checking size of long" >&5
30924 $as_echo_n "checking size of long... " >&6; }
30925 if test "${ac_cv_sizeof_long+set}" = set; then
30926   $as_echo_n "(cached) " >&6
30927 else
30928   if test "$cross_compiling" = yes; then
30929   # Depending upon the size, compute the lo and hi bounds.
30930 cat >conftest.$ac_ext <<_ACEOF
30931 /* confdefs.h.  */
30932 _ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h.  */
30936 $ac_includes_default
30937 int
30938 main ()
30939 {
30940 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
30941 test_array [0] = 0
30942
30943   ;
30944   return 0;
30945 }
30946 _ACEOF
30947 rm -f conftest.$ac_objext
30948 if { (ac_try="$ac_compile"
30949 case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30954 $as_echo "$ac_try_echo") >&5
30955   (eval "$ac_compile") 2>conftest.er1
30956   ac_status=$?
30957   grep -v '^ *+' conftest.er1 >conftest.err
30958   rm -f conftest.er1
30959   cat conftest.err >&5
30960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961   (exit $ac_status); } && {
30962          test -z "$ac_c_werror_flag" ||
30963          test ! -s conftest.err
30964        } && test -s conftest.$ac_objext; then
30965   ac_lo=0 ac_mid=0
30966   while :; do
30967     cat >conftest.$ac_ext <<_ACEOF
30968 /* confdefs.h.  */
30969 _ACEOF
30970 cat confdefs.h >>conftest.$ac_ext
30971 cat >>conftest.$ac_ext <<_ACEOF
30972 /* end confdefs.h.  */
30973 $ac_includes_default
30974 int
30975 main ()
30976 {
30977 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
30978 test_array [0] = 0
30979
30980   ;
30981   return 0;
30982 }
30983 _ACEOF
30984 rm -f conftest.$ac_objext
30985 if { (ac_try="$ac_compile"
30986 case "(($ac_try" in
30987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988   *) ac_try_echo=$ac_try;;
30989 esac
30990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30991 $as_echo "$ac_try_echo") >&5
30992   (eval "$ac_compile") 2>conftest.er1
30993   ac_status=$?
30994   grep -v '^ *+' conftest.er1 >conftest.err
30995   rm -f conftest.er1
30996   cat conftest.err >&5
30997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998   (exit $ac_status); } && {
30999          test -z "$ac_c_werror_flag" ||
31000          test ! -s conftest.err
31001        } && test -s conftest.$ac_objext; then
31002   ac_hi=$ac_mid; break
31003 else
31004   $as_echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31006
31007         ac_lo=`expr $ac_mid + 1`
31008                         if test $ac_lo -le $ac_mid; then
31009                           ac_lo= ac_hi=
31010                           break
31011                         fi
31012                         ac_mid=`expr 2 '*' $ac_mid + 1`
31013 fi
31014
31015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31016   done
31017 else
31018   $as_echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31020
31021         cat >conftest.$ac_ext <<_ACEOF
31022 /* confdefs.h.  */
31023 _ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h.  */
31027 $ac_includes_default
31028 int
31029 main ()
31030 {
31031 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
31032 test_array [0] = 0
31033
31034   ;
31035   return 0;
31036 }
31037 _ACEOF
31038 rm -f conftest.$ac_objext
31039 if { (ac_try="$ac_compile"
31040 case "(($ac_try" in
31041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042   *) ac_try_echo=$ac_try;;
31043 esac
31044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31045 $as_echo "$ac_try_echo") >&5
31046   (eval "$ac_compile") 2>conftest.er1
31047   ac_status=$?
31048   grep -v '^ *+' conftest.er1 >conftest.err
31049   rm -f conftest.er1
31050   cat conftest.err >&5
31051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052   (exit $ac_status); } && {
31053          test -z "$ac_c_werror_flag" ||
31054          test ! -s conftest.err
31055        } && test -s conftest.$ac_objext; then
31056   ac_hi=-1 ac_mid=-1
31057   while :; do
31058     cat >conftest.$ac_ext <<_ACEOF
31059 /* confdefs.h.  */
31060 _ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h.  */
31064 $ac_includes_default
31065 int
31066 main ()
31067 {
31068 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
31069 test_array [0] = 0
31070
31071   ;
31072   return 0;
31073 }
31074 _ACEOF
31075 rm -f conftest.$ac_objext
31076 if { (ac_try="$ac_compile"
31077 case "(($ac_try" in
31078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079   *) ac_try_echo=$ac_try;;
31080 esac
31081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31082 $as_echo "$ac_try_echo") >&5
31083   (eval "$ac_compile") 2>conftest.er1
31084   ac_status=$?
31085   grep -v '^ *+' conftest.er1 >conftest.err
31086   rm -f conftest.er1
31087   cat conftest.err >&5
31088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); } && {
31090          test -z "$ac_c_werror_flag" ||
31091          test ! -s conftest.err
31092        } && test -s conftest.$ac_objext; then
31093   ac_lo=$ac_mid; break
31094 else
31095   $as_echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31097
31098         ac_hi=`expr '(' $ac_mid ')' - 1`
31099                         if test $ac_mid -le $ac_hi; then
31100                           ac_lo= ac_hi=
31101                           break
31102                         fi
31103                         ac_mid=`expr 2 '*' $ac_mid`
31104 fi
31105
31106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31107   done
31108 else
31109   $as_echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31111
31112         ac_lo= ac_hi=
31113 fi
31114
31115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31116 fi
31117
31118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31119 # Binary search between lo and hi bounds.
31120 while test "x$ac_lo" != "x$ac_hi"; do
31121   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31122   cat >conftest.$ac_ext <<_ACEOF
31123 /* confdefs.h.  */
31124 _ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h.  */
31128 $ac_includes_default
31129 int
31130 main ()
31131 {
31132 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
31133 test_array [0] = 0
31134
31135   ;
31136   return 0;
31137 }
31138 _ACEOF
31139 rm -f conftest.$ac_objext
31140 if { (ac_try="$ac_compile"
31141 case "(($ac_try" in
31142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143   *) ac_try_echo=$ac_try;;
31144 esac
31145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31146 $as_echo "$ac_try_echo") >&5
31147   (eval "$ac_compile") 2>conftest.er1
31148   ac_status=$?
31149   grep -v '^ *+' conftest.er1 >conftest.err
31150   rm -f conftest.er1
31151   cat conftest.err >&5
31152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); } && {
31154          test -z "$ac_c_werror_flag" ||
31155          test ! -s conftest.err
31156        } && test -s conftest.$ac_objext; then
31157   ac_hi=$ac_mid
31158 else
31159   $as_echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31161
31162         ac_lo=`expr '(' $ac_mid ')' + 1`
31163 fi
31164
31165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31166 done
31167 case $ac_lo in
31168 ?*) ac_cv_sizeof_long=$ac_lo;;
31169 '') if test "$ac_cv_type_long" = yes; then
31170      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31172 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
31173 See \`config.log' for more details." >&5
31174 $as_echo "$as_me: error: cannot compute sizeof (long)
31175 See \`config.log' for more details." >&2;}
31176    { (exit 77); exit 77; }; }; }
31177    else
31178      ac_cv_sizeof_long=0
31179    fi ;;
31180 esac
31181 else
31182   cat >conftest.$ac_ext <<_ACEOF
31183 /* confdefs.h.  */
31184 _ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h.  */
31188 $ac_includes_default
31189 static long int longval () { return (long int) (sizeof (long)); }
31190 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
31191 #include <stdio.h>
31192 #include <stdlib.h>
31193 int
31194 main ()
31195 {
31196
31197   FILE *f = fopen ("conftest.val", "w");
31198   if (! f)
31199     return 1;
31200   if (((long int) (sizeof (long))) < 0)
31201     {
31202       long int i = longval ();
31203       if (i != ((long int) (sizeof (long))))
31204         return 1;
31205       fprintf (f, "%ld", i);
31206     }
31207   else
31208     {
31209       unsigned long int i = ulongval ();
31210       if (i != ((long int) (sizeof (long))))
31211         return 1;
31212       fprintf (f, "%lu", i);
31213     }
31214   /* Do not output a trailing newline, as this causes \r\n confusion
31215      on some platforms.  */
31216   return ferror (f) || fclose (f) != 0;
31217
31218   ;
31219   return 0;
31220 }
31221 _ACEOF
31222 rm -f conftest$ac_exeext
31223 if { (ac_try="$ac_link"
31224 case "(($ac_try" in
31225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226   *) ac_try_echo=$ac_try;;
31227 esac
31228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31229 $as_echo "$ac_try_echo") >&5
31230   (eval "$ac_link") 2>&5
31231   ac_status=$?
31232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31234   { (case "(($ac_try" in
31235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236   *) ac_try_echo=$ac_try;;
31237 esac
31238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31239 $as_echo "$ac_try_echo") >&5
31240   (eval "$ac_try") 2>&5
31241   ac_status=$?
31242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243   (exit $ac_status); }; }; then
31244   ac_cv_sizeof_long=`cat conftest.val`
31245 else
31246   $as_echo "$as_me: program exited with status $ac_status" >&5
31247 $as_echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31249
31250 ( exit $ac_status )
31251 if test "$ac_cv_type_long" = yes; then
31252      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31254 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
31255 See \`config.log' for more details." >&5
31256 $as_echo "$as_me: error: cannot compute sizeof (long)
31257 See \`config.log' for more details." >&2;}
31258    { (exit 77); exit 77; }; }; }
31259    else
31260      ac_cv_sizeof_long=0
31261    fi
31262 fi
31263 rm -rf conftest.dSYM
31264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31265 fi
31266 rm -f conftest.val
31267 fi
31268 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
31269 $as_echo "$ac_cv_sizeof_long" >&6; }
31270
31271
31272
31273 cat >>confdefs.h <<_ACEOF
31274 #define SIZEOF_LONG $ac_cv_sizeof_long
31275 _ACEOF
31276
31277
31278 # The cast to long int works around a bug in the HP C Compiler
31279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31281 # This bug is HP SR number 8606223364.
31282 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
31283 $as_echo_n "checking size of size_t... " >&6; }
31284 if test "${ac_cv_sizeof_size_t+set}" = set; then
31285   $as_echo_n "(cached) " >&6
31286 else
31287   if test "$cross_compiling" = yes; then
31288   # Depending upon the size, compute the lo and hi bounds.
31289 cat >conftest.$ac_ext <<_ACEOF
31290 /* confdefs.h.  */
31291 _ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h.  */
31295 $ac_includes_default
31296 int
31297 main ()
31298 {
31299 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
31300 test_array [0] = 0
31301
31302   ;
31303   return 0;
31304 }
31305 _ACEOF
31306 rm -f conftest.$ac_objext
31307 if { (ac_try="$ac_compile"
31308 case "(($ac_try" in
31309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310   *) ac_try_echo=$ac_try;;
31311 esac
31312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31313 $as_echo "$ac_try_echo") >&5
31314   (eval "$ac_compile") 2>conftest.er1
31315   ac_status=$?
31316   grep -v '^ *+' conftest.er1 >conftest.err
31317   rm -f conftest.er1
31318   cat conftest.err >&5
31319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320   (exit $ac_status); } && {
31321          test -z "$ac_c_werror_flag" ||
31322          test ! -s conftest.err
31323        } && test -s conftest.$ac_objext; then
31324   ac_lo=0 ac_mid=0
31325   while :; do
31326     cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332 $ac_includes_default
31333 int
31334 main ()
31335 {
31336 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
31337 test_array [0] = 0
31338
31339   ;
31340   return 0;
31341 }
31342 _ACEOF
31343 rm -f conftest.$ac_objext
31344 if { (ac_try="$ac_compile"
31345 case "(($ac_try" in
31346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347   *) ac_try_echo=$ac_try;;
31348 esac
31349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31350 $as_echo "$ac_try_echo") >&5
31351   (eval "$ac_compile") 2>conftest.er1
31352   ac_status=$?
31353   grep -v '^ *+' conftest.er1 >conftest.err
31354   rm -f conftest.er1
31355   cat conftest.err >&5
31356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); } && {
31358          test -z "$ac_c_werror_flag" ||
31359          test ! -s conftest.err
31360        } && test -s conftest.$ac_objext; then
31361   ac_hi=$ac_mid; break
31362 else
31363   $as_echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31365
31366         ac_lo=`expr $ac_mid + 1`
31367                         if test $ac_lo -le $ac_mid; then
31368                           ac_lo= ac_hi=
31369                           break
31370                         fi
31371                         ac_mid=`expr 2 '*' $ac_mid + 1`
31372 fi
31373
31374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31375   done
31376 else
31377   $as_echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.$ac_ext >&5
31379
31380         cat >conftest.$ac_ext <<_ACEOF
31381 /* confdefs.h.  */
31382 _ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h.  */
31386 $ac_includes_default
31387 int
31388 main ()
31389 {
31390 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
31391 test_array [0] = 0
31392
31393   ;
31394   return 0;
31395 }
31396 _ACEOF
31397 rm -f conftest.$ac_objext
31398 if { (ac_try="$ac_compile"
31399 case "(($ac_try" in
31400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401   *) ac_try_echo=$ac_try;;
31402 esac
31403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31404 $as_echo "$ac_try_echo") >&5
31405   (eval "$ac_compile") 2>conftest.er1
31406   ac_status=$?
31407   grep -v '^ *+' conftest.er1 >conftest.err
31408   rm -f conftest.er1
31409   cat conftest.err >&5
31410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411   (exit $ac_status); } && {
31412          test -z "$ac_c_werror_flag" ||
31413          test ! -s conftest.err
31414        } && test -s conftest.$ac_objext; then
31415   ac_hi=-1 ac_mid=-1
31416   while :; do
31417     cat >conftest.$ac_ext <<_ACEOF
31418 /* confdefs.h.  */
31419 _ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h.  */
31423 $ac_includes_default
31424 int
31425 main ()
31426 {
31427 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
31428 test_array [0] = 0
31429
31430   ;
31431   return 0;
31432 }
31433 _ACEOF
31434 rm -f conftest.$ac_objext
31435 if { (ac_try="$ac_compile"
31436 case "(($ac_try" in
31437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438   *) ac_try_echo=$ac_try;;
31439 esac
31440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31441 $as_echo "$ac_try_echo") >&5
31442   (eval "$ac_compile") 2>conftest.er1
31443   ac_status=$?
31444   grep -v '^ *+' conftest.er1 >conftest.err
31445   rm -f conftest.er1
31446   cat conftest.err >&5
31447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); } && {
31449          test -z "$ac_c_werror_flag" ||
31450          test ! -s conftest.err
31451        } && test -s conftest.$ac_objext; then
31452   ac_lo=$ac_mid; break
31453 else
31454   $as_echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.$ac_ext >&5
31456
31457         ac_hi=`expr '(' $ac_mid ')' - 1`
31458                         if test $ac_mid -le $ac_hi; then
31459                           ac_lo= ac_hi=
31460                           break
31461                         fi
31462                         ac_mid=`expr 2 '*' $ac_mid`
31463 fi
31464
31465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31466   done
31467 else
31468   $as_echo "$as_me: failed program was:" >&5
31469 sed 's/^/| /' conftest.$ac_ext >&5
31470
31471         ac_lo= ac_hi=
31472 fi
31473
31474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31475 fi
31476
31477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31478 # Binary search between lo and hi bounds.
31479 while test "x$ac_lo" != "x$ac_hi"; do
31480   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31481   cat >conftest.$ac_ext <<_ACEOF
31482 /* confdefs.h.  */
31483 _ACEOF
31484 cat confdefs.h >>conftest.$ac_ext
31485 cat >>conftest.$ac_ext <<_ACEOF
31486 /* end confdefs.h.  */
31487 $ac_includes_default
31488 int
31489 main ()
31490 {
31491 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
31492 test_array [0] = 0
31493
31494   ;
31495   return 0;
31496 }
31497 _ACEOF
31498 rm -f conftest.$ac_objext
31499 if { (ac_try="$ac_compile"
31500 case "(($ac_try" in
31501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502   *) ac_try_echo=$ac_try;;
31503 esac
31504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31505 $as_echo "$ac_try_echo") >&5
31506   (eval "$ac_compile") 2>conftest.er1
31507   ac_status=$?
31508   grep -v '^ *+' conftest.er1 >conftest.err
31509   rm -f conftest.er1
31510   cat conftest.err >&5
31511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512   (exit $ac_status); } && {
31513          test -z "$ac_c_werror_flag" ||
31514          test ! -s conftest.err
31515        } && test -s conftest.$ac_objext; then
31516   ac_hi=$ac_mid
31517 else
31518   $as_echo "$as_me: failed program was:" >&5
31519 sed 's/^/| /' conftest.$ac_ext >&5
31520
31521         ac_lo=`expr '(' $ac_mid ')' + 1`
31522 fi
31523
31524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31525 done
31526 case $ac_lo in
31527 ?*) ac_cv_sizeof_size_t=$ac_lo;;
31528 '') if test "$ac_cv_type_size_t" = yes; then
31529      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31531 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
31532 See \`config.log' for more details." >&5
31533 $as_echo "$as_me: error: cannot compute sizeof (size_t)
31534 See \`config.log' for more details." >&2;}
31535    { (exit 77); exit 77; }; }; }
31536    else
31537      ac_cv_sizeof_size_t=0
31538    fi ;;
31539 esac
31540 else
31541   cat >conftest.$ac_ext <<_ACEOF
31542 /* confdefs.h.  */
31543 _ACEOF
31544 cat confdefs.h >>conftest.$ac_ext
31545 cat >>conftest.$ac_ext <<_ACEOF
31546 /* end confdefs.h.  */
31547 $ac_includes_default
31548 static long int longval () { return (long int) (sizeof (size_t)); }
31549 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
31550 #include <stdio.h>
31551 #include <stdlib.h>
31552 int
31553 main ()
31554 {
31555
31556   FILE *f = fopen ("conftest.val", "w");
31557   if (! f)
31558     return 1;
31559   if (((long int) (sizeof (size_t))) < 0)
31560     {
31561       long int i = longval ();
31562       if (i != ((long int) (sizeof (size_t))))
31563         return 1;
31564       fprintf (f, "%ld", i);
31565     }
31566   else
31567     {
31568       unsigned long int i = ulongval ();
31569       if (i != ((long int) (sizeof (size_t))))
31570         return 1;
31571       fprintf (f, "%lu", i);
31572     }
31573   /* Do not output a trailing newline, as this causes \r\n confusion
31574      on some platforms.  */
31575   return ferror (f) || fclose (f) != 0;
31576
31577   ;
31578   return 0;
31579 }
31580 _ACEOF
31581 rm -f conftest$ac_exeext
31582 if { (ac_try="$ac_link"
31583 case "(($ac_try" in
31584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585   *) ac_try_echo=$ac_try;;
31586 esac
31587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31588 $as_echo "$ac_try_echo") >&5
31589   (eval "$ac_link") 2>&5
31590   ac_status=$?
31591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31593   { (case "(($ac_try" in
31594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595   *) ac_try_echo=$ac_try;;
31596 esac
31597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31598 $as_echo "$ac_try_echo") >&5
31599   (eval "$ac_try") 2>&5
31600   ac_status=$?
31601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602   (exit $ac_status); }; }; then
31603   ac_cv_sizeof_size_t=`cat conftest.val`
31604 else
31605   $as_echo "$as_me: program exited with status $ac_status" >&5
31606 $as_echo "$as_me: failed program was:" >&5
31607 sed 's/^/| /' conftest.$ac_ext >&5
31608
31609 ( exit $ac_status )
31610 if test "$ac_cv_type_size_t" = yes; then
31611      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31613 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
31614 See \`config.log' for more details." >&5
31615 $as_echo "$as_me: error: cannot compute sizeof (size_t)
31616 See \`config.log' for more details." >&2;}
31617    { (exit 77); exit 77; }; }; }
31618    else
31619      ac_cv_sizeof_size_t=0
31620    fi
31621 fi
31622 rm -rf conftest.dSYM
31623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31624 fi
31625 rm -f conftest.val
31626 fi
31627 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
31628 $as_echo "$ac_cv_sizeof_size_t" >&6; }
31629
31630
31631
31632 cat >>confdefs.h <<_ACEOF
31633 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
31634 _ACEOF
31635
31636
31637 # The cast to long int works around a bug in the HP C Compiler
31638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31640 # This bug is HP SR number 8606223364.
31641 { $as_echo "$as_me:$LINENO: checking size of socklen_t" >&5
31642 $as_echo_n "checking size of socklen_t... " >&6; }
31643 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
31644   $as_echo_n "(cached) " >&6
31645 else
31646   if test "$cross_compiling" = yes; then
31647   # Depending upon the size, compute the lo and hi bounds.
31648 cat >conftest.$ac_ext <<_ACEOF
31649 /* confdefs.h.  */
31650 _ACEOF
31651 cat confdefs.h >>conftest.$ac_ext
31652 cat >>conftest.$ac_ext <<_ACEOF
31653 /* end confdefs.h.  */
31654 $ac_includes_default
31655 int
31656 main ()
31657 {
31658 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= 0)];
31659 test_array [0] = 0
31660
31661   ;
31662   return 0;
31663 }
31664 _ACEOF
31665 rm -f conftest.$ac_objext
31666 if { (ac_try="$ac_compile"
31667 case "(($ac_try" in
31668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669   *) ac_try_echo=$ac_try;;
31670 esac
31671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31672 $as_echo "$ac_try_echo") >&5
31673   (eval "$ac_compile") 2>conftest.er1
31674   ac_status=$?
31675   grep -v '^ *+' conftest.er1 >conftest.err
31676   rm -f conftest.er1
31677   cat conftest.err >&5
31678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679   (exit $ac_status); } && {
31680          test -z "$ac_c_werror_flag" ||
31681          test ! -s conftest.err
31682        } && test -s conftest.$ac_objext; then
31683   ac_lo=0 ac_mid=0
31684   while :; do
31685     cat >conftest.$ac_ext <<_ACEOF
31686 /* confdefs.h.  */
31687 _ACEOF
31688 cat confdefs.h >>conftest.$ac_ext
31689 cat >>conftest.$ac_ext <<_ACEOF
31690 /* end confdefs.h.  */
31691 $ac_includes_default
31692 int
31693 main ()
31694 {
31695 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
31696 test_array [0] = 0
31697
31698   ;
31699   return 0;
31700 }
31701 _ACEOF
31702 rm -f conftest.$ac_objext
31703 if { (ac_try="$ac_compile"
31704 case "(($ac_try" in
31705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706   *) ac_try_echo=$ac_try;;
31707 esac
31708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31709 $as_echo "$ac_try_echo") >&5
31710   (eval "$ac_compile") 2>conftest.er1
31711   ac_status=$?
31712   grep -v '^ *+' conftest.er1 >conftest.err
31713   rm -f conftest.er1
31714   cat conftest.err >&5
31715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716   (exit $ac_status); } && {
31717          test -z "$ac_c_werror_flag" ||
31718          test ! -s conftest.err
31719        } && test -s conftest.$ac_objext; then
31720   ac_hi=$ac_mid; break
31721 else
31722   $as_echo "$as_me: failed program was:" >&5
31723 sed 's/^/| /' conftest.$ac_ext >&5
31724
31725         ac_lo=`expr $ac_mid + 1`
31726                         if test $ac_lo -le $ac_mid; then
31727                           ac_lo= ac_hi=
31728                           break
31729                         fi
31730                         ac_mid=`expr 2 '*' $ac_mid + 1`
31731 fi
31732
31733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31734   done
31735 else
31736   $as_echo "$as_me: failed program was:" >&5
31737 sed 's/^/| /' conftest.$ac_ext >&5
31738
31739         cat >conftest.$ac_ext <<_ACEOF
31740 /* confdefs.h.  */
31741 _ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h.  */
31745 $ac_includes_default
31746 int
31747 main ()
31748 {
31749 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) < 0)];
31750 test_array [0] = 0
31751
31752   ;
31753   return 0;
31754 }
31755 _ACEOF
31756 rm -f conftest.$ac_objext
31757 if { (ac_try="$ac_compile"
31758 case "(($ac_try" in
31759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760   *) ac_try_echo=$ac_try;;
31761 esac
31762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31763 $as_echo "$ac_try_echo") >&5
31764   (eval "$ac_compile") 2>conftest.er1
31765   ac_status=$?
31766   grep -v '^ *+' conftest.er1 >conftest.err
31767   rm -f conftest.er1
31768   cat conftest.err >&5
31769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770   (exit $ac_status); } && {
31771          test -z "$ac_c_werror_flag" ||
31772          test ! -s conftest.err
31773        } && test -s conftest.$ac_objext; then
31774   ac_hi=-1 ac_mid=-1
31775   while :; do
31776     cat >conftest.$ac_ext <<_ACEOF
31777 /* confdefs.h.  */
31778 _ACEOF
31779 cat confdefs.h >>conftest.$ac_ext
31780 cat >>conftest.$ac_ext <<_ACEOF
31781 /* end confdefs.h.  */
31782 $ac_includes_default
31783 int
31784 main ()
31785 {
31786 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= $ac_mid)];
31787 test_array [0] = 0
31788
31789   ;
31790   return 0;
31791 }
31792 _ACEOF
31793 rm -f conftest.$ac_objext
31794 if { (ac_try="$ac_compile"
31795 case "(($ac_try" in
31796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797   *) ac_try_echo=$ac_try;;
31798 esac
31799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31800 $as_echo "$ac_try_echo") >&5
31801   (eval "$ac_compile") 2>conftest.er1
31802   ac_status=$?
31803   grep -v '^ *+' conftest.er1 >conftest.err
31804   rm -f conftest.er1
31805   cat conftest.err >&5
31806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807   (exit $ac_status); } && {
31808          test -z "$ac_c_werror_flag" ||
31809          test ! -s conftest.err
31810        } && test -s conftest.$ac_objext; then
31811   ac_lo=$ac_mid; break
31812 else
31813   $as_echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.$ac_ext >&5
31815
31816         ac_hi=`expr '(' $ac_mid ')' - 1`
31817                         if test $ac_mid -le $ac_hi; then
31818                           ac_lo= ac_hi=
31819                           break
31820                         fi
31821                         ac_mid=`expr 2 '*' $ac_mid`
31822 fi
31823
31824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31825   done
31826 else
31827   $as_echo "$as_me: failed program was:" >&5
31828 sed 's/^/| /' conftest.$ac_ext >&5
31829
31830         ac_lo= ac_hi=
31831 fi
31832
31833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31834 fi
31835
31836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31837 # Binary search between lo and hi bounds.
31838 while test "x$ac_lo" != "x$ac_hi"; do
31839   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31840   cat >conftest.$ac_ext <<_ACEOF
31841 /* confdefs.h.  */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h.  */
31846 $ac_includes_default
31847 int
31848 main ()
31849 {
31850 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
31851 test_array [0] = 0
31852
31853   ;
31854   return 0;
31855 }
31856 _ACEOF
31857 rm -f conftest.$ac_objext
31858 if { (ac_try="$ac_compile"
31859 case "(($ac_try" in
31860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31861   *) ac_try_echo=$ac_try;;
31862 esac
31863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31864 $as_echo "$ac_try_echo") >&5
31865   (eval "$ac_compile") 2>conftest.er1
31866   ac_status=$?
31867   grep -v '^ *+' conftest.er1 >conftest.err
31868   rm -f conftest.er1
31869   cat conftest.err >&5
31870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871   (exit $ac_status); } && {
31872          test -z "$ac_c_werror_flag" ||
31873          test ! -s conftest.err
31874        } && test -s conftest.$ac_objext; then
31875   ac_hi=$ac_mid
31876 else
31877   $as_echo "$as_me: failed program was:" >&5
31878 sed 's/^/| /' conftest.$ac_ext >&5
31879
31880         ac_lo=`expr '(' $ac_mid ')' + 1`
31881 fi
31882
31883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31884 done
31885 case $ac_lo in
31886 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
31887 '') if test "$ac_cv_type_socklen_t" = yes; then
31888      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31890 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
31891 See \`config.log' for more details." >&5
31892 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
31893 See \`config.log' for more details." >&2;}
31894    { (exit 77); exit 77; }; }; }
31895    else
31896      ac_cv_sizeof_socklen_t=0
31897    fi ;;
31898 esac
31899 else
31900   cat >conftest.$ac_ext <<_ACEOF
31901 /* confdefs.h.  */
31902 _ACEOF
31903 cat confdefs.h >>conftest.$ac_ext
31904 cat >>conftest.$ac_ext <<_ACEOF
31905 /* end confdefs.h.  */
31906 $ac_includes_default
31907 static long int longval () { return (long int) (sizeof (socklen_t)); }
31908 static unsigned long int ulongval () { return (long int) (sizeof (socklen_t)); }
31909 #include <stdio.h>
31910 #include <stdlib.h>
31911 int
31912 main ()
31913 {
31914
31915   FILE *f = fopen ("conftest.val", "w");
31916   if (! f)
31917     return 1;
31918   if (((long int) (sizeof (socklen_t))) < 0)
31919     {
31920       long int i = longval ();
31921       if (i != ((long int) (sizeof (socklen_t))))
31922         return 1;
31923       fprintf (f, "%ld", i);
31924     }
31925   else
31926     {
31927       unsigned long int i = ulongval ();
31928       if (i != ((long int) (sizeof (socklen_t))))
31929         return 1;
31930       fprintf (f, "%lu", i);
31931     }
31932   /* Do not output a trailing newline, as this causes \r\n confusion
31933      on some platforms.  */
31934   return ferror (f) || fclose (f) != 0;
31935
31936   ;
31937   return 0;
31938 }
31939 _ACEOF
31940 rm -f conftest$ac_exeext
31941 if { (ac_try="$ac_link"
31942 case "(($ac_try" in
31943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944   *) ac_try_echo=$ac_try;;
31945 esac
31946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31947 $as_echo "$ac_try_echo") >&5
31948   (eval "$ac_link") 2>&5
31949   ac_status=$?
31950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31952   { (case "(($ac_try" in
31953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954   *) ac_try_echo=$ac_try;;
31955 esac
31956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31957 $as_echo "$ac_try_echo") >&5
31958   (eval "$ac_try") 2>&5
31959   ac_status=$?
31960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961   (exit $ac_status); }; }; then
31962   ac_cv_sizeof_socklen_t=`cat conftest.val`
31963 else
31964   $as_echo "$as_me: program exited with status $ac_status" >&5
31965 $as_echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31967
31968 ( exit $ac_status )
31969 if test "$ac_cv_type_socklen_t" = yes; then
31970      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31972 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
31973 See \`config.log' for more details." >&5
31974 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
31975 See \`config.log' for more details." >&2;}
31976    { (exit 77); exit 77; }; }; }
31977    else
31978      ac_cv_sizeof_socklen_t=0
31979    fi
31980 fi
31981 rm -rf conftest.dSYM
31982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31983 fi
31984 rm -f conftest.val
31985 fi
31986 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
31987 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
31988
31989
31990
31991 cat >>confdefs.h <<_ACEOF
31992 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
31993 _ACEOF
31994
31995
31996
31997
31998
31999 cat >>confdefs.h <<_ACEOF
32000 #define NFS_STATEDIR "$statedir"
32001 _ACEOF
32002
32003
32004 if test "x$cross_compiling" = "xno"; then
32005         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
32006         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
32007         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
32008         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
32009 else
32010         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
32011         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
32012         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
32013         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
32014 fi
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026 case $host in
32027   *)
32028     ARCHFLAGS="" ;;
32029 esac
32030
32031 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
32032
32033 AM_CFLAGS="$my_am_cflags"
32034
32035
32036 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
32037 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
32038
32039
32040 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 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"
32041
32042 cat >confcache <<\_ACEOF
32043 # This file is a shell script that caches the results of configure
32044 # tests run on this system so they can be shared between configure
32045 # scripts and configure runs, see configure's option --config-cache.
32046 # It is not useful on other systems.  If it contains results you don't
32047 # want to keep, you may remove or edit it.
32048 #
32049 # config.status only pays attention to the cache file if you give it
32050 # the --recheck option to rerun configure.
32051 #
32052 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32053 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32054 # following values.
32055
32056 _ACEOF
32057
32058 # The following way of writing the cache mishandles newlines in values,
32059 # but we know of no workaround that is simple, portable, and efficient.
32060 # So, we kill variables containing newlines.
32061 # Ultrix sh set writes to stderr and can't be redirected directly,
32062 # and sets the high bit in the cache file unless we assign to the vars.
32063 (
32064   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32065     eval ac_val=\$$ac_var
32066     case $ac_val in #(
32067     *${as_nl}*)
32068       case $ac_var in #(
32069       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
32070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32071       esac
32072       case $ac_var in #(
32073       _ | IFS | as_nl) ;; #(
32074       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32075       *) $as_unset $ac_var ;;
32076       esac ;;
32077     esac
32078   done
32079
32080   (set) 2>&1 |
32081     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32082     *${as_nl}ac_space=\ *)
32083       # `set' does not quote correctly, so add quotes (double-quote
32084       # substitution turns \\\\ into \\, and sed turns \\ into \).
32085       sed -n \
32086         "s/'/'\\\\''/g;
32087           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32088       ;; #(
32089     *)
32090       # `set' quotes correctly as required by POSIX, so do not add quotes.
32091       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32092       ;;
32093     esac |
32094     sort
32095 ) |
32096   sed '
32097      /^ac_cv_env_/b end
32098      t clear
32099      :clear
32100      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32101      t end
32102      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32103      :end' >>confcache
32104 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32105   if test -w "$cache_file"; then
32106     test "x$cache_file" != "x/dev/null" &&
32107       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
32108 $as_echo "$as_me: updating cache $cache_file" >&6;}
32109     cat confcache >$cache_file
32110   else
32111     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32113   fi
32114 fi
32115 rm -f confcache
32116
32117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32118 # Let make expand exec_prefix.
32119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32120
32121 DEFS=-DHAVE_CONFIG_H
32122
32123 ac_libobjs=
32124 ac_ltlibobjs=
32125 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32126   # 1. Remove the extension, and $U if already installed.
32127   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32128   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32129   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32130   #    will be set to the directory where LIBOBJS objects are built.
32131   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32132   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32133 done
32134 LIBOBJS=$ac_libobjs
32135
32136 LTLIBOBJS=$ac_ltlibobjs
32137
32138
32139 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32140   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32141 Usually this means the macro was only invoked conditionally." >&5
32142 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32143 Usually this means the macro was only invoked conditionally." >&2;}
32144    { (exit 1); exit 1; }; }
32145 fi
32146 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
32147   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
32148 Usually this means the macro was only invoked conditionally." >&5
32149 $as_echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
32150 Usually this means the macro was only invoked conditionally." >&2;}
32151    { (exit 1); exit 1; }; }
32152 fi
32153 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
32154   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
32155 Usually this means the macro was only invoked conditionally." >&5
32156 $as_echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
32157 Usually this means the macro was only invoked conditionally." >&2;}
32158    { (exit 1); exit 1; }; }
32159 fi
32160 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
32161   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
32162 Usually this means the macro was only invoked conditionally." >&5
32163 $as_echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
32164 Usually this means the macro was only invoked conditionally." >&2;}
32165    { (exit 1); exit 1; }; }
32166 fi
32167 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
32168   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
32169 Usually this means the macro was only invoked conditionally." >&5
32170 $as_echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
32171 Usually this means the macro was only invoked conditionally." >&2;}
32172    { (exit 1); exit 1; }; }
32173 fi
32174 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
32175   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
32176 Usually this means the macro was only invoked conditionally." >&5
32177 $as_echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
32178 Usually this means the macro was only invoked conditionally." >&2;}
32179    { (exit 1); exit 1; }; }
32180 fi
32181 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32182   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32183 Usually this means the macro was only invoked conditionally." >&5
32184 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
32185 Usually this means the macro was only invoked conditionally." >&2;}
32186    { (exit 1); exit 1; }; }
32187 fi
32188 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32189   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32190 Usually this means the macro was only invoked conditionally." >&5
32191 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32192 Usually this means the macro was only invoked conditionally." >&2;}
32193    { (exit 1); exit 1; }; }
32194 fi
32195 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32196   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32197 Usually this means the macro was only invoked conditionally." >&5
32198 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32199 Usually this means the macro was only invoked conditionally." >&2;}
32200    { (exit 1); exit 1; }; }
32201 fi
32202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32203   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32204 Usually this means the macro was only invoked conditionally." >&5
32205 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32206 Usually this means the macro was only invoked conditionally." >&2;}
32207    { (exit 1); exit 1; }; }
32208 fi
32209
32210 : ${CONFIG_STATUS=./config.status}
32211 ac_write_fail=0
32212 ac_clean_files_save=$ac_clean_files
32213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32214 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32215 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32216 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32217 #! $SHELL
32218 # Generated by $as_me.
32219 # Run this file to recreate the current configuration.
32220 # Compiler output produced by configure, useful for debugging
32221 # configure, is in config.log if it exists.
32222
32223 debug=false
32224 ac_cs_recheck=false
32225 ac_cs_silent=false
32226 SHELL=\${CONFIG_SHELL-$SHELL}
32227 _ACEOF
32228
32229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32230 ## --------------------- ##
32231 ## M4sh Initialization.  ##
32232 ## --------------------- ##
32233
32234 # Be more Bourne compatible
32235 DUALCASE=1; export DUALCASE # for MKS sh
32236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32237   emulate sh
32238   NULLCMD=:
32239   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32240   # is contrary to our usage.  Disable this feature.
32241   alias -g '${1+"$@"}'='"$@"'
32242   setopt NO_GLOB_SUBST
32243 else
32244   case `(set -o) 2>/dev/null` in
32245   *posix*) set -o posix ;;
32246 esac
32247
32248 fi
32249
32250
32251
32252
32253 # PATH needs CR
32254 # Avoid depending upon Character Ranges.
32255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32258 as_cr_digits='0123456789'
32259 as_cr_alnum=$as_cr_Letters$as_cr_digits
32260
32261 as_nl='
32262 '
32263 export as_nl
32264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32268 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32269   as_echo='printf %s\n'
32270   as_echo_n='printf %s'
32271 else
32272   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32273     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32274     as_echo_n='/usr/ucb/echo -n'
32275   else
32276     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32277     as_echo_n_body='eval
32278       arg=$1;
32279       case $arg in
32280       *"$as_nl"*)
32281         expr "X$arg" : "X\\(.*\\)$as_nl";
32282         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32283       esac;
32284       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32285     '
32286     export as_echo_n_body
32287     as_echo_n='sh -c $as_echo_n_body as_echo'
32288   fi
32289   export as_echo_body
32290   as_echo='sh -c $as_echo_body as_echo'
32291 fi
32292
32293 # The user is always right.
32294 if test "${PATH_SEPARATOR+set}" != set; then
32295   PATH_SEPARATOR=:
32296   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32297     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32298       PATH_SEPARATOR=';'
32299   }
32300 fi
32301
32302 # Support unset when possible.
32303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32304   as_unset=unset
32305 else
32306   as_unset=false
32307 fi
32308
32309
32310 # IFS
32311 # We need space, tab and new line, in precisely that order.  Quoting is
32312 # there to prevent editors from complaining about space-tab.
32313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32314 # splitting by setting IFS to empty value.)
32315 IFS=" ""        $as_nl"
32316
32317 # Find who we are.  Look in the path if we contain no directory separator.
32318 case $0 in
32319   *[\\/]* ) as_myself=$0 ;;
32320   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32321 for as_dir in $PATH
32322 do
32323   IFS=$as_save_IFS
32324   test -z "$as_dir" && as_dir=.
32325   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32326 done
32327 IFS=$as_save_IFS
32328
32329      ;;
32330 esac
32331 # We did not find ourselves, most probably we were run as `sh COMMAND'
32332 # in which case we are not to be found in the path.
32333 if test "x$as_myself" = x; then
32334   as_myself=$0
32335 fi
32336 if test ! -f "$as_myself"; then
32337   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32338   { (exit 1); exit 1; }
32339 fi
32340
32341 # Work around bugs in pre-3.0 UWIN ksh.
32342 for as_var in ENV MAIL MAILPATH
32343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32344 done
32345 PS1='$ '
32346 PS2='> '
32347 PS4='+ '
32348
32349 # NLS nuisances.
32350 LC_ALL=C
32351 export LC_ALL
32352 LANGUAGE=C
32353 export LANGUAGE
32354
32355 # Required to use basename.
32356 if expr a : '\(a\)' >/dev/null 2>&1 &&
32357    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32358   as_expr=expr
32359 else
32360   as_expr=false
32361 fi
32362
32363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32364   as_basename=basename
32365 else
32366   as_basename=false
32367 fi
32368
32369
32370 # Name of the executable.
32371 as_me=`$as_basename -- "$0" ||
32372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32373          X"$0" : 'X\(//\)$' \| \
32374          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32375 $as_echo X/"$0" |
32376     sed '/^.*\/\([^/][^/]*\)\/*$/{
32377             s//\1/
32378             q
32379           }
32380           /^X\/\(\/\/\)$/{
32381             s//\1/
32382             q
32383           }
32384           /^X\/\(\/\).*/{
32385             s//\1/
32386             q
32387           }
32388           s/.*/./; q'`
32389
32390 # CDPATH.
32391 $as_unset CDPATH
32392
32393
32394
32395   as_lineno_1=$LINENO
32396   as_lineno_2=$LINENO
32397   test "x$as_lineno_1" != "x$as_lineno_2" &&
32398   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32399
32400   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32401   # uniformly replaced by the line number.  The first 'sed' inserts a
32402   # line-number line after each line using $LINENO; the second 'sed'
32403   # does the real work.  The second script uses 'N' to pair each
32404   # line-number line with the line containing $LINENO, and appends
32405   # trailing '-' during substitution so that $LINENO is not a special
32406   # case at line end.
32407   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32408   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32409   # E. McMahon (1931-1989) for sed's syntax.  :-)
32410   sed -n '
32411     p
32412     /[$]LINENO/=
32413   ' <$as_myself |
32414     sed '
32415       s/[$]LINENO.*/&-/
32416       t lineno
32417       b
32418       :lineno
32419       N
32420       :loop
32421       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32422       t loop
32423       s/-\n.*//
32424     ' >$as_me.lineno &&
32425   chmod +x "$as_me.lineno" ||
32426     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32427    { (exit 1); exit 1; }; }
32428
32429   # Don't try to exec as it changes $[0], causing all sort of problems
32430   # (the dirname of $[0] is not the place where we might find the
32431   # original and so on.  Autoconf is especially sensitive to this).
32432   . "./$as_me.lineno"
32433   # Exit status is that of the last command.
32434   exit
32435 }
32436
32437
32438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32439   as_dirname=dirname
32440 else
32441   as_dirname=false
32442 fi
32443
32444 ECHO_C= ECHO_N= ECHO_T=
32445 case `echo -n x` in
32446 -n*)
32447   case `echo 'x\c'` in
32448   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32449   *)   ECHO_C='\c';;
32450   esac;;
32451 *)
32452   ECHO_N='-n';;
32453 esac
32454 if expr a : '\(a\)' >/dev/null 2>&1 &&
32455    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32456   as_expr=expr
32457 else
32458   as_expr=false
32459 fi
32460
32461 rm -f conf$$ conf$$.exe conf$$.file
32462 if test -d conf$$.dir; then
32463   rm -f conf$$.dir/conf$$.file
32464 else
32465   rm -f conf$$.dir
32466   mkdir conf$$.dir 2>/dev/null
32467 fi
32468 if (echo >conf$$.file) 2>/dev/null; then
32469   if ln -s conf$$.file conf$$ 2>/dev/null; then
32470     as_ln_s='ln -s'
32471     # ... but there are two gotchas:
32472     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32473     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32474     # In both cases, we have to default to `cp -p'.
32475     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32476       as_ln_s='cp -p'
32477   elif ln conf$$.file conf$$ 2>/dev/null; then
32478     as_ln_s=ln
32479   else
32480     as_ln_s='cp -p'
32481   fi
32482 else
32483   as_ln_s='cp -p'
32484 fi
32485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32486 rmdir conf$$.dir 2>/dev/null
32487
32488 if mkdir -p . 2>/dev/null; then
32489   as_mkdir_p=:
32490 else
32491   test -d ./-p && rmdir ./-p
32492   as_mkdir_p=false
32493 fi
32494
32495 if test -x / >/dev/null 2>&1; then
32496   as_test_x='test -x'
32497 else
32498   if ls -dL / >/dev/null 2>&1; then
32499     as_ls_L_option=L
32500   else
32501     as_ls_L_option=
32502   fi
32503   as_test_x='
32504     eval sh -c '\''
32505       if test -d "$1"; then
32506         test -d "$1/.";
32507       else
32508         case $1 in
32509         -*)set "./$1";;
32510         esac;
32511         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32512         ???[sx]*):;;*)false;;esac;fi
32513     '\'' sh
32514   '
32515 fi
32516 as_executable_p=$as_test_x
32517
32518 # Sed expression to map a string onto a valid CPP name.
32519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32520
32521 # Sed expression to map a string onto a valid variable name.
32522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32523
32524
32525 exec 6>&1
32526
32527 # Save the log message, to keep $[0] and so on meaningful, and to
32528 # report actual input values of CONFIG_FILES etc. instead of their
32529 # values after options handling.
32530 ac_log="
32531 This file was extended by linux nfs-utils $as_me 1.1.6, which was
32532 generated by GNU Autoconf 2.63.  Invocation command line was
32533
32534   CONFIG_FILES    = $CONFIG_FILES
32535   CONFIG_HEADERS  = $CONFIG_HEADERS
32536   CONFIG_LINKS    = $CONFIG_LINKS
32537   CONFIG_COMMANDS = $CONFIG_COMMANDS
32538   $ $0 $@
32539
32540 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32541 "
32542
32543 _ACEOF
32544
32545 case $ac_config_files in *"
32546 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32547 esac
32548
32549 case $ac_config_headers in *"
32550 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32551 esac
32552
32553
32554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32555 # Files that config.status was made for.
32556 config_files="$ac_config_files"
32557 config_headers="$ac_config_headers"
32558 config_commands="$ac_config_commands"
32559
32560 _ACEOF
32561
32562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32563 ac_cs_usage="\
32564 \`$as_me' instantiates files from templates according to the
32565 current configuration.
32566
32567 Usage: $0 [OPTION]... [FILE]...
32568
32569   -h, --help       print this help, then exit
32570   -V, --version    print version number and configuration settings, then exit
32571   -q, --quiet, --silent
32572                    do not print progress messages
32573   -d, --debug      don't remove temporary files
32574       --recheck    update $as_me by reconfiguring in the same conditions
32575       --file=FILE[:TEMPLATE]
32576                    instantiate the configuration file FILE
32577       --header=FILE[:TEMPLATE]
32578                    instantiate the configuration header FILE
32579
32580 Configuration files:
32581 $config_files
32582
32583 Configuration headers:
32584 $config_headers
32585
32586 Configuration commands:
32587 $config_commands
32588
32589 Report bugs to <bug-autoconf@gnu.org>."
32590
32591 _ACEOF
32592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32593 ac_cs_version="\\
32594 linux nfs-utils config.status 1.1.6
32595 configured by $0, generated by GNU Autoconf 2.63,
32596   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32597
32598 Copyright (C) 2008 Free Software Foundation, Inc.
32599 This config.status script is free software; the Free Software Foundation
32600 gives unlimited permission to copy, distribute and modify it."
32601
32602 ac_pwd='$ac_pwd'
32603 srcdir='$srcdir'
32604 INSTALL='$INSTALL'
32605 MKDIR_P='$MKDIR_P'
32606 AWK='$AWK'
32607 test -n "\$AWK" || AWK=awk
32608 _ACEOF
32609
32610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32611 # The default lists apply if the user does not specify any file.
32612 ac_need_defaults=:
32613 while test $# != 0
32614 do
32615   case $1 in
32616   --*=*)
32617     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32618     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32619     ac_shift=:
32620     ;;
32621   *)
32622     ac_option=$1
32623     ac_optarg=$2
32624     ac_shift=shift
32625     ;;
32626   esac
32627
32628   case $ac_option in
32629   # Handling of the options.
32630   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32631     ac_cs_recheck=: ;;
32632   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32633     $as_echo "$ac_cs_version"; exit ;;
32634   --debug | --debu | --deb | --de | --d | -d )
32635     debug=: ;;
32636   --file | --fil | --fi | --f )
32637     $ac_shift
32638     case $ac_optarg in
32639     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32640     esac
32641     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
32642     ac_need_defaults=false;;
32643   --header | --heade | --head | --hea )
32644     $ac_shift
32645     case $ac_optarg in
32646     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32647     esac
32648     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
32649     ac_need_defaults=false;;
32650   --he | --h)
32651     # Conflict between --help and --header
32652     { $as_echo "$as_me: error: ambiguous option: $1
32653 Try \`$0 --help' for more information." >&2
32654    { (exit 1); exit 1; }; };;
32655   --help | --hel | -h )
32656     $as_echo "$ac_cs_usage"; exit ;;
32657   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32658   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32659     ac_cs_silent=: ;;
32660
32661   # This is an error.
32662   -*) { $as_echo "$as_me: error: unrecognized option: $1
32663 Try \`$0 --help' for more information." >&2
32664    { (exit 1); exit 1; }; } ;;
32665
32666   *) ac_config_targets="$ac_config_targets $1"
32667      ac_need_defaults=false ;;
32668
32669   esac
32670   shift
32671 done
32672
32673 ac_configure_extra_args=
32674
32675 if $ac_cs_silent; then
32676   exec 6>/dev/null
32677   ac_configure_extra_args="$ac_configure_extra_args --silent"
32678 fi
32679
32680 _ACEOF
32681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32682 if \$ac_cs_recheck; then
32683   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32684   shift
32685   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32686   CONFIG_SHELL='$SHELL'
32687   export CONFIG_SHELL
32688   exec "\$@"
32689 fi
32690
32691 _ACEOF
32692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32693 exec 5>>config.log
32694 {
32695   echo
32696   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32697 ## Running $as_me. ##
32698 _ASBOX
32699   $as_echo "$ac_log"
32700 } >&5
32701
32702 _ACEOF
32703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32704 #
32705 # INIT-COMMANDS
32706 #
32707 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32708
32709 _ACEOF
32710
32711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32712
32713 # Handling of arguments.
32714 for ac_config_target in $ac_config_targets
32715 do
32716   case $ac_config_target in
32717     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32718     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
32719     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32720     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
32721     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32722     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
32723     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
32724     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
32725     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
32726     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
32727     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
32728     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
32729     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
32730     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
32731     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
32732     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
32733     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
32734     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
32735     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
32736     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
32737     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
32738     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
32739     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
32740     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
32741     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
32742     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
32743     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
32744     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
32745
32746   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32747 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32748    { (exit 1); exit 1; }; };;
32749   esac
32750 done
32751
32752
32753 # If the user did not use the arguments to specify the items to instantiate,
32754 # then the envvar interface is used.  Set only those that are not.
32755 # We use the long form for the default assignment because of an extremely
32756 # bizarre bug on SunOS 4.1.3.
32757 if $ac_need_defaults; then
32758   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32759   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32760   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32761 fi
32762
32763 # Have a temporary directory for convenience.  Make it in the build tree
32764 # simply because there is no reason against having it here, and in addition,
32765 # creating and moving files from /tmp can sometimes cause problems.
32766 # Hook for its removal unless debugging.
32767 # Note that there is a small window in which the directory will not be cleaned:
32768 # after its creation but before its name has been assigned to `$tmp'.
32769 $debug ||
32770 {
32771   tmp=
32772   trap 'exit_status=$?
32773   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32774 ' 0
32775   trap '{ (exit 1); exit 1; }' 1 2 13 15
32776 }
32777 # Create a (secure) tmp directory for tmp files.
32778
32779 {
32780   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32781   test -n "$tmp" && test -d "$tmp"
32782 }  ||
32783 {
32784   tmp=./conf$$-$RANDOM
32785   (umask 077 && mkdir "$tmp")
32786 } ||
32787 {
32788    $as_echo "$as_me: cannot create a temporary directory in ." >&2
32789    { (exit 1); exit 1; }
32790 }
32791
32792 # Set up the scripts for CONFIG_FILES section.
32793 # No need to generate them if there are no CONFIG_FILES.
32794 # This happens for instance with `./config.status config.h'.
32795 if test -n "$CONFIG_FILES"; then
32796
32797
32798 ac_cr='\r'
32799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32801   ac_cs_awk_cr='\\r'
32802 else
32803   ac_cs_awk_cr=$ac_cr
32804 fi
32805
32806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32807 _ACEOF
32808
32809
32810 {
32811   echo "cat >conf$$subs.awk <<_ACEOF" &&
32812   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32813   echo "_ACEOF"
32814 } >conf$$subs.sh ||
32815   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32816 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32817    { (exit 1); exit 1; }; }
32818 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32819 ac_delim='%!_!# '
32820 for ac_last_try in false false false false false :; do
32821   . ./conf$$subs.sh ||
32822     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32823 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32824    { (exit 1); exit 1; }; }
32825
32826   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32827   if test $ac_delim_n = $ac_delim_num; then
32828     break
32829   elif $ac_last_try; then
32830     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32831 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32832    { (exit 1); exit 1; }; }
32833   else
32834     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32835   fi
32836 done
32837 rm -f conf$$subs.sh
32838
32839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32840 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32841 _ACEOF
32842 sed -n '
32843 h
32844 s/^/S["/; s/!.*/"]=/
32845 p
32846 g
32847 s/^[^!]*!//
32848 :repl
32849 t repl
32850 s/'"$ac_delim"'$//
32851 t delim
32852 :nl
32853 h
32854 s/\(.\{148\}\).*/\1/
32855 t more1
32856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32857 p
32858 n
32859 b repl
32860 :more1
32861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32862 p
32863 g
32864 s/.\{148\}//
32865 t nl
32866 :delim
32867 h
32868 s/\(.\{148\}\).*/\1/
32869 t more2
32870 s/["\\]/\\&/g; s/^/"/; s/$/"/
32871 p
32872 b
32873 :more2
32874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32875 p
32876 g
32877 s/.\{148\}//
32878 t delim
32879 ' <conf$$subs.awk | sed '
32880 /^[^""]/{
32881   N
32882   s/\n//
32883 }
32884 ' >>$CONFIG_STATUS || ac_write_fail=1
32885 rm -f conf$$subs.awk
32886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32887 _ACAWK
32888 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32889   for (key in S) S_is_set[key] = 1
32890   FS = "\a"
32891
32892 }
32893 {
32894   line = $ 0
32895   nfields = split(line, field, "@")
32896   substed = 0
32897   len = length(field[1])
32898   for (i = 2; i < nfields; i++) {
32899     key = field[i]
32900     keylen = length(key)
32901     if (S_is_set[key]) {
32902       value = S[key]
32903       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32904       len += length(value) + length(field[++i])
32905       substed = 1
32906     } else
32907       len += 1 + keylen
32908   }
32909
32910   print line
32911 }
32912
32913 _ACAWK
32914 _ACEOF
32915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32917   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32918 else
32919   cat
32920 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32921   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32922 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
32923    { (exit 1); exit 1; }; }
32924 _ACEOF
32925
32926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32928 # trailing colons and then remove the whole line if VPATH becomes empty
32929 # (actually we leave an empty line to preserve line numbers).
32930 if test "x$srcdir" = x.; then
32931   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32932 s/:*\$(srcdir):*/:/
32933 s/:*\${srcdir}:*/:/
32934 s/:*@srcdir@:*/:/
32935 s/^\([^=]*=[     ]*\):*/\1/
32936 s/:*$//
32937 s/^[^=]*=[       ]*$//
32938 }'
32939 fi
32940
32941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32942 fi # test -n "$CONFIG_FILES"
32943
32944 # Set up the scripts for CONFIG_HEADERS section.
32945 # No need to generate them if there are no CONFIG_HEADERS.
32946 # This happens for instance with `./config.status Makefile'.
32947 if test -n "$CONFIG_HEADERS"; then
32948 cat >"$tmp/defines.awk" <<\_ACAWK ||
32949 BEGIN {
32950 _ACEOF
32951
32952 # Transform confdefs.h into an awk script `defines.awk', embedded as
32953 # here-document in config.status, that substitutes the proper values into
32954 # config.h.in to produce config.h.
32955
32956 # Create a delimiter string that does not exist in confdefs.h, to ease
32957 # handling of long lines.
32958 ac_delim='%!_!# '
32959 for ac_last_try in false false :; do
32960   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32961   if test -z "$ac_t"; then
32962     break
32963   elif $ac_last_try; then
32964     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32965 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32966    { (exit 1); exit 1; }; }
32967   else
32968     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32969   fi
32970 done
32971
32972 # For the awk script, D is an array of macro values keyed by name,
32973 # likewise P contains macro parameters if any.  Preserve backslash
32974 # newline sequences.
32975
32976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32977 sed -n '
32978 s/.\{148\}/&'"$ac_delim"'/g
32979 t rset
32980 :rset
32981 s/^[     ]*#[    ]*define[       ][      ]*/ /
32982 t def
32983 d
32984 :def
32985 s/\\$//
32986 t bsnl
32987 s/["\\]/\\&/g
32988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32989 D["\1"]=" \3"/p
32990 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32991 d
32992 :bsnl
32993 s/["\\]/\\&/g
32994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32995 D["\1"]=" \3\\\\\\n"\\/p
32996 t cont
32997 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32998 t cont
32999 d
33000 :cont
33001 n
33002 s/.\{148\}/&'"$ac_delim"'/g
33003 t clear
33004 :clear
33005 s/\\$//
33006 t bsnlc
33007 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33008 d
33009 :bsnlc
33010 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33011 b cont
33012 ' <confdefs.h | sed '
33013 s/'"$ac_delim"'/"\\\
33014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33015
33016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33017   for (key in D) D_is_set[key] = 1
33018   FS = "\a"
33019 }
33020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33021   line = \$ 0
33022   split(line, arg, " ")
33023   if (arg[1] == "#") {
33024     defundef = arg[2]
33025     mac1 = arg[3]
33026   } else {
33027     defundef = substr(arg[1], 2)
33028     mac1 = arg[2]
33029   }
33030   split(mac1, mac2, "(") #)
33031   macro = mac2[1]
33032   prefix = substr(line, 1, index(line, defundef) - 1)
33033   if (D_is_set[macro]) {
33034     # Preserve the white space surrounding the "#".
33035     print prefix "define", macro P[macro] D[macro]
33036     next
33037   } else {
33038     # Replace #undef with comments.  This is necessary, for example,
33039     # in the case of _POSIX_SOURCE, which is predefined and required
33040     # on some systems where configure will not decide to define it.
33041     if (defundef == "undef") {
33042       print "/*", prefix defundef, macro, "*/"
33043       next
33044     }
33045   }
33046 }
33047 { print }
33048 _ACAWK
33049 _ACEOF
33050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33051   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
33052 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
33053    { (exit 1); exit 1; }; }
33054 fi # test -n "$CONFIG_HEADERS"
33055
33056
33057 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33058 shift
33059 for ac_tag
33060 do
33061   case $ac_tag in
33062   :[FHLC]) ac_mode=$ac_tag; continue;;
33063   esac
33064   case $ac_mode$ac_tag in
33065   :[FHL]*:*);;
33066   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
33067 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
33068    { (exit 1); exit 1; }; };;
33069   :[FH]-) ac_tag=-:-;;
33070   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33071   esac
33072   ac_save_IFS=$IFS
33073   IFS=:
33074   set x $ac_tag
33075   IFS=$ac_save_IFS
33076   shift
33077   ac_file=$1
33078   shift
33079
33080   case $ac_mode in
33081   :L) ac_source=$1;;
33082   :[FH])
33083     ac_file_inputs=
33084     for ac_f
33085     do
33086       case $ac_f in
33087       -) ac_f="$tmp/stdin";;
33088       *) # Look for the file first in the build tree, then in the source tree
33089          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33090          # because $ac_f cannot contain `:'.
33091          test -f "$ac_f" ||
33092            case $ac_f in
33093            [\\/$]*) false;;
33094            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33095            esac ||
33096            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33097 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33098    { (exit 1); exit 1; }; };;
33099       esac
33100       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33101       ac_file_inputs="$ac_file_inputs '$ac_f'"
33102     done
33103
33104     # Let's still pretend it is `configure' which instantiates (i.e., don't
33105     # use $as_me), people would be surprised to read:
33106     #    /* config.h.  Generated by config.status.  */
33107     configure_input='Generated from '`
33108           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33109         `' by configure.'
33110     if test x"$ac_file" != x-; then
33111       configure_input="$ac_file.  $configure_input"
33112       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
33113 $as_echo "$as_me: creating $ac_file" >&6;}
33114     fi
33115     # Neutralize special characters interpreted by sed in replacement strings.
33116     case $configure_input in #(
33117     *\&* | *\|* | *\\* )
33118        ac_sed_conf_input=`$as_echo "$configure_input" |
33119        sed 's/[\\\\&|]/\\\\&/g'`;; #(
33120     *) ac_sed_conf_input=$configure_input;;
33121     esac
33122
33123     case $ac_tag in
33124     *:-:* | *:-) cat >"$tmp/stdin" \
33125       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33126 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33127    { (exit 1); exit 1; }; } ;;
33128     esac
33129     ;;
33130   esac
33131
33132   ac_dir=`$as_dirname -- "$ac_file" ||
33133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33134          X"$ac_file" : 'X\(//\)[^/]' \| \
33135          X"$ac_file" : 'X\(//\)$' \| \
33136          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33137 $as_echo X"$ac_file" |
33138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33139             s//\1/
33140             q
33141           }
33142           /^X\(\/\/\)[^/].*/{
33143             s//\1/
33144             q
33145           }
33146           /^X\(\/\/\)$/{
33147             s//\1/
33148             q
33149           }
33150           /^X\(\/\).*/{
33151             s//\1/
33152             q
33153           }
33154           s/.*/./; q'`
33155   { as_dir="$ac_dir"
33156   case $as_dir in #(
33157   -*) as_dir=./$as_dir;;
33158   esac
33159   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33160     as_dirs=
33161     while :; do
33162       case $as_dir in #(
33163       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33164       *) as_qdir=$as_dir;;
33165       esac
33166       as_dirs="'$as_qdir' $as_dirs"
33167       as_dir=`$as_dirname -- "$as_dir" ||
33168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33169          X"$as_dir" : 'X\(//\)[^/]' \| \
33170          X"$as_dir" : 'X\(//\)$' \| \
33171          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33172 $as_echo X"$as_dir" |
33173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33174             s//\1/
33175             q
33176           }
33177           /^X\(\/\/\)[^/].*/{
33178             s//\1/
33179             q
33180           }
33181           /^X\(\/\/\)$/{
33182             s//\1/
33183             q
33184           }
33185           /^X\(\/\).*/{
33186             s//\1/
33187             q
33188           }
33189           s/.*/./; q'`
33190       test -d "$as_dir" && break
33191     done
33192     test -z "$as_dirs" || eval "mkdir $as_dirs"
33193   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33194 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33195    { (exit 1); exit 1; }; }; }
33196   ac_builddir=.
33197
33198 case "$ac_dir" in
33199 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33200 *)
33201   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33202   # A ".." for each directory in $ac_dir_suffix.
33203   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33204   case $ac_top_builddir_sub in
33205   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33206   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33207   esac ;;
33208 esac
33209 ac_abs_top_builddir=$ac_pwd
33210 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33211 # for backward compatibility:
33212 ac_top_builddir=$ac_top_build_prefix
33213
33214 case $srcdir in
33215   .)  # We are building in place.
33216     ac_srcdir=.
33217     ac_top_srcdir=$ac_top_builddir_sub
33218     ac_abs_top_srcdir=$ac_pwd ;;
33219   [\\/]* | ?:[\\/]* )  # Absolute name.
33220     ac_srcdir=$srcdir$ac_dir_suffix;
33221     ac_top_srcdir=$srcdir
33222     ac_abs_top_srcdir=$srcdir ;;
33223   *) # Relative name.
33224     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33225     ac_top_srcdir=$ac_top_build_prefix$srcdir
33226     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33227 esac
33228 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33229
33230
33231   case $ac_mode in
33232   :F)
33233   #
33234   # CONFIG_FILE
33235   #
33236
33237   case $INSTALL in
33238   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33239   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33240   esac
33241   ac_MKDIR_P=$MKDIR_P
33242   case $MKDIR_P in
33243   [\\/$]* | ?:[\\/]* ) ;;
33244   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33245   esac
33246 _ACEOF
33247
33248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33249 # If the template does not know about datarootdir, expand it.
33250 # FIXME: This hack should be removed a few years after 2.60.
33251 ac_datarootdir_hack=; ac_datarootdir_seen=
33252
33253 ac_sed_dataroot='
33254 /datarootdir/ {
33255   p
33256   q
33257 }
33258 /@datadir@/p
33259 /@docdir@/p
33260 /@infodir@/p
33261 /@localedir@/p
33262 /@mandir@/p
33263 '
33264 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33265 *datarootdir*) ac_datarootdir_seen=yes;;
33266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33267   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33268 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33269 _ACEOF
33270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33271   ac_datarootdir_hack='
33272   s&@datadir@&$datadir&g
33273   s&@docdir@&$docdir&g
33274   s&@infodir@&$infodir&g
33275   s&@localedir@&$localedir&g
33276   s&@mandir@&$mandir&g
33277     s&\\\${datarootdir}&$datarootdir&g' ;;
33278 esac
33279 _ACEOF
33280
33281 # Neutralize VPATH when `$srcdir' = `.'.
33282 # Shell code in configure.ac might set extrasub.
33283 # FIXME: do we really want to maintain this feature?
33284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33285 ac_sed_extra="$ac_vpsub
33286 $extrasub
33287 _ACEOF
33288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33289 :t
33290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33291 s|@configure_input@|$ac_sed_conf_input|;t t
33292 s&@top_builddir@&$ac_top_builddir_sub&;t t
33293 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33294 s&@srcdir@&$ac_srcdir&;t t
33295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33296 s&@top_srcdir@&$ac_top_srcdir&;t t
33297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33298 s&@builddir@&$ac_builddir&;t t
33299 s&@abs_builddir@&$ac_abs_builddir&;t t
33300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33301 s&@INSTALL@&$ac_INSTALL&;t t
33302 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33303 $ac_datarootdir_hack
33304 "
33305 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33306   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33307 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33308    { (exit 1); exit 1; }; }
33309
33310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33311   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33312   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33313   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33314 which seems to be undefined.  Please make sure it is defined." >&5
33315 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33316 which seems to be undefined.  Please make sure it is defined." >&2;}
33317
33318   rm -f "$tmp/stdin"
33319   case $ac_file in
33320   -) cat "$tmp/out" && rm -f "$tmp/out";;
33321   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33322   esac \
33323   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33324 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33325    { (exit 1); exit 1; }; }
33326  ;;
33327   :H)
33328   #
33329   # CONFIG_HEADER
33330   #
33331   if test x"$ac_file" != x-; then
33332     {
33333       $as_echo "/* $configure_input  */" \
33334       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33335     } >"$tmp/config.h" \
33336       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33338    { (exit 1); exit 1; }; }
33339     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
33340       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33342     else
33343       rm -f "$ac_file"
33344       mv "$tmp/config.h" "$ac_file" \
33345         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33346 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33347    { (exit 1); exit 1; }; }
33348     fi
33349   else
33350     $as_echo "/* $configure_input  */" \
33351       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
33352       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
33353 $as_echo "$as_me: error: could not create -" >&2;}
33354    { (exit 1); exit 1; }; }
33355   fi
33356 # Compute "$ac_file"'s index in $config_headers.
33357 _am_arg="$ac_file"
33358 _am_stamp_count=1
33359 for _am_header in $config_headers :; do
33360   case $_am_header in
33361     $_am_arg | $_am_arg:* )
33362       break ;;
33363     * )
33364       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33365   esac
33366 done
33367 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33368 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33369          X"$_am_arg" : 'X\(//\)[^/]' \| \
33370          X"$_am_arg" : 'X\(//\)$' \| \
33371          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33372 $as_echo X"$_am_arg" |
33373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33374             s//\1/
33375             q
33376           }
33377           /^X\(\/\/\)[^/].*/{
33378             s//\1/
33379             q
33380           }
33381           /^X\(\/\/\)$/{
33382             s//\1/
33383             q
33384           }
33385           /^X\(\/\).*/{
33386             s//\1/
33387             q
33388           }
33389           s/.*/./; q'`/stamp-h$_am_stamp_count
33390  ;;
33391
33392   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
33393 $as_echo "$as_me: executing $ac_file commands" >&6;}
33394  ;;
33395   esac
33396
33397
33398   case $ac_file$ac_mode in
33399     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33400   # Strip MF so we end up with the name of the file.
33401   mf=`echo "$mf" | sed -e 's/:.*$//'`
33402   # Check whether this is an Automake generated Makefile or not.
33403   # We used to match only the files named `Makefile.in', but
33404   # some people rename them; so instead we look at the file content.
33405   # Grep'ing the first line is not enough: some people post-process
33406   # each Makefile.in and add a new line on top of each file to say so.
33407   # Grep'ing the whole file is not good either: AIX grep has a line
33408   # limit of 2048, but all sed's we know have understand at least 4000.
33409   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33410     dirpart=`$as_dirname -- "$mf" ||
33411 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33412          X"$mf" : 'X\(//\)[^/]' \| \
33413          X"$mf" : 'X\(//\)$' \| \
33414          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33415 $as_echo X"$mf" |
33416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33417             s//\1/
33418             q
33419           }
33420           /^X\(\/\/\)[^/].*/{
33421             s//\1/
33422             q
33423           }
33424           /^X\(\/\/\)$/{
33425             s//\1/
33426             q
33427           }
33428           /^X\(\/\).*/{
33429             s//\1/
33430             q
33431           }
33432           s/.*/./; q'`
33433   else
33434     continue
33435   fi
33436   # Extract the definition of DEPDIR, am__include, and am__quote
33437   # from the Makefile without running `make'.
33438   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33439   test -z "$DEPDIR" && continue
33440   am__include=`sed -n 's/^am__include = //p' < "$mf"`
33441   test -z "am__include" && continue
33442   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33443   # When using ansi2knr, U may be empty or an underscore; expand it
33444   U=`sed -n 's/^U = //p' < "$mf"`
33445   # Find all dependency output files, they are included files with
33446   # $(DEPDIR) in their names.  We invoke sed twice because it is the
33447   # simplest approach to changing $(DEPDIR) to its actual value in the
33448   # expansion.
33449   for file in `sed -n "
33450     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33451        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33452     # Make sure the directory exists.
33453     test -f "$dirpart/$file" && continue
33454     fdir=`$as_dirname -- "$file" ||
33455 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33456          X"$file" : 'X\(//\)[^/]' \| \
33457          X"$file" : 'X\(//\)$' \| \
33458          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33459 $as_echo X"$file" |
33460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33461             s//\1/
33462             q
33463           }
33464           /^X\(\/\/\)[^/].*/{
33465             s//\1/
33466             q
33467           }
33468           /^X\(\/\/\)$/{
33469             s//\1/
33470             q
33471           }
33472           /^X\(\/\).*/{
33473             s//\1/
33474             q
33475           }
33476           s/.*/./; q'`
33477     { as_dir=$dirpart/$fdir
33478   case $as_dir in #(
33479   -*) as_dir=./$as_dir;;
33480   esac
33481   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33482     as_dirs=
33483     while :; do
33484       case $as_dir in #(
33485       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33486       *) as_qdir=$as_dir;;
33487       esac
33488       as_dirs="'$as_qdir' $as_dirs"
33489       as_dir=`$as_dirname -- "$as_dir" ||
33490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33491          X"$as_dir" : 'X\(//\)[^/]' \| \
33492          X"$as_dir" : 'X\(//\)$' \| \
33493          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33494 $as_echo X"$as_dir" |
33495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33496             s//\1/
33497             q
33498           }
33499           /^X\(\/\/\)[^/].*/{
33500             s//\1/
33501             q
33502           }
33503           /^X\(\/\/\)$/{
33504             s//\1/
33505             q
33506           }
33507           /^X\(\/\).*/{
33508             s//\1/
33509             q
33510           }
33511           s/.*/./; q'`
33512       test -d "$as_dir" && break
33513     done
33514     test -z "$as_dirs" || eval "mkdir $as_dirs"
33515   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33516 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33517    { (exit 1); exit 1; }; }; }
33518     # echo "creating $dirpart/$file"
33519     echo '# dummy' > "$dirpart/$file"
33520   done
33521 done
33522  ;;
33523
33524   esac
33525 done # for ac_tag
33526
33527
33528 { (exit 0); exit 0; }
33529 _ACEOF
33530 chmod +x $CONFIG_STATUS
33531 ac_clean_files=$ac_clean_files_save
33532
33533 test $ac_write_fail = 0 ||
33534   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
33535 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
33536    { (exit 1); exit 1; }; }
33537
33538
33539 # configure is writing to config.log, and then calls config.status.
33540 # config.status does its own redirection, appending to config.log.
33541 # Unfortunately, on DOS this fails, as config.log is still kept open
33542 # by configure, so config.status won't be able to write to it; its
33543 # output is simply discarded.  So we exec the FD to /dev/null,
33544 # effectively closing config.log, so it can be properly (re)opened and
33545 # appended to by config.status.  When coming back to configure, we
33546 # need to make the FD available again.
33547 if test "$no_create" != yes; then
33548   ac_cs_success=:
33549   ac_config_status_args=
33550   test "$silent" = yes &&
33551     ac_config_status_args="$ac_config_status_args --quiet"
33552   exec 5>/dev/null
33553   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33554   exec 5>>config.log
33555   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33556   # would make configure fail if this is the last instruction.
33557   $ac_cs_success || { (exit 1); exit 1; }
33558 fi
33559 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33560   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33561 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33562 fi
33563
33564